APPLICATION OF K-MEANS AND K-MEDOID CLUSTERING TECHNIQUES ON RICE YIELDS IN NIGERIA
Abstract
This paper explores the application of two clustering algorithms, K-means and K-medoid to classify rice yields across 36 Nigerian states and the Federal Capital Territory (FCT). The study aims to identify natural groupings within the data to classify the states base on their similarity in the rice yields. The findings reveal that the K-means and K-medoid clustering effectively grouped rice and maize yields into six clusters each. The silhouette width indicated that K-medoid out performed K-means in cluster quality with an average silhouette width of 0.42 and for rice compared to K-means with silhouette width of 0.39 and. The analysis highlighted significant clusters, such as clusters three and five for rice using K-means and K-medoid which represent regions with similar average crop yields. These insights underline the importance of targeted governmental interventions to improve agricultural productivity by focusing on areas with average yields. The results also suggest that strategic investments in infrastructure, agricultural inputs, and policy reforms are crucial for boosting productivity and reducing poverty. Overall, the paper concludes that K-medoid is the superior clustering technique, delivering the highest silhouette width and the most accurate classifications for both crops, with the fewest misclassifications. This research provides a valuable framework for regional agricultural planning and resource allocation in Nigeria. The paper recommends that the government should pay attention on allocating the scarce resources to the consistency clusters along with policy review in favor of smallholder farmers through access and timely for all important farm inputs in future.
References
Atsaam, D. D., Oyelere, S. S., Balogun, O. S., Wario, R., & Blamah, N. V. (2021). K-means Cluster Analysis of the West African species of Cereals Based on Nutritional Value Composition. African Journal of Food, Agriculture, Nutrition and Development, 21(1), 17195-17212. DOI: https://doi.org/10.18697/ajfand.96.19775
Harikumar, S., & Surya, P. V. (2015). K-medoid Clustering for Heterogeneous Datasets. Procedia Computer Science, 70, 226-237. DOI: https://doi.org/10.1016/j.procs.2015.10.077
Hayatu, I. H., Mohammed, A., Isma, B. A., & Ali, S. Y. (2020). K-means clustering algorithm based classification of soil fertility in North West Nigeria. FUDMA Journal of Sciences, 4(2), 780-787. DOI: https://doi.org/10.33003/fjs-2020-0402-363
Kaufmann, & Rousseeuw. (1987). Clustering by Means of Medoids. In Proc. Statistical Data Analysis Based on the L1 Norm Conference, Neuchatel, 1987 (pp. 405-416).
MacQueen, J. (1967). Some Methods for Classification and Analysis of Multivariate Observations. In Proceedings of the fifth Berkeley Symposium on Mathematical Statistics and Probability, 1(14), 281-297.
Mbukwa, J. N., & Anjaneyulu, G. (2016). Application of K-means and Partitioning Around Mediods (PAM) Clustering Techniques on Maize and Beans Yield in Tanzania. Bulletin of Mathematics and Statistics Research, 4(4), 146-158.
Supriyatna, A., Carolina, I., Widiati, W., & Nuraeni, C. (2020). Rice productivity analysis by Province Using K-means Cluster Algorithm. In IOP Conference Series: Materials Science and Engineering, 771(1), 12-25. DOI: https://doi.org/10.1088/1757-899X/771/1/012025
Surya, P. & Laurence, A. I. (2019). Performance Analysis of K-Means and K-Medoid Clustering Algorithms Using Agriculture Dataset. Journal of Emerging Technologies and Iinnovative research, 6(1), 1-7.
Ukekwe, E. C., Ogbonna, G. U. G., Adegoke, F. O., Okereke, G. E., & Asogwa, C. N. (2023). Clustering Nigeria's IDP Camps for Effective Budgeting and Re-Settlement Policies Using an Optimized K-Means Approach. African Conflict & Peacebuilding Review, 13(2), 60-85. DOI: https://doi.org/10.2979/africonfpeacrevi.13.2.03
Wierzcho, S. T., & Kopotek, M. A. (2018). Modern Algorithms of Cluster Analysis (Vol. 34). Springer International Publishing. DOI: https://doi.org/10.1007/978-3-319-69308-8
Copyright (c) 2025 FUDMA JOURNAL OF SCIENCES

This work is licensed under a Creative Commons Attribution 4.0 International License.
FUDMA Journal of Sciences