Image Classification of Red Dragon Fruit Ripeness Levels Using HSV Color Moments and the K-NN Algorithm

Accurately determining the ripeness level of red dragon fruit (Hylocereus polyrhizus) is crucial for ensuring post-harvest quality and distribution efficiency. This study proposes a method for classifying red dragon fruit ripeness using color moment features in the HSV color space combined with the K-Nearest Neighbor (K-NN) algorithm. The dataset consists of 2,881 images of dragon fruit with a resolution of 800×800 pixels, categorized into three classes: ripe (886 images), unripe (1,241 images), and rotten (754 images). All images were captured under natural lighting conditions and underwent pre-processing to enhance color value consistency. Color features were extracted by calculating the mean, standard deviation, and skewness of the Hue, Saturation, and Value channels. The K-NN model was trained and tested on data randomly split in an 80:20 ratio. The testing results showed that the model achieved 100% accuracy in classifying the ripeness levels, demonstrating the effectiveness of this non-destructive method in distinguishing fruit ripeness. This approach holds strong potential to support efficient and consistent decision-making in the agricultural sector.

Authors

Institutions

Publication Details

Journal
Journal of Applied Informatics and Computing
Published
2025-08-08
DOI
https://doi.org/10.30871/jaic.v9i4.10206
Citations
1
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.75
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Image Classification of Red Dragon Fruit Ripeness Levels Using HSV Color Moments and the K-NN Algorithm

M. Fakhriza, N Sembiring
1 citations
Journal of Applied Informatics and Computing
Spectroscopy and Chemometric Analyses
0.75
article

Image Classification of Red Dragon Fruit Ripeness Levels Using HSV Color Moments and the K-NN Algorithm

M. Fakhriza, N Sembiring
article en
1 citations

Abstract

Accurately determining the ripeness level of red dragon fruit (Hylocereus polyrhizus) is crucial for ensuring post-harvest quality and distribution efficiency. This study proposes a method for classifying red dragon fruit ripeness using color moment features in the HSV color space combined with the K-Nearest Neighbor (K-NN) algorithm. The dataset consists of 2,881 images of dragon fruit with a resolution of 800×800 pixels, categorized into three classes: ripe (886 images), unripe (1,241 images), and rotten (754 images). All images were captured under natural lighting conditions and underwent pre-processing to enhance color value consistency. Color features were extracted by calculating the mean, standard deviation, and skewness of the Hue, Saturation, and Value channels. The K-NN model was trained and tested on data randomly split in an 80:20 ratio. The testing results showed that the model achieved 100% accuracy in classifying the ripeness levels, demonstrating the effectiveness of this non-destructive method in distinguishing fruit ripeness. This approach holds strong potential to support efficient and consistent decision-making in the agricultural sector.

Journal of Applied Informatics and ComputingVol. 9(4)
Universitas Islam Negeri Sumatera Utara (ID)
Openalex Percentile: Top 27%
Spectroscopy and Chemometric Analyses
0.75
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.