Single-wavelength near-infrared imaging and machine learning for detecting Queensland fruit fly damage in cherries
• Non-destructive detection of internal feeders like fruit flies in fruit remains a major challenge for biosecurity. • We developed a novel near-infrared (730 nm) imaging and machine learning approach to detect Queensland fruit fly (Qfly) oviposition in cherries. • A new Bounding Box Histogram Fusion Classifier (BBHFC) enables accurate image- and fruit-level infestation detection from single-wavelength images. Efficient detection and removal of infested fruits can be a valuable tool for reducing the spread of quarantine pests through trade. Automated grading technologies offer non-destructive solutions for detecting fruit fly infestations, though current optical methods face challenges due to either high computational demands (hyperspectral) or low specificity (multi- and single-spectral). In this study, we introduced a novel imaging method and machine learning approach to detect Queensland fruit fly (Qfly) infestations in fresh cherries, at both the image and fruit levels. Using hyperspectral imaging (HSI), we identified a wavelength of 730 nm within the visible to near-infrared (NIR) spectrum as most effective for distinguishing Qfly oviposition damage from natural pigmentation and mechanical damage. A library of 1,771 high-resolution, single-wavelength NIR images was created, with Qfly oviposition sites manually labelled for model training. We proposed a novel machine learning approach called the Bounding Box Histogram Fusion Classifier (BBHFC). This method transforms spot-level predictions of Qfly oviposition damage, generated by a trained object detection model, into histogram-based feature vectors. These vectors are then used for efficient and accurate image-level infestation classification. BBHFC achieved high precision, recall, and F1 scores (all > 0.93), demonstrating the effectiveness of the approach. The proposed BBHFC outperformed traditional visual inspection, achieving over 89% accuracy, compared to 60% for manual detection. Integrating advanced imaging techniques into grading systems can significantly enhance biosecurity in horticultural industries by detecting and removing infested fruit. This technology could also supplement existing, costly, visual inspections of traded fruit that governments are required to undertake.
Authors
- Dong Bao (ORCID: https://orcid.org/0009-0006-7908-4789)
- Rieks D. van Klinken (ORCID: https://orcid.org/0000-0002-7578-8977)
- Maryam Yazdani (ORCID: https://orcid.org/0000-0002-4587-7143)
- Jun Zhou (ORCID: https://orcid.org/0000-0001-5822-8233)
- Andy Wang (ORCID: https://orcid.org/0000-0001-9951-5706)
Institutions
- Griffith University (AU)
- CSIRO Health and Biosecurity (AU)
Publication Details
- Journal
- Smart Agricultural Technology
- Published
- 2025-06-09
- DOI
- https://doi.org/10.1016/j.atech.2025.101090
- Citations
- 3
- Primary Topic
- Spectroscopy and Chemometric Analyses
- Type
- article
- Field-Weighted Citation Impact
- 2.26
Funders
- Commonwealth Scientific and Industrial Research Organisation
- Australian College of Perioperative Nurses
- Department of Agriculture and Fisheries, Queensland Government