Articles | Volume 13, issue 1
https://doi.org/10.5194/ms-13-291-2022
https://doi.org/10.5194/ms-13-291-2022
Short communication
 | 
23 Mar 2022
Short communication |  | 23 Mar 2022

Short communication: A case study of stress monitoring with non-destructive stress measurement and deep learning algorithms

Yaofeng Ji, Qingbo Lu, and Qingyu Yao
Abstract

Non-destructive stress measurement is necessary to provide safety maintenance in some extreme machining environments. This paper reports a case study that reveals the potential application of automatic metal stress monitoring with the aid of the magnetic Barkhausen noise (MBN) signal and deep learning algorithms (convolutional neural network, CNN, and long short-term memory, LSTM). Specifically, we applied the experimental magnetic signals from steel samples to validate the feasibility and efficiency of two deep learning models for stress prediction. The results indicate that the CNN model possesses a faster training speed and a better test accuracy (91.4 %), which confirms the feasibility of automatic stress monitoring applications.

Dates
1 Introduction

During manufacturing, machine failure leads to fatal damage to both people and the environment, inducing a high cost and low productivity (Liao et al., 2012). Consequently, the timely diagnosis of the serving status, deformation, and failure possibilities of steel materials has become a necessity. Stress/strain can be used to describe the internal deformation status of a steel material/structure (Rasmussen, 2003), to predict the serving time of components (Zhang et al., 2020), and to prevent material/structure failures (Pejkowski et al., 2018). However, traditional measurements require well-prepared samples and laboratory environments (Motra et al., 2014), which are not suitable for on-site measurement under extreme conditions such as failure monitoring of supporting bearings, high-speed rolling and moving components, and large steel structures. For example, the most widely used strain gauge methods need to stick the strain gauge onto the sample surface and to link to the train bridge box, which is not suitable for moving samples. Stress/strain measured by crosshead motion is not accurate. Moreover, the optical strain measurement method is only suitable transparent materials with photoelasticity.

The magnetic properties of steel materials and their magnetic responses towards applied magnetic stimuli could be influenced by external forces. The magnetic signals include magnetic flux leakage (MFL) (Wu et al., 2021), magnetic acoustic emission (MAE) (Watson et al., 2005), magnetic Barkhausen noise (MBN) (Rocío et al., 2015), and metal magnetic memory (MMM) (Yang et al., 2013). Corresponding methods have been developed for measuring the stress of steel and other ferromagnetic materials. However, magical signals can be influenced by many internal and external factors, such as the material components, defects, the material processing history, the temperature, and the surface quality. All of these factors cause significant uncertainty in stress measurements. Therefore, an analytical model has been developed to study the effect of applied stress on magnetic Barkhausen noise (MBN) in force-exerted steel materials (Rocío et al., 2015). Moreover, Jiles (1993) established a coupled magnetoelastic theory to compute changes in magnetic hysteresis; Alessandro et al. (1990) proposed a Langevin description to build up the computational basis of statistical properties of Barkhausen noise; and Sablik (1993) further extended this model to confirm the equivalent linear increase of the Barkhausen amplitude. Nevertheless, the material-dependent and hard-measured parameters in the model lead to issues with model application.

With the application of artificial intelligence, convolutional neural network (CNN) models can easily detect objects from an image that would be impossible to detect using analytical methods (Lee et al., 2019). Recurrent neural networks (RNN) can accurately convert a sequential voice to text (Graves and Jaitly, 2014). In addition, a fully CNN can segment surface defects by supervised learning without pre- or post-processing (Huang et al., 2020). Using a deep RNN, the spatial frequency–sequential relationships for motor imagery classification can even be explored (Luo et al., 2018). Furthermore, the microstructural/mechanical properties and thickness variations in API X65 steel can be determined in a non-destructive way with magnetic hysteresis loop and artificial neural networks (Mirzaee et al., 2020). However, there have been few attempts to intelligently monitor metal materials using Barkhausen noise signals. One of the few such existing studies is that of Wang et al. (2013), who extracted the multiscale features of Barkhausen noise using wavelet decomposition and used these features as the input for a back-propagation neural network to predict the temperature effect (Wang et al., 2013). Hence, this paper focuses on the feasibility and capacity of deep learning algorithms (CNN and long short-term memory recurrent neural networks, LSTM-RNN) in stress prediction using Barkhausen noise signals, obtained from a series of uniaxial compressive tests on a typical steel material.

2 Methods

2.1 Experiments and results

