论文信息

Gunashekar B. / Saiteja G. / Maniteja K.

Zenodo (CERN European Organization for Nuclear Research)

论文解读

AI 辅助整理
方法
随机森林、XGBoost、FastAPI、React PWA、OpenWeath
发现
各模块准确率约88-95%,API、认证、翻译与聊天机器人测试均通过。
机会点
可引入真实田间时序数据与可解释性,验证模型跨区域跨季节泛化能力。

论文摘要

农业决策日益受到气候条件变化、土壤肥力以及及时技术指导可得性的影响。本小型项目提出了一套人工智能驱动的农业智能系统,将作物推荐、土壤肥力评估、天气风险预测、产量估算、肥料推荐和多语言对话支持集成于一个网络平台。该系统接受土壤和气候参数,如氮、磷、钾、pH值、温度、湿度、降雨量、地点、作物和季节。所提供的实现采用随机森林(Random Forest)模型进行作物推荐,采用XGBoost进行天气风险预测,采用随机森林回归器进行产量估算,采用随机森林分类器进行肥料推荐,并采用基于确定性规则的土壤肥力模块,具备与模型无关的回退逻辑。FastAPI后端执行验证、模型加载、链式推理、天气集成、身份认证和响应格式化,而基于React的渐进式网络应用提供用户界面。OpenWeatherMap提供当前天气上下文,Google Gemini AI支持多语言农业解释,并具备离线FAQ和基于规则的回退机制。所报告的模块性能约为88-95%,且在所提供的项目材料中,具有代表性的API、回退、身份认证、翻译、速率限制和聊天机器人测试均通过。该项目展示了如何将机器学习、网络开发、外部API和多语言AI相结合,以提供实用、可及且数据驱动的农业决策支持。关键词:机器学习、农业、作物推荐、土壤肥力、天气风险、产量预测、肥料推荐、FastAPI、React、XGBoost、Google Gemini AI、精准农业。

全文

Zenodo (CERN European Organization for Nuclear Research)

Agricultural Intelligence System | Research manuscript
1
AI-Driven Crop Recommendation and Growth Prediction
System Using Soil Fertility and Climate Intelligence

Abstract
Agricultural advisory applications must connect soil and climate information with usable recommendations
while accommodating language preferences and interruptions in external services. This paper presents an
integrated agricultural intelligence prototype combining crop recommendation, soil-fertility assessment,
weather-risk classification, yield estimation, fertilizer recommendation, and multilingual conversational
assistance. A React-based Progressive Web Application communicates with a FastAPI backend that
coordinates Random Forest classifiers, an XGBoost classifier, a Random Forest regressor, and a deterministic
soil-rule engine. OpenWeatherMap supplies current weather context, while Google Gemini supports
explanations grounded in the available farm context. Model and service failures are handled through profile,
rule, formula, and FAQ fallbacks. The underlying project report documents an illustrative unified response
and 18 representative test cases reported as passing. It also reports module-performance percentages, but does
not provide the evaluation artifacts necessary to independently reproduce them. Accordingly, the contribution
is an integrated system design and documented prototype demonstration rather than a validated claim of
predictive superiority. The paper identifies the data-provenance, evaluation, calibration, localization, and
security work required for reproducible assessment and field deployment.
Keywords: precision agriculture; crop recommendation; soil fertility; climate intelligence; yield estimation; machine
learning; multilingual advisory; fault tolerance.

  1. Introduction
    Crop selection and input planning involve soil nutrients, acidity, rainfall, temperature, humidity, and regional
    cultivation practices. An application that returns only a crop label leaves additional questions about nutrient
    status, weather conditions, yield, and fertilizer use unresolved. Connecting these outputs in a common
    interface is therefore a useful software-engineering objective.
    The prototype considered here uses one coordinated workflow to collect farm inputs, run specialized advisory
    services, and present structured results with multilingual follow-up assistance. Its central contribution is the
    integration of five agricultural modules, context-aware conversation, and explicit fallback behavior. This
    manuscript is adapted from the authors' October 2026 mini-project report [1]; it does not introduce new field
    experiments or independently rerun the reported evaluation.
    B. Gunashekar, G. Sai Teja, K. Mani Teja
    Mrs. M. Anusha Sri, Assistant Professor
    Department of Computer Science and Engineering (Data Science) Geethanjali College of Engineering and
    Technology, Telangana, India
    Research manuscript | October 2026

