Generative AI with prompt engineering in construction: Enhancing predictive slope stability modelling for safe, sustainable, climate-smart mining practices

Muhammad Kamran , Muhammad Faizan , Shuhong Wang , Danial Jahed Armaghani , Panagiotis G. Asteris , Biswajeet Pradhan

Geoscience Frontiers ›› 2025, Vol. 16 ›› Issue (6) : 102163

PDF
Geoscience Frontiers ›› 2025, Vol. 16 ›› Issue (6) :102163 DOI: 10.1016/j.gsf.2025.102163
research-article
Generative AI with prompt engineering in construction: Enhancing predictive slope stability modelling for safe, sustainable, climate-smart mining practices
Author information +
History +
PDF

Abstract

Generative AI (GenAI) and prompt engineering are rapidly advancing in industries such as construction and mining, leading to significant improvements in efficiency, accuracy, and decision-making processes. These technologies are transforming the construction sector by automating tasks and optimizing workflows, thereby enhancing productivity and risk management. This study explores the application of Google’s Gemini AI tool, a notable breakthrough in GenAI, specifically for predictive modeling of slope stability. The Gemini AI tool is utilized within the Python programming language to generate prompts that incorporate key factors influencing slope stability, with the Google Colab interface facilitating prompt generation and testing. Initially, these prompts are employed for data analysis and visualization, followed by their application in both unsupervised and supervised machine learning approaches. The performance evaluation metrics indicate that the integrated approaches, which combine GenAI and prompt engineering, predict slope stability with a high level of accuracy. The model achieved 99% accuracy, with precision, recall, and F1-scores ranging from 0.98 to 1.00 for both stable and unstable slope classes. This innovative methodology seeks to advance the implementation of GenAI in civil and mining engineering, offering more precise and efficient solutions for managing slope stability and supporting safe, sustainable, and climate-smart mining operations.

Keywords

GenAI / Prompt engineering / Gemini / Construction / Mining / Safety

Cite this article

Download citation ▾
Muhammad Kamran, Muhammad Faizan, Shuhong Wang, Danial Jahed Armaghani, Panagiotis G. Asteris, Biswajeet Pradhan. Generative AI with prompt engineering in construction: Enhancing predictive slope stability modelling for safe, sustainable, climate-smart mining practices. Geoscience Frontiers, 2025, 16(6): 102163 DOI:10.1016/j.gsf.2025.102163

登录浏览全文

4963

注册一个新账户 忘记密码

CRediT authorship contribution statement

Muhammad Kamran: Conceptualization, Software, Investigation, Methodology, Writing - Review & Editing. Muhammad Faizan: Investigation, Methodology, Writing - review & editing. Shuhong Wang: Supervision, Project administration, Methodology, Investigation, Formal analysis. Danial Jahed Armaghani: Formal analysis, Funding acquisition, Investigation, Methodology, Resources. Panagiotis G. Asteris: Validation, Supervision, Project administration, Methodology, Formal analysis. Biswajeet Pradhan: Validation, Supervision, Software, Methodology, Investigation.

Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. The Corresponding Author of this paper Biswajeet Pradhan is an Associate Editor of this Journal, and was not involved in the editorial review or the decision to publish this article.

Appendix A. Supplementary data

Supplementary data to this article can be found online at https://doi.org/10.1016/j.gsf.2025.102163.

References

[1]

Aladag, H., 2023. Assessing the accuracy of ChatGPT use for risk management in construction projects. Sustainability 15, 16071.

[2]

Alayrac, J.B., Donahue, J., Luc, P., Miech, A., Barr, I., Hasson, Y., Lenc, K., Mensch, A., Millican, K., Reynolds, M., Ring, R., 2022. Flamingo: a visual language model for few-shot learning. Adv. Neural Inf. Process. Syst. 35, 23716-23736.

[3]

Asteris, P.G., Gandomi, A.H., Armaghani, D.J., Kokoris, S., Papandreadi, A.T., Roumelioti, A., Papanikolaou, S., Tsoukalas, M.Z., Triantafyllidis, L., Koutras, E.I., Bardhan, A., 2024. Prognosis of COVID-19 severity using DERGA, a novel machine learning algorithm. Eur. J. Intern. Med. 125, 67-73.

[4]

Asteris, P.G., Rizal, F.I.M., Koopialipoor, M., Roussis, P.C., Ferentinou, M., Armaghani, D.J., Gordan, B., 2022. Slope stability classification under seismic conditions using several tree-based intelligent techniques. Appl. Sci. 12 (3), 1753.

[5]

Atkinson, J., 1993. An Introduction to the Mechanics of Soils and Foundations:through critical State Soil Mechanics. McGraw-Hill Book Company, Series in Civil Engineering, New York.

[6]

