A ChatGPT-MATLAB framework for numerical modeling in geotechnical engineering applications

被引:16
作者
Kim, Daehyun [1 ,2 ]
Kim, Taegu [1 ]
Kim, Yejin [1 ]
Byun, Yong-Hoon [3 ]
Yun, Tae Sup [1 ]
机构
[1] Yonsei Univ, Dept Civil & Environm Engn, Yonsei Ro 50, Seoul 03722, South Korea
[2] Hiroshima Univ, Dept Civil & Environm Engn, 1-4-1 Kagamiyama, Higashihiroshima, Hiroshima 7398527, Japan
[3] Kyungpook Natl Univ, Sch Agr Civil & Bioind Engn, 80 Daehak Ro, Daegu 41566, South Korea
关键词
ChatGPT; Numerical modeling; Automated Programming; Artificial Intelligence (AI); Large Language Model (LLM); EDUCATION;
D O I
10.1016/j.compgeo.2024.106237
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
ChatGPT has recently emerged as a representative of Large Language Models (LLMs) that have brought evolutionary changes to our society, and the effectiveness of ChatGPT in various applications has been increasingly reported. This study aimed to explore the potential of employing programming performance driven by ChatGPT responses to conversational prompts in the field of geotechnical engineering. The tested examples included the analysis of seepage flow and slope stability, and the image processing of X-ray computed tomographic image for partially saturated sand. For each case, the prompt was initially fed by a narrative explanation of the problem attributes such as geometry, initial conditions, and boundary conditions to generate the MATLAB code that was in turn executed to evaluate the correctness and functionality. Any errors and unanticipated results were further refined by additional prompts until the correct outcome was achieved. ChatGPT was able to generate the numerical code at a considerable level, demonstrating creditable awareness of the refining process, when meticulous prompts were provided based on a comprehensive understanding of given problems. While ChatGPT may not be able to replace the entire process of programming, it can help minimize sloppy syntax errors and assist in designing a basic framework for logical programming.
引用
收藏
页数:13
相关论文
共 23 条
[1]   SEEDED REGION GROWING [J].
ADAMS, R ;
BISCHOF, L .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 1994, 16 (06) :641-647
[2]  
Aluga M., 2023, East Afr. J. Eng, V6, P104, DOI [10.37284/eaje.6.1.1272, DOI 10.37284/EAJE.6.1.1272]
[3]  
[Anonymous], 1983, Image Analysis and Mathematical Morphology
[4]  
Bahrini A., 2023, ChatGPT: Applications, opportunities, P274, DOI [10.1109/SIEDS58326.2023.10137850, DOI 10.1109/SIEDS58326.2023.10137850]
[5]  
Devlin J, 2019, Arxiv, DOI [arXiv:1810.04805, DOI 10.48550/ARXIV.1810.04805]
[6]  
Fellenius W., 1936, T 2 C LARGE DAMS, V4, P445, DOI DOI 10.2105/AJPH.93.7.1032-A
[7]  
Fraiwan M, 2023, Arxiv, DOI [arXiv:2305.00237, DOI 10.48550/ARXIV.2305.00237]
[8]  
George A. S., 2023, Partners Universal International Innovation Journal, V1, P9, DOI [DOI 10.5281/ZENODO.7644359, 10.5281/zenodo.7644359]
[9]   NON-LINEAR PARTIAL VOLUME ARTIFACTS IN X-RAY COMPUTED-TOMOGRAPHY [J].
GLOVER, GH ;
PELC, NJ .
MEDICAL PHYSICS, 1980, 7 (03) :238-248
[10]   IMAGE-ANALYSIS USING MATHEMATICAL MORPHOLOGY [J].
HARALICK, RM ;
STERNBERG, SR ;
ZHUANG, XH .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 1987, 9 (04) :532-550