The steel material to be tested was typical low-carbon steel (ASTM A36). For conducting uniaxial compressive testing, we prepared 10 bar-shaped samples with a square 1 cm × 1 cm cross section and a length of 5 cm. A universal testing machine (CMT 5105) was used to apply uniaxial compressive force (Fig. 1a). The applied forces increased from 0 to 20 kN with a step of 2 kN. Strain gauges were used to measure the train of the deformed sample and, thus, to calculate the corresponding stress (Fig. 1b). During the test, periodically alternating magnetic fields (10 Hz) were applied to the samples using a Rollscan 350 analyser. When the external magnetic field changes, the internal domain walls are forced to move, generating Barkhausen noise pulses. The Barkhausen noise of the sample was measured using a Rollscan 350 analyser, as shown in Fig. 1a. For each step force of each sample, 100 Barkhausen noise pulses were taken. Considering that we had 10 samples and an 11-step force action for each sample, we acquired 11 000 data items for neural network training and testing.

https://ms.copernicus.org/articles/13/291/2022/ms-13-291-2022-f01

Figure 1(a) A sketch of the experimental set-up; (b) a sample set of measured stresses under different loads; and the neural network structure of the (c) LSTM-RNN and (d) CNN models.

Download

2.2 Deep learning models

There are two types of widely used deep learning models: convolutional neural network (CNN) and recurrent neural network (RNN). To eliminate the issues of gradient vanishing in RNN (Hochreiter and Schmidhuber, 1997), additional modifications have been made on the traditional RNN. LSTM (long short-term memory) is one of the most promising modifications and can effectively solve the vanishing gradient problem in the traditional RNN. Both CNN and LSTM-RNN can be used to predict stress via the measured Barkhausen noise (BHN) signals; in this study, we will examine the performance of both models.

We used Keras to build the models and conduct the training process. Figure 1c shows the neural network structure of the LSTM-RNN model used in this study. It consists of two layers: the LSTM layer with 100 neural units and a dense layer for outputting the prediction. The number of total trainable parameters in this model is 40 901. Figure 1d shows the neural network structure of the CNN model used in this study. It consists of four layers: the “Conv-1D” layer with 32 filters, the “Max-Pooling-1D” layer, the “Flatten” layer, and the “Dense” layer. The overall number of trainable parameters is 160 097. As we are interested in predicting the value of stress, the activation function of the output layer in both models is “linear”, and the loss function is the mean square error. In data processing, 65 % of data items were used for model training, 15 % of data items were used for validation, and the remaining 20 % of data items were used for testing. The respective epoch and batch size were set to 1000.

3 Results

3.1 Experimental results

Figure 1b lists a sample set of the measured stress values under different loads. The stresses of other samples are more or less similar. All of the measured stress values will be used as output for training the two deep learning models. Considering that 100 Barkhausen noise pulses will be taken in each step force of each sample, these 100 items of signal will have the same output stress.

Figure 2 shows the typical Barkhausen noise pulse for a steel sample measured under different stress levels. It conveys that the maximum amplitude of the signal decreases as stress increases. This is because the movement of DWs (domain walls) under compressive stress can be significantly constrained, and the activation energy barrier of Barkhausen noise will increase: the higher the stress, the higher the energy barrier. Therefore, it is more difficult to activate Barkhausen noise.

https://ms.copernicus.org/articles/13/291/2022/ms-13-291-2022-f02

Figure 2The Barkhausen noise (BHN) of steel samples under different loads: (a) 0 kN, (b) 6 kN, (c) 12 kN, and (d) 20 kN.

Download

3.2 Model training behaviours

Figure 3 shows the changes in the loss function during the training process of both models. It is clear that the loss in the CNN model is much higher than that in the LSTM-RNN model at the beginning of the training process. However, the performance of the CNN model improved very rapidly and finally achieved a very small loss value. On the contrary, the improvement of the LSTM-RNN model during the training was slow, and the final loss value was also high. This finding is supported by the final training accuracies of two models: 95 % for the CNN model and 86 % for the LSTM-RNN model. Furthermore, the prediction accuracy of the CNN model in the validation and test datasets was 92.5 % and 91.4 % respectively. The prediction accuracy of the LSTM-RNN model in the validation and test datasets was 83.3 % and 78.9 % respectively. It was also noticed that the training speed of the CNN model was much faster than that of the LSTM-RNN model, although the latter model had less trainable parameters. The mean stress prediction values from the CNN and LSTM-RNN models are compared in Fig. 1b, and the CNN datasets are closer to the experimental data.

https://ms.copernicus.org/articles/13/291/2022/ms-13-291-2022-f03

Figure 3The loss curves of the LSTM-RNN and CNN models.

Download

The good performance of the CNN model can be explained as follows: although BHN is a time-series data type, the applied stress mainly affects the envelope profile of the BHN rather than the individual magnetic activation event. Many studies have tried to establish a quantitative relationship between the envelope profile features of the BHN pulse, including factors such as its amplitude and width. The CNN model is good at abstracting general features of a signal/image using convolutional filters. Therefore, in this model, it can effectively learn the relationship between the profile features and the applied stress. On the contrary, the LSTM-RNN model is good at learning the local features of sequential data/a signal, and its capacity to detect the long-scale profile features is limited by its long-term memory (LSTM modification has also been applied).

