论文信息

International Research Journal of Modernization in Engineering Technology and Science

论文解读

AI 辅助整理
方法
PHP/MySQL/JS前端,Python Flask提供病害与选种AI服务,规
发现
原型可输出病害名称、置信度与防治建议,推荐三种适宜作物并给出水土管理建议。
机会点
AI模型尚未定量评估,可补充精度验证与田间实测,并扩展多语言、离线与本地化作物模型。

论文摘要

农民常常需要在没有及时专家建议的情况下决定病害防治、作物选择、土壤管理和灌溉,这会导致产量损失以及水和肥料的浪费。本文提出AI Smart Agro System,这是一个基于Web的决策支持平台,将五项服务整合到一个仪表板中:根据上传照片进行叶片病害检测、作物推荐、土壤健康分析、灌溉建议以及基于天气的农事建议。该系统使用PHP、MySQL和JavaScript构建,而病害检测和作物推荐由外部Python Flask AI服务处理,并通过安全的REST API调用。土壤、灌溉和天气建议由透明的基于规则的逻辑生成,使用土壤pH、N-P-K值、土壤湿度、降雨量、温度和湿度。每个结果都存储在用户历史记录中,通知和管理员面板支持监控。该原型旨在为上传的叶片图像返回病害名称、置信度、治疗和预防提示,推荐三种最合适的作物,并为土壤和水管理提供明确建议。AI模型的定量评估留待未来工作。

全文

International Research Journal of Modernization in Engineering Technology and Science

e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:08/Issue:10/October-2026 Impact For- 8.187 www.irjmets.com
www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[1816]
AI SMART AGRO SYSTEM: A WEB-BASED AI-ASSISTED DECISION SUPPORT
PLATFORM FOR FARMERS
Aryan Ghandat1, Siddhesh Bhamare2, Akash Patil3,
Karan Gatkal
4, Ms. M. A. Aherrao*5
*1,2,3,4,5MVP's Rajarshi Shahu Maharaj Polytechnic, Nashik, India.
DOI: https://www.doi.org/10.56726/IRJMETS103514
ABSTRACT
Farmers often have to decide on disease control, crop selection, soil management and irrigation without timely
expert advice, which leads to y ield loss and wastage of water and fertiliser. This paper presents AI Smart Agro
System, a web -based decision -support platform that brings five services into one dashboard: leaf disease
detection from an uploaded photograph, crop recommendation, soil healt h analysis, irrigation advisory and
weather-based farming advice. The system is built with PHP, MySQL and JavaScript, while disease detection and
crop recommendation are handled by an external Python Flask AI service that is called through a secured REST
API. Soil, irrigation and weather advice are generated by transparent rule -based logic using soil pH, N -P-K
values, soil moisture, rainfall, temperature and humidity. Every result is stored in the user's history, and
notifications and an administrator panel support monitoring. The prototype is designed to return the disease
name, confidence, treatment and prevention tips for an uploaded leaf image, to recommend the three most
suitable crops, and to give clear advice for soil and water management. Quantitativ e evaluation of the AI models
is left for future work.
Keywords: Smart Agriculture, Plant Disease Detection, Crop Recommendation, Decision Support System.
I. INTRODUCTION
Agriculture remains the main source of livelihood for a large part of the population in India, yet many farmers
still take key decisions about disease control, crop choice, fertilisation and irrigation on the basis of experience
alone. Crop diseases are often noticed late, soil nutrient status is rarely known, and unpredictable weather
makes water management difficult. Access to agricultural experts and soil -testing facilities is limited,
particularly in rural areas, and the useful information that exists is scattered across many different sources.
Recent progress in deep learning and machine learning has shown that plant diseases can be recognised from
leaf photographs [1], [2] and that suitable crops can be predicted from soil and climate data [3]. Surveys of the
field [4], [5] also show that most reported systems solve only one problem, suc h as disease detection or crop
recommendation, and are rarely delivered as a complete tool that a farmer can use from a phone or a computer.
To address this gap, this paper presents AI Smart Agro System, a web -based decision -support platform with
five modules: leaf disease detection, crop recommendation, soil analysis, irrigation advisory and weather
insights. The platform combines a PHP and MySQL web application with an external AI service for the two
modules that need trained models, and uses simple, transparent rules for the remaining three. The main
contributions are: (i) an integrated platform for five farming decisions, (ii) a secure image -upload and AI -
service pipeline, and (iii) stored history, notifications and an administrator panel for monitor ing.
II. METHODOLOGY
The system was developed in a modular way. Each farming task is a separate module, and all modules share
common authentication, database and notification services.
System Architecture
The system follows a three -tier design (Fig. 1 ). The browser tier gives farmers and administrators an interface
built with HTML, CSS, JavaScript and Three.js for 3D visual effects. The application tier runs on an Apache web
server with PHP 8 and contains authentication, the five user modules, the admi n panel and common helper

                                                                                                              e-ISSN: 2582-5208  

