Integrating Image Analysis and Machine Learning for Moisture Prediction and Appearance Quality Evaluation: A Case Study of Kiwifruit Drying Pretreatment
Abstract
:1. Introduction
- (1)
- We developed of an automatic appearance feature extraction method based on the HSV color space. This method exhibits substantial potential for integration into processing equipment, thereby enabling the real-time monitoring of food appearance during actual production processes in the future.
- (2)
- We proposed an alternative approach with monitoring moisture loss by providing a means to assess image characteristics through more convenient analytical techniques.
- (3)
- Based on the image feature data at the end of drying for each set of experimental samples, we used this measurement to quickly optimize the drying process by establishing good operating conditions.
2. Materials and Methods
2.1. Image Feature Extraction Batch Processing Steps
2.1.1. Color Feature Extraction
2.1.2. Morphology Feature Extraction
2.2. Drying Experiment of Case Study
2.2.1. Sample Preparation
2.2.2. Experiment Design
2.2.3. Pretreatment Processes
- (i)
- Citric Acid (CA)
- (ii)
- Sodium Chloride Solution (SCS)
- (iii)
- Ultrasound (ULT)
2.2.4. Drying Process and Image Acquisition
2.2.5. Calculation of Moisture Ratio
2.3. Image-Feature-Based Moisture Ratio Prediction
2.3.1. The Case Study Dataset for Regression
2.3.2. Partial Least Squares (PLS) Regression
2.3.3. Random Forest (RF) Regression
2.4. Optimal Drying Strategy Determination by Principal Component Analysis
3. Results and Discussion
3.1. Visualization and Accuracy of Feature Extraction Batch Processing Method
3.2. Prediction of the Moisture Ratio during the Drying Process
3.2.1. Partial Least Squares Model
3.2.2. Random Forest Model
3.3. Effect of Different Pretreatments on Appearance (Color and Morphology) Changes
3.3.1. Appearance Similarity Comparison by PCA for 4 mm Samples
3.3.2. Appearance Similarity Comparison by PCA for 70 °C Samples
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Ozgen, F.; Celik, N. Evaluation of Design Parameters on Drying of Kiwi Fruit. Appl. Sci. 2018, 9, 10. [Google Scholar] [CrossRef]
- Nadian, M.H.; Rafiee, S.; Aghbashlo, M.; Hosseinpour, S.; Mohtasebi, S.S. Continuous Real-Time Monitoring and Neural Network Modeling of Apple Slices Color Changes during Hot Air Drying. Food Bioprod. Process. 2015, 94, 263–274. [Google Scholar] [CrossRef]
- Liu, C.; Liu, W.; Lu, X.; Chen, W.; Yang, J.; Zheng, L. Potential of Multispectral Imaging for Real-Time Determination of Colour Change and Moisture Distribution in Carrot Slices during Hot Air Dehydration. Food Chem. 2016, 195, 110–116. [Google Scholar] [CrossRef] [PubMed]
- Raponi, F.; Moscetti, R.; Monarca, D.; Colantoni, A.; Massantini, R. Monitoring and Optimization of the Process of Drying Fruits and Vegetables Using Computer Vision: A Review. Sustainability 2017, 9, 2009. [Google Scholar] [CrossRef]
- Kaleta, A.; Górnicki, K.; Winiczenko, R.; Chojnacka, A. Evaluation of Drying Models of Apple (Var. Ligol) Dried in a Fluidized Bed Dryer. Energy Convers. Manag. 2013, 67, 179–185. [Google Scholar] [CrossRef]
- Hosseinpour, S.; Rafiee, S.; Aghbashlo, M.; Mohtasebi, S.S. Computer Vision System (CVS) for In-Line Monitoring of Visual Texture Kinetics During Shrimp (Penaeus Spp.) Drying. Dry. Technol. 2015, 33, 238–254. [Google Scholar] [CrossRef]
- Zielinska, M.; Markowski, M. Color Characteristics of Carrots: Effect of Drying and Rehydration. Int. J. Food Prop. 2012, 15, 450–466. [Google Scholar] [CrossRef]
- Aghilinategh, N.; Rafiee, S.; Hosseinpour, S.; Omid, M.; Mohtasebi, S.S. Real-Time Color Change Monitoring of Apple Slices Using Image Processing during Intermittent Microwave Convective Drying. Food Sci. Technol. Int. 2016, 22, 634–646. [Google Scholar] [CrossRef]
- Martynenko, A.I. Porosity Evaluation of Ginseng Roots from Real-Time Imaging and Mass Measurements. Food Bioprocess Technol 2011, 4, 417–428. [Google Scholar] [CrossRef]
- Chen, Y.; Martynenko, A. Computer Vision for Real-Time Measurements of Shrinkage and Color Changes in Blueberry Convective Drying. Dry. Technol. 2013, 31, 1114–1123. [Google Scholar] [CrossRef]
- Seyedabadi, E.; Khojastehpour, M.; Abbaspour-Fard, M.H. Online Measuring of Quality Changes of Banana Slabs during Convective Drying. Eng. Agric. Environ. Food 2019, 12, 111–117. [Google Scholar] [CrossRef]
- Iheonye, A.; Gariepy, Y.; Raghavan, V. Computer Vision for Real-Time Monitoring of Shrinkage for Peas Dried in a Fluidized Bed Dryer. Dry. Technol. 2020, 38, 130–146. [Google Scholar] [CrossRef]
- Xu, R.; Zhou, X.; Wang, S. Comparative Analyses of Three Pretreatments on Color of Kiwifruits during Hot Air Drying. Int. J. Agric. Biol. Eng. 2020, 13, 228–234. [Google Scholar] [CrossRef]
- Horuz, E.; Bozkurt, H.; Karataş, H.; Maskan, M. Effects of Hybrid (Microwave-Convectional) and Convectional Drying on Drying Kinetics, Total Phenolics, Antioxidant Capacity, Vitamin C, Color and Rehydration Capacity of Sour Cherries. Food Chem. 2017, 230, 295–305. [Google Scholar] [CrossRef] [PubMed]
- Quevedo, R.A.; Aguilera, J.M.; Pedreschi, F. Color of Salmon Fillets By Computer Vision and Sensory Panel. Food Bioprocess Technol 2010, 3, 637–643. [Google Scholar] [CrossRef]
- Basak, J.K.; Madhavi, B.G.K.; Paudel, B.; Kim, N.E.; Kim, H.T. Prediction of Total Soluble Solids and pH of Strawberry Fruits Using RGB, HSV and HSL Colour Spaces and Machine Learning Models. Foods 2022, 11, 2086. [Google Scholar] [CrossRef] [PubMed]
- Pardede, J.; Husada, M.G.; Hermana, A.N.; Rumapea, S.A. Fruit Ripeness Based on RGB, HSV, HSL, L*a*b* Color Feature Using SVM. In Proceedings of the 2019 International Conference of Computer Science and Information Technology (ICoSNIKOM), Medan, Indonesia, 28–29 November 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1–5. [Google Scholar] [CrossRef]
- Ding, H.; Li, B.; Boiarkina, I.; Wilson, D.I.; Yu, W.; Young, B.R. Effects of Morphology on the Bulk Density of Instant Whole Milk Powder. Foods 2020, 9, 1024. [Google Scholar] [CrossRef] [PubMed]
- Nasri, M.Y.; Belhamri, A. Effects of the Climatic Conditions and the Shape on the Drying Kinetics, Application to Solar Drying of Potato-Case of Maghreb’s Region. J. Clean. Prod. 2018, 183, 1241–1251. [Google Scholar] [CrossRef]
- Veeregowda, P.M.; Jeffery, P.B.; Johnston, J.W.; East, A.R. A Survey of Retail Conditions in the Kiwifruit Supply Chains of India and Singapore. N. Z. J. Crop Hortic. Sci. 2022, 50, 274–285. [Google Scholar] [CrossRef]
- Zhou, X.; Li, R.; Lyng, J.G.; Wang, S. Dielectric Properties of Kiwifruit Associated with a Combined Radio Frequency Vacuum and Osmotic Drying. J. Food Eng. 2018, 239, 72–82. [Google Scholar] [CrossRef]
- Deng, L.-Z.; Mujumdar, A.S.; Zhang, Q.; Yang, X.-H.; Wang, J.; Zheng, Z.-A.; Gao, Z.-J.; Xiao, H.-W. Chemical and Physical Pretreatments of Fruits and Vegetables: Effects on Drying Characteristics and Quality Attributes—A Comprehensive Review. Crit. Rev. Food Sci. Nutr. 2019, 59, 1408–1432. [Google Scholar] [CrossRef] [PubMed]
- Rodrigues, S.; Fernandes, F.A.N. Use of Ultrasound as Pretreatment for Dehydration of Melons. Dry. Technol. 2007, 25, 1791–1796. [Google Scholar] [CrossRef]
- Miranda, G.; Berna, À.; Salazar, D.; Mulet, A. Sulphur Dioxide Evolution during Dried Apricot Storage. LWT—Food Sci. Technol. 2009, 42, 531–533. [Google Scholar] [CrossRef]
- Kamiloglu, S.; Toydemir, G.; Boyacioglu, D.; Beekwilder, J.; Hall, R.D.; Capanoglu, E. A Review on the Effect of Drying on Antioxidant Potential of Fruits and Vegetables. Crit. Rev. Food Sci. Nutr. 2016, 56, S110–S129. [Google Scholar] [CrossRef] [PubMed]
- Guida, V.; Ferrari, G.; Pataro, G.; Chambery, A.; Di Maro, A.; Parente, A. The Effects of Ohmic and Conventional Blanching on the Nutritional, Bioactive Compounds and Quality Parameters of Artichoke Heads. LWT—Food Sci. Technol. 2013, 53, 569–579. [Google Scholar] [CrossRef]
- Dandamrongrak, R.; Mason, R.; Young, G. The Effect of Pretreatments on the Drying Rate and Quality of Dried Bananas. Int J Food Sci Tech 2003, 38, 877–882. [Google Scholar] [CrossRef]
- Tao, Y.; Wang, P.; Wang, Y.; Kadam, S.U.; Han, Y.; Wang, J.; Zhou, J. Power Ultrasound as a Pretreatment to Convective Drying of Mulberry (Morus alba L.) Leaves: Impact on Drying Kinetics and Selected Quality Properties. Ultrason. Sonochemistry 2016, 31, 310–318. [Google Scholar] [CrossRef] [PubMed]
- Chemat, F.; Zill-e-Huma; Khan, M.K. Applications of Ultrasound in Food Technology: Processing, Preservation and Extraction. Ultrason. Sonochemistry 2011, 18, 813–835. [Google Scholar] [CrossRef] [PubMed]
- Bozkir, H.; Rayman Ergün, A.; Tekgül, Y.; Baysal, T. Ultrasound as Pretreatment for Drying Garlic Slices in Microwave and Convective Dryer. Food Sci. Biotechnol. 2019, 28, 347–354. [Google Scholar] [CrossRef]
- Tepe, T.K.; Kadakal, Ç. Determination of Drying Characteristics, Rehydration Properties, and Shrinkage Ratio of Convective Dried Melon Slice with Some Pretreatments. Food Process. Preserv. 2022, 46, e16544. [Google Scholar] [CrossRef]
- Pan, Z.; Shih, C.; McHugh, T.H.; Hirschberg, E. Study of Banana Dehydration Using Sequential Infrared Radiation Heating and Freeze-Drying. LWT—Food Sci. Technol. 2008, 41, 1944–1951. [Google Scholar] [CrossRef]
- Nadian, M.H.; Abbaspour-Fard, M.H.; Sadrnia, H.; Golzarian, M.R.; Tabasizadeh, M. Optimal Pretreatment Determination of Kiwifruit Drying via Online Monitoring: Pretreatment Determination of Kiwifruit Drying. J. Sci. Food Agric. 2016, 96, 4785–4796. [Google Scholar] [CrossRef]
- Wu, D.; Sun, D.-W. Colour Measurements by Computer Vision for Food Quality Control—A Review. Trends Food Sci. Technol. 2013, 29, 5–20. [Google Scholar] [CrossRef]
- Fernandes, F.A.N.; Rodrigues, S. Ultrasound as Pre-Treatment for Drying of Fruits: Dehydration of Banana. J. Food Eng. 2007, 82, 261–267. [Google Scholar] [CrossRef]
- Wold, S.; Sjöström, M.; Eriksson, L. PLS-Regression: A Basic Tool of Chemometrics. Chemom. Intell. Lab. Syst. 2001, 58, 109–130. [Google Scholar] [CrossRef]
- Sahin, S.; Demir, C. Determination of Antioxidant Properties of Fruit Juice by Partial Least Squares and Principal Component Regression. Int. J. Food Prop. 2016, 19, 1455–1464. [Google Scholar] [CrossRef]
- Sun, Y.; Zhang, M.; Ju, R.; Mujumdar, A. Novel Nondestructive NMR Method Aided by Artificial Neural Network for Monitoring the Flavor Changes of Garlic by Drying. Dry. Technol. 2021, 39, 1184–1195. [Google Scholar] [CrossRef]
- Stone, M. Cross-Validatory Choice and Assessment of Statistical Predictions. J. R. Stat. Society. Ser. B (Methodol.) 1974, 36, 111–147. [Google Scholar] [CrossRef]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
- Bro, R.; Smilde, A.K. Principal Component Analysis. Anal. Methods 2014, 6, 2812–2831. [Google Scholar] [CrossRef]
Group Name | Drying Temperature (°C) | Slice Thickness (mm) | Pretreatment |
---|---|---|---|
60C4Control | 60 | 4 | None |
70C4Control | 70 | 4 | |
60C6Control | 60 | 6 | |
70C6Control | 70 | 6 | |
60C4CA | 60 | 4 | Citric acid solution |
70C4CA | 70 | 4 | |
60C6CA | 60 | 6 | |
70C6CA | 70 | 6 | |
60C4SCS | 60 | 4 | Sodium chloride solution |
70C4SCS | 70 | 4 | |
60C6SCS | 60 | 6 | |
70C6SCS | 70 | 6 | |
60C4ULT | 60 | 4 | Ultrasound |
70C4ULT | 70 | 4 | |
60C6ULT | 60 | 6 | |
70C6ULT | 70 | 6 |
Variable | Name | Range of Values |
---|---|---|
X1 | Hue | 0 to 180 |
X2 | Saturation | 0 to 255 |
X3 | Value | 0 to 255 |
X4 | Area | 0 to 1 |
X5 | Perimeter | 0 to 1 |
X6 | Compactness | 0 to 1 |
Y | Moisture Ratio | 0 to 1 |
Fold | R2 | MAE | RMSE |
---|---|---|---|
1 | 0.9939 | 0.0185 | 0.0288 |
2 | 0.9920 | 0.0214 | 0.0317 |
3 | 0.9930 | 0.0205 | 0.0303 |
4 | 0.9920 | 0.0204 | 0.0307 |
5 | 0.9907 | 0.0242 | 0.0345 |
Mean | 0.9923 | 0.0211 | 0.0312 |
Standard deviation | 0.0011 | 0.0018 | 0.0019 |
Number | Name | Distance to Fresh |
---|---|---|
1 | 60C4ULT | 3.44 |
2 | 70C4CA | 3.81 |
3 | 70C4SCS | 4.46 |
4 | 70C4ULT | 4.68 |
5 | 60C4CA | 5.32 |
6 | 60C4SCS | 5.51 |
7 | 60C4Control | 5.54 |
8 | 70C4Control | 5.66 |
Number | Name | Distance to Fresh |
---|---|---|
1 | 70C4CA | 3.84 |
2 | 70C6Control | 4.41 |
3 | 70C6ULT | 4.47 |
4 | 70C4ULT | 4.51 |
5 | 70C4SCS | 4.52 |
6 | 70C6SCS | 4.85 |
7 | 70C6CA | 4.89 |
8 | 70C4Control | 6.63 |
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. |
© 2024 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
Yu, S.; Zheng, H.; Wilson, D.I.; Yu, W.; Young, B.R. Integrating Image Analysis and Machine Learning for Moisture Prediction and Appearance Quality Evaluation: A Case Study of Kiwifruit Drying Pretreatment. Foods 2024, 13, 1789. https://doi.org/10.3390/foods13121789
Yu S, Zheng H, Wilson DI, Yu W, Young BR. Integrating Image Analysis and Machine Learning for Moisture Prediction and Appearance Quality Evaluation: A Case Study of Kiwifruit Drying Pretreatment. Foods. 2024; 13(12):1789. https://doi.org/10.3390/foods13121789
Chicago/Turabian StyleYu, Shuai, Haoran Zheng, David I. Wilson, Wei Yu, and Brent R. Young. 2024. "Integrating Image Analysis and Machine Learning for Moisture Prediction and Appearance Quality Evaluation: A Case Study of Kiwifruit Drying Pretreatment" Foods 13, no. 12: 1789. https://doi.org/10.3390/foods13121789
APA StyleYu, S., Zheng, H., Wilson, D. I., Yu, W., & Young, B. R. (2024). Integrating Image Analysis and Machine Learning for Moisture Prediction and Appearance Quality Evaluation: A Case Study of Kiwifruit Drying Pretreatment. Foods, 13(12), 1789. https://doi.org/10.3390/foods13121789