AI-Enabled IoT-Based Hydroponic Farming with Embedded Automation and Nutrient Prediction
Abstract
1. Introduction and Background
- A dual-stream AI pipeline with computer vision and inference extracted from the sensors.
- MobileNetV2 for plant disease classification and a decision tree for nutrient deficiency prediction.
- Cloud-synchronized digital twin with Microsoft Azure Digital Twins for real-time monitoring.
- Closed-loop actuator control (pumps, dozers, ventilation) with all control based on sensor data.
- An inbuilt AI chatbot for handling client queries was integrated with a web-based monitoring dashboard.
2. Related Work
2.1. Smart and Automated Hydroponic Systems
2.2. AI and Machine Learning for Hydroponics
3. Materials and Methods
3.1. Conceptual Framework
3.2. Four-Layer System Architecture
3.3. System Operational Flow
4. Proposed System Architecture and Implementation
4.1. Subsystem Design Overview
4.2. DWC Hydroponic Subsystem
4.3. Sensor Subsystem
4.4. Circuit and Hardware Interface
4.5. Processing and Inference Subsystem
4.6. Nutrient Solution and Composition
4.7. Cloud Communication Subsystem
4.8. Digital Twin Modeling and State Synchronization
4.9. Application and Visualization Subsystem
4.10. Simulation and Validation
5. Models and Performance Evaluation
5.1. Digital Twin Integration and System Functionality
5.2. Plant Disease Detection
5.2.1. Dataset
5.2.2. Model Implementation
5.2.3. Performance Evaluation
5.2.4. Confusion Matrix Analysis
5.3. Nutrient Prediction Model
5.3.1. Dataset of the Model
5.3.2. Implementation of Model
5.3.3. Performance Evaluation of the Model
5.3.4. Confusion Matrix Analysis
5.3.5. Comparative Evaluation with Baseline Methods
5.3.6. Predictive Control Model for Nutrient Control and Actuation
5.3.7. Nutrient Prediction and Automated Control
5.4. System Performance and Observations
5.5. Discussion and Comparative Analysis
6. Comparison of Hydro Grow with Existing Hydroponic Systems
7. Results and Discussion
8. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Chatterjee, A.; Ghosh, P.; Winkler, B.; Vijayaragavan, V.; Debnath, S.; Cichocki, J.; Trenkner, M.; Vanicela, B.; Riethmueller, C.; Walz, M.; et al. Demystifying the Integration of Hydroponics Cultivation System Reinforcing Bioeconomy and Sustainable Agricultural Growth. Sci. Hortic. 2025, 341, 113973. [Google Scholar] [CrossRef] [Scilit]
- Lakhiar, I.A.; Yan, H.; Syed, T.N.; Zhang, C.; Shaikh, S.A.; Rakibuzzaman, M.; Vistro, R.B. Soilless Agricultural Systems: Opportunities, Challenges, and Applications for Enhancing Horticultural Resilience to Climate Change and Urbanization. Horticulturae 2025, 11, 568. [Google Scholar] [CrossRef] [Scilit]
- Gómez, C.; Currey, C.J.; Dickson, R.W.; Kim, H.; Hernández, R.; Sabeh, N.C.; Raudales, R.E.; Brumfield, R.G.; Laury-Shaw, A.; Wilke, A.K.; et al. Controlled Environment Food Production for Urban Agriculture. HortScience 2019, 54, 1448–1458. [Google Scholar] [CrossRef] [Scilit]
- Ragaveena, S.; Edward, A.S.; Umashankar, U. Smart Controlled Environment Agriculture Methods: A Holistic Review. Rev. Environ. Sci. Biotechnol. 2021, 20, 887–913. [Google Scholar] [CrossRef] [Scilit]
- Kaur, G.; Upadhyaya, P.; Chawla, P. Comparative Analysis of IoT-Based Controlled Environment and Uncontrolled Environment Plant Growth Monitoring System. Environ. Res. 2023, 222, 115313. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Niswar, M. Design and Implementation of an Automated Indoor Hydroponic Farming System Based on the IoT. Int. J. Comput. Digit. Syst. 2024, 15, 337–346. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dutta, M.; Gupta, D.; Tharewal, S.; Goyal, D.; Sandhu, J.K.; Kaur, M.; Alzubi, A.A.; Alanazi, J.M. Internet of Things-Based Smart Precision Farming in Soilless Agriculture. IEEE Access 2025, 13, 34238–34268. [Google Scholar] [CrossRef] [Scilit]
- Raju, S.V.S.R.; Dappuri, B.; Varma, P.R.K.; Yachamaneni, M.; Verghese, D.M.G.; Mishra, M.K. Design and Implementation of Smart Hydroponics Farming Using IoTbased AI Controller with Mobile Application System. J. Nanomater. 2022, 2022, 4435591. [Google Scholar] [CrossRef] [Scilit]
- Amirrudin, N.B.; Muslim, N.I.S.B.; Ahmad, N.I.B.; Amirrudin, F.A.B.; Yusof, K.H.B. Performance Analysis of an IoT Hydroponic System under Non-Optimal PH and Nutrient Conditions. In Proceedings of the 2025 IEEE 16th Control and System Graduate Research Colloquium (ICSGRC), Shah Alam, Malaysia, 2 August 2025; pp. 99–104. [Google Scholar]
- Dhal, S.B.; Mahanta, S.; Gumero, J.; O’Sullivan, N.; Soetan, M.; Louis, J.; Gadepally, K.C.; Mahanta, S.; Lusher, J.; Kalafatis, S. An IoT-Based Data-Driven Real-Time Monitoring System for Control of Heavy Metals to Ensure Optimal Lettuce Growth in Hydroponic Set-Ups. Sensors 2023, 23, 451. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dhal, S.; Mahanta, S.; Moore, J.; Kalafatis, S. Machine Learning-Based Analysis of Nutrient and Water Uptake in Hydroponically Grown Soybeans. Sci. Rep. 2024, 14, 24337. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Priya, G.L.; Baskar, C.; Deshmane, S.S.; Adithya, C.; Das, S. Revolutionizing Holy-Basil Cultivation with AI-Enabled Hydroponics System. IEEE Access 2023, 11, 82624–82639. [Google Scholar] [CrossRef] [Scilit]
- Rofiansyah, W.; Zalianty, F.; La Ito, F.; Wijayanto, I.; Ryanu, H.H.; Irawati, I.D. IoT-Based Control and Monitoring System for Hydroponic Plant Growth Using Image Processing and Mobile Applications. PeerJ Comput. Sci. 2025, 11, e2763. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ashwinkumar, S.; Rajagopal, S.; Manimaran, V.; Jegajothi, B. Automated Plant Leaf Disease Detection and Classification Using Optimal MobileNet Based Convolutional Neural Networks. Mater. Today Proc. 2021, 51, 480–487. [Google Scholar] [CrossRef] [Scilit]
- Jans-Singh, M.; Leeming, K.; Choudhary, R.; Girolami, M. Digital Twin of an Urban-Integrated Hydroponic Farm. Data-Centric Eng. 2020, 1, e20. [Google Scholar] [CrossRef] [Scilit]
- Yanes, A.; Abbasi, R.; Martinez, P.; Ahmad, R. Digital Twinning of Hydroponic Grow Beds in Intelligent Aquaponic Systems. Sensors 2022, 22, 7393. [Google Scholar] [CrossRef] [Scilit]
- Alves, R.; Maia, R.; Lima, F. Development of a Digital Twin for Smart Farming: Irrigation Management System for Water Saving. J. Clean. Prod. 2023, 388, 135920. [Google Scholar] [CrossRef] [Scilit]
- Verma, S.; Kumar, A.; Kumari, M.; Kumar S, N.; Hansda, S.; Saurabh, A.; Poonia, S.; Rathore, S.D. A Review on Hydroponics and Vertical Farming for Vegetable Cultivation: Innovations and Challenges. J. Exp. Agric. Int. 2024, 46, 801–821. [Google Scholar] [CrossRef] [Scilit]
- Kurniasari, A.A.; Dewi Puspitasari, P.S.; Perdanasari, L.; Mei Yuana, D.B.; Jumiatun. Enhancing Hydroponic Systems with ESP32: An IoT Approach to Real-Time Monitoring and Automation. Proc. IOP Conf. Ser. Earth Environ. Sci. 2025, 1446, 012010. [Google Scholar] [CrossRef] [Scilit]
- Shin, K.K.Y.; Ping, T.P.; Ling, M.G.B.; Jiun, C.C.; Bolhassan, N.A.B. SMART GROW—Low-Cost Automated Hydroponic System for Urban Farming. HardwareX 2023, 17, e00498. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Febriana R., K.; Thakur, R.; Roy, S. Enhancing Hydroponic Farming Productivity through IoT-Based Multi-Sensor Monitoring System. In Proceedings of the 9th International Conference on Internet of Things, Big Data and Security—IoTBDS; SciTePress: Setúbal, Portugal, 2024; pp. 351–357. [Google Scholar] [CrossRef] [Scilit]
- Suresh, C.; Subramanian, S. Enhancing Hydroponic Farming Using IoT Integration and Machine Learning Techniques. In Proceedings of the 2025 International Conference on Multi-Agent Systems for Collaborative Intelligence (ICMSCI), Erode, India, 20–22 January 2025; pp. 439–444. [Google Scholar]
- Awal, A.; Pio, A.S.; Mim, M.J.; Partha, P.K.P.; Al Kafi, A.; Farha, S. A Smart IoT Based Hydroponics System for Small-Scale Households in Bangladesh. Smart Agric. Technol. 2025, 12, 101163. [Google Scholar] [CrossRef] [Scilit]
- Anjini, R.; Jenifer, J.; Blessy, M. IoT Based Automated Hydroponics Greenhouse Monitoring. Int. J. Adv. Res. Sci. Commun. Technol. 2021, 4, 671–681. [Google Scholar] [CrossRef] [Scilit]
- Bhargava, Y.V.; Chittoor, P.K.; Bharatiraja, C.; Verma, R.; Sathiyasekar, K. Sensor Fusion Based Intelligent Hydroponic Farming and Nursing System. IEEE Sens. J. 2022, 22, 14584–14591. [Google Scholar] [CrossRef] [Scilit]
- Rahman, A.; Chakraborty, N.R.; Sufiun, A.; Banshal, S.K.; Tajnin, F.R. An AIoT-Based Hydroponic System for Crop Recommendation and Nutrient Parameter Monitorization. Smart Agric. Technol. 2024, 8, 100472. [Google Scholar] [CrossRef] [Scilit]
- Diaz-Delgado, D.; Rodriguez, C.; Bernuy-Alva, A.; Navarro, C.; Inga-Alva, A. Optimization of Vegetable Production in Hydroculture Environments Using Artificial Intelligence: A Literature Review. Sustainability 2025, 17, 3103. [Google Scholar] [CrossRef] [Scilit]
- Hukkeri, G.; Soundarya, B.; Gururaj, H.; Ravi, V. Classification of Various Plant Leaf Diseases Using Pretrained Convolutional Neural Network on ImageNet. Open Agric. J. 2024, 18, e18743315305194. [Google Scholar] [CrossRef] [Scilit]
- Imanulloh, S.; Muslikh, A.; Setiadi, D. Plant Diseases Classification Based Leaves Image Using Convolutional Neural Network. J. Comput. Theor. Appl. 2023, 1, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Kc, K.; Yin, Z.; Wu, M.; Wu, Z. Depthwise Separable Convolution Architectures for Plant Disease Classification. Comput. Electron. Agric. 2019, 165, 104948. [Google Scholar] [CrossRef] [Scilit]
- Singla, P.; Kalavakonda, V.; Senthil, R. Detection of Plant Leaf Diseases Using Deep Convolutional Neural Network Models. Multimed. Tools Appl. 2024, 83, 64533–64549. [Google Scholar] [CrossRef] [Scilit]
- Ahsen, R.; Di Bitonto, P.; Novielli, P.; Magarelli, M.; Romano, D.; Diacono, D.; Monaco, A.; Amoroso, N.; Bellotti, R.; Tangaro, S. Harnessing Digital Twins for Sustainable Agricultural Water Management: A Systematic Review. Appl. Sci. 2025, 15, 4228. [Google Scholar] [CrossRef] [Scilit]
- Fernández, R.; Navas, E.; Rodríguez-Nieto, D.; Rodríguez-González, A.A.; Emmi, L. DigiHortiRobot: An AI-Driven Digital Twin Architecture for Hydroponic Greenhouse Horticulture with Dual-Arm Robotic Automation. Future Internet 2025, 17, 347. [Google Scholar] [CrossRef] [Scilit]
- Yang, Z.; Xia, J.; Li, S.; Zheng, L.; Zhang, S.; Liu, L.; Fu, Y.; Liu, Y. Band-Kernel Stochastic Learning for Unsupervised Blind Hyperspectral Image Super-Resolution. IEEE Trans. Pattern Anal. Mach. Intell. 2026, 48, 9895–9913. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, Q.; Guo, H.; Yang, C.; He, Y.; Chen, X.; Xu, B. A Study on the Enhancement Method for Seam Extraction in Teachless Welding Robots Based on a Multichannel Feature Fusion Network. Int. J. Adv. Manuf. Technol. 2025, 141, 647–660. [Google Scholar] [CrossRef] [Scilit]
- Xie, J.; Wu, H.; Wu, W.; Hong, L.; He, L.; Yu, Q.; Liu, L.; Lin, A.; Som-ard, J. A CNN-Transformer Hybrid Network with Boundary Guidance for Mapping Cropland Field Parcels from High-Resolution Remote Sensing Imagery. IEEE Trans. Geosci. Remote Sens. 2026, 64, 1–22. [Google Scholar] [CrossRef] [Scilit]
- Stiri, S.; Palattella, M.R. Digital Twins for Hydroponic Farms Management: Communication Needs and Challenges. In Proceedings of the 2025 IEEE International Conference on Communications Workshops (ICC Workshops), Montreal, QC, Canada, 8–12 June 2025; pp. 781–787. [Google Scholar]
- Pandi, S.S.; Reshmy, A.K.; Elangovan, D.; Vellingiri, J. AI-Driven Environmental Monitoring for Hydroponic Agriculture: ExCNNLFCP Approach. Earth Sci. Inform. 2024, 18, 73. [Google Scholar] [CrossRef] [Scilit]
- USDA Agricultural Research Service Hydroponic Cultivation of Bibb Lettuce in Nitrogen Phosphorus Potassium (NPK)-Limited Conditions 2025. Available online: https://doi.org/10.15482/USDA.ADC/28801286.v2 (accessed on 20 August 2026). [CrossRef]









| Domain | State-of-the-Art | Identified Gap |
|---|---|---|
| IoT Sensing | Multi-sensor ESP32 systems [9,23] | No ML integration for predictive control |
| Machine Learning | RF and regression models [11,26] | Isolated ipelines, no real-time feedback |
| Computer Vision | MobileNet, ResNet classification [14,30] | No coupling with IoT actuation systems |
| Digital Twin | Azure and aquaponic twins [16,17] | High complexity, limited edge deployment |
| Unified Systems | Fragmented solutions [4,18] | No single framework integrating all layers |
| Sensor | Accuracy | Protocol | Target Range |
|---|---|---|---|
| pH Sensor | ±0.1 pH | Analog/ADC | 5.5–6.5 |
| EC/TDS Sensor | ±2% | Analog/ADC | 1.2–2.4 mS/cm |
| DHT22 (Temp) | ±0.5 °C | Single-wire | 18–26 °C |
| DHT22 (Humidity) | ±2% RH | Single-wire | 50–70% RH |
| Ultrasonic | ±1 mm | GPIO | >5 cm depth |
| Camera V2 | 8 MP | CSI | N/A (imaging) |
| Component | Function | Justification |
|---|---|---|
| Raspberry Pi 4B | Central AI + IoT controller | Supports sensor acquisition, ML inference, relay control, and MQTT communication |
| pH Sensor | Nutrient solution acidity monitoring | Monitors pH for suitable nutrient availability |
| EC Sensor | Nutrient strength monitoring | Supports monitoring of nutrient concentrations |
| DHT22 | Temperature and humidity monitoring | Environmental conditions for plant monitoring |
| Ultrasonic Sensor | Reservoir water-level monitoring | Detects low water levels to protect the pump |
| Camera Module V2 | Leaf image acquisition | Captures plant images for disease classification |
| Relay Module | Actuator switching | Controls connected pumps through a Raspberry Pi |
| Air Pump + Air Stone | Solution oxygenation | Provides aeration to the nutrient solution |
| LED Grow Lights | Photosynthesis support | Provides controlled lighting for plant growth |
| Nutrient Dispensers | Automated nutrient dosing | Enables automated dosing of Nutrient A and Nutrient B |
| Scenario | Trigger Condition | Actuator Response | Recovery/Response Time |
|---|---|---|---|
| EC depletion | EC < 1.2 mS/cm | Nutrient A (Pump A) activates when decision tree deficiency prediction and confidence conditions are satisfied | <2 min |
| Low pH | pH < 5.5 | Dashboard alert | Immediate |
| High pH | pH > 6.5 | Dashboard alert | Immediate |
| Thermal stress | Temperature >30 °C | Dashboard alert | Immediate |
| Low water level | Depth < 5 cm | Water pump (Pump C) protection and alerts | Immediate |
| Disease detected | MobileNetV2 classification flag | Dashboard alert and notification | Immediate |
| Digital Twin synchronization | Telemetry update event | Digital Twin/dashboard update | <5 s |
| Metric | Value |
|---|---|
| Accuracy | 95.25% |
| Precision | 95.00% |
| Recall | 95.00% |
| F1-Score | 95.01% |
| Inference Time (RPi 4B) | <300 ms/image |
| Model Size | 14 MB (.h5) |
| Test Samples | 569 |
| Class | Prec. | Recall | F1 | Support |
|---|---|---|---|---|
| Bacterial Infection | 0.93 | 0.92 | 0.92 | 172 |
| Healthy | 1.00 | 0.96 | 0.98 | 224 |
| Septoria Blight | 0.92 | 0.98 | 0.95 | 173 |
| Macro Avg | 0.95 | 0.95 | 0.95 | 569 |
| Metric | Value |
|---|---|
| Accuracy | 97.92% |
| F1-Score (Weighted) | 0.9788 |
| Max Depth | Unrestricted |
| Test Samples | 48 |
| Class | Prec. | Recall | F1 | Support |
|---|---|---|---|---|
| Healthy | 1.00 | 1.00 | 1.00 | 26 |
| Nitrogen Def. | 1.00 | 0.83 | 0.91 | 6 |
| Phosphorus Def. | 1.00 | 1.00 | 1.00 | 8 |
| Potassium Def. | 0.89 | 1.00 | 0.94 | 8 |
| Macro Avg | 0.97 | 0.96 | 0.96 | 48 |
| Wtd. Avg | 0.98 | 0.98 | 0.98 | 48 |
| Model | Accuracy | Precision | Recall | Weighted F1 |
|---|---|---|---|---|
| Rule-Based (pH + EC) | 85.42% | 84.00% | 85.42% | 82.74% |
| KNN | 81.25% | 80.60% | 81.25% | 79.78% |
| Random Forest | 95.83% | 95.91% | 95.83% | 95.76% |
| SVM | 95.83% | 96.06% | 95.83% | 95.80% |
| Gradient Boosting | 95.83% | 95.91% | 95.83% | 95.76% |
| Decision Tree | 97.92% | 98.15% | 97.92% | 97.88% |
| Property | MobileNetV2 | Decision Tree |
|---|---|---|
| Task | Leaf disease classification | Nutrient deficiency prediction |
| Input | RGB leaf images | Multi-sensor telemetry |
| Accuracy | 95.25% | 97.92% |
| Architecture | Depth-wise-separable CNN | 200-tree ensemble |
| Inference Device | Raspberry Pi 4B edge | Raspberry Pi 4B edge |
| Training Data | Annotated leaf images | Hydroponic sensor logs |
| Output | Disease class + confidence | NPK deficiency class |
| Deployment Format | HDF5 (.h5) | Pickle (pkl) |
| Feature | Controller | Disease Detection | Nutrient Prediction | Digital Twin | Cloud Platform | Sensors | Edge Inference | Dashboard | Integration Level | Power Backup |
|---|---|---|---|---|---|---|---|---|---|---|
| Raju 2022 [8] | Arduino/ESP32 | Custom CNN | Threshold based | Absent | Firebase/local | 3 sensors | Cloud-dependent | Mobile app | IoT only | Absent |
| Rofiansyah 2025 [13] | RPi 3B | Absent | Absent | Static viz only | Custom server | 2 sensors | Absent | Basic web | DT only | Absent |
| This Work | RPi 4B | MobileNetV2 (95.25%) | Decision tree (97.92%) | Azure DT + Unity 3D | Azure IoT Hub + Blob | 4 sensors (pH, EC, DHT22, ultrasonic) | On-device HDF5 on RPi 4B | Web + AI chatbot | IoT + AI + Cloud + DT | Adapter + battery backup |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Arshad, J.; Azeem, F.; Butt, A.; Chaudhary, M.; Safdar, R.S.; Joyo, M.K.; Ahmad, I.; Valsalan, P.; Ahmed, H.M. AI-Enabled IoT-Based Hydroponic Farming with Embedded Automation and Nutrient Prediction. Future Internet 2026, 18, 446. https://doi.org/10.3390/fi18090446
Arshad J, Azeem F, Butt A, Chaudhary M, Safdar RS, Joyo MK, Ahmad I, Valsalan P, Ahmed HM. AI-Enabled IoT-Based Hydroponic Farming with Embedded Automation and Nutrient Prediction. Future Internet. 2026; 18(9):446. https://doi.org/10.3390/fi18090446
Chicago/Turabian StyleArshad, Jehangir, Fawad Azeem, Ayesha Butt, Maha Chaudhary, Rana Saad Safdar, M. Kamran Joyo, Izanoordina Ahmad, Prajoona Valsalan, and Husham M. Ahmed. 2026. "AI-Enabled IoT-Based Hydroponic Farming with Embedded Automation and Nutrient Prediction" Future Internet 18, no. 9: 446. https://doi.org/10.3390/fi18090446
APA StyleArshad, J., Azeem, F., Butt, A., Chaudhary, M., Safdar, R. S., Joyo, M. K., Ahmad, I., Valsalan, P., & Ahmed, H. M. (2026). AI-Enabled IoT-Based Hydroponic Farming with Embedded Automation and Nutrient Prediction. Future Internet, 18(9), 446. https://doi.org/10.3390/fi18090446

