Simulation-Trained Neural Networks for Automatable Crack Detection in Magnetic Field Images

Tino Band,Benedikt Karrasch,Markus Patzold,Chia-Mei Lin,Ralph Gottschalg,Kai Kaufmann
DOI: https://doi.org/10.1007/s10921-023-01034-9
2024-01-06
Journal of Nondestructive Evaluation
Abstract:Magnetic field measurements play a vital role in various industries, particularly in the detection of cracks using magnetic field images, also known as magnetic field leakage testing. This paper presents an approach to automate the extraction of crack signals in magnetic field imaging by using neural networks. The proposed method relies on simulation-based training using the lightweight Python library Magpylib to calculate the three-dimensional static magnetic field of permanent magnets with surface defects. This approach has numerous advantages. It allows control of training data set variance by tuning simulation input parameters such as sample magnetization, measurement parameters, and defect properties to cover a wide range of cracks in size and position. Starting data acquisition before system operation allows investigating potential changes in sample shape or measurement parameters. Importantly, simulation-based data generation eliminates the need for physical measurements, leading to significant time savings. The study presents and discusses results obtained on two different ferromagnetic samples with surface cracks, a hollow cylinder and a steel sheet.
materials science, characterization & testing
What problem does this paper attempt to address?
The paper attempts to address the problem of automated detection of surface cracks in magnetic materials. Specifically, the authors propose a neural network method based on simulated training to automatically extract crack signals from magnetic field images. The main goal of this method is to improve the accuracy and efficiency of crack detection, reduce reliance on manual feature extraction algorithms, and overcome the shortcomings of traditional methods in dealing with complex environmental parameter changes. ### Background and Problem Statement 1. **Importance of Magnetic Field Measurement**: - Magnetic field measurement is significant in various industries, especially in crack detection, commonly known as Magnetic Flux Leakage (MFL) testing. - Traditional crack detection methods rely on manually designed feature extraction algorithms, such as peak detection algorithms, which perform poorly when crack signals are weak, environmental parameters change, or sample magnetization is present. 2. **Advantages of Deep Learning**: - Deep learning models can automatically extract features, optimizing the entire process from data input to output, and have the flexibility to handle various tasks (such as classification, object detection, and anomaly detection). - Deep learning models perform well in handling image quality variations, which is particularly important in crack detection. 3. **Challenges of Data Generation**: - Deep learning models require a large amount of labeled training data, and obtaining actual measurement data is time-consuming and labor-intensive. - Using simulation methods to generate data can significantly save time, and by adjusting simulation input parameters (such as sample magnetization, crack properties, and measurement parameters), the variance of the dataset can be controlled to cover cracks of various sizes and positions. ### Solution 1. **Simulated Training**: - Use the Python library Magpylib for lightweight simulation to calculate the 3D static magnetic field of a permanent magnet with surface cracks. - By generating labeled simulated data, train the neural network to analyze actual measurement data. 2. **Experimental Validation**: - Conduct experiments using two different ferromagnetic samples (a hollow cylinder and a steel plate) to validate the performance of the neural network trained with simulated data on actual measurement data. - Evaluate the accuracy of crack detection by comparing magnetic field images (MFI) of different components. 3. **Image Processing**: - To enhance crack signals, use preprocessing steps such as gradient image and Contrast Limited Adaptive Histogram Equalization (CLAHE). - Combine gradient images of Bx and Bz components to further improve crack detection performance. ### Experimental Results - On the hollow cylinder sample, the neural network successfully detected three cracks with a probability of over 83%. - On the steel plate sample, although the detection performance was good, there were still some missed and false detections, especially for smaller cracks. ### Discussion - The method performs well in detecting wider and deeper cracks but still has some difficulty with smaller cracks. - Future improvements can be made by optimizing measurement settings, improving simulation methods, and increasing real measurement data to further enhance detection performance. ### Conclusion This study demonstrates the potential of a neural network based on simulated training for automated crack detection in magnetic field images, providing a new solution for non-destructive testing. With further optimization, this method is expected to achieve higher accuracy and reliability in industrial applications.