Next Article in Journal / Special Issue
Phase Selection Method for 10 kV Three-Core Cables Under Single-Phase Grounding Fault Transient Based on Surface Magnetic Field Sensing
Previous Article in Journal
Tumor Detection and Characterization Using Microwave Imaging Technique—An Experimental Calibration Approach
Previous Article in Special Issue
Bearing Anomaly Detection Method Based on Multimodal Fusion and Self-Adversarial Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Comparative Study of RQA-Guided Attention Mechanisms with LSTM Autoencoder for Bearing Anomaly Detection

by
Ayşenur Hatipoğlu
1,2,* and
Ersen Yılmaz
1
1
Electrical & Electronics Engineering Department, Bursa Uludağ University, 16059 Bursa, Türkiye
2
Turkish Aerospace Industries Inc., Uludağ University R&D Center, 16059 Bursa, Türkiye
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(3), 1015; https://doi.org/10.3390/s26031015
Submission received: 11 January 2026 / Revised: 1 February 2026 / Accepted: 2 February 2026 / Published: 4 February 2026
(This article belongs to the Special Issue Sensor-Based Fault Diagnosis and Prognosis)

Abstract

Accurate anomaly detection in rotating machinery under noisy conditions remains challenging in Prognostics and Health Management (PHM). Existing deep learning autoencoders and attention mechanisms rely primarily on data-driven similarity measures and fail to explicitly incorporate nonlinear dynamical characteristics of degradation. In this study, we propose a Recurrence Quantification Analysis-Aware Attention (RQAA) framework that systematically injects chaos-theoretic descriptors into the attention mechanism of LSTM-based autoencoders for unsupervised anomaly detection. Specifically, RQA metrics including recurrence rate, determinism, laminarity, entropy, and trapping time are computed at the window level and embedded into the query-key-value attention scoring to guide the model toward dynamically informative temporal patterns. Three attention variants are developed to investigate different fusion strategies between learned representations and RQA-driven structural cues. The proposed framework is evaluated on three widely used bearing vibration datasets, which are IMS, CWRU, and HUST. Experimental results demonstrate that RQAA consistently outperforms conventional LSTM autoencoders and classical attention-based models, achieving up to 99.85% F1-score and 99.00% AUC while exhibiting superior robustness in low signal-to-noise scenarios. Further analysis reveals that explicit dynamical guidance enhances anomaly separability and reduces false alarms, particularly in early-stage fault detection. These findings indicate that integrating nonlinear dynamical information directly into attention scoring offers a principled and effective pathway for advancing unsupervised anomaly detection in rotating machinery and safety-critical industrial systems.

1. Introduction

Anomaly detection in PHM refers to the automated identification of deviations from expected system behavior and is essential for enabling proactive maintenance and preventing unexpected failures. Early approaches primarily relied on rule-based systems and handcrafted indicators. They were later replaced by data-driven machine learning techniques such as Support Vector Machine (SVM), Random Forests, K-Nearest Neighbor (KNN) and Principal Component Analysis (PCA) as multivariate sensor data became more widely available [1,2,3,4]. In recent years, deep learning models including Autoencoders (AE), Long-Short Term Memory (LSTM), and Gated Recurrent Unit (GRU) networks have gained prominence due to their ability to capture complex nonlinear and temporal dependencies in time-series data [5,6]. However, despite their strong performance, many existing approaches remain sensitive to operating condition variability and offer limited interpretability, motivating the development of more robust and structurally informed anomaly detection frameworks. Anomaly detection can be formulated as either a supervised or unsupervised learning task. While supervised approaches rely on labeled samples from both normal and faulty conditions, such annotations are often scarce, costly, or unreliable in complex engineering systems. As a result, anomaly detection in PHM is predominantly addressed in an unsupervised setting in which models are trained on healthy data to characterize normal operating behavior and identify deviations from it [6]. This formulation places strong emphasis on learning robust representations of normal dynamics that remain sensitive to subtle and early-stage degradations.
Recent advances in deep learning have enabled data-driven diagnostics for rotating machinery; however, widely adopted sequence modeling techniques, including Transformer-based self-attention, may struggle under noisy, non-stationary, or weakly separable operating conditions. Recurrence Quantification Analysis (RQA) provides a nonlinear dynamical framework for characterizing chaotic and recurrent structures in time-series signals [7]. In the existing literature, RQA has predominantly been employed as an offline feature extraction tool within hybrid learning pipelines [8].
While several recent studies have explored recurrence-based features and attention mechanisms for time series analysis, our approach differs fundamentally in its integration strategy. Recent work using recurrence plot images as CNN inputs for time series classification employs spatial feature extraction from RP visualizations, whereas our method computes scalar RQA metrics to directly modulate attention weights in LSTM autoencoders, preserving sequential information while injecting dynamical structure [9]. Similarly, multi-scale asymmetric recurrence plot approaches combined with Swin Transformers for bearing fault diagnosis apply vision transformers to RP images, treating the problem as spatial image processing rather than temporal sequence modeling [10]. MTF-based methods with mixed attention residual networks convert signals to 2D Markov transition field images and apply spatial attention, fundamentally differing from our approach which computes RQA metrics directly from time series and embeds them into temporal attention scoring for LSTM autoencoders [11]. Although physics-informed attention mechanisms have shown promise in PDE solving through PINNsFormer [12], where physical laws guide network learning, our work extends this paradigm to industrial anomaly detection by embedding chaos-theoretic RQA descriptors into attention scoring rather than differential equation constraints, thereby bridging physics-informed deep learning with practical PHM applications.
To the best of our knowledge, no prior study has systematically integrated RQA-derived nonlinear dynamical descriptors directly into the attention scoring mechanism of LSTM-based autoencoders for unsupervised bearing anomaly detection. Embedding RQA-informed structural cues into attention computation therefore offers a principled means of guiding attention toward dynamically informative regions of the signal.
The main contributions of this study are summarized as follows:
  • We propose three distinct RQA-enhanced attention mechanisms, namely Hybrid QKVRQAA, Input-level RQA-Guided Channel Attention (CRQAA), and Encoder-level RQA-Guided Channel Attention (ERQAA), which differ in how and where RQA-derived nonlinear dynamical information is mathematically integrated into the attention pipeline.
  • We provide a systematic comparative analysis within individual datasets demonstrating how different RQA integration levels influence representation learning and anomaly detection performance under varying signal dynamical regimes, including non-stationary and noisy conditions.
  • Extensive experiments conducted on three publicly available bearing datasets (IMS, CWRU, and HUST) show that embedding RQA-derived dynamical descriptors into attention mechanisms consistently improves anomaly detection performance, particularly for signals exhibiting nonlinear and chaotic characteristics.
  • By computing RQA metrics directly from raw vibration signals, the proposed approach incorporates physics-informed dynamical priors into deep attention models, effectively bridging nonlinear dynamical system analysis and data-driven representation learning.
The remainder of this manuscript is organized to first review related work, then present the proposed methodology, followed by experimental evaluation, and finally conclude with directions for future research.

2. Related Work

PHM systems are typically implemented through a structured processing pipeline encompassing data acquisition, preprocessing, representation learning, anomaly scoring, and decision support. Although specific modeling techniques vary across applications, most anomaly detection frameworks follow a common workflow that integrates signal processing, feature learning, and decision-making components. Figure 1 illustrates this general anomaly detection pipeline, which provides a contextual framework for positioning the methods reviewed in this section as well as the approach proposed later in the paper.
According to the literature, signal-, model-, or data-based methods, as well as deep learning and hybrid approaches, are widely used in anomaly detection [13]. Examples of signal-based methods include FFT, WT, and RQA [14,15]. Within model-based methods, state-space modeling and KF are frequently mentioned [16]. Data-based machine learning methods include approaches such as Isolation Forests (IF), Principal Component Analysis (PCA), Single-Class SVM, and K-Means clustering. On the deep learning side, AE, LSTM-AE, CNNs, and attention-based models are reported to be used in anomaly detection [17]. Furthermore, hybrid approaches combining attention-based mechanisms with data-driven methods have also been reported [18]. Attention mechanisms enable the model to focus on critical time steps or sensor channels, allowing for the suppression of unnecessary information and more effective learning of long-term dependencies [19]. Different types of attention have been proposed in the literature [20]. Channel attention mechanisms are used to highlight important feature channels, particularly in convolutional architectures, while spatial and temporal attention mechanisms highlight critical regions in the input space and important time steps in sequential data, respectively. Multi-headed attention can capture different types of relationships by processing the input in parallel attention subspaces, while external attention mechanisms aim to increase computational efficiency through external memory structures [21,22,23]. Self-attention mechanisms are widely used in time series modeling tasks due to their ability to selectively focus on the most informative parts of the sequence [24]. This structure provides an advantage, particularly in capturing slow-developing decay trends and long-term dependencies [25]. Compared to recurrent models, its ability to process the entire sequence simultaneously increases computational efficiency and facilitates adaptation to variable and noisy working conditions. Furthermore, attention weights explicitly reveal which time steps the model considers more important in its decision-making process, thereby supporting interpretability. When combined with LSTM architectures, attention operates as a temporal weighting mechanism that highlights informative segments of sequential data, whereas CNN-based models emphasize salient patterns across sensor channels. In contrast, Transformer architectures employ self-attention to jointly capture long-range temporal dependencies and global inter-sensor interactions [24].
Many engineering systems, particularly rotating machinery, exhibit nonlinear dynamic behavior in which the system output is not directly proportional to its input and cannot be adequately described using linear equations. In rotating machines, nonlinear events arising from mechanical interactions, wear processes, and operating variability motivate the use of chaos-based analysis techniques for vibration signal interpretation. Chaotic analysis enables the characterization of nonlinear system dynamics, supports prediction and forecasting, facilitates anomaly detection, and provides insight into system stability and degradation mechanisms. Within this context, RQA has emerged as an effective tool for analyzing nonlinear and non-stationary time series.
Compared to traditional time-frequency methods such as Fourier Transform or Wavelet Analysis, RQA offers distinct advantages for nonlinear and non-stationary signals. RQA does not assume stationarity, requires relatively short time series, and can detect subtle changes in system dynamics that may not be apparent in spectral analysis [26]. These characteristics make RQA particularly suitable for condition monitoring of rotating machinery, where transient events and nonlinear dynamics are prevalent.
RQA has proven valuable for assessing signal instability, which is a common property of real-world vibration data [27,28]. By extracting sensitive recurrence-based features, RQA-based methods improve the interpretability and robustness of fault diagnosis even under noisy operating conditions [29]. Moreover, the instability of recurrence quantification measures has demonstrated strong predictive capability when characterizing complex dynamical behavior [30]. Owing to their robustness to noise, ability to extract comprehensive dynamical features, and computational efficiency, RQA-based approaches are suitable for both exploratory analysis and real-time monitoring applications [28,29]. Consequently, RQA has been applied in a wide range of PHM tasks, including early detection of aircraft engine failures, identification of bearing and rotor faults via vibration analysis, RUL estimation in chaotic systems, and time series analysis of helicopter and aircraft sensor data [7,8].
In the literature, RQA has been applied to monitor transient accelerometer signals from auxiliary aircraft equipment such as fuel pumps, where it provides early warnings of degradation and improves mean time before failure estimation. Studies have shown that combining RQA with traditional diagnostic methods can enhance failure detection accuracy and maintenance planning for aircraft components, outperforming classical models such as k-Nearest Neighbor and Random Forest, and demonstrating strong potential for engineering applications, including aviation bearings [7,31]. Furthermore, the integration of RQA with Kalman filtering techniques has enabled the prediction of bearing failures by extracting entropy-based features from vibration signals and modeling degradation dynamics, with reported prediction horizons of up to 50 min prior to failure [32]. Beyond mechanical systems, RQA has also been used to analyze surface pressure data on wing profiles, successfully distinguishing flow transitions at different angles of attack, and to interpret turbulence measurements by separating turbulent and non-turbulent segments using recurrence-based variables, thereby reducing subjectivity in boundary definitions [33].
Despite the extensive body of work on anomaly detection in PHM, most existing studies employ nonlinear dynamical descriptors such as RQA either as standalone diagnostic indicators or as offline feature extraction tools integrated into conventional machine learning pipelines. In parallel, attention mechanisms in deep learning models are predominantly driven by data similarity measures and temporal correlations, which can be sensitive to noise and non-stationary operating conditions. As a result, the structural dynamical information captured by recurrence-based analysis remains largely untapped within attention scoring mechanisms. This gap motivates the present study, which systematically integrates RQA-derived nonlinear dynamical descriptors directly into the attention mechanism of LSTM-based autoencoders for unsupervised anomaly detection.

