Next Article in Journal
Research on Data Security Communication Scheme of Heterogeneous Swarm Robotics System in Emergency Scenarios
Previous Article in Journal
A 10-Bit 400-KS/s Low Noise Asynchronous SAR ADC with Dual-Domain Comparator for Input-Referred Noise Reduction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Estimation of Soluble Solids for Stone Fruit Varieties Based on Near-Infrared Spectra Using Machine Learning Techniques

1
Escuela de Ingeniería Eléctrica, Facultad de Ingeniería, Pontificia Universidad Católica de Valparaíso, Valparaiso 2374631, Chile
2
Departamento de Fruticultura y Enología, Facultad de Agronomía e Ingeniería Forestal, Pontificia Universidad Católica de Chile, Santiago 8331150, Chile
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(16), 6081; https://doi.org/10.3390/s22166081
Submission received: 9 June 2022 / Revised: 25 July 2022 / Accepted: 3 August 2022 / Published: 14 August 2022
(This article belongs to the Section Electronic Sensors)

Abstract

:
The quality control for fruit maturity inspection is a key issue in fruit packaging and international trade. The quantification of Soluble Solids (SS) in fruits gives a good approximation of the total sugar concentration at the ripe stage, and on the other hand, SS alone or in combination with acidity is highly related to the acceptability of the fruit by consumers. The non-destructive analysis based on Visible (VIS) and Near-Infrared (NIR) spectroscopy has become a popular technique for the assessment of fruit quality. To improve the accuracy of fruit maturity inspection, VIS–NIR spectra models based on machine learning techniques are proposed for the non-destructive evaluation of soluble solids in considering a range of variations associated with varieties of stones fruit species (peach, nectarine, and plum). In this work, we propose a novel approach based on a Convolutional Neural Network (CNN) for the classification of the fruits into species and then a Feedforward Neural Network (FNN) to extract the information of VIS–NIR spectra to estimate the SS content of the fruit associated to several varieties. A classification accuracy of 98.9 % was obtained for the CNN classification model and a correlation coefficient of R c > 0.7109 for the SS estimation of the FNN models was obtained. The results reported show the potential of this method for a fast and on-line classification of fruits and estimation of SS concentration.

1. Introduction

Fruit quality inspection is an important issue in the international trade of fruits and vegetables. Consumer acceptance of fruits [1,2,3,4,5], without the expression of physiological disorder symptoms, is further determined by sugar, acid concentration, and the ratio between both parameters. The quantification of SS in stone fruits gives a good approximation of total sugar concentration at the ripe stage because the sugars comprise the major component of SS and not much storage reserve carbohydrates remain in the fruit. Stone fruits comprise several species with a wide range of varieties expressing different flavors and external and internal quality attributes. Among them, peaches (Prunus persica (L.) Batsch) and the mutation nectarines and plums (Prunus salicina L.) are extensively planted worldwide. Among the quality parameters that determine the eating acceptability of stone fruit, flavor is a complex attribute made up of a mixture of sugars, acids, and volatile components. In peaches, the acceptability of the fruit is strongly related to the concentration of soluble solids and the acidity of the fruit, thus a minimum between 11 and 12 % of SS is required [4]. However, there are varieties that can reach SS values above 20 % [5]. In plums, a great diversity of varieties have been introduced with different colors and a diversity of flavors and range of soluble solids. Plums with SS higher than 12 % show consumer acceptance higher than 75 % [1]. Plumcot or pluot are interspecific hybrids, crosses between plum and apricot with notable flavor characteristics [3]. The differences in the values of SS indicate the need to develop SS models for each variety. However, the similarities between the varieties make the visual identification a difficult task; therefore, a method that allows the correct identification of the variety from the VIS–NIR spectra is necessary.
The Quantification of SS using a refractrometer is a well-established procedure to determine the sugar concentration in the fruits [6]. Although the procedure is well diffused in the industry and it has a good relation with the sweetness of the fruit, it cannot always can be performed individually. An average of juice samples, including many fruits, is recorded and used to characterize the population. Therefore a non-invasive and fast technology is required to better understand the individual eating quality of fruits. The non-destructive analysis based on NIR spectroscopy has become a popular technique for the assessment of fruit and vegetables [7,8,9,10] and has been used for estimation of SS concentration in fruits, including apples [6], kiwifruit [11], peaches [12], and nectarines [13] and has been used for tobacco classification [14], fruit classification [15], and mango classification [16]. Moreover, machine learning techniques have been used [16,17,18,19].
In this work, a novel approach based on a CNN and an FNN was developed, to improve stone fruit quality inspection. The CNN was used to classify the fruits into species, and then the FNN was used to estimate the SS concentration among varieties of each species from the VIS–NIR spectra classified. A classification accuracy of 98.9 % was obtained for the CNN classification model, and a R c > 0.7109 was obtained for the SS estimation FNN model.

