Soil temperature prediction based on ensemble tree bagger machine learning algorithm for agricultural decision making
DOI:
https://doi.org/10.14719/pst.7291Keywords:
artificial intelligence, explainable ai, ensemble tree bagger, machine learning, regression learner, SHAP, Shapley, soil temperatureAbstract
This study focuses on predicting surface soil temperature (ST) at a 5 cm depth, which significantly influences agricultural decisions such as sowing time, irrigation management and soil-plant-atmosphere dynamics. Machine learning (ML) algorithms were used to predict ST using above-ground weather variables viz., air temperature (T), relative humidity (RH), wind velocity (WV) and sunshine duration (SS) measured at 15-min intervals. Six regression-based ML models (Ensemble, Gaussian Process Regression, Support Vector Machine, Tree, Neural Network and Kernel) were trained and tested for predictive accuracy. The Ensemble Bagging Tree model showed the highest precision, with RMSE values of 2.04 and 1.9 for validation and testing, respectively. Various combinations of the weather variables were tested and the model performed best when using above mentioned variables. Among the predictors, T had the greatest impact on ST prediction, as indicated by mean absolute Shapley values. The Shapley values of the variables revealed that T had a critical role in the model output, with time, SS, RH and WV following in importance. Additionally, as a model explainable artificial intelligence (xAI) metrics, SHapley Additive exPlanations (SHAP) were analysed and found that SHAP dependency had a defined relationship between the predictors and ST at a 5 cm depth. This study highlights the effectiveness of machine learning in predicting soil temperature and emphasizes the role of weather variables in agricultural decision-making. decision-making.
Downloads
References
Katterer T, Andren O. Predicting daily soil temperature profiles in arable soils in cold temperate regions from air temperature and leaf area index. Acta Agric Scand Sec. B Soil Plant Sci. 2009;59:77–86
Pregitzer KS, King JS. Effects of soil temperature on nutrient uptake. In: BassiriRadH.Ed.). Nutrient Acquisition by Plants: An Ecological Perspective. 2005;Springer, pp.277–310. https://doi.org/10.1007/3-540-27675-0_10
Singh RB. Environmental consequences of agricultural development: a case study from the Green Revolution state of Haryana, India. Agriculture, Ecosystems & Environment. 2000;82(1–3):97–103. https://doi.org/10.1016/S0167-8809(00)00219-X
Sun B, Zhang L, Yang L, Zhang F, Norse D, Zhu Z. Agricultural non-point source pollution in China: Causes and mitigation measures. Ambio. 2012;41(4):370–79.
Hu G, Zhao L, Wu X et al. An analytical model for estimating soil temperature profiles on the Qinghai-Tibet Plateau of China. J Arid Land. 2016;8:232–40. https://doi.org/10.1007/s40333-015-0058-4
Breiman L. Bagging Predictors. Machine Learning 26, 1996, pp. 123–140.
Breiman L. Random Forests. Machine Learning 45, 2001, pp. 5–32.
Breiman L. https://www.stat.berkeley.edu/~breiman/RandomForests/
Lundberg S, Lee SI. A unified approach to interpreting model predictions, arXiv - cs - AI 2017. https://doi.org/10.48550/arXiv.1705.07874
Lundberg SM, SI Lee. A unified approach to interpreting model predictions. Adv Neural Inf Process Syst. 2017;30.
Shapley L. A Value for n-Person Games. In: Kuhn H and Tucker A, Eds., Contributions to the Theory of Games II, Princeton University Press, Princeton, 1953:307-17. https://doi.org/10.1515/9781400881970-018
Winter E, Chapter 53 the shapley value, in: Handbook of Game Theory with Economic Applications, 3, Elsevier, 2002, pp. 2025–54.
Kisi O, Sanikhani H, Cobaner M. Soil temperature modeling at di?erent depths using neuro-fuzzy, neuralnetwork, and genetic programming techniques. Theor Appl Climatol. 2016;1–16. http://doi.org/10.1007/s00704-016-1810-1
Nahvi B, Habibi J, Mohammadi K, Shamshirband S, Al Razgan OS. Using self-adaptive evolutionary algorithm to improve the performance of an extreme learning machine for estimating soil temperature. Computers and Electronics in Agriculture. 2016;124:150–60. https://doi.org/10.1016/j.compag.2016.03.025
Feng Y, Cui N, Hao W, Gao L, Gong D. Estimation of soil temperature from meteorological data using different machine learning models. Geoderma. 2019;338:67–77. https://doi.org/10.1016/j.geoderma.2018.11.044
Mehdizadeh S, Ahmadi F, Kozekalani Sales A. Modelling daily soil temperature at different depths via the classical and hybrid models. Meteorological Applications. 2020; 27:(4). https://doi.org/10.1002/met.1941
Alizamir M, Kisi O, Ahmed AN, Mert C, Fai CM, Kim S et al. Advanced machine learning model for better prediction accuracy of soil temperature at different depths. PLoS ONE. 2020;15(4). https://doi.org/10.1371/journal.pone.0231055
Kovacevic T, Mrcela L, Mercep A, Kostanjcar Z. Impact of look-back period on soil temperature estimation using machine learning models. I2MTC 2020 - International Instrumentation and Measurement Technology Conference, Proceedings. 2020; https://doi.org/10.1109/I2MTC43012.2020.9128504
Bayatvarkeshi M, Bhagat SK, Mohammadi K, Kisi O, Farahani M, Hasani A, et al. Modeling soil temperature using air temperature features in diverse climatic conditions with complementary machine learning models. Computers and Electronics in Agriculture. 2021;185. https://doi.org/10.1016/j.compag.2021.106158
Li Q, Hao H, Zhao Y, Geng Q, Liu G, Zhang Y, et al. GANs-LSTM Model for soil temperature estimation from meteorological: A new approach. IEEE Access. 2020; 8:59427–43. https://doi.org/10.1109/ACCESS.2020.2982996
Hao H, Yu F, Li Q. Soil temperature prediction using convolutional neural network based on ensemble empirical mode decomposition. IEEE Access. 2021;9:4084–96. https://doi.org/10.1109/ACCESS.2020.3048028
Kazemi SMR, Bidgoli BM, Shamshirband S, Karimi SM, Ghorbani MA, Chau KW, et al. Novel genetic-based negative correlation learning for estimating soil temperature. Engineering Applications of Computational Fluid Mechanics. 2018;12(1):506–16. https://doi.org/10.1080/19942060.2018.1463871
Sihag P, Esmaeilbeiki F, Singh B, Pandhiani SM. Model-based soil temperature estimation using climatic parameters: the case of Azerbaijan Province, Iran. Geology, Ecology, and Landscapes. 2020;4(3):203–15. https://doi.org/10.1080/24749508.2019.1610841
Han M, Zhang H, DeJonge KC, Comas LH, Trout TJ. Estimating maize water stress by standard deviation of canopy temperature in thermal imagery. Agricultural Water Management. 2016;177:400–09. https://doi.org/10.1016/j.agwat.2016.08.031
Aliva Nanda, Sumit Sen, Awshesh AS, Sudheer KP. Soil temperature dynamics at Hillslope Scale—field observation and machine learning-based approach. Water. 2020; 12(3):713. https://doi.org/10.3390/w12030713
Veronika E, Sandrine B, Gerald AM, CA Senior, Björn S, Ronald JS, et al. Overview of the Coupled Model Intercomparison Project Phase 6 (CMIP6) experimental design and organization. Geoscientific model development. 2016;9:1937-58. https://doi.org/10.5194/gmd-9-1937-2016
Bobak S, Kevin S, Ziyu W, Ryan PA, Nando de F. Taking the human out of the loop: a review of Bayesian optimization. Proceedings of the IEEE. 2015;104:148-75. https://doi.org/10.1109/jproc.2015.2494218
Sary DH, Abd EL-Rahman ZM, Awad FA. Effects of sugar beet residual and vinasse on soil properties and wheat productivity under calcareous soil conditions. Journal of Soil Sciences and Agricultural Engineering. 2024;15(10):271-8. https://doi.org/10.21608/jssae.2024.314327.1245
Sravani P, Chovatia PK, Muchhadiya RM, Sakarvadia HL, Kachhadiya SP, Solanki RM, et al. Evaluating herbicides bio-efficacy on yield, quality parameters of sweet sorghum and their residual effects on soil microbial diversity. Journal of Experimental Agriculture International. 2024;46(10):9-24. https://doi.org/10.9734/jeai/2024/v46i102920
Geng Q, Wang L, Li Q. Soil temperature prediction based on explainable artificial intelligence and LSTM. Frontiers in Environmental Science. 2024;12:1426942. https://doi.org/10.3389/fenvs.2024.1426942

Downloads
Published
Versions
- 01-04-2025 (2)
- 14-03-2025 (1)
How to Cite
Issue
Section
License
Copyright (c) 2025 A Alagesan, Thukkaiyannan P, Satheeshkumar N, Thiruvarassan S, Ganesan K, Ayyadurai P

This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright and Licence details of published articles
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 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.
Open Access Policy
Plant Science Today is an open access journal. There is no registration required to read any article. All published articles are distributed under the terms of the Creative Commons Attribution License (CC Attribution 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited (https://creativecommons.org/licenses/by/4.0/). 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).