Classification of Watermelon Ripeness Levels Using HSV Color Space Transformation and K-Nearest Neighbor Method

Ayu Mahriza Agustin Efendi, Sriani Sriani, Muhammad Siddik Hasibuan
{"title":"Classification of Watermelon Ripeness Levels Using HSV Color Space Transformation and K-Nearest Neighbor Method","authors":"Ayu Mahriza Agustin Efendi, Sriani Sriani, Muhammad Siddik Hasibuan","doi":"10.47709/cnahpc.v6i3.3999","DOIUrl":null,"url":null,"abstract":"Watermelons had high appeal due to their sweet taste, refreshing nature, and numerous benefits. However, consumers often faced difficulties in selecting suitable fruit because of the subtle differences between fully ripe and half-ripe watermelons. One important indicator of a watermelon’s ripeness was the yellowish pattern on its skin. In this study, the proposed use of digital image processing methods, specifically the HSV Color Space Transformation, was aimed at extracting watermelon images and employing the K-Nearest Neighbor (K-NN) method to classify them into two categories: \"Ripe\" and \"Half-Ripe.\" HSV (Hue Saturation Value) was a color extraction method used to convert colors from the RGB model. The Hue component indicated the type of color, Saturation measured the purity of the color, and Value measured the brightness of the color on a scale from 0 to 100%. In this research, the K-Nearest Neighbor (K-NN) method was applied to classify watermelon images based on the extraction of skin color features. This method compared a new image (test data) with training images to determine classification based on the nearest distance with a parameter of k=3. The data used consisted of 120 images, with 92 images used as training data and 28 images as test data. Experimental results showed an accuracy of 89%, with 25 images correctly classified and 3 images misclassified.","PeriodicalId":15605,"journal":{"name":"Journal Of Computer Networks, Architecture and High Performance Computing","volume":"335 8","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal Of Computer Networks, Architecture and High Performance Computing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.47709/cnahpc.v6i3.3999","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Watermelons had high appeal due to their sweet taste, refreshing nature, and numerous benefits. However, consumers often faced difficulties in selecting suitable fruit because of the subtle differences between fully ripe and half-ripe watermelons. One important indicator of a watermelon’s ripeness was the yellowish pattern on its skin. In this study, the proposed use of digital image processing methods, specifically the HSV Color Space Transformation, was aimed at extracting watermelon images and employing the K-Nearest Neighbor (K-NN) method to classify them into two categories: "Ripe" and "Half-Ripe." HSV (Hue Saturation Value) was a color extraction method used to convert colors from the RGB model. The Hue component indicated the type of color, Saturation measured the purity of the color, and Value measured the brightness of the color on a scale from 0 to 100%. In this research, the K-Nearest Neighbor (K-NN) method was applied to classify watermelon images based on the extraction of skin color features. This method compared a new image (test data) with training images to determine classification based on the nearest distance with a parameter of k=3. The data used consisted of 120 images, with 92 images used as training data and 28 images as test data. Experimental results showed an accuracy of 89%, with 25 images correctly classified and 3 images misclassified.
利用 HSV 色彩空间变换和 K 近邻法对西瓜成熟度进行分类
西瓜味道甜美,清爽宜人,而且好处多多,因此极具吸引力。然而,由于完全成熟的西瓜和半生不熟的西瓜之间存在细微差别,消费者在挑选合适的水果时常常遇到困难。西瓜成熟度的一个重要指标是其表皮上的淡黄色花纹。在这项研究中,建议使用数字图像处理方法,特别是 HSV 色彩空间转换,来提取西瓜图像,并采用 K-Nearest Neighbor (K-NN) 方法将其分为两类:"成熟 "和 "半熟"。HSV(色相饱和度值)是一种颜色提取方法,用于从 RGB 模型中转换颜色。色调分量表示颜色的类型,饱和度衡量颜色的纯度,而数值则衡量颜色的亮度,范围从 0 到 100%。在这项研究中,根据肤色特征的提取,采用 K-Nearest Neighbor (K-NN) 方法对西瓜图像进行分类。该方法将新图像(测试数据)与训练图像进行比较,根据最近距离确定分类,参数为 k=3。使用的数据包括 120 张图像,其中 92 张作为训练数据,28 张作为测试数据。实验结果显示,准确率为 89%,其中 25 幅图像被正确分类,3 幅图像被错误分类。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信