Analysis of Concrete Air Voids: Comparing OpenAI-Generated Python Code with MATLAB Scripts and Enhancing 2D Image Processing Using 3D CT Scan Data

The air void system in concrete significantly affects its mechanical, thermal, and frost durability properties. This study explored the use of ChatGPT, an AI tool, to generate Python code for analyzing air void parameters in hardened concrete, such as total air void content (A), specific surface (α), and air void spacing factor (L). Initially, Python scripts were created by requesting ChatGPT-3.5 to convert MATLAB scripts developed by Fonseca and Scherer in 2015. The results from Python closely matched those from MATLAB when applied to polished sections of seven different concrete mixes, demonstrating ChatGPT’s effectiveness in code conversion. However, generating accurate code without referencing the original MATLAB scripts required detailed prompts, highlighting the need for a strong understanding of the test method. Finally, a Python script was applied to modify void reconstruction in 2D images into 3D by stereology, and comparing this with (3D) CT scanner results, showing comparable results.

Authors

Institutions

Publication Details

Journal
Buildings
Published
2024-11-21
DOI
https://doi.org/10.3390/buildings14123712
Citations
2
Primary Topic
Concrete and Cement Materials Research
Type
article
Field-Weighted Citation Impact
0.52
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Analysis of Concrete Air Voids: Comparing OpenAI-Generated Python Code with MATLAB Scripts and Enhancing 2D Image Processing Using 3D CT Scan Data

Andrei Shpak, Iman Asadi, Stefan Jacobsen
2 citations
Buildings
Concrete and Cement Materials Research
0.52
article

Analysis of Concrete Air Voids: Comparing OpenAI-Generated Python Code with MATLAB Scripts and Enhancing 2D Image Processing Using 3D CT Scan Data

Andrei Shpak, Iman Asadi, Stefan Jacobsen
article en
2 citations

Abstract

The air void system in concrete significantly affects its mechanical, thermal, and frost durability properties. This study explored the use of ChatGPT, an AI tool, to generate Python code for analyzing air void parameters in hardened concrete, such as total air void content (A), specific surface (α), and air void spacing factor (L). Initially, Python scripts were created by requesting ChatGPT-3.5 to convert MATLAB scripts developed by Fonseca and Scherer in 2015. The results from Python closely matched those from MATLAB when applied to polished sections of seven different concrete mixes, demonstrating ChatGPT’s effectiveness in code conversion. However, generating accurate code without referencing the original MATLAB scripts required detailed prompts, highlighting the need for a strong understanding of the test method. Finally, a Python script was applied to modify void reconstruction in 2D images into 3D by stereology, and comparing this with (3D) CT scanner results, showing comparable results.

BuildingsVol. 14(12)
Universität für Weiterbildung Krems (AT), SINTEF (NO), Norwegian University of Science and Technology (NO), SINTEF Community, Victoria University (AU)
Openalex Percentile: Top 35%
Concrete and Cement Materials Research
0.52
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.