PPN/ULM/2020/1/00025

(PROJECT) Recognition of weed classes from hypespectral images of wheat fields

Da Silva, Anderson

Instituto Federal Goiano - BR

prof. dr. Jarosław Chormański (Dept. Remote Sensing - SGGW)

January 20, 2022

A talk to the Department of Biometry - Warsaw University of Life Sciences

Source: (https://www.nbnbrasil.com.br), (https://www.irrigoias.com.br)

IF Goiano

  • Plant Protection Master Program
  • Conservation of Natural Resources of Cerrado Master Program
  • 11 more

The problem and the project

Weed infestation in a cotton field. Source: Bogiani (Embrapa), 2017

Infestation of Ipomoea sp. in a sugarcane field. Source: Hirata (Campos e Negócios), 2016

How are we controlling weeds?

Source: Comas (Embrapa), 2016

Herbicide resistance. Source: https://www.upherb.com.br/

Weed scouting in a sugarcane field. Source: Christoffoleti, 2019 (https://www.grupocultivar.com.br/)

Okay! But what about Poland?

  • 26 cases of weed resistance to herbicides
  • 12 on winter wheat!

Source: Heap, 2021 (http://www.weedscience.org/)

And what should we do about it?

Source: Shawn, 2005 (Front. Ecol. Environ.)

And to automatically discriminate monocots and dicots:

Source: Da Silva, 2019 (J. Appl. Remote Sens.)

The objective

To separate the wheat from the tares

or…

To detect and discriminate grassy and broadleaf weeds using UAV hyperspectral images of winter wheat fields.

Methodology

Field data

  • 13 plots (20 x 20 m)
  • Manual identification of weed species and density
  • Flight height: 45 m (1024 x 1024 px, ~3cm/px)
  • 80 spectral bands (500-900 nm)

(Pre)processing

  • Reflectance conversion

\(R = \frac{V_{Raw} - V_D}{V_W - V_D}\)

  • Segmentation of vegetation/background

\(OSAVI = (1+Y)\frac{R_{800} - R_{670}}{R_{800} + R_{670} + Y}\)

Otsu (Adaptive) thresholding

Detection of crop rows

Seeder coordinates or… Segmented image \(\rightarrow\) Image thinning \(\rightarrow\) (Morph. operation) \(\rightarrow\) Hough transform

Superpixels

Spectral + spatial info.

SLIC (Simple Linear Iterative Clustering)

SLIC

  • K-means generalization (Achanta et al., 2012)
  • K centroids (from the grid)
  • Based on distances between regional (\(2S \times 2S\)) pixels and a centroid

\(D = \sqrt{d_c^2 + (d_s/S)^2 m^2}\)

where \(d_c\) is spectral-based and \(d_s\) is spatial-based (Euclidean, norm-2) distances; \(m\) is a compactness constant.

FD-SLIC

Fractional distance between the pixel \(x\) and the \(j\)-th surrounding pixel:

\(F_{j,x} = \frac{\sqrt{ \sum_{i, i \neq j}^n d_{i,x} }}{\sqrt{d_{j,x} + 1}}\)

where \(d\) is the Euclidean distance in the hyperspectral space.

A modified SLIC

\(d\) \(\rightarrow\) \(D^2\) (Mahalanobis distance)

\(D^2_{ii'} = ({\bf x}_i - {\bf x}_{i'})^T \Sigma^{-} ({\bf x}_i - {\bf x}_{i'})\)

where \(\Sigma\) is the covariance matrix of spectral bands.

Relative importance of spectral bands for discriminating superpixels

Mahalanobis generalized distance \(\rightarrow\) Singh (1981) criterion:

\(S_{.j} = \sum_{i=1}^{n-1} \sum_{i'>i}^{n} (x_{ij} - x_{i'j}) ({\bf x}_i - {\bf x}_{i'})^T {\Sigma}_{.j}^{-}\)

\(\frac{S_{.j}} {\sum_{j=1}^{p} S_{.j}} \in [0, 1]\)

under \(\sum_{j=1}^{p} S_{.j} = \sum_{i=1}^{n-1} \sum_{i'>i}^{n} D_{ii'}^2\)

Weed classification

  • Spuperpixel labeling
  • Spx. partitions: Training (70%) x Validation (30%)
  • Machine Learning: SVM x Mixture discriminant analysis
  • Apparent error rate
  • Field validation
  • (Deploy the model)

Computational tools

Some references

  • Bah, M. D., Hafiane, A., & Canals, R. (2018). Deep learning with unsupervised data labeling for weed detection in line crops in UAV images. Remote sensing, 10(11), 1690.
  • Psalta, A., Karathanassi, V., & Kolokoussis, P. (2016). Modified versions of SLIC algorithm for generating superpixels in hyperspectral images. 2016 8th Workshop on Hyperspectral Image and Signal Processing: Evolution in Remote Sensing (WHISPERS), 1-5.
  • Singh, D. (1981) The relative importance of characters affecting genetic divergence. Indian Journal Genetics & Plant Breeding, 41:237-245.

Dziękuję bardzo!

‘But when the grain had sprouted and produced a crop, then the tares also appeared’

(Matthew 13:26)