STATE-MEMORY VISION AGENT FOR MONITORING SUSPECTED NUTRITIONAL DEFICIENCIES IN LETTUCE: SPECIFICATION, SIMULATION, AND FUNCTIONAL VERIFICATION
Abstract
Nutritional monitoring of hydroponic crops requires following plants over time. A single classification does not define how to act on repeated or contradictory observations. As a proof of concept, this study proposes a vision agent with persistent memory for each plant, using an image classifier for perception. The agent records a request for a new capture at the first suspicion, an alert after two agreeing analyses, suppresses repetitions within a 24-hour window, and refers conflicting results for review. These actions are informational records: no camera was activated, no person was actually notified, and no human review was performed. In a public dataset of 203 images with unverified biological provenance, the classifier correctly classified 87.1% of the 31 exploratory evaluation images. In simulations based on these errors, without cultivation tests, the agent reduced episodes with an alert for the wrong deficiency in deficient plants from 38.6% to 2.1% in the main scenario relative to immediate alerts; episodes with a correct alert decreased from 99.8% to 86.0%, and the alert was recorded later. The results express the trade-off between confirmation and detection under the simulated assumptions, without estimating false alarms in healthy plants. A visual alert indicates a suspicion; its cause and any intervention require technical confirmation.
Author Biographies
Master's student in Control and Automation Engineering at the Instituto Federal do Espírito Santo (Ifes) – Serra Campus.
PhD. Professor and researcher in the Graduate Program in Control and Automation Engineering at the Instituto Federal do Espírito Santo (Ifes) – Serra Campus.
PhD. Professor and researcher in the Graduate Program in Control and Automation Engineering at the Instituto Federal do Espírito Santo (Ifes) – Serra Campus.
PhD. Professor and researcher in the Graduate Program in Control and Automation Engineering at the Instituto Federal do Espírito Santo (Ifes) – Serra Campus.
PhD. Professor and researcher in the Graduate Program in Control and Automation Engineering at the Instituto Federal do Espírito Santo (Ifes) – Serra Campus.
Master's student in Control and Automation Engineering at the Instituto Federal do Espírito Santo (Ifes) – Serra Campus.
Master's student in Control and Automation Engineering at the Instituto Federal do Espírito Santo (Ifes) – Serra Campus.
References
ABADI, M. et al. TensorFlow: A System for Large-Scale Machine Learning. In: USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION (OSDI), 12., 2016, Savannah. Proceedings [...]. Berkeley: USENIX Association, 2016. p. 265–283. Disponível em: https://www.usenix.org/conference/osdi16/technical-sessions/presentation/abadi Acesso em: 23 out. 2026.
ACHENCHABE, Y. et al. Early and Revocable Time Series Classification. In: INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS (IJCNN), 2022, Padova. Proceedings [...]. Piscataway: IEEE, 2022. p. 1–8. DOI: https://doi.org/10.1109/IJCNN55064.2022.9892391 DOI: https://doi.org/10.1109/IJCNN55064.2022.9892391
ADIANGGIALI, A. et al. Classification of Nutrient Deficiencies Based on Leaf Image in Hydroponic Lettuce using MobileNet Architecture. ELKOMIKA: Jurnal Teknik Energi Elektrik, Teknik Telekomunikasi, & Teknik Elektronika, v. 11, n. 4, p. 958–967, 2023. DOI: https://doi.org/10.26760/elkomika.v11i4.958 DOI: https://doi.org/10.26760/elkomika.v11i4.958
BAKIR, C.; GEZER, A. Real-Time Automatic Detection of Nutrient Deficiency in Lettuce Plants With New YOLOV12 Model. Journal of Sensors, v. 2025, n. 1, art. 5592225, 2025. DOI: https://doi.org/10.1155/js/5592225 DOI: https://doi.org/10.1155/js/5592225
BARBEDO, J. G. A. Detection of nutrition deficiencies in plants using proximal images and machine learning: A review. Computers and Electronics in Agriculture, v. 162, p. 482–492, 2019. DOI: https://doi.org/10.1016/j.compag.2019.04.035 DOI: https://doi.org/10.1016/j.compag.2019.04.035
BARONN. Lettuce NPK dataset: hydroponic lettuce with deficiency. Kaggle, 2023. Licença CC0. Disponível em: https://www.kaggle.com/datasets/baronn/lettuce-npk-dataset Acesso em: 3 out. 2026.
CAMPANA, E. et al. A new paradigm in greenhouse horticulture: Integrating resource efficiency for sustainable intensification. Environment, Development and Sustainability, publicação on-line, 2025. DOI: https://doi.org/10.1007/s10668-025-06861-6 DOI: https://doi.org/10.1007/s10668-025-06861-6
CAWLEY, G. C.; TALBOT, N. L. C. On Over-fitting in Model Selection and Subsequent Selection Bias in Performance Evaluation. Journal of Machine Learning Research, v. 11, n. 70, p. 2079–2107, 2010. Disponível em: https://www.jmlr.org/papers/v11/cawley10a.html Acesso em: 23 out. 2026.
CHEN, F. et al. A conversational multi-agent AI system for automated plant phenotyping. Nature Communications, v. 17, n. 1, art. 6391, 2026. DOI: https://doi.org/10.1038/s41467-026-71090-y DOI: https://doi.org/10.1038/s41467-026-71090-y
CHO, W. J. et al. On-site ion monitoring system for precision hydroponic nutrient management. Computers and Electronics in Agriculture, v. 146, p. 51–58, 2018. DOI: https://doi.org/10.1016/j.compag.2018.01.019 DOI: https://doi.org/10.1016/j.compag.2018.01.019
DACHRAOUI, A.; BONDU, A.; CORNUÉJOLS, A. Early Classification of Time Series as a Non Myopic Sequential Decision Making Problem. In: APPICE, A. et al. (ed.). Machine Learning and Knowledge Discovery in Databases: ECML PKDD 2015. Cham: Springer, 2015. p. 433–447. (Lecture Notes in Computer Science, v. 9284). DOI: https://doi.org/10.1007/978-3-319-23528-8_27 DOI: https://doi.org/10.1007/978-3-319-23528-8_27
DAS CHOUDHURY, S. et al. Drought stress prediction and propagation using time series modeling on multimodal plant image sequences. Frontiers in Plant Science, v. 14, art. 1003150, 2023. DOI: https://doi.org/10.3389/fpls.2023.1003150 DOI: https://doi.org/10.3389/fpls.2023.1003150
DENG, J. et al. ImageNet: A large-scale hierarchical image database. In: IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2009, Miami. Proceedings [...]. Piscataway: IEEE, 2009. p. 248–255. DOI: https://doi.org/10.1109/CVPR.2009.5206848 DOI: https://doi.org/10.1109/CVPR.2009.5206848
DOMINGUES, D. S. et al. Automated system developed to control pH and concentration of nutrient solution evaluated in hydroponic lettuce production. Computers and Electronics in Agriculture, v. 84, p. 53–61, 2012. DOI: https://doi.org/10.1016/j.compag.2012.02.006 DOI: https://doi.org/10.1016/j.compag.2012.02.006
GUO, C. et al. On Calibration of Modern Neural Networks. In: INTERNATIONAL CONFERENCE ON MACHINE LEARNING (ICML), 34., 2017, Sydney. Proceedings [...]. Sydney: PMLR, 2017. v. 70, p. 1321–1330. Disponível em: https://proceedings.mlr.press/v70/guo17a.html Acesso em: 23 out. 2026.
HE, S. et al. The Lettuce Nutritional Diagnosis Model of ResNet Improved by Integrating the MSA Mechanism. Horticulturae, v. 12, n. 9, art. 1063, 2026. DOI: https://doi.org/10.3390/horticulturae12091063 DOI: https://doi.org/10.3390/horticulturae12091063
LI, Y. et al. Agent Technology for Agricultural Intelligence: Methodological Framework and Applications. Electronics, v. 15, n. 8, art. 1547, 2026. DOI: https://doi.org/10.3390/electronics15081547 DOI: https://doi.org/10.3390/electronics15081547
OJO, M. O.; ZAHID, A.; MASABNI, J. G. Estimating hydroponic lettuce phenotypic parameters for efficient resource allocation. Computers and Electronics in Agriculture, v. 218, art. 108642, 2024. DOI: https://doi.org/10.1016/j.compag.2024.108642 DOI: https://doi.org/10.1016/j.compag.2024.108642
OPENAI DEVELOPER COMMUNITY. Detecting Dall-E generated images. 13 fev. 2023. Disponível em: https://community.openai.com/t/detecting-dall-e-generated-images/60154 Acesso em: 2 nov. 2026.
PANDEY, P. et al. Predicting foliar nutrient concentrations and nutrient deficiencies of hydroponic lettuce using hyperspectral imaging. Biosystems Engineering, v. 230, p. 458–469, 2023. DOI: https://doi.org/10.1016/j.biosystemseng.2023.05.005 DOI: https://doi.org/10.1016/j.biosystemseng.2023.05.005
REDIS. SET. Documentação oficial do Redis, 2026. Disponível em: https://redis.io/docs/latest/commands/set/ Acesso em: 3 out. 2026.
SAURE, M. C. Causes of the tipburn disorder in leaves of vegetables. Scientia Horticulturae, v. 76, n. 3–4, p. 131–147, 1998. DOI: https://doi.org/10.1016/S0304-4238(98)00153-8 DOI: https://doi.org/10.1016/S0304-4238(98)00153-8
SENDELBACH, S.; FUNK, M. Alarm fatigue: a patient safety concern. AACN Advanced Critical Care, v. 24, n. 4, p. 378–386, 2013. DOI: https://doi.org/10.1097/NCI.0b013e3182a903f9 DOI: https://doi.org/10.4037/NCI.0b013e3182a903f9
SIKATI, J.; NOUAZE, J. C. YOLO-NPK: A Lightweight Deep Network for Lettuce Nutrient Deficiency Classification Based on Improved YOLOv8 Nano. Engineering Proceedings, v. 58, n. 1, art. 31, 2023. DOI: https://doi.org/10.3390/ecsa-10-16256 DOI: https://doi.org/10.3390/ecsa-10-16256
SOARES, C. C. et al. Applications of Machine Learning and Deep Learning for Foliar Nutritional Deficiency: A Systematic Review. AgriEngineering, v. 8, n. 3, art. 101, 2026. DOI: https://doi.org/10.3390/agriengineering8030101 DOI: https://doi.org/10.3390/agriengineering8030101
TAN, M.; LE, Q. V. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. In: INTERNATIONAL CONFERENCE ON MACHINE LEARNING (ICML), 36., 2019, Long Beach. Proceedings [...]. Long Beach: PMLR, 2019. v. 97, p. 6105–6114. Disponível em: https://proceedings.mlr.press/v97/tan19a.html Acesso em: 23 out. 2026.
TARIQ, M. U. et al. Edge-enabled smart agriculture framework: Integrating IoT, lightweight deep learning, and agentic AI for context-aware farming. Results in Engineering, v. 28, art. 107342, 2025. DOI: https://doi.org/10.1016/j.rineng.2025.107342 DOI: https://doi.org/10.1016/j.rineng.2025.107342
WANG, J. et al. An Overview of Industrial Alarm Systems: Main Causes for Alarm Overloading, Research Status, and Open Problems. IEEE Transactions on Automation Science and Engineering, v. 13, n. 2, p. 1045–1061, 2016. DOI: https://doi.org/10.1109/TASE.2015.2464234 DOI: https://doi.org/10.1109/TASE.2015.2464234
WOOLDRIDGE, M.; JENNINGS, N. R. Intelligent Agents: Theory and Practice. The Knowledge Engineering Review, v. 10, n. 2, p. 115–152, 1995. DOI: https://doi.org/10.1017/S0269888900008122 DOI: https://doi.org/10.1017/S0269888900008122
XIE, J. et al. Exploring Nutrient Deficiencies in Lettuce Crops: Utilizing Advanced Multidimensional Image Analysis for Precision Diagnosis. Sensors, v. 25, n. 7, art. 1957, 2025. DOI: https://doi.org/10.3390/s25071957 DOI: https://doi.org/10.3390/s25071957
ZURIATI, Z. et al. Hybrid Machine Learning Approach for Nutrient Deficiency Detection in Lettuce. TIERS Information Technology Journal, v. 6, n. 2, p. 187–204, 2025. DOI: https://doi.org/10.38043/tiers.v6i2.7143 DOI: https://doi.org/10.38043/tiers.v6i2.7143
