Next Article in Journal
Analysis of Outpatient Prescription Trends of Non-Narcotic Analgesics and Proton Pump Inhibitors (PPIs) in Taiwan from 2010 to 2021: A Nationwide Population-Based Study
Previous Article in Journal
Vanadium Complexes as Potential Anticancer Agents
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Machine-Learning-Based Real-Time Photoacoustic Surface Crack Detection †

King Abdulaziz City for Science and Technology (KACST), Riyadh 12354, Saudi Arabia
*
Author to whom correspondence should be addressed.
Presented at the 4th International Electronic Conference on Applied Sciences, 27 October–10 November 2023; Available online: https://asec2023.sciforum.net/.
Eng. Proc. 2023, 56(1), 92; https://doi.org/10.3390/ASEC2023-15328
Published: 26 October 2023
(This article belongs to the Proceedings of The 4th International Electronic Conference on Applied Sciences)

Abstract

:
Photoacoustic imaging is commonly utilized in biomedical research due to its capability to provide the functional and structural details of imaging targets, featuring optical contrast and ultrasound resolution. This imaging technique has also found applications in industry, particularly in non-destructive testing, such as in surface crack detection. However, the cost of photoacoustic systems and the time required for scanning and image reconstruction limit their use in non-destructive testing. In this study, low-cost photoacoustic equipment was combined with machine learning techniques and applied in surface crack detection. This scanning technique achieved a 97% offline prediction accuracy. Additionally, it demonstrated a reduction in system complexity compared to traditional photoacoustic imaging techniques. This reduction in complexity results from using a single scanning line as input to the machine learning model, unlike the imaging technique, which requires multiple scanning lines to reconstruct the photoacoustic image.

1. Introduction

Over recent decades, numerous researchers have explored fracture analysis to enhance material inspection techniques. Cracks in materials come from product defects and environmental influences like corrosion and fatigue [1] and signify structural vulnerability [2]. Material cracking is a known contributor to mechanical system failure in transportation research [3]. Various approaches have been devised, including strain gauges, visual cameras, thermography, and others [4,5,6,7]. These techniques primarily rely on employing and observing the same modality; for example, visual cameras utilize optical perturbations and optical observations.
Photoacoustic measurements have emerged as a promising alternative to optical imaging, addressing issues such as the diffuse reflection from irregular surfaces [8]. This unique approach employs optical disturbance but captures its effects acoustically, minimizing optical analysis challenges related to scattering effects. Although photoacoustic measurements date back to the 1800s, their complexity has slowed their widespread adoption [9]. However, advancements in semiconductor and laser technology in the 1960s have transformed them into a cutting-edge imaging technique [10]. Thus, they are widely utilized in the medical field [11,12,13]. Researchers have also reported successful applications of photoacoustic measurements in detecting material cracks [14,15,16]. However, the cost of photoacoustic systems and the time consumed for scanning and imaging reconstruction limit its use in non-destructive testing. Therefore, in this study, low-cost photoacoustic equipment with machine learning techniques will be investigated for surface crack detection. This investigation reduces the system complexity and the time for detection compared to those when photoacoustic imaging techniques are used.

2. Method

2.1. Delay and Sum (DAS) Beamforming Technique

The delay and sum (DAS) beamformer is one of the simplest and most popular beamforming techniques in ultrasound and photoacoustic imaging. In this beamforming technique, the photoacoustic image is reconstructed based on combining the delayed photoacoustic signals, as shown in Equation (1) [17,18]:
Y D A S = i = 1 N RF i ( t , Δ t ) ,
where Y D A S is the beamformer output, N is the number of transducer elements or scanning lines, RF i ( t , Δ t ) is the delayed photoacoustic signal that is received by element or scanning line number i, and Δ t is the time delay.

2.2. Machine Learning Model

The Convolutional Neural Network (CNN) model architecture used is illustrated in Figure 1. The first layer performs a convolution over the input spectrogram image with 32 kernels of size 3 × 3, accompanied by the Rectified Linear Unit (ReLU) [19] activation function. The obtained feature maps are then sub-sampled using a max-pooling layer operating over 2 × 2 squares. The second and third convolutional layers are the same as the first one except they have a higher number of kernels (64 and 128, respectively). The last sub-sampling operation is a max-pooling layer which operates over the entire sequence length. Batch normalization [20] was used as an intermediate layer after each convolutional layer. For regularization, we added a dropout layer equal to 0.5 after the last max-pooling layer. Finally, to classify the spectrogram image to see if it was obtained from a cracked or uncracked place, the output layer consists of a fully connected layer with a sigmoid activation function.

