Next Article in Journal
Variation in Current Density of Aluminum Scrap-Based Propeller Anodization to Increase Surface Hardness
Previous Article in Journal
Innovative Image Enhancement via GANs: Addressing Noise, Resolution, and Artifact Challenges
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Application of Artificial Intelligence in Graphical Discrimination of Structural Cracks †

Department of Inter Design and Civil Engineering, Vanung University, Taoyuan City 320313, Taiwan
Presented at the 2025 IEEE 5th International Conference on Electronic Communications, Internet of Things and Big Data, New Taipei, Taiwan, 25–27 April 2025.
Eng. Proc. 2025, 108(1), 4; https://doi.org/10.3390/engproc2025108004
Published: 28 August 2025

Abstract

For the detection of structural cracks, engineers need to conduct measurements on-site. However, structural cracks are widely distributed and are not easy to access for measurement. Therefore, photography is commonly used for crack detection. Although the crack is observed in the photos, its location and size need to be clearly defined. Artificial intelligence (AI) and databases are used in graphic processing methods to perform structural crack analysis, in which the Python 3.12 program is used as the main tool. Using the Python program, an AI image analysis program was developed for crack analysis and evaluation. ChatGPT 3.5 was also used for the analysis of crack length and width. Using AI considerably increased credibility in detecting and measuring structural cracks.

1. Introduction

In the structural safety assessment process, the location, length, and width of cracks are measured non-destructively. However, the crack assessment process must be recorded using photography, which often results in differences in assessment results depending on the evaluators. Zhang et al. [1] used the image transfer learning method to obtain structural crack analysis results, while Paetsch et al. [2] used Hessian-driven Percolation and template matching methods to analyze structural cracks in 3D concrete cracks. Kabir et al. [3] used acoustic borehole imagery to determine three-dimensional structural cracks. Ali et al. [4] evaluated structural crack images using a convolutional neural network (CNN). Gehri et al. [5] analyzed structural cracks in digital photography using vibration reflection wave analysis. However, there is no application of using artificial intelligence (AI) for structural crack analysis. Therefore, an AI image analysis method using ChatGPT and Python was developed in this study to evaluate structural cracks.

2. Python and AI in Detecting Structural Cracks

2.1. Python for Image Analysis

The original building crack image contains a lot of noise and cannot be confirmed by mechanical identification. Therefore, Python software image processing is used to analyze cracks by segmenting them by color. The possible crack areas are marked in different colors to reduce human errors and increase accuracy. The flow chart of the method is shown in Figure 1.
Because the photo is not taken at the front view of the reference plane, image offset occurs, so corrections must be made, as shown in Figure 2. In α 1 , α 2 The horizontal angle of the visual axis is corrected based on the position record during shooting. By using Equations (1)–(3), the length difference in on-site photos caused by the deflection of the viewing angle is corrected.
a · cos α 1 = L s e c ( α 1 ) θ 1
a · cos α 2 = L s e c ( α 2 ) θ 2
c o s ( α 2 ) c o s ( α 1 ) = θ 1 θ 2
where θ 1 , θ 2 are the angle of view and α 1 , α 2 are the horizontal angle of sight axis.

2.2. Building Crack Length and Width Analysis

The actual size of a crack is estimated by correcting the on-site photos and using computer-aided design (CAD 2022) based on the actual proportion. As shown in Figure 3, the picture length a2 is compared with the CAD correct proportion length a1, and then the photo size is scaled to obtain the diagonal area, and the correct length is analyzed using the CAD measurement function.

2.3. Structure Crack Analysis Using ChatGPT

ChatGPT is used through chatting and graphic input. It provides real-time cloud responses. ChatGPT 3.5 analyzes the size of graphics content in the chat mode. When users provide relative object sizes for comparison after attaching pictures, ChatGPT calculates the sizes precisely.

3. Examples

Wall Crack Analysis

