Lettuce Plant Disease Recognition Using Android-Based CNN Algorithm Method

Authors

  • RZ Abdul Aziz Magister Informatics Engineering, Faculty Computer Science, Institute Informatics and Business Darmajaya, Bandar Lampung, Indonesia Author https://orcid.org/0000-0002-2029-0442
  • MS Hasibuan Magister Informatics Engineering, Faculty Computer Science, Institute Informatics and Business Darmajaya, Bandar Lampung, Indonesia Author https://orcid.org/0000-0002-9542-1574
  • Nanda Satria Putra Magister Informatics Engineering, Faculty Computer Science, Institute Informatics and Business Darmajaya, Bandar Lampung, Indonesia Author

DOI:

https://doi.org/10.56294/saludcyt20262641

Keywords:

Plant Disease Detection, Convolution Neural Network, TensorFlow Lite, Android, Lettuce

Abstract

Introduction: Disease detection in lettuce (Lactuca sativa L.) is crucial to enhance crop yields and prevent losses caused by bacterial, fungal, and weed-related infections. This study aimed to develop an Android-based lettuce disease detection application using a Convolutional Neural Network (CNN) algorithm to assist farmers in identifying plant diseases in real time.

Method: The research used a dataset of 2,320 lettuce leaf images obtained from Kaggle, categorized as healthy, bacterial, fungal, and shepherd’s purse weed. The dataset was preprocessed through labeling, normalization, and augmentation to improve model robustness. The CNN architecture comprised four convolution layers followed by max-pooling, dense, and softmax output layers. The model was trained using TensorFlow and deployed through TensorFlow Lite for mobile implementation.

Results: The CNN model achieved 93,67 % training accuracy and 93,99 % validation accuracy, demonstrating good generalization without overfitting. The evaluation using confusion matrix and classification reports showed high performance, particularly in identifying healthy and shepherd’s purse weed categories with F1-scores of 0.94 and 0.99, respectively. The Android application successfully detected diseases in real time and provided users with diagnostic results, historical data, and treatment suggestions.

Conclusions: The developed CNN-based Android application proved effective for automatic lettuce disease detection with high accuracy and practical usability for farmers. Future studies could enhance performance through more advanced CNN architectures such as VGG16 or ResNet50 and the use of more detailed datasets for improved disease classification.

References

1. Nurhidayati, Machfudz M, Basit A. Yield and Nutritional Quality of Green Leafy Lettuce (Lactuca sativa L.) under Soilless Culture System Using Various Composition of Growing Media and Vermicompost Rates. Caraka Tani: Journal of Sustainable Agriculture 2021; 36: 201–212. DOI: https://doi.org/10.20961/carakatani.v36i2.46131

2. Ban S, Tian M, Hu D, et al. Evaluation and Early Detection of Downy Mildew of Lettuce Using Hyperspectral Imagery. Agriculture (Switzerland); 15. Epub ahead of print 1 March 2025. DOI: 10.3390/agriculture15050444. DOI: https://doi.org/10.3390/agriculture15050444

3. Ferentinos KP. Deep learning models for plant disease detection and diagnosis. Comput Electron Agric 2018; 145: 311–318. DOI: https://doi.org/10.1016/j.compag.2018.01.009

4. Deng W, Zhou F, Gong Z, et al. Disease Feature Recognition of Hydroponic Lettuce Images Based on Support Vector Machine. Traitement du Signal 2022; 39: 617–625.

5. Sanida MV, Sanida T, Sideris A, et al. An Efficient Hybrid CNN Classification Model for Tomato Crop Disease. Technologies (Basel); 11. Epub ahead of print 1 February 2023. DOI: 10.3390/technologies11010010. DOI: https://doi.org/10.3390/technologies11010010

6. Zhou X, Sun J, Tian Y, et al. Hyperspectral technique combined with deep learning algorithm for detection of compound heavy metals in lettuce. Food Chem; 321. Epub ahead of print 15 August 2020. DOI: 10.1016/j.foodchem.2020.126503. DOI: https://doi.org/10.1016/j.foodchem.2020.126503

7. Orchi H, Sadik M, Khaldoun M. On using artificial intelligence and the internet of things for crop disease detection: A contemporary survey. Agriculture (Switzerland); 12. Epub ahead of print 1 January 2022. DOI: 10.3390/agriculture12010009. DOI: https://doi.org/10.3390/agriculture12010009

8. Handoyono NA, Rabiman R. Development of android-based learning application in EFI materials for vocational schools. In: Journal of Physics: Conference Series. Institute of Physics Publishing, 2020. Epub ahead of print 11 February 2020. DOI: 10.1088/1742-6596/1456/1/012050. DOI: https://doi.org/10.1088/1742-6596/1456/1/012050

9. Yang R, Wu Z, Fang W, et al. Detection of abnormal hydroponic lettuce leaves based on image processing and machine learning. Information Processing in Agriculture 2023; 10: 1–10. DOI: https://doi.org/10.1016/j.inpa.2021.11.001

10. Pang B, Nijkamp E, Wu YN. Deep Learning With TensorFlow: A Review. Journal of Educational and Behavioral Statistics 2020; 45: 227–248. DOI: https://doi.org/10.3102/1076998619872761

11. Huber P, Calatroni A, Rumsch A, et al. Review on Deep Neural Networks Applied to Low-Frequency NILM. Epub ahead of print 15 April 2021. DOI: 10.20944/preprints202104.0421.v1. DOI: https://doi.org/10.20944/preprints202104.0421.v1