Bommasani, R., Hudson, D.A., Adeli, E., Altman, R., Arora, S., von Arx, S., Bernstein, M.S., Bohg, J., Bosselut, A., Brunskill, E., Brynjolfsson, E., 2021. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258.

[7]

Cernica, J.N., 1994. Geotechnical Engineering: Soil Mechanics, 1st ed. Wiley, New York, Chichester.

[8]

Chen, G., Kang, X., Lin, M., Teng, S., Liu, Z., 2023. Stability prediction of soil slopes based on digital twinning and deep learning. Appl. Sci. 13 (11), 6470.

[9]

Chen, X., Wang, X., Changpinyo, S., Piergiovanni, A.J., Padlewski, P., Salz, D., Goodman, S., Grycner, A., Mustafa, B., Beyer, L., Kolesnikov, A., 2022. Pali: A jointly-scaled multilingual language-image model. arXiv:2209.06794.

[10]

Coles, G., 2023. Google DeepMind Gemini AI release date: The world’s new most powerful language model. https://www.pcguide.com/apps/google-deepmind-gemini-release-date/ (accessed on December 25, 2023).

[11]

Dang, H., Benharrak, K., Lehmann, F., Buschek, D., 2022a. Beyond text generation: supporting writers with continuous automatic text summaries. In:Proceedings of the 35th Annual ACM Symposium on User Interface Software and Technology, pp. 1-13.

[12]

Dang, H., Mecke, L., Lehmann, F., Goller, S., Buschek, D., 2022. How to prompt? Opportunities and challenges of zero-and few-shot learning for human-AI interaction in creative applications of generative models. arXiv preprint arXiv:2209.01390.

[13]

De Cremer, D., Bianzino, N.M., Falk, B., 2023. How generative AI could disrupt creative work. Harv. Bus. Rev. 13, 13.

[14]

Desouza, K.C., Dawson, G.S., Chenok, D., 2020. Designing, developing, and deploying artificial intelligence systems: Lessons from and for the public sector. Bus. Horiz. 63 (2), 205-213.

[15]

Dwivedi, Y.K., Kshetri, N., Hughes, L., Slade, E.L., Jeyaraj, A., Kar, A.K., Baabdullah, A.M., Koohang, A., Raghavan, V., Ahuja, M., Albanna, H., 2023. Opinion paper: ‘‘so what if ChatGPT wrote it?” Multidisciplinary perspectives on opportunities, challenges and implications of generative conversational AI for research, practice and policy. Int. J. Inf. Manag. 71, 102642.

[16]

Escobar-Wolf, R., Sanders, J.D., Vishnu, C.L., Oommen, T., Sajinkumar, K.S., 2021. A GIS tool for infinite slope stability analysis (GIS-TISSA). Geosci. Front. 12 (2), 756-768.

[17]

Farrokhnia, M., Banihashem, S.K., Noroozi, O., Wals, A., 2024. A SWOT analysis of ChatGPT: implications for educational practice and research. Innov. Educ. Teach. Int. 61 (3), 460-474.

[18]

Fang, K., Tang, H., Li, C., Su, X., An, P., Sun, S., 2023. Centrifuge modelling of landslides and landslide hazard mitigation: a review. Geosci. Front. 14 (1), 101493.

[19]

Friedman, J.H., 2002. Stochastic gradient boosting. Comput. Stat. Data Anal. 38 (4), 367-378.

[20]

Gupta, A., Aggarwal, Y., Aggarwal, P., 2022. Deep neural network and ANN ensemble for slope stability prediction. Arch. Mater. Sci. Eng. 116 (1), 14-27.

[21]

Hartigan, J.A., Wong, M.A., 1979. Algorithm AS 136: a K-means clustering algorithm. J. R. Stat. Soc. Ser. C (Appl. Stat.) 28, 100-108.

[22]

Hinton, G.E., Roweis, S., 2002. Stochastic Neighbor Embedding. In: Becker S., Thrun S., Obermayer K. (Eds.),Advances in Neural Information Processing Systems. The MIT Press, Cambridge, MA, USA, pp. 833-840.

[23]

Hou, Y., Dong, H., Wang, X., Li, B., Che, W., 2022. MetaPrompting: Learning to learn better prompts. arXiv preprint arXiv:2209.11486.

[24]

Ioffe, S., Szegedy, C., 2015. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In:Proceedings of the 32nd International Conference on Machine Learning, PMLR 37, 448-456.

[25]

Jahed Armaghani, D., Asteris, P.G., Askarian, B., Hasanipanah, M., Tarinejad, R., Huynh, V.V., 2020. Examining hybrid and single SVM models with different kernels to predict rock brittleness. Sustainability 12 (6), 2229.

[26]

Johnson, R., Zhang, T., 2013. Accelerating stochastic gradient descent using predictive variance reduction. Adv. Neural Inf. Process. Syst. 26, 315-323.