3. Materials and Methods

3.1. Dataset

Open source datasets play a critical role in the development and validation of PHM systems, particularly for rotating machinery components such as bearings. Bearings are essential elements that support and guide rotating shafts, and their degradation can be caused by operational stress, environmental conditions, or installation defects. These defects can lead to severe mechanical failures and unplanned downtime. Consequently, early fault detection is crucial for ensuring system reliability and reducing maintenance costs. Among various diagnostic approaches, vibration analysis has proven to be one of the most effective techniques for bearing fault detection, motivating the widespread use of publicly available vibration-based bearing datasets for studying early-stage mechanical anomalies [34].

3.1.1. NASA Bearing Dataset

The NASA Bearing Dataset was introduced by the Center for Intelligent Maintenance Systems (IMS) at the University of Cincinnati and has become a benchmark dataset for bearing fault diagnosis and prognostics studies. The experimental setup consists of an AC motor, PCB 353B33 high-sensitivity accelerometers, and thermocouples. Four double-row bearings were mounted on a rotating shaft operating at a constant speed of 2000 rpm. An approximate radial load of 6000 lb (~27 kN) was applied to the shaft using a spring mechanism [35].
Vibration signals were recorded at 20 min intervals with a sampling frequency of 20 kHz, resulting in 20,480 data points per measurement. The data encompass four distinct operating states, consisting of normal operation and three fault scenarios associated with the inner race, outer race, and rolling element. In this study, only the data from Test 2 is used, comprising 984 samples and culminating in the natural development of an outer race fault in Bearing 1. This progressive degradation scenario makes the dataset particularly suitable for unsupervised anomaly detection and early fault identification tasks.

3.1.2. CWRU Bearing Dataset

The CWRU bearing dataset was developed by the Case Western Reserve University Bearing Data Center and is one of the most widely used benchmark datasets for bearing fault diagnosis and anomaly detection studies [36]. The dataset contains vibration measurements acquired from a laboratory test rig under controlled operating conditions, with artificially induced bearing defects.
Faults were introduced using Electrical Discharge Machining (EDM) and include inner race, outer race, and ball defects with varying severities. Vibration signals were recorded from accelerometers mounted on the motor housing under different load conditions and rotational speeds [37,38]. In this study, the 48 kHz Drive-End (DE) vibration signals collected at approximately 1750 rpm were used as a benchmark dataset. The raw signals were segmented into fixed-length windows of 2048 samples, yielding a total of 2300 samples across normal and faulty operating conditions. This configuration has been widely adopted in the literature and provides a suitable testbed for evaluating unsupervised bearing anomaly detection performance [39]. Although the CWRU dataset is originally designed for fault classification, its controlled degradation scenarios make it suitable for benchmarking unsupervised anomaly detection methods.

3.1.3. HUST Bearing Dataset

The HUST bearing dataset, provided by Hanoi University of Science and Technology, is a benchmark dataset designed for intelligent fault detection, condition monitoring, and PHM studies [39]. Compared to the CWRU dataset, HUST offers more realistic fault progression characteristics, as it contains naturally occurring bearing defects that evolve over time until failure, rather than artificially induced faults. This property makes the dataset particularly suitable for early fault detection, RUL estimation, and transfer learning research.
The dataset consists of raw vibration signals collected from ball bearings operating under multiple load conditions, with a sampling frequency of 51.2 kHz [40]. It includes normal conditions as well as inner race, outer race, and ball defects, along with their combined fault modes [39,40]. In this study, vibration data corresponding to the 6205-bearing type operating at 400 W were used. The signals were segmented into fixed-length windows of 1024 samples, resulting in 3500 samples across seven health conditions.
These characteristics make the HUST dataset well suited for assessing the robustness of the proposed unsupervised RQA-enhanced anomaly detection framework under realistic degradation scenarios.

3.2. Model

3.2.1. Long-Short Term Memory (LSTM)

Long Short-Term Memory (LSTM) networks belong to the family of recurrent architectures developed to model sequential data by preserving long-range temporal information. This capability is achieved through an internal memory structure regulated by multiple gating units (Figure 2), which dynamically control information flow. Specifically, the input gate modulates the incorporation of new signals into the memory state, the forget gate adaptively attenuates obsolete information, and the output gate governs the propagation of the internal representation to subsequent layers [41].
Through its gated memory structure, the LSTM architecture supports long-term dependency modeling and stabilizes temporal learning dynamics. In contrast to standard RNNs, gradient degradation effects are alleviated by controlled information flow between successive cell states. The internal computations rely on sigmoid-based gating and tanh nonlinearities, enabling precise modulation of memory content at each time step, as formally described in prior work [43,44,45].

3.2.2. Autoencoders (AE)

AE-based approaches are widely adopted for unsupervised anomaly detection in PHM due to their ability to model complex nonlinear relationships in multivariate sensor data without requiring fault labels. When trained exclusively on healthy data, AEs learn a compact latent representation of normal system behavior. Consequently, samples that deviate from this learned distribution are reconstructed with higher error, which can be directly exploited as an anomaly score [46]. The autoencoder consists of an encoder that compresses the input data and a decoder component that reconstructs the input from this representation (Figure 3).
An AE consists of an encoder that maps the input vector x R n into a lower-dimensional latent representation z R m   ( m < n ) , and a decoder that reconstructs the input from this representation. The encoder and decoder are defined as in Equations (1) and (2):
z = f θ x = σ ( W e x + b e )
x ~ = g ( z ) = σ ( W d z + b d )
where W e and W d denote the encoder and decoder weight matrices, b e and b d denote the encoder and decoder bias vectors respectively, and σ . is a nonlinear activation function. The reconstruction error is computed using Equation (3).
L x , x ~ = x x ~ 2 2
The goal is to minimize the difference between the input and the reconstructed output. When detecting anomalies, the reconstruction error calculated for each sample is compared with the θ threshold value.
L x , x ~ > θ
The threshold selection depends on the data distribution and application requirements and is commonly determined using statistical criteria such as percentiles or probabilistic distance measures, including kernel density estimation, Gaussian models, or Mahalanobis distance [47,48]. In this study, the reconstruction error serves as the primary anomaly indicator and provides the foundation for integrating RQA-enhanced attention mechanisms into the autoencoder framework.

3.2.3. RQA Metrics

