1. Introduction
Steel wire ropes (SWRs) are critical load-bearing elements in numerous industrial applications, including elevators, cranes, and mine hoisting systems [
1,
2,
3]. The integrity of these ropes directly impacts operational safety and efficiency [
4]. As industrial technology advances, the demand for precise and reliable non-destructive testing (NDT) methods for SWRs has significantly increased [
5]. Among various NDT techniques, magnetic flux leakage (MFL) technology has garnered considerable attention due to its high sensitivity, non-contact nature, and ability to detect internal defects [
6].
Traditional NDT methods for SWRs, such as visual inspection, ultrasonic testing, radiographic testing, and eddy current testing, each have specific applications and limitations. Visual inspection, while simple to operate, struggles to detect internal and minute defects [
7,
8,
9,
10]. Ultrasonic testing can probe internal flaws but suffers significant signal attenuation in complex structures [
11]. Radiographic testing provides high-resolution images but poses radiation risks and efficiency issues. Eddy current testing is suitable for surface and near-surface defects but has limited depth detection capability [
12]. In comparison, MFL technology demonstrates clear advantages in comprehensiveness and applicability, though its signal processing presents unique challenges [
13].
Recent advancements in MFL signal processing have primarily focused on time-domain analysis, frequency-domain analysis, time–frequency analysis, and machine learning-based approaches [
14,
15,
16,
17]. Time-domain analysis methods, such as peak detection and thresholding, are intuitive but weak in noise resistance. Frequency-domain analysis techniques, including Fourier Transform, effectively remove certain types of noise but struggle to capture local features [
16]. Time–frequency analysis methods, like short-time Fourier Transform, improve analysis of non-stationary signals but are constrained by time–frequency resolution trade-offs [
13]. Machine learning-based methods excel in feature recognition but require large amounts of labeled data and often lack model interpretability [
17,
18].
Despite these advancements, significant challenges remain in processing complex MFL signals:
Achieving high resolution in both time and frequency domains simultaneously.
Uneven detection capability for defects of different scales (e.g., minute cracks vs. large-area corrosion).
Accurately identifying weak defect signals in strong background noise.
Lack of adaptability to varying working conditions.
These challenges call for a more sophisticated approach that can handle the multi-scale nature of MFL signals while adapting to complex and changing industrial environments.
Multi-scale wavelet analysis [
19] offers a promising solution to these problems. It enables high-resolution analysis in both time and frequency domains, capturing features of both large-scale and small-scale defects through decomposition at different scales. However, wavelet analysis alone still faces issues such as basis function selection, decomposition level determination, and threshold setting when processing complex MFL signals.
To address these limitations, we propose a novel multi-scale Bayesian adaptive anomaly detection method for MFL signals in SWR inspection. Our approach integrates discrete wavelet transform, adaptive thresholding, and multi-scale feature fusion techniques. The key innovations of this method include the following:
A multi-scale Bayesian adaptive anomaly detection framework that effectively addresses the simultaneous detection of minute defects and large-area corrosion under complex background noise.
An adaptive thresholding strategy that maintains high detection rates and low false alarm rates under various working conditions.
A novel channel fusion technique that exploits the complementary information from multiple MFL sensors.
To validate the algorithm’s practical performance, we designed and implemented an innovative four-channel MFL detection system. This system consists of high-sensitivity magnetic sensors precisely arranged to capture omnidirectional magnetic field information around the SWR, along with customized signal conditioning circuits, a high-speed data acquisition module, and a real-time data analysis software interface utilizing the TMS320F28335 digital signal processor (DSP) for efficient data handling and analysis.
Our research contributes to both the theoretical understanding of multi-scale signal processing and the practical application of MFL technology in industrial settings. By bridging signal processing, machine learning, and materials science, we provide a comprehensive solution to the challenges in SWR inspection.
The primary objective of this study is to develop an innovative adaptive multi-scale Bayesian framework for MFL signal analysis in steel wire rope inspection. To achieve this goal, we must address several key tasks: (1) integrate wavelet transform with adaptive thresholding to enhance defect detection under complex noise conditions; (2) implement a multi-scale feature fusion technique to improve the accuracy of defect characterization; and (3) conduct extensive experiments to validate the performance of our approach against state-of-the-art methods. By accomplishing these tasks, we aim to provide a robust solution for the non-destructive testing of steel wire ropes, which has the potential to enhance safety and maintenance efficiency in critical infrastructure.
We evaluate our method through extensive experiments on both simulated and real-world datasets, comparing its performance against state-of-the-art techniques such as long short-term memory (LSTM) [
20], attention mechanisms [
21], isolation forests (if) [
22], kernel density estimation (KDE) [
23], and local outlier factor (LOF) methods [
24]. The results demonstrate significant improvements in precision, recall, and F1 score across different tolerance levels, particularly in detecting small defects and large-area corrosion simultaneously.
In the subsequent sections of this paper, we present a comprehensive study of the proposed adaptive multi-scale Bayesian framework for MFL signal analysis in SWR inspection. The following sections delineate the theoretical underpinnings of our method, the implementation details of the four-channel MFL detection system, and a thorough experimental evaluation. We begin with
Section 2, which provides an overview of the MFL detector hardware configuration, highlighting the integration of high-sensitivity magnetic sensors and the DSP-based control system.
Section 3 delves into the proposed method, detailing the multi-scale analysis using wavelet transform, the Bayesian adaptive anomaly detection framework, and the adaptive thresholding strategy. We then proceed to
Section 4, where we conduct extensive experiments on both simulated and real-world datasets, comparing our method against state-of-the-art techniques and demonstrating its superior performance in various scenarios. Finally,
Section 5 concludes this paper by summarizing our findings, discussing the limitations of the current work, and suggesting avenues for future research that builds upon the contributions of this study.
2. MFL Detector Hardware Configuration
As shown in
Figure 1, symbol A: iron core—the core component of the excitation device, designed to concentrate and direct the magnetic field; symbol B: NdFeB (Neodymium–Iron–Boron)—high-strength permanent magnets used for generating a stable magnetic field; symbol C: MFL sensor—sensors that capture magnetic field variations indicative of defects in the steel wire rope; and symbol D: DSP 28335—TMS320F28335 DSP—responsible for real-time signal processing and analysis. The device is a four-channel design, each channel is equipped with three directional sensors to capture the full range of magnetic field variations in the rope. Each channel of the excitation device consists of an iron core and permanent magnets to ensure stable magnetic field excitation. The core control board of the device adopts TMS320F28335 DSP, which has powerful signal processing capability. The overall mechanical structure is manufactured through three-dimensional (3D) printing technology to achieve lightweight and customized design.
This design can realize all-round, high-precision detection of steel rope. The arrangement of four channels can monitor different parts of the rope at the same time to improve the detection efficiency. The arrangement of sensors in three directions in each channel ensures comprehensive detection of surface and internal defects on the rope. The combination of permanent magnets and iron core excitation not only ensures the magnetic field strength, but also reduces energy consumption, and the use of DSP control boards provides powerful computing power for complex signal processing and real-time data analysis. Three-dimensional-printed mechanical structure not only reduces the production cost, but also improves the adaptability of the equipment, and can be adjusted quickly according to the different needs of the inspection design. The system’s resilience is further augmented by the selection of hardware components, such as magnetic sensors and the DSP control board, which exhibit inherent resistance to extreme temperatures and humidity, thereby ensuring stable operation in diverse environmental conditions. The housing material is selected to shield the internal components from moisture and temperature fluctuations. While the initial experiments were conducted under controlled laboratory settings, future evaluations will encompass the assessment of system performance across a broader spectrum of environmental conditions, thereby substantiating its practical applicability and adaptability in real-world scenarios.
The MFL detector hardware configuration utilizes a synergistic combination of permanent magnets and an iron core to ensure stable magnetic field excitation. The iron core, with its high magnetic permeability, is designed to concentrate and direct the magnetic field generated by the permanent magnets. This configuration not only enhances the magnetic field strength around the SWR but also provides a stable and consistent magnetic field for effective inspection. The technical specifications of our system include the use of Neodymium–Iron–Boron (NdFeB) permanent magnets, known for their strong magnetic properties, and a laminated iron core to minimize eddy current losses. The excitation device consists of an iron core with a specific magnetic circuit design that accommodates three directional sensors per channel, allowing for a comprehensive capture of the magnetic field variations along the rope. The control board of the device is based on the TMS320F28335 DSP, which offers high computational capabilities for real-time signal processing and analysis.
The steel rope specimen used in our experiments has a diameter of 8 mm and is composed of 8 strands, each with a diameter of 2.5 mm. The individual wires within the strands have a diameter of 0.05 mm. The steel wire material has an ultimate tensile strength of 1500 MPa, indicating its capacity to withstand high stress before failure.
The Rope Magnetic Leakage Detector also incorporates an advanced data acquisition and analysis system. Each detection channel is equipped with a high-precision Hall sensor, capable of accurately capturing minute changes in the magnetic field. The signals are digitized by a high-speed analog-to-digital (A/D) converter after preamplification and filtering and then transmitted to the DSP control board for real-time analysis.
The equipment adopts a modular design, which is convenient for maintenance and upgrading. Each detection channel can work independently or cooperatively, which improves the flexibility and reliability of the system. The built-in self-test and calibration functions ensure the accuracy and consistency of the test results.
To enable communication with a personal computer (PC), the device is equipped with the recommended standard 232 (RS-232) serial interface that supports data transfer rates up to 115,200 bits per second (bps). Through the customized communication protocol, the device is able to transmit real-time detection data to the PC, including magnetic field strength, position information, and time stamp. Meanwhile, the PC can remotely control the device functions through the serial port, such as starting and stopping the detection and adjusting parameters.
This comprehensive design not only improves the efficiency and accuracy of rope inspection but also greatly enhances the practicality and adaptability of the equipment, enabling it to meet the needs of rope safety inspection in various industrial environments.
3. Proposed Method
Figure 2 illustrates the four-channel MFL signals obtained from our experimental setup, clearly showing three distinct defects. We employ a combination of discrete wavelet transform (DWT) and Savitzky-Golay filtering for multi-scale analysis. DWT effectively handles non-stationary signals and provides a decomposition that captures signal variations at various scales:
where
and
denote the scale function and wavelet function, respectively, and
J is the maximum number of decomposition layers. In Equation (
1), the DWT is utilized to decompose the signal
into approximation coefficients
and detail coefficients
at various scales, where
J represents the maximum number of decomposition layers and
N is the total number of samples in the signal.
Multi-scale Bayesian adaptive anomaly detection:
We propose an innovative multi-scale Bayesian framework that can adaptively handle anomalies at different scales, effectively solving the problem of defect detection under complex background noise. The core idea of this framework is to apply Bayesian inference at each decomposition scale to achieve accurate recognition of defects of different sizes and types.
where
P is the posterior probability of an anomalous event;
denotes an anomalous event on scale
j; and
denotes an observation on that scale. By applying Bayesian inference at each scale, we are able to more accurately identify defects of different sizes and types. The advantage of this approach is that it is able to adaptively learn and update the anomaly model at each scale, thus adapting to the non-stationary nature of the signal and the dynamics of the environment. We employ a Markov Chain Monte Carlo (MCMC) method to estimate the posterior probability distribution, which allows us to deal with complex non-Gaussian distributions and non-linear dependencies. In addition, we introduce a hierarchical Bayesian model to capture the correlation between different scales, which further improves the accuracy and robustness of the detection.
Equation (
2) embodies the core of our Bayesian adaptive anomaly detection framework. It represents the computation of the posterior probability
, which is the likelihood that an anomaly
is present given the observed data
at scale
j. This is achieved by applying Bayes’ theorem, which relates the posterior probability to the likelihood
of observing the data given an anomaly, as well as the prior probability
of an anomaly occurring, normalized by the evidence
. The evidence term ensures that the posterior probability is properly normalized, making it a valid probability distribution. This equation is applied at each decomposition scale to adaptively detect anomalies of varying sizes and types, leveraging the multi-scale nature of the wavelet transform to capture both local and global features of the MFL signals. The Bayesian approach allows our method to update the anomaly model dynamically at each scale, thus adapting to the non-stationary characteristics of the signal and the complexity of the industrial environment. This formulation is crucial for accurately identifying defects in SWRs under complex background noise conditions.
This multi-scale Bayesian adaptive anomaly detection method performs well in handling various defect types in wire ropes, especially in detecting tiny defects, large-area corrosion, and broken wires at the same time. For tiny defects, such as small cracks or surface defects, the method uses abnormal patterns of high-frequency detail coefficients for identification and captures these localized small-scale anomalies through Bayesian inference at lower decomposition levels. Large-area corrosion is mainly reflected in the coefficients of lower frequencies. Our method detects this large-scale material degradation by analyzing the approximate coefficients at higher decomposition levels and the detail coefficients at medium levels. For broken wires, since they usually appear as mutations in the signal, our algorithm is able to capture this mutation at multiple scales simultaneously, thereby improving the reliability of detection.
By modeling the characteristics of different types of defects at various scales, our method can adaptively adjust the detection strategy. For example, for tiny defects, the algorithm will rely more on the abnormal probability of high-frequency detail coefficients, while for large-area corrosion, it will give higher weight to low-frequency approximation coefficients. This adaptability enables our method to maintain high sensitivity to defects of different types and sizes in complex practical environments.
In addition, our approach also considers potential correlations between defect types. For example, large areas of corrosion may increase the probability of microcracks and wire breakage. By introducing a hierarchical Bayesian model, we are able to capture these cross-scale and cross-type correlations, thereby providing a more comprehensive and accurate defect assessment. This not only improves the accuracy of detection but also provides valuable insights into the comprehensive health status assessment of the wire rope.
Adaptive thresholding strategy:
A dynamic thresholding algorithm has been developed to cope with the variation of MFL signals under different operating conditions. This algorithm is able to adaptively adjust the detection threshold according to the local signal characteristics, thus maintaining stable performance under various noise environments and defect types.
where
T is the adaptive threshold.
Local mean
:
where
w is the half-width of the local window, and
is the wavelet coefficient at scale
j.
Local standard deviation
:
Bayesian adaptive factor
:
where
is the posterior distribution of
given the local data
, which can be approximated by the variational Bayes method:
and
are iteratively updated by minimizing the Kullback–Leibler divergence (KL divergence). The signal-to-noise ratio (SNR) adjustment factor
is as follows:
where
is the local SNR estimate:
Information entropy-based anomaly index
:
where
is the local probability distribution estimate:
is the reference entropy, which can be the average entropy or theoretical entropy of a normal signal. Sensitivity parameter : is an adjustable parameter, usually between 0.5 and 2, which can be optimized according to the specific application. We use a sliding window technique to compute the local statistics, and the window size is dynamically adjusted according to different scales. In addition, we introduce a new noise estimation technique that combines the statistical properties of the wavelet coefficients and the physical model of the signal to more accurately distinguish between noise and effective signal components. This adaptive thresholding strategy significantly improves the adaptability and robustness of the algorithm under different operating conditions.
This strategy is particularly suitable for handling the detection challenges of unknown types of defects. This method combines the local statistical characteristics of the signal, Bayesian inference, signal-to-noise ratio evaluation, and information entropy analysis to provide a comprehensive and flexible detection framework for complex magnetic flux leakage signals.
The local mean and standard deviation capture the non-stationary characteristics of the magnetic flux leakage signal at different scales and locations, which is crucial for identifying local magnetic field disturbances caused by various unknown defects. The Bayesian adaptive factor enables the threshold to dynamically adapt to the changing characteristics of the signal through continuous learning and updating, without relying on the predefined defect type. The signal-to-noise ratio adjustment factor takes into account the noise interference in complex industrial environments, such as the vibration of the wire rope and the external magnetic field fluctuation, and optimizes the robustness of detection by increasing the threshold in high-noise areas and reducing the threshold in clear signal areas. The newly introduced information entropy-based anomaly index is a key innovation of this strategy, which quantifies the degree of deviation of the signal from its normal mode without relying on prior knowledge of specific defect types. This allows our method to remain highly sensitive to a variety of potential anomalies, whether they originate from known or unknown types of defects.
The exponential function further enhances the threshold response to anomalies, where the parameter allows us to adjust the sensitivity of detection according to specific application scenarios. This design allows the threshold to be quickly increased when highly abnormal signals are detected, while maintaining a moderate tolerance for slight fluctuations.
Applying this adaptive threshold strategy to the wavelet decomposition results at multiple scales allows our algorithm to simultaneously capture microscopic details and macroscopic trends in the leakage magnetic flux signal, effectively detecting defects of different scales and characteristics without knowing their specific types or morphologies in advance. This multi-scale analysis approach is particularly suitable for wire rope leakage magnetic flux detection, because different types of defects (such as microcracks, localized corrosion, or broken wires) may show significant characteristics at different decomposition scales. Through this complex and comprehensive adaptive threshold method, our magnetic flux leakage detection system can more accurately and reliably identify various potential defects in wire ropes. It can not only adapt to the dynamic changes in signals and environmental noise but also flexibly adjust the detection sensitivity without relying on specific defect type prior knowledge. This method significantly improves the applicability and reliability of magnetic flux leakage detection in complex and changing industrial environments and provides strong technical support for the safety monitoring and preventive maintenance of wire ropes. Ultimately, this innovation helps to improve industrial safety levels, optimize equipment maintenance strategies, and improve overall operational efficiency.
Multi-scale defect detection:
Based on the adaptive thresholds described above, we perform defect detection at each scale. This multi-scale detection method allows us to simultaneously capture defects of different sizes, from tiny cracks to large areas of corrosion, greatly improving the comprehensiveness and accuracy of the detection.
This detection process is performed independently at each scale, but with a subsequent multiscale fusion step, we are able to synthesize the detection results at each scale. We also introduced a new confidence assessment mechanism that considers not only the binary detection results but also the distance of the detection value from the threshold. This mechanism allows us to distinguish different levels of anomalies in more detail and assign them different weights in the subsequent analysis. In addition, we developed a post-processing technique based on morphological operations for eliminating isolated false detection points and connecting similar detection regions to further improve the coherence and reliability of the detection results.
Multi-scale Feature Fusion: In order to synthesize the information from each scale, we propose a new multi-scale feature fusion algorithm. This algorithm not only considers the correlation of the detection results at different scales but also introduces a weight allocation mechanism based on the physical properties of the signals, thus realizing more intelligent and effective information integration.
where
f is a non-linear fusion function that takes into account the correlation and importance of the detection results at different scales. This fusion strategy significantly improves the accuracy and robustness of the detection. Specifically, we employ a deep learning-based fusion network that automatically learns the optimal combination of features at different scales. The design of the network draws on the ideas of residual learning and attention mechanisms, enabling the model to adaptively focus on the most relevant scale information. In addition, we introduce a new uncertainty quantification method for assessing the reliability of the fusion results, which is crucial for decision-making in real applications. To systematically present our method, Algorithm 1 outlines the key steps of the proposed multi-scale Bayesian adaptive anomaly detection approach for MFL signal analysis. As shown in Algorithm 1, the process begins with wavelet decomposition, followed by multi-scale analysis, threshold computation, and comprehensive score generation.
Algorithm 1 Multi-scale Bayesian Adaptive Anomaly Detection for MFL Signals |
Require: MFL signal , maximum decomposition level J |
Ensure: Comprehensive anomaly score - 1:
Wavelet Decomposition - 2:
{, ← DWT() - 3:
Multi-scale Analysis and Threshold Computation - 4:
for to J do - 5:
for each position n do - 6:
Local Statistics Computation - 7:
Calculate local statistics , - 8:
Estimate local SNR - 9:
Information Entropy Analysis - 10:
Compute information entropy-based anomaly index - 11:
Adaptive Threshold Determination - 12:
Calculate Bayesian adaptive factor - 13:
- 14:
Threshold-based Detection - 15:
if then - 16:
- 17:
else - 18:
- 19:
end if - 20:
Bayesian Probability Computation - 21:
Calculate using Bayesian inference - 22:
end for - 23:
end for - 24:
Signal Feature Extraction - 25:
Extract feature vector from MFL signal - 26:
Comprehensive Score Generation - 27:
for each position n do - 28:
- 29:
end for - 30:
Post-processing and Classification - 31:
Apply post-processing techniques (e.g., morphological operations) - 32:
Perform final defect classification based on
|
Defect feature extraction: To further distinguish and characterize different types of defects, we designed a comprehensive set of feature extraction methods. These features include not only traditional statistical and spectral features but also advanced features based on the physical modeling of signals, allowing us to more accurately distinguish between small defects and large corrosion areas.
where:
is the comprehensive anomaly score.
is the weight for scale j.
is the posterior probability of anomaly at scale j.
is a smooth threshold function, e.g., .
is an anomaly scoring function based on feature vector .
is the weight coefficient for feature scoring.
J is the maximum decomposition level.
is the wavelet coefficient at scale j and position n.
is the adaptive threshold at scale j and position n.
: represents the parameters or hyperparameters in the anomaly scoring function.
We propose an innovative multi-scale Bayesian adaptive anomaly detection method that integrates wavelet decomposition, Bayesian inference, and feature extraction techniques. By calculating the comprehensive anomaly score , we fuse anomaly probabilities at multiple scales, smooth threshold functions, and feature-based anomaly scoring. Instead of relying on a fixed threshold, this method adopts a dynamic classification strategy based on sorting, which can adaptively identify anomalies of different degrees. By adjusting the weights of each component, our method can flexibly adapt to different types of defects, such as small defects (broken wires) and large-area defects (corrosion). This comprehensive approach not only improves the accuracy and robustness of detection but also can effectively handle various challenges in complex industrial environments, providing a powerful tool for the safety monitoring of wire ropes.