Megaweeds: an Experimental Study on Weed Detection with YOLOv7 Using a Novel Dataset

  • Sophie Wildeboer
  • , Jurrian Doornbos
  • , Önder Babur (Corresponding author-nrf)
  • , Kwabena E. Bennin

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

Abstract

Modern agriculture must address growing food demand, labor shortages, and environmental concerns. Precision agriculture (PA), which involves crop monitoring and automation, offers solutions. A key element of PA is crop and weed detection, often achieved with deep learning. This study applies YOLOv7, an object detection model, to this task. While most approaches pre-train YOLOv7 on the general COCO dataset, COCO lacks plant images. Therefore, we built the MegaWeeds (MW) dataset, which contains seven existing datasets for weed and crop detection with a total of 18,287 images (and 19,317 label files). Performance was tested using the Lincolnbeet dataset of sugar beets and weeds, comparing models pre-trained on COCO and MW. Results showed similar mean average precision scores, i.e. 78.7% (COCO pretrained) and 78.6% (MW pretrained). Nonetheless, pretraining with MW proved advantageous by enabling faster convergence and better zero-shot detection than COCO. The study surpassed earlier YOLOv7 results on the same dataset and demonstrated that domain-specific pretraining shortens transfer learning and enhances detection efficiency.

Original languageEnglish
Title of host publicationInnovative Agricultural Technologies
Subtitle of host publicationProceedings of IAT Congress 2025
EditorsLongsheng Fu, Jitendra Paliwal, Hasan H. Silleli, Barbara Sturm, Fernando Auat Cheein
Place of PublicationCham
PublisherSpringer
Pages136-156
Number of pages21
ISBN (Electronic)978-3-032-15375-3
ISBN (Print)978-3-032-15374-6, 978-3-032-15377-7
DOIs
Publication statusPublished - 31 Jan 2026
Event15th International Congress of the Innovative Agricultural Technologies, IAT 2025 - Antalya, Turkey
Duration: 15 Oct 202519 Oct 2025

Publication series

NameLecture Notes in Civil Engineering (LNCE)
Volume805
ISSN (Print)2366-2557
ISSN (Electronic)2366-2565

Conference

Conference15th International Congress of the Innovative Agricultural Technologies, IAT 2025
Country/TerritoryTurkey
CityAntalya
Period15/10/2519/10/25

Bibliographical note

Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026.

Keywords

  • Crop Detection
  • Deep Learning
  • Precision Agriculture
  • Weed Detection
  • YOLOv7

Fingerprint

Dive into the research topics of 'Megaweeds: an Experimental Study on Weed Detection with YOLOv7 Using a Novel Dataset'. Together they form a unique fingerprint.

Cite this