From a theoretical perspective, the concept of deterministic dynamical systems forms a foundational basis for recurrence-based analysis, particularly in nonlinear settings. This concept, first introduced for time series analysis by [49], describes system evolution as trajectories or orbits in a reconstructed phase space. Recurrence Plots (RP) were subsequently proposed to visualize and quantify the recurrence of system states by reconstructing the phase space from observed scalar time series data, resulting in a two-dimensional matrix representation of recurring patterns [50].
To reconstruct the underlying dynamical system, the time series is embedded into a higher-dimensional phase space using an appropriate embedding dimension m and delay parameter τ. The recurrence matrix is then obtained according to Equation (5) [8]:
R i , j = H ε x i x j = 1 , ε x i x j 0 0 , ε x i x j < 0
In Equation (5), R i , j represents a binary recurrence matrix where R i , j = 1 indicates a recurrence (black point) between states x i and x j , and R i , j = 0 indicates no recurrence (white point). H is the Heaviside function, ε is the recurrence threshold, and . denotes the Euclidean norm. When plotted with i as the horizontal axis and j as the vertical axis, this binary matrix forms the RP.
The threshold ε is a critical parameter that determines the sensitivity of recurrence detection. Common approaches include: (1) fixed threshold based on a percentage of phase space diameter, (2) fixed recurrence rate, or (3) adaptive thresholds based on local density [51]. The choice depends on the data characteristics and analysis objectives.
In this study, RPs were computed directly from the scalar time series (embedding dimension m = 1, delay τ = 1), as RQA features were employed as structural descriptors rather than for attractor reconstruction. This choice avoids introducing additional hyperparameters and is sufficient when RQA is used for local dynamical characterization instead of invariant estimation. RPs were generated using a fixed recurrence rate strategy, where the distance threshold ε was automatically determined such that 20% of state pairs were recurrent. A relatively dense recurrence rate was preferred to ensure robust estimation of RQA statistics within short sliding windows. This approach ensures scale invariance and stabilizes RQA features across varying signal conditions. RQA metrics are computed independently for each time-windowed sample prior to attention computation, ensuring sample-wise dynamical characterization. For multivariate signals, channels are concatenated into a single 1D surrogate sequence prior to RP computation.
Although RPs facilitate qualitative assessment of dynamical systems, their interpretability is constrained by the absence of numerical descriptors. RQA overcomes this limitation by providing a set of metrics that quantify recurrence distributions and fine-scale diagonal features embedded in the RP structure [26,50].
RQA is a nonlinear mathematical and statistical technique used to extract meaningful features from time series, particularly in complex, chaotic, and non-stationary environments. Key RQA parameters such as recurrence rate, determinism, entropy, mean diagonal length, and trapping time help characterize fundamental dynamics and detect changes or anomalies in vibration signals [30,52,53]. Among these metrics, R R measures the recurrence rate of the time series. A high R R indicates that the system is more regular. Its mathematical representation is expressed as follows (Equation (6)).
R R = 1 N 2 i , j N R i , j
In the equation, N is the total sample size. R R is the density measure of R P and represents the ratio of recurrence points to the total number of possible recurrences [54].
DET quantifies the proportion of recurrence points forming diagonal line structures, reflecting the presence of deterministic and predictable patterns in the system dynamics [55]. High DET values indicate more deterministic behavior as opposed to stochastic dynamics. DET is defined as shown in Equation (7),
D E T = l = l m i n N l P ( l ) l = 1 N l P ( l )
In the equation, N represents the size of the R P matrix, l represents the length of the diagonal lines on the RP, and P ( l ) represents the frequency distribution of the diagonal line lengths. The minimum diagonal length is typically set to 2 to exclude tangential motion and single-point recurrences.
L A M quantifies the proportion of recurrence points that form vertical structures in the RP, indicating laminar states where the system dynamics remain relatively unchanged. High L A M values suggest the presence of intermittency or slowly varying regimes [55]. L A M is calculated as shown in Equation (8).
L A M = v = v m i n N v P ( v ) v = 1 N v P ( v )
v indicates the length of vertical lines formed by consecutive recurrence points on the RP. v m i n is the threshold for the shortest vertical line length to be considered. The minimum vertical line length v m i n is typically set to 2, as at least two consecutive recurrence points are required to define a line structure. P v represents the frequency distribution of vertical lines with length v .
L m e a n represents the average length of the system’s recurring dynamic patterns. High L m e a n values indicate that the system has long-term correlations and high predictability, while low values indicate shorter-term and chaotic behavior (Equation (9)).
L m e a n = l = l m i n N l P ( l ) l = l m i n N P ( l )
In the equation, P l is the number of diagonal lines with length l . l m i n is the minimum line length to be included in the calculation.
L m a x , is one of the RQA metrics and represents the length of the longest diagonal line on the R P (Equation (10)). This metric is another indicator used to evaluate the deterministic (predictable) behavior of the system.
L m a x = m a x ( l i ; i = 1 , 2 , , N )
Here, l i , is the length of the i-th diagonal line in R P .
E N T R measures the complexity of system dynamics based on the distribution of diagonal lines in R P (Equation (11)). It typically represents the Shannon entropy associated with the probability of detecting a diagonal line of full length l . High entropy values are associated with increased dynamical complexity, reflecting a broader distribution of diagonal line lengths, whereas low entropy values indicate the dominance of a limited number of characteristic time scales, corresponding to more regular or periodic system behavior [56].
E N T R = l = m i n N P l l n P ( l )
T T measures the average length of vertical lines in the RP, representing the mean time the system remains in a similar state (Equation (12)). High T T values indicate that the system tends to persist in certain states for extended periods, which may reflect stable operating conditions or, conversely, degraded states with reduced variability [26].
T T = v = v m i n N v P ( v ) v = v m i n N P ( v )
In this study, the aim is to improve existing attention structures by incorporating chaotic metrics obtained using RQA. Within this scope, field-specific information about the physical processes that drive the system’s behavior has been obtained using recurrence-based features. As a result, the attention mechanism can now focus not only on raw temporal patterns but also on their derived features, potentially enhancing its ability to detect critical changes.

3.2.4. RQA-Based Attention Mechanism

Adding RQA values to attention scores enables the model to include recurrence features when calculating attention weights, thereby helping the network focus on critical time steps where degradation accelerates. This significantly improves prediction accuracy, particularly in nonlinear systems.
For a given input tensor X R B × T × F the study examines three different RQA-Attention approaches: Hybrid QKVRQAA, CRQAA and ERQAA.
In the Hybrid QKVRQAA mechanism, which combines RQA pre-information with classical attention scores, the Query (Q), Key (K), and Value (V) of the classical attention mechanism are first calculated. Input data is passed through three linear projections to form the QKV matrices in sequence:
Q = X . W Q
K = X . W K
V = X . W V
In the equations, X is the input time series data, and W Q , W K , W V are the weight matrices. b Q , b K , b V are the model’s bias values. The scaled point-wise product score is calculated for each batch and time step as given in Equation (16).
S = Q K T d
Each sample within the batch is converted into a single vector, and RP is generated from this vector. A 7-component RQA feature vector is obtained from RP and stacked into a tensor.
x w = v e c X w
R P w = R e c u r r a n c e P l o t x w 0,1 N × N
r w = [ R R , D E T , L A M , L m e a n , L m a x , E N T R , T T ] w
R = [ r 1 ; ; r W ]
Subsequently, an RQA-based channel weight vector is created.
g = ( ( 1 T t = 1 T x t ) W x ) t a n h R W r
In the equation, g is the channel weight vector, x t is the feature vector at time step t , W x is the input projection weight matrix, R is the RQA feature vector, and W is the RQA projection weight matrix. The tanh function normalizes the vector from RQA to the range [−1,1]. Element-wise multiplication (Hadamard product) is used to perform the channel-level multiplicative gating operation.
The channel weights are then reduced to a single scalar deviation coefficient and broadcast across time steps to obtain one global attention gate per batch:
B r q a = B r o a d c a s t tanh g W γ + b γ
Here, B r q a functions as a global attention deviation term derived from channel-level fusion of RQA features. It is produced as a single scalar for each batch and propagated across all time steps. Consequently, adding B r q a o attention logits encourage the model to be sensitive not only to local temporal correlations but also to the overall nonlinear/chaotic structure of the series. W γ denotes the learnable weight vector associated with the global gate. Classical attention logits and the RQA-derived deviation are fused in a shared attention space:
S ~ = W 1 S + W 2 B r q a
S denotes classical attention scores, B r q a denotes the RQA-based attention deviation, W 1 and W 2 are learnable fusion weights. This fusion map both components to a common scale and enables joint modeling of time-dependent relationships and recurrence-based dynamical complexity.
Finally, normalized attention weights are computed and applied to the value vectors in Equation (24):
c = S o f t m a x ( S ~ ) V
where c is the context representation. For each sample and time step, S ~ denotes the normalized fusion attention scores and V denotes the value vectors. The resulting context representation is passed to the decoder as an information-enriched feature representation.
Overall, unlike conventional attention mechanisms that rely solely on temporal similarity, the proposed formulation injects global nonlinear dynamical information as a structured bias term into attention scoring, improving robustness under noisy and non-stationary operating conditions.
In the second model, referred to as the CRQAA mechanism, RQA metrics are extracted directly from the input time series. This model is inspired by the work presented in [57], which suggests that attention mechanisms can be guided by physically interpretable features instead of relying solely on purely data-driven query–key interactions. Motivated by this idea, a physically informed channel-wise attention mechanism is proposed in this study, where RQA-based dynamical descriptors are used to modulate the attention representation through multiplicative interactions, rather than replacing the entire self-attention structure.
RQA metrics are computed for each input sample according to the formulations given in Equations (17)–(20). For each sample, seven RQA features are extracted from the corresponding recurrence plot, as defined in Equations (25) and (26). The resulting RQA feature vector r w is projected into a D-dimensional latent space using a fully connected layer with a hyperbolic tangent activation:
z w = t a n h r w W r + b r
Z = [ z 1 ; ; z W ]
W r is the projection weight matrix, and b r is the bias vector. Z is formed by vertically stacking the z w vectors belonging to each sample. To fuse the RQA-based dynamic features with the input representation, the temporal average of the input time series u w is first computed. A channel-wise multiplicative interaction is then applied between the averaged input features and the projected RQA features in Equations (27) and (28).
y w = u w z w
Y = [ y 1 ; ; y B ]
Here, u w is the time average of the input time series. z w represents the chaotic-dynamic properties of the input. y w is the combined attention vector. The resulting vector y w constitutes a fused attention descriptor that integrates both signal content and dynamic complexity information. Through the Hadamard product, each channel becomes selectively sensitive to variations in both the input representation and the RQA-derived dynamical features, enabling a physically informed modulation of the attention mechanism.
The third mechanism, ERQAA, is identical to CRQAA, but it is calculated from the encoder’s hidden representation rather than the raw input signal. The encoder first compresses the input sequence into a lower-dimensional hidden space via two LSTM layers and a bottleneck dense layer. Subsequently, the hidden features are used to construct recurrence graphs and extract RQA metrics following Equations (17)–(20). All subsequent computations—projection (Equations (25) and (26)), channel-level gating (Equations (27) and (28))—remain identical to CRQAA. This variant test the hypothesis that encoder-based compression can either enhance or suppress chaotic signatures depending on the dataset characteristics. The most suitable variant (QKVRQAA/CRQAA/ERQAA) depends on sensor count, noise level, and signal complexity.
Finally, RQA descriptors are computed on fixed-length sliding windows to capture local, time-varying nonlinear dynamics relevant for early anomaly emergence. Computing RQA over the full sequence would result in a global summary and may dilute transient deviations; therefore, window-level RQA is adopted to align the dynamical prior with the anomaly scoring window. Each window is treated as an independent analysis unit, and anomaly scoring is performed only after the entire window has been observed. No samples beyond the window boundary are accessed during feature extraction or model inference, ensuring that the proposed formulation does not introduce information leakage from future time steps and preserves temporal causality at the window level.

3.3. Performance Evaluation Metrics

The effectiveness of the proposed anomaly detection framework is assessed using commonly adopted evaluation measures computed from the confusion matrix, which captures the distribution of correct and incorrect predictions [58,59]. In binary fault detection problems, where samples are categorized as normal or faulty, the confusion matrix consists of four fundamental components: True Positive (TP), True Negative (TN), False Positive (FP), and False Negative (FN), as illustrated in Figure 4.
Accuracy measures the proportion of correctly predicted instances relative to the entire dataset, as formulated in Equation (29).
A c c u r a c y = ( T P + T N ) ( T P + T N + F P + F N )
Although accuracy provides an overall performance indicator, it can be misleading in anomaly detection scenarios due to the inherently imbalanced nature of normal and faulty data distributions.
Precision and recall are therefore reported to better characterize model behavior under imbalance data. Precision measures the proportion of predicted faulty samples that are truly faulty (Equation (30)).
P r e c i s i o n = T P ( T P + F P )
Recall (sensitivity) quantifies the proportion of actual faulty samples that are correctly detected as in Equation (31).
R e c a l l = T P ( T P + F N )
These metrics reflect complementary aspects of fault detection performance, where FP and FN may have different operational consequences. The F1-score is defined as the harmonic mean of precision and recall. This provides a balanced performance measure and is particularly suitable for imbalanced datasets (Equation (32)).
F 1 S c o r e = 2 × P r e c i s i o n × R e c a l l ( P r e c i s i o n + R e c a l l )
In addition, the Receiver Operating Characteristic (ROC) curve and the Area Under the Curve (AUC) are used to assess the discriminative capability of the classifier across varying decision thresholds. The ROC curve plots the True Positive Rate (TPR) against the False Positive Rate (FPR) as in Equations (33) and (34).
T P R = T P T P + F N
F P R = F P F P + T N
The ROC–AUC score quantifies the probability that a randomly selected faulty sample is assigned a higher anomaly score than a randomly selected normal sample, making it a widely used evaluation metric for imbalanced classification problems [60]. Given the highly imbalanced nature of anomaly detection tasks, the F1-score and ROC–AUC are emphasized as the primary evaluation criteria in this study. In our implementation, ROC–AUC is computed based on reconstruction-error–derived anomaly scores obtained from the anomaly detection process, ensuring consistent and fair comparison across different models.
All experiments were conducted on a MacBook Pro with Apple M4 chip and 16 GB unified memory (Apple Inc., Cupertino, CA, USA) running macOS 15.6 (Apple Inc., Cupertino, CA, USA). The software stack comprised Python 3.11.0 (Python Software Foundation, Wilmington, DE, USA), TensorFlow 2.16.2 with Metal acceleration (Google LLC, Mountain View, CA, USA), NumPy 1.26.4 (NumFOCUS, Austin, TX, USA), and scikit-learn 1.6.1 (INRIA, Paris, France).

