Chili Classification Using Shape and Color Features Based on Image Processing

Yobel Fernanda Sihombing(1), Anindita Septiarini(2), Awang Harsa Kridalaksana(3), Novianti Puspitasari(4),


(1) Universitas Mulawarman
(2) Universitas Mulawarman
(3) Universitas Mulawarman
(4) Universitas Mulawarman

Abstract

Abstract.

Purpose: Chili is an agricultural product that has several varieties and is in great demand. It can be consumed directly or processed first.  This study aims to classify the types of chili using color and shape features. The types of chili are divided into five classes: cayenne pepper, green chili, big green chili, big red chili, and curly chili. The chili classification method was evaluated using three parameters: precision, recall, and accuracy.

Methods: This study applied the K-Nearest Neighbors (KNN) method with the Euclidean and Manhattan distance calculation algorithm and used two feature types: color and shape. The color features were extracted based on RGB color space by obtaining the mean and standard deviation values. Meanwhile, the shape features used aspect ratio, area, and boundary.

Result: The evaluation results of the classification method were able to achieve the precision, recall, and accuracy values of 1.0, which means that all test data were classified correctly. The evaluation was applied with 210 training images and 90 test images based on the test results.

Novelty: This study extracted two types of features: color and shape. Those features fed the KNN method by applying the Euclidean and Manhattan distance calculation algorithm; hence, the optimal results were achieved.

Keywords

Otsu Method; Segmentation; Features Extraction; KNN

Full Text:

PDF

References

F. S. Mim, S. M. Galib, M. F. Hasan, and S. A. Jerin, “Automatic detection of mango ripening stages – An application of information technology to botany,” Sci. Hortic. (Amsterdam)., vol. 237, no. April, pp. 156–163, 2018.

Y. Tao and J. Zhou, “Automatic apple recognition based on the fusion of color and 3D feature for robotic fruit picking,” Comput. Electron. Agric., vol. 142, pp. 388–396, 2017.

S. C. Hespeler, H. Nemati, and E. Dehghan-Niri, “Non-destructive thermal imaging for object detection via advanced deep learning for robotic inspection and harvesting of chili peppers,” Artif. Intell. Agric., vol. 5, pp. 102–117, 2021.

R. Sinambela, T. Mandang, I. D. M. Subrata, and W. Hermawan, “Application of an inductive sensor system for identifying ripeness and forecasting harvest time of oil palm,” Sci. Hortic. (Amsterdam)., vol. 265, no. January, p. 109231, 2020.

H. Hamdani, A. Septiarini, A. Sunyoto, S. Suyanto, and F. Utaminingrum, “Detection of oil palm leaf disease based on color histogram and supervised classifier,” Optik (Stuttg)., vol. 245, p. 167753, 2021.

A. Septiarini, H. Hamdani, H. R. Hatta, and A. A. Kasim, “Image-based processing for ripeness classification of oil palm fruit,” in Proceeding - 2019 5th International Conference on Science in Information Technology: Embracing Industry 4.0: Towards Innovation in Cyber Physical System, ICSITech 2019, 2019, pp. 23–26.

A. Mizushima and R. Lu, “An image segmentation method for apple sorting and grading using support vector machine and Otsu’s method,” Comput. Electron. Agric., vol. 94, pp. 29–37, 2013.

N. Behroozi-Khazaei and M. R. Maleki, “A robust algorithm based on color features for grape cluster segmentation,” Comput. Electron. Agric., vol. 142, pp. 41–49, 2017.

P. Ganesh, K. Volle, T. F. Burks, and S. S. Mehta, “Deep Orange: Mask R-CNN based Orange Detection and Segmentation,” IFAC-PapersOnLine, vol. 52, no. 30, pp. 70–75, 2019.

F. Avila, M. Mora, M. Oyarce, A. Zuñiga, and C. Fredes, “A method to construct fruit maturity color scales based on support machines for regression: Application to olives and grape seeds,” J. Food Eng., vol. 162, pp. 9–17, 2015.

A. Septiarini, H. Hamdani, H. R. Hatta, and K. Anwar, “Automatic image segmentation of oil palm fruits by applying the contour-based approach,” Sci. Hortic. (Amsterdam)., vol. 261, p. 108939, 2020.

M. H. Malik, R. Qiu, Y. Gao, M. Zhang, H. Li, and M. Li, “Tomato segmentation and localization method based on RGB-D camera,” Int. Agric. Eng. J., vol. 28, no. 4, pp. 278–287, 2020.

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. September 2018, pp. 52–57, 2019.