Agricultural Intelligence System | Research manuscript
2
2. Related Work and Contribution
Random Forests combine randomized decision trees and support classification and regression [2]. This
provides an established algorithmic basis for several modules in the prototype; the use of a standard ensemble
is not claimed as a new learning method. Chen and Guestrin describe XGBoost as a scalable tree-boosting
system [3], which supplies the model family used for weather-risk classification.
Jeong et al. study Random Forest regression for global and regional crop-yield prediction [4]. Their work
supports the relevance of tree-based regression to agricultural modeling, but its datasets and findings do not
validate the present application. The prototype uses scikit-learn components for model and preprocessing
operations [5]. Each deployment still requires task-specific validation.
The contribution of this project is a modular advisory architecture that passes information between crop, soil,
weather, yield, fertilizer, and conversational services. Unlike a model-only demonstration, it also addresses
request validation, service availability, and multilingual presentation. No claim is made that this is the first
integrated agricultural platform, that it outperforms existing products, or that combining modules alone
improves crop yields.
3. System Architecture
React / PWA interface
Farm inputs, language and result display
FastAPI orchestration
Validation, model status and unified response
Prediction services
Crop, soil, risk, yield, fertilizer
External services
Weather API and Gemini
Fallback services
Rules, profiles and FAQ
Figure 1. Logical architecture of the documented prototype. Fallbacks preserve response availability when a trained artifact
or external service is unavailable.
The React/PWA interface collects soil, climate, location, crop, season, and language information and displays
recommendation cards and a consolidated report. The FastAPI layer validates requests, invokes prediction
services, integrates external responses, and formats JSON outputs. A singleton ModelManager loads
serialized artifacts at process startup, avoiding repeated per-request disk loading in the documented design
[1].
The unified endpoint coordinates the advisory stages and supplies their outputs as context for follow-up
chatbot explanations. Individual endpoints expose the same capabilities separately. System-status information
identifies model availability. This separation allows a prediction service to be replaced without rewriting the
complete interface, although compatibility still depends on consistent feature schemas and response contracts.
Current weather observations and the weather-risk classifier have different roles. The former provides live
context; the latter assigns a project-defined risk category. Similarly, a conversational explanation conveys
structured results but does not constitute an independently validated prediction.

Agricultural Intelligence System | Research manuscript
3
4. Data and Methods
4.1 Data inventory and preprocessing
Table 1 lists record counts referenced by the source report, rather than counts independently recomputed for a
frozen dataset release. The report does not establish complete provenance, geographic coverage, collection
periods, label-generation procedures, or redistribution licenses. These omissions limit reproducibility and
prevent conclusions about regional representativeness [1].
Table 1. Dataset inventory reported in the source project.
Task
Reported records
Inputs or target
Crop recommendation
2,202
N, P, K, temperature, humidity, pH, rainfall; crop label
Soil reference
101
NPK and fertility reference; runtime method is rule-based
Weather risk
91,322
Historical weather; month and temperature used in shown inference
Yield estimation
2,598
Crop, season, state, fertilizer/rainfall context; yield or production
Fertilizer advisory
Not specified
Soil type, crop type, NPK; fertilizer label
Pydantic schemas check required fields and types before inference. The documented crop path applies a saved
scaler, while categorical yield inputs are aligned to saved training columns. Feature order and encoding must
match training-time artifacts. Unit definitions, missing-data treatment, duplicate removal, target construction,
training partitions, and random seeds should be recorded explicitly in a reproducible release; they are not fully
specified in the source report.
4.2 Crop and soil services
The crop classifier consumes x = [N, P, K, temperature, humidity, pH, rainfall] and returns a recommended
crop. When its trained artifact is unavailable, a profile-matching fallback uses weights of 0.1 for each nutrient
and pH, and 0.2 for temperature, humidity, and rainfall. These documented weights describe heuristic
matching rather than a calibrated probability model [1].
Soil fertility is implemented as a deterministic rule engine. It computes m = (N + P + K)/3 and maps m to
Low, Medium, or High using configured thresholds; nutrient-specific status is also returned. The threshold
values and nutrient measurement units must accompany a release. Averaging three nutrient measurements is a
prototype heuristic and requires agronomic validation before being interpreted as a general soil-health index.
4.3 Weather-risk service
The shown XGBoost inference receives month and temperature and returns Flood, Drought, or Normal. Its
fallback labels months June-September with temperature above 25 degrees Celsius as Flood, and March-May
above 35 degrees Celsius as Drought; other inputs return Normal. These seasonal rules preserve a response
path. They are not event forecasts and do not incorporate hydrology, accumulated precipitation, or
crop-specific hazard thresholds.

