Smart Farming for Groundnut Yield Prediction Using IoT and Machine Learning
Keywords:
IoT, Machine learning, Parameters, Model performance, AgricultureAbstract
The integration of IoT in agriculture has revolutionized crop production by enhancing productivity, quality, and efficiency while reducing labor costs and boosting farmer income. IoT sensors provide precise data on environmental, soil, and plant factors, critical for predicting crop yields. In this study, groundnut crops were cultivated in 20 pots and monitored using IoT devices over 120 days, generating 480 data instances. Parameters like temperature, soil moisture, and nutrients (nitrogen, phosphorus, potassium) were measured to track growth metrics. Machine learning models Multi-Layer Perceptron (MLP), K-Nearest Neighbors (KNN), and Random Forest (RF) were developed using bagging techniques to predict yield and model growth rates based on NPK levels. Model performance was evaluated using R-squared, MAE, RMSE, and RMSLE metrics. For yield prediction, KNN outperformed RF and MLP with the highest R-squared (0.87), lowest MAE (2.1033), and lowest RMSE (2.0119), while MLP performed worst. Conversely, in modeling growth rates influenced by NPK, MLP excelled with the highest R-squared (0.52), lowest MAE (1.3499), MSE (2.7220), RMSE (1.6498), and an exceptionally low RMSLE (0.0024). Overall, KNN was the top performer for yield prediction, followed by RF and MLP, whereas MLP was superior for growth rate predictions. This highlights the potential of IoT and machine learning in advancing agricultural intelligence.
Published
How to Cite
Issue
Section
Copyright (c) 2025 Journal of Science Research and Reviews

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- NonCommercial — You may not use the material for commercial purposes.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
How to Cite
Most read articles by the same author(s)
- Liman A. Doko, Eli Adama Jiya, Oyenike Mary Olanrewaju, Real-Time Infection Detection System in Broiler Farm using MobileNetSSD Model , Journal of Science Research and Reviews: Vol. 1 No. 1 (2024): JOSRAR Vol. 1 No. 1 (September - October)