An AI-Based Plant Disease Detection and Agri E-Commerce System using Flask and MongoDB
DOI:
https://doi.org/10.15662/IJEETR.2026.0802060Keywords:
Plant Disease Detection, YOLOv8, Deep Learning, Agri E-Commerce, Flask, MongoDB, Precision Agriculture, SMS Notification, Twilio API, Object Detection, Convolutional Neural NetworksAbstract
Agriculture plays a vital role in the economic development of many countries, yet farmers often face significant challenges in identifying crop diseases and accessing quality agricultural products in a timely manner. This paper proposes AgroNest, an AI-Based Plant Disease Detection and Agri E-Commerce System that integrates modern deep learning technology with secure online commerce to support farmers in both crop health management and agricultural product purchasing. The platform provides a web-based interface where farmers can browse, search, and securely purchase agricultural inputs such as seeds, fertilizers, and farming tools. A deep learning-based plant disease detection module allows users to upload images of plant leaves for automated analysis using the YOLOv8 object detection model, which accurately identifies and classifies up to 28 distinct plant disease categories, returning annotated results with bounding boxes and confidence scores. The platform incorporates complete e-commerce functionality including a shopping cart, order management, and payment processing, alongside an automated SMS notification feature powered by the Twilio API that dispatches treatment reminders 48 hours after disease detection. The backend is developed using Flask (Python), MongoDB for flexible NoSQL data management, and Redis for caching and task queuing. Security is enforced through Werkzeug password hashing, JWT-based session management, and role-based access control. Experimental evaluation on 3,000+ labeled leaf images confirmed a mean Average Precision (mAP@0.5) exceeding 91%, while user testing with 30 farmers over three weeks demonstrated high usability, secure transaction handling, and effective notification delivery. The results demonstrate that AI can be practically and affordably integrated into agricultural platforms, contributing meaningfully to precision farming, food security, and sustainable rural development
References
1) Food and Agriculture Organization of the United Nations (FAO), "The State of Food and Agriculture 2022," Rome, 2022.
2) S. P. Mohanty, D. P. Hughes, and M. Salathé, "Using deep learning for image-based plant disease detection," Frontiers in Plant Science, vol. 7, p. 1419, 2016.
3) K. P. Ferentinos, "Deep learning models for plant disease detection and diagnosis," Computers and Electronics in Agriculture, vol. 145, pp. 311–318, 2018.
4) S. Sladojevic et al., "Deep neural networks based recognition of plant diseases by leaf image classification," Computational Intelligence and Neuroscience, vol. 2016, Article ID 3289801, 2016.
5) M. Arsenovic et al., "Real-time plant disease detection using improved YOLO deep learning model," Journal of Imaging, vol. 8, no. 3, p. 67, 2022.
6) J. D. Pujari et al., "Identification and classification of fungal disease affected on agriculture crops using image processing techniques," IJAIM, vol. 3, no. 2, 2016.
7) E. C. Too et al., "A comparative study of fine-tuning deep learning models for plant disease identification," Computers and Electronics in Agriculture, vol. 161, pp. 272–279, 2019.
8) A. Fuentes et al., "A robust deep-learning-based detector for real-time tomato plant diseases and pests recognition," Sensors, vol. 17, no. 9, p. 2022, 2017.
9) J. C. Aker, "Information from markets near and far: Mobile phones and agricultural markets in Niger," American Economic Journal: Applied Economics, vol. 2, no. 3, pp. 46–59, 2010.
10) S. Mittal et al., "e-NAM: A digital intervention for agricultural market reform," Economic and Political Weekly, vol. 53, no. 12, 2018.
11) Q. Zhao et al., "Blockchain-based data security scheme for agricultural e-commerce," IEEE Access, vol. 8, pp. 203295–203308, 2020.
12) M. Mutamba et al., "Mobile phone-based advisory services for agriculture: Review of evidence," ICT in Agriculture, pp. 1–25, 2019.
13) C.Nagarajan and M.Madheswaran - ‘Stability Analysis of Series Parallel Resonant Converter with Fuzzy Logic Controller Using State Space Techniques’- Taylor &Francis, Electric Power Components and Systems, Vol.39 (8), pp.780-793, May 2011. DOI: 10.1080/15325008.2010.541746
14) C.Nagarajan and M.Madheswaran - ‘Experimental verification and stability state space analysis of CLL-T Series Parallel Resonant Converter’ - Journal of Electrical Engineering, Vol.63 (6), pp.365-372, Dec.2012. DOI: 10.2478/v10187-012-0054-2
15) C.Nagarajan and M.Madheswaran - ‘Performance Analysis of LCL-T Resonant Converter with Fuzzy/PID Using State Space Analysis’- Springer, Electrical Engineering, Vol.93 (3), pp.167-178, September 2011. DOI 10.1007/s00202-011-0203-9
16) S.Tamilselvi, R.Prakash, C.Nagarajan,“Solar System Integrated Smart Grid Utilizing Hybrid Coot-Genetic Algorithm Optimized ANN Controller” Iranian Journal Of Science And Technology-Transactions Of Electrical Engineering, DOI10.1007/s40998-025-00917-z,2025
17) S.Tamilselvi, R.Prakash, C.Nagarajan,“ Adaptive sliding mode control of multilevel grid-connected inverters using reinforcement learning for enhanced LVRT performance” Electric Power Systems Research 253 (2026) 112428, doi.org/10.1016/j.epsr.2025.112428
18) S.Thirunavukkarasu, C. Nagarajan, 2024, “Performance Investigation on OCF and SCF study in BLDC machine using FTANN Controller," Journal of Electrical Engineering And Technology, Volume 20, pages 2675–2688, (2025), doi.org/10.1007/s42835-024-02126-w
19) C. Nagarajan, M.Madheswaran and D.Ramasubramanian- ‘Development of DSP based Robust Control Method for General Resonant Converter Topologies using Transfer Function Model’- Acta Electrotechnica et Informatica Journal , Vol.13 (2), pp.18-31,April-June.2013, DOI: 10.2478/aeei-2013-0025.
20) C.Nagarajan and M.Madheswaran - ‘DSP Based Fuzzy Controller for Series Parallel Resonant converter’- Springer, Frontiers of Electrical and Electronic Engineering, Vol. 7(4), pp. 438-446, Dec.12. DOI 10.1007/s11460-012-0212-0.
21) C.Nagarajan and M.Madheswaran - ‘Experimental Study and steady state stability analysis of CLL-T Series Parallel Resonant Converter with Fuzzy controller using State Space Analysis’- Iranian Journal of Electrical & Electronic Engineering, Vol.8 (3), pp.259-267, September 2012.
22) C.Nagarajan and M.Madheswaran, “Analysis and Simulation of LCL Series Resonant Full Bridge Converter Using PWM Technique with Load Independent Operation” has been presented in ICTES’08, a IEEE / IET International Conference organized by M.G.R.University, Chennai.Vol.no.1, pp.190-195, Dec.2007
23) Suganthi Mullainathan, Ramesh Natarajan, “An SPSS and CNN modelling based quality assessment using ceramic materials and membrane filtration techniques”, Revista Materia (Rio J.) Vol. 30, 2025, DOI: https://doi.org/10.1590/1517-7076-RMAT-2024-0721
24) M Suganthi, N Ramesh, “Treatment of water using natural zeolite as membrane filter”, Journal of Environmental Protection and Ecology, Volume 23, Issue 2, pp: 520-530,2022
25) V. V. Krishna et al., "SMS-based weather advisory and its impact on smallholder farmers," Journal of Agricultural Extension, vol. 22, no. 1, 2018.
26) G. Jocher et al., "Ultralytics YOLOv8," GitHub repository, 2023. [Online]. Available: https://github.com/ultralytics/ultralytics
27) S. Verma and P. Kumar, "NoSQL databases in agricultural information systems," Information Processing in Agriculture, vol. 11, no. 1, pp. 34–45, 2024.
28) B. Liu et al., "A high-performance plant disease detection system using YOLOv5," Sensors, vol. 22, no. 10, p. 3789, 2022.
29) X. Li et al., "Real-time plant disease recognition using YOLOv8 and edge computing," Sensors, vol. 23, no. 14, p. 6775, 2023.
30) M. Vieira et al., "Security guidelines for Flask web application development," International Journal of Web Engineering, vol. 17, no. 3, 2018.
31) J. Han et al., "Security practices for MongoDB deployments in agricultural IoT platforms," IEEE Internet of Things Journal, vol. 7, no. 4, pp. 2935–2946, 2020.
32) C. Barrett et al., "Digital disruption in agriculture: Challenges and opportunities for smallholder farmers," World Development, vol. 117, pp. 37–49, 2019.





