Non-Destructive Measurement of Quality Parameters of Apple Fruit by Using Visible/Near-Infrared Spectroscopy and Multivariate Regression Analysis

: The quality assessment and grading of agricultural products is one of the post-harvest activities that has received considerable attention due to the growing demand for healthy and better-quality products. Recently, various non-destructive methods have been used to evaluate the quality of agricultural products, which are very desirable and faster and more economical than destructive methods. Optical methods are one of the most important non-destructive methods that use the high speed of light detection and computer data processing and are able to evaluate the quality and classiﬁcation of products with high accuracy. Among the optical methods, visible–near-infrared (Vis/NIR) spectroscopy is considered one of the most accurate methods. In this research, Vis/NIR spectroscopy technology was used in the spectral range of 350–1150 nm for non-destructive detection of some quality parameters including pH, TA, SSC, and TP of two varieties of Red Delicious and Golden Delicious apples. Various pre-processing models were developed to predict the parameters, which brought the desired results with high accuracy so that pH prediction results were for yellow apples (RMSEC = 0.009, r c = 0.991, SDR = 2.51) and for red apples (RMSEC = 0.005, r c = 0.998, SDR = 2.56). The results for TA were also (RMSEC = 0.003, r c = 0.996, SDR = 2.51) for red apples and (RMSEC = 0.001, r c = 0.998, SDR = 2.81) for yellow apples. The results regarding SSC were for red apples (RMSEC = 0.209, rc = 0.990 and SDR = 2.82) and for yellow apples (RMSEC = 0.054, SDR = 2.67 and r c = 0.999). In addition, regarding TP, the results were for red apples (RMSEC = 0.2, r c = 0.989, SDR = 2.05) and for yellow apples (RMSEC = 1.457, r c = 0.998, SDR = 1.61). The obtained results indicate the detection of the mentioned parameters with high accuracy by visible/infrared spectroscopic technology.


