Real-time soil fertility analysis, crop prediction, and insights using machine learning and deep learning algorithms
Kanimozhi Gunasekaran, Karmel Arockiasamy, Pemmareddy Sreevardhan
Vellore Institute of Technology University
Key points
From the paper's conclusion- The deep learning models further enhanced predictive capabilities for crop selection, with MLP and LSTM achieving high accuracy, recall, and F1-scores while maintaining consistent precision.
Abstract
Sustainable agricultural management relies heavily on accurate soil fertility prediction. Traditional assessment techniques are often labour-intensive, time-consuming, and may involve hazardous chemicals. Recent advances in machine learning (ML) and artificial intelligence (AI) offer promising alternatives by integrating soil metrics, meteorological data, and other environmental factors for precise and efficient fertility estimation. This study investigates the application of ML and deep learning algorithms for soil fertility prediction. A hardware prototype incorporating sensors and a microcontroller was developed to capture soil parameters, including pH, temperature, humidity, moisture content, NPK (nitrogen, phosphorus, potassium), carbon content, and organic matter, alongside weather and climatic conditions. Real-time sensor data were compared against predictions from ML models. Laboratory soil test results were used as ground truth for validation. Ensemble classifiers (Random Forest, Extra Trees) and deep learning models (Multilayer Perceptron, Long Short-Term Memory networks) were evaluated using accuracy, F1-score, recall, and precision metrics. The Random Forest algorithm achieved the highest prediction accuracy of approximately 92%, with Extra Trees and other ensemble methods also demonstrating strong performance. The deep learning models further enhanced predictive capabilities for crop selection, with MLP and LSTM achieving high accuracy, recall, and F1-scores while maintaining consistent precision. The hardware prototype’s real-time measurements closely aligned with laboratory results, confirming the reliability of the system. The findings highlight the potential of ML and AI-based approaches in advancing soil fertility prediction and crop recommendation systems. By combining real-time sensor data with predictive models, the proposed system enables rapid, reliable, and scalable soil health assessment. This integrated approach empowers farmers to make data-driven decisions, optimize soil fertility, and improve sustainable agricultural practices.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Integrating machine learning models with ground sensors to enhance soil moisture prediction in agroecosystems of TexasComputers and Electronics in Agriculture · 2025
- Agentic AI-driven autonomous decision support system for smart agricultureScientific Reports · 2026
- MACHINE LEARNING-BASED CROP RECOMMENDATION SYSTEM INTEGRATING SOIL PROPERTIES AND WEATHER CONDITIONS WITH IOT-DRIVEN DATA COLLECTIONAgrociencia · 2026
- Benefits and Challenges of Artificial Intelligence in Soil Science—A ReviewLand · 2026
- Artificial intelligence in soil microbiome-driven agriculture: from practical limits to a translational roadmapFrontiers in Microbiomes · 2026
- Machine learning-driven IoT framework for soil moisture prediction in precision irrigation systemsEngineering Research Express · 2026