2. Materials and Methods

2.1. Samples

A total of 1780 samples of fruits (Table 1) were collected during January and February 2013 from the Central region of Chile (O’Higgins Region). The samples were initially analyzed using an interactance optical setup (Figure 1) to record their absorbance spectra, then a PAL-1, ATAGO Co., Ltd. (Tokio, Japan) equipment was used to process the samples and to measure the soluble solids concentration so that they could be used as reference for the subsequent calibration process.

2.2. Hardware

During this work, a spectrometer HR4000TM from Ocean Optics Inc. (Orlando, FL, USA) was used to acquire an individual spectra of the fruit. It incorporates a CCD detector with a linear array of 3648 elements and a diffraction grid (600 lines mm 1 in the 200–1100 nm range), giving a resolution of 0.02–8.4 nm FWHM and a signal-to-noise ratio of 300:1 for wavelengths. The light source is a 150 W EKE Quartz Halogen of 3200 K color temperature.

2.3. Optical Design

A diffuse interactance setup was used to reduce the effect of the variability of the sample size. The optical configuration used generates diffuse interactance resulting from a bottom illumination and a 45° lateral reading (Figure 1). A large aperture collimator lens with a field of view of 45° was used to capture high optical power into the spectrometer fiber.
As observed in Figure 1, the light that interacts with the sample is collected and focused by the collimator lens. The emission of the sample is focused into the optical fiber; finally, the spectrometer receives the light and generates the spectrum. The spectrum is transmitted using a USB port into the computer for mathematical processing. A special design for illumination and reading was required. The reason for this design was to avoid reflections and the environmental light being collected by the system.

2.4. Acquisition

In the acquisition of the spectra, the absorbance spectra ( A λ ) was calculated:
A λ = l o g 10 S λ D λ R λ D λ ,
where S λ is the emission spectrum, D λ is the dark spectrum, and R λ is the reference spectrum. The dark spectrum is required to normalize the data, reducing the effect of temperature variations on the CCD. The reference spectrum compensates for illumination instabilities, such as dust, power source variations, and the like. The integration time for the sample spectrum and reference spectrum (150 ms) was defined to ensure that S λ > D λ and R λ > D λ , for every wavelength so that A λ is a real number (Equation (1)).
Two measures of spectra, one on each side in the equatorial region of the 1780 samples of fruits were performed, giving a total of 3560 spectra. Prior to acquiring the spectra for every fruit, dark and reference spectra were taken. The dark spectrum is obtained in the absence of light for an integration time of 150 ms, and the reference spectrum is obtained positioning an Ocean Optics Inc. WS-1 Diffuse Reflectance Standard in the place of the fruit for an integration time of 150 ms. To guarantee the thermal stabilization of the light source, it was turned on for at least 5 min. to acquire the reference spectra.
The set of samples were randomly separated for calibration ( 60 % ), validation ( 20 % ), and test ( 20 % ). The calibration set was used to train the prediction models; the validation and test set was used to measure the performance of the prediction models to new fruits not included in the calibration set. As mentioned before, the reference measurements for soluble solids concentration were obtained by traditional chemical procedures using a Digital Refractrometer (PAL-1, ATAGO Co., Ltd. (Tokio, Japan)). Summary values are given in Table 2.

2.5. Spectral Processing

Due to problems, such as noise in the dark spectra and the noise in the mathematical calculation of the absorbance spectra, it was necessary to apply smoothing techniques to improve the signal-to-noise ratio and improve the prediction performance of the models.

2.5.1. Spectral Correction