Introduction
Today, with the growth of the population and the increase in demand and the disappearance of commercial borders for food products, the necessity of mechanized and modern agriculture has already become apparent, and we have witnessed a high volume of food products exchanges in the world. On the other hand, many developed countries such as Japan and the European Union have defined high-level standards related to the quality and health of imported food products in order to meet people's demand; therefore, in order to conquer global markets and compete with other countries in exporting products, we must take steps towards the further development of post-harvest technology.
Manual sorting and grading are expensive and unreliable because human decisions in determining quality characteristics such as flavor, taste, and appearance are different microwave absorption, nuclear magnetic resonance (NMR), and near infrared spectroscopy (NIR). Among these methods, infrared spectroscopy is of interest and has been widely used in various sectors of the food industry [7]. The use of visible-near infrared (Vis-NIR) spectroscopy (Vis-NIRS) to analyze fresh produce in postharvest applications is a relatively mature topic [8]. NIR can assess several constituents at the same time; therefore, it is also efficient for mass screening [9]. This method has advantages such as its high speed and less time-consuming nature [10,11]. Compared to destructive methods, NIR spectroscopy is less expensive because other materials such as reagents or chemical reagents are not needed to perform the test except for electricity consumption, and a large number of samples can be analyzed by developing a calibration model, and the samples do not need any preparation before performing the test [12].
In a study, Huang et al. (2017) examined the days before decay (DBD) of peach fruit. Using NIR and electronic nose, they reached favorable results with a rate of 82.26% [13].
Soltani et al. investigated the possibility of using visible/near infrared spectroscopy (Vis-NIR) for the detection of poison residues (profenofos) in tomatoes. Their experiments were performed on tomato samples with different percentages of profenofos poison compared to the control sample (without poison). Vis/NIR spectral data of poison solution and tomato samples without poison and impregnated with different concentrations of poison were recorded in the range of 400-1050 nm by a spectroradiometer. To classify tomatoes with poison content at lower and higher levels than MRL as healthy and unhealthy samples, respectively, discriminant partial least squares analysis models based on different spectral preprocessing methods were used. Using the smoothing-Gaussian filter preprocessing method with the lowest standard error in cross-validation (SECV = 4.2884) was chosen as the best model for this study. Moreover, in the calibration and prediction sets, the total percentage of correctly classified samples was 91 and 92.4%, respectively [14].
The results of Munawar et al. (2022) for measuring the quality characteristics of intact mangoes using near infrared spectroscopy along with three different regressions, namely partial least squares regression (PLSR), support vector machine regression (SVMR), and artificial neural network (ANN), with the coefficient of determination of calibration (R2cal) = 0.97 and prediction (R 2 pred) = 0.8, the root mean square error of calibration (RMSEC) = 25.29 and prediction (RMSEP) = 28.42, and the ratio of prediction to deviation of 4.02 showed that NIRS technology combined with suitable regression approaches has promising results for non-destructive determination of TA of intact mangoes [15].
Vis-NIR spectral signal detection of pomelo fruit during storage in the study of Xu et al. (2020) showed that combining modeling methods and extracting optimal information with Vis-NIR is a suitable solution for determining the content of pomelo juice after harvesting and providing references for non-destructive internal quality detection of large fruits [16].
By combining a portable NIR spectrometer and chemometric techniques, Amuah et al. (2019) simultaneously identified organically produced pineapple fruits from conventionally produced fruits and predicted TSS. In their method, organic fruit was accurately identified from conventionally produced fruits with a 100% identification rate. For TSS quantification, the MSC-PLSR model provided Rp = 0.851 and RMSEC = 0.950 • Brix and Rc = 0.854 and RMSEP = 0.842 • Brix, respectively [17].
In the study by Castrignanò et al. (2019) entitled "Assessing the feasibility of using a miniature near-infrared (NIR) spectrometer to determine the quality characteristics of tomato fruits", simultaneously, several quality characteristics were determined using reference methods: fresh weight, pH, dry matter, color values, electrical conductivity, titratable acidity, and soluble solid content. By combining the spectra with chemical features, they found that the best way to obtain NIR data on tomato fruits is to scan the entire equatorial region due to the heterogeneous internal structure of the fruit. Furthermore, after a suitable pre-processing of the data, accurate predictive models were obtained using partial least squares (PLS) regression to estimate the physical and chemical properties of tomatoes in a fast and non-destructive way [18]. Shao et al.'s (2019) study used visible and near-infrared reflectance spectroscopy (Vis-NIR) to identify the degree of cherry bruising at a wavelength of 2500-350 nm. Spectral sampling data were extracted from normal, mild, and severe bruising samples. Principal component analysis (PCA) was performed to determine the first principal components (PCs) for cluster analysis among samples. Their results showed that Vis-NIR reflectance spectroscopy integrated with multivariate analysis can be used as a fast and safe method to determine the degree of cherry bruising, creating a basis for cherry grading and post-harvest quality control [19].
In the research of Pourdarbani et al. (2020), the soluble solid content, pH, total acidity, and ascorbic acid of apple fruit were also successfully estimated using NIR technology [20]. Bian et al. (2021) studied the classification of apple juice based on variety and geographical origin. They used PLS regression and fluorescent spectroscopy to analyze fluorescent spectra with two types of apple fruit. The results showed that fluorescent spectroscopy combined with PLS method was successful in controlling the quality of fruit juice [21].
Based on the mentioned cases, the present research used NIR spectroscopy and PLS regression to non-destructively detect the quality parameters of apple fruit. This method is of great importance due to its lack of need for sample preparation, no need for special skills, field usability, fast measurement, and no waste generation and its accurate, reliable, efficient, and non-invasive nature.

Sample Preparation
In this study, 120 apple samples, including 60 Red Delicious and 60 Golden Delicious apples, were randomly selected from among the fruits of an orchard in Ardabil. The samples were of the same size and appearance, without any damage and disease. The samples were spectrophotometered without any preparation, which is one of the advantages of visible/near-infrared spectroscopy.

Preparation of Vis/NIR Spectra of Samples
Vis/NIR measurements were performed in the spectral range of 350-1150 nm. Before spectrometry, dark and white (reference) spectra were first defined and stored. In this way, first by turning off the light source, the dark spectrum was taken. Then, in the bright light source mode, a standard disc (Figure 1) that had a high reflectance of 97% was used to store the reference spectrum. Vis/NIR spectroscopy was performed for all apple sam-

Preparation of Vis/NIR Spectra of Samples
Vis/NIR measurements were performed in the spectral range of 350-1150 nm. Before spectrometry, dark and white (reference) spectra were first defined and stored. In this way, first by turning off the light source, the dark spectrum was taken. Then, in the bright light source mode, a standard disc (Figure 1) that had a high reflectance of 97% was used to store the reference spectrum. Vis/NIR spectroscopy was performed for all apple samples in four areas with an angle of 45 degrees using a prop, and the spectra were saved in each area ( Figure 2). The average spectrum obtained from each sample was considered as its representative spectrum.

