Document Type : Research Article
Authors
Department of Biosystems Engineering, Faculty of Agriculture and Natural Resources, University of Mohaghegh Ardabili, Ardabil, Iran
Abstract
Introduction
Traditional methods for evaluating fruit quality, such as pH measurement, are often destructive, time-consuming, and costly, leading to product loss and reduced efficiency in the supply chain. The growing need for rapid, accurate, and non-destructive methods makes the use of technologies like Hyperspectral Imaging (HSI) essential. HSI combines two-dimensional imaging with spectroscopy to simultaneously acquire spatial and spectral information from an object. Numerous studies have shown that this method is capable of accurately estimating internal fruit parameters in a non-destructive manner. The objective of this research was to develop a fast and reliable method for the non-destructive estimation of pH in two plum cultivars using HSI and machine learning algorithms such as Partial Least Squares Regression (PLSR) and Artificial Neural Networks (ANN). This study aims to overcome the limitations of conventional methods by leveraging the power of advanced imaging and computational techniques, providing a sustainable and efficient solution for the fruit industry.
Materials and Methods
In this study, 80 samples from each of the Khormaei and Khoni plum cultivars were used, which were purchased from local orchards. The samples were uniform in size, shape, and colour and were free from any physical damage. Hyperspectral images of the samples were acquired using a rotating hyperspectral imaging system in the range of 418 to 1072 nm. The pH of each fruit juice sample was measured using a digital pH meter. In the analysis of spectral data, the initial part of the spectrum was first removed due to high noise, and then the remaining data were processed with preprocessing methods such as a Gaussian filter and Multiplicative Scatter Correction (MSC). To select effective wavelengths (EWs), a hybrid approach using a Decision Tree (DT) and five metaheuristic algorithms was employed, with the Particle Swarm Optimisation (PSO) algorithm showing the best performance. Finally, pH modelling was performed on the selected wavelengths using PLSR and ANN. This comprehensive methodology ensures that the models are trained on high-quality data and are optimised for maximum accuracy.
Results and Discussion
Spectral analysis showed that the reflectance spectra of the Khoni and Khormaei plums had a high degree of variation, which is related to the differences in their chemical composition and structure. Descriptive statistics indicated that the average pH of Khormaei plum (3.909) was higher than that of Khoni plum (3.7375), and the pH range of Khoni plum (3.15 to 4.44) was wider than that of Khormaei plum (3.6 to 4.2). The results showed that modelling with ANN on the wavelengths selected by PSO, especially for Khoni plum, significantly increased prediction accuracy. The best ANN model for Khoni plum achieved an R2 of 0.9834 and an RPD of 8.01, which indicates the outstanding accuracy of this method. For the Khormaei plum, the best ANN model also reached an R2 of approximately 0.76 and a Ratio of Performance to Deviation (RPD) of 2.12, showing a considerable improvement over the PLSR model. The superior performance of the ANN models can be attributed to their ability to capture complex, non-linear relationships between spectral data and pH values, which linear models like PLSR may miss.
Conclusion
This research successfully demonstrated that hyperspectral imaging, in combination with machine learning algorithms, particularly ANN and PSO, can be an accurate and reliable method for the non-destructive prediction of pH in different plum cultivars. The hybrid approach used in this study, which combined DT for initial feature selection with PSO for optimal wavelength selection, enabled the models to predict pH values with very high accuracy, especially for the Khoni plum cultivar. This method can be used as an efficient tool in post-harvest quality control processes, helping to reduce waste and improve efficiency in the fruit supply chain. This work paves the way for the development of smart grading and sorting systems that can quickly and accurately assess fruit quality, benefiting both producers and consumers.
Keywords
Main Subjects
Authors retain the copyright. This is an open access article distributed under Creative Commons Attribution 4.0 International License (CC BY 4.0)
- Alam, S., Dobbie, G., Koh, Y. S., Riddle, P., & Rehman, S. U. (2014). Research on particle swarm optimization based clustering: a systematic review of literature and techniques. Swarm and Evolutionary Computation, 17, 1-13. https://doi.org/10.1016/j.swevo.2014.02.001
- Ayub, H., Nadeem, M., Mohsin, M., Ambreen, S., Khan, F. A., Oranab, S., Rahim, M. A., Zubair khalid, M., Zongo, E., & Zarlasht, M. (2023). A comprehensive review on the availability of bioactive compounds, phytochemicals, and antioxidant potential of plum (Prunus Domestica). International Journal of Food Properties, 26(1), 2388-2406. https://doi.org/10.1080/10942912.2023.2249254
- Chang, C.-W., Laird, D. A., Mausbach, M. J., & Hurburgh, C. R. (2001). Near‐infrared reflectance spectroscopy–principal components regression analyses of soil properties. Soil Science Society of America Journal, 65(2), 480-490. https://doi.org/10.2136/sssaj2001.652480x
- Dorigo, M., Birattari, M., & Stutzle, T. (2006). Ant colony optimization. IEEE computational intelligence magazine, 1(4), 28-39.Kashan, A. H. (2014). League Championship Algorithm (LCA): An algorithm for global optimization inspired by sport championships. Applied Soft Computing, 16, 171-200. https://doi.org/10.1016/j.asoc.2013.12.005
- Gao, S., & Xie, W. (2024). SSC and pH prediction and maturity classification of grapes based on hyperspectral imaging. Smart Agricultural Technology, 8, 100457. https://doi.org/10.1016/j.atech.2024.100457
- Golmohammadi, A., Tahmasebi, M., & Razavi, M. S. (2022). Near infrared hyperspectral imaging for non-destructive determination of pH value in red delicious apple fruit during shelf life. Innovative Food Technologies, 9(2), 99-111. https://doi.org/10.22104/jift.2021.5124.2059
- Hasanzadeh, B., Abbaspour-Gilandeh, Y., Soltani-Nazarloo, A., Hernández-Hernández, M., Gallardo-Bernal, I., & Hernández-Hernández, J. L. (2022). Non-destructive detection of fruit quality parameters using hyperspectral imaging, multiple regression analysis and artificial intelligence. Horticulturae, 8(7), 598. https://doi.org/10.3390/horticulturae8070598
- Huang, H., Liu, L., & Ngadi, M. O. (2014). Recent developments in hyperspectral imaging for assessment of food quality and safety. Sensors, 14(4), 7248-7276. https://doi.org/10.3390/s140407248
- Kashan, A. H. (2014). League Championship Algorithm (LCA): An algorithm for global optimization inspired by sport championships. Applied Soft Computing, 16, 171-200. https://doi.org/10.1016/j.asoc.2013.12.005
- Kavuncuoğlu, E., Çetin, N., Yildirim, B., Nadimi, M., & Paliwal, J. (2023). Exploration of machine learning algorithms for pH and moisture estimation in apples using VIS-NIR imaging. Applied Sciences, 13(14), 8391. https://doi.org/10.3390/app13148391
- Khodabakhshian, R., & Baghbani, R. (2025). Non-destructive Internal Quality Evaluation of Apple Fruit Using X-ray CT. Journal of Agricultural Machinery. (in Press).https://doi.org/10.22067/jam.2025.90983.1317
- Latifi Amoghin, M., Abbaspour-Gilandeh, Y., Tahmasebi, M., & Arribas, J. I. (2024a). Automatic non-destructive estimation of polyphenol oxidase and peroxidase enzyme activity levels in three bell pepper varieties by Vis/NIR spectroscopy imaging data based on machine learning methods. Chemometrics and Intelligent Laboratory Systems, 105137. https://doi.org/10.1016/j.chemolab.2024.105137
- Latifi Amoghin, M., Abbaspour-Gilandeh, Y., Tahmasebi, M., Kaveh, M., El-Mesery, H. S., Szymanek, M., & Sprawka, M. (2024b). VIS/NIR Spectroscopy as a Non-Destructive Method for Evaluation of Quality Parameters of Three Bell Pepper Varieties Based on Soft Computing Methods. Applied Sciences, 14(23), 10855. https://doi.org/10.3390/app142310855
- Liu, J., Sun, J., Wang, Y., Liu, X., Zhang, Y., & Fu, H. (2025). Non-Destructive Detection of Fruit Quality: Technologies, Applications and Prospects. Foods, 14(12), 2137. https://doi.org/10.3390/foods14122137
- Liu, Y., Wang, H., Fei, Y., Liu, Y., Shen, L., Zhuang, Z., & Zhang, X. (2021). Research on the prediction of green plum acidity based on improved XGBoost. Sensors, 21(3), 930. https://doi.org/10.3390/s21030930
- Majeed, R., & Jawandha, S. (2016). Enzymatic changes in plum (Prunus salicina Lindl.) subjected to some chemical treatments and cold storage. Journal of Food Science and Technology, 53, 2372-2379. https://doi.org/10.1007/s13197-016-2209-9
- Masoudi-Sobhanzadeh, Y., & Motieghader, H. (2016). World Competitive Contests (WCC) algorithm: A novel intelligent optimization algorithm for biological and non-biological problems. Informatics in Medicine Unlocked, 3, 15-28. https://doi.org/10.1016/j.imu.2016.06.002
- Masoudi-Sobhanzadeh, Y., Motieghader, H., & Masoudi-Nejad, A. (2019). FeatureSelect: a software for feature selection based on machine learning approaches. BMC Bioinformatics, 20, 1-17. https://doi.org/10.1186/s12859-019-2754-0
- McGlynn, W. (2010). Importance of food pH in commercial canning operations [superseded].
- Narendra, K. S., & Thathachar, M. A. (2012). Learning automata: an introduction. Courier corporation.
- Pu, H., Liu, D., Wang, L., & Sun, D.-W. (2016). Soluble solids content and pH prediction and maturity discrimination of lychee fruits using visible and near infrared hyperspectral imaging. Food Analytical Methods, 9, 235-244. https://doi.org/10.1007/s12161-015-0186-7
- Purwanto, Y. , Zainal, P. W., Ahmad, U., Sutrisno, M., Makino, Y., Oshita, S., Kawagoe, Y., & Kuroki, S. (2013). Non destructive prediction of pH in mango fruit cv. Gedong Gincu using NIR spectroscopy. International Journal of Engineering and Technology, 13, 70-73.
- Rahman, A., Kandpal, L. M., Lohumi, S., Kim, M. S., Lee, H., Mo, C., & Cho, B.-K. (2017). Nondestructive estimation of moisture content, pH and soluble solid contents in intact tomatoes using hyperspectral imaging. Applied Sciences, 7(1), 109. https://doi.org/10.3390/app7010109
- Razavi, M. , Sharabiani, V. R., Tahmasebi, M., Grassi, S., & Szymanek, M. (2025). Chemometric and meta-heuristic algorithms to find optimal wavelengths and predict ‘Red Delicious’ apples traits using Vis-NIR. Applied Food Research, 5(1), 100853. https://doi.org/10.1016/j.afres.2025.100853
- Trendafilova, A., Ivanova, V., Trusheva, B., Kamenova-Nacheva, M., Tabakov, S., & Simova, S. (2022). Chemical composition and antioxidant capacity of the fruits of European plum cultivar “Čačanska Lepotica” influenced by different rootstocks. Foods, 11(18), 2844. https://doi.org/10.3390/foods11182844
- Wang, , Xu, L., Chen, H., Zou, Z., Huang, P., & Xin, B. (2022). Non-destructive detection of pH value of kiwifruit based on hyperspectral fluorescence imaging technology. Agriculture, 12(2), 208. https://doi.org/10.3390/agriculture12020208
- Weng, S., Yu, S., Guo, B., Tang, P., & Liang, D. (2020). Non-destructive detection of strawberry quality using multi-features of hyperspectral imaging and multivariate methods. Sensors, 20(11), 3074. https://doi.org/10.3390/s20113074
- Zhang, Z., Cheng, H., Chen, M., Zhang, L., Cheng, Y., Geng, W., & Guan, J. (2024). Detection of Pear Quality Using Hyperspectral Imaging Technology and Machine Learning Analysis. Foods, 13(23), 3956. https://doi.org/10.3390/foods13233956
- Zhiming, G., Wenqian, H., Liping, C., Yankun, P., & Xiu, W. (2014). Shortwave infrared hyperspectral imaging for detection of pH value in Fuji apple. International Journal of Agricultural and Biological Engineering, 7(2), 130-137. https://doi.org/10.3965/j.ijabe.20140702.016
- Zhu, H., Chu, B., Fan, Y., Tao, X., Yin, W., & He, Y. (2017). Hyperspectral imaging for predicting the internal quality of kiwifruits based on variable selection algorithms and chemometric models. Scientific Reports, 7(1), 7845. https://doi.org/10.1038/s41598-017-08509-6
Send comment about this article