Abstract
Determining potassium oxide in chemical fertilizers is essential for maintaining soil health. Due to difficulty, time-consuming, high cost, and requiring chemical agents of laboratory methods, hyperspectral imaging was applied to predict potassium oxide in potassium sulfate based on its visible and near-infrared reflectance. After acquiring the hyperspectral images, 453.32, 669.95, 778.19, 891.55, 663.34, 847.72, and 869.32 nm were identified as the effective wavelengths. Subsequently, mean, minimum, maximum, variance, median, and standard deviation features were extracted and subjected to classification. Finally, the correlation coefficient of the prediction model based on the artificial neural network method was obtained as 0.92. The results suggest applying hyperspectral imaging to assess the quality of potassium fertilizer.
Similar content being viewed by others

Introduction
Potassium (K) significantly influences plant growth and development1. It is absorbed by plants from two primary sources: soil and fertilizers2. With the current increase in crop yields and multi-cropping indices, coupled with the imbalance in nutrient inputs under traditional agricultural management practices, soil potassium has substantially declined, leading to an overall potassium deficit3,4. Soil potassium depletion and a shortage of potassium fertilizers have become major limiting factors for agricultural production development5,6. These limitations emphasis on exploration of effective strategies to meet plant potassium demands with minimal fertilizer application and to move toward sustainable and green agricultural production7. Potassium is one of the most abundant mineral cations that acts as an activator of numerous important enzymes8,9. This element is crucial for cell growth10. In terms of growth-promoting mechanisms, potassium primarily functions by stimulating and controlling the plasma membrane Adenosine Triphosphatase (ATPase). This process induces acid stimulation, loosens the cell wall, and activates hydrolases11. Due to its high mobility in plants, potassium plays a significant role in regulating cell osmotic pressure and balancing cations and anions in the cytoplasm12,13,14. It also participates in various physiological processes such as stomatal opening and closing and cell elongation. It plays a key role in increasing yield and improving crop quality11,15,16. Jin et al.17 reported that the highest yield and fruit quality of Fuji red apple were achieved with the application of 600 kg of potassium per hectare. Wang et al.18 demonstrated that a 6 mM potassium improved pear growth and enhanced photosynthetic efficiency. Lu et al.19 reported an increase in production and improve in fruit quality parameters in navel orange with the application of less than 500 kg of potassium per hectare. Reversely, the interactive effects of potassium with other nutrients are significant. For instance, high potassium concentrations in soil solution can reduce magnesium uptake, potentially causing magnesium deficiency in plants20. Its deficiency can increase the uptake of sodium (Na+) and calcium (Ca2+) in plants like maize21 and inhibit nitrogen uptake, significantly reducing nitrate (NO3−) content in cotton leaves22. Potassium substantially influences the uptake and utilization of other nutrients, and its optimal levels intensively depends on the crop type23.
To move on the sustainable production path, quality inspection of products is a necessary24. However, determining chemical compositions of fertilizers such as potassium is a vital process in their production lines to achieve high quality products. Laboratory methods for determining chemical composition of fertilizers are destructive, time-consuming, and require a significant number of chemical materials. Standard methodologies include gas chromatography (GC), high-performance liquid chromatography (HPLC), gas chromatography–mass spectrometry (GC–MS), polymerase chain reaction (PCR), and enzyme-linked immunosorbent assay (ELISA). These are recognized as highly accurate and powerful tools for the identification and quantification of sample components25. Nevertheless, their widespread application in large-scale or real-time contexts is often constrained by high costs, time-consuming procedures, the need for skilled personnel, and complex sample preparation protocols.
Recently, imaging as a rapid and accurate technology has attracted attention to assess different materials26,27,28,29. Imaging is widely used to assess different materials because it is nondestructive30,31. Its extensive applications are attributed to its high speed, high accuracy, low cost, and the absence of the need for laboratory specialists to perform tests32,33. Among these technology, hyperspectral imaging (HSI) or chemical imaging technique can combine conventional imaging and spectroscopy to simultaneously obtain spatial and spectral information from samples and create accurate distribution maps at the pixel level34,35,36. HSI is an advanced, non-destructive analytical technique that integrates the spectral capabilities of spectroscopy with the spatial information provided by optical imaging30,31. This method enables the simultaneous acquisition of spatial and spectral data across the surface of a sample, allowing for comprehensive and high-resolution chemical characterization. Specifically, the obtained HSI data are represented as a 3D data consisting of 2D spatial images superimposed along the third dimension of wavelengths37,38. Each pixel in the image is associated with a specific spectrum, which enables pixel-wise analysis of an objects intrinsic39,40. Operating primarily in the visible (VIS) and near-infrared (NIR) regions of the electromagnetic spectrum, HSI has emerged as one of the most cutting-edge imaging modalities for the qualitative and quantitative assessment of diverse materials41,42. One of its key advantages lies in its capacity to detect subtle spectral differences that are imperceptible to conventional visual imaging techniques43,44,45. The method has been used to assess different materials such as water46, wheat flour47, cucumber48, pistachio49, and strawberry50. Related to fertilizers, Malounas et al.,51 detected the fertilization levels in broccoli using HSI technique.
Unlike conventional spectroscopic techniques—such as infrared or microwave spectroscopy—which typically perform point-based measurements, HSI captures spectral information for all points in an image. The result is a three-dimensional data structure known as a hypercube or data cube, which combines two spatial dimensions with one spectral dimension52. The utility of spectroscopic techniques in detecting chemical elements and compounds has been extensively demonstrated in previous studies. For instance53, investigated the detection of chlorine in cement samples using Laser-Induced Breakdown Spectroscopy (LIBS) within the infrared (IR) and ultraviolet (UV) spectral ranges. Ilguth et al.54 utilized microwave spectroscopies to detect chlorine in cement matrices, while Thorwirth et al.55 applied gas-phase infrared spectroscopies to investigate CH₂Cl⁺ and CH₃ClH⁺ ions in the context of chlorine astrochemistry. However, the primary limitation of these techniques lies in their inability to provide continuous surface-level information, a challenge effectively addressed by hyperspectral imaging.
Till now, HSI was not used to determine potassium oxide in potassium sulfate fertilizer. As a novel goal, the present research was conducted to survey the ability of HSI and artificial neural networks (ANN) method in the determination of potassium oxide levels in potassium sulfate fertilizers. This innovative approach offers a faster cheaper, and more efficient alternative to the used laboratory methods.
Materials and methods
Fertilizer specimens
Potassium sulfate specimens with different K2O contents were obtained from Eyvan Chemical Industries Complex Company, Ilam Province, Iran. The samples were prepared in 50 g weight and packaged in separate bags (Fig. 1).
Chemical laboratory measurements
After preparing the test specimens, the K2O content in potassium sulfate was determined using a flame photometer (Model: jenway, PFP7/C) in December 2024 (Fig. 2, Table 1). The specimens were then stored in specified packaging to be utilized in the hypercube acquisition stage.
Hypercube acquisition
An HSI system consists of essential components that capture and analyze precise spectral data. Unlike conventional cameras that capture only three-color layers (channels), a hyperspectral sensor records data across narrow and continuous spectral bands30,56. The setup of an advanced desktop HSI systems includes a light source, wavelength-spreading devices, and area detectors and a computer equipped with software for managing image acquisition and data processing57,58.
In this study, a HSI system operating in the wavelength range of 400–950 nm (Model: Specam, Parto Sanat Company, Zanjan, Iran) was used to capture hyperspectral images of the samples. The system was equipped with four 25-W LED lamps serving as the illumination source (Fig. 3). The system was equipped with a line scan motorized camera to capture hyperspectral images over specific areas. The system’s components were a hyperspectral camera, a lighting source (four white LED lamps), and a personal computer. These components, supported by a software to control the imaging process and subsequent operations including digitization and storage.
The imaging step was conducted in the Image Processing Laboratory of Ilam University, Ilam, Iran. For each potassium oxide levels, three repetitions (specimens) were performed and six hypercubes’ images were captured from each repetition. Thus, a total of 18 hypercubes were obtained for each potassium oxide level. In total, 126 hypercubes were captured from all potassium oxide levels.
Pre-processing
The hypercubes of a white paper were recorded before and after each imaging section and the system subtracts the images of the white paper from the samples’ hypercube, automatically. No further noise reduction was used in the present study. A hypercube processing algorithm was developed in MATLAB software, version 2016 (MatWorks, Carlsbad, California, USA). To remove the effect of the edges of the sample container under the camera lens, the center of the hypercubes was separated. Based on the size of the sample container under the camera, lens the algorithm cropped a rectangular region )70 × 110 pixels (in the center of each hypercube to be used in further processing steps.
To enhance predictive performance and reduce computational complexity, it was necessary to reduce the volume of input data. In this regard, the most effective wavelengths were selected from the full hypercube to optimize the prediction process32,59,60.
Principal component analysis
Principal component analysis (PCA) method was employed to analyze the high-dimensional hypercubes. The primary objective of this analysis was to reduce the dimensionality of the data while preserving the maximum variance, thereby enabling the identification of key spectral bands. This method provided a comprehensive basis for evaluating model performance and ensured that the obtained results were both reliable and generalizable61.
In this approach, the mean of the first and second principal components (PC1 and PC2, respectively) of the spectra were calculated and the effective wavelengths were selected based on the peaks in the PC1 and PC2 diagrams62,63. The optimal number of selected bands was determined based on the location of spectral peaks and their ability to discriminate between different levels of K₂O concentration.
Extraction of features
Different statistical image features—including mean, minimum, maximum, variance, median, and standard deviation—were extracted from the corresponding spectral layers64. The extracted features were then used as inputs for the development of predictive models.
Selection of discriminative features
Before prediction/classification, dimensionality reduction techniques were applied in cases where a large number of features had been extracted. Reducing the number of input variables—especially when they are numerous—is essential for optimizing the performance of predictive models. In this study, sequential feature selection (SFS) method was employed to identify a subset of the most informative features from the extracted set corresponding to the selected wavelengths65,66. This method selects efficient features based on the generalized residual sum of squares (GRSS) criterion67,68.
Prediction
The determination of various K₂O concentration levels in potassium fertilizer samples was investigated by developing a model based on the artificial neural networks method. In this study, relevant spectral features were first extracted from hyperspectral images and selected to be used as input vectors in predictive modeling. These features, which capture spectral patterns associated with different K₂O levels, play a crucial role in enhancing classification accuracy and prediction performance. ANN-based models were trained using these input features to accurately classify and predict the K₂O content in new samples. The application of machine learning algorithms particularly artificial neural networks for hyperspectral data analysis has been widely reported in the literature due to their strong capability in modeling complex and nonlinear relationships69,70. In this approach, the extracted features were fed into the neural network as input data, while the K₂O concentration levels were encoded as target data for training and prediction purposes.
For this purpose, the database was divided into three parts: train, validation, and test sets. For prediction using ANN, 60% of the data was used for train, 20% for validation, and 20% for the test phase. The first step in creating an optimal predictive model is to select a suitable network architecture. After determining the architecture, the network is trained using the data selected from the images. In this study, the Levenburg-Marquardt (LM) learning algorithm was used. This algorithm is one of the fastest methods for training backpropagation neural networks due to the use of the Hessian matrix method41,71,72.
The number of neurons in the hidden layer(s) of the network depends on the level of convergence and the reduction of the output error during the training process. An excessive abundance of neurons may lead to overfitting or memory errors in the database, while an insufficient number of neurons may limit the network’s ability to effectively simulate the process. This process highlights the importance of maintaining a proper balance between model complexity and performance accuracy. The optimal number of neurons was determined through trial and error, as too many neurons can negatively affect the performance of the network. The network used was of the error backpropagation or feedforward type, with the activation function of tangent sigmoid (tansig) for the hidden layer and linear function (purelin) for the output layer.
Results and discussion
Effective hypercube layers
The plots of the first (PC1) and second (PC2) principal components corresponding to all layers of hyperspectral images (comprising 665 layers) of potassium sulfate samples with varying K₂O concentrations are shown in Fig. 4. Out of the 665 wavelengths in the hyperspectral data cubes, seven effective layers were selected for identifying different levels of K₂O. Based on principal component analysis, the selected layers were 65, 327, 470, and 595 for PC1 and 319, 542, and 568 for PC2. The corresponding wavelengths of these selected layers for potassium sulfate with different K₂O levels are: 453.32, 669.95, 778.19, and 891.55 nm for PC1; and 663.34, 847.72, and 869.32 nm for PC2. Therefore, the layers associated with these wavelengths were utilized for feature extraction in the analysis.
Efficient features
Six features were extracted from each effective hypercube layer. As seven hypercube layers were selected, total of 42 features were extracted. The features extracted from the effective layers included mean, minimum, maximum, variance, median, variance, and standard deviation. Among the extracted features, seven features were selected as efficient features based on SFS method (Table 2). The efficient features were used for prediction and the rest of the features were eliminated.
Modeling results
The results of the prediction of the amount of K2O in potassium sulfate were presented in Fig. 5. Different percentages of K2O of potassium sulfate were predicted using all the features extracted from the hypercubes, i.e. without feature selection step. In selecting the most appropriate network structure, the number of neurons in the hidden layer started from 2 neurons and continued up to a maximum of 20 neurons. Given that a smaller number of neurons in the middle layer reduces the size of the network and increases the learning speed. By examining different models, the optimal structure 42-12-1 was obtained (Fig. 5a). This model has 12 neurons in the hidden layer. The correlation coefficients of the optimal network for the train, validation, test, and total data were calculated to be 1.00, 0.88, 0.76, and 0.92, respectively (Fig. 5b). Figure 5c shows the performance of the neural network during the validation stage for different numbers of epochs. The results showed that the lowest validation error was achieved in epoch number 22 with a value of 0.0208.
The prediction results for K2O content in potassium sulfate were presented in Fig. 6. In this study, various percentages of K2O in potassium sulfate were predicted using selected features extracted from hypercubes. The optimal network was determined to be 7-4-1 structure (Fig. 6a), which included 4 neurons in the hidden layer. The correlation coefficients of the optimal structure during train, validation, test, and overall data were 0.93, 0.83, 0.78, and 0.88, respectively (Fig. 6b). The evaluation of network’s performance during the validation stage indicated that the lowest validation error (0.022) was achieved at epoch number 100 (Fig. 6c).
The results of the present research showed that the prediction of K2O without feature selection step (r = 0.92) was higher than with conducting the step. Caporaso et al.73 predicted protein content in single wheat kernels using HSI. They reported that the performances (R2) over calibration and validation datasets for single kernel protein content were of 0.82 and 0.79, respectively, with RMSE of 0.86 and 0.94%, respectively. Malonas et al.51 detected the fertilization levels in broccoli with 91.0% accuracy using a portable HSI system.
Implementing high-speed processing systems integrated with the developed hypercube processing and artificial neural predictive model can enable real-time and precise monitoring of K2O levels in potassium sulfate. This online approach not only enhances the accuracy and speed of quality control but also improves production processes and reduces human errors. Considering the high efficiency and accuracy of the predictive model used in this study, it is suggested to apply such models for predicting other parameters related to chemical substances used in agriculture. This initiative can optimize the use of chemicals, minimize environmental impacts, and improve productivity in the agricultural sector. Furthermore, developing and customizing these models for broader applications can open new horizons for smart resource management and sustainable production in agriculture and related industries.
Conclusions
The present study was conducted to evaluate the capability of the HSI technique and ANN model in predicting the K2O of potassium sulfate. In this research, the effective wavelengths were found from hypercubes and utilized for feature extraction. The data were analyzed in two scenarios: with and without the selection of efficient features. The results indicated that the prediction accuracies in these two cases were 87.83 and 92.19%, respectively, highlighting the high capability of artificial neural networks in prediction of K2O in potassium sulfate based on HSI technique. Various artificial neural network architectures were evaluated and compared, among which the 42-12-1 structure demonstrated the best performance. This architecture achieved the lowest error (0.0208) and the highest correlation (0.92), yielding reliable results in the model’s predictions. These findings suggest that a system based on multispectral imaging can be designed to process spectral images of samples and predict them using artificial neural networks. Such a system could significantly reduce detection time by developing a real-time system in industrial applications. To enhance analytical accuracy and improve the performance of the artificial neural network model, it is recommended to utilize a larger dataset during the training and evaluation phases in future research. It seems that providing samples with same Na, Cl, Ca, and pH compositions gave higher accuracy in determining K2O levels. Also, the authors suggest using hyperspectral imaging in other wavelengths ranges such ultraviolet to assess fertilizer components in future researches.
Data availability
The data are available on request to the corresponding author.
References
Komosa, A. & Szewczuk, A. Effect of soil potassium level and different potassium fertilizer forms on nutritional status, growth and yield of apple trees in the first three years after planting. J. Fruit Ornam. Plant Res. 10, 41–54 (2002).
Zorb, C., Senbayram, M. & Peiter, E. Potassium in agriculture-status and perspectives. J. Plant Physiol. 171, 656–669. https://doi.org/10.1016/j.jplph.2013.08.008 (2014).
Ji, H., Zhang, H., Zhang, W. & Tian, C. Advances and prospects of soil potassium balance in farmland in China. Chin. J. Eco-Agric. 25, 920–930. https://doi.org/10.13930/j.cnki.cjea.160944 (2017).
Philp, J. N. M. et al. Insufficient potassium and sulfur supply threaten the productivity of perennial forage grasses in smallholder farms on tropical sandy soils. Plant Soil 461, 617–630. https://doi.org/10.1007/s11104-021-04852-w (2021).
Niu, X., Wang, A. & Zheng, M. The consumption rules and demand prediction of potash in China. China Min. Mag. 28, 6–12. https://doi.org/10.12075/j.issn.1004-4051.2019.10.007 (2019).
Oborn, I. et al. Critical aspects of potassium management in agricultural systems. Soil Use Manag. 21, 102–112 (2006).
Dreyer, I. Potassium (K+) in plants. J. Plant Physiol. 171, 655–655. https://doi.org/10.1016/j.jplph.2014.03.001 (2014).
White, P. J., & Karley, A. J. Potassium. In Cell Biology of Metals and Nutrients, 199–224 (Springer, 2010)
Liu, J. et al. Effects of straw return with potassium fertilizer on the stem lodging resistance, grain quality and yield of spring maize (Zea mays L.). Sci. Rep.. 13, 20307. https://doi.org/10.1038/s41598-023-46569-z (2023).
Hepler, P. K., Vidali, L. & Cheung, A. Y. Polarized cell growth in higher plants. Annu. Rev. Cell. Dev. Biol. 17, 159–187. https://doi.org/10.1146/annurev.cellbio.17.1.159 (2001).
Oosterhuis, D., Loka, D., Kawakami, E. & Pettigrew, W. The physiology of potassium in crop production. Adv. Agron. 126, 203–234. https://doi.org/10.1016/B978-0-12-800132-5.00003-1 (2014).
Kaiser, W. M. Correlation between changes in photosynthetic activity and changes in total protoplast volume in leaf tissue from hygro-, mesoand xerophytes under osmotic stress. Planta 154, 538–545. https://doi.org/10.1007/BF00402997 (1982).
Hu, W. et al. Potassium (K) supply affects K accumulation and photosynthetic physiology in two cotton (Gossypium hirsutum L.) cultivars with different K sensitivities. Field Crop. Res. 196, 51–63. https://doi.org/10.1016/j.fcr.2016.06.005 (2016).
Hou, Y. Q., Huang, M. & Fu, G. Z. Effects of straw return replacing the application of potassium fertilizer on crop productivity and soil nitrate accumulation in dryland summer maize-winter wheat rotation system. J. Soil Water Conserv. 36, 311–318 (2022).
Marschner, H. Marschner’s Mineral Nutrition of Higher Plants (Academic press, 2012).
Ye, X. Z. The effect of different potassium fertilizer application rates on maize yield and economic benefits. Agric. Eng. Tech. 42, 8–9 (2022).
Jin, H. C., Zhang, L. S., Li, B. Z., Han, M. Y. & Liu, X. G. Effect of potassium on the leaf nutrition and quality of Red Fuji apple. Acta Agric. Bor Occid. Sin. 16, 100–104. https://doi.org/10.3969/j.issn.1004-1389.2007.03.026 (2007).
Wang, Y. Z. et al. Effect of potassium supply on plant potassium distribution and growth and leaf photosynthetic capacity of Pyrus pyrifolia. J. Nanjing Agric. Univ. 40, 60–67. https://doi.org/10.7685/jnau.201603054 (2017).
Lu, J. W. et al. Effect of application of potassium on the yield and quality of Navel Orang. J. Fruit Sci. 18, 272–275 (2001).
Trankner, M., Tavakol, E. & Jákli, B. Functioning of potassium and magnesium in photosynthesis, photosynthate translocation and photoprotection. Physiol. Plant. 163, 414–431. https://doi.org/10.1111/ppl.12747 (2018).
Du, Q. et al. Effect of potassium deficiency on root growth and nutrient uptake in maize (Zea mays L.). Agric. Sci. 8, 1263–1277. https://doi.org/10.4236/as.2017.811091 (2017).
Hu, W., Coomer, T. D., Loka, D. A., Oosterhuis, D. M. & Zhou, Z. Potassium deficiency affects the carbon-nitrogen balance in cotton leaves. Plant Physiol. Biochem. 115, 408–417. https://doi.org/10.1016/j.plaphy.2017.04.005 (2017).
Xu, X. et al. Effects of potassium levels on plant growth, accumulation and distribution of carbon, and nitrate metabolism in apple dwarf rootstock seedlings. Front. Plant Sci. 11, 904. https://doi.org/10.3389/fpls.2020.00904 (2020).
Kheiralipour, K. Sustainable production: Definitions, aspects, and elements. (1st ed.), Nova Science Publishers, ISBN 979–8–88697–208–5. (2022).
Danezis, G. P., Tsagkaris, A. S., Camin, F., Brusic, V. & Georgiou, C. A. Food authentication: Techniques, trends & emerging approaches. Trends Anal. Chem. 85, 123–132 (2016).
Kheiralipour, K., & Marzbani, F. Pomegranate quality sorting by image processing and artificial neural network. 10th Iranian national congress on agricultural machinery (biosystems) and mechanization (2016).
Farokhzad, S., Modares Motlagh, A., Ahmadi Moghadam, P., Jalali Honarmand, S. & Kheiralipour, K. A machine learning system to identify progress level of dry rot disease in potato tuber based on digital thermal image processing. Sci. Rep. 14(1), 1995 (2020).
Kheiralipour, K. & Nargesi, M. H. Classification of wheat flour levels in powdered spices using visual imaging. Journal of Agriculture and Food Research 18, 101408. https://doi.org/10.1016/j.jafr.2024.101408 (2024).
Kheiralipour, K., Ahmadi, H., Rajabipour, A., Rafiee, S. & Javan-Nikkhah, M. Classifying healthy and fungal infected-pistachio kernel by thermal imaging technology. Int. J. Food Prop. 18(1), 93–99 (2014).
Kheiralipour, K. The future of imaging technology. Nova Science Publishers, ISBN 979–8–89530–078–7 (2024).
Kheiralipour, K., Chelladurai, V. & Jayas, D. S. Imaging systems and image processing techniques. In Image Processing: Advances in Applications and Research (ed. Jayas, D. S.) (Nova Science Publishers, 2023).
Kheiralipour, K. et al. Detection of fungal infection in pistachio kernel by long-wave near-infrared hyperspectral imaging technique. Qual. Assur. Saf. Crops Foods 8(1), 129–135 (2015).
Kheiralipour, K. & Jayas, D. G. Advances in image processing applications for assessing leafy materials. Int. J. Trop. Agric. 41(1–2), 31–47 (2023).
Kheiralipour, K., Sajadipour, F. & Nadimi, M. A review of nut quality assessment using hyperspectral imaging technique. J. Food Compos. Anal. https://doi.org/10.1016/j.jfca.2025.108184 (2025).
Kheiralipour, K., Sajadipour, F. & Nargesi, M. H. Applications of spectral imaging in biosystems engineering in Iran, A review. Recent Prog. Sci. 2(1), 007. https://doi.org/10.70462/rps.2025.2.007 (2025).
Kheiralipour, K., Ahmadi, H., Rajabipour, A., Rafiee, S., Javan-Nikkhah, M., & Jayas, D.S. Detection of healthy and fungal-infected pistachios based on hyperspectral image processing. 8th Iranian national congress of agricultural machinery engineering (Biosystems) and mechanization (2014).
Kheiralipour, K., & Jayas, D.S. Applications of near infrared hyperspectral imaging in agriculture, natural resources, and food in Iran. 15th national and 1st international congress of mechanics of Biosystems engineering and agricultural mechanization (2023).
Gao, S. & Xie, W. SSC and pH prediction and maturity classification of grapes based on hyperspectral imaging. Smart Agric. Technol. https://doi.org/10.1016/j.atech.2024.100457 (2024).
Kheiralipour, K., Ahmadi, H., Rajabipour, A. & Rafiee, S. Thermal Imaging, Principles, Methods And Applications (Ilam University Publication, 2018).
Wieme, J. et al. Application of hyperspectral imaging systems and artificial intelligence for quality assessment of fruit, vegetables and mushrooms: A review. Biosyst. Eng. 222, 156–176. https://doi.org/10.1016/j.biosystemseng.2022.07.013 (2022).
Kheiralipour, K. & Nargesi, M. H. Non-destructive prediction of sucrose, proline, ash, and fructose/glucose ratio in date syrup using hyperspectral imaging and machine learning. LWT 229, 118153 (2025).
Kumar, A., Bharti, V., Kumar, V., Kumar, U. & Meena, P. D. Hyperspectral imaging: A potential tool for monitoring crop infestation, crop yield and macronutrient analysis, with special emphasis to Oilseed Brassica. J. Oilseed Brassica 7(2), 113–212 (2016).
Lu, B., Dao, P. D., Liu, J., He, Y. & Shang, J. Recent advances of hyperspectral imaging technology and applications in agriculture. Remote Sens. 12, 2659 (2020).
Kheiralipour, K. & Jayas, D. G. Image Processing for the Quality Assessment of Flour and Flour-Based Baked Products. In Image Processing: Advances in Applications and Research (ed. Jayas, D. S.) (Nova Science Publishers, 2023).
Kheiralipour, K. & Jayas, D. S. Current and future applications of hyperspectral imaging in agriculture, nature and food. Trends Tech. Sci. Res. 7(2), 1–9 (2024).
Sajadipour, F. & Kheiralipour, K. Water Quality Assessment Using Spectral Imaging Techniques. In Advances in Environmental Research (ed. Daniels, J. A.) (Nova Science Publishers, New York, 2025).
Nargesi, M. H., Kheiralipour, K. & Jayas, D. S. Classification of different wheat flour types using hyperspectral imaging and machine learning techniques. Infrared Phys. Technol. 142, 105520 (2024).
Cen, H., Lu, R., Ariana, D. & Mendoza, F. Hyperspectral imaging-based classification and wavebands selection for internal defect detection of pickling cucumbers, Kansas City, Missouri. Am. Soc. Agricul. Biol. Eng. https://doi.org/10.1016/j.foodchem.2022.133563 (2013).
Kheiralipour, K. et al. Processing the hyperspectral images for detecting infection of pistachio kernel by R5 and KK11 isolates of Aspergillus flavus fungus. Iran. J. Biosyst. Eng. 52(1), 13–25 (2021).
Shao, Y. et al. Assessment of strawberry ripeness using hyperspectral imaging. Anal. Lett. 54, 1547–1560. https://doi.org/10.1080/00032719.2020.1812622 (2020).
Malounas, I., Lentzou, D., Xanthopoulos, G. & Fountas, S. Testing the suitability of automated machine learning, hyperspectral imaging and CIELAB color space for proximal in situ fertilization level classification. Smart Agric. Technol. 8, 100437. https://doi.org/10.1016/j.atech.2024.100437 (2024).
Kheiralipour, K. Implementation and construction of a system for detecting fungal infection in pistachio kernel based on thermal imaging (TI) and image processing technology. Ph.D. Dissertation, University of Tehran, (2012).
Gehlen, Ch. D., Wiens, E., Noll, R., Wilsch, G. & Reichling, K. Chlorine detection in cement with laser-induced breakdown spectroscopy in the infrared and ultraviolet spectral range. Spectrochim. Acta Part B 64(10), 1135–1140. https://doi.org/10.1016/j.sab.2009.07.021 (2009).
Illguth, M., Kapteina, G., Soriano, J. & Ikeda, Y. Detection of chlorine in cement matrix using microwave-enhanced laser-induced breakdown spectroscopy. Opt. Express 32, 28727–28741 (2024).
Thorwirth, S. et al. Gas-Phase Infrared Action Spectroscopy of CH2Cl+and CH3ClH+: Likely Protagonists in Chlorine Astrochemistry. Molecules 29, 665 (2024).
Sun, J., Yang, F., Cheng, J., Wang, S. & Fu, L. Nondestructive identification of soybean protein in minced chicken meat based on hyperspectral imaging and VGG16-SVM. J. Food Compos. Anal. 125, 105713. https://doi.org/10.1016/j.jfca.2023.105713 (2024).
Qin, J., Chao, K., Kim, M. S., Lu, R. & Burks, T. F. Hyperspectral and multispectral imaging for evaluating food safety and quality. J. Food Eng. 118, 157–171. https://doi.org/10.1016/j.jfoodeng.2013.04.001 (2013).
Ismail, A., Yim, D.-G., Kim, G. & Jo, C. Hyperspectral imaging coupled with multivariate analyses for efficient prediction of chemical, biological and physical properties of seafood products. Food Eng. Rev. 15, 41–55. https://doi.org/10.1007/s12393-022-09327-x (2023).
Nargesi, M. H., Heidarbeigi, K., Moradi, Z. & Abdolahi, S. (2024) Detection of chlorine in potassium chloride and potassium sulfate using chemical imaging and artificial neural network. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 326(5), 125253. https://doi.org/10.1016/j.saa.2024.125253 (2025).
Chaudhry, M. M. A., Bane, M., McAllister, T., Paliwal, J. & Narváez-Bravo, C. Identification and classification of multi-species biofilms on polymeric surfaces using hyperspectral imaging. J. Food Saf. 45, e70008. https://doi.org/10.1111/jfs.70008 (2025).
Patiluna, V. et al. Using hyperspectral imaging and principal component analysis to detect and monitor water stress in ornamental plants. Remote Sens. 17, 285. https://doi.org/10.3390/rs17020285 (2025).
Fernandez, L. C., Allende-Prieto, J. & Peon, E. Preliminary assessment of visible, near-infrared, and short-wavelength–infrared spectroscopy with a portable instrument for the detection of staphylococcus aureus biofilms on surfaces. J. Food Prot. 82(8), 1314–1319. https://doi.org/10.4315/0362-028X.JFP-18-567 (2019).
Sivakumar, C., Chaudhry, M. M. A. & Paliwal, J. Classification of pulse flours using near-infrared hyperspectral imaging. LWT 154, 112799. https://doi.org/10.1016/j.lwt.2021.112799 (2022).
Kheiralipour, K., Nadimi, M. & Paliwal, J. Development of an intelligent imaging system for ripeness determination of wild pistachios. Sensors. 22(19), 7134 (2022).
Nargesi, M. H., Amiriparian, J., Bagherpour, H. & Kheiralipour, K. (2024) Detection of different adulteration in cinnamon powder using hyperspectral imaging and artificial neural network method. Results in Chemistry. 9, 101644 (2024).
Khazaee, Y., Kheiralipour, K., Hosainpour, A., Javadikia, H. & Paliwal, J. Development of a novel image analysis and classification algorithms to separate tubers from clods and stones. Potato Res. 65, 1–22 (2022).
Nargesi, M. H. & Kheiralipour, K. Ability of visible imaging and machine learning in detection of chickpea flour adulterant in original cinnamon and pepper powders. Heliyon 10(16), e35944 (2024).
Lee, C. M., Lin, Y. F., Ho, Y. H., Kang, L. W. & Hsu, C. C. HyFusion: Enhanced reception field transformer for hyperspectral image fusion. Comput. Vis. Pattern Recognit. https://doi.org/10.48550/arXiv.2501.04665 (2025).
Salam, S., Kheiralipour, K. & Jian, F. Detection of unripe kernels and foreign materials in chickpea mixtures using image processing. Agriculture 12(7), 995 (2022).
Hosainpour, A., Kheiralipour, K., Nadimi, M. & Paliwal, J. Quality assessment of dried white mulberry (Morus alba L.) using machine vision. Horticulturae 8(11), 1011 (2022).
Zhou, Y., Ravey, A. & Pera, M. C. A survey on driving prediction techniques for predictive energy management of plug-in hybrid electric vehicles. J. Power Sources 412, 480–495 (2019).
Shavandi, A. & Khedmati, M. A multi-agent deep reinforcement learning framework for algorithmic trading in financial markets. Expert Syst. Appl. 208, 118124. https://doi.org/10.1016/j.eswa.2022.118124 (2022).
Caporaso, N., Whitworth, M. & Fisk, I. Protein content prediction in single wheat kernels using hyperspectral imaging. Food Chem. 240(2018), 32–42. https://doi.org/10.1016/j.foodchem.2017.07.048 (2018).
Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Author information
Authors and Affiliations
Contributions
M.H. Nargesi: Data gathering, analysis, writing K. Kheiralipour: Resources, Analysis, writing, editing J. Khodaei: Writing and editing.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Nargesi, M.H., Kheiralipour, K. & Khodaei, J. Intelligent detection of potassium oxide in potassium sulfate fertilizer using hyperspectral imaging and artificial neural networks. Sci Rep 15, 39687 (2025). https://doi.org/10.1038/s41598-025-23232-3
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-025-23232-3