The fast training speed of the CNN model can be explained as follows: although the CNN model used in this work has more trainable parameters (40 901) than that of the LSTM-RNN model (160 097), its real neural network is much deeper than that of the LSTM-RNN model. This is due to the nature of the RNN model. In every RNN model, the input data at each step share the same neural network. However, as the neural network is recurrent in each time step, and we have 10 000 time steps in one sample, the exact number of layers in the LSTM-RNN model used in this study is 10 000 rather than 1. This makes the training speed of the LSTM-RNN model slower than that of the CNN model.

3.3 Comparison of the machine learning model and analytical model

The above results have proven that deep learning models can predict stress via Barkhausen noise with reasonable accuracy. This provides an alternative way to mathematically describe the functional relation in a complex system. In contrast to traditional analytical models, deep learning models do not need complex mathematical formula derivation, strong assumptions, or simplifications, and they only rely on high-quality experimental data. Therefore, they are very suitable for solving various prediction problems in a wide engineering field. However, as the functions described by deep learning algorithms (both CNN and LSTM-RNN) are very complex, the underlying physical meanings of parameters are not explained. This causes difficulty in further exploring the underlying mechanism of a physical phenomenon with insight. Moreover, the prediction capacity of deep learning models is normally limited to specific tasks. If one wants to change a material, experiments should be carried out from the beginning, and the model should be retrained as well. On the contrary, once a physical model is developed for a phenomenon, it can be easily generalised and extended to other cases. Therefore, deep learning can solve the prediction problem, and traditional analytical models should also be studied to explore the underlying mechanism and generalisation.

4 Conclusions

This paper reported a case study on stress prediction using both magnetic Barkhausen noise signal data and two deep learning algorithms (CNN and LSTM-RNN). A total of 11 000 Barkhausen noise data points were obtained in a series of uniaxial compressive tests, and 65 % of the data items were used for model training, 15 % of the model data items were used for validation, and the remaining 20 % of the data items were used for further testing. The results of this work indicated the following:

  • the CNN model provides better training accuracy (95 %) and test accuracy (91.4 %) and should be more suitable for learning and predicting the relationship between the Barkhausen noise data and the targeted stress;

  • the CNN model possesses a faster training speed and is appropriate for designing intelligent real-time detecting systems using cloud computing;

  • the potential for future research regarding industrial applications.

Although CNN possesses better accuracy with respect to training and testing for the uniaxial compressive tests, on-site test results suffer from various environmental factors, such as temperature and humidity. Therefore, future research will focus on the confirmation of CNN feasibility and efficiency in tests for a specific industry.

Code and data availability

The code and data included in this article can be made available by the corresponding author upon reasonable request. With respect to future applications, please note that the data and codes are confidential and cannot be made publicly available.

Author contributions

YJ was responsible for acquiring funding, carrying out the investigation, acquiring resources, and writing the original draft of the paper. QL contributed to the investigation, developed the software, and curated the data. QY established the methodology, undertook the validation, and reviewed and edited the paper.

Competing interests

The contact author has declared that neither they nor their co-authors have any competing interests.

Disclaimer

Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Acknowledgements

This work has been supported by the Foundation for Distinguished Young Talents in Higher Education of Henan (grant no. 75 [2019], 2018GGJS227) and the Natural Science Foundation of Henan Province (grant no. 15B460011).

Financial support

This research has been supported by the Foundation for Distinguished Young Talents in Higher Education of Henan (grant no. 75 [2019], 2018GGJS227) and the Natural Science Foundation of Henan Province (grant no. 15B460011).

Review statement

This paper was edited by Jeong Hoon Ko and reviewed by two anonymous referees.

References

Alessandro, B., Beatrice, C., Bertotti, G., and Montorsi, A.: Domain-wall dynamics and Barkhausen effect in metallic ferromagnetic materials. I. Theory, J. Appl. Phys., 68, 2901, https://doi.org/10.1063/1.346423, 1990. 

Graves, A. and Jaitly, N.: Towards end-to-end speech recognition with recurrent neural networks, in: 31st International Conference on Machine Learning, ICML 2014, Beijing, 21–26 June, Pages 1764–1772, https://dl.acm.org/doi/10.5555/3044805.3045089 (last access: 22 March 2022), 2014. 

Hochreiter, S. and Schmidhuber, J.: Long Short Term Memory, Neural Computat., 9, 8, 1735–1780, https://doi.org/10.1162/neco.1997.9.8.1735, 1997. 

Huang, Y., Qiu, C., Wang, X., Wang, S., and Yuan, K.: A compact convolutional neural network for surface defect inspection, 20, 1974, https://doi.org/10.3390/s20071974, 2020. 