Agricultural Intelligence System | Research manuscript
4
4.4 Yield, fertilizer, and conversational services
The trained yield service uses a Random Forest regressor with crop and contextual inputs. A formula-based
fallback adjusts a base yield using fertilizer input, rainfall response, and a crop multiplier. The formula is a
demonstration mechanism rather than a fitted uncertainty model. Yield units and conversions must be
consistent with the training target, especially when datasets contain production totals instead of yield per unit
area.
The fertilizer service uses a Random Forest classifier and a label encoder when trained artifacts are available.
The documented fallback checks nutrient deficiencies in sequence: N below 14 yields Urea; otherwise P
below 10 yields DAP; otherwise K below 4 yields 20-20-20; other cases yield 17-17-17 [1]. The thresholds
describe the implementation and must not be transferred to field conditions without matching units, soil-test
methods, and expert review. A fertilizer category alone does not establish an appropriate application rate.
Gemini-based conversation receives farm and prediction context so that follow-up responses can refer to the
structured advisory outputs. FAQ and intent-based responses provide fallback assistance. Multilingual support
is documented, but the report contains no language-specific correctness assessment or farmer usability study.
External-service fallbacks run on the backend; their availability does not establish that every prediction can
execute locally in an offline browser.
5. Documented Demonstration and Results
5.1 End-to-end example
The report provides one illustrative request with N=90, P=42, K=43, temperature=26.5 degrees Celsius,
humidity=71.2%, pH=6.5, rainfall=203.4, month=7, Loamy soil, Andhra Pradesh, and Telugu as the
requested language. The rainfall aggregation period and nutrient units are not established in this example.
Table 2 reproduces selected outputs as documented, without treating them as observed farm outcomes [1].
Table 2. Selected outputs from the documented unified example.
Output
Documented value
Interpretation
Crop
Rice; confidence 0.94
Illustrative response; calibration not supplied
Soil / weather
Medium / Flood
Rule or model context must be identified
Yield
5.8 tonnes/hectare
Prediction, not measured harvest yield
Fertilizer
Urea; 80 kg/hectare
Example advisory, not a validated prescription
Language
Telugu
Requested presentation language
The example shows the response structure and the propagation of farm context across services. It does not
establish predictive accuracy, economic benefit, or fertilizer efficacy. The source report also lists market
value and an overall score; without documented valuation and scoring procedures, these fields are not used as
research outcome measures.

Agricultural Intelligence System | Research manuscript
5
5.2 Reported performance and functional testing
Table 3. Source-reported performance; values were not independently recomputed.
Module
Method
Reported
value
Evidence limitation
Crop
Random Forest classifier
Approx. 95%
Split, predictions and class-wise metrics absent
Soil
Deterministic rules
Approx. 92%
Reference labels and agreement protocol absent
Weather
XGBoost classifier
Approx. 88%
Event labels and validation design not established
Yield
Random Forest regressor
Approx. 90%
Percentage metric undefined; MAE/RMSE absent
Fertilizer
Random Forest classifier
Approx. 90%
Dataset size and evaluation details absent
These percentages are retained only as attributed project-report values [1]. They are not directly comparable:
the tasks include classification, regression, and rule-based assessment. In particular, the yield percentage
cannot be interpreted as classification accuracy or R-squared without a metric definition. No statistically
supported ranking, improvement over baselines, or claim of generalization follows from Table 3.
The report lists 18 representative test cases as passing. Coverage includes normal prediction requests,
low/high soil conditions, flood/drought examples, unified responses, missing-field validation, registration
conflicts, incorrect login credentials, rate limiting, translation, status reporting, and external-service failures.
Actual outputs are not separately recorded for the listed cases. The present manuscript summarizes this
documented status; it does not report a fresh test run or provide a measured test-coverage percentage.
6. Discussion and Threats to Validity
The prototype demonstrates a practical integration pattern: structured prediction outputs can be reused by a
dashboard and an explanatory chatbot, while fallback paths reduce complete-request failures. This is a
software-availability benefit. A schema-valid fallback output can still be agronomically inaccurate, and model
availability alone does not guarantee model quality. Responses should therefore identify their source, data
freshness, units, and uncertainty.
Internal validity is limited by missing training configurations, raw predictions, and validation partitions.
External validity is limited by unreported dataset provenance, regional representativeness, and field
validation. Chained inference can also propagate an incorrect crop recommendation into yield or fertilizer
outputs. The effect of these dependencies has not been quantified through ablation experiments.
Language accessibility is a design objective rather than a measured outcome. A useful future study would
assess translation consistency, numerical-unit preservation, agronomic correctness, and comprehension
separately for each supported language. Production deployment also requires strengthening the prototype user
store and authentication design, as acknowledged in the source report [1].

