Introduction

Global demand for food is increasing due to the continued rise in the world population (Godfray et al. 2010). Fertilizers play an important role in maximizing food production but fruit, nut, and seed yields are often sustained by excessive fertilizer use (Islam et al. 2022; Trejo-Téllez and Gómez-Merino 2014). Non-optimal fertilizer applications cause negative impacts on plant growth and development (Kulkarni and Goswami 2019). Over-fertilization, for example, can reduce yield and have negative impacts on the environment, while insufficient fertilization can also reduce yield and decrease product quality (González et al. 2015; Hapuarachchi et al. 2022; Pereira et al. 2015; Trejo-Téllez and Gómez-Merino 2014). Farmers often make decisions on nutrient amendments without full knowledge of the nutrient status of their crop (Bindraban et al. 2015; Islam et al 2022; Sheriff 2005) because current methods to examine plant nutrient status are laborious, costly, and time consuming (Yanli et al. 2015). Knowledge of plant nutrient status in real time would allow timely decisions on how much fertilizer needs to be added to a crop.

Hyperspectral imaging has been applied widely in agriculture, food, medicine, and other fields to estimate the internal qualities of scanned objects (Bai et al. 2018; Davur et al. 2023; ElMasry et al. 2012; Farrar et al. 2023; Gowen et al. 2007; Han et al. 2021; Huang et al. 2014; Malmir et al. 2020; Moscetti et al. 2015). Hyperspectral imaging combines spectroscopy with imaging techniques to acquire both spectral and spatial information simultaneously (ElMasry et al. 2012; Huang et al. 2014). Hyperspectral imaging is potentially non-destructive, low-cost, and reliable and has been applied to fruit, nuts, grains, and vegetables to estimate internal qualities such as total soluble solid concentration and moisture content, as well as firmness, ripeness, and shelf life (Bai et al. 2018; Davur et al. 2023; Gómez et al. 2006; Han et al. 2021; Han et al. 2023; Peng and Lu 2008; Pérez-Marín et al. 2009; Rajkumar et al. 2012; Ravikanth et al. 2017). Hyperspectral imaging allows the estimation of mineral nutrient concentrations such as nitrogen (N), phosphorus (P), potassium (K), and calcium (Ca) in the soil and leaves of many crops (Ferwerda et al. 2005; Mahajan et al. 2017; Pacumbaba and Beyl 2011; Pandey et al. 2017; Rodriguez et al. 2006; Tahmasbian et al. 2018; Yu et al. 2014). Hyperspectral imaging can also be used to estimate the concentrations of mineral nutrients including N, P, K, and Ca in avocado fruit (Kämper et al. 2020). Hyperspectral images obtained from the canopy or leaves have also been used to predict crop yield (Aparicio et al. 2000; Babar et al. 2006; Cao et al. 2015; Prasad et al. 2007; ** models to estimate nitrogen, phosphorus, potassium, and calcium concentrations. Scale bars = 1 cm