论文信息
论文解读
AI 辅助整理- 方法
- 随机森林、支持向量机做作物推荐,CNN做叶片病害检测,结合IoT实时数据。
- 发现
- 作物推荐准确率98%-99%,CNN病害检测准确率95%-97%,提升农场效率并减少农药滥用。
- 机会点
- 可探索多源实时数据融合与跨环境泛化能力,并开发轻量化边缘部署模型以适配田间场景。
论文摘要
气候变异性、土壤退化、水资源短缺和植物病害共同给农业带来了新的挑战。传统方法往往依赖人工监测和直觉,导致决策欠佳和产量降低。然而,现有的基于机器学习(Machine Learning, ML)的作物推荐和病害检测系统面临诸多挑战,如缺乏实时数据集成导致适用范围有限、依赖有限数据集,以及在不同环境条件下准确率下降。为应对这些挑战,本研究提出了一种基于人工智能(Artificial Intelligence, AI)的智慧农场系统,该系统集成了机器学习、深度学习(Deep Learning, DL)和物联网(Internet of Things, IoT)技术。随机森林(Random Forest, RF)和支持向量机(Support Vector Machine, SVM)是基于土壤养分、温度、湿度和降雨量等环境参数进行作物推荐的广泛使用的机器学习算法。基于图像的植物病害检测通过基于卷积神经网络(Convolutional Neural Network, CNN)的模型进行,通过分析叶片图像实现早期诊断。实验结果表明,所提出的系统具有高性能。此外,作物推荐准确率在98%至99%之间,其中随机森林平均表现最佳,而所提出的基于卷积神经网络的模型实现了95%至97%的病害检测准确率。这种实时数据与智能决策支持的集成提升了农场效率,减少了农药过度使用,并最大化了作物产量。
全文
Engineering Technology & Applied Science ResearchEngineering, Technology & Applied Science Research Vol. 16 , No. 5, 20 26 , 39278 -39283 39278
www.etasr.com Yashvanth et al.: An AI -Driven Smart Farming System for Crop Recommendation and Plant Disease …
An AI-Driven Smart Farming System for Crop
Recommendation and Plant Disease Detection
S. J. Yashvanth
Department of CSE, BGS Institute of Technology, Adi chunchanagiri University, Mandya, Karnataka,
India
yashujgowda23@gmail.com
Prasanna Kumar M. J.
Department of CSE, BGS Institute of Technology, Adi chunchanagiri University, Mandya, Karnataka,
India
prasannakumar@bgsit.ac.in
S. Preethi
Department of ISE, Cambridge Institute of Technology, K R Puram, Bengaluru, Karnataka, India
preethi.ise@cambridge.edu.in
B. V. Shruti
Department of CSE (AI & ML), Global Academy of Technology, Bengaluru, Karnataka, India
shruti.bv@gat.ac.in
C. Lohith
Department of CSE (IoT & CSBT), East Point College of Engineering and Technology, Bangalore,
Karnataka, India
lohithchandrashekhar@gmail.com (corresponding author)
Veena V. Pattankar
Department of CSE, Global Academy of Technology, Bangalore, Karnataka, India
veenavp@gat.ac.in
P. Raghu
Department of ISE, Cambridge Institute of Technology, K R Puram, Bengaluru, Karnataka, India
raguprao@gmail.com
Rajesh S. Kumar
Department of CSE, Cambridge Institute of Technology, K R Puram, Bengaluru, Karnataka, India
rajesh.cse@cambridge.edu.in
Received: 18 May 2026 | Revised: 17 June 2026, 25 J une 2026, and 27 June 2026 | Accepted: 28 June 2026
Licensed under a CC-BY 4.0 license | Copyright (c) by the authors | DOI: https://doi.org/10.48084/etas r.20031
ABSTRACT
Climate variability, soil degradation, water scarci ty, and plant diseases are all contributing to new
challenges in agriculture. Conventional approaches often rely on hands-on monitoring and intuition,
leading to suboptimal decision-making and lower throughput. However, existing Machine Learning (ML)-
based systems for crop recommendation and disease detection face challenges such as limited scope due to
the lack of real-time data integration, dependency on a limited dataset, and reduced accuracy under
different environmental conditions. To address thes e challenges, the present study proposes an Artific ial
Intelligence (AI)-based smart farm system that integrates ML, Deep Learning (DL), and Internet of Things
Engineering, Technology & Applied Science Research Vol. 16 , No. 5, 20 26 , 39278 -39283 39279
www.etasr.com Yashvanth et al.: An AI -Driven Smart Farming System for Crop Recommendation and Plant Disease …
(IoT) technologies. Random Forest (RF) and Support Vector Machine (SVM) are widely employed ML
algorithms for crop recommendation based on environ mental parameters such as soil nutrients,
temperature, humidity, and rainfall. Image-based pl ant disease detection is conducted through a
Convolutional Neural Network (CNN)-based model, all owing for early diagnosis by analyzing the leaves'
image. The experimental results reveal that the proposed system yields high performance. In addition, the
crop recommendation accuracy ranges between 98% and 99%, with RF performing best on average, while
the proposed CNN-based model achieved a disease det ection accuracy ranging from 95% to 97%. This
integration of real-time data and intelligent decision support drives farm efficiency, cuts pesticide overuse,
and maximizes crop yield.
Keywords-AI in agriculture; crop recommendation; plant disease detection; machine learning; deep learning;
Convolutional Neural Network (CNN); Internet of Things (IoT)
I. INTRODUCTION
Modern farming is facing significant challenges, in cluding
soil degradation, water shortages, and the rapid spread of plant
diseases. Conventional farming methods rely heavily on the
knowledge and manual observation of farmers, which can
result in poor decision-making, lower yield, and hi gher
operating costs. Therefore, there is increasing demand for smart
systems that can help farmers in making correct decisions at the
right time.
Smart Agriculture Systems have recently been developed as
a result of advances in Artificial Intelligence (AI ), Machine
Learning (ML), and Deep Learning (DL). Many of the existing
methods for crop recommendation and disease detecti on are
state-of-the-art. Several ML algorithms, including Random
Forest (RF), Support Vector Machine (SVM), and Deci sion
Trees (DTs), have been utilized for the prediction of crops in
relation to environmental factors and soil paramete rs [1, 2].
These techniques analyze parameters such as tempera ture,
rainfall, humidity, and soil nutrients.
Convolutional Neural Networks (CNNs), an instance of DL
techniques, have also demonstrated substantial accu racy for
plant disease detection based on image analysis [3, 4]. CNN-
based models use leaf images to extract features such as color,
texture, and lesion pattern, automatically achievin g high
accuracy for classification. Disease detection accuracy of over
95% has been reported based on large image datasets [4].
Moreover, the incorporation of Internet of Things (IoT) devices
with AI systems has provided real-time insights int o
agricultural conditions, thereby enhancing decision -making
efficiency [5, 6].
Authors in [7] examined the application of AI in pr ecision
agriculture and highlighted the increasing role of ML
techniques in crop management. Authors in [8] evalu ated
multiple classification methods including SVM, RF, and
CNNs. They reported that many models are overfitted in nature
and generalize poorly on other field conditions.
Authors in [9] analyzed DL-based models to detect p lant
diseases, identifying limitations such as the high computational
cost and the need for an extensive labeled dataset. Authors in
[10] compared ML and DL models and demonstrated tha t
hybrid approaches not only improve the accuracy but also
reduce system complexity. Authors in [11] reported that RF
and similar classical ML methods exhibit high effic iency;
however, these methods lack the ability to extract features
compared to CNNs. Authors in [12] presented AI-driv en soil
analytics and edge-computing cognition for real-tim e soil
moisture estimation. Their approach improved irriga tion with
smart farming; however, the study was limited to soil moisture.
Authors in [13] reviewed disease detection techniqu es,
indicating that CNN models outperform classical mod els but
require large-scale training data and high computat ional
resources.
Authors in [14] used CNNs to achieve a very high
accuracy. Their findings indicated that CNNs were l ess robust
to real-world variability such as lighting and occl usion.
Moreover, according to [15], DL models require cons tant re-
training to maintain efficiency.
In spite of these significant advancements, the cur rent
systems have limitations. Most models employ static datasets
and do not consider environmental changes. Furthermore, these
models provide impractical outputs that might not b e feasible
in the field. These include automating the spraying of
pesticides, thereby restricting their application i n the real
world.
To address these limitations, the present study pro poses an
innovative AI-based smart agriculture system that c ombines
crop recommendation with plant disease detection in a unified
platform. The proposed method employs an ML-based
technique using RF and SVM for crop prediction and a CNN-
based model for disease detection using leaf images . It also
integrates IoT-based data acquisition and a smart p esticide
spraying mechanism for targeted treatment. The prop osed
system demonstrates a crop recommendation and disea se
detection accuracy of 98–99% and 95–97%, respective ly. In
addition, the system also provides real-time monito ring and
decision support.
II. PROPOSED METHODOLOGY
The study proposes a smart farming solution by integrating
ML, DL, and IoT technologies. The system architectu re, as
shown in Figure 1, includes multiple components for data
acquisition, processing, prediction, and automated action.
A. Modules of the Proposed System
- Data Acquisition Module
This module collects real-time data from multiple s ources,
including soil sensors (pH, Nitrogen, Phosphorus, P otassium),
weather sensors (temperature, humidity, rainfall), IoT devices,
and leaf images via a smartphone or drone.
Engineering, Technology & Applied Science Research Vol. 16 , No. 5, 20 26 , 39278 -39283 39280
www.etasr.com Yashvanth et al.: An AI -Driven Smart Farming System for Crop Recommendation and Plant Disease …
Fig. 1. Proposed system architecture.
2) Data Pre-processing Module
The data pre-processing module handles missing valu es,
normalizes input data, removes noise from images, and resizes
images for CNN input.
3) Crop Recommendation Module
The crop recommendation module employs supervised ML
algorithms, namely RF and SVM, to predict the most suitable
crop based on environmental parameters.
4) Image Processing and Feature Extraction
This module performs image segmentation to isolate the
leaf region and extraction of features such as color, texture, and
shape patterns.
5) Disease Detection Module
The disease detection module employs a CNN to detec t
diseases based on leaf spots, discoloration, and lesions.
6) Decision Support System
The decision support system combines outputs from c rop
recommendation and disease detection to provide pes ticide
recommendations and alerts for potential diseases.
7) Smart Sprayer Module
This module manages automatic pesticide sprays in infected
areas. It optimizes pesticide use by reducing chemi cal
utilization, thereby improving precision agriculture.
8) User Interface
The user interface includes devices such as a smartphone or
a web application. It displays crop suggestions, di sease
prediction results, and the farm history.
B. Algorithms Used and Methodology
- RF Algorithm (Crop Recommendation)
The crop recommendation module employs the RF
algorithm using the following hyperparameters: ton_estimators
= 100, criterion = gini, max_depth = 20, min_sample s_split =
2, min_samples_leaf = 1, bootstrap = True, and random_state =
The model was trained using soil nutrient levels (N , P, K),
pH, temperature, humidity, and rainfall as input features. RF is
an ensemble learning method that builds multiple DT s, with
each tree predicting a crop type. The final output is based on
majority voting. The key advantages of the RF algo rithm
include high accuracy (~98–99%), capacity to handle large
datasets, and reduced overfitting.
2) Support Vector Machine (SVM)
SVM was implemented using the Radial Basis Function
(RBF) kernel. The algorithm employs a regularizatio n
parameter of 1.0 (C = 1.0), and the gamma parameter was set to
scale (gamma = scale). Probability estimation was s et to False
(probability = False). The model was trained on nor malized
environmental and soil parameters for crop classifi cation. The
RF provides an optimal hyperplane separating crop classes.
3) Convolutional Neural Network (CNN)
The CNN was employed for plant disease detection us ing
leaf images. The input images were resized to 224 × 224. The
module consists of three convolutional layers with of 32, 64,
and 128 nodes. The remaining training parameters ar e: Kernel
Size = 3×3, Stride = 1, Padding = same, MaxPooling = 2×2,
Dense = 128, Dropout = 0.5 (if used), Optimizer = A dam,
Learning Rate = 0.001, Loss = categorical cross-entropy, Batch
Size = 32, and Epochs = 25. The CNN automatically e xtracts
visual features from leaf images and classifies them as healthy
or diseased.
C. Mathematical Model
- Crop Recommendation Model
Let the input feature vector be defined as:
= {, , , ,
, , } (1)
The crop suitability score is calculated using:
= ∑ . (2)
where is the weight of the feature, and is the input
parameter.
The final prediction is given by:
= (|) (3)
2) Disease Detection Model
For a given image feature F, the disease probabilit y is
estimated using:
"#$%#$ = (&) (4)
The predicted disease is classified as:
’ = ((’|&) (5)
Engineering, Technology & Applied Science Research Vol. 16 , No. 5, 20 26 , 39278 -39283 39281
www.etasr.com Yashvanth et al.: An AI -Driven Smart Farming System for Crop Recommendation and Plant Disease …
- Pesticide Optimization Model
The pesticide recommendation score is computed by:
)$#*"$ = ,. "#$%#$ + (1 − ,).
(6)
where , is the balancing factor, "#$%#$ is the disease
probability, and
is the crop health score.
III. RESULTS AND DISCUSSION
A. Experimental Results
The crop recommendation module was implemented in
Python using Scikit-learn. The seven predictor variables (N, P,
K, pH, temperature, humidity, and rainfall) were used as input
features, while the crop label served as the target variable.
Missing values were checked and removed. Since SVM and
KNN are sensitive to feature scale, all numerical a ttributes
were standardized using StandardScaler. The dataset was
randomly divided into 80% training and 20% testing subsets
using random_state = 42. RF, SVM, and DT models were fitted
to the training data, whereas KNN performed instanc e-based
classification using the stored training samples. M odel
performance was evaluated on an independent test se t using
accuracy, precision, recall, and F1-score.
The disease detection module was implemented using
TensorFlow/Keras. OpenCV was employed for image
preprocessing tasks, including image resizing, nois e removal,
and leaf segmentation. The CNN model was then train ed on
processed leaf images to classify the healthy and d iseased
plants.
All experiments were conducted on a standard comput ing
platform using an 80:20 train-test split. - Dataset Used
The crop recommendation experiments were conducted
using the Crop Recommendation Dataset [16]. The dat aset
contains 2,200 samples with seven input features, i ncluding
Nitrogen (N), Phosphorus (P), Potassium (K), temper ature,
humidity, pH, and rainfall, corresponding to 22 cro p classes.
The disease detection model was trained using the PlantVillage
dataset [17]. Table I presents the details of the d ataset utilized
in the study. The crop recommendation dataset conta ins soil
and environmental parameters used for predicting su itable
crops, whereas the PlantVillage dataset provides annotated leaf
images for disease classification. dataset descript ion. These
datasets have been widely used in previous agricult ural ML
studies and enable fair comparison with existing ap proaches.
The datasets were divided into training and testing subsets
using an 80:20 split.
TABLE I. DATASET DESCRIPTION
Dataset Purpose Samples Features/classes
Crop
Recommendation
Dataset
Crop prediction 2200
N, P, K, pH,
humidity, rainfall,
temperature
PlantVillage
Dataset
Disease
detection 54,306 38 classes
B. Results
- Crop Recommendation Accuracy
The RF algorithm achieved the highest accuracy of 9 8%,
outperforming SVM (89%), KNN (91%), and DT (93%), a s
depicted in Figure 2. The excellent performance of the RF
algorithm can be attributed to its ensemble nature, which
reduces overfitting and improves generalization.
Fig. 2. Model accuracy comparison.
2) Disease Detection Accuracy
As illustrated in Figure 3, the proposed CNN model
achieved 97% accuracy, compared to 94% in existing CNN
approaches. This improvement is due to the better p re-
processing and feature extraction techniques.
Fig. 3. Disease detection comparison.
C. Performance Evaluation Metrics
The performance comparison results of crop
recommendation and disease detection for the proposed system
are summarized in Table II with respective measures, including
accuracy, precision, recall, and F1-score. The crop
recommendation and disease detection modules achieved 98%
and 97% accuracy and 97% and 96% precision, respect ively.
This indicates a low false positive rate. The model s obtained
high recall rates, with 96% for crop recommendation and 95%
for disease detection, indicating that they can eff iciently
identify the majority of the positive relevant case s. The
obtained F1-scores show a very close precision and recall gap
(96.5% for crop recommendation and 95.5% for diseas e
detection). In general, the system performs effectively on both
tasks, with crop recommendation marginally outperfo rming
disease detection.
Engineering, Technology & Applied Science Research Vol. 16 , No. 5, 20 26 , 39278 -39283 39282
www.etasr.com Yashvanth et al.: An AI -Driven Smart Farming System for Crop Recommendation and Plant Disease …
TABLE II. PERFORMANCE EVALUATION METRICS
Metric Crop recommendation Disease detection
Accuracy 98% 97%
Precision 97% 96%
Recall 96% 95%
F1 -score 96.5% 95.5%
D. Comparison with Existing Methods
Table III presents the comparative analysis of stud ies that
employed the PlantVillage dataset or closely related benchmark
datasets for plant disease classification using ML or DL
techniques. The evaluation metrics of the present study are also
reported, enabling a qualitative comparison of the proposed
framework with established approaches. Since the studies differ
in datasets, preprocessing methods, and evaluation protocols,
the comparison is intended to illustrate relative p erformance
rather than provide a direct benchmark.
TABLE III. COMPARISON TABLE
Study Dataset used Method Accuracy
[4] PlantVillage CNN 94%
[13] PlantVillage KNN 91%
[14] PlantVillage DT 93%
Present study PlantVillage + Crop Recommendation Dataset RF + CNN 98%, 97%
IV. CONCLUSION
This study proposes an Artificial Intelligence (AI) -based
smart farming system, combining Machine Learning (M L),
Deep Learning (DL), and Internet of Things (IoT) te chniques
for crop recommendation and plant disease detection . The
proposed system employs the Random Forest (RF) and Support
Vector Machine (SVM) algorithms for crop prediction , and a
Convolutional Neural Network (CNN) for disease dete ction,a
using images.
The experimental results demonstrate that the RF algorithm
achieved 98–99% accuracy in crop recommendation,
outperforming traditional models such as SVM and KNN. The
disease detection model based on CNN achieved an ac curacy
of approximately 95–97%, successfully classifying p lant
diseases from leaf images. The inclusion of real-ti me IoT data
takes decision-making and system reliability to a n ew level.
Moreover, this proposed system is embedded with a s mart
decision support system and automated pesticide spr aying,
where chemicals are sprayed with extreme precision when
needed to reduce the overuse of chemicals. With sup erior
accuracy, enhanced generalization capabilities on unseen data,
and a unified solution able to pack multiple functi onalities in
one spot, the proposed approach outperforms the current state-
of-the-art methods. The findings of this study will help improve
crop production and reduce losses due to diseases. The
optimized utilization of resources will further adv ance
sustainable agriculture.
DECLARATION OF COMPETING INTERESTS
The authors declare no competing interests.
ACKNOWLEDGMENT
Not applicable to this work.
DATA AVAILABILITY
The dataset, source code, preprocessing scripts, an d
implementation files used in this study were collec ted from
[16] and [17].
REFERENCES
[1] M. Kalimuthu, P. Vaishnavi, and M. Kishore, "Crop P rediction using
Machine Learning," in 2020 Third International Conference on Smart
Systems and Inventive Technology , Tirunelveli, India, Aug. 2020, pp.
926–932, https://doi.org/10.1109/ICSSIT48917.2020.9 214190.
[2] D. J. Reddy and M. R. Kumar, "Crop Yield Prediction using Machine
Learning Algorithm," in 2021 5th International Conference on
Intelligent Computing and Control Systems , Madai, India, May 2021, pp.
1466–1470, https://doi.org/10.1109/ICICCS51141.2021 .9432236.
[3] S. Sladojevic, M. Arsenovic, A. Anderla, D. Culibrk , and D. Stefanovic,
"Deep Neural Networks Based Recognition of Plant Di seases by Leaf
Image Classification," Computational Intelligence and Neuroscience ,
vol. 2016, pp. 1–11, 2016, https://doi.org/10.1155/ 2016/3289801.
[4] S. P. Mohanty, D. P. Hughes, and M. Salathé, "Using Deep Learning for
Image-Based Plant Disease Detection," Frontiers in Plant Science , vol.
7, Sept. 2016, Art. no. 1419, https://doi.org/10.33 89/fpls.2016.01419.
[5] A. Kamilaris and F. X. Prenafeta-Boldú, "Deep Learn ing in Agriculture:
A survey," Computers and Electronics in Agriculture , vol. 147, pp. 70–
90, Apr. 2018, https://doi.org/10.1016/j.compag.201 8.02.016.
[6] A. Chlingaryan, S. Sukkarieh, and B. Whelan, "Machi ne Learning
Approaches for Crop Yield Prediction and Nitrogen S tatus Estimation in
Precision Agriculture: A Review," Computers and Electronics in
Agriculture , vol. 151, pp. 61–69, Aug. 2018,
https://doi.org/10.1016/j.compag.2018.05.012.
[7] M. Majdalawieh, C. Martins, M. Radi, M. Alaraj, and S. Khan,
"Precision Agriculture in the Age of AI: A Systemat ic Review of
Machine Learning Methods for Crop Disease Detection ," Smart
Agricultural Technology , vol. 12, Dec. 2025, Art. no. 101491,
https://doi.org/10.1016/j.atech.2025.101491.
[8] W. Shafik, A. Tufail, A. Namoun, L. C. De Silva, an d R. A. A. H. M.
Apong, "A Systematic Literature Review on Plant Dis ease Detection:
Motivations, Classification Techniques, Datasets, C hallenges, and
Future Trends," IEEE Access , vol. 11, pp. 59174–59203, 2023,
https://doi.org/10.1109/ACCESS.2023.3284760.
[9] H. N. Ngugi, A. E. Ezugwu, A. A. Akinyelu, and L. A bualigah,
"Revolutionizing Crop Disease Detection with Comput ational Deep
Learning: A Comprehensive Review," Environmental Monitoring and
Assessment , vol. 196, no. 3, Mar. 2024, Art. no. 302,
https://doi.org/10.1007/s10661-024-12454-z.
[10] H. N. Ngugi, A. A. Akinyelu, and A. E. Ezugwu, "Mac hine Learning
and Deep Learning for Crop Disease Diagnosis: Perfo rmance Analysis
and Review," Agronomy , vol. 14, no. 12, Dec. 2024, Art. no. 3001,
https://doi.org/10.3390/agronomy14123001.
[11] T. Domingues, T. Brandão, and J. C. Ferreira, "Mach ine Learning for
Detection and Prediction of Crop Diseases and Pests : A Comprehensive
Survey," Agriculture , vol. 12, no. 9, Sept. 2022, Art. no. 1350,
https://doi.org/10.3390/agriculture12091350.
[12] B. V. Shruti et al. , "SmartSoil: A Humanoid-Inspired Drone Framework
Using Thermal Imaging and AI for Real-Time Soil Moi sture
Estimation," Engineering, Technology & Applied Science Research , vol.
16, no. 2, pp. 33820–33826, Apr. 2026,
https://doi.org/10.48084/etasr.17382.
[13] L. Goel and J. Nagpal, "A Systematic Review of Rece nt Machine
Learning Techniques for Plant Disease Identificatio n and Classification,"
IETE Technical Review , vol. 40, no. 3, pp. 423–439, May 2023,
https://doi.org/10.1080/02564602.2022.2121772.
[14] A. Upadhyay et al. , "Deep Learning and Computer Vision in Plant
Disease Detection: A Comprehensive Review of Techni ques, Models,
Engineering, Technology & Applied Science Research Vol. 16 , No. 5, 20 26 , 39278 -39283 39283
www.etasr.com Yashvanth et al.: An AI -Driven Smart Farming System for Crop Recommendation and Plant Disease …
and Trends in Precision Agriculture," Artificial Intelligence Review , vol.
58, no. 3, Jan. 2025, Art. no. 92, https://doi.org/ 10.1007/s10462-024-
11100-x.
[15] C. K. Sunil, R. Anusha, C. K. Raghavendra, and G. D ai, "A Multi-scale
Deep Learning Approach for Nutrient Deficiency Dete ction in Banana
Plants Using Adaptive Feature Pooling," Neural Computing and
Applications , vol. 38, no. 4, Feb. 2026, Art. no. 71,
https://doi.org/10.1007/s00521-025-11726-0.
[16] A. Ingle, "Crop Recommendation Dataset." Kaggle, Au g. 2021,
[Online]. Available: https://www.kaggle.com/dataset s/atharvaingle/crop-
recommendation-dataset.
[17] David. P. Hughes and M. Salathe, "An Open Access Re pository of
Images on Plant Health to Enable the Development of Mobile Disease
Diagnostics." arXiv, 2015, https://doi.org/10.48550 /ARXIV.1511.08060.
论文原文与出版信息
Engineering Technology & Applied Science Research