Preparation of Vis/NIR Spectra of Samples
Vis/NIR measurements were performed in the spectral range of 350-1150 nm. Before spectrometry, dark and white (reference) spectra were first defined and stored. In this way, first by turning off the light source, the dark spectrum was taken. Then, in the bright light source mode, a standard disc (Figure 1) that had a high reflectance of 97% was used to store the reference spectrum. Vis/NIR spectroscopy was performed for all apple samples in four areas with an angle of 45 degrees using a prop, and the spectra were saved in each area ( Figure 2). The average spectrum obtained from each sample was considered as its representative spectrum.   [22] with an optical refractometer model PAL-1 manufactured by ATAGO, Japan, with an accuracy of 0.1 °Brix; (4). Measurement of total phenol (TP) was based on the method of Du et al., 2009 [24] with spectrophotometer model (Termo One C-Termo Scientific-Waltham, CA, USA).  [22] with an optical refractometer model PAL-1 manufactured by ATAGO, Japan, with an accuracy of 0.1 • Brix; (4). Measurement of total phenol (TP) was based on the method of Du et al., 2009 [24] with spectrophotometer model (Termo One C-Termo Scientific-Waltham, CA, USA).

Model Development
By removing the noises and reducing the spectral data to the range of 450-1250 nm, spectral data preprocessing was done using Unscrambler X 10.4 software (CAMO Software AS, Oslo, Norway), and the best preprocessing was selected among them. In order to validate the ability of the developed models, the data were randomly divided into two categories: calibration and prediction, with a ratio of 70% to 30%. For this purpose, validation of compiled models and selection of the best model was done by calculating Rc, RMSEC, Rcv, RMSECV, and SDR based on the study of Hassanzadeh et al. (2022) [22]. Figure 3 shows the block diagram of the test steps.
to validate the ability of the developed models, the data were randomly divided into two categories: calibration and prediction, with a ratio of 70% to 30%. For this purpose, validation of compiled models and selection of the best model was done by calculating Rc, RMSEC, Rcv, RMSECV, and SDR based on the study of Hassanzadeh et al. (2022) [22]. Figure 3 shows the block diagram of the test steps.

Multivariate Regression Modeling
According to the results of RMSEC (lowest value), Rc, and SDR (highest value), the best pre-processing was selected among the available pre-processing for each parameter.

pH Detection
The presented results related to Vis/NIR spectroscopy in Table 1 show that in both red and yellow apples, all the pre-processing performed as well as the spectra without pre-processing in ability to predict pH. The best-developed model for red apple pH prediction was obtained in 2 st Derivatives preprocessing with RMSEC = 0.009, rc = 0.991, SDR = 2.51. In yellow apples, the best pH prediction with acceptable accuracy was related to MSC preprocessing (RMSEC = 0.005, rc = 0.998, SDR = 2.56).

Multivariate Regression Modeling
According to the results of RMSEC (lowest value), Rc, and SDR (highest value), the best pre-processing was selected among the available pre-processing for each parameter.

