Download PDFOpen PDF in browserCrop Recommendation System using Deep Reinforcement Learning12 pages•Published: December 4, 2026AbstractModern agriculture faces a growing number of difficulties, including unpredictable climatic conditions, degrading soils, and irregular market demands, rendering crop planning techniques obsolete. Traditional rule-based or machine learning models, however, lack the flexibility required to accommodate new patterns of the environment and, therefore, are of diminished utility in the dynamic ecosystem of agriculture. This research addresses this problem through the proposition of a Deep Reinforcement Learning (DRL) framework that uses the Proximal Policy Optimization (PPO) algorithm, providing adaptive and context-aware crop recommendations.The proposed model unifies real-world datasets on seasonal rainfall, temperature, and soil nutrients (Nitrogen, Phosphorus, Potassium), generating a robust and diverse input space. A custom OpenAI Gym environment provides a realistic representation of agricultural scenarios which allows the PPO agent to learn interactively an optimal crop selection policy. Correct predictions are rewarded, while exploration encourages reward feedback through entropy regularization. Model performance is evaluated based on classification metrics: precision, recall, and F1-score, ensuring strong generalization across crop classes. The PPO-based system, achieving a macro-averaged F1-score of 0.96 along with a weighted F1-score of 0.94, surpassed traditional models like XGBoost and Random Forest. These results prove that the model could offer intelligent and data-driven crop recommendations adaptable for varying farming conditions and climate. Keyphrases: agricultural decision making, crop recommendation, custom gym environment, deep reinforcement learning, precision farming, proximal policy optimisation In: Prakash Duraisamy (editor). Proceedings of 16th International Conference on Computing Communication and Networking Technologies, vol 115, pages 186-197.
|