3. Experiment Setup

In this experiment, photoacoustic emissions were generated from a piece of black plastic with four surface cracks that are shown in Figure 2B. The width of each crack was almost 1 mm. Photoacoustic emissions were generated from this phantom using a pulsed laser diode (PLD) (905D5S3J08X). The pulse width of each firing laser pulse was 100 nm. In addition, the output optical energy and wavelength of this PLD were 3 μ J and 905 nm, respectively. In this experiment, photoacoustic emissions were acquired by using an open-source ultrasound board [21] with a one-element ultrasound transducer (C310-SU). The central frequency and bandwidth of this transducer were 5 MHz and 90% of the centre frequency, respectively. The scanning step of the ultrasound transducer in the lateral direction was 0.1 mm. The received photoacoustic emission for each scanning point was averaged 10 times before using it to improve the SNR. Figure 2A,C shows a schematic diagram of the experiment setup and a real photo of the experiment, respectively. In this experiment, 1131 photoacoustic signals were acquired from a cracked place and 4522 photoacoustic signals were acquired from an uncracked place. These received signals were converted into spectrogram images before using them in the machine learning model. In this study, a CNN classification model was used to detect the presence of cracks on the surfaces. The dataset was randomly split into two independent parts, with 80% and 20% for training and testing, respectively.

4. Results and Discussion

The received photoacoustic signals from the black plastic with four surface cracks were beamformed by using a DAS beamformer, as shown in Figure 3. An FIR bandpass filter (2.5–7.5 MHz) with a Hamming window was used in this beamformer. From Figure 3, the location of the surface cracks can be clearly defined compared to the uncracked location. In this experiment, 5653 photoacoustic signals were acquired. A total of 1131 of these signals were acquired from a cracked place and 4522 of these signals were acquired from an uncracked place. These received signals were converted into spectrogram images before using them in the machine learning model. In this conversion, the segment length was 100 samples, the window type was a Hamming window, and the length of the overlap window was 50 samples. Examples of cracked and uncracked images are shown in Figure 4.
The CNN model was implemented using the Keras Python library. To validate the performance of the model, the dataset was randomly divided into two independent sets, with 80% for training and 20% for testing. The binary cross-entropy loss function and the Adaptive Momentum (ADAM) [22] optimization approach with decay rates of β 1 = 0.9 and β 2 = 0.999 and a learning rate = 0.001 were utilized. The batch size was set to 32, and the number of epochs for the training process was 50, using the early stopping condition in case there were no improvements over 10 epochs. After the process of training and validating the model, the model yielded a loss of 0.121, an accuracy of 97%, and an F1 score of 91.38%. The confusion matrix that was used to calculate the performances of the model is presented in Figure 5. From this figure, it can be noted that the model correctly classified all images in the testing set that were acquired from an uncracked place, while misclassified 15.9% of the images that were acquired from a cracked place (33 images out of 208). This percentage of misclassifications was due to an imbalance between cracks and non-cracks that were used to train the machine learning model.
When comparing this machine learning detection technique with the image reconstruction technique, the machine learning technique reduced the complexity of the system. This is because one scanning line is used as input to the machine learning model, unlike the imaging technique, which needs multiple scanning lines to reconstruct the photoacoustic image. For instance, to detect and image a single surface crack in this experiment, almost 20 scanning lines are needed. This results in consuming more time and memory. The number of scanning lines that are needed to image a single crack could be increased depending on the distance between the imaging target and the focus point of the ultrasound transducer, the size of the scanning step, and the minimum size of the target crack. In addition, cracks with different levels can be easily detected using a machine learning technique. This is unlike the imaging reconstruction technique, which is affected by the contrast level of the imaging targets. For example, in Figure 3, it is difficult to identify the four cracks at the same time. This is because of the large contrast difference between cracks.

5. Conclusions

In this paper, surface cracks were detected using photoacoustic technology with machine learning. The offline prediction accuracy of the surface crack detection model was 97%. The machine learning detection technique reduced the system complexity and computation time when compared with the image reconstruction technique. In future work, the training data for the machine learning model will be balanced to reduce the percentage of misclassifications. A machine learning model will be also developed to detect internal and surface cracks.

