Abstract
Porosity estimation at high granite temperatures is essential for numerous purposes, including natural and enhanced geothermal energy production. However, these methods of determining porosity have some disadvantages, such as being labor-intensive, requiring expensive instrumentation, and taking a significant amount of time, particularly during elevated temperature treatments. This study is vital for advancing geothermal energy applications by addressing the limitations of traditional porosity estimation methods. The study introduces innovative predictive machine learning (ML) models and offers insights into practical applications for improving geothermal reservoir management and sustainability. the datasets divided into six subsets, each with a specific grain size (fine, medium, or coarse) and cooling method furnace cooling (FC) and water cooling (WC). The cooling rate has a significant impact on rock thermal stress. In this study, six ML models—Random Forest (RF), K-Nearest Neighbors (KNN), Extreme Gradient Boosting (XGBoost), Support Vector Machine (SVM), Categorical Boosting (CatBoost), and Light Gradient Boosting Machine (LightGBM)—were employed to predict models for estimating porosity at high temperatures. The multiple evaluation metrics were used to assess the suitability of these algorithms. R-squared values were calculated to assess the models’ goodness-of-fit. In parallel, several error metrics such as root mean squared error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), root mean square relative error (RMSRE), mean absolute relative error (MARE), and percent bias (PBIAS) were evaluated to quantify the accuracy of the predictions. The performance of the ML methods exhibited considerable variability among the different datasets. Among the evaluated models, CatBoost and KNN consistently achieved higher R-squared values and lower error metrics, demonstrating their effectiveness in accurately discerning underlying patterns and reliably predicting porosity. Conversely, RF, XGBoost, and SVM yielded reasonably accurate predictions, albeit with slightly increased variability in their performance metrics across different grain size and cooling condition subsets. LightGBM demonstrates comparatively diminished prediction accuracy, since it fails to capture the complex fluctuations in rock properties over thermal heating and cooling cycles. These findings highlight the superior predictive efficacy of CatBoost and KNN, confirming their reliability as robust tools for modeling porosity in complex datasets with varied geological and environmental factors.






