Jiles, D. C.: Coupled Magnetoelastic Theory of Magnetic and Magnetostrictive Hysteresis, IEEE T. Magn., 29, 2113–2123, https://doi.org/10.1109/20.221036, 1993. 

Lee, S. Y., Tama, B. A., Moon, S. J., and Lee, S.: Steel surface defect diagnostics using deep convolutional neural network and class activation map, Applied Sciences, 9, p. 5449, https://doi.org/10.3390/app9245449, 2019. 

Liao, W., Wang, Y., and Pan, E.: Single-machine-based predictive maintenance model considering intelligent machinery prognostics, Int. J. Adv. Manuf. Tech., 63, 51–63, https://doi.org/10.1007/s00170-011-3884-3, 2012. 

Luo, T.-j., Zhou, C.-l., and Chao, F.: Exploring spatial-frequency-sequential relationships for motor imagery classification with recurrent neural network, BMC Bioinformatics, 19, p. 344, https://doi.org/10.1186/s12859-018-2365-1, 2018. 

Mirzaee, A., Kahrobaee, S., and Ahadi Akhlaghi, I.: Non-destructive determination of microstructural/mechanical properties and thickness variations in API X65 steel using magnetic hysteresis loop and artificial neural networks, Nondestruct. Test. Eva., 35, 190–206, https://doi.org/10.1080/10589759.2019.1662901, 2020.  

Motra, H. B., Hildebrand, J., and Dimmig-Osburg, A.: Assessment of strain measurement techniques to characterise mechanical properties of structural steel, Engineering Science and Technology, 17, 260–269, https://doi.org/10.1016/j.jestch.2014.07.006, 2014. 

Pejkowski, Ł., Skibicki, D., and Seyda, J.: Stress-strain response and fatigue life of a material subjected to asynchronous loadings, in: AIP Conference Proceedings, Bydgoszcz, Poland, 22–25 May 2018, 020016, https://doi.org/10.1063/1.5066406, 2018. 

Rasmussen, K. J. R.: Full-range stress-strain curves for stainless steel alloys, J. Constr. Steel. Res., 59, 47–61, https://doi.org/10.1016/S0143-974X(02)00018-4, 2003. 

Rocío, N. A. M., Nicolás, N., Isabel, L. P. M., José, R., and Linilson, P.: Magnetic Barkhausen Noise and Magneto Acoustic Emission in Stainless Steel Plates, Proc. Mat. Sci., 8, 674–682, https://doi.org/10.1016/j.mspro.2015.04.124, 2015. 

Sablik, M. J.: A model for the Barkhausen noise power as a function of applied magnetic field and stress, J. Appl. Phys., 74, p. 6769, https://doi.org/10.1063/1.354167, 1993. 

Wang, P., Ji, X., Zhu, L., Tian, G., and Yao, E.: Stratified analysis of the magnetic Barkhausen noise signal based on wavelet decomposition and back propagation neural network, Sensor. Actuat. A-Phys., 201, 421–427, https://doi.org/10.1016/j.sna.2013.07.040, 2013. 

Watson, J. R., Yuyama, S., Pullin, R., and Ing, M.: Acoustic emission monitoring applications for Civil structures, in: Proceedings of the 5th International Conference on Bridge Management, University of Surrey, UK, 11–13 April 2005, 563–570, https://www.icevirtuallibrary.com/doi/abs/10.1680/bmf.33542.0071 (last access: 22 March 2022), 2005. 

Wu, J., Wu, W., Li, E., and Kang, Y.: Magnetic Flux Leakage Course of Inner Defects and Its Detectable Depth, Chin. J. Mech. Eng., 34, 63, https://doi.org/10.1186/s10033-021-00579-y, 2021. 

Yang, L. J., Liu, B., Chen, L. J., and Gao, S. W.: The quantitative interpretation by measurement using the magnetic memory method (MMM)-based on density functional theory, NDT & E Int., 55, 15–20, https://doi.org/10.1016/j.ndteint.2013.01.002, 2013. 

Zhang, T., Wang, X., Ji, Y., Zhang, W., Hassan, T., and Gong, J.: P92 steel creep-fatigue interaction responses under hybrid stress-strain controlled loading and a life prediction model, Int. J. Fatigue, 140, 105837, https://doi.org/10.1016/j.ijfatigue.2020.105837, 2020. 

Download
Short summary
During manufacturing, machine failure can lead to fatal damage to both people and the environment, and non-destructive stress measurement is necessary to provide safety maintenance. This paper focuses on the feasibility and capability of deep learning algorithms in stress prediction using Barkhausen noise signals. Our findings pave the way for the implementation of auto-detection devices for metal materials in on-site manufacturing processes.