Figures
Abstract
In many real-time measurement and monitoring systems, the quality of acquired signals is often severely degraded by complex environmental noise sources with non-stationary properties, rendering analysis, important feature extraction, and decision-making unreliable. This study proposes a multi-stage adaptive denoising architecture based on the least mean square (LMS) algorithm, in which the number of filter stages and the step size are automatically adjusted according to error statistics, the remaining correlation between the residual and the reference signal, and the real-time signal-to-noise ratio (SNR) of the signal. The stopping mechanism is determined by a two-tailed Fisher-z correlation test, with effective sample size correction in the presence of autocorrelation and modulation based on SNR, to ensure the stability of the adaptive system against non-stationary noise. The filter is evaluated on simulated signal datasets and real-world measured data. Compared with the conventional LMS filter configuration under the tested simulated conditions, the proposed architecture reduces mean squared error (MSE) by 38–82% and mean absolute error (MAE) by 15–45%, while improving both SNR and peak signal-to-noise ratio (PSNR). The execution time of the proposed method is approximately 3.5–4 times lower than that of the fixed-threshold method under the tested settings. These results indicate that the proposed method can improve the trade-off between denoising performance and computational efficiency, showing potential for low-latency implementation on resource-constrained devices.
Citation: Han-Trong T, Van TB, Minh QH, Do Trung A (2026) Low-latency stage-adaptive cascade architecture for real time non-stationary noise filtering. PLoS One 21(7): e0354022. https://doi.org/10.1371/journal.pone.0354022
Editor: Shih-Lin Lin, National Changhua University of Education, TAIWAN
Received: March 13, 2026; Accepted: July 2, 2026; Published: July 22, 2026
Copyright: © 2026 Han-Trong et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The datasets underlying the results reported in Figures 3-6 and Tables 1-4 are publicly available in Zenodo at: https://zenodo.org/records/18832566. The repository includes experimentally acquired PCG data, simulated sinusoidal signal data, and simulated PCG data used for the evaluations in this study.
Funding: This research is funded by Hanoi University of Science and Technology (HUST) under project number T2025-PC-080. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
In the context of the Internet of Things (IoT) and Cyber-Physical Systems (CPS), billions of sensors continuously generate real-time time-series signals to support monitoring in industrial systems, healthcare, transportation infrastructure, and smart cities [1–3]. In these systems, the quality of the acquired signals plays a crucial role in anomaly detection, diagnosis, decision-making and feedback control. However, in real-world environments, signals are often severely degraded by multiple non-stationary noise sources that vary rapidly in both amplitude and spectral characteristics. This leads to significant distortions in feature extraction, parameter estimation and decision-making processes at higher processing levels.
In parallel, the trend toward Edge AI (edge computing), rather than relying entirely on cloud infrastructure, is rapidly gaining momentum in order to reduce latency, save bandwidth and enhance data privacy in distributed CPS systems [2,4]– 6]. Many recent surveys show that Edge AI on IoT/IoMT platforms require signal processing algorithms and machine learning models to be very lightweight and low-power, while still maintaining reliable real-time performance [4–6]. This creates an urgent need for denoising techniques that are both effective and computationally efficient, making them suitable for microcontrollers and low-cost embedded devices.
Deep learning models have achieved considerable progress in signal denoising and signal quality enhancement. Many architectures such as CNNs, RNNs, LSTMs, U-Net, and Transformers have been successfully applied to denoising tasks in biomedical signals, speech, and vibration signals [7–11]. However, these models typically involve many parameters and require substantial memory and inference cost, making direct deployment on resource-constrained IoT/Edge sensors challenging, even when applying TinyML, model compression or quantization techniques [4– [6,10,11].
From another perspective, time-frequency signal decomposition methods such as the Wavelet Transform (WT), Empirical Mode Decomposition (EMD), Complete Ensemble EMD (CEEMD) and Variational Mode Decomposition (VMD), are still widely used for denoising nonlinear signals [12–15]. Although demonstrating effectiveness across a wide range of real-world signals, these methods typically require extensive manual tuning of hyperparameters, making them less flexible in the presence of rapidly varying noise and difficult to meet real-time processing requirements on resource-constrained hardware [12–15].
In scenarios that require continuous processing with low latency, adaptive filters, particularly the LMS family of algorithms, remain a suitable choice due to their simple linear structure, low computational cost, and capability for sample-by-sample updates [16–19]. However, conventional LMS architecture typically employs fixed parameters and stopping criteria, making it difficult to achieve a proper trade-off between convergence speed and stability when dealing with non-stationary noise or large-amplitude impulsive disturbances.
A significant limitation of these methods is the lack of a mechanism to control the filter structure based on clear statistical criteria, which makes them difficult to apply to non-stationary noise types. Recent results on time-series correlation have emphasized the role of the Fisher-z transformation in constructing confidence intervals for correlation coefficients, as well as the importance of adjusting the effective sample size (ESS) when autocorrelation is present in [20–22]. This suggests that using correlation tests on the residuals and reference signals could provide a solid basis for deciding when an adaptive filter should stop or switch configurations, rather than rely on heuristic thresholds.
On this basis, the present study proposes a method that uses a multi-stage adaptive denoising architecture based on the LMS algorithm, employing statistical foundations to determine decision thresholds that are robust to non-stationary noise in practical deployments. Adaptive noise cancellers (ANC) are applied for signal denoising due to their ability to adapt over time and their effectiveness against various types of noise [23–25], while also having low complexity, making them suitable for real-time and low-cost signal denoising applications [26]. The choice of a suitable algorithm for the architecture needs to provide low latency with minimal computational load and low cost. For algorithms such as NLMS [27], RLS [28], or Filtered-x LMS [29], although they perform well, they require high computational effort and cost. The use of the LMS algorithm meets the requirements for practical deployment on resource-constrained devices [30]. The use of a multi-stage architecture has also been shown to be more effective than a single stage [31] but using a fixed stopping threshold can easily lead to instability, over-filtering, or under-filtering under non-stationary noise conditions.
In this study, the stopping threshold is determined automatically based on clear statistical criteria so that the adaptive filtering architecture can adjust the number of filtering stages according to the remaining residual-reference correlation and local signal quality. The main contribution of this study is not the LMS filter itself, but the integration of a stage-adaptive LMS cascade with a Fisher-z-based stopping criterion, effective sample size correction for autocorrelated data, SNR-adaptive threshold modulation, and a final refinement stage for low-latency denoising. This design aims to improve the trade-off between denoising performance and computational efficiency, making it promising for implementation on resource-constrained devices such as low-cost MCUs or SoCs.
The remainder of the paper is organized as follows: the Related work sectionpresents an overview of related denoising approaches; the Methodology sectiondescribes in detail the proposed architectural framework and the theoretical basis of the Fisher-z mechanism and ESS; the Results sectionpresents and analyzes the experimental results; and the Conclusion section summarizes the study and discusses future directions.
2. Related work
With the rapid advancement and widespread global adoption of artificial intelligence technologies, the application of deep learning methods to signal denoising has become increasingly prevalent, showing strong potential in both research and practical applications across different domains. Many network architectures such as CNNs, autoencoders, U-Net, BiLSTM, and Transformers have been proposed for denoising tasks involving seismic, vibration, acoustic, and biomedical signals [32–35]. Experimental results show that these methods are capable of significantly improving signal quality and the SNR. Overall, approaches that use deep learning models for signal denoising show significant potential but require diverse training datasets to generalize well. These models have large numbers of parameters, high computational and memory costs, making it difficult to ensure real-time performance and low cost on resource-constrained devices [36,37].
To address the requirement for diverse training datasets in deep learning models, many studies have explored time-frequency domain representations or adaptive signal decomposition methods, followed by processing of the resulting coefficients. Wavelet-based methods, CEEMDAN, SVD, and Singular Spectrum Analysis (SSA) have been effectively applied to denoising vibration signals, heart sound signals, and acceleration signals [38–40]. In summary, the methods discussed all yield good results but incur high computational costs, with performance heavily dependent on hyperparameters and the selection of parameters such as the number of decomposition levels, rules, and threshold values, which are often chosen based on experience or trial for each type of noise, making them unstable when the noise changes. The lack of a statistically based stopping criterion and a time-adaptive mechanism can lead to performance degradation in the presence of non-stationary noise and changing environments.
In addition, adaptive filters are still regarded as suitable solutions for real-time denoising applications due to their simple structure and low computational cost [30,31]. However, most existing studies still rely on fixed stopping criteria and parameters, largely determined empirically, which leads to over-filtering or under-filtering when confronted with non-stationary and rapidly varying noise [30,31].
Therefore, this study introduces a statistically grounded stopping criterion and a time-adaptive mechanism for practical denoising applications.
3. Methodology
For clarity and consistency, the main notation used throughout the proposed adaptive denoising architecture is summarized below. In the revised manuscript, distinct symbols are used for the clean signal, noise component, reference noise signal, residual output, and correlation coefficient to avoid ambiguity in the mathematical formulation and algorithm description.
Notation Summary
For clarity, denotes the measured composite signal, which consists of the desired clean signal
and the noise component
. The input of the first adaptive filtering stage is
, and the residual output of each stage becomes the input of the next stage,
. Here,
denotes the current adaptive filtering stage in Module I, whereas
denotes the final stage automatically selected by the proposed stopping rule. Thus,
, with
. The final filtering stage is not included in
. The notation
is used for the Pearson residual-reference correlation coefficient in window
at stage
, in order to avoid confusion with the noise component
and the reference noise signal
.
After Module I stops, the residual output at the selected stage is denoted by , where
Here,
represents a preliminary clean-signal estimate, not the true clean signal. The final denoised output after the final filtering stage is denoted by
.
3.1 Architecture
In this study, we propose a multi-stage adaptive denoising architecture based on the LMS algorithm, with statistically determined thresholds modulated according to the SNR. The method follows the adaptive noise cancellation framework and uses two input channels: the measured composite signal and the reference noise signal
. The measured signal is modeled as
where
is the desired clean signal and
is the noise component. The reference noise signal
is assumed to be correlated with
and weakly correlated or uncorrelated with
.
At stage in Module I, the LMS filter estimates the noise component in
using the reference-noise input vector
. The residual output is computed as
where
is the estimated noise at stage
. If another stage is required, the residual becomes the next-stage input:
The step size is adjusted at each stage to balance convergence speed, low latency, and stability.
The proposed denoising architecture is illustrated in Fig 1. In this framework, the input signal is processed sequentially through cascaded LMS stages. Each stage utilizes the reference noise signal to estimate and suppress the correlated noise component within the current stage input, while simultaneously generating a residual signal that serves as the input for the subsequent stage. Unlike conventional multi-stage LMS architectures that employ a fixed number of stages or fixed stopping thresholds, this study proposes an adaptive stage control mechanism that automatically determines whether to stop or to add an additional filtering stage. This control mechanism is illustrated in Fig 2 as the Adaptive Stage Controller. At each stage, the controller uses only quantities that are available during online operation, including the residual-reference correlation, the estimated window-based SNR, and the marginal change in the residual-reference indicator. Reference-based metrics such as MSE, MAE, SNR, and PSNR are used only for offline evaluation on simulated data where the clean reference signal is available, and are not used by the stage-control mechanism.
- (1). Stats (
)
- (2). Stage control decision
The number of denoising stages is automatically determined by a statistical stopping criterion, specifically a two-sided Fisher-z correlation test between and the reference signal over sliding time windows, with effective sample size correction in the presence of autocorrelation and modulation according to the window-based SNR [41–43]. The stage addition process terminates when the correlation is no longer statistically significant, indicating that the post-filtering error no longer contains noise components that can be estimated from the reference channel; therefore, adding further filtering stages would not provide additional noise reduction and may risk distorting the clean signal.
The detailed signal relationships at the selected final stage of Module I are described below.
For the ANC-based denoising system, two input channels are required: the primary signal channel to be filtered and a reference noise channel that is correlated with the noise present in the primary signal. For the first stage, the inputs consist of the composite signal , which is the measured signal comprising the clean signal
and noise
, and the reference noise signal
, which is correlated with the noise component
in the composite signal.
In the following derivation, we focus on the selected final stage of Module I. Thus,
,
,
, and
denote the stage-wise quantities at the final stage selected by the stopping rule. The inputs at stage
are given by
Accordingly, the estimated interference at stage is:
The weight vector is updated as:
Here, denotes the amplitude ratio of the remaining correlated noise component at the selected final stage
. This parameter is not the Pearson residual-reference correlation coefficient
used in the stopping test.
The residual/error output at stage is:
When the LMS filter converges, approximates the remaining correlated noise component
, and therefore
. Thus, the residual output at the selected final stage is treated as the preliminary clean-signal estimate of Module I:
This estimate is not the true clean signal; it is the intermediate clean-signal estimate used by the final filtering stage.
To refine the denoising result, the preliminary clean-signal estimate obtained from Module I is used as the reference input of the final filtering stage.
Accordingly, the two inputs of the final filtering stage are defined as:
where is the primary input of the final filtering stage and
is the reference input constructed from the preliminary clean-signal estimate.
Let denote the reference-input vector constructed from
. The output of the final filtering stage is defined as:
where is the final denoised output. The corresponding error signal is given by
Thus, the final filtering stage is used only as a refinement stage after Module I has selected the final stage . It is not included in the automatic stage-addition process, and it does not use the true clean signal as the reference input.
3.2 Step size
The step size directly determines the convergence speed and stability of the system. A large step size enables rapid adaptation but also results in a large excess mean square error (EMSE), which may lead to system instability. A small step size improves system stability but leads to slow convergence. In [44], Bismor et al. reviewed variable step-size LMS algorithms. The selection of the lower bound
can be made simply and easily, as it does not significantly affect the system performance. However, the selection of the upper bound
requires careful consideration to avoid system instability. The upper bound should adapt to the instantaneous input energy, as expressed by the following equation:
where is a safety scaling factor used to keep the LMS step size below the theoretical stability bound. In this study,
is selected in the range of 0.8–0.9 to provide a practical compromise between convergence speed and stability. A smaller value of
increases the stability margin but may slow down convergence, whereas a larger value accelerates adaptation but may increase the risk of excess mean-square error or instability. This normalized step-size setting also reduces the number of hyperparameters to be tuned and maintains robustness under varying signal amplitudes, making it suitable for real-time applications.
Based on this principle, Pauline et al. applied it to a multi-stage adaptive filtering architecture [31], in which the step size is updated independently for each stage, ensuring more stable step-size behavior compared to using a fixed step size across all stages:
where denotes the largest eigenvalue of the input autocorrelation matrix.
With the upper bound of the step size chosen as in (11), the step size at stage
is determined as follows:
where . The selection of the value of
is also important for LMS convergence but is relatively simple and not highly sensitive, helping to reduce the number of hyperparameters that need to be tuned.
This approach enables the LMS algorithm to converge rapidly while maintaining stage-wise system stability, ensuring effective real-time operation at low computational cost, and making it well suited for the resource-constrained devices targeted in this study.
3.3 Proposed automatic stage addition mechanism
The automatic stage addition mechanism determines whether the cascade should stop at the current stage or add another LMS stage. At each stage in Module I, the residual/error output
is compared with the reference noise signal
over sliding windows. For window
with length
, the Pearson residual-reference correlation coefficient is denoted by
.
A large value of indicates that the residual output still contains a noise component correlated with the reference channel; therefore, an additional filtering stage may still be useful. Conversely, a statistically insignificant or very small value of
indicates that further filtering may provide little additional noise reduction and may increase the risk of over-filtering.
The signal is divided into windows of length . Within window
, the Pearson residual-reference correlation coefficient is computed as
where denotes the set of samples in window
,
is the mean value of
in window
, and
is the mean value of
in the same window.
The hypothesis testing is formulated as follows:
(no statistically significant correlation remains)
with significance level
, where
denotes the population correlation coefficient corresponding to the sample estimate
.
The sample correlation coefficient does not follow a normal distribution, its variance depends on the population correlation coefficient
, and it is bounded within
. Therefore, a reliable threshold cannot be directly applied to
. In this study, the Fisher-z transformation is employed to effectively approximate normality and stabilize the variance. The Fisher-z transformation converts
into:
Then, the Fisher-z variable is given by:
However, time -series data often exhibits autocorrelation, meaning that the effective number of independent observations is smaller than the window length , which increases the likelihood of Type I errors and results in overly narrow confidence intervals.
Therefore, the effective sample size is used to correct the Fisher-z test and obtain a more reliable threshold [42]. The effective sample size is determined as follows:
where and
denote the lag-
autocorrelation coefficients of
and
, respectively, within the analyzed window.
In practice, (16) is commonly approximated under an AR(1) model, using the following first-order autocorrelation coefficients [42]:
In addition, to mitigate the risk of over-filtering, we further adopt a dynamic significance level that is adjusted according to the window-based SNR. This keeps the test more conservative under low-SNR conditions, while allowing faster adaptation when the residual signal quality is higher. The dynamic significance level is expressed as
where the window-based SNR at stage and window
is computed as
In this way, the significance level of the test is adjusted according to the local SNR condition, while the threshold is modulated to reduce Type I error and threshold fluctuations [45,46].
With the effective sample size and the dynamic significance level
, the two-sided Fisher-z threshold is determined as follows:
Accordingly, the dynamic correlation threshold is obtained by transforming the Fisher-z threshold back to the correlation domain:
Thus, is not a fixed empirical threshold, but is dynamically determined from the effective sample size and the local SNR condition.
In addition, we further incorporate a stopping condition based on , as defined by the following equation:
where represents the marginal improvement threshold.
The stopping rule is defined by either of the following conditions: (i) when for
consecutive windows, or (ii) when the marginal improvement is no longer significant (
). In this study,
is used to reduce the risk of making a stopping decision based on a temporary correlation drop in a single window. A smaller
makes the system more responsive but less stable, whereas a larger
makes the decision more conservative but may increase latency.
When either stopping condition is satisfied at stage , the selected final stage of Module I is set as
. If neither condition is satisfied, an additional LMS stage is added until the stopping condition is met or the maximum number of Module-I stages
is reached. In this study,
is used as a practical upper bound for the automatic stage-addition process, following the three-stage cascade structure adopted in the multistage LMS framework. The additional final filtering stage is applied separately as a refinement stage and is not included in
. This prevents indefinite stage growth, limits computational cost, and reduces the risk of over-filtering. Therefore, the proposed mechanism can adapt to non-stationary noise while avoiding unnecessary additional stages.
4 Results
In this study, the filter performance is evaluated using two types of data, including simulated signal data and real-world measured data.
For simulated data, a clean reference signal is available; therefore, reference-based metrics, including MSE, MAE, SNR, PSNR, and CC, are used to evaluate reconstruction error, noise suppression, and waveform preservation. In contrast, for experimentally acquired PCG data, no clean reference signal is available, so MSE, SNR, and PSNR cannot be directly computed in the same manner. Therefore, the real-world evaluation relies on reference-free or noise-reference-based indicators, such as residual-reference correlation, magnitude-squared coherence, and signal quality indices, to assess noise reduction and PCG signal preservation.
The reference-based metrics for the simulated data are defined as follows. Here, denotes the clean reference signal,
denotes the final denoised output after the final filtering stage, and
denotes the total number of samples used for performance evaluation.
Mean Squared Error (MSE)
Signal-to-Noise Ratio (SNR) (dB)
Peak Signal-to-Noise Ratio (PSNR) (dB)
Mean Absolute Error (MAE)
Correlation Coefficient (CC)
It should be noted that the correlation coefficient in Eq. (27) is well defined only when both the clean reference signal and the final denoised signal
have non-zero variance over the evaluated samples. If either sequence is constant or has zero variance, the denominator of Eq. (27) becomes zero and the CC is undefined. In such cases, CC should not be reported, and reference-error metrics such as MSE or MAE should be used instead.
4.1 Simulated signal data
To evaluate the performance of the denoising filter under various operating conditions, we use a simulated signal dataset based on a clean sinusoidal signal and PCG signal. The added noise signals correspond to common types of noise encountered in measurement and signal processing systems, including Gaussian noise, low-frequency-dominant noise, Pink noise and combined noise.
In the case of Gaussian noise, as shown in Fig 3, the noise component exhibits an energy distribution that is spread across the entire frequency band, causing the composite received signal in Fig 3(b) to be masked by random fluctuations, which makes the sinusoidal waveform difficult to identify and analyze. The denoising result shown in Fig 3(d) demonstrates the ability to effectively reconstruct the clean signal, achieve strong noise suppression, closely follow the original signal waveform and exhibit a clear improvement in signal cleanliness compared to the input signal. This indicates the effectiveness of the proposed method under broadband random noise conditions. The improvement in Fig 3 is mainly reflected by the reduction of high-frequency random fluctuations around the sinusoidal signal. The filtered signal preserves the phase and amplitude trend of the clean signal, which is consistent with the high correlation coefficient reported in the quantitative results.
(a) Clean signal (b) Primary signal (c) Noise signal (d) Filtered signal.
For the noise dominated by low frequency components shown in Fig 4, the clean sinusoidal signal is masked by slow fluctuations whose amplitude varies over time. This type of noise significantly alters the signal envelope and causes a pronounced baseline drift, as illustrated in Fig 4(b). When is low, the overlap between the noise and the clean signal further reduces the ability to identify the harmonic waveform. The result shown in Fig 4(d) indicates that the denoising filter is still able to effectively reconstruct the basic periodic signal structure, while the background noise energy is significantly reduced compared to the input signal, leading to a clear reduction in the baseline drift observed in Fig 4(b). This result suggests that the proposed filter can suppress slowly varying components that behave as baseline drift. The preservation of the main periodic waveform indicates that the adaptive cascade does not simply attenuate the whole low-frequency content, but reduces the reference-correlated disturbance while retaining the useful signal structure.
(a) Clean signal (b) Primary signal (c) Noise signal (d) Filtered signal.
In practice, the noise source is a combination of multiple noise types, as shown in Fig 5. This combination produces a noise pattern with complex variations, where fast random fluctuations coexist with slow oscillations, and some harmonic noise components similar to the clean signal are also mixed into the signal. Therefore, the clean signal in Fig 5(b) is significantly degraded, reducing the ability to identify and analyze the signal. After applying the denoising filter, the result shown in Fig 5(d) indicates the effectiveness of the filter, achieving good recovery of the clean signal, preserving the signal shape, and removing the baseline drift. This reflects the ability of the filter to simultaneously handle multiple noise types that vary continuously in practical scenarios. Compared with the single-noise cases, the combined-noise condition is more challenging because the interference contains both broadband and slowly varying components. The visual recovery in Fig 5 therefore supports the ability of the dynamic stage-control mechanism to handle mixed noise conditions without using a fixed number of filtering stages. Although some residual noise remains, the correlation coefficient in the cases shown in Figs 3–5 reaches approximately , indicating that the proposed method preserves the signal morphology and phase very well, which may support subsequent feature extraction or classification stages.
Tables 1–3 show that the proposed method achieves better performance than the other configurations.
Based on the results in Tables 1–3, compared with the conventional LMS filter, the proposed method reduces the MSE by approximately 37.68% − 81.54%, indicating a substantial reduction in residual reconstruction error after filtering. The MAE decreases by approximately 14.91% − 44.66%, reflecting lower average reconstruction error. In terms of denoising performance, the proposed method achieves an SNR improvement of 2.83 dB - 8.28 dB, while the PSNR increases by 2.82 dB - 7.66 dB compared with the conventional LMS filter. These results indicate that the proposed dynamic-threshold multistage architecture improves denoising performance under the tested simulated noise conditions.
Moreover, when compared with the multistage adaptive denoising filter using a fixed threshold [31], the proposed method also shows improved overall performance, as presented in Table 4.
The results indicate that both MSE and MAE are reduced, while SNR, PSNR, and the correlation coefficient between the clean reference signal and the filtered signal are increased.. Furthermore, based on Table 4, it can be observed that in many cases, the multistage LMS method with a fixed threshold requires more stages to achieve comparable results. In some cases, lowering the fixed threshold can improve the denoising performance. However, the additional improvement is relatively small, while the computational cost increases. These results suggest that the proposed adaptive stopping mechanism based on a dynamic threshold can better balance denoising performance and computational efficiency under the tested noise conditions. Therefore, the proposed multistage LMS adaptive filtering architecture provides a more favorable trade-off between filtering accuracy and execution time than the fixed-threshold approach, making it promising for deployment on resource-constrained devices.
4.2. Experimentally acquired data
In addition to using simulated signals as described above to evaluate the filter performance, we also acquired PCG signals in a real-world environment together with the corresponding reference noise signals to serve as inputs to the filter. The results are illustrated in Fig 6, where the original PCG signal in Fig 6(a) contains noticeable background noise, including random noise sources from the environment. In Fig 6(b), after applying the proposed denoising method with a dynamic threshold, the PCG signal shows reduced background noise while retaining the main physiological components of the PCG. The result in Fig 6 shows that the denoising process reduces the background disturbance while preserving the prominent PCG components associated with the main heart sound events. This visual observation is consistent with the reduction in residual-reference correlation and MSC, and with the SQI changes indicating a more concentrated spectrum and preserved physiological signal content.
When a clean reference PCG signal is not available, the effectiveness of the denoising filter is evaluated using two groups of quantitative metrics. The first group consists of noise-reference-based metrics, including the window-based correlation coefficient between the signal channel and the reference channel, as well as magnitude-squared coherence (MSC) in the frequency domain. These metrics provide indirect evidence of the reduction of reference-correlated noise after filtering. The second group consists of Signal Quality Indices (SQI) [47], including excess kurtosis, spectral entropy, and the energy ratio within the physiological frequency band of PCG (20–700 Hz), which are used to assess whether the main physiological characteristics of the PCG signal are retained after filtering.
For the real-world data, the correlated component between the reference channel and the signal channel after filtering is reduced by approximately 99%, decreasing from 0.5197 to 0.004. At the same time, the MSC value is reduced within the physiological PCG frequency band by approximately 75%, suggesting that a large portion of the reference-correlated noise component is attenuated. For the SQI metrics, the results further support the improvement in PCG signal quality after filtering. Specifically, the excess kurtosis increases by approximately 16%, from 22.17 to 26.29, indicating that the amplitude distribution of the filtered signal becomes more peaked, which is consistent with the characteristics of the S1 and S2 components [47]. The normalized spectral entropy decreases from 0.74 to 0.6882, indicating that the spectrum of the filtered signal becomes more concentrated and less affected by broadband noise. In addition, the energy ratio within the physiological PCG frequency band also increases after filtering.
On real-world experimental data, the filter shows promising denoising capability and retains the main physiological features of the PCG signal. However, effective filtering still requires that the acquired reference signal be sufficiently correlated with the noise component to be suppressed.
4.3. Algorithmic complexity and computational cost
In the algorithmic architecture of this study, each stage is an -order filter with the corresponding weight vector. The per-sample computational cost of a typical LMS stage is approximately
multiplications or divisions and
additions or subtractions per iteration [30]. The automatic stage addition mechanism based on Pearson correlation and the Fisher z transformation relies only on simple statistics and the transformation
, with a standard error of approximately
; therefore, its marginal cost is
per sample, or
per window. These levels of complexity and computational cost indicate that the proposed architecture is suitable for low-latency implementation on devices with limited resources.
In comparison, NLMS requires multiplications and one division [27], the affine projection algorithm (APA) requires
multiplications or divisions [48], and RLS requires approximately
multiplications or divisions per iteration, corresponding to
computational complexity [49]. Although these algorithms can provide good denoising performance, they generally require higher computational cost than LMS-based filtering, especially when the filter order or projection order increases. Therefore, the proposed architecture maintains the low per-stage complexity of LMS while reducing unnecessary stage additions through the dynamic stopping mechanism.
4.4. Runtime evaluation
The results from Table 4 further indicate the potential of the proposed method with an automatic stopping threshold to reduce latency compared with the fixed-threshold method. The processing time efficiency between the two methods was compared on the same simulated and real-world PCG datasets using the same processing device. Under the tested SNR levels, the dynamic-threshold method achieves an execution time approximately 3.5–4.0 times faster than the fixed-threshold method. This improvement is mainly attributed to: (i) early stopping when the error-reference correlation is no longer statistically significant, and the method is built based on LMS principles (ii) avoiding over-filtering by reducing unnecessary stages.
Furthermore, when tested on real-world acquired signals, the execution time of the proposed denoiser is nearly 2 times faster than that of the fixed-threshold filter. These results suggest that the proposed method can improve computational efficiency and reduce latency under the tested conditions, making it promising for deployment on resource-constrained devices.
4.5. Discussion
The results indicate that the proposed dynamic-threshold multistage LMS architecture can improve the trade-off between denoising performance and computational efficiency under the tested conditions. For simulated data, the availability of a clean reference signal allows the use of reference-based metrics such as MSE, MAE, SNR, PSNR, and CC. However, for experimentally acquired PCG data, a clean reference signal is not available; therefore, residual-reference correlation, MSC, and SQI provide indirect evidence of reference-correlated noise reduction and PCG signal preservation.
The effectiveness of the proposed ANC-based method also depends on the availability of a reference signal that is sufficiently correlated with the noise component to be suppressed. In addition, although the proposed method was compared with conventional LMS and fixed-threshold multistage LMS configurations, broader comparisons with NLMS, RLS, APA, wavelet-based methods, and learning-based denoising approaches should be further investigated. Compared with wavelet-based and wavelet-packet denoising methods, such as CEEMD–wavelet denoising [13] and wavelet-packet-based approaches [50,51], the proposed approach does not require the preselection of a mother wavelet, decomposition level, or coefficient-thresholding rule. Wavelet-based methods are effective for non-stationary signal representation and localized noise suppression, but their performance often depends on signal-dependent parameter choices and may require additional tuning when the noise spectrum changes. In contrast, the proposed LMS-based cascade uses a reference-noise channel and a statistical residual-reference stopping criterion to adapt the number of filtering stages online. Therefore, these two families of methods are complementary: wavelet-based approaches are powerful for time-frequency decomposition, whereas the proposed architecture emphasizes low-latency adaptive filtering with automatic stage control.
Future work will also include evaluation under a wider range of input SNR levels, additional signal types such as multitone, chirp, step, and transient signals, repeated random trials for statistical analysis, larger real-world PCG datasets, and validation on embedded hardware platforms.
5. Conclusion
In this study, we developed and evaluated a multi-stage adaptive denoising architecture based on the LMS algorithm for signal denoising applications under non-stationary noise conditions. The method is built based on LMS principles and incorporates a correlation-based automatic stage addition mechanism, where the decision threshold is automatically determined via the Fisher-z statistical test and modulated by SNR to determine the necessary number of filter stages in each case. This architecture improves noise reduction capability while reducing unnecessary filtering stages and limiting the risk of over-filtering, which may increase computational cost or affect useful signal characteristics.
The results presented in the Results section indicate the effectiveness of combining a multi-stage adaptive mechanism with statistically based stopping-threshold criteria in signal processing. The method shows improved denoising performance and retains the main signal characteristics, while also indicating potential suitability for resource-constrained devices due to its low computational cost. However, for ANC, the reference noise signal plays a critical role in the effectiveness of the filter. Therefore, future development should further investigate practical methods for acquiring a reference signal that is sufficiently correlated with the noise component in the target signal.
Furthermore, future work will focus on validating the proposed method on embedded devices, extending the framework to other physiological signals such as PPG and ECG, and integrating subsequent feature analysis modules to support downstream biomedical signal assessment.
Acknowledgments
This research is funded by Hanoi University of Science and Technology (HUST) under project number T2025-PC-080.
References
- 1. Chui KT, Gupta BB, Liu J, Arya V, Nedjah N, Almomani A. A survey of internet of things and cyber-physical systems: Standards, algorithms, applications, security, challenges, and future directions. Information. 2023;14(7):388.
- 2. Sánchez JMG, Jörgensen N, Törngren M, Inam R, Berezovskyi A, Feng L, et al. Edge Computing for Cyber-physical Systems: A Systematic Mapping Study Emphasizing Trustworthiness. ACM Trans Cyber-Phys Syst. 2022;6(3):1–28.
- 3. Gupta A, Singh A. A comprehensive survey on cyber-physical systems towards healthcare 4.0. SN Computer Science. 2023;4(2):199.
- 4. Reis MJCS. Lightweight Signal Processing and Edge AI for Real-Time Anomaly Detection in IoT Sensor Networks. Sensors (Basel). 2025;25(21):6629. pmid:41228852
- 5. Rocha A, Monteiro M, Mattos C, Dias M, Soares J, Magalhães R, et al. Edge AI for Internet of Medical Things: A literature review. Computers and Electrical Engineering. 2024;116:109202.
- 6. Seema D, Komil V, Dishita M. Edge AI for low-power IoT devices: architectures, algorithms, and applications. Educational Administration: Theory and Practice. 2022;28(02):309–12.
- 7. Alqudah AM, Moussavi Z. A review of deep learning for biomedical signals: current applications, advancements, future prospects, interpretation, and challenges. Computers, Materials & Continua. 2025;83(3):3753–841.
- 8. Omarov B. Deep Learning in Biomedical Image and Signal Processing: A Survey. Computers, Materials & Continua. 2025;85(2):2195–253.
- 9. Partovi E, Babic A, Gharehbaghi A. A review on deep learning methods for heart sound signal analysis. Front Artif Intell. 2024;7:1434022. pmid:39605951
- 10. Diehl PU, Zilly H, Sattler F, Singer Y, Kepp K, Berry M, et al. Deep learning-based denoising streamed from mobile phones improves speech-in-noise understanding for hearing aid users. Front Med Eng. 2023;1.
- 11. Hu H-T, Lee T-T. Options for Performing DNN-Based Causal Speech Denoising Using the U-Net Architecture. ASI. 2024;7(6):120.
- 12. Hu H, Ao Y, Yan H, Bai Y, Shi N. Signal Denoising Based on Wavelet Threshold Denoising and Optimized Variational Mode Decomposition. Journal of Sensors. 2021;2021(1).
- 13. Yang B-C, Xu F-Z, Zhao Y, Yao T-Y, Hu H-Y, Jia M-Y, et al. Complete Ensemble Empirical Mode Decomposition and Wavelet Algorithm Denoising Method for Bridge Monitoring Signals. Buildings. 2024;14(7):2056.
- 14. Akkaya S. Wavelet-Based Denoising Strategies for Non-Stationary Signals in Electrical Power Systems: An Optimization Perspective. Electronics. 2025;14(16):3190.
- 15. Silik A, Noori M, Wu Z, Altabey WA, Dang J, Farhan NSD. Wavelet-based vibration denoising for structural health monitoring. Urban Lifeline. 2024;2(1).
- 16. Simić M, Ouni C, Ammar N, Keutel T, Stojanović G, Kanoun O. Embedded hardware-based adaptive filtering for noise reduction in bioimpedance data. Comput Biol Med. 2025;197(Pt A):110850. pmid:40907259
- 17. Gong Y, Fan H, Wei X, Liu K, Xu X, Che K, et al. Adaptive filtering suppression method of substation environmental noise based on fast transversal least mean square algorithm. Int J Environ Sci Technol. 2025;23(2).
- 18. Song P, Zhao H, Zhu Y, Lv S, Chen G. Robust Filtered-x LMS Algorithm Based on Adjustable Softsign Framework for Active Impulsive Noise Control. Symmetry. 2025;17(10):1592.
- 19. Okoekhian J, Guiawa M, Onyegbadue I. Design and simulation of adaptive filters in real-time environment. Int J Res Rev. 2024;11(11):215–38.
- 20. Welz T, Doebler P, Pauly M. Fisher transformation based confidence intervals of correlations in fixed- and random-effects meta-analysis. Br J Math Stat Psychol. 2022;75(1):1–22. pmid:33934346
- 21. Medrano J, Kheddar A, Ramdani S. Assessing time series correlation significance: A parametric approach with application to physiological signals. Biomed Signal Process Control. 2024;94:106235. pmid:39846001
- 22. Ibrahim A, Abbas U, Ahmad A, Balansana KI. Estimating effective sample size in autocorrelated meteorological time series: Evidence from CGG Toro station, Bauchi state, Nigeria. 2025.
- 23. Widrow B, Glover JR, McCool JM, Kaunitz J, Williams CS, Hearn RH, et al. Adaptive noise cancelling: Principles and applications. Proc IEEE. 1975;63(12):1692–716.
- 24.
Feng L-M, He W, Li H-F, Yang X-T. Adaptive noise cancellation system elimination of sinusoidal interference. In: 2nd Annual International Conference on Energy, Environmental & Sustainable Ecosystem Development (EESED 2016), 2017. https://doi.org/10.2991/eesed-16.2017.35
- 25. Koley S, Harms J, Allocca A, Calloni E, De Rosa R, Errico L, et al. Adaptive algorithms for low-latency cancellation of seismic Newtonian-noise at the Virgo gravitational-wave detector. Phys Rev D. 2024;110(2).
- 26. Somefun C, Daramola S, Somefun T. Advancements and applications of adaptive filters in signal processing. Journal Européen des Systèmes Automatisés. 2024;57(5):1259–72.
- 27. Salah M, Dessouky M, Abdelhamid B. Design and Implementation of an Improved Variable Step-Size NLMS-Based Algorithm for Acoustic Noise Cancellation. Circuits Syst Signal Process. 2021;41(1):551–78.
- 28.
Mugdha AC, Rawnaque FS, Ahmed MU. A study of recursive least squares (RLS) adaptive filter algorithm in noise removal from ECG signals. In: 2015 International Conference on Informatics, Electronics & Vision (ICIEV), 2015. 1–6. https://doi.org/10.1109/iciev.2015.7333998
- 29. Yang F, Cao Y, Wu M, Albu F, Yang J. Frequency-Domain Filtered-x LMS Algorithms for Active Noise Control: A Review and New Insights. Applied Sciences. 2018;8(11):2313.
- 30.
Haykin S. Adaptive filter theory. 3rd ed. Upper Saddle River, NJ, United States: Prentice-Hall, Inc. 1996.
- 31. Pauline SH, Dhanalakshmi S. A robust low-cost adaptive filtering technique for phonocardiogram signal denoising. Signal Processing. 2022;201:108688.
- 32. Zhu W, Mousavi SM, Beroza GC. Seismic Signal Denoising and Decomposition Using Deep Neural Networks. IEEE Trans Geosci Remote Sensing. 2019;57(11):9476–88.
- 33. Pan Y, Luo Q, Fan Y, Chen H, Zhou D, Luo H. Deep learning-based denoising of noisy vibration signals from wavefront sensors using BiL-DCAE. Sensors. 2025;25(16):5012.
- 34. Ali SN, Shuvo SB, Al-Manzo MIS, Hasan A, Hasan T. An End-to-End Deep Learning Framework for Real-Time Denoising of Heart Sounds for Cardiac Disease Detection in Unseen Noise. IEEE Access. 2023;11:87887–901.
- 35. Jakubec M, Lieskovska E, Pocta P. A robust deep learning based model for denoising phonocardiogram signals in clinical environments. Engineering Applications of Artificial Intelligence. 2025;161:112286.
- 36. Gul S, Khan MS. A Survey of Audio Enhancement Algorithms for Music, Speech, Bioacoustics, Biomedical, Industrial, and Environmental Sounds by Image U-Net. IEEE Access. 2023;11:144456–83.
- 37. Yuliani AR, Amri MF, Suryawati E, Ramdan A, Pardede HF. Speech Enhancement Using Deep Learning Methods: A Review. J Elektron dan Telekomun. 2021;21(1):19–26.
- 38.
Xu C, Li H, Xin P. Research On Heart Sound Denoising Method Based On CEEMDAN And Optimal Wavelet. In: 2022 2nd International Conference on Consumer Electronics and Computer Engineering (ICCECE), 2022. 629–32. https://doi.org/10.1109/iccece54139.2022.9712657
- 39. Ravizza G, Ferrari R, Rizzi E, Dertimanis V. On the denoising of structural vibration response records from low-cost sensors: a critical comparison and assessment. J Civil Struct Health Monit. 2021;11(5):1201–24.
- 40.
Figueiredo MB, de Almeida A, Ribeiro B. Wavelet Decomposition and Singular Spectrum Analysis for electrical signal denoising. In: 2011 IEEE International Conference on Systems, Man, and Cybernetics, 2011:3329–34. https://doi.org/10.1109/icsmc.2011.6084183
- 41. Fisher RA. Frequency Distribution of the Values of the Correlation Coefficient in Samples from an Indefinitely Large Population. Biometrika. 1915;10(4):507.
- 42. Pyper BJ, Peterman RM. Comparison of methods to account for autocorrelation in correlation analyses of fish data. Can J Fish Aquat Sci. 1998;55(9):2127–40.
- 43.
Bendat JS, Piersol AG. Random data: analysis and measurement procedures. 4th ed. Hoboken (NJ): John Wiley & Sons. 2010.
- 44. Bismor D, Czyz K, Ogonowski Z. Review and Comparison of Variable Step-Size LMS Algorithms. IJAV. 2016;21(1).
- 45.
Shang Y, Guo Y, Xu Y, Han L, Tan R. SNR-based adaptive threshold decision PN code acquisition algorithm. In: 2014 International Conference on Computer, Communications and Information Technology. 2014:123–6. https://doi.org/10.2991/ccit-14.2014.33
- 46. Rohling H. Radar CFAR Thresholding in Clutter and Multiple Target Situations. IEEE Trans Aerosp Electron Syst. 1983;AES-19(4):608–21.
- 47. Tang H, Wang M, Hu Y, Guo B, Li T. Automated signal quality assessment for heart sound signal by novel features and evaluation in open public datasets. BioMed Research International. 2021;2021(1):7565398.s
- 48.
Gonzalez A, Ferrer M, Albu F, De Diego M. Affine projection algorithms: evolution to smart and fast algorithms and applications. In: Proceedings of the 20th European signal processing conference (EUSIPCO), 2012. 1965–9.
- 49. Mahmood AF, Awny SN, Alameer A. RLS adaptive filter co-design for de-noising ECG signal. Results in Engineering. 2024;24:103563.
- 50. Mercorelli P. Denoising and Harmonic Detection Using Nonorthogonal Wavelet Packets in Industrial Applications. Jrl Syst Sci & Complex. 2007;20(3):325–43.
- 51. Mercorelli P. A Fault Detection and Data Reconciliation Algorithm in Technical Processes with the Help of Haar Wavelets Packets. Algorithms. 2017;10(1):13.