DOI : 10.5281/zenodo.24839050
- Open Access

- Authors : Purushottam Chawke, Ritesh Kawale, Rutuj Adakane, Sahil Sadawarti, Sameer Khonde, Trisha Kanade, Vedant Khorgade
- Paper ID : IJERTV15IS120065
- Volume & Issue : Volume 15, Issue 12 , December – 2026
- Published (First Online): 04-12-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
Design of an Adaptive Reconfigurable Tinyml Edge Accelerator using FPGA for Agriculture Applications
(1). Purushottam Chawke, (2). Ritesh Kawale, (3). Rutuj Adakane, (4). Sahil Sadawarti, (5). Sameer Khonde, (6). Trisha Kanade, (7). Vedant Khorgade
Department of Electronics & Telecommunication Engineering
(1) Assistant Professor, Electronics & Telecommunication Engineering, G H Raisoni College of Engineering and Management, Nagpur, Maharashtra, India
(2 – 7) Students, Electronics & Telecommunication Engineering, G H Raisoni College of Engineering and Management, Nagpur, Maharashtra, India
AbstractPrecision agriculture can benefit from intelligent analysis of crop images and field measurements, but cloud-dependent inference may be constrained by intermittent connectivity and communication delay. This paper presents an agricultural intelligence platform built around four machine-learning tasks: crop-disease classification, pest classification, fertilizer recommendation and irrigation prediction. Image tasks use MobileNetV2-based convolutional neural networks, while structured agricultural inputs are processed using multilayer perceptrons. Models were evaluated in Float32 and post-training INT8 TensorFlow Lite formats. Reported Float32 accuracies were 97.31%, 59.49%, 81.95% and 96.05%, respectively. The implemented architecture provides two independent processing paths: a local SPARTAN-7 FPGA path connected to an OV7670 camera, agricultural sensors and an ILI9341 TFT, and a separate website backend that independently processes submitted inputs and sensor data. Reported FPGA-side image inference times were 12.3624 ms for crop-disease detection and 11.416 ms for pest detection. The design combines local decision support with web-based monitoring without dividing inference between the two paths.
Keywords – TinyML, FPGA, SPARTAN-7, precision agriculture, MobileNetV2, edge AI, INT8 quantization.
-
INTRODUCTION
Agriculture is increasingly supported by computer vision, sensor networks and machine learning. Leaf-image classification can assist in identifying visible crop diseases and pests, while soil and environmental measurements can support nutrient and irrigation decisions. The practical value of these systems depends not only on model accuracy but also on latency, reliability, accessibility and the ability to operate in field environments.
Cloud-based inference offers access to substantial computing resources; however, it requires data communication and dependable connectivity. Edge inference moves computation closer to the source and can reduce communication dependence. Tiny Machine Learning (TinyML) focuses on deploying compact models under constrained memory and compute budgets. Field-Programmable Gate Arrays (FPGAs) provide configurable logic, embedded memory and digital signal-processing resources that can be organized for application- specific data paths.
This work develops an agricultural platform with four model pipelines and two independent execution environments. The local hardware path uses an SPARTAN-7 XC7S15 FPGA for camera and sensor interfacing, local inference and TFT output. Separately, the web application accepts sensor information and image inputs and executes its own backend inference. The two paths are not arranged as a split-computing system: neither path performs a portion of the other paths inference.
-
RELATED WORK
Research on TinyML for precision agriculture highlights the importance of local inference, affordability, low-power operation and robust field deployment [1]. FPGA-based CNN accelerators have demonstrated that pipelining, buffering and model simplification can improve the feasibility of image classification on programmable logic [2]. Reconfigurable sparse accelerators such as RAMAN investigate data reuse and sparsity to reduce memory movement and inference cost [3].
Surveys of CNN implementation on FPGAs identify parallelism, pipelining, memory hierarchy and quantization as important design choices [4]. Dynamic reconfiguration has also been studied as a means of adapting accelerator resources to different workloads [5]. TensorFlow Lite Micro provides an embedded inference framework for constrained microcontrollers [6], while benchmarking studies emphasize reporting latency, memory use and model quality together [7]. Broader TinyML research identifies model compression, energy, security and deployment complexity as continuing challenges [8].
The present project applies these ideas to a multi-task agriculture platform and combines a local FPGA implementation with an independently operating web backend. Its contribution is the integration of multiple agricultural decision tasks, image and sensor inputs, local display output and a parallel web interface.
-
SYSTEM OVERVIEW AND ARCHITECTURE
-
System Overview
The proposed system is a dual-mode smart precision agriculture framework engineered for reliable field monitoring and decision support under both connected and offline operating conditions. It integrates field sensing, visual crop acquisition, wireless web telemetry, and hardware-accelerated TinyML inference to address four core agricultural tasks: crop disease classification, pest classification, irrigation prediction, and fertilizer recommendation.
A key design feature of the framework is its dual-mode execution capability:
-
Connected / Web-Assisted Mode: Field telemetry and captured images are transmitted over on-board Wi-Fi to a web application and inference backend for visualization, analytics, and session logging.
-
Offline / Standalone Hardware Mode: When network or server connectivity is unavailable, the same sensors and OV7670 camera feed a Verilog-based TinyML hardware accelerator deployed on the FPGA, running the two vision CNN models along with the irrigation and fertilizer models locally without external network dependence.
-
-
System Architecture
The architecture is organized into four functional layers that support seamless switching between connected web operation and standalone offline execution:
-
Field Sensing & Vision Layer: Acquires environmental and soil parametersincluding soil moisture, air temperature, relative humidity, soil temperature, and RS485 Soil NPKalongside visual crop/leaf frames captured by an OV7670 camera module.
-
ESP32 ADC & Sensor Acquisition Layer: Operates as an ADC for analog sensor channels while aggregating
digital/serial sensor measurements and coordinating data exchange with the FPGA and wireless interface.
-
FPGA Core & Verilog TinyML Accelerator Layer:
-
Manages deterministic hardware timing, OV7670 frame capture and buffering, local display/status output (such as TFT display updates), and on-FPGA Verilog hardware acceleration for executing the quantized TinyML models (two CNN models for disease and pest, plus irrigation and fertilizer models) in offline mode.
-
Verilog Accelerator Datapath: Uses quantized/fixed-point arithmetic, multiply- accumulate (MAC) compute blocks, on-chip Block RAM (BRAM) buffers, and finite-state- machine (FSM) control to sequence layers and produce local inference outputs.
-
-
On-Board Wi-Fi & Web Interface Layer:
-
Connects the embedded hardware to the web platform over Wi-Fi to stream sensor telemetry and captured frames, display predictions and diagnostics, and maintain historical session records.
-
-
The website can also receive user-submitted crop images. Its backend executes ts own AI processing and returns predictions, recommendations and reports through the dashboard. This path does not receive intermediate inference results from the FPGA and does not depend on the FPGA to finish part of a model. The two paths may use corresponding trained model families, but each performs its own processing.
The distinction is important: the architecture is parallel at the system level, not a partitioned neural-network pipeline. The FPGA does not process one half of a prediction while the server processes the other half. Each path receives its own input data and produces its own output.
-
-
HARDWARE AND SOFTWARE IMPLEMENTATION
-
FPGA and Peripheral Interfaces
The selected hardware platform is a 3EDGE SPARTAN-7 XC7S15 FPGA development board. The thesis records approximately 33K logic cells, 1.8 Mb block RAM, 32 MB SDRAM, 64 Mb flash and a 50 MHz onboard oscillator. The board is developed using AMD Xilinx Vivado and Verilog HDL. The OV7670 camera provides an 8-bit parallel digital video interface with PCLK, VSYNC, HREF and D0D7 signals, and supports image formats including RGB565 and YUV/YCbCr. Camera timing and frame capture are handled in the local hardware path.
The local visual interface is a 2.4-inch TFT module based on the ILI9341 controller, typically offering 240 × 320 pixel resolution. It can present sensor readings, status information and prediction
results. The display is connected to the FPGA through the configured display interface. Exact electrical compatibility and pin assignments must follow the board schematic and the actual module revision.
-
Sensor and Communication Subsystem
The ESP32 development board provides sensor acquisition and wireless communication. The documented sensor set includes a soil- moisture sensor, an NPK sensor and a DHT11 temperature/humidity sensor; the thesis also lists a soil-humidity sensor. Sensor-specific interfaces depend on the module: analog sensors require suitable ADC input and calibration, while an RS485 NPK probe requires an RS485-to-UART transceiver and the correct Modbus settings. The ESP32 communicates with the FPGA using UART and independently transmits sensor readings to the website over Wi-Fi.
-
Software Stack and Model Preparation
The project uses Python, TensorFlow/Keras and TensorFlow Lite for model development, training, evaluation and conversion. FastAPI is used for backend services, while React and Vite support the web dashboard. Arduino IDE is used for ESP32 firmware, and Vivado with Verilog HDL is used for FPGA design and implementation. The trained models are exported in Float32 and post-training INT8 TensorFlow Lite formats to compare model quality and storage requirements.
-
Model Architecture
The image-classification tasks use MobileNetV2-based CNN models. MobileNetV2 employs depth-wise separable convolutions and inverted residual bottleneck blocks to reduce computation relative to conventional convolutional networks. The fertilizer and irrigation tasks use MLP models that accept structured features. The input preprocessing, feature order, scaling and class mapping must remain consistent between model training and deployment to avoid prediction errors.
-
-
EXPERIMENTAL RESULTS
The thesis reports test-set accuracy for the four trained models in Float32 and post-training INT8 formats. Table I reproduces the reported values. These figures describe model evaluation and should not be confused with a single-image confidence score.
Model task
Architecture
Float32 accuracy
INT8
accuracy
Crop-disease classification
MobileNetV2 CNN
97.31%
96.56%
Pest classification
MobileNetV2 CNN
59.49%
57.55%
Fertilizer recommendation
MLP
81.95%
81.51%
Irrigation prediction
MLP
96.05%
96.05%
Table I. Reported model accuracy for Float32 and INT8 formats.
The crop-disease model shows the highest reported classification accuracy among the four tasks. The pest model has lower accuracy and represents a clear opportunity for improvement through broader data coverage, class balancing and further model tuning. INT8 conversion changes the reported accuracy by 0.75 percentage points for crop disease, 1.94 points for pest classification, 0.44 points for fertilizer recommendation and no reported change for irrigation prediction. The actual memory reduction should be calculated from the exported model files and is not inferred from accuracy alone.
The local FPGA implementation reports image inference times of 12.3624 ms per image for crop-disease detection and 11.416 ms per image for pest detection. These values are presented as the projects reported inference measurements. They should be interpreted as model inference latency under the projects test conditions, not as complete camera-to-display response time. A complete system benchmark should separately measure image acquisition, preprocessing, inference, communication and display-update time.
-
WEB APPLICATION IMPLEMENTATION AND USER INTERFACES
The Krishak AI web application provides a separate user-facing interface for agricultural monitoring and model execution. The dashboard screenshot documents the main application view, including device-status information, sensor-related fields and camera-related controls. It acts as the entry point through which a user can inspect the system and access its functions. The web application is a distinct software path: its backend processes the inputs supplied to it and does not rely on the FPGA to perform part of the web prediction.
Fig. 1. Krishak AI website dashboard showing the main monitoring and application interface.
-
Fertilizer Recommendation Interface
The fertilizer interface presents structured input fields for agricultural parameters and displays a fertilizer recommendation after submission. This interface corresponds to the MLP-based fertilizer recommendation task. The user enters the required crop and field information, submits it to the web application and receives the model-generated recommendation in the result area. The screenshot is included as evidence of the deployed user workflow; it is not a substitute for the models aggregate test-set accuracy.
Fig. 1. Website interface displaying the fertilizer recommendation result.
-
Irrigation Prediction Interface
The irrigation interface accepts the relevant environmental and soil measurements and displays an irrigation decision or status. It provides a human-readable view of the MLP-based irrigation prediction. The result is intended as decision support and should be interpreted alongside calibrated sensor measurements and local agronomic practice.
Fig. 2. Website interface displaying the irrigation prediction result.
-
Pest Classification Interface
The pest-classification interface displays the submitted image and the models predicted pest category with associated confidence information. The corresponding CNN model is MobileNetV2-based. The screenshot demonstrates the complete user-facing prediction workflow, from image presentation to classification output. The confidence shown for an individual sample is distinct from the overall test-set accuracy reported in Table I.
Fig. 3. Website pest-classification result with image and predicted class information.
-
Crop-Disease Classification Interface
The crop-disease interface presents a leaf image and the models disease-classification output. The CNN-based workflow allows the user to submit or view a crop image and inspect te resulting class information. The screenshot demonstrates the disease-model interface. As with pest classification, any confidence value associated with a single image must not be interpreted as the models aggregate accuracy.
Fig. 4. Website crop-disease classification result showing the input leaf image and prediction panel.
-
Relationship Between Web and FPGA Results
The web interface and local FPGA implementation provide two separate ways to access agricultural intelligence. In the web path, the user interacts with the dashboard and its backend services. In the hardware path, the camera and sensors connect to the FPGA and local display. Both paths may implement the same four agricultural tasks, but they execute their own inference using their own input routes. There is no half-and-half allocation of one inference operation between the website and FPGA.
-
-
PHYSICAL PROTOTYPE
The assembled prototype photograph documents the physical implementation of the project. The enclosure integrates the electronic assembly and external connections, with a visible display and attached sensor probes/cables. The prototype represents the hardware platform used to connect sensing, local processing and user feedback. The FPGA and ESP32 subsystems have distinct responsibilities: the FPGA supports local processing and display, while the ESP32 acquires sensor data and provides communication for the independent website path.
Fig. 5. Photograph of the developed agricultural monitoring and FPGA prototype.
The independent dual-path arrangement offers two modes of access to agricultural intelligence. The local FPGA path is intended for direct field interaction through the camera, sensors and TFT display. The web path provides a separate dashboard for remote viewing, image submission and backend inference. Since neither path is responsible for completing the other paths computation, loss of web connectivity need not prevent the local FPGA path from producing its own result, provided its local inputs, models and firmware are available. Similarly, the website backend can process its own submitted inputs independently of the FPGA.
The reported latency values are useful indicators, but a reproducible hardware evaluation should document FPGA clock frequency, image dimensions, preprocessing, model version, precision, number of test samples and timing method. FPGA resource utilization (LUTs, flip-flops, BRAM and DSP slices), power consumption and energy per inference should also be reported from implementation and measurement tools. These values are not supplied in the thesis data used for this manuscript and are therefore not fabricated here.
Prediction reliability in practical farming depends on image focus, illumination, leaf orientation, dataset coverage, sensor calibration and the representativeness of training data. Recommendations for fertilizer and irrigation should be checked against local agronomic guidance and calibrated sensor measurements before being used for field decisions.
-
LIMITATIONS AND FUTURE SCOPE
The pest models reported accuracy is lower than that of the other models and should be improved. Further work should include field- collected images, class-wise precision and recall, confusion matrices and robustness testing under changing illumination and background conditions. Sensor calibration and validation across soil types are also required. The system can be extended with prediction history, alerts, multilingual output in Marathi, Hindi and English, and weather-aware crop recommendation using validated weather and soil inputs.
A more complete performance study should publish FPGA synthesis and implementation reports, resource utilization, power measurements and end-to-end latency for each independent processing path. The model switching or adaptive-reconfiguration mechanism should be described at the implementation level, including how model selection is performed and whether reconfiguration is static, dynamic or partial. Such details are necessary before claiming dynamic partial reconfiguration or generalized acceleration across arbitrary model topologies.
-
CONCLUSION
This paper presented an agricultural intelligence platform integrating four machine-learning taskscrop-disease classification, pest classification, fertilizer recommendation and irrigation prediction with an SPARTAN-7 FPGA, agricultural sensors, an OV7670 camera, an ILI9341 TFT display and a web application. The model evaluation reports Float32 accuracies of 97.31%, 59.49%, 81.95% and 96.05%, with corresponding INT8 accuracies of 96.56%, 57.55%, 81.51% and 96.05%. The project also reports local FPGA inference times of 12.3624 ms for crop-disease detection and 11.416 ms for pest detection. A key architectural feature is the use of two independent processing paths: local inference on the FPGA and separate inference in the website backend. This arrangement avoids splitting a models workload between hardware and server and supports both local and web-based agricultural decision support.
VI. DISCUSSION
The results indicate that a multi-task agricultural model set can be prepared using compact CNN and MLP architectures and evaluated in both Float32 and INT8 formats. Quantization produces modest accuracy changes in the reported results, with the largest decrease observed for pest classification. Therefore, model compression should be evaluated jointly with accuracy, model size, memory use and actual execution latency.
ACKNOWLEDGMENT
The authors sincerely thank Mr. Purushottam Chawke, Assistant Professor, Department of Electronics & Telecommunication Engineering, G H Raisoni College of Engineering and Management, Nagpur, for his guidance and support. The authors also acknowledge the department and institute for providing the academic environment and facilities required to carry out this project.
REFERENCES
-
R. Samanta and B. Saha, Affordable precision agriculture: A deployment- oriented review of low-cost, low-power edge AI and TinyML for resource- constrained farming systems, arXiv preprint arXiv:2603.15085, 2026. https://arxiv.org/abs/2603.15085.
-
J. Zheng, Z. Lv, D. Li, C. Lu, Y. Zhang, L. Fu, X. Huang, J. Huang, D. Chen, and J. Zhang, FPGA-based low-power high-performance CNN accelerator integrating DIST for rice leaf disease classification, Electronics, vol. 14, no. 9, Art. no. 1704, 2025, doi: 10.3390/electronics14091704.
-
A. Krishna, S. R. Nudurupati, D. G. Chandana, P. Dwivedi, A. van Schaik, M. Mehendale, and C. S. Thakur, RAMAN: A re-configurable and sparse TinyML accelerator for inference on edge, IEEE Internet of Things Journal, vol. 11, no. 14, pp. 2483124845, 2024, doi: 10.1109/JIOT.2024.3386832.
-
A. Haijoub, A. Hatim, M. Arioua, S. Hammia, A. Eloualkadi, and A. Guerrero- González, Implementing convolutional neural networks on FPGA: A survey and research, ITM Web of Conferences, vol. 52, Art. no. 02004, 2023, doi: 10.1051/itmconf/20235202004.
-
K. Shi, M. Wang, X. Tan, Q. Li, and T. Lei, Efficient dynamic reconfigurable CNN accelerator for edge intelligence computing on FPGA, Information, vol. 14, no. 3, Art. no. 194, 2023, doi: 10.3390/info14030194.
-
R. David et al., TensorFlow Lite Micro: Embedded machine learning for TinyML systems, Proceedings of Machine Learning and Systems, vol. 3, 2021.
-
A. Osman, U. Abid, L. Gemma, M. Perotto, and D. Brunelli, TinyML platforms benchmarking, in Applications in Electronics Pervading Industry, Environment and Society, Lecture Notes in Electrical Engineering, vol. 866, pp. 139148, Springer, 2022, doi: 10.1007/978-3-030-95498-7_20.
-
S. Soro, TinyML for ubiquitous edge AI, MITRE Technical Report
MTR200519, Sep. 2020. https://arxiv.org/abs/2102.01255.
