1. Introduction
The continuous evolution of technology demands a shift toward processing automation due to the higher economic costs and time associated with manual execution. In a previous work [
1], a comparison was made between manual crack detection and image processing methods, highlighting the advantages of the latter, which provided higher image resolution and reduced system uncertainty compared to manual methods.
Building upon this approach, in [
2,
3], the classification of images containing fatigue is proposed by categorizing them into three groups: (1) fractured surface imaging, (2) damaged surface imaging, and (3) deformed surface imaging. Each category corresponds to different acquisition and processing methods. The acquisition methods involve electron microscopy, optical microscopy, or laser scanning, while the processing methods include directional filtering via Fourier transform with Haralick’s segmentation process, conventional matrix processing, and shape classification. The objectives of each category are summarised as follows: (1) determining the overall orientation and average spacing between striations, (2) measuring surface density while assessing the orientation and spacing of slip bands (micro-plastic deformations in ductile materials), and (3) extracting high-frequency deformation information (HFD) and measuring material deformation.
Image processing for crack detection has been extensively studied in both 2D and 3D images, including computed tomography (CT) as a non-destructive method that can detect and monitor crack growth under increasing loads [
4]. In Ref. [
5], tomography is used to determine the 3D volume correlation, extract crack geometry, obtain displacement discontinuity, model the crack, and estimate stress intensity factors in cast iron. For carbon fibre-reinforced plastic (CFRP) materials, the fatigue damage can be quantified through the image analysis of X-ray-computed tomography (CT) scan images [
6].
In recent years, numerous crack detection methods based on image analysis have been developed. For example, Ref. [
7] uses a method to locate crack point configurations that are identified using thinned images to generate a skeleton integrated into the crack point distance field, which is then calculated using the Distance Transform. This approach automatically analyses structures after earthquakes. Similarly, Ref. [
8] proposes an automatic crack detection technique that is focused on concrete surfaces using pattern recognition with artificial neural networks to calculate crack properties such as width, length, orientation, and pattern. In [
9], a method for analysing microcracks in rocks employs 2D imaging analysis involving binarization and filtering to detect cracks in the image and extract their properties. Digital image correlation (DIC) has been extensively applied to determine the geometric characteristics of fatigue cracks [
10], even for glass-reinforced polymer composites [
11]. The measurement of the strain field at the fatigue crack tip based on sub-image stitching and matching with DIC has been developed with CT specimens [
12]. Also, Digital image correlation (DIC) and convolutional neural networks have been combined to detect fatigue crack paths [
13]. In this review [
14] and based on transfer learning-based algorithms for the detection of fatigue crack initiation sites, several recent works of research can be followed.
The development of such methods has gained significant importance in recent years, leading to the implementation of algorithms for crack detection in pavements based on multiscale image fusion [
15,
16], as seen in [
17] with the FOSA algorithm, and is capable of identifying the crack start and end points; [
18,
19] introduced an automatic crack detection method named Crack-Tree, which involves shadow removal, crack probability map construction, and crack identification based on seed cracks generated by the probability map. Furthermore, crack detection and analysis are crucial not only for structural purposes but also in fields such as heat transfer [
20] to detect the fatigue crack growth rate in heat-resistant steel, other fields, such as medicine [
21], for bone fracture detection even in the biscuit industry [
22].
The choice of analysis method, algorithm, and parameters varies depending on the material under study, as crack growth in concrete differs from that in steel, for instance. For metallic materials with cracks, one commonly used criterion is the “Crack-tip-opening angle or displacement (CTOA/CTOD) fracture criterion”, which is discussed in detail in [
23], outlining its advantages, issues, and limitations.
In this article, a new method is presented for the automatic detection and identification of cracks and microcracks in steel specimens. One of the main differences in relation to previous publications is the micrometre’s precision compared to the millimetre one.
This article is organised as follows:
Section 2 provides a detailed description of the materials and the developed method.
Section 3 presents the most relevant results obtained from applying our method, and offers a comprehensive discussion of the experimental results, and finally, Section4 concludes this article with our findings.
3. Results Discussion
The algorithm’s validity was verified by measuring the lengths of the cracks, both to the right and left. Five different measurements were taken for each of the tests where the load was applied to the specimen at different angles: 0°, 15°, 30°, and 45°.
The lengths of the cracks and the calculated COD values using the algorithm were recorded. Like [
1], these data were compared with measurements obtained manually from the same tests. In this way,
Figure 8 provides a graphical comparison of both methods.
The graphs in
Figure 8 show how the measurements taken by both methods followed a similar linear progression. However, the line of COD values obtained along the crack by this algorithm was generally higher than that obtained manually, except for some exceptions in one or two points of the crack. This could be due to several factors.
Firstly, the measurement of COD must be perpendicular to the direction of the crack at the point where the measurement is taken. Since both methods used the same measurement criterion, considering the predominant angle of the crack, we could rule this out as the reason behind the measurement differences. Additionally, image processing during the algorithm’s preprocessing also contributed to increasing the differences between the measurements obtained by both methods, both in terms of length and COD. This is because the illumination of this image is essential for both the human eye and the computer. Thus, a shadow or stain in the image may be considered part of the crack by the human eye, while the computer considers it noise, and vice versa.
The following tables present the numerical results of the different measurements taken when analysing the tests. In
Table 1, the medians of the measurements obtained using the algorithm for both cracks in each of the tests available are presented, as well as the conversion factor calculated by the program.
Table 2 shows the manually obtained length for the same cases and the conversion factors obtained. In the case of this algorithm, the conversion factors were found using ellipse detection, while in the manual calculation process, a circle was placed over the distorted image of the hole.
Table 1.
Medians of the measurements calculated using the algorithm.
Table 1.
Medians of the measurements calculated using the algorithm.
|
Right crack |
Left crack |
Cycle |
Factor |
|
Lineal length (µm) |
Real length (µm) |
Lineal length (µm) |
Real length (µm) |
Test-0° |
346.3178 |
453.4994 |
329.8621 |
453.38 |
825 |
0.9533 |
Test-15° |
258.062 |
404.2203 |
317.3452 |
492.2306 |
875 |
1.1463 |
Test-30° |
563.0178 |
812.8901 |
437.127 |
612.7134 |
1400 |
1.0461 |
Test-45° |
657.1362 |
869.9099 |
562.0036 |
859.2285 |
1975 |
1.0774 |
Table 2.
Measurements calculated by hand.
Table 2.
Measurements calculated by hand.
|
Right crack |
Left crack |
Factor |
|
Length (µm) (by Hand) |
Length (µm) (by Hand) |
Test-0° |
425.5912 |
438.2894 |
1.1292 |
Test-15° |
408.8691 |
565.7139 |
1.1559 |
Test-30° |
795.8696 |
559.5837 |
1.1853 |
Test-45° |
594.5870 |
599.7877 |
0.9016 |
Figure 8.
Graphical comparison of both methods: hand vs. algorithm.
Figure 8.
Graphical comparison of both methods: hand vs. algorithm.
Table 3 and
Table 4 show the variance and standard deviation of the crack lengths obtained for each of the tests. As you can see in these tables, the values obtained are sufficiently small to consider the system quite robust. For example, in the case of the standard deviation, we worked with a deviation range of [0.56–12.56] µm, where it is worth noting that, in most cases, this occurs on the order of 2 µm. When comparing the results obtained using our method with those developed by (1), we determined a significant improvement. The standard deviation of the length obtained with (1)’s method fell in the range of [0.006–0.031] mm, whereas, with ours, it was in the range [0.565–12.569]·10
−3 mm.
Table 3.
Standard deviation of length measurements using the algorithm.
Table 3.
Standard deviation of length measurements using the algorithm.
|
Standard deviation |
|
Right crack |
Left crack |
|
Lineal length (µm) |
Real length (µm) |
Lineal length (µm) |
Real length (µm) |
Test-0° |
2.994009675 |
2.50368766 |
2.186817385 |
7.298339817 |
Test-15° |
2.065488871 |
5.238372848 |
2.226731313 |
8.001147359 |
Test-30° |
1.392092394 |
9.684152475 |
2.961942653 |
6.554759513 |
Test-45° |
3.235506587 |
5.826145377 |
0.565502651 |
3.667433013 |
Table 4.
Variance of length measurements using the algorithm.
Table 4.
Variance of length measurements using the algorithm.
|
Variance |
|
Right crack |
Left crack |
|
Lineal length (µm) |
Real length (µm) |
Lineal length (µm) |
Real length (µm) |
Test-0° |
7.171275146 |
5.014761518 |
3.825736222 |
42.61261127 |
Test-15° |
3.412995422 |
21.95244007 |
3.966665874 |
51.21468724 |
Test-30° |
1.550336986 |
75.02624732 |
7.018483422 |
34.37189782 |
Test-45° |
8.374802298 |
27.15517597 |
0.255834598 |
10.76005192 |
In
Table 5, the calculated mean values for each type of test conducted are shown, and
Table 6 contains the mean standard deviations. As can be seen, the deviation did not exceed 4 µm.
Table 5.
Mean of COD measurements using the algorithm.
Table 5.
Mean of COD measurements using the algorithm.
|
Mean |
|
Right crack |
Left crack |
|
COD |
COD |
Test-0° |
30.4514 |
34.1000 |
Test-15° |
20.8312 |
22.8107 |
Test-30° |
37.4639 |
39.5683 |
Test-45° |
40.5614 |
50.7675 |
Table 6.
Standard deviation of COD measurements using the algorithm.
Table 6.
Standard deviation of COD measurements using the algorithm.
|
Standard deviation |
|
Right crack |
Left crack |
|
COD (µm) |
COD (µm) |
Test-0° |
2.3069 |
2.7625 |
Test-15° |
1.1773 |
2.0918 |
Test-30° |
2.6022 |
3.2553 |
Test-45° |
2.3468 |
1.2570 |
Figure 9 depicts the graphs of the COD values obtained by the algorithm for the different tests and their corresponding studies. Once these graphs were examined, it became evident that the algorithm was not only robust in calculating the length but also in calculating the COD and, consequently, the crack angles.
Figure 9.
Different COD measurements calculated in each test using the algorithm.
Figure 9.
Different COD measurements calculated in each test using the algorithm.
Finally, to demonstrate the validity of our method, as undertaken in [
8], the relationship between the values obtained by both methods, the algorithm and manual, was established using the Relative Difference (RD), as defined by the following Equation (2):
where w
new is the measured variable (length, angle, COD) calculated using the proposed algorithm, and w
con is the measurement obtained using the optical or manual method.
Thus, in
Table 7 and
Table 8, a comparison of the values obtained using both methods for the lengths of the right and left cracks, respectively, is shown, along with the resulting RD. We considered comparing the COD obtained by both methods and their corresponding RD coefficient, but due to the fact that the manually obtained values were not the same quantity and were not obtained at the same points as those obtained by the algorithm, these results would not be valid.
Table 7.
Comparison between measurements performed by hand and the algorithm for the right crack.
Table 7.
Comparison between measurements performed by hand and the algorithm for the right crack.
|
Right crack |
|
Length (µm) (Hand)
|
Length (µm) ALG. |
RD (%) |
Test-0° |
425.5912 |
453.4994 |
6.153973167 |
Test-15° |
408.8691 |
404.2203 |
1.150067136 |
Test-30° |
795.8696 |
812.8901 |
2.093828079 |
Test-45° |
594.5870 |
869.9099 |
31.64958808 |
The user’s involvement in preprocessing was conducted to enhance the analysis, as it was considered necessary to obtain the correct binarization threshold for each crack, which could not be achieved automatically. Reference [
9] supports user interaction to achieve better analysis when using their algorithm.
Table 8.
Comparison between measurements performed by hand and the algorithm for the left crack.
Table 8.
Comparison between measurements performed by hand and the algorithm for the left crack.
|
Left crack |
|
Length (µm) (Hand) |
Length (µm) ALG. |
RD (%) |
Test-0° |
438.2894 |
453.38 |
3.443064456 |
Test-15° |
565.7139 |
492.2306 |
12.98948066 |
Test-30° |
559.5837 |
612.7134 |
9.494509636 |
Test-45° |
599.7877 |
859.2285 |
43.25543855 |