4. Results

In this study, an LSTM backbone was employed to capture temporal dependencies and extract sequential features. Within the anomaly detection framework, RQA-based attention mechanisms were integrated into an LSTM-AE architecture to enhance bearing anomaly detection performance. The proposed models differ according to the stage at which RQA information is incorporated: hybrid LSTM-AE-QKVRQAA combines RQA priors with QKV attention scores, LSTM-AE-CRQAA applies an RQA-Guided Channel Attention module at the input level, and the LSTM-AE-ERQAA introduces this guidance within the encoder’s latent representation. The overall system workflow is illustrated in Figure 5.
In the proposed model, each input sequence is first processed by the LSTM layers embedded within the encoder part of the AE, which capture the temporal dependencies across different time windows. Following the encoder, three distinct attention mechanisms are examined. The features enriched with RQA measures derived from RP are fed into a dedicated attention module. The RQA vector is incorporated as a gating bias into the attention scores, enabling the computation of attention weights that are sensitive to the regularity and recurrence properties of the underlying system dynamics.
The decoder LSTM layers then reconstruct the input sequence from this enriched representation, while anomaly detection is performed by comparing the reconstruction error against a threshold determined from the learned normal-condition distribution during training. Through this process, the RQA-enhanced attention mechanism assigns higher weights to patterns that reflect healthy operating behavior, thereby improving the model’s capability to detect bearing anomalies. A schematic illustration of the implemented models is presented in Figure 6.
In this study, three publicly available bearing datasets commonly used in the literature were employed. A sample time-series visualization of the IMS dataset is presented in Figure 7. For the anomaly detection experiments, the first 531 samples of the signal were considered as healthy data, while the remaining portion was labeled as anomalous.
A time-series representation of the CWRU dataset is provided in Figure 8. For the anomaly detection task, the first 230 samples were designated as healthy data, while the remaining portion of the signal was labeled as anomalous.
A time-series representation of the HUST dataset is shown in Figure 9. The segment corresponding to normal operation begins at sample 2004 and ends at sample 2504.
Windowed samples were split into training/validation/test sets using a time-ordered strategy to avoid leakage due to overlapping windows. The model was trained on healthy windows only; validation was performed on the remaining healthy portion, and test evaluation was conducted on the full timeline to assess detection performance across the entire degradation process.
As illustrated in the figures, the number of normal samples in both the CWRU and HUST datasets is considerably limited. Due to the scarcity of normal time-series segments and the presence of stochastic variations in sensor measurements that may negatively impact model performance, a noise-based data augmentation strategy was employed to increase the diversity of the training set. In this approach, each original sample was augmented by adding Gaussian noise with a zero mean and a predefined standard deviation ( σ = noise level), generating new synthetic samples.
Mathematically, this process can be expressed as, X ~ ( k ) = X + η ( k ) , where X denotes the original time series and η ( k ) N ( 0 , σ 2 ) represents the noise vector. In this study, the noise level was set to σ = 0.01 . The k noisy replicas produced from each sample were then combined with the original data, expanding the training set size to 1 + k times its initial volume, with k = 3 was selected. To validate the impact of Gaussian noise augmentation on recurrence-based features, a quantitative sensitivity analysis was conducted. As shown in Table 1, moderate noise levels (σ ≤ 0.05) preserve recurrence-driven anomaly separability, whereas excessive noise (σ = 0.1) degrades RQA-sensitive structures, leading to reduced detection performance. This confirms that the adopted percentile-based thresholding strategy ensures robustness under realistic noise levels, while also revealing its practical operating limits. This analysis also supports the design choice of percentile-based recurrence thresholding introduced in the methodology section.
This augmentation strategy improves the model’s robustness against measurement noise and environmental disturbances while reducing overfitting and enhancing generalization capability. Importantly, since recurrence plots were constructed using a percentile-based thresholding strategy, moderate noise levels (σ ≤ 0.05) do not significantly distort recurrence density, thereby ensuring consistent RQA-based feature extraction under realistic noise conditions.
To clarify the core concepts and procedural steps of the hybrid LSTM-AE-QKVRQAA model developed in this study, Algorithm 1 presents the fundamental pseudocode. The number of units in the LSTM layers and the dropout rates were optimized individually for each dataset (Table 2).
Algorithm 1. LSTM-AE-QKVRQAA
Input:
  • 3D time series [sample, time, feature]
  • Training Parameters:
    o
    Epoch: 100
    o
    Batch: 16
    o
    Early stopping: val_loss, patience = 5
Output:
  • Trained LSTM-AE-QKVRQAA model
LSTM-AE-QKVRQAA model:
  • The input layer is defined
  • The LSTM layer is applied
  • Layer normalization is applied
  • Dropout is applied
  • The LSTM layer is applied again
  • Layer normalization is applied
  • Time axis average is taken with GlobalAveragePooling1D
  • Bottleneck dense layer is applied
  • A Q-K-V projection is performed with dense layers.
    o
    RP is extracted for each sample in the batch
    o
    RQA metrics are calculated:
    RR
    DET
    LAM
    Lmean
    Lmax
    ENTR
    TT
    o
    RQA features are projected onto the dense layer dimension
    o
    Temporal axis average and RQA vector are multiplicatively fused to produce a scalar gate
    o
    This scalar gate is broadcast to all (T,T) positions and combined with classical scaled dot-product scores
    o
    Attention weights are obtained using Softmax; they are multiplied by V and accumulated over time to produce the context vector
  • A channel-level weighted summary is obtained
  • It is passed through the dense layer and ReLU activation
  • It is repeated for the time step using RepeatVector and passed to the decoder
  • The LSTM layer is applied
  • Dropout is applied
  • The LSTM layer is applied
  • Final layer: Dense layer, activation: linear
  • Adam optimizer, Learning rate: 0.001, and model is trained using the MSE loss function
  • LSTM-AE-QKVRQAA model is returned
For multivariate time series like IMS dataset with 4 accelerometers, the signals were concatenated along the feature dimension before phase space reconstruction, resulting in a joint recurrence matrix that captures cross-channel temporal dependencies. This approach differs from computing separate RQA metrics for each channel and enables the attention mechanism to leverage inter-sensor correlations [61].
Table 2 presents the hyperparameters that are not commonly applied across all models.
Algorithm 2 provides the core pseudocode outlining the fundamental concepts and step-by-step procedure of the proposed LSTM-AE-CRQAA model.
Algorithm 2. LSTM-AE-CRQAA
Input:
  • 3D time series data [sample, time, feature]
  • Training parameters:
    o
    epoch: 100
    o
    batch: 16
    o
    Early stopping: val_loss, patience = 5
Output:
  • Trained LSTM-AE-CRQAA model
LSTM-AE-CRQAA model:
  • The input layer is defined
  • The LSTM layer is applied
  • Layer normalization is applied
  • Dropout is applied
  • The LSTM layer is applied again
  • Layer normalization is applied
  • Time axis average is taken with GlobalAveragePooling1D
  • Bottleneck dense layer is applied
    o
    RP is extracted for each sample in the batch
    o
    RQA metrics are calculated:
    RR
    DET
    LAM
    Lmean
    Lmax
    ENTR
    TT
    o
    The RQA vector is projected
    o
    The input tensor is projected
    o
    A channel-level multiplicative gate is applied
  • The time axis average is taken using the GlobalAveragePooling1D layer
  • The encoder summary is combined with channel weights
  • The context vector is passed through a Dense layer and ReLU activation
  • It is repeated for the time step using RepeatVector and transferred to the decoder
  • The LSTM layer is applied
  • Dropout is applied
  • The LSTM layer is applied
  • Final layer: Dense layer, activation: linear
  • The model is trained using Adam optimization, learning rate: 0.001, and MSE loss function
  • LSTM-AE-CRQAA model is returned