To reduce the noise of the absorbance spectra, the Standard Normal Variance [20] and Multiplicative Scattering Correction [21] algorithms were applied to the raw spectra without a positive impact on the results.

2.5.2. Smoothing

To reduce the noise in the absorbance spectra, a first-order Savitsky–Golay filter with a window width between 11–251 was applied to smooth the absorbance spectra. However, the best results were obtained with a window width of 11. Figure 2 shows the spectra of a fruit sample after the Savitsky–Golay filter smoothing process.

2.6. Convolutional Neural Network (CNN)

A CNN is a machine learning model widely used as a classification model and recently used in the classification of spectra [8,19]. The main structure of a CNN includes an input layer, a convolution layer, a pooling layer, a fully connected layer, and finally an output layer [22]. In this work, a CNN based on a residual network architecture (ResNet) [23,24,25,26] with a bottleneck block (Figure 3) was used to classify the fruits based on their VIS–NIR absorbance spectra.

2.6.1. Convolutional Layer

The convolutional layer is one of the main blocks of a CNN. In this layer, a dot product operation is performed between the input and a sliding filter(convolutional kernel). Then a bias term is added as is shown in Figure 4.

2.6.2. Batch Normalization Layer

The batch normalization layer is described in [27] and is widely used to accelerate the training process and to make the training process independent of initialization values of the CNN.

2.6.3. ReLU layer

The rectified linear activation function or ReLU is a linear function that will output the input directly if it is positive; otherwise, it will output zero (Equation (2))
f ( x ) = m a x ( 0 , x ) ,
The ReLU layer has become the default activation function used in many types of neural networks [28].

2.6.4. Pooling Layer

The pooling process is very similar to the convolution operation. A filter of length N is slid over the input to calculate an output. The pooling layer is usually used to down-sample the input and to reduce the quantity of parameters to estimate in the CNN [29]. There are several functions used as pooling layers. The most commonly used functions are the max pooling (Equation (3)) and the average pooling (Equation (4)).
c j = m a x ( x j , x j + 1 , , x j + N 1 ) ,
c j = ( x j + x j + 1 + + x j + N 1 ) / N ,

2.6.5. Fully Connected Layer

The fully connected layer corresponds to a FNN. In this work, a fully connected layer with 6 outputs was used.

2.6.6. Softmax Layer

The softmax function is commonly used in a classification process [30]. The softmax value of an array X is calculated by:
S i = e x i j = 1 N e x j
In a CNN, the softmax function is used as a measure of the probability that the sample x i belongs to a specific category.

2.7. Feedforward Neural Netwok (FNN)

An FNN is a kind of neural network which consists of an input layer, a hidden layer, and an output layer. The standard structure of an FNN includes an input layer, a hidden layer, and an output layer of 1 neuron (Figure 5).
Finally, an FNN using the architecture of Figure 5 was used to estimate the soluble content of the fruits based on their VIS–NIR spectra.

2.8. Model Training Parameters

Each layer of the CNN and FNN have parameters that affect the training process. The detail of the parameters and the values for the training process are described in Table 3.

2.9. Model Performance Evaluation

To evaluate the performance of the trained CNN model, the accuracy index that indicates the rate of correctly classified samples, was calculated by:
A c c u r a c y = T P + T N N T 100 % ,
where a true positive (TP) and a true negative (TN) indicate an accurate identification, and N T represents the total number of samples.
The performance of the SS FNN models was assessed in terms of the Root Mean Square Error of the calibration set (RMSEC), the Root Mean Square Error of the validation set (RMSEV), the Root Mean Square Error of the test set (RMSET) and the correlation coefficient (R). These values are given by:
R M S E ( C / V / T ) = i = 1 N ( y ^ i y i ) N 1 ,
R C / V / T = C o v ( y ^ i , y i ) σ y σ y ^ ,
where y i and y ^ i are the reference and predicted values of the sample, respectively.

3. Results and Discussion

