journal article·2025-12-01Open access

Optimization of an Automated Substrate Irrigation System Using the SAC Reinforcement Learning Agent

Žydrūnas Kavaliauskas, Giedrius Blažiūnas, Igor Šajev

Applied Sciences· Volume 15· Issue 23

Abstract

This study presents the optimization of an automated mushroom substrate irrigation system by integrating a Soft Actor-Critic (SAC) reinforcement learning agent with a recursive LSTM prediction model. The system, based on a Siemens S7-1200 PLC, CS650 dielectric sensors, and an Ethernet-based data architecture, provides real-time control of humidity, temperature, and electrical conductivity. Experimental data analysis shows that the SAC agent increases the episodic reward from 20–32 to 90–100 units over 200 episodes, stably maintaining the substrate moisture in the range of 61–65%. The LSTM model achieved a Validation Loss of 0.016–0.022, accurately predicting the hydro-physical parameters. Compared to traditional PID controllers, the SAC-based system reduces humidity deviations by 35–40%, reduces the risk of overwatering and drying out, and increases mycelium colonization. The results confirm that the developed cyber-bioprocess platform increases the stability of the mushroom cultivation process, water use efficiency, and product quality and shows potential for industrial application, which must be validated in larger-scale trials.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Plant and Biological Electrophysiology Studies · Smart Agriculture and AI · Greenhouse Technology and Climate Control

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Centre of Engineering Studies, Kauno Kolegija, Pramones Ave. 20, LT-50468 Kaunas, Lithuania

References (35)