[27]

Kamran, M., Shahani, N.M., 2022. Decision support system for the prediction of mine fire levels in underground coal mining using machine learning approaches. Min. Metall. Explor. 39 (2), 591-601.

[28]

Kamran, M., Wattimena, R.K., Armaghani, D.J., Asteris, P.G., Jiskani, I.M., Mohamad, E.T., 2023. Intelligent based decision-making strategy to predict fire intensity in subsurface engineering environments. Process Saf. Environ. Prot. 171, 374-384.

[29]

Khaled, A., Richterik, P., 2020. Better theory for SGD in the nonconvex world. arXiv preprint arXiv:2002.03329.

[30]

Kietzmann, J., Park, A., 2024. Written by ChatGPT: AI, large language models, conversational chatbots, and their place in society and business. Bus. Horiz. 7 (5), 453-459.

[31]

Krakowski, S., Luger, J., Raisch, S., 2023. Artificial intelligence and the changing sources of competitive advantage. Strat. Manag. J. 44 (6), 1425-1452.

[32]

Kurnaz, T.F., Erden, C., Dag˘deviren, U., Demir, A.S., Kökçam, A.H., 2024. Comparison of machine learning algorithms for slope stability prediction using an automated machine learning approach. Nat. Hazards 120, 6991-7014.

[33]

Li, J., Wang, F., 2010. Study on the forecasting models of slope stability under data mining. In: Earth and Space 2010: Engineering, Science, Construction, and Operations in Challenging Environments (pp.765-776). https://doi.org/10.1061/41096(366)77.

[34]

Likas, A., Vlassis, N., Verbeek, J.J., 2003. The global K-means clustering algorithm. Pattern Recognit. 36, 451-461.

[35]

Lin, S., Zheng, H., Han, C., Han, B., 2021. Evaluation and prediction of slope stability using machine learning approaches. Front. Struct. Civ. Eng. 15 (4), 821-833.

[36]

Liu, H., Yang, J., Ye, M., James, S.C., Tang, Z., Dong, J., Xing, T., 2021. Using T-distributed stochastic neighbor embedding (t-SNE) for cluster analysis and spatial zone delineation of groundwater geochemistry data. J. Hydrol. 597, 126146.

[37]

Liu, J., Wright, S., C., Bittorf, V., Sridhar, S., 2014. An asynchronous parallel stochastic coordinate descent algorithm. In: Proceedings of the International Conference on Machine Learning, Beijing, China, 21-26 June 2014, p. 469-477.

[38]

Liu, L., Zhao, G., Liang, W., 2023a. Slope stability prediction using K-NN-based optimum-path forest approach. Mathematics 11 (14), 3071.

[39]

Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., Neubig, G., 2023b. Pre-train, prompt, and predict: a systematic survey of prompting methods in natural language processing. ACM Comput. Surv. 55 (9), 1-35.

[40]

Liu, Y., Zhang, W., Zhang, L., Zhu, Z., Hu, J., Wei, H., 2018. Probabilistic stability analyzes of undrained slopes by 3D random fields and finite element methods. Geosci. Front. 9 (6), 1657-1664.

[41]

Lv, Z., 2023. Generative artificial intelligence in the metaverse era. Cogn. Robot. 3, 208-217.

[42]

Mahmoodzadeh, A., Mohammadi, M., Farid Hama Ali, H., Hashim Ibrahim, H., Nariman Abdulhamid, S., Nejati, H.R., 2022. Prediction of safety factors for slope stability: comparison of machine learning techniques. Nat. Hazards 111, 1771-1799.

[43]

Nanehkaran, Y.A., Licai, Z., Chengyong, J., Chen, J., Anwar, S., Azarafza, M., Derakhshani, R., 2023. Comparative analysis for slope stability using machine learning methods. Appl. Sci. 13 (3), 1555.

[44]

Naser, M.Z., Ross, B., Ogle, J., Kodur, V., Hawileh, R., 2024. Evaluating the performance of artificial intelligence chatbots and large language models in the FE and PE structural exams. Pract. Period. Struct. Des. Constr. 29, 02524001.

[45]

Nemirovski, A., Juditsky, A., Lan, G., Shapiro, A., 2009. Robust stochastic approximation approach to stochastic programming. SIAM J. Optim. 19, 1574-1609.

[46]

Oppenlaender, J., 2023. A taxonomy of prompt modifiers for text-to-image generation. Behav. Inf. Technol. 43 (15), 3763-3776.

[47]

Oppenlaender, J., Linder, R., Silvennoinen, J., 2023. Prompting ai art: An investigation into the creative skill of prompt engineering. arXiv preprint arXiv: 2303.13534.

[48]

Oppenlaender, J., 2022, November. The creativity of text-to-image generation. In: Proceedings of the 25th international academic mindtrek conference, pp. 192-202.