Eight neural networks models were trained, one CNN for classification of the fruit by species (Plumcot (PL), Peaches (PE), Black Plums (BP), Red Plums (RP), White pulp nectarines (WPN), and Yellow pulp nectarines (YPN)), one FNN soluble solids model for each fruit species defined in Table 1, and one FNN soluble solids including all samples. The aim was to find the best soluble solid FNN model compared with the reference data obtained from the Digital Refractometer. For the training of the classification CNN model, the spectra were separated in two groups: calibration ( 70 % , 2492 samples) and validation ( 30 % , 1068 samples) The group of spectra (Figure 2) for each FNN SS model was randomly separated in groups: calibration ( 60 % , 1536 samples), validation ( 20 % , 712 samples), and test ( 20 % , 712 samples). The calibration set was used to train the models, and the validation and test set was used to measure the performance of the models to classify or estimate the SS values of new fruits not included in the calibration set. To guarantee thermal stability for the different setups, the excitation sources were put to work at least 5 min prior to any measurement. The results obtained for the classification CNN model are summarized in Figure 6.
The results show that the CNN classification model has an accuracy greater than 97.1 % . Only 12 samples were incorrectly classified in the validation set: 2 BP classified as PL, 1 PE classified as WPN, 1 PL classified as BP, 4 WPN classified as YPN, and 2 YPN classified as WPN. The results show that spectra contain useful information about the classification of fruit species, and it is possible to correctly classify the fruit 98.9 % of the time. Due to this performance of the classification model, a specific SS FNN model for each fruit was trained. The calibration, validation, and test results obtained for the SS FNN models are summarized in Table 4.
The results from Table 4 show that the SS FNN RP model has the best performance in terms of the RMSE and R. On the other hand, the YPN has the worst performance in terms of the RMSE and R. In addition, the results show that a model including all samples has a lower performance in terms of RMSE. This lower performance demonstrates the need to have a model that allows the classification of fruits according to their spectrum to apply the correct SS FNN model to each species of fruit. Even though the spectra (Figure 2) show two noisy regions, it was possible to extract useful information from the VIS–NIR spectra to train the classification and SS models. Nevertheless, in a future work an improvement in the acquisition of the absorbance spectra is necessary to reduce the sources of instability.

4. Conclusions

In this work, we addressed the estimation of soluble solids in stone fruits using VIS–NIR spectra. We proposed the use of a classification model before the soluble solid estimation model. The results obtained demonstrate that it is possible to use machine learning techniques to develop a classification model that identifies the correct SS model to use for on-line determination of fruit maturity and quality control. This is an important result for the quality control issue because it allows reducing the error of choosing an incorrect model or using a general model that has a lower performance than a specific model.

Author Contributions

Data curation, P.E.; formal analysis, P.E.; investigation, P.E.; validation, G.F., P.N. and J.P.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research is funding by the Pontificia Universidad Católica de Valparaiso, Pontificia Universidad Católica de Chile and San Francisco Lo Garces.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable. No new data were created or analysed in this study. Data sharing is not applicable to this article.

Acknowledgments

The authors are thankful to San Francisco Lo Garces, fruit exporter for the partial support of this research.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
VISVisible
NIRNear Infrared
SSSoluble Solids
CNNConvolutional Neural Network
FNNFeedforward Neural Network
ResNetResidual Network
TPTrue Positive
N T Total number of samples
RMSERoot Mean Square error
RMSECRoot Mean Square Error of Calibration set
RMSEVRoot Mean Square Error of Validation set
RMSETRoot Mean Square Error of test set
RCorrelation Coefficient
R C Correlation Coefficient of Calibration set
R V Correlation Coefficient of Validation set
R T Correlation Coefficient of test set
PLPlumcot
PEPeaches
BPBlack Plums
RPRed Plums
WPNWhite pulp nectarines
YPNYellow pulp nectarines

