arXiv:2609.10524cs.CVSep 2026

Manuscript Offprint

arXiv:2609.10524

Precision in Rice Variety Classification using Stacking-Based Ensemble Learning

Md. Masudul Islam, Galib Muhammad Shahriar Himel, Md. Golam Moazzam, Mohammad Shorif Uddin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Md. Masudul Islam ¹ (Corresponding Author)

Department of Computer Science and Engineering, Jahangirnagar University, Dhaka, Bangladesh

masudulislam11@gmail.com

ORCID: 0000-0001-7643-5420

Address: House-36, Road-18, Rupnagar Abashik, Pallabi, Dhaka-1216

Contact No.: +8801671118854

Galib Muhammad Shahriar Himel ²

Department of Physics, Jahangirnagar University, Dhaka, Bangladesh

galib.muhammad.shahriar@gmail.com

ORCID: 0000-0002-2257-6751

Md. Golam Moazzam ³

Department of Computer Science and Engineering, Jahangirnagar University, Dhaka, Bangladesh

khokan@juniv.edu

Mohammad Shorif Uddin ⁴

Department of Computer Science and Engineering, Jahangirnagar University, Dhaka, Bangladesh

shorifuddin@juniv.edu

ORCID: 0000-0002-7184-2809

Abstract

Rice, a staple food for a significant portion of the global population, exhibits remarkable diversity in its varieties, presenting substantial challenges for accurate identification by consumers, traders, and farmers. This complexity often facilitates fraudulent practices, such as the unauthorized mixing of rice types, which undermines quality and trust in the supply chain. Despite its critical importance, existing research falls short of providing robust and efficient methods for precise rice variety classification based on external characteristics like color, size, and texture. To address this gap, our study introduces a comprehensive rice variety identification framework designed to enhance transparency and quality assurance. We developed a stacked ensemble model tailored for rice variety classification and curated a comprehensive dataset comprising 20 rice varieties, each distinguished by unique visual attributes. The proposed approach achieved an unprecedented classification accuracy of 100%. Furthermore, we integrated our model into a mobile application, enabling even novice users to effortlessly identify rice varieties using grain images from a smartphone camera. These findings underscore the transformative potential of advanced machine learning techniques in mitigating fraudulent practices and ensuring stringent rice quality control. Our work holds significant implications for agricultural stakeholders, paving the way for automated crop identification systems and advancing precision agriculture practices.

Keywords: Rice Variety, Ensemble Method, Image Classification, Computer Vision.

Page 1 of 28

1. Introduction

Computer vision, a branch of artificial intelligence, enables computers to interpret visual data by analyzing digital images from cameras, high-resolution videos, and deep-learning models. This technological capability allows for precise identification and localization of objects, empowering computers to respond effectively to visual stimuli. It plays a pivotal role in tasks such as data classification. Advances in computer vision and artificial intelligence have catalyzed innovative research, particularly in automated rice variety identification. Rice, a staple food for approximately 80% of the population in Southeast Asia, holds significant cultural and economic importance as one of the first cultivated crops and a widely consumed commodity. Asia alone accounts for 90% of global rice cultivation, with rice serving as a staple for more than 60% of the world's population, emphasizing the growing need for automated variety identification methods in rice production (Bandumula, 2017). Globally, rice is cultivated in about 40,000 varieties, encompassing diverse categories such as short, medium, and long grains and brown, milled, and parboiled rice (Chauhan, 2017). According to FAOSTAT, global rice production reached 776.5 million metric tons in 2022 (FAO, 2023). Asian rice, scientifically known as Oryza sativa, includes numerous ecotypes or cultivars adapted to a wide range of environmental conditions and is grown on every continent except Antarctica. Notably, Bangladesh has emerged as a significant contributor to research on the genetic diversity and cultivation methods of rice varieties. Efforts to enhance rice crops have spanned over a century, driven by the diverse shapes, sizes, textures, and colors of rice grain kernels (Wu et al., 2012). Advances in computer vision have enabled the detection of diseases or damage in rice seeds through processes such as image acquisition, preprocessing, segmentation, and interpretation. These techniques facilitate seed classification and quantification. However, both consumers and farmers often encounter difficulties in identifying rice varieties and assessing quality, leaving them vulnerable to fraud from dishonest sellers. To address these issues, AI-based expert systems have been developed to identify rice varieties. The automation of rice variety identification presents notable challenges (Komal et al., 2023), largely due to the extensive diversity of strains cultivated worldwide. Each geographical region introduces unique complexities, with inherent impurities in rice grains further complicating the identification process. Research on automating rice variety identification remains limited. Traditional methods used to evaluate rice characteristics, essential for ensuring quality and variety, are not only time-consuming but also expensive and reliant on potentially harmful reagents. There is a critical need to transition from these conventional approaches to faster, automated methods for determining rice varieties. Such innovative strategies have the potential to revolutionize rice quality assessment by making it more efficient, cost-effective, and environmentally sustainable. This study aims to enhance rice variety classification using ensemble learning on a self-curated comprehensive rice grain image dataset. The major contributions of this study are:

i. Developed a comprehensive and well-structured dataset consisting of 20 distinct rice varieties.

ii. Extracted diverse deep features from the image dataset using hyperparameter-optimized deep learning models.

iii. Applied a stacking-based ensemble approach to the best-performing baseline models to improve classification accuracy.

Page 2 of 28 iv. Developed a mobile application by integrating our machine learning model to identify rice varieties from grain images using a smartphone.

This article is organized as follows: in the first section, an introductory passage is presented. In the second section, a summarized literature review highlighting the pros and cons of related studies is provided. The third section presents a graphical depiction of the system architecture. In the fourth section, we describe the dataset, proposed methodology, and evaluation metrics. The fifth section discusses the experimental results, model deployment in the app, and various related aspects. In the sixth section, a comparative study is performed. Finally, the last section concludes the study and outlines future directions.

References (46)