Detection of early bruises on apples using hyperspectral reflectance imaging coupled with optimal wavelengths selection and improved watershed segmentation algorithm

J Sci Food Agric. 2023 Oct;103(13):6689-6705. doi: 10.1002/jsfa.12764. Epub 2023 Jun 14.

Abstract

Background: Bruises caused by mechanical collision during the harvesting and storage and transportation period are difficult to detect using traditional machine vision technologies because there is no obvious difference in appearance between bruised and sound tissues. As a result of its fast and non-destructive characteristics, hyperspectral imaging technology is a potential tool for non-destructive detection of fruit surface defects.

Results: In the present study, visible near infrared hyperspectral reflectance images of healthy apples and bruised apples at 6, 12 and 24 h were obtained. To reduce hyperspectral data dimension, optimal wavelength selection algorithms including principal component analysis (PCA) and band ratio methods were utilized to select the effective wavelengths and enhance the contrast between bruised and sound tissues. Then pseudo-color image transformation technology combining with improved watershed segmentation algorithm (IWSA) were employed to recognize the bruise spots. The result obtained showed that band ratio images obtained better detection performance than that of PCA. The G component derived from pseudo-color image of λ 821 - λ 752 / λ 821 + λ 752 followed by IWSA obtained the best segmentation performance for bruise spots. Finally, a multispectral imaging system for the detection of bruised apple was developed to verify the effectiveness of the proposed two-band ratio algorithm, obtaining recognition rates of 93.3%, 92.2% and 92.5% for healthy, bruised and overall apples, respectively.

Conclusion: The bruise detection algorithm proposed in the present study has potential to detect bruised apple in online practical applications and hyperspectral reflectance imaging offers a useful reference for the detection of surficial defects of fruit. © 2023 Society of Chemical Industry.

Keywords: apple; band ratio image; bruise detection; hyperspectral imaging; improved watershed segmentation algorithm.

MeSH terms

  • Algorithms
  • Contusions*
  • Fruit
  • Humans
  • Hyperspectral Imaging
  • Malus*