Non-Destructive Estimation of Water Fractions by Machine Learning Models During Freeze-Drying
Weijie Li
School of Health Science and Engineering, University of Shanghai for Science and Technology, Shanghai, China
Search for more papers by this authorCorresponding Author
Shoaib Younas
School of Health Science and Engineering, University of Shanghai for Science and Technology, Shanghai, China
Correspondence:
Shoaib Younas ([email protected]; [email protected])
Search for more papers by this authorFarhan Ali
College of Electronics and Information Engineering, Shenzhen University, Shenzhen, China
Search for more papers by this authorUkasha Arqam
School of Health Science and Engineering, University of Shanghai for Science and Technology, Shanghai, China
Department of Food Science and Technology, University of Central Punjab, Lahore, Pakistan
Search for more papers by this authorMuhammad Safeer Abbas
School of Agriculture and Biology, Shanghai Jiaotong University, Shanghai, China
Search for more papers by this authorMuhammad Yousaf
School of Agriculture and Biology, Shanghai Jiaotong University, Shanghai, China
Search for more papers by this authorZeshan Ali
College of Food Science and Engineering, Bohai University, Jinzhou, China
Search for more papers by this authorMian Anjum Murtaza
Institute of Food Science and Nutrition, University of Sargodha, Sargodha, Pakistan
Search for more papers by this authorJin Tao
Department of Food Biology, Anhui Vocational College of Grain Engineering, Hefei, China
Search for more papers by this authorMuhammad Imran
Faculty of Science, King Khalid University, Abha, Saudi Arabia
Search for more papers by this authorWeijie Li
School of Health Science and Engineering, University of Shanghai for Science and Technology, Shanghai, China
Search for more papers by this authorCorresponding Author
Shoaib Younas
School of Health Science and Engineering, University of Shanghai for Science and Technology, Shanghai, China
Correspondence:
Shoaib Younas ([email protected]; [email protected])
Search for more papers by this authorFarhan Ali
College of Electronics and Information Engineering, Shenzhen University, Shenzhen, China
Search for more papers by this authorUkasha Arqam
School of Health Science and Engineering, University of Shanghai for Science and Technology, Shanghai, China
Department of Food Science and Technology, University of Central Punjab, Lahore, Pakistan
Search for more papers by this authorMuhammad Safeer Abbas
School of Agriculture and Biology, Shanghai Jiaotong University, Shanghai, China
Search for more papers by this authorMuhammad Yousaf
School of Agriculture and Biology, Shanghai Jiaotong University, Shanghai, China
Search for more papers by this authorZeshan Ali
College of Food Science and Engineering, Bohai University, Jinzhou, China
Search for more papers by this authorMian Anjum Murtaza
Institute of Food Science and Nutrition, University of Sargodha, Sargodha, Pakistan
Search for more papers by this authorJin Tao
Department of Food Biology, Anhui Vocational College of Grain Engineering, Hefei, China
Search for more papers by this authorMuhammad Imran
Faculty of Science, King Khalid University, Abha, Saudi Arabia
Search for more papers by this authorABSTRACT
Prediction of water status in post-harvested agriculture products enduring drying is critical to maintain storage conditions. This study focused on the efficiency of multispectral imaging a novel nondestructive analytical tool by combining various machine-learning models such as Feedforward Neural Network (FNN), Decision Tree Regression, Support Vector Regression, and k-nearest neighbors in the prediction of water fractions during freeze-drying of mushrooms. Spectra from multispectral imaging of the Vis–NIR (405–970 nm) region were combined with machine learning models for the quantification of free water (FW), immobilized water (IM), bound water (BW) and total water (TW) during freeze-drying (FD) of shiitake mushrooms. Water distribution tests through low-field nuclear magnetic resonance demonstrated that 36 h of drying sublimates 90.55% freezable water. The modeling approach performed well, and FNN was found to be the best compared to the others. Its prediction efficiency was 97.77% and 95.95% in BW and TW, respectively. In terms of root mean square error, this model obtained the lowest prediction errors compared to the rest of the models for all water fractions. However, the FNN model prediction deviation is determined with the best bias value of 0.1312 for FW. This study provides an excellent platform in predicting the water status and food quality with a rapid and nondestructive multispectral Vis–NIR spectroscopic approach during drying. The techniques successfully handled the complex spectral data when combined with chemometrics and could be useful in the future for the detection of the chemical composition of agricultural products.
Conflicts of Interest
The authors declare no conflicts of interest.
Open Research
Data Availability Statement
Research data are not shared.
References
- Akay, M. F., C. Inan, D. I. Bradshaw, and J. D. George. 2009. “Support Vector Regression and Multilayer Feed Forward Neural Networks for Non-Exercise Prediction of VO2max.” Expert Systems With Applications 36, no. 6: 10112–10119. https://doi.org/10.1016/j.eswa.2009.01.009.
10.1016/j.eswa.2009.01.009 Google Scholar
- Ali, F., Z. Imran, A. Ali, et al. 2025. “A Novel Concept Study on Key Factors Affecting Student Performance Using Machine Learning Algorithms.” Journal of Food and Agricultural Technology Research 4, no. 1: 38–51.
- Bansal, M., A. Goyal, and A. Choudhary. 2022. “A Comparative Analysis of K-Nearest Neighbor, Genetic, Support Vector Machine, Decision Tree, and Long Short Term Memory Algorithms in Machine Learning.” Decision Analytics Journal 3: 100071. https://doi.org/10.1016/j.dajour.2022.100071.
10.1016/j.dajour.2022.100071 Google Scholar
- Cheng, S., R. Li, H. Yang, S. Wang, and M. Tan. 2019. “Water Status and Distribution in Shiitake Mushroom and the Effects of Drying on Water Dynamics Assessed by LF-NMR and MRI.” Drying Technology 38, no. 8: 1–10. https://doi.org/10.1080/07373937.2019.1625364.
- da Silva Medeiros, M. L., L. Moreira de Carvalho, M. S. Madruga, F. J. Rodríguez-Pulido, F. J. Heredia, and D. Fernandes Barbin. 2024. “Comparison of Hyperspectral Imaging and Spectrometers for Prediction of Cheeses Composition.” Food Research International 183: 114242. https://doi.org/10.1016/j.foodres.2024.114242.
- ElMasry, G., N. Mandour, S. Al-Rejaie, E. Belin, and D. Rousseau. 2019. “Recent Applications of Multispectral Imaging in Seed Phenotyping and Quality Monitoring—An Overview.” Sensors 19, no. 5: 1090. https://doi.org/10.3390/s19051090.
10.3390/s19051090 Google Scholar
- Kamruzzaman, M., D. Kalita, M. T. Ahmed, G. ElMasry, and Y. Makino. 2022. “Effect of Variable Selection Algorithms on Model Performance for Predicting Moisture Content in Biological Materials Using Spectral Data.” Analytica Chimica Acta 1202: 339390. https://doi.org/10.1016/j.aca.2021.339390.
- Khan, M. I. H., R. M. Wellard, S. A. Nagy, M. U. H. Joardder, and M. A. Karim. 2016. “Investigation of Bound and Free Water in Plant-Based Food Material Using NMR T2 Relaxometry.” Innovative Food Science and Emerging Technologies 38: 252–261. https://doi.org/10.1016/j.ifset.2016.10.015.
- Li, W., X. Yang, Y. Wang, B. Liu, and S. Younas. 2025. “Research on Ultrasound-Induced Nucleation to Improve Cryoablation Effectiveness.” International Journal of Refrigeration 170: 489–499. https://doi.org/10.1016/j.ijrefrig.2024.12.011.
- Liang, N., S. Sun, C. Zhang, Y. He, and Z. Qiu. 2022. “Advances in Infrared Spectroscopy Combined With Artificial Neural Network for the Authentication and Traceability of Food.” Critical Reviews in Food Science and Nutrition 62, no. 11: 2963–2984. https://doi.org/10.1080/10408398.2020.1862045.
- Liu, Q., S.-m. Zuo, S. Peng, et al. 2024. “Development of Machine Learning Methods for Accurate Prediction of Plant Disease Resistance.” Engineering 40: 100–110. https://doi.org/10.1016/j.eng.2024.03.014.
- Liu, Q., T. Bau, R. Jin, X. Cui, Y. Zhang, and W. Kong. 2022. “Comparison of Different Drying Techniques for Shiitake Mushroom (Lentinus edodes): Changes in Volatile Compounds, Taste Properties, and Texture Qualities.” LWT 164: 113651. https://doi.org/10.1016/j.lwt.2022.113651.
- Liu, W. C., X. Duan, G. Y. Ren, L. L. Liu, and Y. H. Liu. 2017. “Optimization of Microwave Freeze Drying Strategy of Mushrooms (Agaricus bisporus) Based on Porosity Change Behavior.” Drying Technology 35, no. 11: 1327–1336. https://doi.org/10.1080/07373937.2017.1319851.
- Liu, Y., H. Pu, and D.-W. Sun. 2017. “Hyperspectral Imaging Technique for Evaluating Food Quality and Safety During Various Processes: A Review of Recent Applications.” Trends in Food Science and Technology 69: 25–35. https://doi.org/10.1016/j.tifs.2017.08.013.
- Ma, R., S. Li, X. Li, B. Liang, and Y. Cui. 2022. “A Prediction Method for Transport Stress in Meat Sheep Based on GA-BPNN.” Computers and Electronics in Agriculture 203: 107476. https://doi.org/10.1016/j.compag.2022.107476.
- Meng, Q., J. Shang, R. Huang, and Y. Zhang. 2021. “Determination of Soluble Solids Content and Firmness in Plum Using Hyperspectral Imaging and Chemometric Algorithms.” Journal of Food Process Engineering 44, no. 1: e13597. https://doi.org/10.1111/jfpe.13597.
- Ndisya, J., A. Gitau, D. Mbuge, et al. 2021. “Vis-NIR Hyperspectral Imaging for Online Quality Evaluation During Food Processing: A Case Study of Hot Air Drying of Purple-Speckled Cocoyam ((L.) Schott).” PRO 9, no. 10: 1804. https://doi.org/10.3390/pr9101804.
- Panagou, E. Z., O. Papadopoulou, J. M. Carstensen, and G. J. Nychas. 2014. “Potential of Multispectral Imaging Technology for Rapid and Non-Destructive Determination of the Microbiological Quality of Beef Filets During Aerobic Storage.” International Journal of Food Microbiology 174: 1–11. https://doi.org/10.1016/j.ijfoodmicro.2013.12.026.
- Park, M., J. Y. Yu, J. A. Ko, and H. J. Park. 2024. “Application of UV-Vis-NIR and FTIR Spectroscopy Coupled With Chemometrics for Quality Prediction of Katsuobushi Based on the Number of Smoking Treatments.” Food Chemistry 442: 138604. https://doi.org/10.1016/j.foodchem.2024.138604.
- Piskov, S., L. Timchenko, W.-D. Grimm, et al. 2020. “Effects of Various Drying Methods on Some Physico-Chemical Properties and the Antioxidant Profile and ACE Inhibition Activity of Oyster Mushrooms (Pleurotus ostreatus).” Food 9, no. 2: 160. https://doi.org/10.3390/foods9020160.
- Shdefat, A. Y., N. Mostafa, Z. Al-Arnaout, Y. Kotb, and S. Alabed. 2024. “Optimizing HAR Systems: Comparative Analysis of Enhanced SVM and k-NN Classifiers.” International Journal of Computational Intelligence Systems 17, no. 1: 150. https://doi.org/10.1007/s44196-024-00554-0.
- Srisuradetchai, P., and K. Suksrikran. 2024. “Random Kernel k-Nearest Neighbors Regression.” Frontiers in Big Data 7: 1402384. https://doi.org/10.3389/fdata.2024.1402384.
- Sun, X. R., X. P. Zhou, C. L. Liu, C. L. Li, S. Z. Zhang, and D. Y. Zheng. 2025. “Rapid and Nondestructive Identification of Rice Storage Year Using Hyperspectral Technology.” Food Control 168: 110850. https://doi.org/10.1016/j.foodcont.2024.110850.
- Tito, N. B., T. Rodemann, and S. Powell. 2012. “Use of Near Infrared Spectroscopy to Predict Microbial Numbers on Atlantic Salmon.” Food Microbiology 32, no. 2: 431–436. https://doi.org/10.1016/j.fm.2012.07.009.
- Walsh, K. B., J. Blasco, M. Zude-Sasse, and X. Sun. 2020. “Visible-NIR ‘Point’ Spectroscopy in Postharvest Fruit and Vegetable Assessment: The Science Behind Three Decades of Commercial Use.” Postharvest Biology and Technology 168: 111246. https://doi.org/10.1016/j.postharvbio.2020.111246.
- Wang, C., G. Su, X. Wang, and S. Nie. 2019. “Rapid Assessment of Deep Frying Oil Quality as Well as Water and Fat Contents in French Fries by Low-Field Nuclear Magnetic Resonance.” Journal of Agricultural and Food Chemistry 67, no. 8: 2361–2368. https://doi.org/10.1021/acs.jafc.8b05639.
- Wu, D., H. Shi, S. Wang, Y. He, Y. Bao, and K. Liu. 2012. “Rapid Prediction of Moisture Content of Dehydrated Prawns Using Online Hyperspectral Imaging System.” Analytica Chimica Acta 726: 57–66. https://doi.org/10.1016/j.aca.2012.03.038.
- Younas, S., C. Liu, H. Qu, et al. 2020. “Multispectral Imaging for Predicting the Water Status in Mushroom During Hot-Air Dehydration.” Journal of Food Science 85, no. 4: 903–909. https://doi.org/10.1111/1750-3841.15081.
- Younas, S., M. Ahmad, U.Arqam, et al. 2025. “Prediction of water status during freeze drying with genetic and whale algorithms of machine learning.” International Journal of Refrigeration. https://doi.org/10.1016/j.ijrefrig.2025.06.011.
10.1016/j.ijrefrig.2025.06.011 Google Scholar
- Younas, S., M. S. Manzoor, U. Arqam, et al. 2024. “Rapid and Non-Destructive Determination of Total Phenolic Contents Using UV–NIR Spectroscopy of Dehydrated Mushroom (Lentinus Edodes).” Journal of Food Process Engineering 47, no. 7: e14699.
- Younas, S., Y. Mao, C. Liu, et al. 2021. “Measurement of Water Fractions in Freeze-Dried Shiitake Mushroom by Means of Multispectral Imaging (MSI) and Low-Field Nuclear Magnetic Resonance (LF-NMR).” Journal of Food Composition and Analysis 96: 103694. https://doi.org/10.1016/j.jfca.2020.103694.
- Younas, S., Y. Mao, C. Liu, W. Liu, T. Jin, and L. Zheng. 2021. “Efficacy Study on the Non-Destructive Determination of Water Fractions in Infrared-Dried Lentinus Edodes Using Multispectral Imaging.” Journal of Food Engineering 289: 110226. https://doi.org/10.1016/j.jfoodeng.2020.110226.
- Yuan, L., F. Lao, X. Shi, D. Zhang, and J. Wu. 2022. “Effects of Cold Plasma, High Hydrostatic Pressure, Ultrasound, and High-Pressure Carbon Dioxide Pretreatments on the Quality Characteristics of Vacuum Freeze-Dried Jujube Slices.” Ultrasonics Sonochemistry 90: 106219. https://doi.org/10.1016/j.ultsonch.2022.106219.
- Zhou, W., J. Lian, J. Zhang, Z. Mei, Y. Gao, and G. Hui. 2023. “Tomato Storage Quality Predicting Method Based on Portable Electronic Nose System Combined With WOA-SVM Model.” Journal of Food Measurement and Characterization 17, no. 4: 3654–3664.
- Zia-ur-Rehman, M., M. Kashif, M. S. Manzoor, et al. 2025. “Effect of Ginger (Zingiber officinale) and Aleo Vera (Aloe barbadensis Miller) Extracts on Physicochemical Properties of Grape Juice Under 4°C and 25°C.” Journal of Food and Agricultural Technology Research 4, no. 1: 26–37. https://doi.org/10.69501/dwtj8884.
10.69501/dwtj8884 Google Scholar