Similar content being viewed by others
Data availability
No datasets were generated or analysed during the current study.
Abbreviations
- FC:
-
Furnace Cooling
- WC:
-
Water Cooling
- RF:
-
Random Forest
- KNN:
-
K-Nearest Neighbor
- XGBoost:
-
Extreme Gradient Boosting
- SVM:
-
Support Vector Machine
- CatBoost:
-
Categorical Boosting
- LightGBM:
-
Light Gradient Boosting Machine
- RMSE:
-
Root Mean Squared Error
- MAE:
-
Mean Absolute Error
- MAPE:
-
Mean Absolute Percentage Error
- RMSRE:
-
Root Mean Square Relative Error
- MARE:
-
Mean Absolute Relative Error
- PBIAS:
-
Percent Bias
- ML:
-
Machine Learning
- EGS:
-
Enhanced Geothermal System
- LN2:
-
Liquid Nitrogen
- PSO-SVM:
-
Particle Swarm Optimization Support Vector Machine
- AdaBoost:
-
Adaptive Boosting
- CART:
-
Classification and Regression Trees
- RBFNN:
-
Radial Basis Neural Network
- MLR:
-
Multiple Linear Regression
- SVR:
-
Support Vector Regression
- FG:
-
Fine-Grained
- MG:
-
Medium-Grained
- CG:
-
Coarse-Grained
- EDA:
-
Exploratory Data Analysis
- IQR:
-
Interquartile range
- SHAP:
-
SHapley Additive exPlanations
- PDP:
-
Partial Dependence Plot
- ICE:
-
Individual Conditional Expectation
References
Bonazza A, Sabbioni C, Messina P et al (2009) Climate change impact: mapping thermal stress on Carrara marble in Europe. Sci Total Environ 407:4506–4512
Breede K, Dzebisashvili K, Liu X, Falcone G (2013) A systematic review of enhanced (or engineered) geothermal systems: past, present and future. Geotherm Energy 1:1–27. https://doi.org/10.1186/2195-9706-1-4
Brotóns V, Tomás R, Ivorra S, Alarcón JC (2013) Temperature influence on the physical and mechanical properties of a porous rock: San Julian’s calcarenite. Eng Geol 167:117–127. https://doi.org/10.1016/j.enggeo.2013.10.012
Browning J, Meredith P, Gudmundsson A (2016) Cooling-dominated cracking in thermally stressed volcanic rocks. Geophys Res Lett 43:8417–8425. https://doi.org/10.1002/2016GL070532
Chauhan S, Rühaak W, Khan F et al (2016) Processing of rock core microtomography images: using seven different machine learning algorithms. Comput Geosci 86:120–128. https://doi.org/10.1016/j.cageo.2015.10.013
Chen Y, Watanabe K, Kusuda H et al (2011) Crack growth in Westerly granite during a cyclic loading test. Eng Geol 117:189–197. https://doi.org/10.1016/j.enggeo.2010.10.017
Chen YL, Ni J, Shao W, Azzam R (2012) Experimental study on the influence of temperature on the mechanical properties of granite under uni-axial compression and fatigue loading. Int J Rock Mech Min Sci 56:62–66. https://doi.org/10.1016/j.ijrmms.2012.07.026
Chen YL, Wang SR, Ni J et al (2017) An experimental study of the mechanical properties of granite after high temperature exposure based on mineral characteristics. Eng Geol 220:234–242. https://doi.org/10.1016/j.enggeo.2017.02.010
Chen G, Wang J, Li J et al (2018) Influence of temperature on crack initiation and propagation in granite. Int J Geomech 18:4018094. https://doi.org/10.1061/(asce)gm.1943-5622.0001182
Eltarabily MG, Elshaarawy MK (2023) Risk assessment of potential groundwater contamination by agricultural drainage water in the Central Valley Watershed, California, USA. In Groundwater Quality and Geochemistry in Arid and Semi-Arid Regions. Springer Nature Singapore, Cham, pp 37–76. https://link.springer.com/chapter/10.1007/698_2023_1051
Elshaarawy M, Eltarabily MG (2024) Machine learning models for predicting water quality index: optimization and performance analysis for El Moghra, Egypt. Water Supply 24:3269–3294. https://doi.org/10.2166/ws.2024.189
Elshaarawy MK, Hamed AK (2024) Stacked ensemble model for optimized prediction of triangular side orifice discharge coefficient. Eng Optim. https://doi.org/10.1080/0305215X.2024.2397431
Eltarabily MG, Abd-Elhamid HF, Zeleňáková M et al (2023) Predicting seepage losses from lined irrigation canals using machine learning models. Front Water 5:1287357. https://doi.org/10.3389/frwa.2023.1287357
Elshaarawy MK, Alsaadawi MM, Hamed AK (2024) Machine learning and interactive GUI for concrete compressive strength prediction. Sci Rep 14:1–26. https://doi.org/10.1038/s41598-024-66957-3
Eltarabily MG, Elshaarawy MK, Elkiki M, Selim T (2024a) Computational fluid dynamics and artificial neural networks for modelling lined irrigation canals with low-density polyethylene and cement concrete liners. Irrig Sci 73:910–927. https://doi.org/10.1002/ird.2911
Eltarabily MG, Selim T, Elshaarawy MK, Mourad MH (2024b) Numerical and experimental modeling of geotextile soil reinforcement for optimizing settlement and stability of loaded slopes of irrigation canals. Environ Earth Sci 83:1–15. https://doi.org/10.1007/s12665-024-11560-y
Fellner M, Supancic P (2002) Thermal shock failure of brittle materials. Key Eng Mater 223:97–106
Freire-Lista DM, Fort R, Varas-Muriel MJ (2016) Thermal stress-induced microcracking in building granite. Eng Geol 206:83–93. https://doi.org/10.1016/j.enggeo.2016.03.005
Gallup DL (2009) Production engineering in geothermal technology: a review. Geothermics 38:326–334. https://doi.org/10.1016/j.geothermics.2009.03.001
Gautam PK, Verma AK, Jha MK et al (2016a) Study of strain rate and thermal damage of Dholpur Sandstone at elevated temperature. Rock Mech Rock Eng 49:3805–3815. https://doi.org/10.1007/s00603-016-0965-5
Gautam PK, Verma AK, Maheshwar S, Singh TN (2016b) Thermomechanical analysis of different types of sandstone at elevated temperature. Rock Mech Rock Eng 49:1985–1993. https://doi.org/10.1007/s00603-015-0797-8
Gautam PK, Verma AK, Jha MK et al (2018a) Effect of high temperature on physical and mechanical properties of Jalore granite. J Appl Geophy 159:460–474
Gautam PK, Verma AK, Sharma P, Singh TN (2018b) Evolution of thermal damage threshold of Jalore granite. Rock Mech Rock Eng 51:2949–2956
Gautam PK, Jha MK, Verma AK, Singh TN (2019a) Evolution of absorption energy per unit thickness of damaged sandstone. J Therm Anal Calorim 136:2305–2318
Gautam PK, Verma AK, Singh TN et al (2019b) Experimental investigations on the thermal properties of Jalore granitic rocks for nuclear waste repository. Thermochim Acta 681:178381
Gautam PK, Dwivedi R, Kumar A et al (2021) Damage characteristics of jalore granitic rocks after thermal cycling effect for nuclear waste repository. Rock Mech Rock Eng 54:235–254
Heuze FE (1983) High-temperature mechanical, physical and thermal properties of granitic rocks- A review. Int J Rock Mech Min Sci 20:3–10. https://doi.org/10.1016/0148-9062(83)91609-1
Hu X, Shentu J, Xie N, Huang Y, Lei G, Hu H, Gong X (2023) Predicting triaxial compressive strength of high-temperature treated rock using machine learning techniques. J Rock Mech Geotech Eng 15(8):2072–2082
Isaka BLA, Gamage RP, Rathnaweera TD et al (2018) An influence of thermally-induced micro-cracking under cooling treatments: mechanical characteristics of Australian granite. Energies (Basel) 11:1338
Isleem HF, Tang Q, Alsaadawi MM (2024) Numerical and machine learning modeling of GFRP confined concrete-steel hollow elliptical columns. Sci Rep. https://www.nature.com/articles/s41598-024-68360-4
Jha MK, Verma AK, Gautam PK, Negi A (2017) Study of mechanical properties of Vindhayan shaly rocks at elevated temperature. J Geol Soc India 90:267–272. https://doi.org/10.1007/s12594-017-0714-8
Kang F, Li Y, Tang C (2021) Grain size heterogeneity controls strengthening to weakening of granite over high-temperature treatment. Int J Rock Mech Min Sci 145:10484. https://doi.org/10.1016/j.ijrmms.2021.104848
Kim K, Kemeny J, Nickerson M (2014) Effect of rapid thermal cooling on mechanical rock properties. Rock Mech Rock Eng 47:2005–2019. https://doi.org/10.1007/s00603-013-0523-3
Kumari WGP, Ranjith PG, Mba P et al (2017) Temperature-dependent mechanical behaviour of Australian strathbogie granite with different cooling treatments. Eng Geol 229:31
Kumari WGP, Ranjith PG, Perera MSA, Chen BK (2018) Experimental investigation of quenching effect on mechanical, microstructural and flow characteristics of reservoir rocks: thermal stimulation method for geothermal energy extraction. J Pet Sci Eng 162:419–433. https://doi.org/10.1016/j.petrol.2017.12.033
Liu S, Xu J (2015) An experimental study on the physico-mechanical properties of two post-high-temperature rocks. Eng Geol 185:63–70. https://doi.org/10.1016/j.enggeo.2014.11.013
Liu H, Zhang K, Shao S, Ranjith PG (2019) Numerical investigation on the mechanical properties of Australian strathbogie granite under different temperatures using discrete element method. Rock Mech Rock Eng 52:3719–3735
Mahmoodzadeh A, Nejati HR, Mohammadi M et al (2022) Prediction of Mode-I rock fracture toughness using support vector regression with metaheuristic optimization algorithms. Eng Fract Mech 264:4. https://doi.org/10.1016/j.engfracmech.2022.108334
Miah MI, Ahmed S, Zendehboudi S, Butt S (2020) Machine learning approach to model rock strength: prediction and variable selection with aid of log data. Rock Mech Rock Eng 53:4691–4715. https://doi.org/10.1007/s00603-020-02184-2
Shao S, Wasantha PLP, Ranjith PG, Chen BK (2014) Effect of cooling rate on the mechanical behavior of heated strathbogie granite with different grain sizes. Int J Rock Mech Min Sci 70:381–387. https://doi.org/10.1016/j.ijrmms.2014.04.003
Shi X, Gao L, Wu J et al (2020) Effects of cyclic heating and water cooling on the physical characteristics of granite. Energies (Basel) 13:99–110. https://doi.org/10.3390/en13092136
Siratovich PA, Villeneuve MC, Cole JW et al (2015) Saturated heating and quenching of three crustal rocks and implications for thermal stimulation of permeability in geothermal reservoirs. Int J Rock Mech Min Sci 80:265–280. https://doi.org/10.1016/j.ijrmms.2015.09.023
Song Z, Zhang Z, Zhang G et al (2022) Identifying the types of loading mode for rock fracture via convolutional neural networks. J Geophys Res Solid Earth 127:2. https://doi.org/10.1029/2021JB022532
Su G, Chen Z, Ju JW, Jiang J (2017) Influence of temperature on the strainburst characteristics of granite under true triaxial loading conditions. Eng Geol 222:38–52. https://doi.org/10.1016/j.enggeo.2017.03.021
Tian W, Isleem HF, Hamed AK, Elshaarawy MK (2024) Enhancing discharge prediction over Type-A piano key weirs: an innovative machine learning approach. Flow Meas Instrum 100:102732. https://doi.org/10.1016/j.flowmeasinst.2024.102732
Wang L, Wu C, Tang L et al (2020) Efficient reliability analysis of earth dam slope stability using extreme gradient boosting method. Acta Geotech 15:3135–3150. https://doi.org/10.1007/s11440-020-00962-4
Wang YT, Zhang X, Liu XS (2021) Machine learning approaches to rock fracture mechanics problems: Mode-I fracture toughness determination. Eng Fract Mech 253:10789. https://doi.org/10.1016/j.engfracmech.2021.107890
Wei M, Meng W, Dai F, Wu W (2022) Application of machine learning in predicting the rate-dependent compressive strength of rocks. J Rock Mech Geotech Eng 14:1356–1365. https://doi.org/10.1016/j.jrmge.2022.01.008
Weidner L, Walton G, Kromer R (2019) Classification methods for point clouds in rock slope monitoring: a novel machine learning approach and comparative analysis. Eng Geol 263:6. https://doi.org/10.1016/j.enggeo.2019.105326
Weng L, Wu Z, Liu Q (2020) Influence of heating/cooling cycles on the micro/macrocracking characteristics of Rucheng granite under unconfined compression. Bull Eng Geol Environ 79:1289–1309. https://doi.org/10.1007/s10064-019-01638-4
Wu X, Huang Z, Cheng Z et al (2019a) Effects of cyclic heating and LN2-cooling on the physical and mechanical properties of granite. Appl Therm Eng 156:99–110
Wu X, Huang Z, Song H et al (2019b) Variations of physical and mechanical properties of heated granite after rapid cooling with liquid nitrogen. Rock Mech Rock Eng 52:2123–2139. https://doi.org/10.1007/s00603-018-1727-3
Xie C, Nguyen H, Bui XN et al (2021) Predicting rock size distribution in mine blasting using various novel soft computing models based on meta-heuristics and machine learning algorithms. Geosci Front 12:101108. https://doi.org/10.1016/j.gsf.2020.11.005
Yan H, Zhang J, Zhou N et al (2021) Crack initiation pressure prediction for SC-CO2 fracturing by integrated meta-heuristics and machine learning algorithms. Eng Fract Mech 249:107750
Zhao Z (2016) Thermal influence on mechanical properties of granite: a microcracking perspective. Rock Mech Rock Eng 49:747–762. https://doi.org/10.1007/s00603-015-0767-1
Zhao Z, Liu Z, Pu H, Li X (2018) Effect of thermal treatment on Brazilian tensile strength of granites with different grain size distributions. Rock Mech Rock Eng 51:1293–1303. https://doi.org/10.1007/s00603-018-1404-6
Zhou C, Wan Z, Zhang Y, Gu B (2018) Experimental study on hydraulic fracturing of granite under thermal shock. Geothermics 71:146–155
Funding
This study was financial supported by a fellowship from the Council of Scientific and Industrial Research (CSIR). The fellowship was awarded to the first author.
Author information
Authors and Affiliations
Contributions
RD: Research Conceptualization, Experimental investigation, Data Collection, Methodology Development, Data Analysis, Manuscript Writing, Editing and ReviewBP: Data Collection, Methodology Development, Data Analysis, reviewPKG: Research Conceptualization, Experimental investigation, Data Collection, Methodology Development, Data Analysis, Manuscript Writing, Editing and ReviewPG: Data Collection, Methodology Development, Review, Data AnalysisSD: Editing and Review, SupervisionKHS: Editing and Review, SupervisionTNS: Editing and Review, Supervision.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Conflict of interest
The authors have declared that there is no conflict of interest in this submitted manuscript.
Additional information
Communicated by: H. Babaie
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Dwivedi, R., Prasad, B., Gautam, P. et al. Granite porosity prediction under varied thermal conditions using machine learning models. Earth Sci Inform 18, 211 (2025). https://doi.org/10.1007/s12145-025-01726-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s12145-025-01726-y