pH Detection
The presented results related to Vis/NIR spectroscopy in Table 1 show that in both red and yellow apples, all the pre-processing performed as well as the spectra without preprocessing in ability to predict pH. The best-developed model for red apple pH prediction was obtained in 2 st Derivatives preprocessing with RMSEC = 0.009, r c = 0.991, SDR = 2.51. In yellow apples, the best pH prediction with acceptable accuracy was related to MSC preprocessing (RMSEC = 0.005, r c = 0.998, SDR = 2.56). The best prediction models are in bold.
The graph of model error changes vs. number of the main component in Vis/NIR spectroscopy in Figure 4 shows that for red and yellow apples, at the beginning, the model error is high in the number of LVS less than the optimal LVS due to poor fit, until the model error decreased with increasing LVS and RMSECV = 0.014 in LVS = 9 for red apple and RMSECV = 0.010 in yellow apple in LVS = 11. Figure 5 shows the predicted pH values by the best prediction model based on Vis/NIR spectra versus the measured values by the pH meter.  The best prediction models are in bold.
The graph of model error changes vs. number of the main component in Vis/NIR spectroscopy in Figure 4 shows that for red and yellow apples, at the beginning, the model error is high in the number of LVS less than the optimal LVS due to poor fit, until the model error decreased with increasing LVS and RMSECV = 0.014 in LVS = 9 for red apple and RMSECV = 0.010 in yellow apple in LVS = 11. Figure 5 shows the predicted pH values by the best prediction model based on Vis/NIR spectra versus the measured values by the pH meter.     Moons et al. (1998) reported a correlation coefficient equal to 0.78 and a sta error of prediction of 0.10 for apple pH prediction, which is consistent with our r Of course, since the equipment and working range of spectrometers and the mode the type of pre-processing and chemometric methods, as well as the variety and q characteristics of fruits and many other things are different, it is suggested that the r of spectrometry are not compared with each other [25]. Table 2 shows the results of calibration and prediction of titratable acid (TA) f and yellow apples, respectively, with the PLS model developed based on the combi of different pre-processing and Vis/NIR spectra. Based on the results presented in 2, red apple TA in the preprocessing of 1 st Derivatives resulted in the best predicti sults. The accuracy of the results obtained in this preprocessing (1 st Derivatives) ind that use of the Vis/NIR spectroscopy method was able to detect titratable acid with erate accuracy (RMSEC = 0.003, rc = 0.996, SDR = 2.51) for red apples. In yellow a SNV and MSC + SNV preprocessing also predicted the TA value with moderate acc and because the results of both methods were similar, they were chosen as the be diction results. Of course, since the equipment and working range of spectrometers and the mode used, the type of pre-processing and chemometric methods, as well as the variety and quality characteristics of fruits and many other things are different, it is suggested that the results of spectrometry are not compared with each other [25]. Table 2 shows the results of calibration and prediction of titratable acid (TA) for red and yellow apples, respectively, with the PLS model developed based on the combination of different pre-processing and Vis/NIR spectra. Based on the results presented in Table 2, red apple TA in the preprocessing of 1 st Derivatives resulted in the best prediction results. The accuracy of the results obtained in this preprocessing (1 st Derivatives) indicates that use of the Vis/NIR spectroscopy method was able to detect titratable acid with moderate accuracy (RMSEC = 0.003, r c = 0.996, SDR = 2.51) for red apples. In yellow apples, SNV and MSC + SNV preprocessing also predicted the TA value with moderate accuracy, and because the results of both methods were similar, they were chosen as the best prediction results. Figure 6 shows the RMSECV diagrams in each LV for the best prediction model in red and yellow apples based on Vis/NIR spectroscopy. According to the figure, the mentioned multivariate regression models had the lowest RMSECV at LVS = 10 for both red and yellow apples, which provided the best results for predicting the TA index of the samples. The results of predicting titratable acid based on Vis/NIR spectra for red and yellow apples with the best regression models developed for each are shown in Figure 7. The best prediction models are in bold. The best prediction models are in bold. Figure 6 shows the RMSECV diagrams in each LV for the best prediction model in red and yellow apples based on Vis/NIR spectroscopy. According to the figure, the mentioned multivariate regression models had the lowest RMSECV at LVS = 10 for both red and yellow apples, which provided the best results for predicting the TA index of the samples. The results of predicting titratable acid based on Vis/NIR spectra for red and yellow apples with the best regression models developed for each are shown in Figure 7.  [26] in the field of predicting the titratable acid of apples using spectroscopy, the prediction accuracy of this attribute had a correlation coefficient of 0.7, and the root mean square error of prediction was 0.1 in the limited wavelength regions of 7498.1-9403.5 cm −1 .  [26] in the field of predicting the titratable acid of apples using spectroscopy, the prediction accuracy of this attribute had a correlation coefficient of 0.7, and the root mean square error of prediction was 0.1 in the limited wavelength regions of 7498.1-9403.5 cm −1 . Table 3 shows the results of calibration and validation of PLS models based on different pre-processing of Vis/NIR spectra for measuring soluble solids content (SSC) of red and yellow apple samples.

Detection of Soluble Solids Content (SSC)
Based on the validation of models in red apple (Table 3), the best multivariate regression model in Vis/NIR spectroscopy was determined for predicting soluble solids content by preprocessing 2 st Derivatives in this variety. This model was implemented in LVS = 10, where RMSEC = 0.209, rc = 0.990, and SDR = 2.82 were obtained, indicating the good accuracy of the developed model. The SSC of yellow apple was best predicted by Vis/NIR spectroscopy in MSC pre-processing with LVs = 10, RMSEC = 0.054, SDR = 2.67, and rc = 0.999. These results are depicted in Figure 8. Figure 9 shows the predicted values of TA by the best prediction model based on Vis/NIR spectra vs. the measured values.  Table 3 shows the results of calibration and validation of PLS models based on different pre-processing of Vis/NIR spectra for measuring soluble solids content (SSC) of red and yellow apple samples. The best prediction models are in bold.