Author Contributions

Conceptualization, A.A. (Abdulrhman Alshaya); methodology, A.A. (Abdulrhman Alshaya); software, G.A. and A.A. (Abdulrhman Alshaya); validation, G.A. and A.A. (Abdulrhman Alshaya); formal analysis, A.A. (Abdulrhman Alshaya) and G.A.; investigation, A.A. (Abdulrhman Alshaya), G.A. and A.A. (Asem Alalwan); literature review, A.A. (Abdulrhman Alshaya) and A.A. (Asem Alalwan); data curation, A.A. (Abdulrhman Alshaya) and G.A.; writing—original draft preparation, A.A. (Abdulrhman Alshaya) and A.A. (Asem Alalwan); writing—review and editing, A.A. (Asem Alalwan) and A.A.(Abdulrhman Alshaya); visualization, A.A. (Abdulrhman Alshaya) and G.A.; supervision, A.A. (Abdulrhman Alshaya). All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Konsta-Gdoutos, M.; Gdoutos, E. The effect of load and geometry on the failure modes of sandwich beams. Appl. Compos. Mater. 2005, 12, 165–176. [Google Scholar] [CrossRef]
  2. Bouayoune, K.S.; Boudi, E.M.; Bachir, A. A stochastic method based on the Markov Model of unit jump for analyzing crack jump in a material. Int. J. Technol. 2017, 8, 622–633. [Google Scholar] [CrossRef]
  3. Craig, R.R., Jr.; Kurdila, A.J. Fundamentals of Structural Dynamics; John Wiley & Sons: Hoboken, NJ, USA, 2006. [Google Scholar]
  4. Tolev, J.; Mandelis, A. Laser photothermal non-destructive inspection method for hairline crack detection in unsintered automotive parts: A statistical approach. NDT Int. 2010, 43, 283–296. [Google Scholar] [CrossRef]
  5. Lantz, G.A. Crack Detection Using a Passive Wireless Strain Sensor. Ph.D. Thesis, Georgia Institute of Technology, Atlanta, GA, USA, 2011. [Google Scholar]
  6. Rupil, J.; Roux, S.; Hild, F.; Vincent, L. Fatigue microcrack detection with digital image correlation. J. Strain Anal. Eng. Des. 2011, 46, 492–509. [Google Scholar] [CrossRef]
  7. Jeong, W.; Earls, C.; Philpot, W.; Zehnder, A. Inverse thermographic characterization of optically unresolvable through cracks in thin metal plates. Mech. Syst. Signal Process. 2012, 27, 634–650. [Google Scholar] [CrossRef]
  8. Tam, A.C. Applications of photoacoustic sensing techniques. Rev. Mod. Phys. 1986, 58, 381. [Google Scholar] [CrossRef]
  9. Wang, L.V. Photoacoustic Imaging and Spectroscopy; CRC Press: Boca Raton, FL, USA, 2017. [Google Scholar]
  10. Ganguly, P.; Rao, C. Photoacoustic spectroscopy of solids and surfaces. J. Chem. Sci. 1981, 90, 153–214. [Google Scholar] [CrossRef]
  11. Alshaya, A.; Harput, S.; Moubark, A.M.; Cowell, D.M.J.; McLaughlan, J.; Freear, S. Spatial resolution and contrast enhancement in photoacoustic imaging with filter delay multiply and sum beamforming technique. In Proceedings of the 2016 IEEE International Ultrasonics Symposium (IUS), Tours, France, 18–21 September 2016; pp. 1–4. [Google Scholar] [CrossRef]
  12. Alshaya, A.; Nie, L.; Cowell, D.M.J.; Carpenter, T.; McLaughlan, J.R.; Freear, S. Monitoring Needle Biopsy of Sentinel Lymph Nodes Using Photoacoustic Image with Dynamic-FDMAS Beamformer. In Proceedings of the 2019 IEEE International Ultrasonics Symposium (IUS), Glasgow, UK, 6–9 October 2019; pp. 490–493. [Google Scholar] [CrossRef]
  13. Sivasubramanian, K.; Periyasamy, V.; Pramanik, M. Non-invasive sentinel lymph node mapping and needle guidance using clinical handheld photoacoustic imaging system in small animal. J. Biophotonics 2018, 11, e201700061. [Google Scholar] [CrossRef] [PubMed]
  14. Mezil, S.; Chigarev, N.; Tournat, V.; Gusev, V. Two dimensional nonlinear frequency-mixing photo-acoustic imaging of a crack and observation of crack phantoms. J. Appl. Phys. 2013, 114, 174901. [Google Scholar] [CrossRef]
  15. Yan, L.; Gao, C.; Zhao, B.; Ma, X.; Zhuang, N.; Duan, H. Non-destructive imaging of standard cracks of railway by photoacoustic piezoelectric technology. Int. J. Thermophys. 2012, 33, 2001–2005. [Google Scholar] [CrossRef]
  16. Chigarev, N.; Zakrzewski, J.; Tournat, V.; Gusev, V. Nonlinear frequency-mixing photoacoustic imaging of a crack. J. Appl. Phys. 2009, 106, 036101. [Google Scholar] [CrossRef]
  17. Yoon, C.; Kang, J.; Han, S.; Yoo, Y.; Song, T.K.; Chang, J.H. Enhancement of photoacoustic image quality by sound speed correction: Ex vivo evaluation. Opt. Express 2012, 20, 3082–3090. [Google Scholar] [CrossRef] [PubMed]
  18. Liao, C.K.; Li, M.L.; Li, P.C. Optoacoustic imaging with synthetic aperture focusing and coherence weighting. Opt. Lett. 2004, 29, 2506–2508. [Google Scholar] [CrossRef]
  19. Glorot, X.; Bordes, A.; Bengio, Y. Deep sparse rectifier neural networks. In Proceedings of the Fourteenth international Conference on Artificial Intelligence and Statistics, JMLR Workshop and Conference Proceedings, Fort Lauderdale, FL, USA, 11–13 April 2011; pp. 315–323. [Google Scholar]
  20. Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the International Conference on Machine Learning, PMLR, Lille, France, 7–9 July 2015; pp. 448–456. [Google Scholar]
  21. Jonveaux, L. un0rick: Open-source fpga board for single element ultrasound imaging. Zenodo 2019. [Google Scholar] [CrossRef]
  22. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