In the third model, LSTM-AE-ERQAA, the RQA metrics are computed from the encoder output rather than from the raw input sequence. All other computations and hyperparameter settings are kept identical to the LSTM-AE-CRQAA model. The objective of this design is to determine whether anomaly detection performance is more strongly influenced by RQA features derived directly from the input signal or by those computed from the latent representation produced by the encoder. To ensure full reproducibility, the random seeds were fixed at 42 for all experiments. The hyperparameters used in the model are summarized in Table 3.
In the threshold selection stage, the 3-sigma rule is employed. For each time window i , an anomaly score s i is computed, which corresponds to the reconstruction error of the autoencoder. Using the training set composed solely of fault-free samples, D n o r m = s i i = 1 N , the location and scale parameters of the score distribution are estimated according to the following Equations (35) and (36):
μ ^ = 1 N i = 1 N s i
σ ^ = 1 N 1 i = 1 N ( s i μ ^ ) 2
Since the reconstruction error in autoencoder-based anomaly detection does not generate negative anomalies, a one-sided 3-sigma rule was applied to capture only the extreme values on the upper side of the distribution. According to the one-sided 3-sigma rule, the decision threshold θ is computed in Equation (37):
θ = μ ^ + k σ ^ ,         k = 3
For any new window, the decision function is defined in Equation (38):
A n o m a l y s = 1 , s > θ , 0 , s θ .
The performance metrics of the models are presented in Table 4.
The confusion matrices of the best-performing models for the three datasets corresponding to the models yielding the highest F1-score and AUC on each dataset are visualized in Figure 10.
Table 4 summarizes the performance of the baseline LSTM-AE and the proposed RQA-guided attention models across the IMS, CWRU, and HUST datasets. Overall, the results indicate that incorporating RQA-derived dynamical descriptors into attention mechanisms consistently improves anomaly detection performance, with the gains becoming more pronounced as the dynamical complexity and noise level of the dataset increase. In the IMS dataset, which exhibits relatively regular and well-structured dynamics, the baseline LSTM-AE already achieves strong performance. Nevertheless, the proposed LSTM-AE-QKVRQAA model further improves the results, reaching an accuracy of 99.47%, an F1-score of 99.41%, and an AUC of 99.45%, indicating more balanced precision–recall behavior and improved sensitivity to subtle anomalies. This suggests that integrating RQA-informed dynamical priors into the QKV-based attention mechanism enhances temporal feature discrimination even in comparatively simple operating conditions. For the CWRU dataset, both LSTM-AE-QKVRQAA and LSTM-AE-CRQAA significantly outperform the baseline model by approximately 6–7% in terms of accuracy and F1-score, achieving near-perfect classification performance. These results highlight the effectiveness of RQA-derived nonlinear descriptors in guiding attention toward structurally meaningful recurrence patterns, which is particularly beneficial for distinguishing bearing fault conditions under varying operating loads. The most substantial improvement is observed on the HUST dataset, where the baseline LSTM-AE performs poorly due to strong noise and heterogeneous operating regimes. In contrast, RQA-guided models demonstrate a significant performance increase. Notably, the LSTM-AE-CRQAA model achieves an F1-score of 99.85% and an AUC of 99.00%, confirming the robustness of the proposed RQA-guided channel-attention mechanism under challenging and nonstationary conditions.
Overall, these findings demonstrate that the observed performance gains cannot be attributed solely to the backbone autoencoder architecture. Instead, they arise from the explicit incorporation of nonlinear dynamical information through RQA, which enriches feature representations, improves anomaly separability, and mitigates overfitting tendencies commonly observed in conventional attention-based models. Due to the superior performance achieved on the HUST dataset compared to existing approaches, an additional robustness analysis with respect to random seed initialization is conducted in this study. This analysis aims to evaluate the stability and reliability of the proposed RQA-guided attention mechanism beyond a single training run. The robustness results of the LSTM-AE-CRQAA model under different random seeds are summarized in Table 5.
As reported in Table 5, the proposed method demonstrates consistent robustness against random initialization effects. While performance varies across seeds, high detection capability is largely preserved. In particular, Seeds 24 and 42 yield near-perfect results, with F1-scores exceeding 99.7% and AUC values close to 99%, indicating excellent separability between normal and anomalous bearing conditions. Under less favorable initializations (e.g., SEED = 5 and SEED = 1024), the model still achieves competitive performance, with F1-scores of 83.6% and 97.7%, respectively. The SEED = 0 case exhibits a more conservative behavior characterized by perfect precision but reduced recall, indicating that random initialization primarily affects the operating decision threshold rather than the underlying feature representation. This behavior can be attributed to a tighter reconstruction error distribution, which leads to a higher effective threshold when statistical thresholding is applied, rather than to a degradation of the learned latent space. Importantly, an inspection of the learned parameter statistics across all seeds reveals stable weight distributions centered near zero with well-bounded standard deviations, indicating numerically stable training without pathological parameter growth. These observations confirm that the reported performance is not the result of a single favorable training instance but instead reflects the intrinsic modeling capacity of the proposed framework rather than a single favorable training run.
To further assess robustness across different datasets, the proposed LSTM-AE-QKVRQAA model was also evaluated on the IMS bearing dataset using the same set of random seeds (0, 5, 24, 42, and 1024). The corresponding results are summarized in Table 6.
As shown in Table 6, the proposed model demonstrates consistently strong performance across different random initializations. High recall values are maintained for all seeds, reaching or approaching 100% in several runs, which confirms reliable detection of anomalous bearing segments. While minor variations in precision and overall accuracy are observed due to stochastic training effects, the F1-score remains consistently high, ranging from approximately 96% to nearly 100%, and the AUC values consistently exceed 96%. The best overall performance is achieved under SEED = 1024, yielding an F1-score of 99.88% and an AUC of 99.90%. Importantly, none of the evaluated seeds results in a significant performance degradation, indicating that the effectiveness of the proposed approach is not dependent on a particular initialization. Moreover, the distributions of learned weights and biases remain highly consistent across different initializations, with parameter means centered near zero and comparable variance levels. This observation further confirms that the proposed RQA-guided attention mechanism is not overly sensitive to random initialization and exhibits robust and reproducible behavior across datasets with different dynamical characteristics. To ensure consistency and reproducibility across all experiments, a fixed random seed (SEED = 42) is used throughout the study for all datasets, unless otherwise stated.
Figure 11 presents a Spearman rank correlation analysis between individual RQA metrics, the LSTM-AE-CRQAA gating magnitude, and the reconstruction-based anomaly score.
The results indicate that the proposed RQA-guided gating mechanism is primarily influenced by DET and LAM, suggesting that structurally repetitive and quasi-stationary dynamics play a dominant role in modulating the attention gate. This observation is consistent with the design objective of LSTM-AE-CRQAA, where recurrence structure is exploited as a dynamical prior rather than a direct anomaly indicator. In contrast, the anomaly score exhibits stronger associations with ENTR, TT, and Lmean, reflecting increased dynamical complexity and disrupted recurrence patterns during anomalous operating conditions. These metrics capture variations in diagonal length distribution and temporal trapping behavior, which are known to increase under degradation or fault evolution. Notably, the RR remains nearly constant due to the adopted percentile-based thresholding strategy, explaining its negligible correlation with both the gating signal and the anomaly score. Overall, these findings demonstrate that CRQAA selectively leverages physically meaningful RQA descriptors instead of uniformly weighting all recurrence features.
Figure 12 analyzes the relationship between individual RQA descriptors, the LSTM-AE-QKVRQAA gating strength, and the reconstruction-based anomaly score. LSTM-AE-QKVRQAA exhibits substantially stronger correlations, indicating a tighter coupling between recurrence dynamics and the attention modulation process.
DET, LAM, and TT show the strongest correlations with both the gating magnitude and the anomaly score, suggesting that LSTM-AE-QKVRQAA emphasizes persistent and structured dynamical patterns that are also reflected in reconstruction error. This behavior indicates that the fusion-based attention mechanism integrates recurrence structure more directly into the context representation. Lmean demonstrates a stronger association with anomaly magnitude than with the gating signal, implying a secondary role in severity estimation rather than attention control. In contrast, RR and Lmax exhibit limited influence, which is expected given the percentile-based recurrence thresholding and the rarity of extreme diagonal structures in the analyzed signals. Overall, the results confirm that LSTM-AE-QKVRQAA preserves the interpretability of RQA-driven attention while strengthening the alignment between recurrence dynamics and anomaly severity.
Table 7 presents a sensitivity analysis of key RQA hyperparameters on the HUST dataset.
The results show that the proposed RQA-guided models are robust to moderate variations in embedding dimension and delay, confirming that RQA is primarily used as a structural descriptor rather than for precise attractor reconstruction. While a recurrence rate of 10% yields slightly higher performance on HUST, a fixed value of 20% was adopted throughout the main experiments to ensure consistency across datasets and to follow common practice in RQA-based studies. Notably, excessive recurrence density (30%) leads to a clear degradation in performance, indicating loss of discriminative recurrence structures.

5. Discussion