[49]

Perera, P., 2023. Preparing to revolutionize education with the multi-model GenAI tool Google Gemini? A journey towards effective policy making. J. Adv. Educ. Philos. 7 (8), 246-253.

[50]

Prieto, S.A., Mengiste, E.T., Garcia de Soto, B., 2023. Investigating the use of ChatGPT for the scheduling of construction projects. Buildings 13 (4), 857.

[51]

Przegalinska, A., Ciechanowski, L., Stroz, A., Gloor, P., Mazurek, G., 2019. In bot we trust: a new methodology of chatbot performance measures. Bus. Horiz. 62 (6), 785-797.

[52]

Raisch, S., Krakowski., S. 2021. Artificial intelligence and management: The automation-augmentation paradox. Acad. Manag. Rev. b46(1), 192-210.

[53]

Rane, N., Choudhary, S., Rane, J., 2023. Integrating ChatGPT, Bard, and leading-edge generative artificial intelligence in architectural design and engineering: applications, framework, and challenges. Int. J. Arch. Plan. 3 (2), 92-124. https://doi.org/10.2139/ssrn.4645595.

[54]

Ray, S.S., Peddinti, P.R.T., Verma, R.K., Puppala, H., Kim, B., 2024. Leveraging ChatGPT and Bard: what does it convey for water treatment/desalination and harvesting sectors? Desalination 570, 117085.

[55]

Robbins, H., Monro, S., 1951. A stochastic approximation method. Ann. Math. Stat. 22, 400-407.

[56]

Ruder, S., 2016. An overview of gradient descent optimization algorithms. arXiv preprint arXiv: 1609.04747.

[57]

Sakellariou, M.G., Ferentinou, M.D., 2005. A study of slope stability prediction using neural networks. Geotech. Geol. Eng. 23, 419-445.

[58]

Sankararaman, K.A., De, S., Xu, Z., Huang, W.R., Goldstein, T., 2019. The impact of neural network overparameterization on gradient confusion and stochastic gradient descent. arXiv preprint arXiv: 1904.06963.

[59]

Sundberg, L., Holmström, J., 2023. Democratizing artificial intelligence: how no-code AI can leverage machine learning operations. Bus. Horiz. 66 (6), 777-788.

[60]

Team, G., Anil, R., Borgeaud, S., Alayrac, J.B., Yu, J., Soricut, 2023. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv: 2312.11805.

[61]

Ullah, B., Kamran, M., Rui, Y., 2022. Predictive modeling of short-term rockburst for the stability of subsurface structures using machine learning approaches: T-SNE, K-Means clustering and XGBoost. Mathematics 10 (3), 449.

[62]

Wang, H.B., Xu, W.Y., Xu, R.C., 2005. Slope stability evaluation using back propagation neural networks. Eng. Geol. 80 (3-4), 302-315.

[63]

White, J., Fu, Q., Hays, S., Sandborn, M., Olea, C., Gilbert, H., 2023. A prompt pattern catalog to enhance prompt engineering with chatgpt. arXiv preprint arXiv: 2302.11382.

[64]

Yang, Y., Zhou, W., Jiskani, I.M., Lu, X., Wang, Z., Luan, B., 2023. Slope stability prediction method based on intelligent optimization and machine learning algorithms. Sustainability 15 (2), 1169.

[65]

Yu, J., Wang, Z., Vasudevan, V., Yeung, L., Seyedhosseini, M., Wu, Y., 2022. CoCa: Contrastive captioners are image-text foundation models. Trans. Mach. Learn Res. arXiv preprint arXiv:2205.01917.

[66]

Yari, M., Armaghani, D.J., Maraveas, C., Ejlali, A.N., Mohamad, E.T., Asteris, P.G., 2023. Several tree-based solutions for predicting flyrock distance due to mine blasting. Appl. Sci. 13 (3), 1345.

[67]

Zamfirescu-Pereira, J.D., Wong, R.Y., Hartmann, B., Yang, Q., 2023. Why Johnny can’t prompt: how non-AI experts try (and fail) to design LLM prompts. In:Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, pp. 1-21.

[68]

Zhang, C., Lu, J., Zhao, Y., 2024. Generative pre-trained transformers (GPT)-based automated data mining for building energy management: Advantages, limitations and the future. Energy Built Environ. 5 (1), 143-169.

[69]

Zhang, H., Wu, S., Zhang, X., Han, L., Zhang, Z., 2022. Slope stability prediction method based on the margin distance minimization selective ensemble. Catena 212, 106055.

[70]

Zhu, X., Jin, X., Jia, D., Sun, N., Wang, P., 2019. Application of data mining in an intelligent early warning system for rock bursts. Processes 7, 55.

PDF

4

Accesses

0

Citation

Detail

Sections
Recommended

/