References

  1. Crisosto, C.H.; Garner, D.; Crisosto, G.M.; Bowerman, E. Increasing ‘Blackamber’ plum (Prunus salicina Lindell) consumer acceptance. Postharvest Biol. Technol. 2004, 34, 237–244. [Google Scholar] [CrossRef]
  2. Crisosto, C.H.; Crisosto, G.M.; Echeverria, G.; Puy, J. Segregation of peach and nectarine (Prunus persica (L.) Batsch) cultivars according to their organoleptic characteristics. Postharvest Biol. Technol. 2006, 39, 10–18. [Google Scholar] [CrossRef]
  3. Crisosto, C.H.; Crisosto, G.M.; Echeverria, G.; Puy, J. Segregation of plum and pluot cultivars according to their organoleptic characteristics. Postharvest Biol. Technol. 2007, 44, 271–276. [Google Scholar] [CrossRef]
  4. Crisosto, C.; Valero, D. Harvesting and Postharvest Handling of Peaches for the Fresh Market; Layne, D., Bassi, D., Eds.; CABI: New York, NY, USA, 2008. [Google Scholar] [CrossRef]
  5. Roselló, G.R.; Montserrat, R.; Rocas, J.B. Innovación varietal en nectarina y melocotón plano o paraguayo. Rev. Frutic. 2010, 9, 4–17. [Google Scholar]
  6. Crisosto, C.H. Stone fruit maturity indices: A descriptive review. Postharvest News Inf. 1994, 5, 65N–68N. [Google Scholar]
  7. Nicolaï, B.M.; Beullens, K.; Bobelyn, E.; Peirs, A.; Saeys, W.; Theron, K.I.; Lammertyn, J. Nondestructive measurement of fruit and vegetable quality by means of NIR spectroscopy: A review. Postharvest Biol. Technol. 2007, 46, 99–118. [Google Scholar] [CrossRef]
  8. Chang, Y.T.; Hsueh, M.C.; Hung, S.P.; Lu, J.M.; Peng, J.H.; Chen, S.F. Prediction of specialty coffee flavors based on near-infrared spectra using machine- and deep-learning methods. J. Sci. Food Agric. 2021, 101, 4705–4714. [Google Scholar] [CrossRef]
  9. Moghimi, A.; Aghkhani, M.H.; Sazegarnia, A.; Sarmad, M. Nondestructive evaluation of internal quality characteristics of kiwifruit by Vis/NIR spectroscopy. J. Hortic. Sci. 2008, 22, 113–121. Available online: http://xxx.lanl.gov/abs/https://jhs.um.ac.ir/article_25069_9215f713fd8ae06703810300a5d1ca70.pdf (accessed on 30 April 2022). [CrossRef]
  10. Caporaso, N.; Whitworth, M.B.; Fisk, I.D. Prediction of coffee aroma from single roasted coffee beans by hyperspectral imaging. Food Chem. 2022, 371, 131159. [Google Scholar] [CrossRef]
  11. Slaughter, D.C.; Crisosto, C.H. Nondestructive internal quality assessment of kiwifruit using near-infrared spectroscopy. In Seminars in Food Analysis; CHAPMAN & HALL: London, UK, 1998; Volume 3, pp. 131–140. [Google Scholar]
  12. Carlomagno, G.; Capozzo, L.; Attolico, G.; Distante, A. Non-destructive grading of peaches by near-infrared spectrometry. Infrared Phys. Technol. 2004, 46, 23–29. [Google Scholar] [CrossRef]
  13. Slaughter, D. Nondestructive determination of internal quality in peaches and nectarines. Trans. ASAE 1995, 38, 617–623. [Google Scholar] [CrossRef]
  14. Marcelo, M.C.A.; Soares, F.F.; Ardila, J.A.; Dias, J.C.; Pedó, R.; Kaiser, S.; Pontes, O.F.S.; Pulcinelli, C.E.; Sabin, G.P. Fast inline tobacco classification by near-infrared hyperspectral imaging and support vector machine-discriminant analysis. Anal. Methods 2019, 11, 1966–1975. [Google Scholar] [CrossRef]
  15. Parashar, N.; Mishra, A.; Mishra, Y. Fruits Classification and Grading Using VGG-16 Approach. In Proceedings of International Conference on Communication and Artificial Intelligence; Goyal, V., Gupta, M., Mirjalili, S., Trivedi, A., Eds.; Springer Nature: Singapore, 2022; pp. 379–387. [Google Scholar]
  16. Budiastra, I.W.; Punvadaria, H.K. Classification of Mango by Artificial Neural Network Based on Near Infrared Diffuse Reflectance. IFAC Proc. Vol. 2000, 33, 157–161. [Google Scholar] [CrossRef]
  17. Xu, R.; Zhang, L.; Ding, X.; Hou, R. Classification Modeling Method for Near-Infrared Spectroscopy of Tobacco Based on Multimodal Convolution Neural Networks. J. Anal. Methods Chem. 2020, 2020, 9652470. [Google Scholar] [CrossRef]
  18. Wang, D.; Tian, F.; Yang, S.X.; Zhu, Z.; Jiang, D.; Cai, B. Improved Deep CNN with Parameter Initialization for Data Analysis of Near-Infrared Spectroscopy Sensors. Sensors 2020, 20, 874. [Google Scholar] [CrossRef] [PubMed]
  19. Zhang, X.; Xu, J.; Yang, J.; Chen, L.; Zhou, H.; Liu, X.; Li, H.; Lin, T.; Ying, Y. Understanding the learning mechanism of convolutional neural networks in spectral analysis. Anal. Chim. Acta 2020, 1119, 41–51. [Google Scholar] [CrossRef]
  20. Barnes, R.J.; Dhanoa, M.S.; Lister, S.J. Standard Normal Variate Transformation and De-Trending of Near-Infrared Diffuse Reflectance Spectra. Appl. Spectrosc. 1989, 43, 772–777. [Google Scholar] [CrossRef]
  21. Geladi, P.; MacDougall, D.; Martens, H. Linearization and Scatter-Correction for Near-Infrared Reflectance Spectra of Meat. Appl. Spectrosc. 1985, 39, 491–500. [Google Scholar] [CrossRef]
  22. Shin, H.C.; Roth, H.R.; Gao, M.; Lu, L.; Xu, Z.; Nogues, I.; Yao, J.; Mollura, D.; Summers, R.M. Deep Convolutional Neural Networks for Computer-Aided Detection: CNN Architectures, Dataset Characteristics and Transfer Learning. IEEE Trans. Med Imaging 2016, 35, 1285–1298. [Google Scholar] [CrossRef]
  23. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
  24. Paoletti, M.E.; Haut, J.M.; Fernandez-Beltran, R.; Plaza, J.; Plaza, A.J.; Pla, F. Deep pyramidal residual networks for spectral–spatial hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2018, 57, 740–754. [Google Scholar] [CrossRef]
  25. Gao, H.; Yang, Y.; Yao, D.; Li, C. Hyperspectral Image Classification With Pre-Activation Residual Attention Network. IEEE Access 2019, 7, 176587–176599. [Google Scholar] [CrossRef]
  26. Jiang, D.; Qi, G.; Hu, G.; Mazur, N.; Zhu, Z.; Wang, D. A residual neural network based method for the classification of tobacco cultivation regions using near-infrared spectroscopy sensors. Infrared Phys. Technol. 2020, 111, 103494. [Google Scholar] [CrossRef]
  27. Ioffe, S.; Szegedy, C. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. In Proceedings of Machine Learning Research, Proceedings of the 32nd International Conference on Machine Learning, Lille, France, 7–9 July 2015; Bach, F., Blei, D., Eds.; PMLR: Lille, France, 2015; Volume 37, pp. 448–456. [Google Scholar]
  28. Nair, V.; Hinton, G.E. Rectified Linear Units Improve Restricted Boltzmann Machines. In Proceedings of the International Conference on Machine Learning, Haifa, Israel, 21–24 June 2010. [Google Scholar]
  29. Gu, J.; Wang, Z.; Kuen, J.; Ma, L.; Shahroudy, A.; Shuai, B.; Liu, T.; Wang, X.; Wang, G.; Cai, J.; et al. Recent advances in convolutional neural networks. Pattern Recognit. 2018, 77, 354–377. [Google Scholar] [CrossRef]
  30. Wang, F.; Cheng, J.; Liu, W.; Liu, H. Additive Margin Softmax for Face Verification. IEEE Signal Process. Lett. 2018, 25, 926–930. [Google Scholar] [CrossRef]
