Rock and Soil Mechanics ›› 2025, Vol. 46 ›› Issue (S1): 322-334.doi: 10.16285/j.rsm.2024.1570

• Fundamental Theory and Experimental Research • Previous Articles     Next Articles

ChatGPT-assisted programming approach for three-dimensional slope stability calculation

DENG Qi-ning1, CUI Yu-long1, 2, WANG Jiong-chao3, ZHENG Jun4, XU Chong5   

  1. 1. School of Civil Engineering and Architecture, Anhui University of Science and Technology, Huainan, Anhui 232001, China; 2. State Key Laboratory for Safe Mining of Deep Coal Resources and Environment Protection, Huainan, Anhui 232000, China; 3. Yajiang Clean Energy Science and Technology Research (Beijing) Co., Ltd., Beijing 100038, China; 4. College of Civil Engineering and Architecture, Zhejiang University, Zhejiang, Hangzhou 310058, China; 5. National Institute of Natural Hazards, Ministry of Emergency Management of China, Beijing 100085, China
  • Received:2024-12-19 Accepted:2025-05-10 Online:2025-08-08 Published:2025-08-28
  • Supported by:
    This work was supported by the Natural Science Outstanding Youth Research Project of Anhui Province (2023AH030041), the National Natural Science Foundation Project of China (42277136) and Anhui Province Young and Middle-aged Teachers Training Action Project (DTR2023018).

Abstract: ChatGPT, an advanced natural language processing model based on the GPT-4 architecture, has shown remarkable potential across various fields. This study explores the application potential of ChatGPT in developing computational programs for three-dimensional slope stability analysis. This research integrates natural language processing with civil engineering calculations, proposing a novel ChatGPT-Python intelligent programming methodology for three-dimensional slope stability evaluation. The method enables automated implementation of Python-based computational programs for safety factor calculations using both the limit equilibrium method and the strength reduction method. The methodology comprises three main steps: problem definition (detailing the engineering scenario and guiding ChatGPT to generate a conceptual diagram), algorithm design (elaborating the computational problem and prompting ChatGPT to provide effective solutions), and code implementation (generating feasible programming solutions based on computational theory). At each stage, ChatGPT provides intelligent suggestions, which are supplemented by manual review to ensure the theoretical accuracy and engineering feasibility of the calculation results. As demonstrated through three-dimensional slope stability analysis, the Python algorithm generated based on ChatGPT achieves a maximum relative error of 4.99% when compared with commercial software results, confirming its high calculation accuracy. This study introduces an innovative approach to engineering computations, underscoring the significant application prospects of artificial intelligence in civil engineering.

Key words: three-dimensional slope stability, ChatGPT, numerical analysis, Python programming, engineering problems

CLC Number: 

  • TU457,TP319
[1] CHEN Huai-lin, YANG Tao, RAO Yun-kang, ZHANG Zhe, WU Hong-gang, XIE Jiang-wei, TENG Han-qing. Calculation method of sliding surface stress based on segmented sliding surface stress measurement system [J]. Rock and Soil Mechanics, 2025, 46(11): 3562-3573.
[2] ZENG Er-xian, CHENG Shu-yi, WU Lin-wei, CHEN Cheng, LI Yao, LIU Guan-shi, . Bearing behavior and mechanism of variable-section anchors in soil-rock composite foundation [J]. Rock and Soil Mechanics, 2024, 45(7): 2117-2128.
[3] HU Li-wen, HONG Yi, WANG De-yong, . Centrifuge modelling and numerical analysis on underwater two-way vacuum preloading [J]. Rock and Soil Mechanics, 2023, 44(10): 3059-3070.
[4] Muhammad Usman Azhar, ZHOU Hui, YANG Fan-jie, GAO Yang, ZHU Yong, LU Xin-jing, FANG Hou-guo, GENG Yi-jun, . Stability of a water diversion tunnel in weak sandstone stratum [J]. Rock and Soil Mechanics, 2022, 43(S2): 626-639.
[5] LI Shuang-long, WEI Li-min, FENG Sheng-yang, HE Qun, ZHANG Kai-xin, . Time-dependent interactions between passive piles and soft soils based on the extended Koppejan model [J]. Rock and Soil Mechanics, 2022, 43(9): 2602-2614.
[6] CAI Can, ZHANG Pei, SUN Ming-guang, YANG Ying-xin, XIE Song, PU Zhi-cheng, YANG Xian-peng, GAO Chao, TAN Zheng-bo. Mechanism of rock breaking under combining of separated impact and cutting in oil and gas drilling [J]. Rock and Soil Mechanics, 2021, 42(9): 2535-2544.
[7] ZHANG Jian-cong, JIANG Quan, HAO Xian-jie, FENG Guang-liang, LI Shao-jun, WANG Zhi-lin, FAN Qi-xiang, . Analysis of stress-structural collapse mechanism of columnar jointed basalt under high stress [J]. Rock and Soil Mechanics, 2021, 42(9): 2556-2568.
[8] ZHU Cai-hui, CUI Chen, LAN Kai-jiang, DONG Yong-qiang. The effects of the degradation of brick-clay structure and demolition of embedded buildings on the stability of Yulin City Wall [J]. Rock and Soil Mechanics, 2019, 40(8): 3153-3166.
[9] ZHENG Li-ming, ZHANG Yang-yang, LI Zi-feng, MA Ping-hua, YANG Xin-jun, . Analysis of seepage changes during poroelastic consolidation process with porosity and pressure variation under low-frequency vibration [J]. Rock and Soil Mechanics, 2019, 40(3): 1158-1168.
[10] LI Ning, YANG Min, LI Guo-feng. Revisiting the application of finite element method in geotechnical engineering [J]. Rock and Soil Mechanics, 2019, 40(3): 1140-1148.
[11] WANG Jian-jun, CHEN Fu-quan, LI Da-yong. A simple solution of settlement for low reinforced embankments on Kerr foundation [J]. Rock and Soil Mechanics, 2019, 40(1): 250-259.
[12] YAN Shu-wang, LI Jia, YAN Yue, CHEN Hao,. Research on stable limit depth of vertical cylinder hole in cohesive soil ground [J]. , 2018, 39(4): 1176-1181.
[13] ABI ERDI, ZHENG Ying-ren, FENG Xia-ting, CONG Yu. Relationship between particle micro and macro mechanical parameters of parallel-bond model [J]. , 2018, 39(4): 1289-1301.
[14] LI Yi-fan, DONG Shi-ming, PAN Xin, LI Nian-bin, YUAN Ye. Experimental study of mixed-mode I/III fracture of sandstone [J]. , 2018, 39(11): 4063-4070.
[15] LIU Tian-xiang, WANG Zhong-fu, . Analysis of interaction when tunnel orthogonal crossing deep-seated landslide and the corresponding control measures [J]. , 2018, 39(1): 265-274.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!