Show source-provided references
1. Machine learning constructs color features to accelerate development of long-term continuous water quality monitoring10.1016/j.jhazmat.2023.132612 ↗
2. IoT and fuzzy logic integration for improved substrate environment management in mushroom cultivation10.1016/j.atech.2024.100427 ↗
3. Barauskas, R., Kriščiūnas, A., Čalnerytė, D., Pilipavičius, P., Fyleris, T., Daniulaitis, V., and Mikalauskis, R. (2022). Approach of AI-Based Automatic Climate Control in White Button Mushroom Growing Hall. Agriculture, 12.10.3390/agriculture12111921 ↗
4. Sujatanagarjuna, A., Kia, S., Briechle, F., and Leiding, B. (2023). MushR: A Smart, Automated, and Scalable Indoor Harvesting System for Gourmet Mushrooms. Agriculture, 13.10.3390/agriculture13081533 ↗
5. Nguyen, H.H., Shin, D.Y., Jung, W.S., Kim, T.Y., and Lee, D.H. (2024). An Integrated IoT Sensor-Camera System toward Leveraging Edge Computing for Smart Greenhouse Mushroom Cultivation. Agriculture, 14.10.3390/agriculture14030489 ↗
6. Ali, A., Hussain, T., and Zahid, A. (2025). Smart Irrigation Technologies and Prospects for Enhancing Water Use Efficiency for Sustainable Agriculture. AgriEngineering, 7.10.3390/agriengineering7040106 ↗
7. Padmanabha, M., and Streif, S. (2019). Design and Validation of a Low Cost Programmable Controlled Environment for Study and Production of Plants, Mushroom, and Insect Larvae. Appl. Sci., 9.10.3390/app9235166 ↗
8. Koirala, B., Zakeri, A., Kang, J., Kafle, A., Balan, V., Merchant, F.A., Benhaddou, D., and Zhu, W. (2024). Robotic Button Mushroom Harvesting Systems: A Review of Design, Mechanism, and Future Directions. Appl. Sci., 14.10.3390/app14209229 ↗
9. Chong, J.L., Chew, K.W., Peter, A.P., Ting, H.Y., and Show, P.L. (2023). Internet of Things (IoT)-Based Environmental Monitoring and Control System for Home-Based Mushroom Cultivation. Biosensors, 13.10.3390/bios13010098 ↗
10. Moysiadis, V., Kokkonis, G., Bibi, S., Moscholios, I., Maropoulos, N., and Sarigiannidis, P. (2023). Monitoring Mushroom Growth with Machine Learning. Agriculture, 13.10.3390/agriculture13010223 ↗
11. Wang, Y., Yang, L., Chen, H., Hussain, A., Ma, C., and Al-gabri, M. (2022, January 25–28). Mushroom-YOLO: A Deep Learning Algorithm for Mushroom Growth Recognition Based on Improved YOLOv5 in Agriculture 4.0. Proceedings of the 2022 IEEE 20th International Conference on Industrial Informatics (INDIN), Perth, WA, Australia.10.1109/INDIN51773.2022.9976155 ↗
12. Broussard, W. (2023, June 30). How to Grow Mushrooms in Buckets & Containers. 2023. Available online: https://northspore.com/blogs/the-black-trumpet/growing-mushrooms-in-buckets-containers.
13. Shields, T. (2023, June 30). Grow Mushrooms Easy in a 5 Gallon Bucket—Freshcap. 2023. Available online: https://learn.freshcap.com/growing/bucket-grow/.
14. (2023, June 30). GreenDelta. OpenLCA—Github Repository. 2023. Available online: https://github.com/GreenDelta/olca-app.
15. (2023, June 30). AGRIBYLASE Program. Agribylase Dataset 3.0. 2022. Available online: https://nexus.openlca.org/database/Agribalyse.
16. A Review of Edge Computing: Features and Resource Virtualization10.1016/j.jpdc.2020.12.015 ↗
17. Architecture Design Approach for IoT-Based Farm Management Information Systems10.1007/s11119-018-09624-8 ↗
18. An Infrastructure for the Development of Distributed Service-Oriented Information Systems for Precision Agriculture10.1016/j.compag.2006.12.010 ↗
19. Strobel, G. (2020, January 8–11). Farming in the Era of Internet of Things: An Information System Architecture for Smart Farming. Proceedings of the 15th International Conference on Wirtschaftsinformatik, Potsdam, Germany.
20. Farm Management Information Systems: Current Situation and Future Perspectives10.1016/j.compag.2015.05.011 ↗
21. Shamshiri, R.R., Balasundram, S.K., Rad, A.K., Sultan, M., and Hameed, I.A. (2022). An Overview of Soil Moisture and Salinity Sensors for Digital Agriculture Applications, IntechOpen.
22. Comegna, A., Hassan, S.B.M., and Coppola, A. (2024). Development and Application of an IoT-Based System for Soil Water Status Monitoring in a Soil Profile. Sensors, 24.10.3390/s24092725 ↗
23. Lloret, J., Sendra, S., Garcia, L., and Jimenez, J.M. (2021). A Wireless Sensor Network Deployment for Soil Moisture Monitoring in Precision Agriculture. Sensors, 21.10.3390/s21217243 ↗
24. Samreen, T., Ahmad, M., Baig, M.T., Kanwal, S., Nazir, M.Z. (2022). Remote Sensing in Precision Agriculture for Irrigation Management. Environ. Sci. Proc., 23.10.3390/environsciproc2022023031 ↗
25. Remote Sensing of Irrigated Agriculture: Opportunities and Challenges10.3390/rs2092274 ↗
26. Poudel, U., Stephen, H., and Ahmad, S. (2021). Evaluating Irrigation Performance and Water Productivity Using EEFlux ET and NDVI. Sustainability, 13.10.3390/su13147967 ↗
27. Picking Path Optimization of Agaricus bisporus Picking Robot10.1155/2019/8973153 ↗
28. Tabatabaei, S. (2024, September 27). Dorna for Picking Mushrooms. Available online: https://dorna.ai/case-study/dorna-for-picking-mushrooms/.
29. A Prototype Pick and Place Solution for Harvesting White Button Mushrooms Using a Collaborative Robot
30. Development, Integration, and Field Evaluation of an Autonomous Agaricus bisporus Picking Robot10.1016/j.compag.2024.108871 ↗
31. Towards Autonomous Selective Harvesting: A Review of Robot Perception, Robot Design, Motion Planning and Control10.1002/rob.22230 ↗
32. Dual-Arm Robot Design and Testing for Harvesting Tomato in Greenhouse
33. Retsinas, G., Efthymiou, N., Anagnostopoulou, D., and Maragos, P. (2023). Mushroom Detection and Three Dimensional Pose Estimation from Multi-View Point Clouds. Sensors, 23.10.3390/s23073576 ↗
34. IoT Enabled Mushroom Farm Automation with Machine Learning to Classify Toxic Mushrooms in Bangladesh
35. Subedi, A., Luitel, A., Baskota, M., and Acharya, T.D. (2020). IoT Based Monitoring System for White Button Mushroom Farming. Proceedings, 42.10.3390/ecsa-6-06545 ↗