Figure 1. Optics setup.
Figure 1. Optics setup.
Sensors 22 06081 g001
Figure 2. Absorbance Spectra of Beauty Sweet peach.
Figure 2. Absorbance Spectra of Beauty Sweet peach.
Sensors 22 06081 g002
Figure 3. ResNet architecture.
Figure 3. ResNet architecture.
Sensors 22 06081 g003
Figure 4. Schematic diagram of 1D convolution operation.
Figure 4. Schematic diagram of 1D convolution operation.
Sensors 22 06081 g004
Figure 5. FNN architecture. w j k represent the weight of the connection.
Figure 5. FNN architecture. w j k represent the weight of the connection.
Sensors 22 06081 g005
Figure 6. Confusion matrix of the validation group. The green squares represent the number of TP samples, the light pink squares represent the number of samples that were incorrectly classified, the green values represent the percentage of TP samples and the red values represent the percentage of samples that were incorrectly classified.
Figure 6. Confusion matrix of the validation group. The green squares represent the number of TP samples, the light pink squares represent the number of samples that were incorrectly classified, the green values represent the percentage of TP samples and the red values represent the percentage of samples that were incorrectly classified.
Sensors 22 06081 g006
Table 1. Number of samples by species of stone fruits.
Table 1. Number of samples by species of stone fruits.
Fruit SpeciesVarietyNumber of Samples
PeachesBeauty Sweet40
Elegant Lady60
September Sun60
Zee Lady20
Yellow Pulp NectarinesRuby Diamond20
Summer Diamond40
Red Jim100
Zee Glo60
Venus60
August Red80
White Pulp NectarinesArctic Snow60
August Pearl140
Giant Pearl140
Red PlumsFortune80
Red Heart100
Black PlumsAngeleno80
Autumn Pride120
Black Kat120
PlumcotsBlue Gusto120
Dapple Dandy80
Flavor Granade120
Flavor Rich80
Table 2. Soluble solids reference values statistics.
Table 2. Soluble solids reference values statistics.
Min.MaxMeanStd. Dev.
Soluble Solids Concentration (%)6.320.912.292.57
Table 3. Model training parameters.
Table 3. Model training parameters.
ModelLayerParameters
CNNConvolution 1Filter Size: 7 Number Filters: 64
BatchNorm 1Mean Decay: 0.1 Variance Decay: 0.1 Epsilon: 0.00001
Max PoolingPool Size: 5 Stride: 1
Convolution 2Filter Size: 3 Number Filters: 64
BatchNorm 2Mean Decay: 0.1 Variance Decay: 0.1 Epsilon: 0.00001
Convolution 3Filter Size: 3 Number Filters: 64
BatchNorm 3Mean Decay: 0.1 Variance Decay: 0.1; Epsilon: 0.00001
Average PoolingPool Size: 5 Stride: 1
Fully ConnectedOutput Size: 6
Training Algorithm: Stochastic gradient descent with momentum (SGDM)
Learning Rate: 0.0001; Epochs: 200
FNNHiddenNeurons: 50
Training Algorithm: Scaled Conjugate Gradient
Epochs: 200
Table 4. Soluble solids models performance.
Table 4. Soluble solids models performance.
ModelRMSECRMSEVRMSET R c R v R T
RP0.63030.70540.58230.92060.86930.9548
BP0.73450.67070.64440.91060.91710.9363
PE1.09350.92251.17390.84080.90270.8033
YPN1.86341.58611.90850.71090.74480.6681
WPN1.35190.92251.16250.89810.95330.9306
PL1.26880.84541.08590.86930.94070.9123
All1.41081.43841.46500.83400.82580.8237
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Escárate, P.; Farias, G.; Naranjo, P.; Zoffoli, J.P. Estimation of Soluble Solids for Stone Fruit Varieties Based on Near-Infrared Spectra Using Machine Learning Techniques. Sensors 2022, 22, 6081. https://doi.org/10.3390/s22166081

AMA Style

Escárate P, Farias G, Naranjo P, Zoffoli JP. Estimation of Soluble Solids for Stone Fruit Varieties Based on Near-Infrared Spectra Using Machine Learning Techniques. Sensors. 2022; 22(16):6081. https://doi.org/10.3390/s22166081

Chicago/Turabian Style

Escárate, Pedro, Gonzalo Farias, Paulina Naranjo, and Juan Pablo Zoffoli. 2022. "Estimation of Soluble Solids for Stone Fruit Varieties Based on Near-Infrared Spectra Using Machine Learning Techniques" Sensors 22, no. 16: 6081. https://doi.org/10.3390/s22166081

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop