Abstract
Soil stratification plays a critical role in geological and geotechnical engineering, motivating the development of algorithms capable of reconstructing reliable subsurface profiles. Among these, the General Regression Neural Network–Markov Chain (GRNN-MC) model offers a promising data-driven approach, although it is susceptible to noise and outliers. In contrast, the Random Forest (RF) algorithm is widely recognized for its resistance to overfitting and data variability. This study compares the performance of GRNN-MC and RF in predicting soil profiles using borehole data. Results show that the GRNN-MC model requires approximately 79% of the RF runtime, whereas the RF model attains an average error of about 60% of that of GRNN-MC. When information entropy is used as an indicator of prediction uncertainty, the comparative behavior of the two models is strongly influenced by spatial mesh resolution. Under the coarser mesh used in the baseline RF simulations, the average RF entropy was about 67% of the GRNN-MC value. However, when both models were evaluated on the same refined mesh, RF exhibited substantially higher entropy—approximately three times that of GRNN-MC. Overall, although RF consistently shows lower prediction error, the two models demonstrate similar sensitivity to thin-layer detection and to mesh-resolution effects.
Similar content being viewed by others
Acknowledgements
The authors gratefully acknowledge Sharif University of Technology for providing research facilities and institutional support.
Funding
This work was financially supported by the Research Grant Office of Sharif University of Technology under Grant Nos. G4010902 and QB020105.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Darzi, A.G., Sadeghi, H. & Moezzi, S.M.M. Comparison of GRNN-MC and RF models for predicting soil hydrogeological and geotechnical profile using borehole data. Sci Rep (2026). https://doi.org/10.1038/s41598-026-50568-1
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-50568-1