Agricultural Intelligence System | Research manuscript
6
7. Reproducibility and Future Evaluation
A reproducible release should record a source-code version, dataset origins and licenses, file checksums,
feature units, target definitions, preprocessing configuration, random seeds, model parameters, encoders, and
dependency versions. It should preserve raw test predictions and distinguish trained-model paths from
fallback paths. The manuscript currently has no assigned DOI or verified public code archive; no identifier or
repository link is invented here.
Future classification experiments should report class distributions, confusion matrices, macro precision,
recall, F1-score, and balanced accuracy where appropriate. Yield evaluation should report MAE and RMSE in
the stated yield units and R-squared against a clearly specified baseline. Training and validation partitions
should follow data dependencies: stratification may suit independent crop records, whereas temporal or
geographic holdouts are needed where weather or yield records are correlated. Preprocessing must be fitted
only on training data.
A field assessment should compare recommendations with agronomist judgments and measured outcomes
under stated conditions. Reliability experiments should separately measure inference latency, service-failure
recovery, fallback frequency, and output provenance. Comparative studies should include simple baselines
and module ablations before attributing any benefit to the integrated architecture. Sensor integration,
explanation tools, and model monitoring remain possible extensions after this evaluation foundation is
established.
8. Conclusion
This paper presents an agricultural decision-support prototype integrating crop recommendation, soil-fertility
rules, weather-risk classification, yield regression, fertilizer recommendation, and multilingual conversation
through a React/FastAPI application. The documented demonstration illustrates a unified response, and the
source report records passing representative functional tests. Available evidence supports describing the
implementation and its fallback design, but does not establish independently reproducible model accuracy or
field effectiveness. The next research step is a traceable dataset and software release accompanied by
task-appropriate validation, calibrated outputs, and regional agronomic assessment.
Acknowledgment
The authors acknowledge the guidance of Mrs. M. Anusha Sri, Assistant Professor, Department of Computer Science and
Engineering (Data Science), Geethanjali College of Engineering and Technology, as recorded in the source project report.
References
[1] B. Gunashekar, G. Sai Teja, and K. Mani Teja, "AI-Driven Crop Recommendation and Growth Prediction System Using
Soil Fertility and Climate Intelligence," B.Tech. mini-project report, Geethanjali College of Engineering and Technology,
October 2026. Source file: GCET_AI_Crop_Mini Project Final.pdf.
[2] L. Breiman, "Random Forests," Machine Learning, vol. 45, pp. 5-32, 2001. DOI: 10.1023/A:1010933404324.
[3] T. Chen and C. Guestrin, "XGBoost: A Scalable Tree Boosting System," Proceedings of the 22nd ACM SIGKDD
International Conference on Knowledge Discovery and Data Mining, pp. 785-794, 2016. DOI: 10.1145/2939672.2939785.
https://arxiv.org/abs/1603.02754.
[4] J. H. Jeong et al., "Random Forests for Global and Regional Crop Yield Predictions," PLOS ONE, vol. 11, no. 6,
e0156571, 2016. DOI: 10.1371/journal.pone.0156571.
[5] F. Pedregosa et al., "Scikit-learn: Machine Learning in Python," Journal of Machine Learning Research, vol. 12, pp.
2825-2830, 2011. https://jmlr.org/papers/v12/pedregosa11a.html.

论文原文与出版信息

Zenodo (CERN European Organization for Nuclear Research)
查看论文原文

继续探索