An Integrated Machine Learning Framework for Citrus Grading and Yield Prediction Using Classifier-Informed Regression
Lydia Dede Obeng1 & Isaac O. Osunmakinde2 Show affiliations
- Department of Engineering, Norfolk State University, Norfolk, Virginia 23504, United States
- Department of Computer Science, Norfolk State University, Norfolk, Virginia 23504, United States
Journal of Computer Science, Volume 22, Issue 4, pp. 1344–1359 · doi.org/10.3844/jcssp.2026.1344.1359
Abstract
Agriculture remains a cornerstone of human sustenance, yet accurate citrus fruit grading and yield predictions remain significant challenges due to visual similarities between varieties such as oranges and grapefruits. This includes the inefficiencies of manual grading. This study presents a new dual-function machine learning system that integrates classification and regression to simultaneously grade citrus fruits and forecast crop yields. This study utilizes a citrus classification dataset comprising 10,000 samples (5,000 oranges and 5,000 grapefruits) characterized by 5 features (diameter, weight, and RGB color values), and a crop yield dataset spanning 1990-2022 from 39 countries across Africa (17 countries, 1,122 records) and the Americas (22 countries, 1,452 records) totaling 2,574 records with environmental and nutrient features. An Artificial Neural Network (ANN) classifier first distinguishes visually similar citrus types, which achieves a grading accuracy of 98.5% with minimal variance. This output then informs a Random Forest (RF) regressor, which predicts yields with a high degree of precision (R² = 0.905). Compared to existing methods, such as CNN-SVM and XGBoost-based approaches that achieve lower accuracy and R² scores, such as 90.6% and 0.853, respectively, the proposed system demonstrates superior performance across both tasks. The integrated ANN-RF pipeline architecture uses classifier predictions as informative features for the regression model. This integrated design aligns with real-world agricultural practices that demand concurrent quality control and forecasting with improved predictive reliability. The system’s modular architecture allows adaptation across different geographies, reinforcing its relevance to precision agriculture and food security.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
Obeng, L. D. & Osunmakinde, I. O. (2026). An Integrated Machine Learning Framework for Citrus Grading and Yield Prediction Using Classifier-Informed Regression. Journal of Computer Science, 22(4), 1344–1359. https://doi.org/10.3844/jcssp.2026.1344.1359
- Licence
- CC BY 4.0
- Issue
- Volume 22, Issue 4
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
