Skip to content
Conference Open access

BERT-Based Agricultural Crop Prediction System Using Soil and Weather Parameters with Interactive Streamlit Deployment

Sep 2026 · Engineering & Technology · 0 citations

TL;DR

This research is a BERT-based predictive agricultural crop model that uses contextual language representations to predict complex relationships among soil nutrients and weather conditions and illustrates how transformer-based architecture can be used in precision agriculture and decision support systems.

Abstract

The proper choice of crops is a necessary aspect of enhancing agricultural performance, effective use of resources, and sustainable food production in changing climatic conditions. Conventional recommendation systems are based mostly on statistical and shallow machine learning models, in which soil and climatic parameters are used as independent variables, thereby restricting their capacity to form contextual associations among agronomic factors. The research is a BERT-based predictive agricultural crop model that uses contextual language representations to predict complex relationships among soil nutrients and weather conditions. Numerical agricultural data, such as Nitrogen (N), Phosphorus (P), Potassium (K), soil pH, temperature, humidity, rainfall, and soil type, are transformed into text-structured descriptors and input into an already-trained Bidirectional Encoder Representations from Transformers (BERT) model. The contextual embeddings obtained with the frozen BERT encoder are sent to a light model neural classification head of fully connected layers, dropout regularization, and LogSoftmax activation to make predictions that will choose the best crop among 22 classes. The model is coded in PyTorch and deployed as an interactive Streamlit application, enabling real-time user interaction and crop suggestions. It is experimentally shown that contextual embedding-based modeling enhances classification strength and is able to contribute to interpretable agricultural decision-making. The system illustrates how transformer-based architecture can be used in precision agriculture and decision support systems.

Read PDF

Similar papers

Open access Aug 2026

Prediction of agricultural production based on multivariate data with feature aware machine learning models

A feature-aware regression-based machine learning framework, which can be used for the prediction of agricultural yield based on a collection of multivariable environmental and agronomic data, and found strong coherence between feature importance layout and SHAP values and agronomic interpretation.

Raj Kumar, P. K. Singh, Rohit Kumar Tiwari · 0 citations
Open access Aug 2026

ML Framework for Profitable Crop Yield Based on Climatic and Economic Factors

Agricultural planning is inherently uncertain: soil composition varies across seasons, and market prices for produce are rarely predictable at the time planting decisions are made. Farmers routinely face this uncertainty with limited analytical support, which motivates the development of the Agricultural Decision Suppo...

Kingshuk Ghosh, Sahil Singh, Dr. Usha G · 0 citations
Conference Open access 2026

Feature Engineering and Crop Yield Prediction using Agricultural Time-Series Data

The increasing availability of agricultural timeseries data enabled more accurate and data-driven crop yield prediction. However, raw meteorological, soil, and vegetation datasets often fail to capture complex temporal dependencies essential for robust forecasting. This study proposes a structured feature engineering...

K. Lata, A. Kumar, P. Sharma et al. · 0 citations
Open access Sep 2026

Ai Based Smart Crop Recommendation and Yield Prediction Using Ml and Weather Analytics

The proposed framework provides an intelligent, scalable, and data-driven decision support system that can assist farmers, agricultural experts, and policymakers in improving productivity, optimizing resource utilization, and promoting sustainable farming practices under varying climatic conditions.

Choudhuri Saswat Pattnaik, Rojalini Mohanty, Bijaya Laxmi Hazra et al. · 0 citations
Open access 2026

Optimizing Crop Yield Through Data-Driven Decision Making: A Comprehensive Approach to Crop Selection Using Machine Learning

The crop cultivation generally depends on the environmental circumstances and the production of crops plays a major part to meet the increasing requirement of food. Therefore, attaining improved efficiency and sustainability is considered highly essential in farming, due to this reason, a novel Crop Recommendation Syst...

C. Pandi, M. Vedaraj · 0 citations

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