Figure 1. A flow-diagram of the CNN model architecture.
Figure 1. A flow-diagram of the CNN model architecture.
Engproc 56 00092 g001
Figure 2. (A) Schematic diagram of experiment setup, (B) a piece of black plastic with four surface cracks, and (C) experiment setup.
Figure 2. (A) Schematic diagram of experiment setup, (B) a piece of black plastic with four surface cracks, and (C) experiment setup.
Engproc 56 00092 g002
Figure 3. Photoacoustic image for black plastic with four surface cracks.
Figure 3. Photoacoustic image for black plastic with four surface cracks.
Engproc 56 00092 g003
Figure 4. (A) Non-crack photoacoustic signal, (B) non-crack photoacoustic spectrogram image, (C) crack photoacoustic signal, and (D) crack photoacoustic spectrogram image.
Figure 4. (A) Non-crack photoacoustic signal, (B) non-crack photoacoustic spectrogram image, (C) crack photoacoustic signal, and (D) crack photoacoustic spectrogram image.
Engproc 56 00092 g004
Figure 5. Confusion matrix summary.
Figure 5. Confusion matrix summary.
Engproc 56 00092 g005
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

Alshaya, A.; Alabduljabbar, G.; Alalwan, A. Machine-Learning-Based Real-Time Photoacoustic Surface Crack Detection. Eng. Proc. 2023, 56, 92. https://doi.org/10.3390/ASEC2023-15328

AMA Style

Alshaya A, Alabduljabbar G, Alalwan A. Machine-Learning-Based Real-Time Photoacoustic Surface Crack Detection. Engineering Proceedings. 2023; 56(1):92. https://doi.org/10.3390/ASEC2023-15328

Chicago/Turabian Style

Alshaya, Abdulrhman, Ghadah Alabduljabbar, and Asem Alalwan. 2023. "Machine-Learning-Based Real-Time Photoacoustic Surface Crack Detection" Engineering Proceedings 56, no. 1: 92. https://doi.org/10.3390/ASEC2023-15328

Article Metrics

Back to TopTop