The performance of different RQA-aware attention architectures varies significantly across datasets due to their distinct signal characteristics. For the IMS dataset, which exhibits highly periodic dynamics, the LSTM-AE-CRQAA model shows limited temporal resolution, as channel-wise RQA aggregation reduces sensitivity to fine-grained phase variations in strongly periodic signals. In this case, the LSTM-AE-ERQAA model provides more stable results, as the encoder preserves dominant low-frequency periodic patterns sufficient for recurrence detection (F1-score = 93.68%). Nevertheless, the LSTM-AE-QKVRQAA model achieves the highest performance by jointly incorporating Q–K–V interactions and global RQA-derived deviation, benefiting from the stable dynamics that allow attention weights to be learned more clearly (F1-score = 99.41%).
For the CWRU dataset, the LSTM-AE-CRQAA model demonstrates superior performance, as RQA metrics computed directly from the input signal preserve more discriminative information in this high-noise environment. Applying RQA at the encoder output (LSTM-AE-ERQAA) leads to information loss, indicating that LSTM-AE-CRQAA is the most effective and lightweight approach for single-sensor systems with elevated noise levels.
The HUST bearing dataset [39] has been primarily utilized for supervised fault classification tasks [45,62]. However, unsupervised anomaly detection—critical for real-world scenarios where labeled failure data is scarce—remains underexplored for this dataset. This study addresses this gap by introducing an RQA-aware attention framework specifically designed for unsupervised anomaly detection on HUST bearing data. On this dataset, the LSTM-AE-CRQAA model achieves exceptional performance (F1-score = 99.85%), while LSTM-AE-ERQAA performs poorly (F1-score = 57.53%). This stark contrast reveals a critical insight: encoder-based dimensionality reduction suppresses high-frequency chaotic signatures essential for RQA in noise-dominant signals. Analysis of the latent representations shows that the HUST encoder (bottleneck dimension = 8) filters out high-frequency components to reduce noise. While beneficial for reconstruction, this low-pass filtering effect removes fine-grained dynamical structures (e.g., short diagonal lines in RP) that RQA relies on to distinguish chaotic from regular behavior.
The literature comparison with state-of-the-art methods is presented in Table 8.
While chaos theory and RQA have been extensively studied in bearing fault diagnosis, most existing work focuses on supervised fault classification rather than unsupervised anomaly detection. Several recent studies have explored unsupervised approaches on standard benchmark datasets, though with varying methodological frameworks and performance metrics. It should be noted that the comparison with prior studies is provided for contextual reference only, as differences in supervision level, preprocessing pipelines, and evaluation protocols prevent strict one-to-one benchmarking.
Studies employing RQA metrics for bearing fault diagnosis have predominantly focused on supervised classification frameworks. For example, experiments conducted on the CWRU bearing dataset using 12 kHz vibration recordings report anomaly detection accuracies reaching 96.97% [69].
DCC method [68] represents a strong supervised baseline reported in the recent literature, achieving 100% AUC, 100% accuracy, and 100% F1-score on the CWRU dataset (12 kHz). DCC employs a non-reconstructive approach with spectral normalization, directly scoring normality without autoencoder reconstruction. The proposed LSTM-AE-CRQAA achieves 99.25% F1-score and 99.01% AUC on CWRU. However, a direct comparison with the proposed approach is not straightforward, as these studies address supervised multi-class fault identification, whereas the present work focuses on unsupervised anomaly detection using higher-resolution 48 kHz signals, which preserve richer high-frequency fault-related dynamics. In addition, several aspects critical for fair benchmarking—such as class-wise performance, dataset imbalance handling, and evaluation protocols—are either not consistently reported or differ substantially across studies. Consequently, the reported results should be interpreted as complementary rather than directly comparable to the proposed framework.
Ref. [63] proposed AE-AnoWGAN, an unsupervised framework combining autoencoders with Wasserstein GANs for bearing anomaly detection. Raw vibration signals are transformed into time–frequency spectrograms via continuous wavelet transform and processed through a multi-encoder, multi-decoder GAN architecture. On the IMS dataset, the method achieved an AUC of 92.00%. However, the authors do not specify which of the three operating-condition subsets was used, limiting reproducibility. In comparison, the proposed LSTM-AE-QKVRQAA reaches higher performance (99.41% F1-score, 99.45% AUC) through joint Q–K–V attention integration.
Ref. [64] introduced MRRAE, combining convolutional autoencoders with memory modules that store prototypical normal patterns. The model detects anomalies by measuring deviations from stored memory representations, achieving 97.97% accuracy and 97.73% F1-score on the IMS dataset. While MRRAE effectively preserves representative patterns through memory augmentation, it lacks the temporal focusing capability inherent in QKV-based attention mechanisms. The proposed LSTM-AE-QKVRQAA, by contrast, dynamically recalibrates attention weights using RQA-derived chaos metrics, enabling real-time adaptation to evolving signal dynamics without fixed memory templates.
Addressing the scarcity or complete absence of fault samples, ref. [65] proposed DIDAD, a dual-stream CNN-based framework. Feature extractors process normal and test data separately, with outputs fused through an autoencoder-based module. Validated on the IMS dataset, DIDAD achieved accuracy exceeding 98.00%. The proposed LSTM-AE-QKVRQAA attains comparable accuracy (99.47% on IMS) while delivering more balanced performance across multiple metrics due to RQA-enhanced attention that captures both reconstruction error and dynamical complexity.
Ref. [66] introduced VCEAD, employing autoencoder-based reconstruction error alongside TCN-based vibration forecasting. Anomalies are detected using a variable cumulative error criterion. On the IMS dataset, VCEAD achieved 96.72% accuracy and 97.74% F1-score—performance closely matching LSTM-AE-QKVRQAA (99.41% F1-score). However, VCEAD relies on fixed threshold-based cumulative error, whereas the proposed RQA-aware attention provides adaptive anomaly scoring grounded in chaos-theoretic recurrence analysis, potentially offering better interpretability and robustness to non-stationary signals.
Ref. [67] proposed the DAAD framework, combining domain adaptation with unsupervised anomaly detection to address distribution shifts across operating conditions. On the CWRU dataset, DAAD achieved an AUC of 95.70%. Despite their effectiveness in cross-domain transfer via adversarial or distribution-based alignment, domain adaptation techniques conventionally depend on normal data from both source and target domains. In contrast, the proposed RQA-aware attention embeds chaos-theoretic invariants directly into the attention mechanism, enabling single-domain training while maintaining robustness to condition variations. On CWRU, LSTM-AE-CRQAA achieves 99.25% F1-score and 99.01% AUC without domain adaptation overhead.
All experiments in this study were conducted within individual datasets, following the commonly adopted evaluation protocol in unsupervised anomaly detection. While the proposed RQA-guided attention mechanism was validated on multiple bearing datasets exhibiting different dynamical characteristics (IMS, CWRU, and HUST), no explicit cross-dataset or domain-shift training–testing scenario was considered.
We acknowledge that such cross-dataset evaluation would provide stronger evidence regarding generalization under distributional shifts. However, in unsupervised anomaly detection, differences in sensor configuration, sampling frequency, operating conditions, and fault annotation standards across datasets often make direct cross-dataset transfer ill-posed without additional adaptation mechanisms. Investigating domain adaptation and cross-dataset generalization therefore constitutes an important direction for future work.
It should be noted that the reported correlations quantify association rather than causality; nevertheless, they provide useful insight into how different recurrence properties interact with the proposed attention mechanisms.

6. Conclusions

In this study, hybrid deep learning architectures were proposed to improve unsupervised bearing anomaly detection by systematically integrating recurrence quantification analysis (RQA) metrics into different stages of LSTM-based autoencoder models. RQA descriptors were embedded at the input level, encoder output, and within a QKV attention mechanism, resulting in three architectures: LSTM-AE-QKVRQAA, LSTM-AE-CRQAA, and LSTM-AE-ERQAA.
The proposed models were evaluated on three benchmark bearing datasets—IMS, CWRU, and HUST—characterized by different noise levels and dynamical behaviors. Experimental results demonstrate that RQA-enhanced attention mechanisms significantly improve anomaly detection performance by capturing nonlinear recurrence structures and temporal dependencies inherent in vibration signals. Among the proposed architectures, the hybrid LSTM-AE-QKVRQAA consistently achieved the most balanced and robust performance across datasets, highlighting the benefit of jointly modeling temporal attention and global RQA-based dynamical cues.
On the IMS dataset, LSTM-AE-QKVRQAA achieved a 99.41% F1-score and a 99.45% AUC, outperforming the baseline LSTM-AE. For the CWRU dataset, RQA-aware models improved accuracy and F1-score by approximately 6–7%, approaching near-perfect anomaly discrimination, with LSTM-AE-CRQAA achieving a 99.25% F1-score and a 99.01% AUC. In the more challenging HUST dataset, where the baseline model exhibited limited performance, the LSTM-AE-CRQAA architecture achieved an F1-score of 99.85% and an AUC of 99.00%, demonstrating strong robustness under noisy and heterogeneous operating conditions. Comparative analysis with state-of-the-art methods further confirms that LSTM-AE-QKVRQAA and LSTM-AE-CRQAA outperform existing deep learning-based anomaly detection approaches, particularly in terms of robustness across datasets with different noise levels and dynamical characteristics. These findings validate that embedding chaos-aware RQA descriptors into attention mechanisms provides an effective and principled way to model nonlinear dynamics, making the proposed framework well suited for practical PHM applications.
Despite the promising performance, several limitations should be acknowledged. First, RQA descriptors are computed using fixed embedding and recurrence parameters selected empirically, which may not optimally capture system dynamics under all operating conditions. Adaptive or data-driven parameter tuning could further improve robustness, especially in highly non-stationary environments. Second, the computation of recurrence plots and RQA metrics introduces additional computational cost compared to standard attention mechanisms. While acceptable for offline PHM analysis, this overhead may limit applicability in real-time or edge-based monitoring systems. In addition, the proposed models are trained in an offline manner and assume stationary degradation distributions. In realistic industrial settings, degradation patterns may evolve due to changing loads, environments, or maintenance actions. Incorporating online or continual learning strategies could help address such concept drift. Finally, this study focuses on univariate or globally aggregated multivariate recurrence analysis. Extending the framework to multi-scale and channel-wise RQA representations, as well as integrating physics-informed constraints, represents a promising direction for future research.

Author Contributions

Conceptualization and methodology, A.H. and E.Y.; software, validation, writing—original draft preparation, A.H.; writing—review and editing, A.H. and E.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the Scientific and Technological Research Council of Turkey (TUBITAK) under Grant number 118C100, within the scope of the 2244 Industrial Ph.D. Program.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

This study is based on publicly available bearing fault datasets. The IMS dataset is obtained from the NASA Prognostics Data Repository, the CWRU dataset is provided by Case Western Reserve University, and the HUST dataset is released by Huazhong University of Science and Technology. All datasets are openly accessible, and no proprietary data were used.

Conflicts of Interest

