A Predictive Model for Crop Irrigation Schedulling Using Machine Learning and IoT-Generated Environmental Data
DOI:
https://doi.org/10.30871/jaic.v9i5.10193Keywords:
IoT, Machine Learning, Smart FarmingAbstract
This study develops and evaluates a machine learning model for predicting optimal irrigation schedules using real-time environmental data collected from an Internet of Things (IoT) system. Building upon a previously validated smart farming monitoring system that provided real-time data on temperature, humidity, and soil moisture, this research addresses the next step: moving from monitoring to predictive analytics. Data collected over a six-day period from DHT11 temperature and humidity sensors, as well as soil moisture sensors, were used to train a predictive model. The model is designed to forecast future soil moisture levels, thereby providing farmers with proactive recommendations for irrigation. A Long Short-Term Memory (LSTM) neural network was employed to capture the temporal dependencies between atmospheric conditions and soil moisture. The model was trained on a portion of the collected data and then validated on a separate, unseen dataset. The evaluation yielded a Mean Absolute Error (MAE) of 2.5%, a Root Mean Square Error (RMSE) of 3.1%, and an R-squared (R2) value of 0.92, demonstrating high predictive accuracy. This approach aims to enhance water resource management, reduce manual intervention, and improve crop health by ensuring water is supplied only when necessary. The results indicate that the machine learning model can accurately predict irrigation needs, offering a significant improvement over traditional, reactive monitoring systems and marking a substantial step towards data-driven, precision agriculture.
Downloads
References
[1] A. Nasution, E. Alemina, F. Pertanian, U. T. Umar, ) Litbang Bappeda, and B. Aceh, “Komoditi Unggulan di Zona Agroekologi Barat Selatan Aceh,” Jurnal Ekonomi dan Pembangunan, vol. 10, no. 2, pp. 126–138, Mar. 2019, doi: 10.22373/JEP.V10I2.43.
[2] BPS Aceh, “Produk Domistik Regional Bruto Provinsi Aceh Menurut Lapangan Usaha Triwulan I 2024,” 2024.
[3] S. Atalla et al., “IoT-Enabled Precision Agriculture: Developing an Ecosystem for Optimized Crop Management,” Information 2023, Vol. 14, Page 205, vol. 14, no. 4, p. 205, Mar. 2023, doi: 10.3390/INFO14040205.
[4] E. Navarro, N. Costa, and A. Pereira, “A Systematic Review of IoT Solutions for Smart Farming,” Sensors 2020, Vol. 20, Page 4231, vol. 20, no. 15, p. 4231, Jul. 2020, doi: 10.3390/S20154231.
[5] L. Colizzi et al., “Introduction to agricultural IoT,” Agricultural Internet of Things and Decision Support for Precision Smart Farming, pp. 1–33, Jan. 2020, doi: 10.1016/B978-0-12-818373-1.00001-9.
[6] S. Rajagopal and V. Krishnamurthy, “OO design for an IoT based automated plant watering system,” International Conference on Computer, Communication, and Signal Processing: Special Focus on IoT, ICCCSP 2017, Jun. 2017, doi: 10.1109/ICCCSP.2017.7944101.
[7] S. Nasional Inovasi Teknologi Pertanian Berkelanjutan et al., “Pemanfaatan Teknologi Iot Untuk Pertanian Berkelanjutan (IoT Technology For Sustainable Agriculture),” Prosiding Seminar Nasional Inovasi Teknologi Pertanian Berkelanjutan (INOPTAN), vol. 1, no. 1, pp. 1–9, Oct. 2022, Accessed: May 07, 2024. [Online]. Available: https://jurnal.unikastpaulus.ac.id/index.php/inoptan/article/view/1400
[8] R. A. Syahputra and D. Andriani, “Development of a Smart Farming Monitoring System Using IoT and Android Technology to Support Precision Farming in the Western Part of Aceh,” Applied Mechanics and Materials, vol. 927, pp. 67–79, Jun. 2025, doi: 10.4028/P-BW93WR.
[9] R. A. Syahputra and D. Andriani, “Development of a Smart Farming Monitoring System Using IoT and Android Technology to Support Precision Farming in the Western Part of Aceh,” Applied Mechanics and Materials, vol. 927, pp. 67–79, Jun. 2025, doi: 10.4028/P-BW93WR.
[10] Y. S. Kim, M. K. Kim, N. Fu, J. Liu, J. Wang, and J. Srebric, “Investigating the impact of data normalization methods on predicting electricity consumption in a building using different artificial neural network models,” Sustain Cities Soc, vol. 118, p. 105570, Jan. 2025, doi: 10.1016/J.SCS.2024.105570.
[11] F. O. Widarta and R. A. Syahputra, “The application of machine learning algorithms for assessing the maturity level of palm fruits as the prominent commodity in the Western-Southern Area of Aceh,” Operations Excellence: Journal of Applied Industrial Engineering, vol. 16, no. 1, pp. 56–63, Jun. 2024, doi: 10.22441/OE.2024.V16.I1.102.
[12] R. A. Syahputra, K. Kasmawati, and P. D. Sentia, “The Application of Artificial Neural Network (ANN) with Backpropagation Algorithm to Predict Supply Chain Demand,” Journal of Optimization in Industrial Engineering vol. 38, vol. 38, no. 1, doi: 10.71720/JOIE.2025.1127133.
[13] M. Khan and Y. Hossni, “A comparative analysis of LSTM models aided with attention and squeeze and excitation blocks for activity recognition,” Scientific Reports 2025 15:1, vol. 15, no. 1, pp. 1–20, Jan. 2025, doi: 10.1038/s41598-025-88378-6.
[14] J. Kumar, R. Goomer, and A. K. Singh, “Long Short Term Memory Recurrent Neural Network (LSTM-RNN) Based Workload Forecasting Model For Cloud Datacenters,” Procedia Comput Sci, vol. 125, pp. 676–682, Jan. 2018, doi: 10.1016/J.PROCS.2017.12.087.
[15] B. Lindemann, T. Müller, H. Vietz, N. Jazdi, and M. Weyrich, “A survey on long short-term memory networks for time series prediction,” Procedia CIRP, vol. 99, pp. 650–655, Jan. 2021, doi: 10.1016/J.PROCIR.2021.03.088.
[16] C. Miller, T. Portlock, D. M. Nyaga, and J. M. O’Sullivan, “A review of model evaluation metrics for machine learning in genetics and genomics,” Frontiers in Bioinformatics, vol. 4, p. 1457619, 2024, doi: 10.3389/FBINF.2024.1457619.
[17] O. Rainio, J. Teuho, and R. Klén, “Evaluation metrics and statistical tests for machine learning,” Sci Rep, vol. 14, no. 1, Dec. 2024, doi: 10.1038/S41598-024-56706-X.
[18] A. Yadav, C. K. Jha, and A. Sharan, “Optimizing LSTM for time series prediction in Indian stock market,” Procedia Comput Sci, vol. 167, pp. 2091–2100, Jan. 2020, doi: 10.1016/J.PROCS.2020.03.257.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Rizki Agam Syahputra, Dewi Andriani

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








