Melon fruit color classification is a critical step in assessing fruit ripeness and quality. This study proposes a hybrid deep learning model that integrates Convolutional Neural Network (CNN) and Attention Enhancement (AE) for accurate classification of melon fruit color. The model leverages CNN’s strength in visual feature extraction while enhancing focus on crucial image regions through the attention mechanism. A diverse image dataset of melon fruits was collected under various lighting conditions and angles. Pre-processing steps, including data augmentation, normalization, and image scaling, were applied to improve model generalization. The CNN-Attention hybrid architecture incorporates an attention module into the CNN layers to emphasize significant features. Comparative experiments between the standard CNN and the hybrid model demonstrate that the latter achieves superior classification accuracy, with an average improvement of 5%. Moreover, the hybrid model exhibits better robustness against image noise and lighting variations. These results indicate that incorporating Attention Enhancement can yield a more adaptive and reliable model for melon fruit color classification. The proposed approach is expected to support the development of automated systems for fruit sorting in agriculture and distribution, enhancing speed, accuracy, and efficiency for farmers, traders, and consumers.
Copyrights © 2025