Detection of Soluble Solids Content (SSC)
Based on the validation of models in red apple (Table 3), the best multivariate regression model in Vis/NIR spectroscopy was determined for predicting soluble solids content by preprocessing 2 st Derivatives in this variety. This model was implemented in LVS = 10, where RMSEC = 0.209, r c = 0.990, and SDR = 2.82 were obtained, indicating the good accuracy of the developed model. The SSC of yellow apple was best predicted by Vis/NIR spectroscopy in MSC pre-processing with LVs = 10, RMSEC = 0.054, SDR = 2.67, and r c = 0.999. These results are depicted in Figure 8. The best prediction models are in bold.
(a) (b) Figure 8. Changes of RMSECV vs. LVS to predict SSC for the best preprocessing (2 st Derivati for red apples and MSC for yellow apples (b) in Vis/NIR spectroscopy.  Figure 9 shows the predicted values of TA by the best prediction model based on Vis/NIR spectra vs. the measured values.
The results of the research findings of most researchers show that the soluble solids content of different apple cultivars can be predicted with good accuracy using the near infrared spectroscopy method. In the research conducted by Xiaobo et al. (2007) [27] to predict SSC, the value of correlation coefficient was 0.83 and the root mean square error of prediction was 1.1. In another research, McGlone and Kawano (1998) [28] were able to predict the amount of soluble solids content in apples with R 2 = 0.93. In addition, Fan et al. (2020) concluded that the developed device had considerable potential to detect the SSC of apple in practical situations [29]. Tian et al. (2020) confirmed the accuracy of Vis/NIR for rapid and real-time detection of internal quality of thick-skinned fruits [30]. The results of the research findings of most researchers show that the soluble solids content of different apple cultivars can be predicted with good accuracy using the near infrared spectroscopy method. In the research conducted by Xiaobo et al. (2007) [27] to predict SSC, the value of correlation coefficient was 0.83 and the root mean square error of prediction was 1.1. In another research, McGlone and Kawano (1998) [28] were able to predict the amount of soluble solids content in apples with R 2 = 0.93. In addition, Fan et al. (2020) concluded that the developed device had considerable potential to detect the SSC of apple in practical situations [29]. Tian et al. (2020) confirmed the accuracy of Vis/NIR for rapid and real-time detection of internal quality of thick-skinned fruits [30].

Detection of Total Phenol (TP)
The validation results of PLS calibration models based on the combination of different pre-processing of Vis/NIR spectra to predict the total phenol (TP) of red and yellow apples are given in Table 4. Table 4 shows that in Vis/NIR spectroscopy, the 2 st Derivatives with RMSEC = 2.752, rc = 0.989, and SDR = 2.05 was selected as the best prediction model for red apple total phenol. In yellow apples, MSC + SNV and SNV pre-processing were selected as the best models with the results of RMSEC = 1.457, rc = 0.998, and SDR = 1.61.
The error changes of the models based on the change in the number of the main component for TP in Figure 10 show that in Vis/NIR spectroscopy, both red and yellow apples had the least error in the best pre-processing at LVS = 11.
The predicted values of TP by the best model vs. its measured values are shown in Figure 11 based on Vis/NIR spectroscopy. Figure 9. Predicted values of soluble solids content (SSC) with the best developed models vs. its measured values for red apples (a) and yellow apples (b) in Vis/NIR spectroscopy.

Detection of Total Phenol (TP)
The validation results of PLS calibration models based on the combination of different pre-processing of Vis/NIR spectra to predict the total phenol (TP) of red and yellow apples are given in Table 4. Table 4 shows that in Vis/NIR spectroscopy, the 2 st Derivatives with RMSEC = 2.752, rc = 0.989, and SDR = 2.05 was selected as the best prediction model for red apple total phenol. In yellow apples, MSC + SNV and SNV pre-processing were selected as the best models with the results of RMSEC = 1.457, r c = 0.998, and SDR = 1.61. The best prediction models are in bold.
The error changes of the models based on the change in the number of the main component for TP in Figure 10 show that in Vis/NIR spectroscopy, both red and yellow apples had the least error in the best pre-processing at LVS = 11. The best prediction models are in bold.
(a) (b) Figure 10. Changes of RMSECV vs. LVS to predict TP for the best preprocessing (2 st Deriva for red apples and MSC + SNV and SNV for yellow apples (b) in Vis/NIR spectroscopy. The predicted values of TP by the best model vs. its measured values are shown in Figure 11 based on Vis/NIR spectroscopy. Pissard et al. (2013) [31] developed an LS-SVM model to predict total phenol content in apples using spectra recorded in the 400-2500 nm region. In his research, it was proved that the S-G derivative is the best pre-processing method. This model performed well with r p = 0.97 and RMSEP = 140 mg/g. A similar result was obtained by Bureau et al. (2012) [32], who applied mid-infrared spectroscopy in the range of 6378-9900 nm. The PLS model they created performed very well, with r p = 0.98 and RMSEP = 0.09. They also found that phenolic compounds, unlike sugar and organic acid content, can be affected by sample oxidation, abrasion, and storage temperature in descending order. These two pieces of research proved the possibility of predicting the total phenol level in apples using spectroscopic technology.  Figure 11. Predicted values of total phenol (TP) with the best developed models vs. its measured values for red apples (a) and yellow apples (b) in Vis/NIR spectroscopy. Pissard et al. (2013) [31] developed an LS-SVM model to predict total phenol content in apples using spectra recorded in the 400-2500 nm region. In his research, it was proved that the S-G derivative is the best pre-processing method. This model performed well with rp = 0.97 and RMSEP = 140 mg/g. A similar result was obtained by Bureau et al. (2012) [32], who applied mid-infrared spectroscopy in the range of 6378-9900 nm. The PLS model they created performed very well, with rp = 0.98 and RMSEP = 0.09. They also found that phenolic compounds, unlike sugar and organic acid content, can be affected by sample oxidation, abrasion, and storage temperature in descending order. These two pieces of research proved the possibility of predicting the total phenol level in apples using spectroscopic technology.

Conclusions
The results obtained from this research showed that non-destructive method of nearinfrared spectroscopy by spectroradiometer model PS-100 with a CCD detector of 2048 pixels in the range of 110-350 nm with a transmission mode has a high ability to measure the pH, SSC, TA, and TP parameters of red and yellow apples.
In this research, spectrometry was first performed using a spectroradiometer. Then, reference measurements were performed using chemical properties. The results of the data analysis showed that the SDR of the best prediction accuracy related to pH parameters for red and yellow apples is 2.51 and 2.56, respectively; TA for red and yellow apples is 2.51 and 2.81, respectively; and for SSC in red and yellow apples, it is 2.82 and 2.67, respectively, which indicates excellent accuracy (SDR < 2.5). In addition, SDR of the best prediction accuracy related to TP parameter in the spectroscopy method for red apples was 2.05 with good accuracy (SDR < 2) and for yellow apples was 1.61 with moderate accuracy (SDR < 1.5).
The parameters studied in this research are of particular importance due to the prevention of product wastage by determining its ripening time, shelf life, and export bene- Figure 11. Predicted values of total phenol (TP) with the best developed models vs. its measured values for red apples (a) and yellow apples (b) in Vis/NIR spectroscopy.

Conclusions
The results obtained from this research showed that non-destructive method of near-infrared spectroscopy by spectroradiometer model PS-100 with a CCD detector of 2048 pixels in the range of 110-350 nm with a transmission mode has a high ability to measure the pH, SSC, TA, and TP parameters of red and yellow apples.
In this research, spectrometry was first performed using a spectroradiometer. Then, reference measurements were performed using chemical properties. The results of the data analysis showed that the SDR of the best prediction accuracy related to pH parameters for red and yellow apples is 2.51 and 2.56, respectively; TA for red and yellow apples is 2.51 and 2.81, respectively; and for SSC in red and yellow apples, it is 2.82 and 2.67, respectively, which indicates excellent accuracy (SDR < 2.5). In addition, SDR of the best prediction accuracy related to TP parameter in the spectroscopy method for red apples was 2.05 with good accuracy (SDR < 2) and for yellow apples was 1.61 with moderate accuracy (SDR < 1.5).
The parameters studied in this research are of particular importance due to the prevention of product wastage by determining its ripening time, shelf life, and export benefits.
According to the results obtained from this research, the following are suggested in future research:

•
The results of this research should be used in order to build a system for the diagnosis and grading of apples based on qualitative characteristics and based on radiometry; • The non-destructive method of Vis/NIR spectroscopy should be used to detect other quality characteristics that are difficult to measure by destructive methods, including apple antioxidants, amino acids, vitamins, etc.; • Separate calibration models should be developed for quality evaluation of other important apple cultivars.