Abstract
Accurate classification of strawberry ripeness is a crucial aspect of ensuring high-quality food products, optimizing harvesting and storage processes, and promoting consumer health. Although several non-destructive computer vision-based systems have been developed for this purpose, the influence of different colour spaces on machine-learning model performance during the ripeness stage classification of strawberries remains underexplored. In this context, three machine-learning models, namely Gaussian Naïve Bayes (GNB), support vector machine (SVM) and feed-forward artificial neural networks (FANN), were combined with four colour spaces (RGB, HLS, CIELab and YCbCr) and biometrical characteristics to evaluate the effectiveness of colour spaces on the performance of machine-learning models for classifying strawberry ripeness. For this purpose, 1210 samples were collected and manually classified into four ripeness stages. A dataset was created by combining each colour space value, biometrical properties, and corresponding ripeness stage, which was used as inputs to the models. The results indicated that FANN with CIELab colour space achieved the highest accuracy of 96.7%, followed by GNB and SVM, both having equal accuracy of 95.46% in CIELab colour space. The least accuracy of 92.15% was observed in RGB colour space with the GNB classifier. In this study, the unripe and over-ripe stages were more accurately classified, while intermediate ripening stages proved to be more challenging for the models. Furthermore, the accuracy of models was observed to be influenced by both the colour space and classification model selected. Additionally, further research is needed to investigate other features that could improve the performance of models for strawberry ripeness classification.
Data availability
The datasets generated during and/or analyzed during the current study are available from the corresponding author upon reasonable request.
References
Aliasgarian S, Ghassemzadeh HR, Moghaddam M, Ghaffari H (2015) Mechanical damage of strawberry during harvest and postharvest operations. Acta Technol Agric 18:1–5. https://doi.org/10.1515/ata-2015-0001
Ançay A, Vincent M, Baroffio CA (2014) Comparison of two irrigation management systems in strawberry. Acta Hortic. https://doi.org/10.17660/ActaHortic.2014.1049.79
Arakeri MP, Lakshmana (2016) Computer vision based fruit grading system for quality evaluation of tomato in agriculture industry. Procedia Comput Sci 79:426–433. https://doi.org/10.1016/j.procs.2016.03.055
Baek Y, Sul S, Cho YY (2023) Estimation of days after transplanting using an artificial intelligence CNN (convolutional neural network) model in a closed-type plant factory. Hortic Sci Technol 41:81–90. https://doi.org/10.7235/HORT.20230008
Basak JK, Arulmozhi E, Moon BE, Bhujel A, Kim HT (2022a) Modelling methane emissions from pig manure using statistical and machine learning methods. Air Qual Atmos Health 15:575–589
Basak JK, Madhavi BGK, Paudel B, Kim NE, Kim HT (2022b) Prediction of total soluble solids and pH of strawberry fruits using RGB, HSV and HSL colour spaces and machine learning models. Foods 11:2086. https://doi.org/10.3390/foods11142086
Bora DJ, Gupta AK, Khan FA (2015) Comparing the performance of L* A* B* and HSV color spaces with respect to color image segmentation. arXiv Prepr. arXiv:1506.01472
Bratu AM, Popa C, Bojan M, Logofatu PC, Petrus M (2021) Non-destructive methods for fruit quality evaluation. Sci Rep. https://doi.org/10.1038/s41598-021-87530-2
Busin L, Vandenbroucke N, Macaire L (2008) Color spaces and image segmentation. Adv Imaging Electron Phys 151:1
Camps C, Christen D (2009) Non-destructive assessment of apricot fruit quality by portable visible-near infrared spectroscopy. LWT Food Sci Technol 42:1125–1131. https://doi.org/10.1016/j.lwt.2009.01.015
Cárdenas-Pérez S, Chanona-Pérez J, Méndez-Méndez JV, Calderón-Domínguez G, López-Santiago R, Perea-Flores MJ, Arzate-Vázquez I (2017) Evaluation of the ripening stages of apple (golden delicious) by means of computer vision system. Biosyst Eng 159:46–58. https://doi.org/10.1016/j.biosystemseng.2017.04.009
Castro W, Oblitas J, De-La-Torre M, Cotrina C, Bazan K, Avila-George H (2019) Classification of cape gooseberry fruit according to its level of ripeness using machine learning techniques and different color spaces. IEEE Access 7:27389–27400. https://doi.org/10.1109/ACCESS.2019.2898223
Chai D, Bouzerdoum A (2000) A Bayesian approach to skin color classification in YCbCr color space. In: 2000 TENCON proceedings. Intelligent systems and technologies for the new millennium (Cat. No.00CH37119). IEEE, pp 421–424. https://doi.org/10.1109/TENCON.2000.888774
Cho B-H, Koseki S (2021) Determination of banana quality indices during the ripening process at different temperatures using smartphone images and an artificial neural network. Sci Hortic (amsterdam) 288:110382
Choi SY, Lee AK (2020) Development of a cut rose longevity prediction model using thermography and machine learning. Hortic Sci Technol 38:675–685. https://doi.org/10.7235/HORT.20200061
Cordenunsi BR, Nascimento JRO, Lajolo FM (2003) Physico-chemical changes related to quality of five strawberry fruit cultivars during cool-storage. Food Chem 83:167–173. https://doi.org/10.1016/S0308-8146(03)00059-1
Døving A, Måge F, Vestrheim S (2005) Methods for testing strawberry fruit firmness. Small Fruits Rev 4:11–34. https://doi.org/10.1300/J301v04n02_03
El-Bendary N, El Hariri E, Hassanien AE, Badr A (2015) Using machine learning techniques for evaluating tomato ripeness. Expert Syst Appl 42:1892–1905. https://doi.org/10.1016/j.eswa.2014.09.057
El-Mesery H, Mao H, Abomohra A (2019) Applications of non-destructive technologies for agricultural and food products quality inspection. Sensors 19:846. https://doi.org/10.3390/s19040846
Elhariri E, El-Bendary N, Hussein AMM, Hassanien AE, Badr A (2014) Bell pepper ripeness classification based on support vector machine. In: 2014 International conference on engineering and technology (ICET). IEEE, pp 1–6. https://doi.org/10.1109/ICEngTechnol.2014.7016802
Fadilah N, Mohamad-Saleh J, Abdul Halim Z, Ibrahim H, Syed Ali S (2012) Intelligent color vision system for ripeness classification of oil palm fresh fruit bunch. Sensors 12:14179–14195. https://doi.org/10.3390/s121014179
Fashi M, Naderloo L, Javadikia H (2019) The relationship between the appearance of pomegranate fruit and color and size of arils based on image processing. Postharvest Biol Technol 154:52–57. https://doi.org/10.1016/j.postharvbio.2019.04.017
Ferrer A, Remón S, Negueruela AI, Oria R (2005) Changes during the ripening of the very late season Spanish peach cultivar Calanda. Sci Hortic (amsterdam) 105:435–446. https://doi.org/10.1016/j.scienta.2005.02.002
Ferri C, Hernández-Orallo J, Modroiu R (2009) An experimental comparison of performance measures for classification. Pattern Recognit Lett 30:27–38. https://doi.org/10.1016/j.patrec.2008.08.010
Garcia-Lamont F, Cervantes J, López A, Rodriguez L (2018) Segmentation of images by color features: a survey. Neurocomputing 292:1–27. https://doi.org/10.1016/j.neucom.2018.01.091
Giovannoni JJ (2004) Genetic regulation of fruit development and ripening. Plant Cell 16:S170–S180
Goel N, Sehgal P (2015) Fuzzy classification of pre-harvest tomatoes for ripeness estimation—an approach based on automatic rule learning using decision tree. Appl Soft Comput 36:45–56. https://doi.org/10.1016/j.asoc.2015.07.009
Goh TY, Basah SN, Yazid H, Safar MJA, Saad FSA (2018) Performance analysis of image thresholding: Otsu technique. Measurement 114:298–307
Grandini M, Bagli E, Visani G (2020) Metrics for multi-class classification: an overview. arXiv Prepr. arXiv:2008.05756
Guerrero ER, Benavides GM (2014) Automated system for classifying Hass avocados based on image processing techniques. In: 2014 IEEE Colombian conference on communications and computing (COLCOM). IEEE, pp 1–6. https://doi.org/10.1109/ColComCon.2014.6860414
Hearst MA, Dumais ST, Osuna E, Platt J, Scholkopf B (1998) Support vector machines. IEEE Intell Syst Their Appl 13:18–28
Hernández-Martínez NR, Blanchard C, Wells D, Salazar-Gutiérrez MR (2023) Current state and future perspectives of commercial strawberry production: a review. Sci Hortic (amsterdam) 312:111893. https://doi.org/10.1016/j.scienta.2023.111893
Ibba P, Tronstad C, Moscetti R, Mimmo T, Cantarella G, Petti L, Martinsen ØG, Cesco S, Lugli P (2021) Supervised binary classification methods for strawberry ripeness discrimination from bioimpedance data. Sci Rep 11:11202. https://doi.org/10.1038/s41598-021-90471-5
Jha SN, Narsaiah K, Basediya AL, Sharma R, Jaiswal P, Kumar R, Bhardwaj R (2011) Measurement techniques and application of electrical properties for nondestructive quality evaluation of foods-a review. J Food Sci Technol 48:387–411. https://doi.org/10.1007/s13197-011-0263-x
Kahu SY, Raut RB, Bhurchandi KM (2019) Review and evaluation of color spaces for image/video compression. Color Res Appl 44:8–33. https://doi.org/10.1002/col.22291
Karastogianni S, Girousi S, Sotiropoulos S (2016) pH: principles and measurement. Encycl Food Heal 4:333–338
Kondekar VH, Bodhe SKA (2018) Comprehensive investigation of color models used in image processing. Int J Comput Appl 180:19–24
Koschan A, Abidi M (2008) Digital color image processing. Wiley
Lee D-J, Archibald JK, Chang Y-C, Greco CR (2008) Robust color space conversion and color distribution analysis techniques for date maturity evaluation. J Food Eng 88:364–372. https://doi.org/10.1016/j.jfoodeng.2008.02.023
Lee G-B, Lee J-E, Lee J-H, Lee Y-J, Park Y-H, Choi Y-W, Son B-G, Kang N-J, Je BI, Kang J (2020) Phytohormone profiles of ‘Seolhyang’ and ‘Maehyang’ strawberry fruits during ripening. Hortic Environ Biotechnol 61:229–239. https://doi.org/10.1007/s13580-019-00213-w
Liu C, Liu W, Lu X, Ma F, Chen W, Yang J, Zheng L (2014a) Application of multispectral imaging to determine quality attributes and ripeness stage in strawberry fruit. PLoS ONE 9:e87818. https://doi.org/10.1371/journal.pone.0087818
Liu Y, Zhou Y, Wen S, Tang C (2014b) A strategy on selecting performance metrics for classifier evaluation. Int J Mob Comput Multimed Commun 6:20–35. https://doi.org/10.4018/IJMCMC.2014100102
Long H, Xu S, Gu W (2022) An abnormal wind turbine data cleaning algorithm based on color space conversion and image feature detection. Appl Energy 311:118594. https://doi.org/10.1016/j.apenergy.2022.118594
Ly BCK, Dyer EB, Feig JL, Chien AL, Del Bino S (2020) Research techniques made simple: cutaneous colorimetry: a reliable technique for objective skin color measurement. J Investig Dermatol 140:3-12.e1. https://doi.org/10.1016/j.jid.2019.11.003
Madhavi BGK, Kim NE, Basak JK, Choi GM, Kim HT (2023) Comparative study of strawberry growth and fruit quality parameters in horizontal and vertical production systems. Hortic Environ Biotechnol 64:409–419. https://doi.org/10.1007/s13580-022-00494-8
Ménager I, Jost M, Aubert C (2004) Changes in physicochemical characteristics and volatile constituents of strawberry (cv. cigaline) during maturation. J Agric Food Chem 52:1248–1254. https://doi.org/10.1021/jf0350919
Mendoza F, Aguilera JM (2004) Application of image analysis for classification of ripening bananas. J Food Sci 69:E471–E477
Mohammadi V, Kheiralipour K, Ghasemi-Varnamkhasti M (2015) Detecting maturity of persimmon fruit based on image processing technique. Sci Hortic (amsterdam) 184:123–128. https://doi.org/10.1016/j.scienta.2014.12.037
Montero TM, Mollá EM, Esteban RM, López-Andréu FJ (1996) Quality attributes of strawberry during ripening. Sci Hortic (amsterdam) 65:239–250. https://doi.org/10.1016/0304-4238(96)00892-8
Namitha KK, Negi PS (2010) Chemistry and biotechnology of carotenoids. Crit Rev Food Sci Nutr 50:728–760. https://doi.org/10.1080/10408398.2010.499811
Nandi CS, Tudu B, Koley C (2014) A machine vision-based maturity prediction system for sorting of harvested mangoes. IEEE Trans Instrum Meas 63:1722–1730. https://doi.org/10.1109/TIM.2014.2299527
Nunes MCN, Brecht JK, Morais AMMB, Sargent SA (2006) Physicochemical changes during strawberry development in the field compared with those that occur in harvested fruit during storage. J Sci Food Agric 86:180–190
Ornelas-Paz JdJ, Yahia EM, Ramírez-Bustamante N, Pérez-Martínez JD, Escalante-Minakata MDP, Ibarra-Junquera V, Acosta-Muñiz C, Guerrero-Prieto V, Ochoa-Reyes E (2013) Physical attributes and chemical composition of organic strawberry fruit (Fragaria x ananassa Duch, Cv. Albion) at six stages of ripening. Food Chem 138:372–381. https://doi.org/10.1016/j.foodchem.2012.11.006
Papadakis SE, Abdul-Malek S, Kamdem RE, Yam KL (2000) A versatile and inexpensive technique for measuring color of foods. Food Technol 54:48–51
Paudel B, Basak JK, Kaushalya Madhavi BG, Kim N-E, Lee G-H, Choi G-M, Choi Y-W, Kim HT (2022) Properties of paper-based biodegradable pots for growing seedlings. Hortic Environ Biotechnol. https://doi.org/10.1007/s13580-022-00457-z
Placidi G, Castellano G, Mignosi F, Polsinelli M, Vessio G (2022) Investigating the effectiveness of color coding in multimodal medical imaging. In: 2022 IEEE 35th international symposium on computer-based medical systems (CBMS). IEEE, pp 270–275. https://doi.org/10.1109/CBMS55023.2022.00054
Pu H, Liu D, Wang L, Sun D-W (2016) Soluble solids content and ph prediction and maturity discrimination of lychee fruits using visible and near infrared hyperspectral imaging. Food Anal Methods 9:235–244. https://doi.org/10.1007/s12161-015-0186-7
Rafiq A, Makroo HA, Hazarika MK (2016) Artificial neural network-based image analysis for evaluation of quality attributes of agricultural produce. J Food Process Preserv 40:1010–1019. https://doi.org/10.1111/jfpp.12681
Raj R, Cosgun A, Kulić D (2022) Strawberry water content estimation and ripeness classification using hyperspectral sensing. Agronomy 12:425. https://doi.org/10.3390/agronomy12020425
Rico D, Martín-Diana AB, Barat JM, Barry-Ryan C (2007) Extending and measuring the quality of fresh-cut fruit and vegetables: a review. Trends Food Sci Technol 18:373–386. https://doi.org/10.1016/j.tifs.2007.03.011
Sanaeifar A, Bakhshipour A, de la Guardia M (2016) Prediction of banana quality indices from color features using support vector regression. Talanta 148:54–61. https://doi.org/10.1016/j.talanta.2015.10.073
Saravanan G, Yamuna G, Nandhini S (2016) Real time implementation of RGB to HSV/HSI/HSL and its reverse color space models. In: 2016 international conference on communication and signal processing (ICCSP). IEEE, pp 0462–0466. https://doi.org/10.1109/ICCSP.2016.7754179
Septiarini A, Sunyoto A, Hamdani H, Kasim AA, Utaminingrum F, Hatta HR (2021) Machine vision for the maturity classification of oil palm fresh fruit bunches based on color and texture features. Sci Hortic (amsterdam) 86:110245. https://doi.org/10.1016/j.scienta.2021.110245
Shaik KB, Ganesan P, Kalist V, Sathish BS, Jenitha JMM (2015) Comparative study of skin color detection and segmentation in HSV and YCbCr color space. Procedia Comput Sci 57:41–48. https://doi.org/10.1016/j.procs.2015.07.362
Sharma S, Singh K (2019) Harvesting. In: Sharma RM, Yamdagni R, Dubey AK, Pandey V, Sharma RM, Yamdagni R, Dubey AK, Pandey V (eds) Strawberries. CRC Press, Boca Raton, pp 399–402
Shin Y, Ryu J-A, Liu RH, Nock JF, Watkins CB (2008) Harvest maturity, storage temperature and relative humidity affect fruit quality, antioxidant contents and activity, and inhibition of cell proliferation of strawberry fruit. Postharvest Biol Technol 49:201–209. https://doi.org/10.1016/j.postharvbio.2008.02.008
Singh D, Singh B (2020) Investigating the impact of data normalization on classification performance. Appl Soft Comput 97:105524. https://doi.org/10.1016/j.asoc.2019.105524
Svozil D, Kvasnicka V, Pospichal J (1997) Introduction to multi-layer feed-forward neural networks. Chemom Intell Lab Syst 39:43–62
Tan K, Lee WS, Gan H, Wang S (2018) Recognising blueberry fruit of different maturity using histogram oriented gradients and colour features in outdoor scenes. Biosyst Eng 176:59–72. https://doi.org/10.1016/j.biosystemseng.2018.08.011
Tzanos G, Kachris C, Soudris D (2019) Hardware acceleration on Gaussian Naive Bayes machine learning algorithm. In: 2019 8th international conference on modern circuits and systems technologies (MOCAST). IEEE, pp 1–5. https://doi.org/10.1109/MOCAST.2019.8741875
Vélez-Rivera N, Blasco J, Chanona-Pérez J, Calderón-Domínguez G, de Jesús Perea-Flores M, Arzate-Vázquez I, Cubero S, Farrera-Rebollo R (2014) Computer vision system applied to classification of “Manila” mangoes during ripening process. Food Bioprocess Technol 7:1183–1194. https://doi.org/10.1007/s11947-013-1142-4
Wang H, Fan Y, Yang Y, Zhang H, Li M, Sun P, Zhang X, Xue Z, Jin W (2023) Classification of rose petal colors based on optical spectrum and pigment content analyses. Hortic Environ Biotechnol 64:153–166. https://doi.org/10.1007/s13580-022-00469-9
Wei X, Jia K, Lan J, Li Y, Zeng Y, Wang C (2014) Automatic method of fruit object extraction under complex agricultural background for vision system of fruit picking robot. Optik (stuttg) 125:5684–5689. https://doi.org/10.1016/j.ijleo.2014.07.001
Wei H, Liu C, Ryong Jeong B (2020) An optimal combination of the propagation medium and fogging duration enhances the survival, rooting and early growth of strawberry daughter plants. Agronomy 10:557. https://doi.org/10.3390/agronomy10040557
Worasawate D, Sakunasinha P, Chiangga S (2022) Automatic classification of the ripeness stage of mango fruit using a machine learning approach. AgriEngineering 4:32–47. https://doi.org/10.3390/agriengineering4010003
Xiaobo Z, Jiewen Z, Yanxiao L (2007) Apple color grading based on organization feature parameters. Pattern Recognit Lett 28:2046–2053. https://doi.org/10.1016/j.patrec.2007.06.001
Yang L, Shami A (2020) On hyperparameter optimization of machine learning algorithms: theory and practice. Neurocomputing 415:295–316. https://doi.org/10.1016/j.neucom.2020.07.061
Yang ZR, Yang Z (2014) Artificial neural networks. In: Comprehensive biomedical physics. Elsevier, pp 1–17. https://doi.org/10.1016/B978-0-444-53632-7.01101-1
Yang X, Zhang R, Zhai Z, Pang Y, Jin Z (2019) Machine learning for cultivar classification of apricots (Prunus armeniaca L.) based on shape features. Sci Hortic (amsterdam) 256:108524. https://doi.org/10.1016/j.scienta.2019.05.051
Zhang H (2005) Exploring conditions for the optimality of naive Bayes. Int J Pattern Recognit Artif Intell 19:183–198
Zhang C, Guo C, Liu F, Kong W, He Y, Lou B (2016) Hyperspectral imaging analysis for ripeness evaluation of strawberry with support vector machine. J Food Eng 179:11–18. https://doi.org/10.1016/j.jfoodeng.2016.01.002
Zhang W-W, Zhao S-Q, Zhang L-C, Xing Y, Jia W-S (2020) Changes in the cell wall during fruit development and ripening in Fragaria vesca. Plant Physiol Biochem 154:54–65. https://doi.org/10.1016/j.plaphy.2020.05.028
Zhou X, Ampatzidis Y, Lee WS, Zhou C, Agehara S, Schueller JK (2022) Deep learning-based postharvest strawberry bruise detection under UV and incandescent light. Comput Electron Agric 202:107389. https://doi.org/10.1016/j.compag.2022.107389
Acknowledgements
The authors would like to thank the Korea Institute of Planning and Evaluation for Technology in Food, Agriculture, Forestry and Fisheries (IPET) through Agriculture, Food and Rural Affairs Convergence Technologies Program for Educating Creative Global Leader, funded by the Ministry of Agriculture, Food and Rural Affairs (MAFRA) (717001-7) for financial support to conduct the research.
Funding
This research has been financially supported by the Korea Institute of Planning and Evaluation for Technology in Food, Agriculture, Forestry and Fisheries (IPET) through Agriculture, Food and Rural Affairs Convergence Technologies Program for Educating Creative Global Leader, funded by the Ministry of Agriculture, Food and Rural Affairs (MAFRA) (717001-7).
Author information
Authors and Affiliations
Contributions
Conceptualization, methodology, software analysis, formal analysis, writing—original draft preparation, and visualization by S.K.; validation by J.K.B., B.P. and H.T.K.; resources by N.C.D., N.-E.K. and M.Y.K.; writing—review and editing by S.K., J.K.B. and B.P.; Project administration, and funding acquisition by H.T.K. All authors have read and agreed to the published version of the manuscript.
Corresponding author
Ethics declarations
Conflict of interest
On behalf of all the authors, the corresponding author declares “there is no conflict of interest”.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Karki, S., Basak, J.K., Paudel, B. et al. Classification of strawberry ripeness stages using machine learning algorithms and colour spaces. Hortic. Environ. Biotechnol. 65, 337–354 (2024). https://doi.org/10.1007/s13580-023-00559-2
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s13580-023-00559-2