fpls-11-611622.pdf (3.3 MB)

Identification of weeds based on hyperspectral imaging and machine learning

Download (3.3 MB)
journal contribution
posted on 2023-05-10, 07:40 authored by Yanjie Li, Mahmoud Al-Sarayreh, Kenji Irie, Deb HackellDeb Hackell, Graeme BourdotGraeme Bourdot, Marlon Martins dos ReisMarlon Martins dos Reis, Kioumars GhamkharKioumars Ghamkhar
Weeds can be major environmental and economic burdens in New Zealand. Traditional methods of weed control including manual and chemical approaches can be time consuming and costly. Some chemical herbicides may have negative environmental and human health impacts. One of the proposed important steps for providing alternatives to these traditional approaches is the automated identification and mapping of weeds. We used hyperspectral imaging data and machine learning to explore the possibility of fast, accurate and automated discrimination of weeds in pastures where ryegrass and clovers are the sown species. Hyperspectral images from two grasses (Setaria pumila [yellow bristle grass] and Stipa arundinacea [wind grass]) and two broad leaf weed species (Ranunculus acris [giant buttercup] and Cirsium arvense [Californian thistle]) were acquired and pre-processed using the standard normal variate method. We trained three classification models, namely partial least squares-discriminant analysis, support vector machine, and Multilayer Perceptron (MLP) using whole plant averaged (Av) spectra and superpixels (Sp) averaged spectra from each weed sample. All three classification models showed repeatable identification of four weeds using both Av and Sp spectra with a range of overall accuracy of 70–100%. However, MLP based on the Sp method produced the most reliable and robust prediction result (89.1% accuracy). Four significant spectral regions were found as highly informative for characterizing the four weed species and could form the basis for a rapid and efficient methodology for identifying weeds in ryegrass/clover pastures.


Rights statement

© 2021 Li, Al-Sarayreh, Irie, Hackell, Bourdot, Reis and Ghamkhar. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

Publication date


Project number

  • Non revenue


  • English

Does this contain Māori information or data?

  • No


Frontiers Media

Journal title

Frontiers in Plant Science




Li, Y., Al-Sarayreh, M., Irie, K., Hackell, D., Bourdot, G., Reis, M. M., & Ghamkhar, K. (2021). Identification of weeds based on hyperspectral imaging and machine learning. Frontiers in Plant Science, 11, 611622. doi:10.3389/fpls.2020.611622

Usage metrics


    Ref. manager