12. Singka P, Nakthap N, Bunnjaweht D, et al. An AI-Based Growth Assessment of Green Oak Leaf Lettuce via LINE Chatbot for Amateur Growers: A Preliminary Study. In: 2024 Joint International Conference on Digital Arts, Media and Technology with ECTI Northern Section Conference on Electrical, Electronics, Computer and Telecommunications Engineering (ECTI DAMT & NCON). 2024, pp. 275–279. DOI: https://doi.org/10.1109/ECTIDAMTNCON60518.2024.10480003

13. Nashif S, Raihan MdR, Islam MdR, et al. Heart Disease Detection by Using Machine Learning Algorithms and a Real-Time Cardiovascular Health Monitoring System. World Journal of Engineering and Technology 2018; 06: 854–873. DOI: https://doi.org/10.4236/wjet.2018.64057

14. Casalinuovo IA, Di Pierro D, Coletta M, et al. Application of Electronic Noses for Disease Diagnosis and Food Spoilage Detection. Sensors 2006; 6: 1428–1439. DOI: https://doi.org/10.3390/s6111428

15. Quaranta L, Calefato F, Lanubile F. KGTorrent: A Dataset of Python Jupyter Notebooks from Kaggle. Epub ahead of print 18 March 2021. DOI: 10.1109/MSR52588.2021.00072. DOI: https://doi.org/10.1109/MSR52588.2021.00072

16. Sarkar C, Gupta D, Gupta U, et al. Leaf disease detection using machine learning and deep learning: Review and challenges. Applied Soft Computing; 145. Epub ahead of print 1 September 2023. DOI: 10.1016/j.asoc.2023.110534. DOI: https://doi.org/10.1016/j.asoc.2023.110534

17. Bauer A, Bostrom AG, Ball J, et al. Combining computer vision and deep learning to enable ultra-scale aerial phenotyping and precision agriculture: A case study of lettuce production. Hortic Res; 6. Epub ahead of print 1 December 2019. DOI: 10.1038/s41438-019-0151-5. DOI: https://doi.org/10.1038/s41438-019-0151-5

18. Nakhmani A, Tannenbaum A. A new distance measure based on generalized Image Normalized Cross-Correlation for robust video tracking and image recognition. Pattern Recognit Lett 2013; 34: 315–321. DOI: https://doi.org/10.1016/j.patrec.2012.10.025

19. Alomar K, Aysel HI, Cai X. Data Augmentation in Classification and Segmentation: A Survey and New Strategies. J Imaging; 9. Epub ahead of print 1 February 2023. DOI: 10.3390/jimaging9020046. DOI: https://doi.org/10.3390/jimaging9020046

20. Montesinos López OA, Montesinos López A, Crossa J. Overfitting, Model Tuning, and Evaluation of Prediction Performance. In: Multivariate Statistical Machine Learning Methods for Genomic Prediction. Springer International Publishing, 2022, pp. 109–139. DOI: https://doi.org/10.1007/978-3-030-89010-0_4

21. Deng W, Zhou F, Gong Z, et al. Disease Feature Recognition of Hydroponic Lettuce Images Based on Support Vector Machine. Traitement du Signal 2022; 39: 617–625. DOI: https://doi.org/10.18280/ts.390224

22. Rizkinaswara L. domain go.id dan desa.id. aptika.kominfo 2020; https://aptika.kominfo.go.id/2020/01/8312/.

23. Barnett D, Arts I, Penders J. microViz: an R package for microbiome data visualization and statistics. J Open Source Softw 2021; 6: 3201. DOI: https://doi.org/10.21105/joss.03201

24. Ahmad PN, Guo J, AboElenein NM, et al. Hierarchical graph-based integration network for propaganda detection in textual news articles on social media. Sci Rep; 15. Epub ahead of print 1 December 2025. DOI: 10.1038/s41598-024-74126-9. DOI: https://doi.org/10.1038/s41598-024-74126-9

25. Salih AA, Abdulazeez AM. Evaluation of Classification Algorithms for Intrusion Detection System: A Review. Journal of Soft Computing and Data Mining 2021; 2: 31–40.

26. Maxwell AE, Warner TA, Guillén LA. Accuracy assessment in convolutional neural network-based deep learning remote sensing studies—part 1: Literature review. Remote Sensing; 13. Epub ahead of print 1 July 2021. DOI: 10.3390/rs13132450. DOI: https://doi.org/10.3390/rs13132450

27. Fu Y, Wang F, Shao Z, et al. On the Integration of Spatial-Temporal Knowledge: A Lightweight Approach to Atmospheric Time Series Forecasting, http://arxiv.org/abs/2408.09695 (2025).

28. Joseph VR, Vakayil A. SPlit: An Optimal Method for Data Splitting. Technometrics 2022; 64: 166–176. DOI: https://doi.org/10.1080/00401706.2021.1921037

Downloads

Published

2026-01-01

How to Cite

1.
Aziz RA, Hasibuan M, Putra NS. Lettuce Plant Disease Recognition Using Android-Based CNN Algorithm Method. Salud, Ciencia y Tecnología [Internet]. 2026 Jan. 1 [cited 2025 Dec. 29];6:2641. Available from: https://sct.ageditor.ar/index.php/sct/article/view/2641