International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:08/Issue:10/October-2026 Impact For- 8.187 www.irjmets.com
www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[1817]
functions. The data and service tier consists of a MySQL database, a folder for uploaded leaf images, an external
Python Flask AI service, Google OAuth for sign-in and the OpenWeatherMap service for weather data.
Disease Detection Module
The farmer uploads a leaf photograph. The server accepts only JPG, JPEG or PNG files of at most 3 MB, checks
the real MIME type of the file instead of trusting its extension, and saves the image under a unique name made
from a timestamp and a rando m value. The saved image is then posted through cURL to the AI service together
with a secret API key sent in the X -API-KEY header. The service returns the crop name, disease name,
confidence, treatment and prevention advice. If the service rejects the ima ge as not being a plant photograph,
the user is informed. Each result is stored in the disease history table and a notification is created.
Crop Recommendation Module
The user enters nitrogen, phosphorus, potassium, soil pH, temperature, humidity and rainf all. These values are
sent as JSON to the AI service, which returns the three most suitable crops with a suitability score, suitable
growing conditions and general guidance. The results are saved in the crop recommendations table.
Soil, Irrigation and Weather Modules
These modules use rule -based logic written in PHP. Soil health is scored out of 100 from pH and N -P-K values
(Table 1). Irrigation advice is derived from soil moisture, temperature and rainfall (Table 2). The weather
module fetches current cond itions and the forecast for a city from OpenWeatherMap and builds short farming
tips. For example, a rain probability above 50% suggests postponing irrigation, a temperature above 35 °C
warns of water stress, a high wind speed advises caution before sprayi ng, and humidity above 80% warns of a
higher fungal disease risk.
Database and Security
MySQL stores eight tables: users, admins, disease_history, crop_recommendations, soil_reports,
irrigation_reports, weather_history and notifications. Database queries u se prepared statements, passwords are
stored as hashes, sessions control access to user and admin pages, and the AI service is protected by an API key.
If the AI service is not available, a demonstration mode with sample responses keeps the application usa ble.
III. MODELING AND ANALYSIS
Fig. 1 shows the architecture and Fig. 2 shows the workflow of the system. After login, the farmer reaches the
dashboard and chooses a module. Disease and crop requests are processed by the AI service, while soil,
irrigation and weather requests are processed by the PHP rule engine. Every result is shown to the farmer,
saved in MySQL and recorded as a notification, and can be reviewed later in the history pages or by the
administrator.

Figure 1: System architecture of AI Smart Agro System.

                                                                                                              e-ISSN: 2582-5208  

International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:08/Issue:10/October-2026 Impact For- 8.187 www.irjmets.com
www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[1818]

Figure 2: Workflow of the proposed system.
The rules used for soil and irrigation analysis are given in Table 1 and Table 2. The soil health score starts at
100 and points are deducted when a parameter is outside its favourable range. A score of 80 or more is
reported as Good, a score from 50 to 79 as Moderate, and a score below 50 as Needs Attention.
Table 1. Soil health scoring rules
SN. Parameter Condition checked Score deducted
1 Soil pH Outside 5.5 to 8.0 20
2 Nitrogen (N) Below 20 20
3 Phosphorus (P) Below 15 15
4 Potassium (K) Below 15 15
Table 2. Irrigation advisory rules (checked in the order shown)
SN. Condition Status Priority
1 Soil moisture below 30 and rainfall below 10 Required High
2 Soil moisture below 50 and temperature above 30 °C Required Medium
3 Rainfall of 20 or more Not Required Low
4 None of the above Monitor Low
Table 3. Software and tools used
SN. Layer Tools and techniques
1 Frontend HTML5, CSS3, JavaScript, Three.js
2 Backend PHP 8 with cURL, Apache web server
3 Database MySQL (mysqli, prepared statements)
4 AI service Python Flask REST API secured by API key
5 Authentication PHP sessions, password hashing, Google OAuth 2.0
6 External API OpenWeatherMap weather service
7 Development tools VS Code, phpMyAdmin, Git and GitHub

                                                                                                              e-ISSN: 2582-5208  

International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:08/Issue:10/October-2026 Impact For- 8.187 www.irjmets.com
www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[1819]
IV. RESULTS AND DISCUSSION
The prototype was implemented as a working web application. Table 4 summarises the inputs, outputs and
processing method of each module. Fig. 3 shows two sample leaf photographs with visib le lesions of the kind
uploaded to the disease detection module. For an accepted image, the module displays the crop name, disease
name, confidence level, treatment and prevention tips, and stores the entry in the user's history.

