Skip to content
Research Article Open access CC BY 4.0

An Intelligent Image-Based Approach for Classification of Bangladeshi Pineapple Varieties

Juwel Das Asish, Mahbubun Nahar, S M Abdullah Al Shuaeb, Md. Mizanur Rahman

Asian Journal of Research in Computer Science · pp. 223–232 · Published 20 Jan 2026

10.9734/ajrcos/2026/v19i1815

Abstract

In Bangladesh, pineapple variety identification is still largely dependent on experience and eye-tracking. As a result, there is a possibility of misclassification in marketing, grading, pricing, and agricultural supply chain management. This study proposes a feature-based machine learning approach to automatically identify varieties from pineapple images. In the proposed approach, noise reduction, contrast adjustment, and fruit region (ROI) separation will be performed through image preprocessing. Then, three classes of features—color, texture, and shape—will be extracted to create a composite feature vector, where RGB/HSV-based statistical features will be used for color features, LBP/GLCM-based descriptors for texture features, and contour-based metrics (such as area, perimeter, circularity, and aspect ratio) will be used for shape features. The collected dataset will be divided into training and testing parts, and the varieties will be classified using Decision Tree and k-Nearest Neighbors (KNN) algorithms. Accuracy, precision, recall, and F1-score will be used to measure the effectiveness of the models. The research presents a solution that can be implemented at low computational cost, which can provide effective support for rapid variety identification, quality control, and agricultural decision-making at the field level. The dataset consists of three pineapple varieties with a total of 1410 images after augmentation, divided into 80% training and 20% testing sets. Decision Tree and K-Nearest Neighbor classifiers were employed for classification, where texture-based feature combinations showed the best performance. The proposed low-cost and interpretable framework can support farmers, traders, and agricultural stakeholders in variety identification, quality control, and supply chain decision-making.

Decision Tree (DT) K-Nearest Neighbors (KNN) Machine Learning (ML)

Cited by 0

No indexed citations yet.

Article metrics

Real usage data collected on this platform.

21

Page views

0

PDF downloads

3

Outbound clicks

0

Citations

Views over time

Views by country

Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".

Traffic sources

Referring site, by host.

Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.