It has been proved that the imbalance of the proportion of elements of ‘Huangguan’ pears in the pulp and peel, especially calcium, boron and potassium, may be important factors that can seriously affect the pears’ appearance quality and economic benefits. The objective of this study was to predict the content of calcium, boron and potassium in the pulp and peel of ‘Huangguan’ pears nondestructively and conveniently by using near-infrared spectroscopy (900–1700 nm) technology. Firstly, 12 algorithms were used to preprocess the original spectral data. Then, based on the original and preprocessed spectral data, full-band prediction models were established by using Partial Least Squares Regression and Gradient Boosting Regression Tree. Finally, the characteristic wavelengths were extracted by Genetic Algorithms to establish the characteristic wavelength prediction models. According to the prediction results, the value of the determination coefficient of the prediction sets of the best prediction models for the three elements all reached ideal levels, and the values of their Relative analysis error also showed high levels. Therefore, the micro near-infrared spectrometer based on machine learning can predict the content of calcium, boron and potassium in the pulp and peel of ‘Huangguan’ pears accurately and quickly. The results also provide an important scientific theoretical basis for further research on the degradation of the quality of ‘Huangguan’ pears caused by a lack of nutrients.
‘Huangguan’ pear has excellent quality, strong adaptability, and good socioeconomic value. Iron is one of the important trace elements in plants, and iron imbalance seriously affects the growth and development of pear trees and reduces their economic benefits. If the iron content in pear fruit can be easily and non-destructively detected using modern technology during the critical period of fruit development, it will undoubtedly help guide actual production. In this study, ‘Huangguan’ pear fruit was used as the research object, and the possibility of using the more convenient near-infrared spectroscopy (900~1700 nm) technology for nondestructive detection of the iron content in the peel and pulp of ‘Huangguan’ pear was explored. First, 12 algorithms were used to preprocess the original spectral data, and based on the original and the preprocessed spectral data, partial least squares regression and gradient boosting regression tree algorithms were used. A full-band prediction model of the iron content in the peel and pulp of ‘Huangguan’ pear was established, and the genetic algorithm was used to extract characteristic wavelengths, establish a characteristic wavelength prediction model, and evaluate the prediction effect of each model according to the coefficient of determination R² and the relative analysis error RPD. After comparison, we found that the prediction model with the best prediction of the iron content in the peel and pulp of ‘Huangguan’ pear reaches class A, and the prediction effect is good and meets expectations. This experiment shows that the use of near-infrared spectroscopy can achieve better prediction of the iron content in the peel and pulp of ‘Huangguan’ pear.
'Huangguan' pear has significant social and economic value, and phosphorus, as one of the three main mineral elements of plants, has an irreplaceable effect on the normal growth of 'Huangguan' pear trees. The objective of this study was to predict the content of phosphorus in the pulp and peel of ‘Huangguan’ pears nondestructively and conveniently by using near-infrared spectroscopy (900–1700 nm) technology. First, twelve algorithms are used to preprocess the original spectral data, and the partial least squares regression algorithm and the gradient boosting regression tree algorithm are used to build a full-band prediction model based on the original spectral data and the processed spectral data. The characteristic wavelengths were extracted using genetic algorithms, followed by establishing a characteristic wavelength prediction model. The prediction accuracy of the models was evaluated according to the coefficient of determination R² and the relative analysis error RPD. The study found that the best prediction model for predicting phosphorus content in the pulp of 'Huangguan' pear was MSC-GA-PLSR, which had R²=0.843 and RPD=1.857 in the modelling set and R²=0.989 and RPD=7.041 in the prediction set. The best prediction model for predicting phosphorus content in the peel of ‘Huangguan’ pear was SG+SNV+FD-GA-PLSR, which had R²=0.991 and RPD=7.470 in the modelling set and R²=0.974 and RPD=4.414 in the prediction set, and the effect was good and met expectations. The results demonstrated that near-infrared spectroscopy could successfully achieve nondestructive detection of phosphorus content in the pulp and peel of 'Huangguan' pears.