Figure 3: Sample leaf photographs uploaded to the disease detection module: (a) and (b).
Table 4. Summary of modules
SN
. Module Input Output Method
1 Disease Detection Leaf photograph Disease, confidence, treatment, prevention AI service
2
Crop
Recommendati
on
N, P, K, pH, temperature,
humidity, rainfall Top 3 crops with score AI service
3 Soil Analysis pH, N, P, K Score, status, nutrient notes Rule-based
4 Irrigation Advisory Soil moisture, temperature, humidity, rainfall Status, priority, advice Rule-based
5 Weather Insights City name Conditions, forecast, farming tips OpenWeatherMap and rules
To define test cases for the rule -based modules, representative inputs covering each decision branch were
selected (Table 5). The expected outputs were derived by applying the rules given in Table 1 and Table 2, and
they show how the soil score, irrigation status and weather tips are intended to change between poor,
moderate and favourable conditions. These expected outputs are to be confirmed against the running sy stem.
The implemented design brings all five services together in one browser -based dashboard. Keeping the trained
models in a separate Flask service means that the models can be improved or replaced without changing the
website. The soil, irrigation and weathe r rules are simple and transparent, so a farmer or an agricultural officer
can easily understand why a particular advice was given. Security measures such as file type and size checks,
unique file names, hashed passwords, prepared statements and an API key are included in the design to reduce
common risks of web applications.
The system also has limitations. The thresholds in the rule -based modules are simplified, indicative values and
are not specific to each crop or region; they should be calibrated with local guidelines such as the national Soil
Health Card scheme [7]. Soil values must be entered manually because no field sensors are connected, and the
accuracy of the disease and crop models depends on the AI service and its training data. Models trained on
laboratory images are known to perform worse on real field photographs [1], so the models should be
evaluated separately on field images before large -scale use. Quantitative evaluation of the disease detection and
crop recommendation models (accuracy, p recision and recall) and testing of the complete system with farmers

                                                                                                              e-ISSN: 2582-5208  

International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:08/Issue:10/October-2026 Impact For- 8.187 www.irjmets.com
www.irjmets.com @International Research Journal of Modernization in Engineering, Technology and Science
[1820]
were not part of this work and are planned as future work. The advice given is general guidance and does not
replace the opinion of an agricultural expert.
Table 5. Rule-based test cases with expected outputs
SN. Module Test input Expected output
1 Soil Analysis pH 6.5, N 40, P 30, K 30 Score 100, Good
2 Soil Analysis pH 5.0, N 15, P 20, K 20 Score 60, Moderate (pH and N flagged)
3 Soil Analysis pH 4.8, N 10, P 8, K 9 Score 30, Needs Attention
4 Irrigation Moisture 25, temperature 28 °C, rainfall 5 Required, High priority
5 Irrigation Moisture 45, temperature 34 °C, rainfall 5 Required, Medium priority
6 Irrigation Moisture 60, temperature 26 °C, rainfall 25 Not Required, Low priority
7 Irrigation Moisture 55, temperature 28 °C, rainfall 5 Monitor, Low priority
8 Weather Temperature 36 °C, humidity 85%, rain probability 60%, wind 10 Postpone irrigation, water-stress warning, fungal-disease risk
V. CONCLUSION
AI Smart Agro Syste m presents a design in which disease detection, crop recommendation, soil analysis,
irrigation advice and weather insights are combined in one easy -to-use web platform. By turning a leaf
photograph or a few field readings into clear, stored recommendations , the platform is intended to help farmers
act earlier and make better -informed decisions. In future, the work can be extended with IoT soil -moisture
sensors, a mobile application with SMS alerts, regional language support, crop -specific rules, more crops and
diseases in the AI models, a quantitative evaluation of the AI models, and a field evaluation with farmers.
ACKNOWLEDGEMENTS
The authors would like to thank their project guide, Ms. M. A. Aherrao, and the faculty of MVP's Rajarshi Shahu
Maharaj Polytechnic, Nashik, for their guidance and support during this work.
VI. REFERENCES
[1] S. P. Mohanty, D. P. Hughes and M. Salathé, "Using Deep Learning for Image -Based Plant Disease
Detection," Frontiers in Plant Science, Vol. 7, Article 1419, 2016, doi: 10.3389/fpls.2016.01419.
[2] K. P. Ferentinos, "Deep Learning Models for Plant Disease Detection and Diagnosis," Computers and
Electronics in Agriculture, Vol. 145, pp. 311-318, 2018, doi: 10.1016/j.compag.2018.01.009.
[3] S. Pudumalar, E. Ramanujam, R. H. Rajashr ee, C. Kavya, T. Kiruthika and J. Nisha, "Crop
Recommendation System for Precision Agriculture," Proceedings of the Eighth International
Conference on Advanced Computing (ICoAC), pp. 32-36, 2017, doi: 10.1109/ICoAC.2017.7951740.
[4] K. G. Liakos, P. Busato, D. Moshou, S. Pearson and D. Bochtis, "Machine Learning in Agriculture: A
Review," Sensors, Vol. 18, Issue 8, Article 2674, 2018, doi: 10.3390/s18082674.
[5] A. Kamilaris and F. X. Prenafeta -Boldú, "Deep Learning in Agriculture: A Survey," Computers and
Electronics in Agriculture, Vol. 147, pp. 70-90, 2018, doi: 10.1016/j.compag.2018.02.016.
[6] OpenWeatherMap, "Weather API Documentation," https://openweathermap.org/api (accessed
October 2026).
[7] Department of Agriculture and Farmers Welfare, Government of India, "Soil Health Card Scheme,"
https://soilhealth.dac.gov.in (accessed October 2026).

论文原文与出版信息

International Research Journal of Modernization in Engineering Technology and Science
查看论文原文

继续探索