E. Hamuda, B. Mc Ginley, M. Glavin, and E. Jones, “Automatic crop detection under field conditions using the HSV colour space and morphological operations,” Comput. Electron. Agric., vol. 133, pp. 97–107, 2017.

K. B. Shaik, P. Ganesan, V. Kalist, B. S. Sathish, and J. M. M. Jenitha, “Comparative Study of Skin Color Detection and Segmentation in HSV and YCbCr Color Space,” Procedia Comput. Sci., vol. 57, pp. 41–48, 2015.

N. Brancati, G. De Pietro, M. Frucci, and L. Gallo, “Human skin detection through correlation rules between the YCb and YCr subspaces based on dynamic color clustering,” Comput. Vis. Image Underst., vol. 155, pp. 33–42, 2017.

A. Septiarini, H. R. Hatta, H. Hamdani, A. Oktavia, A. A. Kasim, and S. Suyanto, “Maturity Grading of Oil Palm Fresh Fruit Bunches Based on a Machine Learning Approach,” in 2020 Fifth International Conference on Informatics and Computing (ICIC), 2020, pp. 1–4.

S. L. S. Abdullah, H. Hambali, and N. Jamil, “Segmentation of natural images using an improved thresholding-based technique,” Procedia Eng., vol. 41, pp. 938–944, 2012.

A. Sanaeifar, A. Bakhshipour, and M. De La Guardia, “Prediction of banana quality indices from color features using support vector regression,” Talanta, vol. 148, pp. 54–61, 2016.

E. Kelman and R. Linker, “Vision-based localisation of mature apples in tree images using convexity,” Biosyst. Eng., vol. 118, pp. 174–185, 2014.

M. K. Monir Rabby, B. Chowdhury, and J. H. Kim, “A Modified Canny Edge Detection Algorithm for Fruit Detection amp; Classification,” in 2018 10th International Conference on Electrical and Computer Engineering (ICECE), 2018, pp. 237–240.

K. Hameed, D. Chai, and A. Rassau, “A comprehensive review of fruit and vegetable classification techniques,” Image Vis. Comput., vol. 80, pp. 24–44, 2018.

Y. Zhang, S. Wang, G. Ji, and P. Phillips, “Fruit classification using computer vision and feedforward neural network,” J. Food Eng., vol. 143, pp. 167–177, 2014.

A. Septiarini, A. Sunyoto, H. Hamdani, A. Kasim, F. Utaminingrum, and H. R. Hatta, “Machine vision for the maturity classification of oil palm fresh fruit bunches based on color and texture features,” Sci. Hortic. (Amsterdam)., vol. 286, p. 110245, 2021.

H. Li, W. S. Lee, and K. Wang, “Identifying blueberry fruit of different growth stages using natural outdoor color images,” Comput. Electron. Agric., vol. 106, pp. 91–101, 2014, [Online]. Available: http://dx.doi.org/10.1016/j.compag.2014.05.015.

K. Tan, W. S. Lee, H. Gan, and S. Wang, “Recognising blueberry fruit of different maturity using histogram oriented gradients and colour features in outdoor scenes,” Biosyst. Eng., vol. 176, pp. 59–72, 2018.

A. Susanto, D. Sinaga, C. A. Sari, E. H. Rachmawanto, and D. R. I. M. Setiadi, “A High Performace of Local Binary Pattern on Classify Javanese Character Classification,” Sci. J. Informatics, vol. 5, no. 1, pp. 8, 2018.

N. K. A. Wirdiani, P. Hridayami, N. P. A. Widiari, K. D. Rismawan, P. B. Candradinata, and I. P. D. Jayantha, “Face Identification Based on K-Nearest Neighbor,” Sci. J. Informatics, vol. 6, no. 2, pp. 150–159, 2019.

X. Deng, Q. Liu, Y. Deng, and S. Mahadevan, “An improved method to construct basic probability assignment based on the confusion matrix for classification problem,” Inf. Sci. (Ny)., vol. 340–341, pp. 250–261, 2016.

Refbacks

  • There are currently no refbacks.




Scientific Journal of Informatics (SJI)
p-ISSN 2407-7658 | e-ISSN 2460-0040
Published By Department of Computer Science Universitas Negeri Semarang
Website: https://journal.unnes.ac.id/nju/index.php/sji
Email: [email protected]

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.