Author Ayşenur Hatipoğlu was employed by the company Turkish Aerospace Industries Inc. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Saxena, A.; Goebel, K.; Simon, D.; Eklund, N. Damage propagation modeling for aircraft engine run-to-failure simulation. In Proceedings of the International Conference on Prognostics and Health Management; IEEE: Piscataway, NJ, USA, 2008; pp. 1–9. [Google Scholar] [CrossRef]
  2. Balaban, E.; Bansal, P.; Stoelting, P.; Saxena, A.; Goebel, K.; Curran, S. Prognostic health-management system development for electromechanical actuators. J. Aerosp. Inf. Syst. 2015, 12, 329–344. [Google Scholar] [CrossRef]
  3. Lei, Y.; Jia, F.; Lin, J.; Xing, S.; Ding, S.X. An intelligent fault diagnosis method using unsupervised feature learning towards mechanical big data. IEEE Trans. Ind. Electron. 2016, 63, 3137–3147. [Google Scholar] [CrossRef]
  4. Zhao, R.; Yan, R.; Wang, J.; Mao, K.; Shen, F. Deep learning and its applications to machine health monitoring: A survey. Mech. Syst. Signal Process. 2019, 115, 213–237. [Google Scholar] [CrossRef]
  5. Basora, L.; Olive, X.; Dubot, T. Recent advances in anomaly detection methods applied to aviation. Aerospace 2019, 6, 117. [Google Scholar] [CrossRef]
  6. Basora, L.; Bry, P.; Olive, X.; Freeman, F. Aircraft fleet health monitoring with anomaly detection techniques. Aerospace 2021, 8, 103. [Google Scholar] [CrossRef]
  7. Wang, B.; Qiu, W.; Hu, X.; Wang, W. A rolling bearing fault diagnosis technique based on recurrence quantification analysis and Bayesian optimization SVM. Appl. Soft Comput. 2024, 156, 111506. [Google Scholar] [CrossRef]
  8. Qiu, W.; Wang, B.; Hu, X. Rolling bearing fault diagnosis based on RQA with STD and WOA-SVM. Heliyon 2024, 10, e26141. [Google Scholar] [CrossRef]
  9. Mohan, A.; Ambika, G.; Meena, C. Deep learning for classifying dynamical states from time series via recurrence plots. arXiv 2025, arXiv:2506.17498. [Google Scholar] [CrossRef]
  10. Jia, W.; Shi, H.; Dong, Z.; Zhang, X. A rolling bearing fault diagnosis framework under variable working conditions considers dynamic feature extraction. Eng. Appl. Artif. Intell. 2025, 146, 110255. [Google Scholar] [CrossRef]
  11. Tong, A.; Zhang, J.; Wang, D.; Xie, L. Intelligent fault diagnosis of rolling bearings based on Markov transition field and mixed attention residual network. Appl. Sci. 2024, 14, 5110. [Google Scholar] [CrossRef]
  12. Zhao, Z.; Ding, X.; Prakash, B.A. Pinnsformer: A transformer-based framework for physics-informed neural networks. arXiv 2023, arXiv:2307.11833. [Google Scholar] [CrossRef]
  13. Yan, P.; Abdulkadir, A.; Luley, P.P.; Rosenthal, M.; Schatte, G.A.; Grewe, B.F.; Stadelmann, T. A comprehensive survey of deep transfer learning for anomaly detection in industrial time series: Methods, applications, and directions. IEEE Access 2024, 12, 3768–3789. [Google Scholar] [CrossRef]
  14. Pacheco, J.; Benitez, V.H.; Pérez, G.; Brau, A. Wavelet-based computational intelligence for real-time anomaly detection and fault isolation in embedded systems. Machines 2024, 12, 664. [Google Scholar] [CrossRef]
  15. Zhou, S.; He, Z.; Chen, X.; Chang, W. An anomaly detection method for UAV based on wavelet decomposition and stacked denoising autoencoder. Aerospace 2024, 11, 393. [Google Scholar] [CrossRef]
  16. Pesola, E.; Kolcio, K.; Prather, M.; Ildefonso, A. A hybrid model-based and data-driven framework for automated spacecraft fault detection. In Proceedings of the Annual Conference of the PHM Society, Salt Lake City, UT, USA, 28 October–2 November 2023; PHM Society: State College, PA, USA, 2023; Volume 15. [Google Scholar] [CrossRef]
  17. Malhotra, P.; Ramakrishnan, A.; Anand, G.; Vig, L.; Agarwal, P.; Shroff, G. LSTM-based encoder-decoder for multi-sensor anomaly detection. arXiv 2016, arXiv:1607.00148. [Google Scholar] [CrossRef]
  18. Bereketoğlu, A.B. Hybrid meta-learning framework for anomaly forecasting in nonlinear dynamical systems via physics-inspired simulation and deep ensembles. arXiv 2025, arXiv:2506.13828. [Google Scholar]
  19. Boujamza, A.; Elhaq, S.L. Attention-based LSTM for remaining useful life estimation of aircraft engines. IFAC-PapersOnLine 2022, 55, 450–455. [Google Scholar] [CrossRef]
  20. Niu, Z.; Zhong, G.; Yu, H. A review on the attention mechanism of deep learning. Neurocomputing 2021, 452, 48–62. [Google Scholar] [CrossRef]
  21. Guo, M.; Xu, T.; Liu, J.; Liu, Z.; Jiang, P.; Mu, T.; Zhang, S.; Martin, R.; Cheng, M.; Hu, S. Attention mechanisms in computer vision: A survey. Comput. Vis. Media 2021, 8, 331–368. [Google Scholar] [CrossRef]
  22. Brauwers, G.; Frasincar, F. A general survey on attention mechanisms in deep learning. IEEE Trans. Knowl. Data Eng. 2021, 35, 3279–3298. [Google Scholar] [CrossRef]
  23. Hassanin, M.; Anwar, S.; Radwan, I.; Khan, F.S.; Mian, A. Visual attention methods in deep learning: An in-depth survey. Inf. Fusion 2024, 108, 102417. [Google Scholar] [CrossRef]
  24. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the 31st Conference on Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
  25. Dai, Z.; Yang, Z.; Yang, Y.; Carbonell, J.; Le, Q.V.; Salakhutdinov, R. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv 2019, arXiv:1901.02860. [Google Scholar] [CrossRef]
  26. Marwan, N.; Carmen Romano, M.; Thiel, M.; Kurths, J. Recurrence plots for the analysis of complex systems. Phys. Rep. 2007, 438, 237–329. [Google Scholar] [CrossRef]
  27. Yang, D.; Ren, W.X. Non-stationarity evaluating for vibration signals using recurrence plot. Zhendong Yu Chongji (J. Vib. Shock.) 2011, 30, 39–43. [Google Scholar]
  28. Yang, D.; Ren, W.X.; Hu, Y.D. Non-stationary assessment of structural operational measurements using recurrence quantification analysis. Measurement 2021, 171, 108791. [Google Scholar] [CrossRef]
  29. Shao, K.; He, Y.; Hu, X.; Li, P.; Xing, Z.; Zhou, Y.; Du, B.; Lei, L. Distribution recurrence plots and measures: Effective signal analysis tools for fault diagnosis of wind turbine drivetrain system. Adv. Eng. Inform. 2023, 56, 101985. [Google Scholar] [CrossRef]
  30. Stender, M.; Oberst, S.; Tiedemann, M.; Hoffmann, N. Complex machine dynamics: Systematic recurrence quantification analysis of disk brake vibration data. Nonlinear Dyn. 2019, 97, 2483–2497. [Google Scholar] [CrossRef]
  31. Pecho, P.; Bugaj, M. Vibration fault detection of fuel pump using Recurrence Quantification Analysis. Transp. Res. Procedia 2018, 35, 287–294. [Google Scholar] [CrossRef]
  32. Qian, Y.; Yan, R.; Hu, S. Bearing degradation evaluation using recurrence quantification analysis and Kalman filter. IEEE Trans. Instrum. Meas. 2014, 63, 2599–2610. [Google Scholar] [CrossRef]
  33. Król, S.; Blyth, A.; Böing, S.; Denby, L.; Lachlan-Cope, T.; Malinowski, S.P. Can recurrence quantification analysis be useful in the interpretation of airborne turbulence measurements? Geophys. Res. Lett. 2024, 51, e2023GL105753. [Google Scholar] [CrossRef]
  34. Zhang, S.; Zhang, S.; Wang, B.; Habetler, T.G. Deep learning algorithms for bearing fault diagnostics—A comprehensive review. IEEE Access 2020, 8, 29857–29881. [Google Scholar] [CrossRef]
  35. NASA. n.d.; Prognostics Data Repository (PCOE Data Set Repository); NASA Intelligent Systems Division: Moffett Field, CA, USA, 2025. Available online: https://www.nasa.gov/intelligent-systems-division/discovery-and-systems-health/pcoe/pcoe-data-set-repository/ (accessed on 1 January 2021).
  36. Yoo, Y.; Jo, H.; Ban, S.-W. Deep learning model for bearing fault diagnosis using the CWRU dataset. Sensors 2023, 23, 3157. [Google Scholar] [CrossRef] [PubMed]
  37. Smith, W.A.; Randall, R.B. Rolling element bearing diagnostics using the Case Western Reserve University data: A benchmark study. Mech. Syst. Signal Process. 2015, 64–65, 100–131. [Google Scholar] [CrossRef]
  38. Wu, K.; Tao, J.; Yang, D.; Xie, H.; Li, Z. A rolling bearing fault diagnosis method based on enhanced integrated filter network. Machines 2022, 10, 481. [Google Scholar] [CrossRef]
  39. Thuan, N.D.; Hong, H.S. HUST bearing: A practical dataset for ball bearing fault diagnosis. BMC Res. Notes 2023, 16, 138. [Google Scholar] [CrossRef]
  40. Hou, P.; Zhang, J.; Jiang, Z.; Tang, Y.; Lin, Y. A bearing fault diagnosis method based on dilated convolution and multi-head self-attention mechanism. Appl. Sci. 2023, 13, 12770. [Google Scholar] [CrossRef]
  41. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  42. Kong, Z.; Cui, Y.; Xia, Z.; Lv, H. Convolution and long short-term memory hybrid deep neural networks for remaining useful life prognostics. Appl. Sci. 2019, 9, 4156. [Google Scholar] [CrossRef]
  43. Tian, H.; Yang, L.; Ju, B. Spatial correlation and temporal attention-based LSTM for remaining useful life prediction of turbofan engine. Measurement 2023, 214, 112816. [Google Scholar] [CrossRef]
  44. Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; Chapter 10: Sequence Modeling; MIT Press: Cambridge, MA, USA, 2016; ISBN 978-0262035613. [Google Scholar]
  45. Hatipoğlu, A.; Süpürtülü, M.; Yılmaz, E. Enhanced fault classification in bearings: A multi-domain feature extraction approach with LSTM-attention and LASSO. Arab. J. Sci. Eng. 2025, 50, 10795–10812. [Google Scholar] [CrossRef]
  46. Panza, M.A.; Pota, M.; Esposito, M. Anomaly detection methods for industrial applications: A comparative study. Electronics 2023, 12, 3971. [Google Scholar] [CrossRef]
  47. Ahmad, S.; Styp-Rekowski, K.; Nedelkoski, S.; Kao, O. Autoencoder-based condition monitoring and anomaly detection method for rotating machines. In Proceedings of the 2020 IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA, 13–13 December 2020; IEEE: Piscataway, NJ, USA, 2021; pp. 4093–4102. [Google Scholar] [CrossRef]
  48. Garcia, G.R.; Michau, G.; Ducoffe, M.; Gupta, J.S.; Fink, O. Temporal signals to images: Monitoring the condition of industrial assets with deep learning image processing algorithms. Proc. Inst. Mech. Eng. Part O J. Risk Reliab. 2022, 236, 617–627. [Google Scholar] [CrossRef]
  49. Eckmann, J.P.; Kamphorst, S.O.; Ruelle, D. Recurrence plots of dynamical systems. In Turbulence, Strange Attractors and Chaos; World Scientific Connect: Singapore, 1995; pp. 441–445. [Google Scholar] [CrossRef]
  50. Zbilut, J.P.; Webber, C.L., Jr. Embeddings and delays as derived from quantification of recurrence plots. Phys. Lett. A 1992, 171, 199–203. [Google Scholar] [CrossRef]
  51. Schinkel, S.; Dimigen, O.; Marwan, N. Selection of recurrence threshold for signal detection. Eur. Phys. J. Spec. Top. 2008, 164, 45–53. [Google Scholar] [CrossRef]
  52. Kwuimy, C.K.; Adewusi, S.A.; Nataraj, C. Characterization of the vibration transmitted in the human arm using selected recurrence quantification parameters. Nonlinear Dyn. 2017, 88, 2873–2887. [Google Scholar] [CrossRef]
  53. Qian, M.; Yuan, Y.; Yin, F.; Sun, Y.; Wang, L.; Zhao, L.; Wang, S. Recurrence Quantification Analysis of ±800kV Converter Transformer Vibration Characteristics Under Load Conditions. In Proceedings of the 2022 IEEE International Conference on High Voltage Engineering and Applications (ICHVE), Chongqing, China, 25–29 September 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 1–4. [Google Scholar] [CrossRef]
  54. Mocenni, C.; Facchini, A.; Vicino, A. Comparison of recurrence quantification methods for the analysis of temporal and spatial chaos. Math. Comput. Model. 2011, 53, 1535–1545. [Google Scholar] [CrossRef]
  55. Webber, C.L., Jr.; Zbilut, J.P. Recurrence quantification analysis of nonlinear dynamical systems. In Tutorials in Contemporary Nonlinear Methods for the Behavioral Sciences; Riley, M.A., Van Orden, G.C., Eds.; National Science Foundation: Alexandria, VA, USA, 2005; pp. 26–94. [Google Scholar]
  56. Trulla, L.L.; Giuliani, A.; Zbilut, J.P.; Webber, C.L. Recurrence quantification analysis of the logistic equation with transients. Phys. Lett. A 1996, 223, 255–260. [Google Scholar] [CrossRef]
  57. Bahdanau, D.; Cho, K.; Bengio, Y. Neural machine translation by jointly learning to align and translate. arXiv 2014, arXiv:1409.0473. [Google Scholar] [CrossRef]
  58. Tharwat, A. Classification assessment methods. Appl. Comput. Inform. 2021, 17, 168–192. [Google Scholar] [CrossRef]
  59. Ferrer, L. Analysis and comparison of classification metrics. arXiv 2022, arXiv:2209.05355. [Google Scholar] [CrossRef]
  60. Vujović, Ž. Classification model evaluation metrics. Int. J. Adv. Comput. Sci. Appl. 2021, 12, 599–606. [Google Scholar] [CrossRef]
  61. Wallot, S.; Roepstorff, A.; Mønster, D. Multidimensional Recurrence Quantification Analysis (MdRQA) for the analysis of multidimensional time-series: A software implementation in MATLAB and its application to group-level data in joint action. Front. Psychol. 2016, 7, 1835. [Google Scholar] [CrossRef]
  62. Abbasi, M.A.; Huang, S.; Khan, A.S. Fault detection and classification of motor bearings under multiple operating conditions. ISA Trans. 2025, 156, 61–69. [Google Scholar] [CrossRef] [PubMed]
  63. Liu, R.; Xiao, D.; Lin, D.; Zhang, W. Intelligent bearing anomaly detection for industrial Internet of Things based on auto-encoder Wasserstein generative adversarial network. IEEE Internet Things J. 2024, 11, 22869–22879. [Google Scholar] [CrossRef]
  64. Huang, X.; Wen, G.; Dong, S.; Zhou, H.; Lei, Z.; Zhang, Z.; Chen, X. Memory residual regression autoencoder for bearing fault detection. IEEE Trans. Instrum. Meas. 2021, 70, 3515512. [Google Scholar] [CrossRef]
  65. Kang, Y.; Chen, G.; Wang, H.; Pan, W.; Wei, X. A new dual-input deep anomaly detection method for early faults warning of rolling bearings. Sensors 2023, 23, 8013. [Google Scholar] [CrossRef]
  66. Li, Z.; Sun, Y.; Yang, L.; Zhao, Z.; Chen, X. Unsupervised machine anomaly detection using autoencoder and temporal convolutional network. IEEE Trans. Instrum. Meas. 2022, 71, 3525813. [Google Scholar] [CrossRef]
  67. Qin, L. Rolling Bearing Fault Detection Using Domain Adaptation-Based Anomaly Detection. Int. J. Artif. Intell. Tools 2024, 33, 2440003. [Google Scholar] [CrossRef]
  68. Li, H.; Wu, W.; Zhang, M. Beyond Reconstruction: A Deep Convolutional Critic with Spectral Normalization for Superior Bearing Fault Anomaly Detection. Results Eng. 2025, 28, 108053. [Google Scholar] [CrossRef]
  69. Dai, Z.; Jiang, L.; Li, F.; Chen, Y. A Multi-Scale Self-Supervision Approach for Bearing Anomaly Detection Using Sensor Data Under Multiple Operating Conditions. Sensors 2025, 25, 1185. [Google Scholar] [CrossRef]
