Skip to main content
Log in

Nondestructive prediction model of internal hardness attribute of fig fruit using NIR spectroscopy and RF

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Hardness is one of the most important quality characteristics, which has an important influence on the processing and product quality of figs. A rapid non-destructive detection method for the hardness of figs was proposed based on visible/near infrared (VIS/NIR) spectroscopy technology. This study attempts to optimize the construction of a fig hardness model and predict the accuracy of thereof. An NIR spectrometer was used to collect the diffuse reflectance spectrum data in the wavelength range of 950–1700 nm, while the hardness index was measured using texture analyzer. Random forest (RF) and partial least square (PLS) methods were used to model the spectral data and hardness, respectively, and a better algorithm for the model construction was obtained. The RF model performed better in the characteristic band (1150.83–1232.43 nm), with correlation coefficient (R2), root mean square error of calibration (RMSEC), and root mean square error of prediction (RMSEP) of 0.76, 67.61, and 83.94 respectively. The PLS model worked well at the full band (R2 = 0.77, RMSEC = 59.20, RMSEP = 91.84). However, the prediction time of the PLS was slightly shorter than that of RF model (0.0004 s < 0.0098 s). The results show that it is feasible to detect the hardness of figs without destroying them by using VIS/NIR diffuse reflectance spectroscopy combined with sample set partitioning based on joint x–y distances (SPXY), RF, and PLS algorithms. This study provides new technical means for fig products enterprises to determine the hardness of figs in the early stages of production rapidly and evaluate the processing quality of fig products, which has a high practical application potential.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

References

  1. Abualigah LM (2020) Multi-verse optimizer algorithm: a comprehensive survey of its results, variants, and applications. Neural Comput Appl 32(16):12381–12401. https://doi.org/10.1007/s00521-020-04839-1

    Article  Google Scholar 

  2. Abualigah LM, Khader AT (2017) Unsupervised text feature selection technique based on hybrid particle swarm optimization algorithm with genetic operators for the text clustering. J Supercomput 73(11):1–23. https://doi.org/10.1007/s11227-017-2046-2

    Article  Google Scholar 

  3. Awanthi MGG, Jinendra BMS, Navaratne SB, Navaratne CM (2019) Adaptation of visible and short wave Near Infrared (VIS-SW-NIR) common PLS model for quantifying paddy hardness. J Cereal Sci 89:102795. https://doi.org/10.1016/j.jcs.2019.102795

    Article  Google Scholar 

  4. Begum R, Yusof YA, Aziz MG, Uddin MB (2017) Structural and functional properties of pectin extracted from jackfruit (Artocarpus heterophyllus) waste: Effects of drying. Int J Food Prop 190–201. https://doi.org/10.1080/10942912.2017.1295054

  5. Berardinelli A, Benelli A, Tartagni M, Ragni L (2019) Kiwifruit flesh firmness determination by a NIR sensitive device and image multivariate data analyses. Sensors Actuators A: Phys 296:265–271. https://doi.org/10.1016/j.sna.2019.07.027

    Article  Google Scholar 

  6. Conesa MR, García-Salinas MD, Rosa JMDL, Fernández-Trujillo JP, Domingo R, Pérez-Pastor A (2014) Effects of deficit irrigation applied during fruit growth period of late mandarin trees on harvest quality, cold storage and subsequent shelf-life. Sci Hort 165(3):344–351. https://doi.org/10.1016/j.scienta.2013.11.023

    Article  Google Scholar 

  7. Debib A, Dueñas M, Boumediene M, Mothana RA, Latifa A, Tir-Touil MA (2016) Synergetic hepatoprotective effect of phenolic fractions obtained from ficus carica dried fruit and extra virgin olive oil on CCL4-induced oxidative stress and hepatotoxicity in rats. J Food Biochem 40(4):507–516. https://doi.org/10.1111/jfbc.12241

    Article  Google Scholar 

  8. Ghnimi S, Al-Shibli M, Al-Yammahi HR, Al-Dhaheri A, Al-Jaberi F, Jobe B, Kamal-Eldin A (2018) Reducing sugars, organic acids, size, color, and texture of 21 Emirati date fruit varieties (Phoenix dactylifera, L.). NFS J 12:1–10. https://doi.org/10.1016/j.nfs.2018.04.002

    Article  Google Scholar 

  9. Huang YP, Lu RF, Chen KJ (2018) Prediction of firmness parameters of tomatoes by portable visible and near-infrared spectroscopy. J Food Eng 222:185–198. https://doi.org/10.1016/j.jfoodeng.2017.11.030

    Article  Google Scholar 

  10. Ibáñez G, Cebolla-Cornejo J, Martí R, Roselló S, Valcárcel M (2019) Non-destructive determination of taste-related compounds in tomato using NIR spectra. J Food Eng 263:237–242. https://doi.org/10.1016/j.jfoodeng.2019.07.004

    Article  Google Scholar 

  11. Kashash Y, Mayuoni-Kirshenbaum L, Goldenberg L, Choi HJ, Porat R (2016) Effects of harvest date and low-temperature conditioning on chilling tolerance of “Wonderful” pomegranate fruit. Sci Hort 209:286–292. https://doi.org/10.1016/j.scienta.2016.06.038

    Article  Google Scholar 

  12. Lansky EP, Paavilainen HM, Pawlus AD, Newman RA (2015) Ficus spp. (fig): Ethnobotany and potential as anticancer and anti-inflammatory agents. J Ethnopharmacol 119(2):195–213. https://doi.org/10.1016/j.jep.2008.06.025

    Article  Google Scholar 

  13. Li JB, Huang WQ, Zhao CJ, Zhang BH (2013) A comparative study for the quantitative determination of soluble solids content, pH and firmness of pears by Vis/NIR spectroscopy. J Food Eng 116(2):324–332. https://doi.org/10.1016/j.jfoodeng.2012.11.007

    Article  Google Scholar 

  14. Li GH, Ren YM, Ren XL, Zhang XR (2015) Non-destructive measurement of fracturability and chewiness of apple by FT-NIRS. J Food Sci Technol 52(1):258–266. https://doi.org/10.1007/s13197-013-0990-2

    Article  Google Scholar 

  15. Li S, Luo H, Hu M, Zhang M, Feng J, Liu Y, Dong Q, Liu B (2019) Optical non-destructive techniques for small berry fruits: A review. Artif Intell Agric 2:85–98. https://doi.org/10.1016/j.aiia.2019.07.002

    Article  Google Scholar 

  16. Li JB, Zhang HL, Zhan BS, Zhang YF, Li RL, Li JB (2019) Nondestructive firmness measurement of the multiple cultivars of pears by Vis-NIR spectroscopy coupled with multivariate calibration analysis and MC-UVE-SPA method. Infrared Phys Technol 104:103154. https://doi.org/10.1016/j.infrared.2019.103154

    Article  Google Scholar 

  17. Nturambirwe JFI, Opara UL (2020) Machine learning applications to non-destructive defect detection in horticultural products. Biosys Eng 189:60–83. https://doi.org/10.1016/j.biosystemseng.2019.11.011

    Article  Google Scholar 

  18. Patil R, Joshi GD, Haldankar PM, More M (2011) Estimation of pectin content in jackfruit (Artocarpus heterophyllus). Asian J Holtic 6(2):536–537

    Google Scholar 

  19. Paulsen M, Rasmussen TK, Nielsen OA (2018) Output variability caused by random seeds in a multi-agent transport simulation model. Procedia Comput Sci 130:850–857. https://doi.org/10.1016/j.procs.2018.04.078

    Article  Google Scholar 

  20. Raafat K, Wurglics M (2019) Phytochemical analysis of Ficus carica L. active compounds possessing anticonvulsant activity. J Tradit Complement Med 9:263–270. https://doi.org/10.1016/j.jtcme.2018.01.007

    Article  Google Scholar 

  21. Reyes-Avalos MC, Minjares-Fuentes R, Femenia A, Contreras-Esquivel JC, Quintero-Ramos A, Esparza-Rivera JR, Meza-Velázquez JA (2019) Application of an alginate–chitosan edible film on figs (Ficus carica): Effect on bioactive compounds and antioxidant capacity. Food Bioprocess Technol 12:499–511. https://doi.org/10.1007/s11947-018-2226-y

    Article  Google Scholar 

  22. Rungpichayapichet P, Mahayothee B, Nagle M, Khuwijitjaru P, Müller J (2016) Robust NIRS models for non-destructive prediction of postharvest fruit ripeness and quality in mango. Postharvest Biol Technol 111:31–40. https://doi.org/10.1016/j.postharvbio.2015.07.006

    Article  Google Scholar 

  23. Saad A, Jha SN, Jaiswal P, Srivastava N, Helyes L (2016) Non-destructive quality monitoring of stored tomatoes using VIS-NIR spectroscopy. Eng Agric Environ Food 9(2):158–164. https://doi.org/10.1016/j.eaef.2015.10.004

    Article  Google Scholar 

  24. Sanchez PDC, Hashim N, Shamsudin R, Mohd Nor MZ (2020) Applications of imaging and spectroscopy techniques for non-destructive quality evaluation of potatoes and sweet potatoes: A review. Trends Food Sci Technol 96:208–221. https://doi.org/10.1016/j.tifs.2019.12.027

    Article  Google Scholar 

  25. Santos Pereira LF, Barbon S, Valous NA, Barbin DF (2018) Predicting the ripening of papaya fruit with digital imaging and random forests. Comput Electron Agric 145:76–82. https://doi.org/10.1016/j.compag.2017.12.029

    Article  Google Scholar 

  26. Sun J, Künnemeyer R, McGlone A, Rowe P (2016) Multispectral scattering imaging and NIR interactance for apple firmness predictions. Postharvest Biol Technol 119:58–68. https://doi.org/10.1016/j.postharvbio.2016.04.019

    Article  Google Scholar 

  27. Sun M, Zhang D, Liu L, Wang Z (2017) How to predict the sugariness and hardness of melons: A near-infrared hyperspectral imaging method. Food Chem 218:413–421. https://doi.org/10.1016/j.foodchem.2016.09.023

    Article  Google Scholar 

  28. Urbano-Cuadrado M, De Castro ML, Pérez-Juan PM, Garc´ıa-Olmo J, G´omez-Nieto MA (2004) Near infrared reflectance spectroscopy and multivariate analysis in enology: Determination or screening of fifteen parameters in different types of wines. Anal Chim Acta 527(1):81–88. https://doi.org/10.1016/j.aca.2004.07.057

    Article  Google Scholar 

  29. Uwadaira Y, Sekiyama Y, Ikehata A (2018) An examination of the principle of non-destructive flesh firmness measurement of peach fruit by using VIS-NIR spectroscopy. Heliyon 4(2):e00531. https://doi.org/10.1016/j.heliyon.2018.e00531

    Article  Google Scholar 

  30. Valente M, Leardi R, Self G, Luciano G, Pain JP (2009) Multivariate calibration of mango firmness using vis/NIR spectroscopy and acoustic impulse method. J Food Eng 94(1):7–13. https://doi.org/10.1016/j.jfoodeng.2009.02.020

    Article  Google Scholar 

  31. Wang JH, Wang Jun, Chen Z, Han D (2017) Development of multi-cultivar models for predicting the soluble solid content and firmness of European pear (Pyrus communis L.) using portable vis–NIR spectroscopy. Postharvest Biol Technol 129:143–151. https://doi.org/10.1016/j.postharvbio.2017.03.012

    Article  Google Scholar 

  32. Wei X, He JC, Zheng SH, Ye DP (2019) Modeling for SSC and firmness detection of persimmon based on NIR hyperspectral imaging by sample partitioning and variables selection. Infrared Physics Technology 103099. https://doi.org/10.1016/j.infrared.2019.103099

  33. Yang XM, Yu W, Ou ZP, Ma HL, Liu WM, Ji XL (2009) Antioxidant and immunity activity of water extract and crude polysaccharide from Ficus carica L. fruit. Plant Foods Hum Nutr 64(2):167–173. https://doi.org/10.1007/s11130-009-0120-5

    Article  Google Scholar 

  34. Yeganehzad S, Kiumarsi M, Nadali N, Rabie Ashkezary M (2020) Formulation, development and characterization of a novel functional fruit snack based on fig (Ficus carica L.) coated with sugar-free chocolate. Heliyon 6(7):e04350. https://doi.org/10.1016/j.heliyon.2020.e04350

    Article  Google Scholar 

  35. You H, Kim Y, Lee JH, Choi S (2017) Classification of food powders using handheld NIR spectrometer. 2017 Ninth International Conference on Ubiquitous and Future Networks (ICUFN) 732–734. https://doi.org/10.1109/ICUFN.2017.7993887

  36. Zhang HT, Gu B, Mu JR, Ruan PJ, Li DW (2017) Wheat hardness prediction research based on NIR hyperspectral analysis combined with ant colony optimization algorithm. Procedia Eng 174:648–656. https://doi.org/10.1016/j.proeng.2017.01.202

    Article  Google Scholar 

  37. Zhu AA, Chen YM, Yu QX, Cai JD HB (2019) Leveraging spatio-temporal patterns for predicting citywide traffic crowd flows using deep hybrid neural networks. IEEE 25th International Conference on Parallel and Distributed Systems 2019. https://doi.org/10.1109/ICPADS47876.2019.00025

Download references

Acknowledgements

This study is supported by the Natural Science Foundation of Shandong Province (Grant No. ZR2017MC063), the Key Research and Development Program of Shandong Province (Grant No. 2019GNC106139).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rui Sun.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Major contributions

1. The RF is first used to determine the quality of figs. Two models are constructed to predict the hardness of figs.

2. It provides means for the rapid detection of fig products in the early stages of production.

3. It provides a new idea and method for the quality prediction of other fruits and vegetables.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Sun, R., Zhou, Jy. & Yu, D. Nondestructive prediction model of internal hardness attribute of fig fruit using NIR spectroscopy and RF. Multimed Tools Appl 80, 21579–21594 (2021). https://doi.org/10.1007/s11042-021-10777-4

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-021-10777-4

Keywords

Navigation