论文信息
论文解读
AI 辅助整理- 方法
- 自监督学习、微调与可信策略,基于1400万张图像训练。
- 发现
- 全球1593种杂草识别准确率91%,爱荷华84种微调后达97%。
- 机会点
- 可探索跨区域杂草基础模型微调与无人机/机器人平台集成。
论文摘要
早期杂草识别对有效管理和控制至关重要,研究人员、农艺学家和技术开发者对利用计算机视觉和人工智能实现该过程自动化的兴趣日益浓厚;然而,专家验证数据有限以及形态特征多变,阻碍了基于人工智能的杂草识别模型的发展。为解决这些问题,我们提出了WeedNet,一个能够识别大量杂草物种的全球尺度杂草识别模型。WeedNet是一个端到端的杂草识别流程,采用自监督学习、微调以及增强可信度策略。WeedNet在1,593种杂草上实现了91.02%的准确率,其中41%的物种达到100%准确率。采用微调方法,爱荷华本地WeedNet模型对84种爱荷华杂草实现了97.38%的总体准确率。对种内差异性和种间相似性的测试表明,所采集图像中涵盖所有生长阶段和可区分植物特征的多样性,对驱动模型性能至关重要。全球WeedNet模型作为基础,全球到本地策略能够实现有针对性的微调,以提升区域杂草群落中的性能。对无人机和地面巡游机器人图像进行的额外验证,凸显了WeedNet集成到机器人平台中的潜力。此外,与人工智能集成用于对话式使用,可为农民、研究人员和政府机构在不同景观中提供智能农业和生态保护咨询工具。杂草持续威胁全球作物产量,因此早期准确识别对有效管理至关重要。WeedNet在代表1,593种杂草的1,400万张图像上训练,实现了91%的全球准确率,并通过全球到本地微调,对爱荷华杂草达到97%的准确率。
全文
Nature CommunicationsArticle | Article in Press https://doi.org/10.1038/s41467-026-78044-4
WeedNet: a foundation model-based global-
to-local AI approach for weed species
identification and classification
Yanben Shen 1,6, Timilehin T. Ayanlade 2,6, Venkata Naresh Boddepalli 1,
Mojdeh Saadati3, Ashlyn Rairdin1,Z iK .D e n g4, Muhammad Arbab Arshad 3,
Shivani Chiranjeevi 2,A d i t y aB a l u2, Daren Mueller5,A s h e e s hK .S i n g h1,
Wesley Everman1, Nirav Merchant4, Baskar Ganapathysubramanian 2,
Meaghan Anderson 1,S o u m i kS a r k a r2 &A r t iS i n g h1
Early weed identification is crucial for effective management and control, and
researchers, agronomists, and technology developers are increasingly inter-
ested in automating this process using computer vision and artificial intelli-
gence; however, limited expert-verified data and variable morphological
features have hindered the development of AI-based weed identification
models. To address these issues, we present WeedNet, a global-scale weed
identification model that can recognize an extensive set of weed species.
W e e d N e ti sa ne n d - t o - e n dw e e di d e n t ification pipeline that uses self-
supervised learning,fine-tuning, and enhanced trustworthiness strategies.
WeedNet achieved 91.02% accuracy across 1,593 weed species, with 41% of
species achieving 100% accuracy. Using afine-tuning approach, the local Iowa
WeedNet model achieved 97.38% overall accuracy for 84 Iowa weeds. Testing
across intra-species dissimilarity and inter-speciessimilarity suggests that
diversity in the images collected, spanning all the growth stages and distin-
guishable plant characteristics, is crucial in driving model performance. The
global WeedNet model serves as a foundation, and the global-to-local strategy
enables targeted fine-tuning to improve performance in regional weed com-
munities. Additional validation of drone- and ground-rover-based images
highlights WeedNet’s potential for integration into robotic platforms. Fur-
thermore, integration with artificial intelligence for conversational use pro-
vides intelligent agricultural and ecological conservation consulting tools for
farmers, researchers, and government ag e n c i e sa c r o s sd i v e r s el a n d s c a p e s .
Weeds adapt to natural and human-modified environments, compet-
ing with cultivated crops for essential resources, such as water, nutri-
ents, light, and space, which signi ficantly affects crop yields 1.I nt h e
United States and Canada, competition from weeds caused an average
loss of $26.7 billion in maize ( Zea mays L.) from 2007 to 2013 2,w h i l e
wheat (Triticum aestivum L.) caused losses averaging $2.19 billion for
winter wheat and $1.14 billion for spring wheat during the same
period3. Dry bean (Phaseolus vulgarisL.) faced average losses of $622.2
million between 2007 and 2016 due to weed infestations 4,d e m o n -
strating the extensive economic impact of weeds on crop productivity.
The National Invasive Species Information Center (NISIC) lists
approximately 60 terrestrial invasive plant species, including trees,
Received: 14 August 2025
Accepted: 11 September 2026
Check for updates
A full list of af filiations appears at the end of the paper. e-mail: soumiks@iastate.edu; arti@iastate.edu
Nature Communications Article in Press
1234567890():,;
1234567890():,;
shrubs, vines, grasses, and herbaceous plants 5. These species cause
significant ecological damage by altering habitats and disrupting
native ecosystems (Supplementary Note 1).
In production agriculture, where a herbicide-tolerant crop is
grown, a blanket spray with an appropriate herbicide can somewhat
reduce the need for detailed weed scouting; however, using it
throughout the season is undesirable, as it promotes the spread of
herbicide-tolerant weeds and creates long-term production
challenges 6. Herbicide resistance is common, with an average of five
new cases emerging annually between 1990 and 2015 7. For example,
Palmer amaranth and common waterhemp ( Amaranthus tubercula-
tus), two related species of the Amaranth family, show different her-
bicide resistance pro files, highlighting the need for accurate
identification8,9.
Correct identi fication at an early growth stage is crucial for
implementing targeted control measures, optimizing weed manage-
ment costs, and preventing the spread of weed populations 10,11.I n t e -
grated weed management relies on weed identification to establish a
multifaceted management program that integrates chemical control
methods with cultural, mechanical, and/or biological methods 12.
Invasive weed species pose a serious threat not only to agriculture but
also to natural ecosystems. However, the ecological impact of these
invasive species is often recognized only after they become wide-
spread, making early detection and classification essential for effective
control5,13.
In practice, farmers are often familiar with the three to four
dominant weed species in their fields by observing weed patches
during routine field scouting, but a typical agricultural field may be
infested with up to 20 weed species 14. One challenge is that the per-
sistent use of a limited number of herbicides in herbicide-tolerant
cropping systems, along with other factors, has led to an increase in
herbicide-resistant weed species15 and a decrease in the effectiveness
of glyphosate for weed control16, as weeds have evolved resistance to
glyphosate in the United States, Argentina, and Brazil 17.M e a n w h i l e ,
weed seeds and pollen can disperse across farms, further challenging
the management of herbicide-resistant weeds 18. Accurate weed-
species identification is important for selecting the most effective
control strategies. However, detecting new weed infestations often
relies on manual scouting by local professionals and extension spe-
cialists rather than digital tools19,20.
Weed management is moving toward automation, site-speci fic
management, and integration with decision support systems 21–23.
Artificial intelligence (AI) is rapidly emerging as a transformative
technology that helps farmers and scouts identify and mitigate plant
diseases24–26,i n s e c t s27,28, and weeds 29,30 in a timely manner. Image-
based phenotyping has significantly advanced weed detection through
non-destructive high-throughput methods for accurate plant classifi-
cation and spatial distribution31. Drones and ground robots equipped
with RGB, multispectral, and hyperspectral cameras automatically
capture high-resolutionfield images, supporting the development of
algorithms for automatic weed detection and mapping 32,33,
diseases24–26, and insects27,28. Remote sensing technologies integrated
with AI provide scalable, precise solutions for weed management in
precision agriculture, with the potential to enable rapid, species-level
weed identification. A key challenge is developing AI models that can
distinguish subtle differences between crops, weeds, and look-alike
species in field conditions, which the PlantCLEF challenge addresses34.
This global competition uses a dataset of 80,000 plant species to
address multiple classes, class imbalance, variable image quality, and
noisy field backgrounds. For example, PlantCLEF ’s2 0 2 3d a t a s e t
included more than 1.2 million annotated images to train convolutional
neural networks (CNNs) forfine-grained identification. These advances
improve the accuracy of AI-driven weed detection tools while mini-
mizing false positives, bridging the gap between scalable data collec-
tion and actionable weed management strategies35.
Several challenges remain in automated weed identi fication in
crop production. These include (a) limitations in data quality and
quantity, which affect species coverage, (b) the need for model
development to handle the wide diversity and complexity of weeds, (c)
ensuring consistent performance across different species and growth
stages, and (d) deploying AI models on autonomous platforms and
integrating portable AI workstations for in-field applications.
The main challenge in developing robust AI-based deep learning
models to identify weeds in agriculture is the limited quantity and
quality of image-based datasets. Quantity concerns include the total
number of images and whether each class is adequately represented.
High-quality data must include diverse, high-resolution images taken
under varying conditions, such as different lighting conditions, growth
stages, soil types, and moisture levels. Previous studies have reviewed
publicly available weed datasets 32,36,37 (Supplementary Table S1).
However, many contain images from controlled environments, such as
greenhouses, and lack plant phenological variability 38,39. In addition,
these datasets often collect weed images from their local region,
reflecting regional biases and making it dif ficult to compile diverse
datasets for comprehensive AI models. Expanding dataset diversity is
crucial to improving model generalization and performance. iNatur-
alist is one of the largest publicly accessible biodiversity image repo-
sitories available for training AI models 40–42, offering research-grade
photos with species-level identification43. Previous studies have com-
pared research-grade iNaturalist observations with digitized herbar-
ium specimens and reported similarly low misidenti fication rates
between the two sources, supporting the reliability of iNaturalist data
for scienti ficu s e44. However, crowd-sourced biodiversity platforms
can include label noise, and we do not assume iNaturalist labels are
perfect. Self-supervised learning (SSL) during foundation pretraining
can mitigate label concerns. SSL learns visual features directly from
images without species labels, making it naturally robust to imperfect
annotations and particularly effective at large scale 45,46.Ap r e v i o u s
study from our group shows that combining SSL andfine-tuning is not
sensitive to label noise28. In addition, class imbalance is a concern, as
iNaturalist data often underrepresent rare or difficult-to-identify spe-
cies and overrepresent common ones due to observer preferences and
accessibility.
Selecting the appropriate deep learning model for weed identifi-
cation requires balancing model complexity, computational resour-
ces, data availability, and the need for high accuracy in real-world
agricultural applications. Early attempts used handcrafted features
and traditional machine learning (ML) techniques, such as support
vector machines and random forests (RF), to differentiate crops from
weeds based on color, shape, and texture descriptors 47–49. However,
these models struggled to handle variations in weed morphology and
complex environmental conditions, limiting their applicability. Recent
studies have used deep neural network architectures, such as CNNs, to
improve accuracy under various field conditions. CNN pre-trained
architectures, such as ResNet-50, Ef ficientNet, and DenseNet, have
demonstrated success in multiclass weed identi fication in cotton
fields50. Researchers have also developed graph-based deep learning
models for complex conditions51. CNN-based models have been used
to classify multiple weed species under various weather and sunlight
conditions52,53. Semi-supervised methods, such as semi-supervised
generative adversarial networks (SGAN), have emerged to address the
challenge of obtaining labeled data, achieving high accuracy with
minimal labeled data54. SemiWeedNet integrates labeled and unlabeled
images for weed segmentation and identi fication, improving model
robustness55. Despite these advances, traditional deep learning mod-
els, such as CNNs, struggle to generalize and scale because training
datasets lack suf ficient diversity and variability 32,56. Recent models,
such as transformers built around attention mechanisms, including
Vision Transformers (ViT), offer better scalability, precision, and effi-
ciency for large-scale image classification tasks than CNNs57,58.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
Weed recognition presents unique challenges, including immense
species diversity, wide variation in growth stages, and complex, clut-
tered backgrounds common in agricultural environments. Unlike
CNNs, which analyze images through local receptive fields and fixed
convolutional filters, ViTs utilize self-attention mechanisms that pro-
cess entire images holistically, capturing long-range dependencies and
context essential for distinguishing visually similar weeds and deci-
phering fine-grained morphological variation59. This attention-based
approach helps ViTs remain robust to shifting scales, rotation, and
occlusion in field data while making them more responsive to subtle
cues that distinguish closely related species. ViTs scale more efficiently
with larger datasets and models, enabling dramatic accuracy gains as
image collections grow. This is especially critical for weed identi fica-
tion, where databases often reach millions of images spanning over a
thousand classes. Recent work consistently shows that ViT archi-
tecture outperforms CNNs on heterogeneous plant disease and weed
datasets60,61.
However, a significant challenge arises when weed identification
models provide inaccurate predictions with high confidence, affecting
user trust and system reliability 62,63. Failing to warn users about the
model’s uncertainty when predicting look-alike weed species can
erode confidence in AI applications. Data bias from non-representative
training datasets can lead to unreliable predictions. The lack of
explainability in complex black box models makes it difficult for users
to trust their output, especially when errors occur64.
The performance of weed identi fication models in real-world
scenarios depends on their ability to accurately detect various weed
species under variable field conditions, including common noxious,
invasive, and look-alike species. Intraspecies dissimilarity refers to
individual differences within the same species 34 (Fig. 1a). Common
lambsquarters, for example, show considerable intraspecificv a r i a t i o n
in leaf shape and size, influenced by environmental factors, such as soil
nutrients and water availability 65. Horseweed also exhibits distinct
visual differences between its rosette and flowering stages, which
complicate identification66–68. The examples illustrate several plant
characteristics, including leaf shape, leaf margin, and changes in plant
morphology from seedling to fruiting stage. These variations within a
single species across different growth stages highlight the challenge of
models in consistently identifying species. In contrast, inter-species
similarity involves similarities between different species, including
shared physical characteristics and ecological niches 69. Interspecies
similarity occurs when two or more weed species resemble each other
in leaf shape, growth habit, flower structure, or seeds70 (Fig. 1b). For
example, amaranth species, such as redroot pigweed ( Amaranthus
retroflexus), Palmer amaranth, and common waterhemp, often co-exist
in disturbed habitats, making them difficult to differentiate. Poisonous
and non-poisonous species within the Apiaceae family (also known as
the carrot family) share traits, such as pinnately divided leaves and
umbel-shaped flower clusters, complicating identification71. Accurate
identification is essential because wild parsnip ( Pastinaca sativa)h a s
phototoxic sap that poses public safety risks. In contrast, caraway
(Carum carvi ) and Golden Alexanders ( Zizia aurea ) have different
ecological importance; Golden Alexanders are a bene ficial native
species, and caraway is a useful culinary herb. Monocot species, such
as yellow foxtail ( Setaria pumila), green foxtail ( Setaria viridis), and
giant foxtail (Setaria faberi), require close examination of morpholo-
gical traits. Key identi fication features include the presence and dis-
tribution of hairs in leaf blades, the color and shape of the bristly seed
heads, and the structure of the ligules and auricles for accurate
identification72. Despite differences in toxicity or ecological function,
these species share similar phenotypic characteristics, which compli-
cates accurate field identification.
Deploying AI models to detect weeds poses signi ficant com-
putational challenges, as complex deep learning models require
substantial computational resources 73. An ongoing research
challenge is balancing algorithm complexity with processing
capacity for real-time field applications and optimizing AI models
for ef ficient processing on edge devices 74. Integrating AI-based
weed detection models into edge devices, such as smartphones,
rovers, and drones, requires seamless integration for automated
identification and decision-making.
To address the above challenges in data quantity and quality,
model generalization and performance, and deployment, this study
presents WeedNet. This foundation model (global model) is trained on
a large-scale dataset derived from iNaturalist, capturing broad varia-
bility across weed species and environmental conditions. However, the
iNaturalist dataset has several limitations, including imbalanced spe-
cies representation, varying image resolutions, noisy backgrounds,
and a lack of real fie l dw e e di m a g e s .L e v e r a g i n gs e l f - s u p e r v i s e d
learning and supervised end-to-end fine-tuning enables the model to
learn robust visual features directly from the images themselves,
independent of species names or classifications, making this approach
particularly powerful for large-scale datasets prone to label noise28,75.
This model uses self-supervised learning (SSL) with a ViT architecture
to learn general visual patterns across a wide range of plant species
from various regions, without relying on labeled data59. Although the
global model captures rich, transferable features for plant identifica-
tion, it may not be optimized to detect or classify agriculturally rele-
vant weeds in a speci fic region or cropping system. To improve
relevance and accuracy in regional applications, the global model is
fine-tuned using smaller, expert-validated local datasets 28,76.T h i s
transfer learning approach leverages the generalizability of large
models while requiring less data and computation, thereby reducing
overfitting on limited datasets77. This hybrid approach reliably identi-
fies key weeds in targeted agricultural settings while reducing the need
for extensive local annotation. By integrating citizen science data with
expert labels, WeedNet ensures reliable real-world performance.
Consequently, the global foundation model captures transferable
visual representations from large-scale, multi-regional weed imagery,
while the localfine-tuning step efficiently adapts these representations
to region-specific weed communities with limited expert-validated
data. This transfer learning framework reduces the need for extensive
local annotation and demonstrates the global model ’s universality,
serving as a base model and enabling scalable weed identi fication
across regions worldwide.
Results
Global citizen science dataset
The WeedNet dataset contains 1593 weed species and 813 genera, with
a total of /C2414 M iNaturalist images, spanning a wide diversity of weed
species across classes, orders, and families. The species and taxonomy
information are presented in Supplementary Note 2. Common yarrow
(Achillea millefolium) has the most training images (150,154), while
common salt tree ( Caragana halodendron) has the fewest (182). The
median number of training images per species is 3347, and only 11% of
the species have fewer than 500 images. This large, high-quality,
diverse dataset enables the deep learning model to capture intra- and
inter-species variability, improving its ability to make accurate identi-
fications across fields.
Global WeedNet model development
The training campaign was conducted on a large out-of-domain data-
set, i.e., a non-weed dataset (3.5 billion Instagram hashtag images),
followed by a second stage of SSL pre-training on the in-domain, i.e.,
weed dataset (iNaturalist), and concluded with supervisedfine-tuning
on labeled data (iNaturalist + list of all other datasets used here)
(Table S5). This model, known as WeedNet, achieved a classi fication
accuracy of 91.02%. The accuracy histogram for all 1593 weed species
shows that 41% of species have 100% accuracy, with a wide range of
training images (188 –15,054). Moreover, 89.7% of species have test
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
accuracy above 80% (Fig. 2a). The regression (Slope = 0.00223,
R2 = 0.051) indicates that increasing training images by 1000 improves
accuracy by only 0.22%, suggesting that the model ’sp e r f o r m a n c ei s
largely independent of class size. The intercept indicates that the
baseline accuracy (89.0%) applies to species with very few training
images, confirming that although some species have far more training
samples, model generalization is not dominated by data
volume (Fig. 2b).
True-leaf
stage
Vegetative
stage
Mature
plant
FruitsSeedling
stage
Seedling
stage
Rosette
stage
Vegetative
stage
Mature
plant
Fruits
Common lambsquarters (Chenopodium album)
Horseweed (Erigeron canadensis)
(a) Intraspecies dissimilarity
Palmer amaranth
(Amaranthus
palmeri)
Redroot pigweed
(Amaranthus
retroflexus)
Common
waterhemp
(Amaranthus
tuberculatus)
Water
hemlock
(Cicuta
maculata)
Wild parsnip
(Pastinaca
sativa)
Poison hemlock
(Conium
maculatum)
Golden
Alexanders
(conserved)
(Zizia aurea)
Wild carrot
(Daucus carota)
Caraway
(Carum
carvi)
Green foxtail
(Setaria
viridis)
Yellow foxtail
(Setaria pumila)
Giant foxtail
(Setaria
faberi)
Amaranth
weeds
Poisonous
species
Non-poisonous
species
Foxtail
weeds
(b) Interspecies similarity
Fig. 1 | Challenging scenarios that arise during weed image classification in
the wild. a Examples of intraspecies dissimilarity across developmental stages in
common lambsquarters (Chenopodium album)a n dh o r s e w e e d(Erigeron
canadensis). b Examples illustrating inter-species similarity challenges among
species inAmaranthusspecies at the seedling stage, poisonous and non-poisonous
species at the inflorescence stage, and foxtail species at the heading stage.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
Foundation global model
Global-to-local fine-tuned model
(a) (b)
(d)(c)
(e)
Fig. 2 | Performance analysis across global and Iowa models. a Histogram
showing the per-class accuracies across 1593 weed species. The plot reveals that
nearly 90% of the species achieve over 0.8 (80%) accuracy.b Scatter plot illustrating
the relationship between prediction accuracy and the amount of training data for
the model. Increasing the number of training images does not consistently lead to
higher test accuracy. Species with fewer training images achieved 1.0 (100%)
accuracy. The figures of the global-to-local fine-tuned model. c Histogram depict-
ing per-class accuracies across 84 Iowa weed species. d Histogram showing the
distribution of the number of images in low-performing species, including the
count of expert-collected data for these species.e Histogram illustrating the
accuracy improvement for low-performing species trained with expert data. The 11
species: Ap Amaranthus palmeri,C l Cenchrus longispinus,E i Eleusine indica,E v
Eriochloa villosa,M s Muhlenbergia schreberi,P m Persicaria maculosa,P p Persicaria
pensylvanica,S f Setaria faberi,S p Setaria pumila,S v Setaria viridis,S b Sorghum
bicolor.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
The classi fication performance analysis compared genus- and
species-level results and indicates that misclassifications resulted from
intra-genus look-alike confusion and random errors (Table 1). The
difference between genus- and species-level performance quanti fies
how much total prediction uncertainty comes from intra-genus con-
fusion rather than random errors across unrelated species. A 5%
accuracy difference indicates that most misclassi fications occurred
within the intra-genus confusion (e.g., Amaranthus retroflexus vs. A.
tuberculatus) rather than the random errors between unrelated weed
species.
Although data imbalance was not the primary determinant of
model accuracy, it interacted with intra-genus confusion to cause
particularly low performance in a small subset of species. The 1593-
species model showed that 16 species had accuracy below 20% (Sup-
plementary Table S2). Among these sixteen species, most of the mis-
identifications occurred with other species of the same taxonomic
genus (Supplementary Note 3). Moreover, many misclassified images
were assigned to species with substantially larger training sets.
To diagnose the reasons for classi fication differences within the
genus, we conducted additional analyses of intra-genus confusion and
data imbalance using eight closely related Amaranthus taxa. To
investigate performance differences due to intra-genus confusion, we
clustered latent representations extracted from a Vision Transformer
backbone using k-means and used within-cluster variance as a proxy
for visual diversity (Supplementary Note 4). Supplementary Fig. S1
summarizes how within-species diversity changes as the number of
k-means clusters increases within the Amaranthus genus. At k =1 , A.
hybridus exhibited the highest normalized within-cluster sum of
squares (WCSS), whereas A. retroflexus exhibited the lowest, suggest-
ing that A. hybridus expresses broader visual variability in the dataset.
In contrast, A. retro flexus implies uniform plant appearance across
images, reducing within-class dispersion and facilitating discrimina-
tion. A distinct pattern was observed for A. tuberculatus.W h i l ei t
showed relatively high variance atk = 1, its normalized WCSS declined
sharply with increasingk and became among the lowest at largek.T h i s
trend suggests that variability within A. tuberculatus is not purely dif-
fuse but is instead organized into separable archetypes. When suf fi-
cient archetypes are available, and within-cluster variance is small,
images of A. tuberculatus can be represented by multiple stable
archetypes, which align with its high classification accuracy. To further
assess how sampling interacts with visual variability, we compared
classification performance under balanced and naturally imbalanced
training regimes (Supplementary Table S3). Balanced sampling
improved performance for several species, whereas imbalanced
training favored certain taxa but degraded accuracy for visually het-
erogeneous species, such as A. hybridus and A. powellii (Supplemen-
tary Note 5).
The training sample size interacted with within-species variance
to shape accuracy outcomes.A. retroflexus and A. tuberculatusspecies
improved with more images, likely because extra data covers each
archetype cluster well. In contrast, species with high dispersion, such
as A. hybridus and A. powellii, showed low accuracy under imbalance,
consistent with incomplete sampling of within-species variation and
increased confusion among visually similar Amaranthus species.
Together, these results support the conclusion that intra-genus con-
fusion reflects the joint effects of (i) within-species heterogeneity and
(ii) insuf ficient sampling across the various visual patterns present
within a species.
Region-specific weed identification through global-to-localfine-
tuning
The Iowa local model resulted in a subset of 84 weed species and
achieved an overall accuracy of 97.38%, with most species exceeding
90% per-class accuracy (Fig. 2c). However, eleven species exhibited
lower accuracies (Fig. 2). To address this performance gap, we inte-
grated expert-verified samples from various datasets 50,53,78,79 specifi-
cally for low-performing species and fine-tuned the existing model
(Fig. 2d). The refined WeedNet local model (fine-tuned again), trained
with expert-validated data, had an improved accuracy of 97.68%
(Fig. 2e and Supplementary Table S5). We used a paired t-test to ana-
lyze classi fication accuracy before and after adding 3017 curated
images. Across these 11 low-performing species, accuracy increased by
an average of 1.82%, although this improvement was not statistically
significant (d f =1 0 , p = 0.104). The effect size was small (Cohen ’s
d = 0.42), indicating modest but consistent gains across species. In
contrast, the remaining 73 species without additional training images
showed no meaningful change in accuracy (mean
improvement = 0.07%, n =7 3 , p = 0.708). These results suggest that
incorporating curated expert images can enhance model performance
for certain species, but the magnitude of improvement depends on
species-specific image variability and the quantity and diversity of new
data added. Thisfinding also aligns with our broader observations that
accuracy is not driven solely by training image volume; instead, images
that capture distinctive, species-speci fic morphological variability
contribute more to model performance.
Performance of WeedNet on in-field and external weed datasets
To substantiate our claim of early high-precision recognition under
realistic constraints, we evaluated WeedNet across multiple indepen-
dent, expert-annotated agricultu ral weed datasets that differ sub-
stantially from iNaturalist imagery in image-capture conditions (Fig.3).
Across nine external datasets, the foundation model achieved top-1
accuracies ranging from 25.71% to 72.33% in the zero-shot setting,
reflecting the expected domain shift between open-access, hetero-
geneous imagery and in- field agricultural conditions. Notably, we
trained on the 2023 in-field images, while the 2025 images served as an
independent test set.
Despite the limited availability of target-domain images, fine-
tuning resulted in marked and consistent improvements in identi fi-
cation accuracy (Fig. 3b). The largest gains were observed in datasets
emphasizing early growth stages and subtle morphological traits. For
example, accuracy on PlantSeedlingV2 increased from 25.71% in the
zero-shot setting to 86.25% with k = 10 and 91.25% with k =2 0 . T h e s e
findings support our central premise thatfine-tuning WeedNet enables
rapid adaptation for high-precision recognition of early-stage, difficult-
to-identify weeds.
Out-of-distribution detection analysis
W ee v a l u a t e dt h et r a i n e dw e e dm o d e l’s EBM performance using the
same procedure described previously 80,81. We evaluated uncertainty
quantification using three performance measures: AUROC (area under
the ROC curve), AURP (area under the precision-recall diagram), and
FPR95 (false positive rate at 95% true positive). We choose the OOD
threshold based on the ROC curve at −8.9349 to maximize separation
between ID and OOD data (Fig.4); we also select the hyperparameter T
(temperature) via hyperparameter tuning as 0.02. The results show
that the OOD classifier achieved an AUROC of 95.84, an AUPR of 94.08,
an FPR95 of 0.00397, and an accuracy of 89.60% in detecting out-of-
Table 1 | Comparison of WeedNet classification performance
at the genus- and species-levels
Prediction metric Genus-level Species-level
Number 813 1593
Accuracy 0.9578 0.9102
Macro precision 0.9571 0.9227
Macro recall 0.9540 0.9102
Macro F1 0.9533 0.9066
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
Fig. 3 | Performance of WeedNet on in-field and external weed datasets under
k-shot adaptation. a Example weed images of representative weed species from
the iNaturalist dataset, compared with multiple agricultural benchmark datasets
(CottonWeed1279, CottonWeed1550, 2 Seasons32, DeepWeeds53, WeedsAI78,a n d
PlantSeedlingV2158,C W D 3 082, Sunli et al.38, and Iowa Field 2025), illustrating varia-
tion in background, growth stage, and imaging conditions.b Top-1 classification
accuracy (%) across external datasets under different k-shot settings (k = 0, 10, 20,
and all), where k = 0 represents zero-shot evaluation using the foundation model
and larger k indicates increasing numbers of target-domain samples used forfine-
tuning. Dataset titles report the number of tested species (n). Details are provided
in Supplementary Note 12.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
distribution data. Mapping test data into energy can more clearly
distinguish ID from OOD data (Fig. 4a).
Conformal prediction analysis
In this analysis, we set the hyperparameterα to 0.05, which led us to a
threshold^q of 0.903 on the confidence score. Therefore, the algorithm
includes a class name in the conformal prediction set if its confidence
score softmax value, is greater than 1 /C0 ^q.T h et r a i n e dc o n f o r m a l
prediction algorithm covered the correct label with 0.947 accuracy.
We illustrate an example of the performance of our trained conformal
prediction in (Fig. 4b).
To further evaluate the model in real-world scenarios, we used it
to test challenges to model performance due to intra-species dissim-
ilarity and inter-species similarity. Table 2 shows the quantitative
results, and Supplementary Figs. S2 and S3 show differences across
developmental stages and between look-alike species. The intra-
species dissimilarity results show that identifying early-stage plants is
difficult, and the model ’sa c c u r a c yi m p r o v e ss i g n ificantly across
developmental stages. The model struggles most with identifying look-
alike species, particularly grass species.
Intra-species dissimilarity
The model achieved an overall accuracy of 79.2% on the weed identi-
fication dataset (Table2). Across development stages, the plant’se a r l y
stage consistently shows lower accuracy than the vegetative and
reproductive stages (Table 2). The results show that the model per-
formed better in the later growth stages. As illustrated in the intra-
species example (Supplementary Fig. S2), early-stage plants have not
yet developed most phenological traits, showing only cotyledons and a
few true leaves. In contrast, plants in the vegetative stage have fully
developed leaves and stems, while those in the reproductive stage
show distinct reproductive features, such as flowers and fruits,
enabling more accurate identification.
A further experiment used the CWD30 dataset 82 to thoroughly
evaluate model performance across weed growth stages. The time-
series analysis highlights developmental effects on recognition accu-
racy and shows that fine-tuning improves robustness across stages
(Supplementary Fig. S4). On this dataset, where images differ markedly
from the training data, the foundation model showed low accuracy at
the early stage and improved performance as plants developed and
diagnostic morphological features became more pronounced. This
pattern underscores the importance of incorporating early weed
images when assessing real-world weed recognition performance.
After fine-tuning, the model produced consistently high accuracy
across the developmental timeline. Specifically, the fine-tuned model
achieved 88.8% accuracy in the early stage, 94.3% in the middle stage,
and 85.0% in the late stage, compared with 34.1%, 54.1%, and 50.0% for
the foundation model, respectively. These results indicate that fine-
tuning can narrow the early-stage performance gap and improve
generalization to different imaging conditions.
Inter-species similarity
Model accuracy for the inter-species similarity, or look-alike species,
challenge decreased to 60.6% (Table 2). Comparing accuracy, Macro
precision, Macro recall, and Macro F1 score between overall look-alike
and life-stage classes indicates that the look-alike challenge is harder to
(a) OOD Analysis Results (b) CP Result for an Example
yrogetaC tesataDetaR evitisoP eslaF
True Positive Rate
Energy
Fig. 4 | ROC curve over all possible threshold values.We chose a threshold value
that provides the lowest false positive rate (FPR) at 95% true positive rate (left). Box
plot of energy values for in-distribution weed dataset (ID, n = 3186 independent
image samples) and out-of-distribution (OOD,n = 3186 independent image sam-
ples) data. Each data point corresponds to the energy score computed from one
independent image. No technical replicates were used. In the box plots, the center
line represents the median, the box bounds indicate the 25th and 75th percentiles,
the whiskers extend to the most extreme values within 1:5 × the interquartile range,
and points beyond the whiskers are shown as outliers. The red line indicates the
threshold used for separating ID and OOD data (center). Conformal prediction
example: Amaranthus palmeri(56%), Amaranthus spinosus(44%) (right).
Table 2 | Results of model performance for weed identification challenges
Challenges Class Number of testing images Accuracy Macro precision Macro recall Macro F1
Early plant stage 84 151 65.8% 67.0% 61.7% 61.5%
Vegetative stage 84 190 80.2% 86.5% 79.8% 80.8%
Reproductive stage 84 271 85.7% 93.3% 87.0% 89.1%
Life stagea 84 612 79.2% 93.1% 79.6% 83.7%
Amaranthus 8 50 50.0% 57.4% 51.8% 47.7%
Apiaceae 11 61 77.1% 97.4% 77.4% 84.9%
Grass 5 31 45.2% 59.0% 44.0% 50.0%
Look-alikea 24 142 60.6% 76.0% 62.0% 65.3%
The model was tested for differences in life stages (intra-species dissimilarity)a and look-alike species (inter-specifics i m i l a r i t y )a. Quantitative results include accuracy, Macro precision, Macro recall,
and Macro F1.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
distinguish. In addition, the results show that model performance
varied across species families (Table 2). The results indicate that the
Apiaceae family outperformed both the Amaranthaceae and Poaceae
families in accuracy, Macro precision, Macro recall, and Macro F1 score
(Table 2). The model can reach relatively high accuracy, even when
images focus only on in florescence features (Supplementary Fig. S3).
Additionally, 97.4% Macro precision indicates that the test species list
is a comprehensive dataset that covers most look-alike species with
fine-grained leaf features and umbrella-likeflowers. The Macro preci-
sion in the amaranth and grass dataset is 57 –59%. This indicates that
the global dataset did not include other look-alike species among these
eight amaranth species and five grass species. This is because many
grass species, in addition to foxtails, in the global dataset and amar-
anth species have leaf morphology similar to other broadleaf species in
other families. Integrating these with the analysis of intra-genus con-
fusion suggests that future improvements in weed recognition should
prioritize data quality over data quantity. Capturing key distinguishing
features of low-performing species and morphologically similar taxa
will be more important than simply increasing dataset size. Such
informative features enable the model to consistently learn species-
specific visual patterns, thereby improving classification robustness.
Weed identific a t i o no nr o b o t i cp l a t f o r m s
The WeedNet model was evaluated in two different settings: (i) the
targeted identification of 15 speci fic weed species throughout the
evaluation period and (ii) an untargeted visual survey assessing the
presence of various weeds in the field (Fig. 5). Images from UAV and
ground rover platforms were acquired in the field, and WeedNet was
used to process images offline on a workstation. When WeedNet was
applied to images collected from UAVs and ground-based robots, it
accurately identified weeds in both targeted and untargeted evalua-
tions during the early-season dates (August 17 and August 24).
Although the current model functions as an image classifier rather than
an object detector, its strong performance on small, early-stage weeds
demonstrates robustness across imaging platforms and the ability to
correctly classify weed species even when plants are small and image
resolution is reduced.
A st h es e a s o np r o g r e s s e d ,t h em o d e l’s performance diverged
between the two evaluation targets. For the 15 targeted weeds, accu-
racy remained stable because bias weeds were excluded within the
bounding boxes, minimizing interference from surrounding plants
and allowing the classifier to focus on the intended species (Fig. 5). In
contrast, accuracy declined in the untargeted setting, particularly on
August 30 and September 16, when weed density and canopy com-
plexity increased. Untargeted images frequently contained multiple
weed species within the frame, resulting in occlusion, overlapping
foliage, and visual clutter that hindered the classifier’s ability to isolate
the correct species. By thefinal evaluation date (16 September), dense
canopy cover, mixed vegetation, and shadowing further reduced fea-
ture visibility, contributing to misclassification (Fig. 5). These findings
Fig. 5 | Field evaluation of the WeedNet model using UAV and ground
rover data. The model was tested across multiple days (August 17, August 24,
August 30, and September 16) in the year 2024 under two settings: (i) identification
of 15 targeted weed species throughout the evaluation period and (ii) an untargeted
visual survey of weeds present in the field. Sample images of randomly observed
weeds are shown for each evaluation day. The box within the images highlights the
weed in focus. Amiga refers to the Farm-ng Amiga ground-based robot. * Indicates
that weeds were obscured due to overlapping canopy.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
highlight the need for fine-tuning WeedNet for object-detection
workflows and underscore the importance of selecting appropriate
imaging times when deploying UAV or ground-robot platforms for
WeedNet classification.
Discussion
Data challenges
This study represents a pioneering effort to use biodiversity science
resources to advance AI models for weed classification. The extensive
collection of images and metadata collected, particularly from the
iNaturalist dataset, marks a significant milestone and provides unpar-
alleled training data for WeedNet. Most species benefitf r o mm o r et h a n
500 verified training images, contributed by observers who captured
various plant phenotypes, colors, viewpoints, backgrounds, light
conditions, and growth stages. Previous studies have often focused on
only economically signi ficant or regionally dominant weed
species50,79,83,84. These models, while effective within their limited
scope, lack greater applicability. In contrast, WeedNet is designed for
deployment across diverse regions and cropping systems due to its
global scale and species diversity.
Furthermore, crop/weed classification models typically overlook
species-level weed identification, limiting their applicability in preci-
sion weed management, where species-specific herbicide recommen-
dations are critical, especially for differentiating herbicide-resistant
from susceptible weed populations85–87. WeedNet includes a diverse
range of globally relevant weed species, encompassing invasive, nox-
ious, poisonous, and conserved categories. The dataset also includes
scientific and common names for each species, supporting consistent
taxonomy and improving the reliability of species-level identification
across diverse geographic and agronomic contexts.
Model challenges
The results show that SSL and fine-tuning strategies can effectively
leverage citizen science datasets to improve WeedNet training and
accurately identify a wide range of weed species. Local models can
improve the prediction accuracy for low-performing species by
employing a global-to-local fine-tuning strategy. Furthermore, SSL
pretraining on a large, diverse dataset, followed by fine-tuning on
small, expert-verified subsets, enables WeedNet to adapt into region-
specific, high-performing model variants. In weed detection and clas-
sification, fine-tuning pre-trained models on any plant dataset has
enhanced the accuracy of supervised learning algorithms88.
Beyond boosting model accuracy, WeedNet ’s fine-tuning
approach addresses a key AI challenge: in many systems, adding new
classes requires retraining the entire model, an expensive, resource-
intensive process. WeedNet’s global-to-local fine-tuning bypasses this
by integrating new species by retraining only the local model with
targeted images, leaving the large global model untouched. In a case
study, we fine-tuned the Iowa model to two newly observed invasive
species found in Iowa, common copperleaf and Asian copperleaf,
achieving 96.98% accuracy across 86 species, nearly matching the
original 97.38% accuracy across 84 species (Supplementary Note 6).
Built on a 1593-species plant-speci fic database, WeedNet inherently
captures diverse botanical features, enabling rapid, low-cost expan-
sion for local weed classi fication while maintaining state-of-the-art
performance.
One notable limitation our analysis reveals is that the combined
effect of intra-genus confusion and class imbalance reduced model
performance. Although WeedNet performs strongly overall, the
quantitative comparison between genus- and species-level predictions
shows that most errors arise from misclassi fication among closely
related species rather than random mistakes across unrelated taxa.
This is further supported by the 16 lowest-performing species, where
every misidentified sample was consistently predicted as a morpho-
logically similar species within the same genus. Class imbalance
amplifies this problem: rare species often have far fewer training
images than their common or invasive relatives. As a result, under-
represented species are overshadowed by dominant species with tens
of thousands of images, which biases the model toward these majority
classes during training. However, this pattern does not mean more
images lead to higher accuracy for all species; rather, it re flects the
model’s inability to extract distinguishable species-level features when
phenotypes look alike, and training samples are limited. In other
domains, class-imbalance learning approaches, such as advanced
multiclass algorithms 89, transfer learning with resampling 90,o r
reweighting techniques91, have been proposed to address this chal-
lenge. However, these weed-identi fication methods require colla-
boration with weed scientists to define minority classes, since species
with few images but distinct features can still achieve high classi fica-
tion accuracy. Encouraging farmers, researchers, and agricultural
extension workers to contribute labeled images can improve model
performance and build a more comprehensive database. WeedNet can
reduce inconsistencies in crowdsourced datasets by integrating expert
data with crowdsourced contributions.
Because ensuring WeedNet ’s reliability and trustworthiness is
critical for practical applications, we incorporate uncertainty quanti-
fication and out-of-distribution detection mechanisms. These features
help identify cases where the model lacks confidence, prompting users
to seek expert verification28,80. By incorporating confidence scores and
visual indicators of uncertainty, users can make more informed deci-
sions and mitigate the risks of misidenti fication. These features can
also help identify new invasive species in a region when the model
consistently reports that captured weeds are out of distribution, and
they can help farmers investigate further to identify the invasive spe-
cies correctly.
Performance challenges
Look-alike species are a major challenge for plant classi fication; spe-
cies that differ only in a subset of morphological traits are harder for
deep learning models to classify. A previous study thoroughly quan-
tified species distances learned by deep learning models and the
morphological trait space of both similar and distinct phytoplankton
species, including variation across shapes, within genus groups, and
multiple image sources of algal strains 92. The results indicated that
deep learning model representations are highly correlated with mor-
phological features, which is consistent with thefindings of this study.
LifeCLEF 201693 highlighted whether to use whole-plant images, single
organs, or multiple organs for species identification, and the training
dataset included both species and plant-organ labels, such as leaf,
flower, fruit, bark, stem, and branch. Prior work comparing different
plant organs and whole-plant images generally shows that using mul-
tiple organs outperforms using a single organ (for example, flowers
alone) and also outperforms whole-plant images94–96.
Rzanny et al. 97 conducted an experiment on Poaceae (the grass
family) to evaluate identification accuracy using different perspectives
and plant parts, including the inflorescence, collar region (leaf neck),
leaf tip, leaf underside, and leaf nodes. The authors trained separate
models for each organ, as well as a fused model combining all organs.
Their results showed that images of the in florescence and the ligule
conveyed the most species-discriminative information. The authors
concluded that “even species considered very difficult to identify can
achieve high accuracy in automatic identi fication as long as images
depicting suitable perspectives are available.” In this study, we also
show examples of using images of the grass collar region for prediction
(Supplementary Note 7). This study emphasizes that future studies can
utilize distinguishable morphological features and improve recogni-
tion performance for look-alike species.
Intra-species dissimilarity and differences in developmental
stages indicate that differentiating plant characteristics drives model
accuracy (see the section on intra-species dissimilarity). In the early
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
stage and for grass species, fewer characteristic features result in lower
accuracy and more misidentification than in other testing categories.
Previous studies also report that most misidenti fication results from
similar morphological characteristics, especially during the early stage,
when they can be discriminated only by texture and color98,99.
Nevertheless, image-based identi fication faces challenges for
certain species due to large intraspecific variation, small interspecific
differences, limited training images, and variation in image acquisition
conditions100. To improve identi fication performance, incorporating
multiple types of observational information has shown greater bene-
fits than relying on single image classification alone. Metadata, such as
date and geographic location have been used as contextual informa-
tion in multi-input models41,101. Location and time information can infer
local weather conditions, habitat type, and observer expertise. For
weeds, clusters of visually similar weed images collected in close
proximity are more likely to belong to the same species, as indicated
by the weed distribution study102. Geolocation information therefore
helps distinguish look-alike species observed across different regions.
In addition, using multimodal data has shown signi ficant improve-
ments compared with image-only models 41,101,103.F u r t h e r m o r e ,f o r
look-alike species where images alone do not suf fice, DNA-based
assays may provide higher discriminatory power. DNA markers are
more costly but promising. A recent study comparing species classi-
fication using DNA-based, image-based, and multimodal models
showed that image-based models exhibit weaker genus-level dis-
crimination than DNA-based models, whereas images can outperform
DNA in reducing intra-genus confusion for some genera. Integrating
DNA and image data consistently yields the lowest confusion rates at
both inter-genus and intra-genus levels, demonstrating the com-
plementary strengths of the two modalities 104. Because DNA-based
identification requires suf ficient genome coverage, species-level
variability, and high data quality, this strategy can identify emerging
herbicide-resistant weeds that may cause substantial agricultural
damage.
Although look-alike species and very early-stage weeds can cause
species-level misidentification, this issue is often secondary in field-
scale weed management, where the primary objective is effective
control rather than exhaustive botanical cataloging. The fundamental
premise of linking model confusion with management groups is that
weed control decisions are driven by treatment response, not solely by
taxonomic precision. If multiple species within afield respond similarly
to the same herbicide or mechanical control strategy, a classifier that
groups them into a shared management category remains highly
effective for operational decision-making.
In practical herbicide applications, farmers commonly use
tank-mix herbicide formulations, which combine multiple modes
of action to improve control ef ficacy and robustness 105. This
management-oriented concept has previously been applied to
precision spraying systems. For example, Gutjahr et al. grouped
weed species into annual broadleaf weeds, grass weeds, and
Galium aparine in winter wheat, and into annual broadleaf weeds,
grass weeds, and perennials in maize, to guide multiple-tank
sprayer design and application strategies 106.
While WeedNet supports such management-level grouping, it also
provides species-level taxonomy and ecological information through
the WeedID application. Our analysis shows that most misclassi fica-
tions occur among species within the same genus, which often share
similar morphology and management responses; nevertheless, the
model achieves 95.78% genus-level accuracy. Importantly, WeedNet
reliably identi fies highly competitive and economically damaging
weeds, such as velvetleaf, waterhemp, Palmer amaranth, and giant
foxtail. They are characterized by aggressive growth, herbicide resis-
tance, and significant yield impacts107. Accurate identification enables
farmers to apply targeted herbicide products and management
strategies.
Deployment challenges
The model tested on images from the robotic platform showed that
citizen-sourced images capture weeds under diverse conditions and
that the deep learning model can effectively extract distinguishing
features and perform well across platforms. When comparing manu-
ally captured images with those from robotic platforms, the primary
difference lies in image resolution and the amount of plant detail
captured. Previous studies have shown that image resolution drives
the accuracy of individual weed plant discrimination 108,109.I np a r t i -
cular, the UAV images in this study achieved resolutions of
0.1–0.12 cm/pixel, significantly contributing to the model ’s effective-
ness by preserving fine morphological traits. Meanwhile, a subset of
citizen images focused only on speci fic plant characteristics (e.g.,
leaves, flowers, or stems), whereas the robotic platform typically
captured the entire plant. These differences between citizen datasets
and robotic applications highlight the importance of comprehensive
plant-characteristic coverage and high-resolution image data when
training and deploying models for weed discrimination across imaging
platforms.
In this study, all WeedNet inference was performed on multiple
workstation-class hardware, including a CPU workstation, a data-
center GPU, and a portable AI workstation. Smartphone access was
provided through WeedID, a browser-based application in which
uploaded images are processed on a remote server. Deploying
WeedNet models directly on smart devices, including smartphones,
drones, and ground robots, would bring substantial real-world. Edge
devices typically have limited memory, processing power, and frame-
rate capacity, so we need to optimize our ViT model using compres-
sion techniques, quantization, and low-parameter architecture choices
to maintain fast, resource-ef ficient inference with minimal accuracy
loss110. Platforms such as NVIDIA Jetson Orin Nano or Jetson Xavier are
commonly used in robotic and agricultural edge systems; however,
their significantly lower GPU memory and compute capacity would
likely require model compression techniques (e.g., pruning, distilla-
tion, or INT8 quantization) to deploy the full model efficiently. Inves-
tigating such compression strategies for Jetson-class edge devices is an
important direction for future work. Real-time responsiveness is cri-
tical for such deployments, as robotics applications rely on prompt
predictions for navigation and control, and latency from multiple
concurrent processes can affect decision-making andfield operations.
Network reliability is also a concern, since agricultural environments
often have weak or unstable connectivity, making cloud inference and
updates unpredictable111; this motivates future work on on-device
inference and robust local processing. Finally, as deployments are
scaled to multiple devices, backend systems must be designed to
handle higher loads and maintain low-latency performance for all
users112. These combined strategies will ensure WeedNet remains effi-
cient, responsive, and reliable across a range of deployments.
For future applications, WeedNet could be extended for multi-
object classification and object detection in complex field settings.
High weed infestations often result in overlapping plants, making it
difficult to distinguish between species in a single image. Furthermore,
variations in lighting and shading across the image can pose additional
challenges53. A future study will pursue a follow-up study utilizing
detection transformer models (DETR)113. The WeedNet encoder would
serve as the backbone feature extractor, and the DETR decoder would
then operate on object queries. Fine-tuning this WeedNet-initialized
DETR model on UAV and ground-ro bot images with bounding-box
annotations would enable simultaneous localization and species
identification of multiple weeds per image, providing a direct pathway
toward autonomous, species-speci fic spraying and robotic weed
management.
WeedNet can also expand beyond identi fication to include seg-
mentation and quantification of weed density estimation. Using the
trained classi fication encoder for a segmentation model and
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
explainable AI, images can be segmented to identify the spatial dis-
tribution of weeds without significant annotation cost30,114. Farmers can
gain insight into weed infestation patterns and plan targeted inter-
ventions. Furthermore, density estimation can quantify weed coverage
in fields, providing data-driven recommendations for site-speci fic
weed control. These advancements will enhance the model ’s utility,
making it an indispensable tool for precision agriculture and large-
scale weed management strategies. Looking ahead, we plan to broaden
WeedNet’s scope by developing models for plant groups beyond
agricultural weeds. This includes creating dedicated local models for
plant biodiversity, forest tree species, and prairie plant species 42.
Beyond expanding species coverage, we aim to integrate advanced AI
technologies, such as multimodal learning115 and explainable AI116,117,t o
further boost identi fication accuracy, adaptability, and
interpretability.
The study developed a global-scale weed identi fication model,
WeedNet, using a citizen-sourced image repository (iNaturalist) with
over 14 million images representing 1593 weed species across cate-
gories, such as invasive, poisonous, noxious, and conserved plants. We
used an end-to-end WeedNet pipeline, training with a strategy that
combines SSL andfine-tuning using advanced architectures, including
MAE and ViT, to improve accuracy and robustness. To further improve
prediction trustworthiness, we added two wrapper models: OOD
detection and conformal prediction. WeedNet achieved a 91.02%
accuracy across all 1593 species and 97.38% accuracy in 84 Midwest US
weed species. The model was further evaluated under real-world
challenges, such as intra-species dissimilarity and inter-species simi-
larity, showing that distinguishing morphological traits strongly cor-
relates with accurate classi fication. Furthermore, successfully
predicting captured images from UAV and robotic platforms confirms
the model’s adaptability to varying resolutions and lighting conditions,
highlighting its potential for future real-time weed identi fication.
Integrating the WeedNet Application Programming Interface (API)
with the chatbot API yields the WeedID application (pestidapp.com),
establishing it as a powerful and intelligent decision-support tool for
farmers and researchers in modern agriculture.
Methods
Dataset
We obtained the image dataset from iNaturalist, which consists of
approximately 257 million observations spanning five kingdoms,
including approximately 172,000 plant species118. We carefully curated
the image dataset with the list of invasive species profiles (60 species,
NISIC, USDA)119, Midwest Invasive Plant Network (458 plant species in
the US and Ontario, Canada) 120, and Bugwood images (1916 plant
species)121 to filter it down to 1593 species categories of relevant plants,
including crop-specific weeds, noxious weeds, invasive weeds, and
weed species from around the world (Supplementary Note 2). In
addition, the dataset also includes crop species for application pur-
poses (Supplementary Note 2). We excluded species with fewer than
100 research-grade images in the iNaturalist dataset. Thefinal dataset
comprises 14 million images, which were veri fied to ensure accurate
species labels. Figure 6 illustrates the WeedNet work flow, including
data resources, model development, dataset information, and model
deployment on ground rover and drone platforms. We used repre-
sentative images and the global distribution map from iNaturalist to
illustrate example images and image resources collected worldwide118.
In addition, we collected image metadata and geolocation information
for 84 Iowa weed species to map their observed locations across
Iowa118.
Although iNaturalist data may contain label noise and imperfect
annotations, self-supervised learning and fine-tuning can partially
mitigate these issues. For a very large population, the precision of a
proportion estimate depends pri marily on the number of indepen-
dently reviewed samples rather than on the percentage of the total
population sampled. To quantify potential label noise within the iNa-
turalist subset used in this study, we conducted a complementary
sanity check. Domain experts independently reviewed a random
Weakly supervised pre-
training
Self-supervised learning
(SSL)
Supervised End-to-end
Finetuning
iNaturalist labeled data
2-level Pre-training
Quantized Weed
Classification Model
Model Trustworthiness
Out of Distribution
Detection
+
Conformal Prediction
Global Citizen
Science Data
Global WeedNet
Model Development
WeedNet Model
Deployment
~14 Million Images of around 1600 Global Plant
Species
Global2Local
Finetuning
Smartphone App
Sprayer drone
Ground rover
Region-Specific Local
WeedNet Model
II
OOOOOOOOOOOOOOOOOOOOOOOOOOOO
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
MINNESOTA
NEBRASKA
MISSOURI
N
0 200 km
Fig. 6 | Overview of the Global Weed Model development and implementation.
The Global Weed AI Model is trained on approximately 14 million images covering
around 1600 plant species from the iNaturalist database. The end-to-end WeedNet
pipeline is accessible from smartphones through the WeedID web application. The
global-to-local approach enablesfine-tuning on region-specific weed species using
fewer images, reducing computational requirements while improving accuracy.
Such local, region-specific lightweight models could identify weed images captured
using smartphones and robotic platforms, such as UAVs and ground rovers,
potentially deploying these models for high-throughput weed identification.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
sample of 20 images per species across 84 Iowa weed species, fol-
lowing the Iowa State University Extension and Outreach Weed Iden-
tification Field Guide122. Of the inspected images, 51 were mislabeled.
The observed error rate was 3.04%, with a 95% con fidence interval of
±0.82% (2.22%, 3.86)123,124. Most misidentifications resulted from con-
fusion among species within the same genus, mixed vegetation within
the image frame, incomplete or ambiguous plant structures, or clearly
unrelated or non-plant photographs. With a possible error rate of 4%,
SSL pretraining learns visual representations entirely from raw image
content without using any class labels, making the representations
immune to label noise. Extensive machine learning research already
shows that models fine-tuned on self-supervised visual backbones
retain high generalization performance under label noise levels well
beyond 5–8%46,125.
We performed data acquisition and transformation using the
Large Data Acquisition Work flow Template (LDAWT), a specialized
software suite. This suite facilitates downloading and querying the
iNaturalist database, generatingfile manifests based on speci fied cri-
teria. It also optimizes manifest groupings to improve download
throughput and performance. Using a template-based approach,
LDAWT transforms and organizes data during the download process,
thereby minimizing the subsequent renaming and reorganization
necessary for model training. These manifestfiles are then transmitted
to TaskVine, a parallelized, distributed, and fault-resistant work flow
manager, enabling concurrent asynchronous downloads from geo-
graphically diverse locations, including cloud virtual machines and
high-performance computing (HPC) data transfer nodes. LDAWT
aggregates the final output in a machine learning-ready format and
deposits it into a shared cloud storage repository. LDAWT uses avail-
able network bandwidth cooperatively, preventing denial of service to
data providers, such as iNaturalist, while transferring terabytes of data.
Global model—pretraining and fine-tuning approach
Accurate machine learning models rely on annotated datasets, where
each image is labeled with a corresponding category. However, large-
scale dataset annotation remains a signi ficant bottleneck, especially
when expert veri fication is required. To address this challenge, we
adopt an SSL approach (Fig.6), which lets the model learn meaningful
representations without labeled data. This approach is especially
robust for the 14 million datasets, as it is inherently resilient to label
noise and removes the need to manually check every label 45,46.T h i s
enables effective feature learning that can be later fine-tuned using a
smaller labeled dataset, improving model generalization and perfor-
mance. We used twenty images per species from the iNaturalist data
for testing and validation. To comprehensively evaluate our model ’s
accuracy, we also assessed its performance on a diverse collection of
public-domain web images and images collected from our field test,
representing various stages of weed species development. We col-
lected 6962 images from April to November 2023 in corn, soybean,
mung bean, and field pea fields in Ames, Iowa, USA. The dataset
included 18 Iowa weed species at multiple growth stages and was
captured using iPhones (Apple, USA) at a resolution of 3024 × 4032
pixels. We collected an additional in-field dataset in 2025 for testing; it
c o v e r e d1 5w e e ds p e c i e sa n di n c l u d e d3 0 3 9i n d i v i d u a lp l a n t s( F i g .3).
Notably, we used the 2023 in-field images for training, while the 2025
images served as an independent test set. The publicly available web
images for the global weed species were sourced from government
agencies, university extension programs, and academic repositories,
excluding iNaturalist, to assess identi fication challenges. We tested
several thousand images separately for the four challenges described
in the Introduction.
SSL pretraining follows a pretrain-then-finetune paradigm, which
has proven successful in various computer vision tasks, including
image identification and object detection28,126,127. Instead of relying on
supervised labels, SSL methods learn general-purpose visual
representations by solving a pre-training task on large-scale unlabeled
data. Early approaches focused on reconstruction-based objectives128,
alongside other techniques, such as contrastive learning 129 and joint
embedding methods 130,131. With the emergence of ViTs 59,
reconstruction-based strategies have regained interest due to their
simplicity and state-of-the-art performance 132,133.Ap r e v i o u ss t u d y
compared CNN-based architectures, such as ResNet and RegNet, for
image classi fication tasks and selected RegNetY32 for InsectNet
because of its ef ficiency and accuracy for insect identi fication28.F o l -
lowing a similar protocol, we trained and compared a CNN-based
m o d e l( R e g N e t Y 3 2 )a n daT r a n s f o r m e r - b a s e dm o d e l( M a s k e dA u t o -
encoder, MAE) to evaluate their supervised classification performance
on our 1,593-class weed dataset. The Transformer-based approach
outperformed the CNN-based model (Supplementary Note 8 and
Supplementary Table S4a), consistent with reports of superior Trans-
former performance in related plant classification tasks59,134,135. We also
evaluated multiple MAE model sizes and assessed the effect of pre-
training dataset size, finding that the 633M-parameter MAE variant,
combined with the larger pretraining corpus, performed best (Sup-
plementary Note 8).
In this work, we use MAE133, an SSL strategy that has demonstrated
superior performance in multiple transfer tasks133,136,137 while remaining
computationally efficient (Supplementary Note 9). Supplementary
Fig. S5 shows the MAE model architecture andfine-tuning. Our pipeline
involved multiple data preparation steps (Supplementary Note 10),
followed by two pre-training levels: initial pre-training on a large-scale
dataset of 3.5 billion images with Instagram hashtags, using the same
methodology described in ref. 127. Then, 14 million unlabeled weed
images followed a subsequent pre-training. We performed end-to-end
fine-tuning on 14 million labeled images (Supplementary Table S5). We
conducted extensive training experiments on multiple dataset sizes
and model sizes to systematically assess the impact of SSL pre-training.
We evaluated the fine-tuned models using standard identi fication
metrics (top-1 and top-5 accuracy) to assess the effectiveness of our
approach (Supplementary Table S4b, c). The core biological and eco-
logical knowledge captured by WeedNet originates from large-scale
domain-specific iNaturalist data, with Ins tagram pre-training used
primarily to accelerate and enhance early feature learning and to
maintain methodological alignment with recent best practices in the
field. This two-stage pretraining strategy leads to a more robust and
generalizable classifier28,138.
Global-to-localfine-tuning
We adopt a hierarchical strategy to accurately identify weeds in the
local context. This process begins by leveraging the trained WeedNet
model (global model) and implementing a global-to-local fine-tuning
approach to develop a region-speci ficw e e di d e n t ification model for
the Midwest US (Fig. 6 and Supplementary Table S5). This method
began with a robust global model trained on 14 million images. Stages 1
and 2 represent the self-supervised pretraining process using ViT-
based MAE on large-scale unlabeled datasets: 3.5 billion Instagram
images and 14 million iNaturalist plant-related images. Stages 3 and 4
involve supervisedfine-tuning using 14 million labeled iNaturalist weed
images, while Stage 4 also adds expert-veri fied datasets, including
open-access weed datasets from other regions around the
world50,78,79,84. Uncertainty quantification features, such as conformal
prediction and OOD detection (Stage 5), were integrated to improve
the trustworthiness of the model’so u t p u t .S t a g e s6a n d7d e m o n s t r a t e
local model fine-tuning using 2 million labeled regional weed data.
Stage 8 involves evaluating the model on other open-source, multiple
expert-curated datasets under k-shot scenarios (using a certain num-
ber of images for fine-tuning). Across the pipeline, SSL pretraining
combined with fine-tuning strategies trained on citizen and expert
data sources developed WeedNet and global-to-local models. We then
fine-tuned these models using an expert-veri fied dataset
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
(Supplementary Table S5), focusing on the 84 prevalent weed species
affecting Midwest corn and soybean cropping systems122.
Improving model trustworthiness
Two wrapper models, namely out-of-distribution (OOD) detection and
conformal prediction, are incorporated into the model to enhance
trustworthiness. OOD detection helps avoid misclassifying unfamiliar
inputs as known classes, which reduces trustworthiness. OOD detec-
tion mitigates this by helping models recognize data that deviates
from the training distribution, improving reliability 139–143. The OOD
algorithm assigns a confidence score indicating the likelihood that a
test sample belongs to the training set; factors such as model archi-
tecture and class distribution influence its effectiveness. Saadati et al.80
recently evaluated these factors and demonstrated that energy-based
models (EBMs)142 outperform alternatives on multiple performance
metrics.
In this paper, we selected EBM as the OOD algorithm and wrapped
it around the trained classifier, following the same analysis procedure.
For data preprocessing for model (EBM) training, we used the test set
of an in-distribution weed dataset (ID), selectingfive random samples
from each of the 1593 species, with a total of 7965 images. We used
three (60%) to train the EBM and reserved two (40%) to test it. As OOD
datasets, we used Human Face144, ImageNet145, and Insects, Birds, non-
weed datasets from iNaturalist 146.S p e c ifically, for each dataset, we
used the following (train/test) image counts: ImageNet (973/973),
HumanFace (600/300), Insecta (1526/1526), and non-weed (704/528).
The non-weed dataset includes images from different parts of the
plants, soil, and fungi. To ensure the ID and OOD test and training
dataset sizes are nearly identical, we randomly removed a small
number of samples from the OOD dataset to match the ID dataset size.
To enhance the trustworthiness and accuracy of the weed
detection model’s predictions, we incorporated conformal prediction
into the model. When the model is uncertain about a prediction, it is
more reliable to output a set of potential labels rather than one.
Conformal prediction147 supports this by generating sets of labels
based on a confidence level α, ensuring that the true label is included
with high probability.
For our task, we considered the hyperparameter α =0 :95. Our
approach consisted of the following steps, using the same hyper-
parameter setting as in paper81 while conserving the structure of the
original algorithm147: First, we took eight random samples from each of
the 1593 species from ID test data to create the conformal training set
(4 images per class, 50%) and the conformal testing set (4 images per
class, 50%). Then, we select a heuristic function, such as the maximum
softmax probability, to measure the conformal score for all images in
the training set. We calculated the score for each data point in the
conformal training set and then sorted all scores. For a given threshold
α,t h es c o r ev a l u eo f1/C0 α for the dataset is more significant than that
score, which is denoted by ^q. In the application phase, we compared
each class’s softmax value with^q, and if it was higher, we included that
class in the conformal set.
Model performance
To evaluate the WeedNet model ’s performance on intra-species dis-
similarity, we selected a subsample of 84 weed species important to
Iowa122. We used web-sourced images for each selected weed species,
capturing early plant stages (seedling to 3 true leaves), vegetative
stages, and reproductive stages, to test the model ’s performance.
Because online images for some species across all stages were limited,
we standardized the number of images per species based on the least-
available stage, ensuring a consistent ratio across the three growth
stages. To evaluate the model’s performance on inter-species similar-
ity, the web image set included species previously reported as looka-
like species in three categories: Grass family (5 species), Apiaceae
family (11 species), and Amaranth family (8 species) 72,148–150
(Supplementary Table S6). We collected images of each species using
the same developmental-stage-based strategy described above.
Model deployment on autonomousfield platforms
To evaluate WeedNet’s deployment, we used weed images captured
with UAVs and ground rovers duringfield experiments in Ames, Iowa,
USA, in 2024. Image collection began 3 weeks after planting, at the 2- to
3-true-leaf stage, using UAVs and rovers to capture weeds at various
growth stages in inter-row areas andfield borders. A DJI Inspire 2 drone
(DJI, Shenzhen) equipped with a Zenmuse X5S RGB camera captured
aerial images at 15 m above ground level (AGL). A ground rover (Farm-
ng, California) carrying an Insta360 Titan VR 360 8K Camera (Insta360,
Shenzhen) captured images at 1.5 m AGL while moving through inter-
rows. The visual survey involved identifying groundweeds, with geo-
graphic coordinates recorded using an Emlid Reach RS+ Real-Time
Kinematic (RTK) positioning global navigation satellite system recei-
ver. In the current deployment pipeline, WeedNet operates in an off-
line inference mode. We preprocessed UAV images in Pix4D to
generate orthomosaics with a ground sampling distance of
0.10–0.12 cm per pixel. We georeferenced each weed and aligned it
with corresponding vector data containing spatial location, shape, and
canopy boundary information. We then cropped individual weeds
from the orthomosaic into single images (204 × 204 in the very early
stage and 305 × 305 in the early stage) and processed them through
WeedNet for prediction. The WeedNet model was evaluated in two
distinct settings: (i) targeted identi fication of the same 15 speci fic
weeds throughout the evaluation period and (ii) an untargeted (ran-
dom) visual survey evaluating the presence of various weeds in the
field on each survey date. A total of 425 annotated weed images from
UAV images and 110 annotated weed images from rover images cover
eight species from the early stage in August to the reproductive stage
in September. The weed species included: common waterhemp,
common lambsquarters, venice mallow ( Hibiscus trionum), spotted
spurge (Euphorbia maculata), common purslane (Portulaca oleracea),
green carpetweed ( Mollugo verticillata), yellow foxtail, and eastern
nightshade (Solanum emulans).
To characterize WeedNet ’s computational performance across
different non-embedded computing tiers, we evaluated the model on a
CPU workstation, a data-center GPU, and a portable AI workstation.
The average inference throughput on CPU (AMD Ryzen 9 7900×12-
Core Processor, 64 GB RAM) was 2.4 img/s, and on the NVIDIA A100
SXM4 80GB GPU device was 201.61 img/s (FP32), 299.8 img/s (FP16),
and 412.3 img/s (FP16 + torch.compile), which is suf ficient for offline
mapping and analysis workflows.
To evaluate deployment beyond datacenter GPUs, we tested the
model on an NVIDIA DGX Spark, a compact desktop supercomputer
that measures 150 mm × 150 mm × 50.5 mm and weighs 1.2 kg, which
integrates a Blackwell GPU with fifth-generation Tensor Cores and a
20-core Arm-based Grace CPU151, and also reports performance at half-
precision (FP16). While ultra-low-power microcontrollers (e.g., NVIDIA
Jetson class) represent one class of edge devices, a real-world research
platform with an onboard computing system, auxiliary power, and
sensors integrated into the vehicle 152 indicates that a portable work-
station of this class could be carried on a field vehicle. On DGX Spark,
the model achieved inference speeds of 62.9 img/s (FP32), 119.8 img/s
(FP16), and 162.9 img/s (FP16 + torch. compile), while maintaining
90.91% top-1 and 98.46% top-5 accuracy (Supplementary Table S7).
Unlike Jetson-class embedded systems, DGX Spark is primarily
designed for AI model development, testing, and high-performance
local inference. Extending real-time performance to ultra-low-power
embedded edge chips (Jetson-class) via pruning and quantization
remains an area for future work153,154.
Integrating the weed identification model into a smartphone app
provides a convenient tool for users to connect with the AI model for
fast, accurate identification, enabling timely action for weed control.
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
During a 5-year period, a weed specialist tested several smartphone
apps for plant identification purposes155. The dataset included broad-
leaf, grassy, ornamental, and shrub species. The study emphasized that
a simple process is key to user-friendliness and overall experience
when using such tools155. However, these apps were designed primarily
to identify general plant species rather than weed species for agri-
cultural or ecological concerns.
To make WeedNet accessible from smartphones, we deployed the
trained WeedNet model in WeedID ( https://go.iastate.edu/COM0Z5
and hosted at pestidapp.com) as an API, providing a lightweight
interface for on-demand predictions. WeedID is a browser-based web
application: users upload images captured or selected on their device
to a remote server, the WeedNet model runs on that server, and the
weed prediction returns to the device for display in seconds. The
backend processes the input images and returns the predicted species,
along with alternative candidates and their corresponding confidence
scores. The conformal prediction intervals, described in the Methods
under Improving Model Trustworthiness, quantify uncertainty.
A user-friendly front-end application communicates with this API,
enabling users to submit images and receive results (two-step process,
Fig. 7). Both the Global and Iowa models are publicly available. To
ensure system stability, rate-limited to 30 calls per minute. Although
the server-side pipeline uses CPU-based inference for cost efficiency, it
delivers predictions within practical timeframes (typically under 3 s
per image under our testing conditions, excluding image-upload time).
The front and back ends run on OpenShift as isolated microservices,
enabling modular maintenance.
The WeedID interface not only identi fies weed species but also
provides comprehensive plant characteristics relevant to weed man-
agement. It presents sixteen attributes that span species taxonomy,
ecological traits, identi fication features, and recommended control
approaches (Fig. 7). Taxonomic information, including class, order,
and family, is sourced from iNaturalist metadata. The Iowa WeedID
model includes two additional attributes: local names and a classi fi-
cation based on Iowa’sN o x i o u sW e e dL a w .
PestIDBot generates ecological and identi fication traits, along
with management recommendations, using a large language model-
based system that integrates WeedID results with a retrieval-
augmented generative chatbot, AgLLM156,157. PestIDBot supports this
process by communicating relevant management strategies through
natural dialogue with users, asking questions about identi fied and
classified weed species, and enabling interactive, informed decision-
making. PestIDbot can provide plant information, including life cycle,
cotyledon type, leaf type, morphological features, ecological classifi-
cation, origin in the context of the region, habitat, undesirability, look-
alike species, life stage essential for control, and chemical control
(Supplementary Note 11). Weed science experts review this metadata
to ensure accuracy. This integrated deployment bridges the gap
between weed identification and management strategy, demonstrat-
ing how computer vision and LLMs can support weed identi fication
and control for end users.
Model evaluation
Table 3 summarizes the testing approaches used to evaluate the Global
model and its fine-tuned variants. We also evaluated the model’sp e r -
formance on specialized datasets, including intra-species dissimilarity,
inter-species similarity, and UAV/Ground Rover images, to assess its
robustness in agricultural applications. This study used linear regres-
sion to assess the relationship between training image count and
accuracy. A paired t-test compared each species’ accuracy before and
after fine-tuning.
We evaluated model performance using a confusion matrix, which
categorized results into four categories: true positives (TP), false
positives (FP), true negatives (TN), and false negatives (FN). TP
represents the number of correct identi fications; FP represents the
number of other species misclassified as this species; FN represents the
number of these species misclassified as others. We calculated Macro
precision, Macro recall, and Macro F1 score from the confusion
matrices to assess the model ’s capability and effectiveness. n repre-
sents the total number of images.
Accuracy =
Xn
i =1
TP i
!
=n ð1Þ
MacroPrecision =
Xn
i =1
TPi
TPi +F Pi
!
=n ð2Þ
Step 1: Choose File: Upload an Image
Step 2: Submit it
Prediction
● Scientific Name
● Common Name
Ecological, Identification Traits, and
Controls
● 11 additional attributes include key
traits for species identification and
control (e.g., life stage, morphology,
habitat, chemical control).
Taxonomy
● Class
●O r d e r
● Family
Fig. 7 | Example interface of the WeedID application on an Asian
copperleaf image.WeedID is a browser-based web application: images captured or
selected on the user’s device are uploaded over the network to a remote server, the
WeedNet model is executed on that server, and the weed prediction is returned to
the device for display in seconds. The app provides the species names, species
taxonomy, ecological traits, morphology, and control information. The global
model is publicly available at https://go.iastate.edu/COM0Z5, and the Iowa fine-
t u n e dm o d e lc a nb ea c c e s s e da thttps://go.iastate.edu/O1NZ2Q. The WeedNet
model is now hosted at pestidapp.com.
Table 3 | Overview of models used to evaluate performance
Model used to test Number of species Testing image dataset
Global model 1593 20 testing images per species
Global-to-local model 84 20 testing images per species
Refined model 11 20 testing images per species
Global model 84 Web image dataset of intra-species dissimilarity
Global model 24 Web image dataset of inter-species similarity
Global model 8 UAV and Ground Rover images
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
MacroF 1=
Xn
i =1
2TPi
2TPi +F Pi +F Ni
!
=n ð3Þ
MacroF 1=
Xn
i =1
2TP i
2TP i + FP i + FN i
!
=n ð4Þ
Reporting summary
Further information on research design is available in the Nature
Portfolio Reporting Summary linked to this article.
Data availability
We sourced the datasets used for training and evaluation in this study
from iNaturalist, a publicly available platform (https://www.inaturalist.
org). We acknowledge iNaturalist as the data source and its copyright
ownership. The external evaluation datasets used in this study (Cot-
tonWeed12, CottonWeed15, 2 Seasons, DeepWeeds, PlantSeedlingV2,
and the other benchmarks listed in Supplementary Table S5) are
publicly available from their original publications and repositories, as
cited therein. The species list, taxonomy, and per-species image counts
that define the global (1593-species) and Iowa (84-species) WeedNet
datasets are given in Supplementary Note 2 and Supplementary
Tables S1–S 4 .W ew i l lm a k et h efield cellphone, UAV, and ground rover
images available on request.
Code availability
The source code and pipeline required to replicate the weed identifi-
cation model developed in this study are publicly available in the fol-
lowing repositories: https://github.com/ttayanlade/WeedsRepo.git
and https://zenodo.org/records/20262488 [https://doi.org/10.5281/
zenodo.20262488] under the Creative Commons Attribution 4.0
International License.
References
- Aldrich, R. J., Kremer, R. J. Principles in Weed Management. 455
(Iowa State University Press, 1997). - Soltani, N. et al. Potential corn yield losses from weeds in North
America. Weed Technol. 30,9 7 9–984 (2016). - Flessner, M. L. et al. Potential wheat yield loss due to weeds
in the United States and Canada. Weed Technol. 35,
916–923 (2021). - Soltani, N. et al. Potential yield loss in dry bean crops due to weeds
in the United States and Canada. Weed Technol. 32,
342–346 (2018). - National Invasive Species Inform ation Center. What are invasive
species? (2025). - Green, J. M. & Owen, M. D. Herbicide-resistant crops: utilities and
limitations for herbicide-resistant weed management.J. Agric.
Food Chem. 59, 5819–5829 (2011). - Kniss, A. R. Genetically engineered herbicide-resistant crops and
herbicide-resistant weed evolution in the United States.Weed Sci.
66,2 6 0–273 (2018). - Lillie, K., Giacomini, D. & Trane l, P. Comparing responses of sen-
sitive and resistant populations of Palmer amaranth (Amaranthus
palmeri)a n dw a t e r h e m p(Amaranthus tuberculatusvar. rudis)t o
PPO inhibitors. Weed Technol. 34,1 4 0–146 (2020). - Weed Science Society of Amer ica. Weed Science Society of
America database. - Wang, P., Peteinatos, G., Efthimiadou, A. & Ma, W. Weed
identification and integrated control. Front. Plant Sci. 14,
1351481 (2023). - Roberts, J. & Florentine, S. Advancements and developments in
the detection and control of invasive weeds: a global review of the
current challenges and future opportunities.Weed Sci. 1,
29 (2024). - Christensen, S. et al. Site-speci fic weed control technologies.
Weed Res. 49,2 3 3–241 (2009). - Tataridas, A. et al. Early detection, herbicide resistance screening,
and integrated management of invasive plant species: a review.
Pest Manag. Sci. 78,3 9 5 7–3972 (2022). - Adamchuk, V. I., Bernards, M. L., Meyer, G. E. & Mulliken, J. A. Weed
Targeting Herbicide Management(2008). - WeedScience.org. Internation al herbicide-resistant weed data-
base—resistance case ID 5684 (2025). - Livingston, M. et al. The Economics of Glyphosate Resistance
Management in Corn and Soybean Production(USDA-ERS, 2015). - Bonny, S. Genetically modi fied herbicide-tolerant crops, weeds,
and herbicides: overview and impact.Environ. Manag. 57,
31–48 (2016). - Jussaume, R. & Dentzman, K. Farmers ’ perspectives on manage-
ment options for herbicide-resistant weeds.Choices31,1 –7( 2 0 1 6 ) . - Arbuckle, J. G. Farmer perspectiv es on pesticide resistance (2014).
- Robinson, B. L., Mof fitt, J. M., Wilkerson, G. G. & Jordan, D. L.
Economics and effectiveness of alternative weed scouting meth-
ods in peanut. Weed Technol. 21,8 8–96 (2007). - Wu, X., Aravecchia, S., Lottes, P., Stachniss, C. & Pradalier, C.
Robotic weed control using automated weed and crop classifi-
cation. J. Field Robot. 37,3 2 2–340 (2020). - Zhang, W., Miao, Z., Li, N., He, C. & Sun, T. Review of current
robotic approaches for precision weed management.Curr. Robot.
Rep. 3,1 3 9–151 (2022). - Franco, C., Pedersen, S. M., Papaharalampos, H. & Ørum, J. E. The
value of precision for image-based decision support in weed
management.Precis. Agric. 18,3 6 6–382 (2017).
2 4 . J a f a r ,A . ,B i b i ,N . ,N a q v i ,R .A . ,S a d e g h i - N i a r a k i ,A .&J e o n g ,D .
Revolutionizing agriculture with artificial intelligence: plant dis-
ease detection methods, applications, and their limitations.Front.
Plant Sci. 15, 1356260 (2024). - Li, L., Zhang, S. & Wang, B. Plant disease detection and classi fi-
cation by deep learning—ar e v i e w .IEEE Access 9,
56683–56698 (2021). - Bhargava, A. et al. Plant leaf disease detection, classi fication, and
diagnosis using computer vision and artificial intelligence: a
review. IEEE Access 12,3 7 4 4 3–37469 (2024). - Toscano-Miranda, R. et al. Arti ficial-intelligence and sensing
techniques for the management of insect pests and diseases in
cotton: a systematic literature review. J. Agric. Sci. 160,
16–31 (2022). - Chiranjeevi, S. et al. InsectNet: real-time identi fication of insects
using an end-to-end machine learning pipeline.PNAS Nexus 4,
pgae575 (2025).
2 9 . P a r t e l ,V . ,K a k a r l a ,S .C .&A m p a t z i d i s ,Y .D e v e l o p m e n ta n de v a -
luation of a low-cost and smart technology for precision weed
management utilizing artificial intelligence.Comput. Electron.
Agric. 157, 339–350 (2019). - Adhinata, F. D. et al. A comprehensive survey on weed and crop
classification using machine learning and deep learning.Artif.
Intell. Agric. 13,4 5–63 (2024). - Murphy, K. M., Ludwig, E., Gutierrez, J. & Gehan, M. A. Deep
learning in image-based plant phenotyping.A n n u .R e v .P l a n tB i o l .
75,7 7 1–795 (2024). - Deng, B., Lu, Y. & Xu, J. Weed database development: an updated
survey of public weed datasets and cross-season weed detection
adaptation.Ecol. Inform. 81,1 0 2 5 4 6( 2 0 2 4 ) .
3 3 . L i ,Y .e ta l .I d e n t ification of weeds based on hyperspectral imaging
and machine learning.Front. Plant Sci. 11, 611622 (2021). - Xu, M., Yoon, S., Wu, C., Baek, J. & Park, D. S. PlantCLEF2023: A
Bigger Training Dataset Contributes more than Advanced
Article https://doi.org/10.1038/s41467-026-78044-4
Nature Communications Article in Press
Pretraining Methods for Plant Identification. In CLEF (working
notes) 2168–2180 (CEUR-WS.org, 2023).
35. Goëau, H., Bonnet, P. & Joly, A. Overview of PlantCLEF 2023:
image-based plant identification at global scale. In Proc. CLEF
2023 Working Notes-24th Conference and Labs of the Evaluation
Forum, Vol. 3497, 1972–1981 (CEUR-WS.org, 2023).
36. Coleman, G. R. et al. Weed detection to weed recognition:
reviewing 50 years of research to identify constraints and oppor-
tunities for large-scale cropping systems.Weed Technol. 36,
741–757 (2022).
37. Lu, Y. & Young, S. A survey of public datasets for computer vision
tasks in precision agriculture.Comput. Electron. Agric.178,
105760 (2020).
38. Sunil, G. et al. A novel automated cloud-based image datasets for
high throughput phenotyping in weed classification.Data Brief57,
111097 (2024).
39. Venkataraju, A., Arumugam, D., Kiran, R. & Peters, T. Automated
approaches for the early stage distinguishing of Palmer amaranth
from waterhemp. Front. Agron. 6, 1425425 (2024).
40. Van Horn, G. et al. The iNaturalist species classi fication and
detection dataset. InProc. IEEE Conference on Computer Vision
and Pattern Recognition,8769–8778 (IEEE, 2018).
4 1 . J a i n ,N . ,J o s h i ,A .&E a r l e s ,M .i N a t A g :m u l t i - c l a s sc l a s s ification
models enabled by a large-scale benchmark dataset with 4.7 m
images of 2,959 crop and weed species. InProc. Computer Vision
and Pattern Recognition Conference,5501–5510 (IEEE, 2025).
42. Cole, E. et al. Spatial implicit ne ural representations for global-
scale species mapping. In Proc. International Conference on
Machine Learning,6320–6342 (PMLR, 2023).
43. Fried, G., Norton, L. R. & Reboud, X. Environmental and manage-
ment factors determining weed species composition and diversity
in France. Agric. Ecosyst. Environ.128,6 8–76 (2008).
44. White, E., Soltis, P. S., Soltis, D. E. & Guralnick, R. Quantifying
error in occurrence data: comparing the data quality of iNa-
turalist and digitized herbarium specimen data in flowering
plant families of the southeastern United States. PLoS ONE
18,e 0 2 9 5 2 9 8( 2 0 2 3 ) .
45. Gao, M. et al. Suppressing label noise in medical image classi fi-
cation using mixup attention and self-supervised learning.Phys.
Med. Biol. 69, 105026 (2024).
46. Hendrycks, D., Mazeika, M., K adavath, S. & Song, D. Using self-
supervised learning can improve model robustness and uncer-
tainty. Adv. Neural Inf. Process. Syst. 32 (2019).
4 7 . A h m e d ,F . ,A l - M a m u n ,H .A . ,B a r i ,A .H . ,H o s s a i n ,E .&K w a n ,P .
Classification of crops and weeds from digital images: a support
vector machine approach.Crop Prot. 40,9 8–104 (2012).
48. Bakhshipour, A. & Jafari, A. Evaluation of support vector machine
and artificial neural networks in weed detection using shape fea-
tures. Comput. Electron. Agric.145,1 5 3–160 (2018).
4 9 . Y a n o ,I .H . ,A l v e s ,J .R . ,S a n t i a g o ,W .E .&M e d e r o s ,B .J .I d e n t ifi-
cation of weeds in sugarcanefields through images taken by UAV
and random forest classifier. IFAC PapersOnLine49,
415–420 (2016).
50. Chen, D., Lu, Y., Li, Z. & Young, S. Performance evaluation of deep
transfer learning on multi-class identification of common weed
s p e c i e si nc o t t o np r o d u c t i o ns y s t e m s .Comput. Electron. Agric.
198, 107091 (2022).
51. Hu, K., Coleman, G., Zeng, S., Wang, Z. & Walsh, M. Graph weeds
net: a graph-based deep learning method for weed recognition.
Comput. Electron. Agric.174, 105520 (2020).
5 2 . D u ,Y . ,Z h a n g ,G . ,T s a n g ,D .&J a w e d ,M .K .D e e p - C N Nb a s e d
robotic multi-class under-canopy weed control in precision
farming. In Proc. International Conference on Robotics and Auto-
mation (ICRA), 2273–2279 (IEEE, 2022).
53. Olsen, A. et al. DeepWeeds: a multiclass weed species image
dataset for deep learning.Sci. Rep. 9, 2058 (2019).
54. Khan, S. et al. A novel semi-supervised framework for UAV based
crop/weed classification. PLoS ONE 16, e0251008 (2021).
55. Nong, C., Fan, X. & Wang, J. Semi-supervised learning for weed
and crop segmentation using UAV imagery.Front. Plant Sci. 13,
927368 (2022).
56. Nam, H., Lee, H., Park, J., Yoon, W. & Yoo, D. Reducing domain gap
by reducing style bias. InProc. IEEE/CVF Conference on Computer
Vision and Pattern Recognition,8690–8699 (IEEE, 2021).
57. Vaswani, A. et al. Attention is all you need. Adv. Neural Inf. Process.
Syst. 30 (2017).
58. Khan, S. et al. Transformers in vision: a survey. ACM Comput. Surv.
(CSUR) 54,1 –41 (2022).
59. Dosovitskiy, A. An image is worth 16x16 words: Transformers for
image recognition at scale. Preprint athttps://doi.org/10.48550/
arXiv.2010.11929(2020).
60. Li, G., Wang, Y., Zhao, Q., Yuan, P. & Chang, B. PMVT: a lightweight
vision transformer for plant disease identification on mobile
devices. Front. Plant Sci. 14,1 2 5 6 7 7 3( 2 0 2 3 ) .
61. Reedha, R., Dericquebourg, E., Canals, R. & Ha fiane, A. Transfor-
mer neural network for weed and crop classification of high
resolution UAV images.Remote Sens. 14, 592 (2022).
62. Huang, X. et al. Safety and trustworthiness of deep neural net-
works: a survey. Preprint at https://doi.org/10.48550/arXiv.1812.
08342 (2018).
6 3 . D e n g ,A . ,L i ,S . ,X i o n g ,M . ,C h e n ,Z .&H o o i ,B .T r u s t ,b u tv e r i f y :
using self-supervised probing to improve trustworthiness. InProc.
European Conference on Computer Vision,361–377
(Springer, 2022).
64. Nagasubramanian, K. et al. How u seful is active learning for image-
based plant phenotyping? Plant Phenome J. 4, e20020 (2021).
65. Borgy, B. et al. Changes in functional diversity and intraspeci fic
trait variability of weeds in response to crop sequences and cli-
mate. Weed Res. 56,1 0 2–113 (2016).
66. Baker, H. G. The evolution of weeds. A n n u .R e v .E c o l .S y s t .5,
1–24 (1974).
67. Goolsby, J. A. et al. Matching the origin of an invasive weed for
selection of a herbivore haplotype for a biological control pro-
gramme. Mol. Ecol. 15,2 8 7–297 (2006).
68. Alvarez-Fernandez, R. Herbicides: Environmental Impact Studies
and Management Approaches(BoD–Books on Demand, 2012).
69. Boisseau, R. P., Bradler, S. & Emlen, D. J. Divergence time and
environmental similarity predict the strength of morphological
convergence in stick and leaf insects.Proc. Natl. Acad. Sci. USA
122,
论文原文与出版信息
Nature Communications