Comparative Analysis of K-Means and DBSCAN Clustering Techniques for Rice Yield Classification in Nigeria
DOI:
https://doi.org/10.33003/fjs-2026-1013-5670Keywords:
Cluster Analysis, Euclidean Distance, K-Means Clustering, DBSCAN ClusteringAbstract
Rice production plays a vital role in ensuring food security and promoting agricultural development in Nigeria. This study compared the performance of the K-Means and Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithms in classifying rice yields across the 36 states of Nigeria and the Federal Capital Territory (FCT). Rice yield data for 2023 were obtained from the National Agricultural Extension and Research Liaison Services (NAERLS), Ahmadu Bello University, Zaria. K-Means partitioned the data into six clusters with an overall average silhouette width of 0.39, whereas DBSCAN identified three clusters and six noise points. Comparative analysis showed that DBSCAN achieved better clustering performance, with 31 allocated states compared with 29 for K-Means. The clustering patterns revealed regional similarities in rice yields, providing valuable insights for targeted agricultural planning and resource allocation. The findings demonstrate that DBSCAN is more effective than K-Means for clustering heterogeneous rice yield data, offering a reliable framework for evidence based agricultural planning and policy formulation in Nigeria.
References
Alqorni, F., Mahmudy, W. F., & Widodo, A. W. (2021). Application of density-based spatial clustering of applications with noise (DBSCAN) in determining the quality of Keprok orange and Siam orange hybrids at the Citrus and Subtropical Crops Research Institute, Batu City. Journal of Information Technology and Computer Science, 6(1), 1–8. https://doi.org/10.25126/jitecs.202161244
Atsa'am, D. D., Oyelere, S. S., Balogun, O. S., Wario, R., & Blamah, N. V. (2021). K-means cluster analysis of West African cereal species based on nutritional value composition. African Journal of Food, Agriculture, Nutrition and Development, 21(1), 17195–17212.
Diagi, B. E., Edokpa, D. O., & Ajiere, S. I. (2021). Rice and climate change: Its significance towards achieving food security in Nigeria: A review. Journal of Geographical Research, 4(1), 18-27. https://doi.org/10.30564/jgr.v4i1.2588
Fauzan, A., Novianti, A., Ramadhani, R. R. M. A., & Adhiwibawa, M. A. S. (2022). Analysis of hotel spatial clustering in Bali: A density-based spatial clustering of applications with noise (DBSCAN) algorithm approach. EKSAKTA: Journal of Sciences and Data Analysis, 3(1), 25–38. https://doi.org/10.20885/EKSAKTA.vol3.iss1.art4
Gama, E., Mukhtar, U., & Choumbou, R. F. D. (2022). Resource-use efficiency of rice production in Kura Local Government Area of Kano State, Nigeria. FUDMA Journal of Agriculture and Agricultural Technology, 8(1), 131–141. https://doi.org/10.33003/jaat.2022.0801.036
Jaeger, A., & Banks, D. (2023). Cluster analysis: A modern statistical review. WIREs Computational Statistics, 15(3), Article e1597. https://doi.org/10.1002/wics.1597
MacQueen, J. (1967). Some methods for classification and analysis of multivariate observations. In L. M. Le Cam & J. Neyman (Eds.), Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability (Vol. 1, pp. 281–297). University of California Press.
Musa, M. H., Agomuo, J. K., & Dandago, M. A. (2024). Paddy rice (Oryza sativa) production and processing in Nigeria: A review. Dutse Journal of Pure and Applied Sciences, 10(1b), 282-292. https://doi.org/10.4314/dujopas.v10i1b.28
Raj, C. K. (2017). Comparison of K-means, K-medoids, and DBSCAN algorithms using a DNA microarray dataset. International Journal of Computational and Applied Mathematics, 12(1), 344-355.
Sutramiani, N. P., Arthana, I. K. R., Aurelia, S., Fauzi, M., & Surya Darma, I. (2024). The performance comparison of DBSCAN and K-means clustering for MSMEs grouping based on asset value and turnover. Journal of Information Systems Engineering and Business Intelligence, 10(1), 13–24.
Usman, J., Usman, M., Ogbu, O. J., & Azagaku, E. D. (2022). Suitability evaluation of rainfed rice (Oryza sativa) in the floodplain of the Southern Guinea Savannah Zone of Nigeria. FUDMA Journal of Agriculture and Agricultural Technology, 8(1), 339–350. https://doi.org/10.33003/jaat.2022.0801.102
Wibisono, S., Anwar, M. T., Supriyanto, A., & Amin, I. H. A. (2021). Multivariate weather anomaly detection using the DBSCAN clustering algorithm. Journal of Physics: Conference Series, 1869(1), Article 012077.
Downloads
Published
Issue
Section
Categories
License
Copyright (c) 2026 Kabiru Hassan Abduljalal, Nuraddeen Yusuf Ismail, Ibrahim Muhammad Bunza

This work is licensed under a Creative Commons Attribution 4.0 International License.