Characterization of Changes in Large Red Chili Peppers Using RGB Images with the Gray Level Co-occurrence Matrix (GLCM) and K-Means Clustering Methods
Abstract
Large red chili pepper (Capsicum annuum L.) deteriorates rapidly during storage, as indicated by changes in color and surface texture. This study aimed to characterize these changes objectively using RGB images, the Gray Level Co-occurrence Matrix (GLCM), and K-Means Clustering. A total of 80 images were acquired over 20 days at two acquisition times and under two treatment conditions using a mini studio with fixed camera position and illumination. Images were resized to 512 × 512 pixels, separated into RGB channels, converted to grayscale, and processed using GLCM at 0°, 45°, 90°, and 135°. Seven features were normalized using z-score and grouped into three clusters. The mean Red intensity decreased from 41.33 to 24.43 or 40.89%, while Green and Blue decreased by 28.58% and 29.36%, respectively. Contrast increased by 111.32%, correlation decreased by 2.82%, energy increased by 24.87%, and homogeneity increased by 5.53%. K-Means assigned 32 observations to Cluster 1, 17 to Cluster 2, and 31 to Cluster 3, interpreted as beginning to change, relatively good, and wilting or damaged conditions. The findings show that combined color and texture features represent storage-related changes; however, cluster interpretation still requires validation using physical quality measurements.
Full text article
Authors
Copyright (c) 2026 Irsani Taba Leki, Elvianto Dwi Hartono

This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright is retained by the authors.
Published articles may be used under the Creative Commons Attribution 4.0 International License.
You are free to:
- Share — copy and redistribute the material in any medium or format;
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.