Development of a Mobile Solution for Offline Disease Diagnosis in Moringa Leaves Using Convolutional Neural Networks
DOI:
https://doi.org/10.33736/jese.14055.2026Abstract
Mobile-based disease detection has become an important tool for crop health monitoring in resource-limited farming settings. Moringa oleifera is a fast-growing, drought-resistant, and highly nutritious tree that is nonetheless vulnerable to leaf diseases such as leaf spot, bacterial blight, powdery mildew, insect damage, rust and nutritional deficiency, yet very few diagnostic tools exist for this underutilised crop. This study presents the development of an offline mobile expert system for Moringa leaf disease diagnosis that combines convolutional neural networks (CNNs) with cross-platform mobile deployment. A total of 110 Moringa leaf images were collected, of which 102 images spanning six disease categories and a healthy class were pre-processed in MATLAB using resizing, Contrast Limited Adaptive Histogram Equalisation, Gaussian blur and RGB normalisation, then used to train and compare six pretrained CNN architectures—SqueezeNet, MobileNetV2, ResNet-18, ResNet-50, ResNet-101 and DenseNet-201—against accuracy, training time and model size. SqueezeNet reached the highest hold-out validation accuracy (52.63%, shared with MobileNetV2 and ResNet-101) with the shortest training time and the smallest model, around 95% smaller than ResNet-50, and was therefore selected for deployment. When the trained models were applied to all 102 dataset images, which include the training images, SqueezeNet, MobileNetV2 and ResNet-18 achieved 89.22%, 82.35% and 90.20%, respectively. Retaining RGB colour information improved accuracy by more than 10% relative to greyscale input. SqueezeNet was converted to ONNX and then to TensorFlow Lite, and embedded in a Flutter-based Android application designed for fully offline inference together with a local SQLite disease-and-treatment knowledge base. Mobile-integration testing confirmed offline image selection and on-device processing but also revealed implementation challenges, including intermittent inference failures linked to image-tensor handling in the Flutter runtime. The results demonstrate that lightweight CNNs can be practically deployed for offline plant disease diagnosis and support the broader goal of delivering accessible, data-driven agricultural tools to smallholder and rural Moringa farmers
References
References
Alegbeleye, O. O. (2018). How functional is Moringa oleifera? A review of its nutritive, medicinal, and socioeconomic potential. Food and Nutrition Bulletin, 39(1), 149–170. https://doi.org/10.1177/0379572117749814
Kashyap, P., Kumar, S., Riar, C. S., Jindal, N., Baniwal, P., Guiné, R. P. F., Correia, P. M. R., Mehra, R., & Kumar, H. (2022). Recent advances in drumstick (Moringa oleifera) leaves bioactive compounds: Composition, health benefits, bioaccessibility, and dietary applications. Antioxidants, 11(2), 402. https://doi.org/10.3390/antiox11020402
Bartíková, M., Holková, L., Šafránková, I., & Němec, P. (2020). Causal agents of powdery mildew on Moringa stenopetala (Baker f.) Cuf. and Moringa oleifera Lam. in Ethiopia. South African Journal of Botany, 129, 457–462. https://doi.org/10.1016/j.sajb.2019.12.002
Nair, R. R., Selvi, R. S., Vartini, G. H., Jayashri, B., Suruthi, S., & Anand, A. J. (2023). Maturity level classification of Moringa leaf using DNN algorithm. In Proceedings of the 4th International Conference on Smart Electronics and Communication (ICOSEC 2023) (pp. 1667–1672). IEEE. https://doi.org/10.1109/ICOSEC58147.2023.10276048
Chakraborty, S., & Newton, A. C. (2011). Climate change, plant diseases and food security: An overview. Plant Pathology, 60(1), 2–14. https://doi.org/10.1111/j.1365-3059.2010.02411.x
Sharma, K., Jayanthi, J., Kumar, A., Jain, S., Jain, G., & Vishwakarma, H. (2024). Computer vision based smart leaf disease detection system. In 2024 IEEE International Students' Conference on Electrical, Electronics and Computer Science (SCEECS 2024). IEEE. https://doi.org/10.1109/SCEECS61402.2024.10481853
Nikith, B. V., Keerthan, N. K. S., Praneeth, M. S., & Amrita, D. T. (2023). Leaf disease detection and classification. Procedia Computer Science, 218, 291–300. https://doi.org/10.1016/j.procs.2023.01.011
Reis-Pereira, M., Tosin, R., Martins, R. C., Dos Santos, F. N., Tavares, F., & Cunha, M. (2023). Enhancing kiwi bacterial canker leaf assessment: Integrating hyperspectral-based vegetation indexes in predictive modeling. Engineering Proceedings, 48(1), 22. https://doi.org/10.3390/CSAC2023-14920
Wan, L., Li, H., Li, C., Wang, A., Yang, Y., & Wang, P. (2022). Hyperspectral sensing of plant diseases: Principle and methods. Agronomy, 12(6), 1451. https://doi.org/10.3390/agronomy12061451
Ganatra, N., & Patel, A. (2020). A multiclass plant leaf disease detection using image processing and machine learning techniques. International Journal on Emerging Technologies, 11(2), 388–421.
Venkatachala Appa Swamy, M., Periyasamy, J., Thangavel, M., Khan, S. B., Almusharraf, A., Santhanam, P., Ramaraj, V., & Elsisi, M. (2023). Design and development of IoT and deep ensemble learning based model for disease monitoring and prediction. Diagnostics, 13(11), 1942. https://doi.org/10.3390/diagnostics13111942
Rehman, A., Saba, T., Kashif, M., Fati, S. M., Bahaj, S. A., & Chaudhry, H. (2022). A revisit of internet of things technologies for monitoring and control strategies in smart agriculture. Agronomy, 12(1), 127. https://doi.org/10.3390/agronomy12010127
Kumar, D. H., & Punniakodi, S. (2024). Rice leaf disease detection using ResNet50. In 2024 International Conference on Signal Processing, Computation, Electronics, Power and Telecommunication (IConSCEPT 2024). IEEE. https://doi.org/10.1109/IConSCEPT61884.2024.10627835
Saputra, A. D., Hindarto, D., & Santoso, H. (2023). Disease classification on rice leaves using DenseNet121, DenseNet169, DenseNet201. Sinkron, 8(1), 48–55. https://doi.org/10.33395/sinkron.v8i1.11906
Da Silva, P. E. C., & Almeida, J. (2025). An edge computing-based solution for real-time leaf disease classification using thermal imaging. IEEE Geoscience and Remote Sensing Letters, 22. https://doi.org/10.1109/LGRS.2024.3456637
Haq, M. K., Tanvir, K., Kabir, M. S., Alam, N. S. B., Dey, S. K., & Raju, V. (2024). Enhancing banana leaf spot disease classification using dense MobileNetV2. In Proceedings – 3rd International Conference on Advances in Computing, Communication and Applied Informatics (ACCAI 2024). IEEE. https://doi.org/10.1109/ACCAI61061.2024.10602228
Grace, M., Gatan, B., Joshi, R., Dale, P., Roman, O., & Gatan, M. T. (2020). Diseases of Moringa and their management [SSRN Working Paper No. 3582292]. https://doi.org/10.2139/ssrn.3582292
Hasan, M. N., Mustavi, M., Jubaer, M. A., Shahriar, M. T., & Ahmed, T. (2022). Plant leaf disease detection using image processing: A comprehensive review. Malaysian Journal of Science and Advanced Technology, 2(4), 174–182. https://doi.org/10.56532/mjsat.v2i4.80
Daqing, W., Lin, L., Xinglong, Y., Lili, G., & Zhipeng, R. (2023). Maize leaf diseases identification using EfficientNet based on deep transfer learning. Journal of Northeast Agricultural University, 2023(5), 66–76. https://doi.org/10.19720/j.cnki.issn.1005-9369.2023.05.008
Kurihara, J., Koo, V. C., Guey, C. W., Lee, Y. P., & Abidin, H. (2022). Early detection of basal stem rot disease in oil palm tree using unmanned aerial vehicle-based hyperspectral imaging. Remote Sensing, 14(3), 799. https://doi.org/10.3390/rs14030799