All published articles of this journal are available on ScienceDirect.
AgriSphere: A Smart Agriculture Framework Integrating IoT and Artificial Intelligence for Adaptive Crop Selection
Abstract
Introduction
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.
Methods
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 R2. Pareto analysis was also performed to identify the most influential parameters.
Results
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.
Discussion
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.
Conclusion
The proposed framework effectively combines real-time monitoring, predictive analytics, and intelligent crop recommendation, offering a practical foundation for scalable precision agriculture systems.

