Establishing a Berry Sensory Evaluation Model Based on Machine Learning
Abstract
:1. Introduction
2. Materials and Methods
2.1. Materials and Reagents
2.2. Instruments and Equipment
2.3. Methods
2.3.1. Blueberry Sample Design
2.3.2. Determination of Physical and Chemical Indices
2.3.3. Sensory Evaluation
2.3.4. Data Processing
3. Model Construction
3.1. SVM Model
3.2. Particle Swarm Optimization
3.3. Model for Sensory Evaluation of Blueberries Based on PSO-SVM
4. Results
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Liu, Q.; Zhu, D.; Wang, J.; Gong, Q.; Xin, L. Development Status of World Blueberry Industry—China. Deciduous Fruits 2018, 50, 4. [Google Scholar]
- Duan, Y.; Tarafdar, A.; Chaurasia, D.; Singh, A.; Bhargava, P.C.; Yang, J.; Li, Z.; Ni, X.; Tian, Y.; Li, H.; et al. Blueberry fruit valorization and valuable constituents: A review. Int. J. Food Microbiol. 2022, 381, 109890. [Google Scholar] [CrossRef]
- Li, Y.; Sun, H.; Chen, L. China’s blueberry industry development report. China Fruits 2016, 5, 1–10. [Google Scholar]
- Zhang, L.; Song, K. Study on blueberry climate quality evaluation criteria. China Stand. 2022, 4, 119–124. [Google Scholar]
- Rivera, S.; Giongo, L.; Cappai, F.; Kerckhoffs, H.; Sofkova-Bobcheva, S.; Hutchins, D.; East, A. Blueberry firmness—A review of the textural and mechanical properties used in quality evaluations. Posthavest Biol. Technol. 2022, 192, 112016. [Google Scholar] [CrossRef]
- Liu, X.; Li, J.; Fan, S.; Han, Y. Evaluation of sensory quality of lettuce in different varieties of leaves. Chin. Veg. 2016, 3, 26–30. [Google Scholar]
- Bavay, C.; Symoneaux, R.; Maitre, I.; Kuznetsoya, A.; Brockhoff, P.B.; Mehinagic, E. Importance of fruit variability in the assessment of apple quality by sensory evaluation. Posthavest Biol. Technol. 2013, 77, 67–74. [Google Scholar] [CrossRef]
- Chen, H.Z.; Zhang, M.; Bhandari, B.; Guo, Z.M. Evaluation of the freshness of fresh-cut green bell pepper (Capsicum annuum var. grossum ) using electronic nose. LWT Food Sci. Technol. 2018, 87, 77–84. [Google Scholar] [CrossRef]
- Zheng, Y. Freshness Evaluation of Fresh Food Based on Spectral Analysis; Jilin University: Changchun, China, 2021. [Google Scholar]
- Pan, L.; Wang, J.; Ye, X.; Luo, J. Extraction process of blueberry anthocyanins and their immunomodulatory activity. Food Sci. 2014, 35, 81–86. [Google Scholar]
- Liu, B.H.; Fang, Y.; Yi, R.K.; Zhao, X. Preventive Effect of Blueberry Extract on Liver Injury Induced by Carbon Tetrachloride in Mice. Foods 2019, 8, 48. [Google Scholar] [CrossRef]
- Sun, X.; Shokri, S.; Gao, B.; Xu, Z.; Li, B.; Zhu, T.; Wang, Y.; Zhu, J. Improving effects of three selected co-pigments on fermentation, color stability, and anthocyanins content of blueberry wine. LWT 2022, 156, 113070. [Google Scholar] [CrossRef]
- Orellana-Palma, P.; Petzold, G.; Guerra-Valle, M.; Astudillo-Lagos, M. Impact of block cryoconcentration on polyphenol retention in blueberry juice. Food Biosci. 2017, 20, 149–158. [Google Scholar] [CrossRef]
- Chen, H.; Wang, C.; Gao, H. Effects of different packaging methods on postharvest storage quality and antioxidant activity of blueberries. Agric. Sci. China 2013, 46, 1230–1236. [Google Scholar]
- Yang, G.; Yue, J.; Gong, X.; Qian, B.; Wang, H.; Deng, Y.; Zhao, Y. Blueberry leaf extracts incorporated chitosan coatings for preserving postharvest quality of fresh blueberries. Posthavest Biol. Technol. 2014, 92, 46–53. [Google Scholar] [CrossRef]
- Liu, B.; Wang, K.; Wang, X.; Liang, J.; Bai, R.; Xie, X.; Sun, L. Substantial quality evaluation of blueberry fruit based on principal component analysis. J. Nucl. Agric. Sci. 2019, 33, 927–935. [Google Scholar]
- Li, J. Research on Parameter Optimization of Support Vector Machines; Central China Normal University: Wuhan, China, 2011. [Google Scholar]
- Zhu, H.F.; Yang, L.H.; Fei, J.W.; Zhao, L.G.; Han, Z.Z. Recognition of carrot appearance quality based on deep feature and support vector machine. Comput. Electron. Agric. 2021, 186, 106185. [Google Scholar] [CrossRef]
- Chen, Z.; Chen, X.; Hen, Z.; Sun, C.; Zhang, X.; Liu, Z. Prediction of rolling bearing remaining life based on relative characteristics and multivariate support vector machine. J. Mech. Eng. 2013, 49, 183–189. [Google Scholar]
- Wang, Z.; Sun, J.; Yu, Z.; Pu, Y. A review of remote sensing image classification based on support vector machines. Comput. Sci. 2016, 43, 11–17+31. [Google Scholar]
- Li, Z.Z.; Wang, L.D.; Yang, Y.Y. Fault diagnosis of the train communication network based on weighted support vector machine. IEEJ Trans. Electr. Electron. Eng. 2020, 15, 1077–1088. [Google Scholar] [CrossRef]
- Nguyen, H.; Bui, X.N.; Choi, Y.; Lee, C.W.; Armaghani, D.J. A Novel Combination of Whale Optimization Algorithm and Support Vector Machine with Different Kernel Functions for Prediction of Blasting-Induced Fly-Rock in Quarry Mines. Nat. Resour. Res. 2020, 30, 191–207. Available online: https://www.webofscience.com/wos/alldb/full-record/WOS:000544012900001 (accessed on 13 September 2023). [CrossRef]
- Sun, Y.; Huang, Y.; Wang, X. Kinetic analysis of PGA/PBAT plastic films for strawberry fruit preservationquality and enzyme activity. J. Food Compos. Anal. 2022, 108, 104439. [Google Scholar] [CrossRef]
- Sammani, M.S.; Clavijo, S.; Cerdà, V. Recent, advanced sample pretreatments and analytical methods for flavonoids determination in different samples. TrAC Trends Anal. Chem. 2021, 138, 116220. [Google Scholar] [CrossRef]
- Thach, N.A. Optimization of conditions for extraction of total polyphenols from dried tumeric (Curcuma longa L.) leaves using Response Surface Methodology. Vietnam. J. Chem. 2020, 58, 45–49. [Google Scholar] [CrossRef]
- Hardner, C.M.; Fikere, M.; Gasic, K.; da Silva Linge, C.; Worthington, M.; Byrne, D.; Rawandoozi, Z.; Peace, C. Multi-environment genomic prediction for soluble solids content in peach (Prunus persica). Front. Plant Sci. 2022, 13, 960449. [Google Scholar] [CrossRef] [PubMed]
- Syah, R.; Naeem, M.H.T.; Daneshfar, R.; Dehdar, H.; Soulgani, B.S. On the prediction of methane adsorption in shale using grey wolf optimizer support vector machine approach. Petroleum 2022, 8, 264–269. [Google Scholar] [CrossRef]
- Wang, H.; Li, J.; Yang, F. Review of support vector machine theory and algorithm. Appl. Res. Comput. 2014, 31, 1281–1286. [Google Scholar]
- Jiang, W. Research and Application of Particle Filtering Improvement Algorithm; Harbin Institute of Technology: Harbin, China, 2010. [Google Scholar]
- Li, K.J.; Luo, J.; Hu, Y.M.; Li, S. A novel multi-strategy DE algorithm for parameter optimization in support vector machine. J. Intell. Inf. Syst. 2019, 54, 527–543. [Google Scholar] [CrossRef]
- Gu, Y.; Zhao, W.; Wu, Z. Research on the algorithm of least squares support vector machine. J. Tsinghua Univ. Sci. Technol. 2010, 50, 1063–1066+1071. [Google Scholar]
- Li, S.; Yuan, Z.; Wang, C.; Chen, T.; Guo, Z. Swarm intelligence algorithm optimization support vector machine parameter review. CAAI Trans. Intell. Syst. 2018, 13, 70–84. [Google Scholar]
- Gao, K.; Liu, J.; Xu, R.; Li, Y. Information network security situation composite prediction model based on support vector machine and particle swarm algorithm. Power Syst. Technol. 2011, 35, 176–182. [Google Scholar]
- Zhang, J.; Yin, K.L.; Wang, J.J.; Huang, F. Research on landslide displacement prediction of Baishui River based on time series and PSO-SVR coupling model. Chin. J. Rock Mech. Eng. 2015, 34, 382–391. [Google Scholar]
- Yin, X.; He, W.; Wang, L.; Mo, W.; Li, A. Classification of rubber vulcanizing accelerators based on particle swarm optimization extreme learning machine and terahertz spectra. Zhurnal Prikl. Spektrosk. 2021, 88, 1315–1323. [Google Scholar] [CrossRef]
- Yin, Z.; Zhang, S.; Koh, S.; Linga, P. Estimation of the thermal conductivity of a heterogeneous CH4-hydrate bearing sample based on particle swarm optimization. Appl. Energy 2020, 271, 115229. [Google Scholar] [CrossRef]
- Liu, Y. Research and Application of Particle Swarm Algorithm; Shandong Normal University: Jinan, China, 2011. [Google Scholar]
- Zhao, Z.; Huang, S.; Wang, W. Simplified particle swarm optimization algorithm based on random inertial weights. Appl. Res. Comput. 2014, 31, 361–363+391. [Google Scholar]
- Hodson, T.O. Root-mean-square error (RMSE) or mean absolute error (MAE): When to use them or not. Geosci. Model Dev. 2022, 15, 5481–5487. [Google Scholar] [CrossRef]
- Nick, S.; Amy, P. Do prediction equations with high R-squared in low sample size studies have high predictive ability? J. Anim. Sci. 2020, 98, 71. [Google Scholar]
- Aurangzeb, K.; Alhussein, M.; Javaid, K.; Haider, S.I. A Pyramid-CNN Based Deep Learning Model for Power Load Forecasting of Similar-Profile Energy Customers Based on Clustering. IEEE Access 2021, 9, 14992–15003. [Google Scholar] [CrossRef]
- Chen, L.; Wang, Z.; Wang, G. Application of LSTM network in short-term power load forecasting under deep learning framework. Electr. Power Inf. Commun. Technol. 2017, 15, 8–11. [Google Scholar]
Name | Date | |||||
---|---|---|---|---|---|---|
Prompt | 1. The purpose of this review: to distinguish and compare blueberry fruits under different conditions | |||||
2. Please evaluate from left to right, and score each sample according to the following five items | ||||||
3. Rest for 15 s before evaluating the next sample | ||||||
Evaluation indicator/serial number | Appearance | Hardness | Color | Aroma | Taste |
Physical and Chemical Indexes/Sensory Evaluation | Sample | ||||
---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | |
PPO (U/g) | 3.02 | 5.21 | 6.01 | 5.86 | 5.55 |
APX (U/g) | 9.21 | 10.03 | 8.12 | 7.69 | 5.86 |
SOD (U/g) | 12.31 | 11.46 | 10.37 | 9.28 | 8.77 |
POD (U/g) | 70.20 | 74.31 | 81.48 | 80.24 | 75.81 |
CAT (U/g) | 112.69 | 114.64 | 115.07 | 114.21 | 113.86 |
Sensory evaluation score | 93.97 | 83.16 | 75.26 | 67.21 | 61.13 |
Model Building Steps | Detailed Process |
---|---|
1. Data preprocessing | (1) Read the data from an Excel file, save it in the variable data, and then normalize it. (2) Randomly divide the data into training and test sets at a 3:1 ratio to avoid the influence of ordinal data on the model. (3) Extract input and output data from training and test sets |
2. PSO optimization process | (1) Set the number of particle swarms to 50 and the number of iterations to 100. Set the ac-celeration constants , and inertia weight . Set the maximum velocity according to expert experience, and initialize the particle swarm. (2) Set the evaluation function of the particle, randomly generate in the defined space to form the initial population , and generate the initial velocity of the particles, thus forming the velocity matrix . The of each particle is its initial position, and is the best of all the particles. (3) Calculate the fitness value for each particle and compare the adaptation value of each particle with the adaptation value of and the best of the population. Update the individual optimal position and the overall optimal position of each particle. Update the velocity and position of each particle according to Equations (5)–(7). (4) Check whether the termination condition is met. If the set conditions are met, the iteration is terminated. The termination condition is generally to reach the maximum number of iterations. If the termination condition is not met, return to (3). (5) After the iteration, two values from are assigned to the SVM model. |
3. SVM predictive model training process | (1) Use the radial basis function to map the training input dataset to an inner product matrix in a high-dimensional space using the formula . (2) The two values obtained after PSO optimization are assigned to and . (3) Train the model using the training set data according to Equations (2)–(4). |
4. Calculate model performance evaluation metrics | (1) Enter the input data of the test set in the model to obtain the predicted output data. (2) Calculate RMSE, MAE, and R2 according to Equations (8)–(10). |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, M.; Liu, M.; Bai, L.; Shang, W.; Ren, R.; Zhao, Z.; Sun, Y. Establishing a Berry Sensory Evaluation Model Based on Machine Learning. Foods 2023, 12, 3502. https://doi.org/10.3390/foods12183502
Liu M, Liu M, Bai L, Shang W, Ren R, Zhao Z, Sun Y. Establishing a Berry Sensory Evaluation Model Based on Machine Learning. Foods. 2023; 12(18):3502. https://doi.org/10.3390/foods12183502
Chicago/Turabian StyleLiu, Minghao, Minhua Liu, Lin Bai, Wei Shang, Runhan Ren, Zhiyao Zhao, and Ying Sun. 2023. "Establishing a Berry Sensory Evaluation Model Based on Machine Learning" Foods 12, no. 18: 3502. https://doi.org/10.3390/foods12183502
APA StyleLiu, M., Liu, M., Bai, L., Shang, W., Ren, R., Zhao, Z., & Sun, Y. (2023). Establishing a Berry Sensory Evaluation Model Based on Machine Learning. Foods, 12(18), 3502. https://doi.org/10.3390/foods12183502