Skip to content
Open access

AgriSphere: A Smart Agriculture Framework Integrating IoT and Artificial Intelligence for Adaptive Crop Selection

Sep 2026 · Open Agriculture Journal · 0 citations · 35 references

Abstract

Rapid climate change, soil degradation, and changing environmental conditions make crop selection difficult for farmers. This study proposes an IoT- and AI-based framework to recommend suitable crops using current soil conditions and future weather forecasts. It also identifies the key environmental factors influencing crop selection. A three-layer architecture was designed with data collection, communication, and data processing modules. Real-time data on nitrogen, phosphorus, potassium, pH, temperature, and humidity were collected through IoT sensors and combined with rainfall and historical agricultural data. A dataset containing multiple environmental features and 22 crop classes was used for model development. Machine learning and deep learning methods, including Random Forest, XGBoost, K-Nearest Neighbours (KNN), Support Vector Machines (SVM), Convolutional Neural Networks (CNN), Decision Trees (DT), Deep Neural Networks (DNN), and Long Short-Term Memory (LSTM), were applied for classification and forecasting. Performance was evaluated using accuracy, F1-Score, MAE, RMSE, and R 2 . Pareto analysis was also performed to identify the most influential parameters. Random Forest and CNN achieved the highest classification accuracy of 99.54% with an F1-Score of 0.995, while XGBoost also performed strongly with 99.32% accuracy. Regression analysis showed that ensemble models outperformed linear models. Pareto analysis revealed that rainfall, humidity, and potassium were the most influential factors in crop recommendation. In a real-time case study, the framework recommended rice as the most suitable crop for the given input conditions. The results show that integrating IoT sensing with AI-based forecasting supports proactive crop planning before sowing and improves sustainable farming decisions under changing climate conditions. The proposed framework effectively combines real-time monitoring, predictive analytics, and intelligent crop recommendation, offering a practical foundation for scalable precision agriculture systems.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.