# Taxonomical loss for weed seedlings image classification

**Authors:** Hans-Olivier Fontaine, Samuel Foucher, Edith Fallon, Marie-Josée Simard, Etienne Lord

PMC · DOI: 10.1038/s41598-025-33961-0 · 2026-01-24

## TL;DR

This paper introduces a new deep learning method to better classify weed seedlings in early growth stages, which could help reduce pesticide use in agriculture.

## Contribution

A novel taxonomic loss function for few-shot learning is proposed, which improves clustering and classification of weed seedlings.

## Key findings

- The taxonomic loss function improved clustering performance based on Silhouette scores compared to triplet loss.
- The method enhanced the identification of weed seedlings at early growth stages.
- The taxonomic loss did not consistently improve all deep learning model architectures.

## Abstract

Accurate classification of weed seedlings is a key challenge to address in order to advance precision weed management and reduce pesticide use. In this study, an original image dataset, the Weed Phenological Dataset (WPD), with annotated early growth stages is introduced. Furthermore, a novel deep learning taxonomic loss function for few-shot learning was evaluated. Using hierarchical structures to direct the classification process, this taxonomic loss function introduces dynamic margins during the computation. In experiments using the taxonomic loss using the ResNet-50 architectures across different plant image datasets, this taxonomic approach allowed better clustering according to the Silhouette scores when compared with triplet loss using 100 images per class. It also led to better identification of weed seedlings at early growth stages. Although the new taxonomic loss did not consistency improve classification results for all the deep learning model architectures, it open new research avenues for the robotization of agriculture.

The online version contains supplementary material available at 10.1038/s41598-025-33961-0.

## Full-text entities

- **Diseases:** HTL (MESH:D016388)
- **Chemicals:** YOLO (-), P2O5 (MESH:C012500), N (MESH:D009584), bromoxynil (MESH:C006826), K2O (MESH:C068440), clethodim (MESH:C441919), imazethapyr (MESH:C093630)
- **Species:** Echinochloa crus-galli (barnyard grass, species) [taxon 90397], Daucus carota (carrot, species) [taxon 4039], Mauritiana (genus) [taxon 703493], Medicago sativa (alfalfa, species) [taxon 3879], Zea mays (maize, species) [taxon 4577], Amaranthus retroflexus (common amaranth, species) [taxon 124763], Homo sapiens (human, species) [taxon 9606], Trifolium pratense (peavine clover, species) [taxon 57577], Amaranthus tuberculatus (species) [taxon 277990], Setaria faberi (species) [taxon 149378], Chenopodium album (common lambsquarters, species) [taxon 3559], Triticum aestivum (bread wheat, species) [taxon 4565]

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12852093/full.md

---
Source: https://tomesphere.com/paper/PMC12852093