We applied the analysis theory for a wall crack photo is shown in Figure 4 after earthquake. The tiles size is 10 cm ∗ 10 cm so we can define the real crack size by compare tile length in photo.
The Python image analysis program was applied to estimate the crack area and transfer it to the gray map to define the crack length and width (Figure 5).
Figure 6 shows the crack location and the crack length and width. Using CAD, the length was calculated as 213.91 cm, while the crack width was 0.5789 cm.
ChatGPT was used to analyze the width and length of the photo (Figure 4). The results are shown in Figure 7. The crack length was estimated to be 70 cm, and the crack width was 1 cm.

4. Conclusions

The crack area was clearly defined through the Python analysis, and misjudgment due to light differences was avoided. The crack analysis results were input into CAD to correct the graphic proportions and analyze the structural crack length and width values. Although ChatGPT enabled preliminary crack assessment, the analysis results showed that the results obtained by ChatGPT were different from the real measurement. Therefore, the analysis results need to be confirmed before structural damage assessment by ChatGPT.

Funding

The author declares no funding was received for this study.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data supporting the findings of this study are available from the corresponding author upon reasonable request.

Acknowledgments

The author would like to acknowledge the support of Vanung University.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Zhang, K.; Cheng, H.D.; Zhang, B. Unified Approach to Pavement Crack and Sealed Crack Detection Using Preclassification Based on Transfer Learning. J. Comput. Civ. Eng. 2018, 32, 04018001. [Google Scholar] [CrossRef]
  2. Paetsch, O.; Baum, D.; Ehrig, K.; Meinel, D.; Prohaska, S. Automated 3D crack detection for analyzing damage processes in concrete with computed tomography. In Proceedings of the 4th Conference on Industrial Computed Tomography (iCT), Wels, Austria, 19–21 September 2012. [Google Scholar]
  3. Kabir, S.; Rivard, P.; He, D.C.; Thivierg, P. Damage assessment for concrete structure using image processing techniques on acoustic borehole imagery. Constr. Build. Mater. 2009, 23, 3166–3174. [Google Scholar] [CrossRef]
  4. Ali, R.; Chuah, J.H.; Talip, M.S.A.; Mokhtar, N. Structural crack detection using deep convolutional neural networks. Autom. Constr. 2022, 133, 103989. [Google Scholar] [CrossRef]
  5. Gehri, N.; Jaime Mata-Falcón, J.; Walter Kaufmann, W. Automated crack detection and measurement based on digital image correlation. Constr. Build. Mater. 2020, 256, 119383. [Google Scholar] [CrossRef]
Figure 1. Structural crack analysis flow chart using Python.
Figure 1. Structural crack analysis flow chart using Python.
Engproc 108 00004 g001
Figure 2. Diagram of image viewpoint correction.
Figure 2. Diagram of image viewpoint correction.
Engproc 108 00004 g002
Figure 3. Schematic diagram of photo size scaling using CAD.
Figure 3. Schematic diagram of photo size scaling using CAD.
Engproc 108 00004 g003
Figure 4. Wall crack photo.
Figure 4. Wall crack photo.
Engproc 108 00004 g004
Figure 5. Python crack and gray map of wall crack.
Figure 5. Python crack and gray map of wall crack.
Engproc 108 00004 g005
Figure 6. Wall crack length and width.
Figure 6. Wall crack length and width.
Engproc 108 00004 g006
Figure 7. Wall crack analysis results using ChatGPT.
Figure 7. Wall crack analysis results using ChatGPT.
Engproc 108 00004 g007
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tsay, R.-J. Application of Artificial Intelligence in Graphical Discrimination of Structural Cracks. Eng. Proc. 2025, 108, 4. https://doi.org/10.3390/engproc2025108004

AMA Style

Tsay R-J. Application of Artificial Intelligence in Graphical Discrimination of Structural Cracks. Engineering Proceedings. 2025; 108(1):4. https://doi.org/10.3390/engproc2025108004

Chicago/Turabian Style

Tsay, Ren-Jwo. 2025. "Application of Artificial Intelligence in Graphical Discrimination of Structural Cracks" Engineering Proceedings 108, no. 1: 4. https://doi.org/10.3390/engproc2025108004

APA Style

Tsay, R.-J. (2025). Application of Artificial Intelligence in Graphical Discrimination of Structural Cracks. Engineering Proceedings, 108(1), 4. https://doi.org/10.3390/engproc2025108004

Article Metrics

Back to TopTop