Image processing for maturity classification of tomato using otsu and manhattan distance methods
Keywords:
Pre-processing, Segmentation, Otsu, Features extraction, ClassificationAbstract
Currently, image processing-based systems have been widely applied in various fields, one of which is agriculture. The system can be used to classify fruit maturity. Tomato is one of the agricultural products consumed by the community. Therefore, the requirement for ripe tomatoes increases. In this work, the classification method based on image processing for grading the maturity level of tomato was developed to distinguish tomato into three classes: unripe, half-ripe, and ripe. Classification is carried out based on the skin color of the tomato. The method required five main processes; initially, the detection of the region of interest (ROI) applied using the Otsu method followed by the conversion of RGB to HSV color space. Afterward, segmentation with Otsu thresholding on the S channel of the HSV color space was implemented. Subsequently, the extraction of the mean, median, max, and min features on each channel from the YIQ color space; therefore, a total number of 12 features was produced. Finally, the K-nearest neighbor (KNN) method using Manhattan distance is applied with the values of k = 1, 3, 5, 7, and 9. The dataset used consists of 90 images of tomatoes (30 raws, 30 half-ripes, and 30 ripes), where the dataset is divided into two types, including 54 images as training data and 36 images as testing data. The evaluation results were able to achieve the highest accuracy value of 0.9722.References
S. Zhang, S. Zhang, C. Zhang, X. Wang, and Y. Shi, “Cucumber leaf disease identification with global pooling dilated convolutional neural network,†Comput. Electron. Agric., vol. 162, no. February, pp. 422–430, 2019.
X. E. Pantazi, D. Moshou, and A. A. Tamouridou, “Automated leaf disease detection in different crop species through image features analysis and One Class Classifiers,†Comput. Electron. Agric., vol. 156, no. July 2018, pp. 96–104, 2019.
G. Geetharamani and A. P. J., “Identification of plant leaf diseases using a nine-layer deep convolutional neural network,†Comput. Electr. Eng., vol. 76, pp. 323–338, 2019.
A. Septiarini, A. Oktavia, and A. A. Kasim, “Maturity grading of oil palm fresh fruit bunches based on a machine learning approach,†in Fifth International Conference on Informatics and Computing (ICIC), 2020.
A. Septiarini, A. Sunyoto, H. Hamdani, A. Ahmad, F. Utaminingrum, and H. Rahmania, “Machine vision for the maturity classification of oil palm fresh fruit bunches based on color and texture features,†Sci. Hortic. (Amsterdam)., vol. 286, no. October 2020, p. 110245, 2021.
C. Anam, W. S. Lee, H. Gan, and X. Hu, “Mobile e-detection of Banyuwangi’s citrus fruit maturity using k-nearest neighbor,†Biosyst. Eng., vol. 171, pp. 78–90, 2018.
J. Gené-Mola, E. Gregorio, J. Guevara, F. Auat, R. Sanz-Cortiella, A. Escola, J. Lorens, J. Morros, J. Ruis-Hidalgo, V. Vilaplana, and J. R. Rosell-Polo, “Fruit detection in an apple orchard using a mobile terrestrial laser scanner,†Biosyst. Eng., vol. 187, pp. 171–184, 2019.
M. Fashi, L. Naderloo, and H. Javadikia, “The relationship between the appearance of pomegranate fruit and color and size of arils based on image processing,†Postharvest Biol. Technol., vol. 154, no. April, pp. 52–57, 2019.
S. W. Sidehabi, A. Suyuti, I. S. Areni, and I. Nurtanio, “Classification on passion fruit’s ripeness using K-means clustering and artificial neural network,†2018 Int. Conf. Inf. Commun. Technol. ICOIACT 2018, vol. 2018-January, pp. 304–309, 2018.
M. H. Malik, T. Zhang, H. Li, M. Zhang, S. Shabbir, and A. Saeed, “Mature Tomato Fruit Detection Algorithm Based on improved HSV and Watershed Algorithm,†in IFAC- PapersOnLine, 2018, vol. 51, no. 17, pp. 431–436.
J. Lv, H. Ni, Q. Wang, B. Yang, and L. Xu, “A segmentation method of red apple image,†Sci. Hortic. (Amsterdam)., vol. 256, no. June, p. 108615, 2019.
W. Ji, Z. Qian, B. Xu, Y. Tao, D. Zhao, and S. Ding, “Apple tree branch segmentation from images with small gray-level difference for agricultural harvesting robot,†Optik, vol. 127, pp. 11173–11182, 2016.
R. Kestur, A. Meduri, and O. Narasipura, “MangoNet: A deep semantic segmentation architecture for a method to detect and count mangoes in an open orchard,†Eng. Appl. Artif. Intell., vol. 77, no. April 2018, pp. 59–69, 2019.
S. Vougioukas and D. C. Slaughter, “Real-time segmentation of strawberry flesh and calyx from images of singulated strawberries during postharvest processing,†Comput. Electron. Agric., vol. 142, pp. 298–313, 2017.
A. Septiarini, H. Hamdani, H. Rahmania, and K. Anwar, “Automatic image segmentation of oil palm fruits by applying the contour-based approach,†Sci. Hortic., vol. 261, no. June 2019, p. 108939, 2020.
R. Xiang, “Image segmentation for whole tomato plant recognition at night,†Comput. Electron. Agric., vol. 154, no. September, pp. 434–442, 2018.
U. Dorj, M. Lee, and S. Yun, “An yield estimation in citrus orchards via fruit detection and counting using image processing,†Comput. Electron. Agric, vol. 140, no. August, pp. 103–112, 2017.
C. Anam and Solehatin, “Mobile e-detection of Banyuwangi’s citrus fruit maturity using k-nearest neighbor,†Jurnal Informatika, vol. 14, no. 3, pp. 112–118, 2020.
Z. Wang, K. Wang, F. Yang, S. Pan, and Y. Han, “Image segmentation of overlapping leaves based on Chan–Vese model and Sobel operator,†Inf. Process. Agric., vol. 5, no. 1, pp. 1–10, 2018.
H. Zhang, Q. Zhu, C. Fan, and D. Deng, “Image quality assessment based on Prewitt magnitude,†AEU - Int. J. Electron. Commun., vol. 67, no. 9, pp. 799–803, 2013.
M. H. Hanafi, N. Fadillah, and A. Ihsan, “Optimasi Algoritma K-Nearest Neighbor untuk Klasifikasi Tingkat Kematangan Buah Alpukat Berdasarkan Warna,†IT J. Res. Dev., vol. 4, no. 1, pp. 10–18, 2019.
C. Paramita, E. H. Rachmawanto, C. A. Sari, D. R. Ignatius, and M. Setiadi, “Klasifikasi Jeruk Nipis Terhadap Tingkat Kematangan Buah Berdasarkan Fitur Warna Menggunakan K-Nearest Neighbor,†J. Pengemb. IT, vol. 04, no. 1, pp. 1–6, 2019.
S. Aprilisa and Sukemi, “Klasifikasi Tingkat Kematangan Buah Tomat Berdasarkan Fitur Warna Menggunakan K-Nearest Neighhbor,†in 5th Annual Research Seminar, 2019, vol. 5, no. 1, pp. 978–979.
I. A. Muwakhid and D. Nurdiyah, “Otsu Method for Image Finish Segmentation With Components of Hue Saturation Value,†Transformatika, vol. 15, no. 2, pp. 67–73, 2018.
A. B. Kaswar, A. Akram, And N. Risal, “Klasifikasi Tingkat Kematangan Buah Markisa Menggunakan Jaringan Syaraf Tiruan Berbasis Pengolahan Citra Digital,†J. Embed. Syst. Secur. Intell. Syst., Vol. 01, No. May, Pp. 1–8, 2020.
M. Nishom, “Perbandingan Akurasi Euclidean Distance, Minkowski Distance, dan Manhattan Distance pada Algoritma K- Means Clustering berbasis Chi-Square,†J. Pengemb. IT, vol. 04, no. 01, pp. 20–24, 2019.
Downloads
Published
Issue
Section
License
Authors who publish with Jurnal Informatika (JIFO) agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.