Figure 1. Anomaly detection application general diagram.
Figure 1. Anomaly detection application general diagram.
Sensors 26 01015 g001
Figure 2. LSTM cell [42].
Figure 2. LSTM cell [42].
Sensors 26 01015 g002
Figure 3. AE framework.
Figure 3. AE framework.
Sensors 26 01015 g003
Figure 4. Confusion matrix for binary classification.
Figure 4. Confusion matrix for binary classification.
Sensors 26 01015 g004
Figure 5. System Flow Chart.
Figure 5. System Flow Chart.
Sensors 26 01015 g005
Figure 6. LSTM-AE-QKVRQAA Model Flow Chart.
Figure 6. LSTM-AE-QKVRQAA Model Flow Chart.
Sensors 26 01015 g006
Figure 7. IMS dataset graph.
Figure 7. IMS dataset graph.
Sensors 26 01015 g007
Figure 8. CWRU dataset graph.
Figure 8. CWRU dataset graph.
Sensors 26 01015 g008
Figure 9. HUST dataset graph.
Figure 9. HUST dataset graph.
Sensors 26 01015 g009
Figure 10. Confusion matrices of the datasets: (a) IMS, (b) CWRU, (c) HUST.
Figure 10. Confusion matrices of the datasets: (a) IMS, (b) CWRU, (c) HUST.
Sensors 26 01015 g010
Figure 11. Impact of RQA metrics on LSTM-AE-CRQAA gating and anomaly score on the HUST dataset.
Figure 11. Impact of RQA metrics on LSTM-AE-CRQAA gating and anomaly score on the HUST dataset.
Sensors 26 01015 g011
Figure 12. Impact of RQA metrics on LSTM-AE-QKVRQAA and anomaly score on the IMS dataset.
Figure 12. Impact of RQA metrics on LSTM-AE-QKVRQAA and anomaly score on the IMS dataset.
Sensors 26 01015 g012
Table 1. Effect of Gaussian noise augmentation on anomaly detection performance (HUST dataset).
Table 1. Effect of Gaussian noise augmentation on anomaly detection performance (HUST dataset).
Noise Std (σ)F1-Score (%)AUC (%)
0.1052.6767.87
0.0598.4098.24
0.0199.8599.00
Table 2. Dataset-Specific Hyperparameters.
Table 2. Dataset-Specific Hyperparameters.
DatasetHyperparameterValue
IMSLSTM Layer 1 Units16
LSTM Layer 2 Units8
Dropout Rate0.2
Attention Layer8
Dense Layer8
CWRULSTM Layer 1 Units64
LSTM Layer 2 Units32
Dropout Rate0.4
Attention Layer32
Dense Layer16
HUSTLSTM Layer 1 Units128
LSTM Layer 2 Units64
Dropout Rate0.4
Attention Layer64
Table 3. Common Hyperparameters.
Table 3. Common Hyperparameters.
HyperparameterValue
Window Length50
Step Size1
Batch Size16
Learning Rate0.001
OptimizerAdam
Maximum Epochs100
Early Stopping5
Validation Split0.2
Table 4. Performance metrices.
Table 4. Performance metrices.
ModelDatasetAccuracy (%)Precision (%)Recall (%)F1-Score (%)AUC (%)
LSTM-AEIMS99.0410097.8998.9398.95
CWRU92.1010091.3995.5095.70
HUST20.361008.1815.1354.09
LSTM-AE-QKVRQAAIMS99.4799.5399.3099.4199.45
CWRU97.0510096.7898.3797.05
HUST96.9599.6596.8298.2297.30
LSTM-AE-CRQAAIMS97.2210093.9196.8696.96
CWRU98.6499.9598.5799.2599.01
HUST99.7499.7010099.8599.00
LSTM-AE-ERQAAIMS94.5599.4788.5293.6894.07
CWRU98.5999.7598.7199.2397.98
HUST48.2810040.3857.5370.19
Table 5. Robustness analysis under different random seeds on the HUST dataset.
Table 5. Robustness analysis under different random seeds on the HUST dataset.
Random SeedAccuracy (%)Precision (%)Recall (%)F1-Score (%)AUC (%)
048.0510040.1157.2570.05
575.4899.7271.9383.5885.30
2499.4799.7099.7099.7098.85
4299.7499.7010099.8599.00
102496.0499.8295.6097.6797.25
Table 6. Performance of the proposed LSTM-AE-QKVRQAA model on the IMS dataset under different random seeds.
Table 6. Performance of the proposed LSTM-AE-QKVRQAA model on the IMS dataset under different random seeds.
Random SeedAccuracy (%)Precision (%)Recall (%)F1-Score (%)AUC (%)
096.7910092.9796.3696.49
599.7510095.0897.4897.54
2499.4710098.8399.4199.41
4299.4799.5399.3099.4199.45
102499.8999.771.000099.8899.90
Table 7. Sensitivity analysis of RQA hyperparameters (recurrence rate, embedding dimension, and delay) on the HUST dataset.
Table 7. Sensitivity analysis of RQA hyperparameters (recurrence rate, embedding dimension, and delay) on the HUST dataset.
ModelDatasetPercentagemτAccuracy (%)Precision (%)Recall (%)F1-Score (%)AUC (%)
LSTM-AE-QKVRQAAHUST101199.9799.9710099.9899.89
201196.9599.6596.8298.2297.30
301143.1898.9434.8751.5666.22
202199.9499.9310099.9799.78
201296.9599.6596.8298.2297.30
202299.8899.8610099.9399.56
LSTM-AE-CRQAAHUST101199.9799.9710099.9899.98
201199.7499.7010099.8599.00
301184.7899.8082.6290.4090.76
202186.4899.5684.7891.5891.17
201299.7499.7010099.8599.00
202299.2199.8699.2299.5499.17
Table 8. Comparison with state-of-the-art methods on IMS, CWRU and HUST Dataset.
Table 8. Comparison with state-of-the-art methods on IMS, CWRU and HUST Dataset.
ModelDatasetAccuracy (%)F1-Score (%)AUC (%)Ref.
Auto-encoder Wasserstein Generative Adversarial Network (AE-AnoWGAN)IMS--92.00[63]
Memory Residual Regression Autoencoder (MRRAE)IMS97.9797.73-[64]
Dual-Input Deep Anomaly Detection (DIDAD)IMS>98.00--[65]
Variable Cumulative Error anomaly Detection (VCEAD)IMS96.7297.74 [66]
LSTM-AE-QKVRQAAIMS99.4799.4199.45
Domain Adaptation-Based Anomaly Detection
(DAAD)
CWRU--95.70[67]
Deep Convolutional Critic (DCC, supervised)CWRU--1.00[68]
LSTM-AE-CRQAACWRU98.6499.2599.01
HUST99.7499.8599.00
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

Hatipoğlu, A.; Yılmaz, E. A Comparative Study of RQA-Guided Attention Mechanisms with LSTM Autoencoder for Bearing Anomaly Detection. Sensors 2026, 26, 1015. https://doi.org/10.3390/s26031015

AMA Style

Hatipoğlu A, Yılmaz E. A Comparative Study of RQA-Guided Attention Mechanisms with LSTM Autoencoder for Bearing Anomaly Detection. Sensors. 2026; 26(3):1015. https://doi.org/10.3390/s26031015

Chicago/Turabian Style

Hatipoğlu, Ayşenur, and Ersen Yılmaz. 2026. "A Comparative Study of RQA-Guided Attention Mechanisms with LSTM Autoencoder for Bearing Anomaly Detection" Sensors 26, no. 3: 1015. https://doi.org/10.3390/s26031015

APA Style

Hatipoğlu, A., & Yılmaz, E. (2026). A Comparative Study of RQA-Guided Attention Mechanisms with LSTM Autoencoder for Bearing Anomaly Detection. Sensors, 26(3), 1015. https://doi.org/10.3390/s26031015

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop