<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css">

University of Waikato Research

Permanent URI for this communityhttps://researchcommons.waikato.ac.nz/handle/10289/10288

Browse

Search Results

Now showing 1 - 10 of 13
  • Item type:Publication,
    Exploring prompt engineering for grapevine pruning decision making with limited data
    2025, Australian Robotics & Automation Association (ARAA)
    To address the challenges posed by the shortage of agricultural labour, this paper explores the use of Prompt Engineering (PE) to guide Large Language Models (LLMs) for grapevine pruning decision-making. Based on real grapevine images and structured data, five prompt templates were designed and tested on four mainstream LLMs: Gemma-3, Llama-4, Gemini 2.5 Pro, and GPT-o3. Experimental results show that some models excel in consistency—GPT-o3 achieved full consistency (1.0) under Prompt 3, and Gemma-3 performed well under Prompts 2 and 3 (0.98 and 0.96). However, inter-model agreement remained low (Fleiss’ Kappa < 0.07) across all conditions. These findings confirm the feasibility of using PE to simulate expert pruning in data-scarce environments and offer insights for building scalable, interpretable decision-support systems in agriculture.
  • Item type:Publication,
    Proximal near-infrared hyperspectral imaging dataset for identifying epicuticular wax loss in Masena blueberries to evaluate post-harvest quality
    2025-08-05, Elsevier
    The dataset presented in this paper consists of hyperspectral images of Masena blueberries that were harvested on November 24, 2023, from an orchard in Pukehina, New Zealand. Blueberries were hand-harvested with gloves (intact wax), hand-harvested (without gloves), and mechanically aided by picking via a handheld shaker. Some berries were also wiped to eliminate degrading epicuticular wax (EW) for comparison. Imaging was performed within 9 hours of harvest using a Specim FX17e hyperspectral camera (900–1700 nm, 224 bands) under controlled lighting conditions. The data were white and dark reference-normalized, annotated using the in-house HAPPy tool (ENVI Software), and saved in MATLAB (.mat) format for analysis. A total of 49 individual hyperspectral images were captured from 39 blueberry fruits to capture multiple views or surface states. We provide 5 spectral hypercube sets of data collected with the hyperspectral camera: ‘Assisted Harvested Blueberries (AHB)’ (10 images), ‘Hand Harvested Blueberries (HHB)’ (10 images), ‘Perfect EW’ (10 images), ‘No EW’ (9 images), and ‘No EW vs. Perfect EW‘ (10 images: 5 from ‘No EW‘ and 5 from ‘Perfect EW‘). This dataset, collected and archived by the University of Waikato (WaI2M: Waikato Instrumentation and Measurement Research Group, Hyperspectral Imaging Group), enables near-infrared hyperspectral imaging research in agriculture for EW classification and detection, harvesting method classification, and fruit surface property spectral analysis using machine/deep learning methods.
  • Item type:Publication,
    Rethinking the concept of pixel intensity contrast from a machine learning perspective
    2025, IEEE
    Image contrast is a critical factor for machine vision tasks. A promising approach for enhancing contrast involves the use of algorithmically optimized, spectrally tunable illumination. However, the very definition of 'contrast' is often rooted in principles of human perception, which may not be optimal for a machine observer. For an algorithm, contrast is an objective, task-driven metric that can be mathematically defined. To investigate the impact of this definition, we first use eigenvalue-based optimization algorithms to compute optimal illumination spectra. We then systematically evaluate these spectra using four distinct, physically realizable contrast formulations. Our analysis reveals that the performance of a given optimization algorithm is entirely dependent on the subsequent choice of evaluation metric. An illumination spectrum considered optimal under one metric can be significantly suboptimal when measured by another. This demonstrates that the choice of contrast metric is not a passive measurement, but an active design parameter with tangible physical consequences. From a machine learning perspective, the choice of this 'loss function' should be codesigned with the physical hardware and the ultimate downstream task to achieve true system-level optimization.
  • Item type:Publication,
    An overview of integrating deep learning methods with close-range hyperspectral imaging for agriculture
    2025-07-10, IEEE
    Hyperspectral imaging combines spectroscopy with imaging, thus capturing both spectral and spatial features. This makes it a useful technology in several application areas such as remote sensing and smart agriculture. Extracting spatial-spectral information of objects-of-interest from hyperspectral images requires sophisticated computational methods. The last decade saw the rapid advancement of deep learning methods due to their superior automatic feature extraction capability from images, and hence it is no surprise that these methods have been adapted and used for hyperspectral image analysis. Yet, while deep learning methods have achieved some success for hyperspectral remote sensing, it has been less explored in close range (or proximal) hyperspectral imaging, which is likely because at this range, it is more akin to spectroscopy with spatial information, rather than the case of remote sensing, which is more akin to imaging with higher spectral resolution. Close-range HSI allows for fine-scale analysis of plant health, nutrient levels, disease detection, and crop quality, which is very important in precision agriculture. In light of the new computational methods in deep learning, this review article provides an in-depth analysis and comparisons of such methods when applied to proximal hyperspectral imagery, with a particular emphasis on unsolved challenges (e.g., limited availability of annotated datasets, the need for robust models under real-world conditions, and the integration of spatial and spectral information) and potential future research directions for agricultural applications. The review emphasizes the importance of further explorations and has provided recommended directions for future research that could elevate close-range hyperspectral imaging technology from research to industry use for smart agriculture applications.
  • Item type:Publication,
    Hyperspectral imaging and machine learning to identify epicuticular wax loss in Masena Blueberries for post-harvest freshness
    2024, IEEE (Institute of Electrical and Electronics Engineers)
    Blueberries harvested using mechanical harvesting techniques, like over-the-row (OTR) harvesters, are not suitable for the fresh market due to high damage rates. Assisted harvesting (AH) techniques using hand-held shakers offer a new approach which shows promise in increasing harvesting rates without compromising fruit quality. Epicuticular wax is one of the fruit qualities needing to be preserved during harvesting. This paper investigates the effectiveness of hyperspectral imaging techniques and machine learning to construct a model to identify epicuticular wax rapidly and non-destructively. The best performing model produced was a linear SVM, and had an F1-score of 98.6%. Additionally, this model was used to show that blueberries harvested using hand-held shakers retain more epicuticular wax than traditional hand-harvesting (HH) techniques, a result that shows promise of potentially increased fruit quality using automated methods.
  • Item type:Publication,
    Empower innovations in routine soil testing
    2022-01-01, MDPI
    Conventional soil tests are commonly used to assess single soil characteristics. Thus, many different tests are needed for a full soil fertility/soil quality assessment, which is laborious and expensive. New broad-spectrum soil tests offer the potential to assess many soil characteristics quickly, but often face challenges with calibration, validation, and acceptance in practice. Here, we describe the results of a 20 year research program aimed at overcoming the aforementioned challenges. A three-step approach was applied: (1) selecting and establishing two contrasting rapid broad-spectrum soil tests, (2) relating the results of these new tests to the results of conventional soil tests for a wide variety of soils, and (3) validating the results of the new soil tests through field trials and communicating the results. We selected Near Infrared Spectroscopy (NIRS) and multi-nutrient 0.01 M CaCl2 extraction (1:10 soil to solution ratio; w/v) as broad-spectrum techniques. NIRS was extensively calibrated and validated for the physical, chemical, and biological characteristics of soil. The CaCl2 extraction technique was extensively calibrated and validated for ‘plant available’ nutrients, often in combination with the results of NIRS. The results indicate that the accuracy of NIRS determinations is high for SOM, clay, SOC, ECEC, Ca-CEC, N-total, sand, and inorganic-C (R2 ≥ 0.95) and good for pH, Mg-CEC, and S-total (R2 ≥ 0.90). The combination of the CaCl2 extraction technique and NIRS gave results that related well (R2 > 0.80) to the results of conventional soil tests for P, K, Mg, Na, Mn, Cu, Co, and pH. In conclusion, the three-step approach has revolutionized soil testing in The Netherlands. These two broad-spectrum soil tests have improved soil testing; have contributed to increased insights into the physical, chemical, and biological characteristics of soil; and have thereby led to more sustainable soil management and cropping systems.
  • Item type:Publication,
    Image classification using class-agnostic object detection
    2023, Springer
    Human-in-the-loop interfaces for machine learning provide a promising way to reduce the annotation effort required to obtain an accurate machine learning model, particularly when it is used with transfer learning to exploit existing knowledge gleaned from another domain. This paper explores the use of a human-in-the-loop strategy that is designed to build a deep-learning image classification model iteratively using successive batches of images that the user labels. Specifically, we examine whether class-agnostic object detection can improve performance by providing a focus area for image classification in the form of a bounding box. The goal is to reduce the amount of effort required to label a batch of images by presenting the user with the current predictions of the model on a new batch of data and only requiring correction of those predictions. User effort is measured in terms of the number of corrections made. Results show that the use of bounding boxes always leads to fewer corrections. The benefit of a bounding box is that it also provides feedback to the user because it indicates whether or not the classification of the deep learning model is based on the appropriate part of the image. This has implications for the design of user interfaces in this application scenario.
  • Item type:Publication,
    Efficiently correcting machine learning: considering the role of example ordering in human-in-the-loop training of image classification models
    2022, ACM
    Arguably the most popular application task in artificial intelligence is image classification using transfer learning. Transfer learning enables models pre-trained on general classes of images, available in large numbers, to be refined for a specific application. This enables domain experts with their own—generally, substantially smaller—collections of images to build deep learning models. The good performance of such models poses the question of whether it is possible to further reduce the effort required to label training data by adopting a human-in-the-loop interface that presents the expert with the current predictions of the model on a new batch of data and only requires correction of these predictions—rather than de novo labelling by the expert—before retraining the model on the extended data. This paper looks at how to order the data in this iterative training scheme to achieve the highest model performance while minimising the effort needed to correct misclassified examples. Experiments are conducted involving five methods of ordering, using four image classification datasets, and three popular pre-trained models. Two of the methods we consider order the examples a priori whereas the other three employ an active learning approach where the ordering is updated iteratively after each new batch of data and retraining of the model. The main finding is that it is important to consider accuracy of the model in relation to the number of corrections that are required: using accuracy in relation to the number of labelled training examples—as is common practice in the literature—can be misleading. More specifically, active methods require more cumulative corrections than a priori methods for a given level of accuracy. Within their groups, active and a priori methods perform similarly. Preliminary evidence is provided that suggests that for “simple” problems, i.e., those involving fewer examples and classes, no method improves upon random selection of examples. For more complex problems, an a priori strategy based on a greedy sample selection method known as “kernel herding” performs best.
  • Item type:Publication,
    An application of data mining to fruit and vegetable sample identification using Gas Chromatography-Mass Spectrometry
    2012, iEMSs
    One of the uses of Gas Chromatography-Mass Spectrometry (GC-MS) is in the detection of pesticide residues in fruit and vegetables. In a high throughput laboratory there is the potential for sample swaps or mislabelling, as once a sample has been pre-processed to be injected into the GC-MS analyser, it is no longer distinguishable by eye. Possible consequences of such mistakes can be the destruction of large amounts of actually safe produce or pesticide-contaminated produce reaching the consumer. For the purposes of food safety and traceability, it can also be extremely valuable to know the source (country of origin) of a food product. This can help uncover fraudulent attempts of trying to sell food originating from countries deemed unsafe. In this study, we use the workflow environment ADAMS to examine whether we can determine the fruit/vegetable, and the country of origin of a sample from a GC-MS chromatogram. A workflow is used to generate data sets using different data pre-processing methods, and data representations from a database of over 8000 GC-MS chromatograms, consisting of more than 100 types of fruit and vegetables from more than 120 countries. A variety of classification algorithms are evaluated using the WEKA data mining workbench. We demonstrate excellent results, both for the determination of fruit/vegetable type and for the country of origin, using a histogram of ion counts, and Classification by Regression using Random Regression Forest with PLS-transformed data.
  • Item type:Publication,
    A comparison of methods for estimating prediction intervals in NIR spectroscopy: Size matters
    2011, Elsevier
    In this article we demonstrate that, when evaluating a method for determining prediction intervals, interval size matters more than coverage because the latter can be fixed at a chosen confidence level with good reliability. To achieve the desired coverage, we employ a simple non-parametric method to compute prediction intervals by calibrating estimated prediction errors, and we extend the basic method with a continuum correction to deal with small data sets. In our experiments on a collection of several NIR data sets, we evaluate several existing methods of computing prediction intervals for partial least-squares (PLS) regression. Our results show that, when coverage is fixed at a chosen confidence level, and the number of PLS components is selected to minimize squared error of point estimates, interval estimation based on the classic ordinary least-squares method produces the narrowest intervals, outperforming the U-deviation method and linearization, regardless of the confidence level that is chosen.