DOI : https://doi.org/10.5281/zenodo.20081847
- Open Access
- Authors : Mrs. Nischitha S, Ms. Suma J M, Ms. Pradiptha K, Mr. Uday B R
- Paper ID : IJERTV15IS043585
- Volume & Issue : Volume 15, Issue 04 , April – 2026
- Published (First Online): 08-05-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
PaddyCare AI: A CNN-Based Disease Detection and Nutrient Decision Support System
Mrs. Nischitha S
Assistant Professor
Department of Electronics and Communication Engineering B G S Institute of Technology,Mandya,Karnataka,India
Ms. Pradiptha K
Department of Electronics and Communication Engineering B G S Institute of Technology,Mandya,Karnataka,India
Ms. Suma J M
Department of Electronics and Communication Engineering B G S Institute of Technology,
Mandya,Karnataka,India
Mr. Uday B R
Department of Electronics and Communication Engineering B G S Institute of Technology,Mandya,Karnataka,Indi
AbstractAgricultural productivity in paddy cultivation is significantly affected by plant diseases and improper soil nutrient management. Traditional detection and fertilizer application methods are manual, inaccurate, and time-consuming. This project presents PaddyCare AI, a comprehensive intelligent system integrating Convolutional Neural Networks (CNN), Internet of Things (IoT) sensors, and a Qt/QML-based desktop reporting platform. The system performs real-time paddy leaf disease detection using an ESP32-CAM module and monitors soil nutrient levels using an NPK sensor. A lightweight CNN model classifies diseases such as Brown Spot, Leaf Blast, and Hispa with embedded edge inference capability. A rule-based Decision Support System (DSS) recommends appropriate fertilizer and treatment solutions. Furthermore, a Qt-based application generates structured PDF reports. Experimental results demonstrate classification accuracy of approximately 82%. The proposed system offers a low-cost, scalable, and sustainable solution for smart agriculture.
Keywords CNN, Decision Support System, ESP32-CAM, IoT, NPK Sensor, Paddy Disease Detection, Precision Agriculture, Qt/QML.
-
Introduction
Paddy is one of the most widely cultivated cereal crops and serves as a primary food source for a significant portion of the global population. In countries like India, paddy cultivation plays a crucial role in ensuring food security, supporting rural livelihoods, and contributing to the agricultural economy. However, increasing population demand, climate variability, and limited arable land require the adoption of intelligent and sustainable farming practices to enhance productivity. Paddy crops are highly vulnerable to various biotic stresses, particularly fungal diseases and insect infestations. Among the most common and destructive diseases are Brown Spot, Leaf Blast, and Hispa insect damage. Brown Spot, caused by fungal pathogens, leads to circular lesions on leaves that reduce photosynthetic efficiency. Leaf Blast is a severe fungal infection that can spread rapidly under humid conditions, resulting in significant yield loss.
Hispa insect infestation damages leaf tissues by scraping chlorophyll-containing cells, thereby affecting plant growth and overall crop health. Early detection and timely treatment of these diseases are essential to minimize economic losses. Apart from disease-related challenges, soil nutrient im-balance is a major factor affecting paddy productivity. The three primary macronutrients required for optimal growth are Nitrogen (N), Phosphorus (P), and Potassium (K). Deficiency or excess of these nutrients results in poor plant development, reduced resistance to stress, and lower yield quality. Conventional soil testing methods are laboratory-dependent and time consuming, making frequent monitoring impractical for many farmers. Traditional disease identification and fertilizer management rely largely on manual inspection and farmer expertise. These approaches are subjective, prone to error, and inefficient for large-scale agricultural fields. Misdiagnosis of plant diseases and incorrect fertilizer application not only reduce crop yield but also increase operational costs and environmental impact. Recent advancements in Artificial Intelligence (AI), Convolutional Neural Networks (CNN), Internet of Things (IoT), and embedded systems have enabled the development of precision agriculture solutions. CNN-based image classification techniques provide accurate plant disease detection, while IoT-enabled soil sensors allow real-time monitoring of nutrient levels. Edge computing platforms such as ESP32 facilitate on- device inference, reducing latency and eliminating continuous cloud dependency. Motivated by these technological advancements, this work proposes PaddyCare AI, an integrated intelligent system that combines CNN-based paddy disease detection, soil nutrient monitoring using NPK sensors, and a rule-based Decision Support System (DSS) for fertilizer and treatment recommendations. The system further incorporates a Qt/QML-based desktop application for structured PDF report generation, enhancing traceability and digital agricultural management. The proposed solution aims to provide a low-cost, scalable, and efficient smart agriculture framework suitable for real- world deployment.
-
Related Work
The application of Artificial Intelligence (AI) and Deep Learning techniques in agriculture has gained significant attention in recent years. Convolutional Neural Networks (CNNs) have emerged as a dominant approach for plant disease detection due to their ability to learn discriminative spatial features directly from images. Several studies have employed deep architectures such as VGG, ResNet, and DenseNet to achieve high classification accuracy in controlled datasets. Transfer learning strategies using pre-trained models have further improved performance, particularly when agricultural datasets are limited in size. Despite promising results, most existing disease detection systems are designed for cloud-based or high-performance computing environments. These implementations introduce communication latency and require continuous internet connectivity, which may not be feasible in rural agricultural regions. Moreover, complex deep learning models demand substantial memory and computational resources, limiting their practical deployment on low-power embedded devices. Parallel advancements in Internet of Things (IoT)-based smart farming systems have enabled real-time monitoring of soil and environmental parameters. NPK sensing technologies, along with soil moisture and temperature monitoring, have been integrated with microcontroller platforms for precision agriculture applications. Although such systems enhance nutrient management and irrigation scheduling, they are typically implemented as standalone monitoring frameworks without integration of intelligent disease diagnosis modules. Recent efforts have attempted to combine AI and IoT technologies for comprehensive farm management. However, most solutions focus either on disease classification or soil analysis independently, lacking a unified architecture that integrates both functionalities within a single embedded platform. Furthermore, structured digital documentation and automated report generation remain underexplored in existing agricultural AI systems. Therefore, a research gap exists in developing a cost- effective, edge-deployable, and integrated intelligent frame- work capable of performing real-time paddy disease detection, soil nutrient analysis, decision support, and systematic digital reporting within a cohesive architecture.
-
Overall System Architecture
PaddyCare AI follows a multi-layered modular architecture designed for real-time embedded intelligence and scalable agricultural deployment. The system integrates sensing, edge computing, artificial intelligence, decision support, and eporting modules.
-
Sensing Layer
This layer is responsible for real-time data acquisition from the agricultural field:
-
OV2640 camera integrated with ESP32-CAM for high-resolution leaf image capture
-
RS485-based Soil NPK sensor for Nitrogen (N), Phosphorus (P), and Potassium (K) measurement
Fig. 1. Block Diagram of PaddyCare AI using ESP32-CAM, sensors, and CNN model
-
DHT11/DHT22 temperature and humidity sensor for en-vironmental monitoring
The sensors periodically collect data and transmit it to the processing layer.
-
-
Edge Processing Layer
The ESP32-CAM microcontroller performs:
-
Image resizing and normalization
-
Noise reduction using Gaussian filtering
-
Conversion to RGB tensor format
-
Serial communication with NPK sensor
Edge inference reduces latency and eliminates cloud dependency.
-
-
AI Classification Layer
A lightweight Convolutional Neural Network (CNN) model is deployed using TensorFlow Lite for Microcontrollers.
Architecture:
-
3 Convolution layers
-
2 MaxPooling layers
-
1 Fully connected layer
-
Softmax output layer (4 classes)
Optimization:
-
8-bit integer quantization for memory and computational efficiency
-
-
Decision Support Layer
This layer combines:
-
Rule-based fertilizer recommendation system
-
K-means clustering for nutrient categorization
-
Disease-treatment mapping database
Based on classified disease and nutrient deficiency, appropriate fertilizer dosage and pesticide suggestions are generated.
-
-
Application Reporting Layer
A Qt/QML desktop application performs:
-
Real-time data visualization
-
Disease probability display
-
Nutrient status representation
-
Automated PDF report generation
-
Data logging and historical storage
This ensures structured documentation for farmers and agricultural officers. PaddyCare AI bridges this gap.
Fig. 2. Circuit Diagram of the proposed system
-
-
-
Mathematical Model of CNN
-
Convolution Operation
Yi,j = Xi+m,j+n · Wm,n + b (1)
m n
Where:
-
X = Input feature map
-
W = Kernel (filter)
-
b = Bias term
-
Yi,j = Output feature value
-
-
Loss Function
L = C y log(y) (2)
i i
-
-
Dataset and Training Setup
-
Dataset Description
The dataset used in this study consists of paddy leaf images collected from publicly available agricultural image repositories and field-level captures using the ESP32-CAM module.
The dataset contains four classes:
-
Healthy
-
Brown Spot
-
Leaf Blast
-
Hispa
-
-
Dataset Split and Preprocessing
The dataset was divided as follows:
-
Training set: 80% (960 images)
-
Validation set: 10% (120 images)
-
Test set: 10% (120 images)
All images were resized to a fixed resolution of 128 × 128 pixels to maintain uniform input dimensions for the CNN model. Data preprocessing steps included normalization (pixel scaling between 0 and 1) and noise reduction.
Data augmentation techniques such as rotation, horizontal flipping, zooming, and brightness adjustment were applied to improve model robustness against real-field variations such as lighting conditions and leaf orientation.
-
-
Training Configuration
The CNN model was trained using the TensorFlow frame-work and later converted to TensorFlow Lite format for embedded deployment. The training configuration parameters are as follows:
-
Batch size: 32
-
Number of epochs: 40
-
Learning rate: 0.001
-
Optimizer: Adam
-
Activation function (hidden layers): ReLU
-
Output layer activation: Softmax
-
Loss function: Categorical Cross-Entropy
The Adam optimizer was selected due to its adaptive learning capability and faster convergence compared to traditional stochastic gradient descent (SGD). ReLU activation was used in hidden layers to introduce non-linearity and reduce vanishing gradient issues, while the Softmax function was applied in the output layer to generate class probability distributions. Early stopping and validation monitoring were implemented to prevent overfitting. The model achieving the highest vali-dation accuracy was selected for final testing and deployment.
Where:
-
yi = True label
i=1 D. Model Deployment Preparation
After training, the model was quantized to 8-bit inte-
ger precision to reduce memory footprint and computational
-
yi = Predicted probability
-
C = Number of classes Optimizer: Adam
Learning Rate: 0.001
complexity. The optimized model was then deployed on the ESP32-CAM module for real-time edge inference. This ap-proach ensures low latency and eliminates dependency on
Fig. 3. System workflow for paddy disease detection and fertilizer recom-mendation
cloud-based computation. A total of approximately 1200 la-beled images were used for training and evaluation.
-
-
-
-
Performance Evaluation
TABLE I Performance Metrics
Metric
Value
Accuracy
82%
Precision
80%
Recall
81%
F1-Score
80.5%
-
Qt/QML Report Generation Module
The Qt/QML-based application is responsible for user in-teraction, visualization, and report generation. It performs the following functions:
-
Serial communication with ESP32
-
Display of disease classification results
-
Display of NPK sensor values
-
Generation of structured PDF reports
A. PDF Generation Flow
The PDF report generation process follows these steps:
-
Data retrieval from the ESP32 and sensors
-
Template formatting using predefined report layouts
-
Export to PDF using QPrinter
-
File storage with timestamp for record keeping
Fig. 4. An example of report.
This module enhances traceability, documentation, and supports efficient digital agriculture management.
-
-
Future scope
The proosed PaddyCare AI system provides a strong foundation for intelligent precision agriculture. However, sev-eral enhancements can be implemented in future research to improve scalability, intelligence, and real-world adaptability.
-
Mobile Application Integration: Development of an Android/iOS application for real-time disease detection, nutrient monitoring, and farmer-friendly visualization with multilingual support.
-
Cloud-Based Analytics Platform: Integration with cloud infrastructure to enable large-scale farm monitoring, his-torical data analysis, predictive modeling, and remote expert consultation.
-
Transformer-Based Vision Models: Upgrading the CNN architecture to lightweight Vision Transformer (ViT) or hybrid CNN-Transformer models for improved feature extraction and classification accuracy.
-
Multi-Crop Disease Detection: Extending the frame-work to support additional crops such as wheat, maize, and pulses by retraining and expanding the dataset.
-
Automated Irrigation Integration: Integration with smart irrigation systems to provide automated water management based on soil nutrient and environmental parameters.
These improvements will transform the proposed system into a fully autonomous, scalable, and intelligent smart farm-
ing ecosystem capable of supporting sustainable agricultural practices.
-
-
Limitations
-
Moderate Dataset Size: The dataset contains approximately 1200 images, which may limit model generalization across diverse geographical regions and varying crop conditions.
-
Limited Disease Classes: The current model is trained on only four classes (Healthy, Brown Spot, Leaf Blast, and Hispa). Additional diseases are not covered in this version.
-
Sensor Calibration Requirement: NPK sensor readings may drift over time due to soil moisture variations and environmental factors, requiring periodic calibration for accurate measurement.
-
-
Results and Performance Evaluation
The proposed PaddyCare AI system was tested under real-time conditions using an integrated hardware and software setup consisting of the ESP32-CAM module, NPK soil sensor, and Qt-based desktop application.
-
Experimental Output
The proposed system successfully performed end-to-end processing,including image acquisition, disease classification, nutrient sensing, and recommendation generation.
-
Disease Detection: The CNN model correctly identified paddy leaf diseases such as Hispa and Leaf Blast from captured images.
-
NPK Sensor Output: Real-time soil nutrient values were obtained from the RS485-based sensor:
-
Nitrogen (N): 60mg/kg
-
Phosphorus (P): 62mg/kg
-
Potassium (K): 61mg/kg
-
-
Fertilizer Recommendation: Based on detected nutrient
deficiency, the system recommended appropriate fertilizer actions such as MOP( Mutriate of potash).
-
LCD Display Output: The embedded LCD module displayed:
-
Detected disease (e.g., Leaf Blast)
-
Fertilizer suggestion (e.g., Add Nitrogen)
-
Real-time NPK values
-
-
Desktop Application Output: The Qt/QML-based inter-face displayed:
-
Disease classification (e.g., Hispa)
-
Nutrient status visualization
-
Fertilizer recommendations
-
-
-
System Performance
The model achieved an approximate classification accuracy of 82% on the test dataset. The deployment of the quantized TensorFlow Lite model on ESP32 ensured low-latency inference suitable for real-time applications.
Fig. 5. Comparative analysis of system inputs and diagnostic outputs, including NPK nutrient levels, soil classification, and detected plant diseases.
-
Observations
The experimental results demonstrate that the system is capable of:
-
Real-time disease detection using edge AI
-
Accurate soil nutrient monitoring
-
Automated decision support for fertilizer application
-
Seamless integration of hardware and software components
-
Overall, the system validates the feasibility of deploying AI-driven precision agriculture solutions using low-cost embedded platforms.
Fig. 6. Detected disease classification result using trained model
-
-
Conclusion
PaddyCare AI represents an integrated intelligent precision agriculture system designed for real-time paddy disease detection and soil nutrient analysis. The proposed framework com-bines a lightweight CNN-based image classification model, IoT-enabled NPK sensing, and a rule-based Decision Support System (DSS) within a unified embedded architecture. Deployment on the ESP32-CAM platform using a quantized TensorFlow Lite model enables efficient edge-based inference with-out cloud dependency. Experimental evaluation demonstrated a classification accuracy of approximately 82%, validating the effectiveness of the approach under controlled and semi-field conditions. The integration of soil nutrient monitoring enhances agricultural decision-making by generating fertilizer recommendations based on real-time NPK measurements. In addition, the Qt/QML-based desktop application provides structured visualization and automated PDF report generation, improving documentation, traceability, and digital farm management. The integration of AI, IoT, embedded systems, and intelligent reporting mechanisms establishes a cost-effective, scalable, and sustainable framework for smart paddy cultivation. The system contributes to precision agriculture by reducing manual intervention, minimizing crop losses, optimizing fertilizer usage, and supporting environmentally responsible farming practices.
-
J. G. A. Barbedo, Plant disease identification from individual lesions and spots using deep learning, Biosystems Engineering, vol. 180, pp. 96107, 2019.
-
R. Li, R. Wang, and C. Xie, A review of plant disease detection using deep learning, IEEE Access, vol. 8, pp. 210225, 2020.L.
-
Atzori, A. Iera, and G. Morabito, The Internet of Things: A survey, IEEE Communications Surveys & Tutorial
-
S. Raj et al., IoT-based precision agriculture monitoring system, IEEE Sensors Journal, vol. 21, no. 14, pp. 1629116300, 2021.
-
P. Warden and D. Situnayake, TinyML: Machine Learning with Tensor-Flow Lite on Arduino and Ultra-Low-Power Microcontrollers.
-
OReilly Media, 2019.A. Dosovitskiy et al., An image is worth 16×16 words: Transformers for image recognition at scale, arXiv preprint arXiv:2010.11929, 2020.
-
M. Ayaz et al., Internet-of-Things (IoT)-based smart agriculture: To-ward making the fields talk, IEEE Access, vol. 7, pp. 129551129583, 2019.
-
K. P. Ferentinos, Deep learning models for plant disease detection and diagnosis, Computers and Electronics in Agriculture, vol. 145, pp. 311318, 2018.
References
-
P. K. Sethy, N. K. Barpanda, A. K. Rath, and S. K. Behera, "Deep feature based ice leaf disease identification using transfer learning," Computers and Electronics in Agriculture, vol. 175, pp. 105-112, 2020.
-
V. Singh, A. K. Misra, and N. P. Singh, "Detection of plant leaf diseases using image segmentation and soft computing techniques," Information Processing in Agriculture, vol. 4, no. 1, pp. 41-49, 2017.
-
S. Shivakumar, S. V. S. G. Nirmala, and R. Kumar, "Review on soil NPK sensing techniques for precision agriculture," International Journal of Electronics and Communication Engineering, vol. 8, no. 5, pp. 12-18, 2021.
-
J. Chen, J. Chen, D. Zhang, Y. Sun, and Y. Nanehkaran, "Using deep transfer learning for image-based plant disease identification," Computers and Electronics in Agriculture, vol. 173, pp. 105-115, 2020.
-
P. Warden and D. Situnayake, TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers, 1st ed. Sebastopol, CA: O'Reilly Media, 2019.
-
H. J. Kim, J. W. Hummel, and S. J. Birrell, "Review of sensors for real-time analysis of soil available nutrients," Computers and Electronics in Agriculture, vol. 66, no. 2, pp. 107-120, 2009.
-
M. Dhanaraju, P. Chenniappan, K. Somasundaram, and R. Kalpana, "Smart farming: Internet of Things (IoT) based sustainable agriculture," Agriculture, vol. 12, no. 6, p. 745, 2022.
