You are currently viewing a new version of our website. To view the old version click .
Biomimetics
  • Article
  • Open Access

10 December 2025

Performance of Hammerstein Spline Adaptive Filtering Based on Fair Cost Function for Denoising Electrocardiogram Signals

and
1
Department of Electronic Engineering, School of Electrical and Electronic Engineering (SEE), Faculty of Engineering and Technology, Mahanakorn University of Technology, Nongchok, Bangkok 10530, Thailand
2
Department of Electrical Engineering, School of Engineering, King Mongkut’s Institute of Technology Ladkrabang, Bangkok 10520, Thailand
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Biomimetics2025, 10(12), 828;https://doi.org/10.3390/biomimetics10120828 
(registering DOI)
This article belongs to the Special Issue New Biomimetic Advances in Signal and Image Processing for Biomedical Applications 2025

Abstract

This paper proposes a simplified adaptive filtering approach using a Hammerstein function and the spline interpolation based on a Fair cost function for denoising electrocardiogram (ECG) signals. The use of linear filters in real-world applications has many limitations. Adaptive nonlinear filtering is a key development in tackling the challenge of discovering the specific characteristics of biomimetic systems for each person in order to eliminate unwanted signals. A biomimetic system refers to a system that mimics certain biological processes or characteristics of the human body, in this case, the individual features of a person’s cardiac signals (ECG). Here, the adaptive nonlinear filter is designed to cope with ECG variations and remove unwanted noise more effectively. The objective of this paper is to explore an individual biomedical filter based on adaptive nonlinear filtering for denoising the corrupted ECG signal. The Hammerstein spline adaptive filter (HSAF) architecture consists of two structural blocks: a nonlinear block connected to a linear one. In order to make a smooth convergence, the Fair cost function is introduced for convergence enhancement. The affine projection algorithm (APA) based on the Fair cost function is used to denoise the contaminated ECG signals, and also provides fast convergence. The MIT-BIH 12-lead database is used as the source of ECG biomedical signals contaminated by random noises modelled by Cauchy distribution. Experimental results show that the estimation error of the proposed HSAF–APA–Fair algorithm, based on the Fair cost function, can be reduced when compared with the conventional least mean square-based algorithm for denoising ECG signals.

1. Introduction

Electrocardiogram (ECG) signals have attracted significant interest in both medical and engineering fields [1]. ECG signals are a kind of biological signal corrupted by artefacts including patient movement and/or electrical interference. ECG signals consist of cardiac information that is essential to the diagnosis of heart diseases. With the advancement of technology, mathematical techniques can be adapted and applied to solve problems in nonlinear systems. Based on adaptive linear filtering, the finite impulse response (FIR) filter has been the conventional approach to eliminating corrupted ECG signals, including electrode motion artefacts and muscle artefacts [2].
Adaptive linear filtering techniques have been utilised, but have limitations for practical use since biomedical signals in real-world applications are generally dominated by nonlinear characteristics and nonlinear adaptive filtering. Thus, nonlinear adaptive filtering is required in order to solve the real problems of biological signals. Therefore, adaptive nonlinear filtering is a key approach to the challenge of discovering the specific characteristics of biomimetic systems for each person in order to eliminate unwanted signals. It will be shown that there are many research projects that present the application of nonlinear adaptive filtering in the field of signal processing, such as spline adaptive filtering (SAF) and Hammerstein spline adaptive filtering (HSAF) [3,4].
As stated in [3], a block-oriented model is one of the most basic nonlinear filtering techniques represented by the Hammerstein model, sometimes indicated as a nonlinear–linear model, which can be applied for biological nonlinear system identification. According to the adaptive approach, adaptive nonlinear system identification based on SAF has been achieved using a Hammerstein model comprising spline interpolation [4], which can determine the characteristic of biomedical signals in practice. As stated in the M-estimator algorithm, the adaptation of location M-estimators has also been undertaken [5,6]. As mentioned in the spline interpolation function [7], the curve of the spline basis matrix is a representation of a local interpolating approach and also uses continuous function to calculate the local parameter approximation from biomedical input signals. This approach is well-suited to capturing biological mechanisms and implementation in the field of biomedical system identification.
With assistance from the spline interpolation function and adaptive filtering, HSAF has been introduced to suppress both known and unknown disturbance sources. A common type of spline interpolation method used in many applications is the cubic spline, which can produces a smooth, natural-looking curve by applying low-degree polynomials to small data segments [8,9]. In [8], a cubic spline algorithm is used for fitting a flight path and smoothing the processing of the path planning of unmanned aerial vehicles using a bio-inspired spider–wasp algorithm. In [9], cubic spline interpolation was used for the collaborative path enhancement of multi-autonomous underwater vehicles’ collision avoidance. In [10], an improved HSAF was designed to extract the ocular noise from electroencephalogram signals in healthcare specialities. Meanwhile, HSAFs are nonlinear adaptive filters used in engineering research, such as the nonlinear system identification [11] against the impulsive noise environment [5], nonlinear acoustic echo-cancellation [12], and full-duplex communication at 2.4 GHz [13], and so on.
HSAF [4] comprises two main connected parts. The first part is nonlinear adaptive filtering, with the adaptive control point coefficients implemented in the form of a lookup table (LUT) that uses the coefficients of control point vectors defined by the spline interpolation function. The second part is adaptive linear FIR filtering with an optimisation scheme. Later research extended the design by adding a nonlinear filter structure to the original HSAF structure, which is called the Nonlinear–Linear–Nonlinear (NLN) model [3]. The experimental results show that it has a good ability to solve problems for simulation situations using real working conditions. The NLN structure is called a cascade Hammerstein spline adaptive filtering (CHSAF) structure. A previous study extended the design by adding a nonlinear filter structure to the original NLN-HSAF structure [3]. The experimental results show that it performed effectively in solving problems in simulation situations using real working conditions. The CHSAF model comprises the cascade of a memoryless nonlinear Hammerstein function, a linear Wiener filter, and a second memoryless nonlinear function, which can be considered as the cascade of a nonlinear Hammerstein system connected to a Wiener system and nonlinear system [3].
To reduce computational complexity while processing, the Fair cost function [14] has been modified for monitoring the estimated error and improving the robustness compared with the quadratic cost function in [14]. The affine projection algorithm (APA) is a stochastic algorithm that has fast convergence efficiency [15]. APA combines the advantages of normalised least mean square (NLMS) and recursive least square (RLS) algorithms, which have lower complexity and achieve faster convergence between RLS and NLMS methods in the adaptive filtering [16]. In [17], the authors improved this APA with robustness against the impulse noise. In [18], the improved APA performed with rapid convergence under non-Gaussian colour noise for sparse system identification. For fast convergence and robustness, a variable step-size technique is an important method that can support the achievement of coefficient optimisation and the inclusion of unconstrained criteria against noisy inputs and impulsive environments [19].
Therefore, HSAF applies the concepts derived from signal processing to biological signals. The goal is to apply mathematics to solve the interference present in biomedical information. The advantages of proposed HSAF-based scheme are its adaptive approach, versatile solutions for nonlinear systems, and ability to perform specific characteristic functions of biomimetic systems to defend against corrupted signals. This paper focuses on a nonlinear adaptive filter design using a HSAF structure with the help of APA based on the Fair cost function for achieving a fast mean square error convergence rate. We propose utilising this HSAF-based model, which has achieved notable success in many engineering fields, to optimise the Fair cost function for the more efficient denoising of ECG signals compared to conventional linear filtering based on a least mean square approach. The objective of this work is to explore the use of a biomedical filter based on HSAF for denoising contaminated ECG signals.

2. Hammerstein Spline Adaptive Filter

The architecture of the Hammerstein spline adaptive filter (HSAF) consists of two structural blocks: a nonlinear Hammerstein structure connected to a linear adaptive filtering, as shown in Figure 1. The nonlinear block, implemented as an adaptive lookup table (LUT), uses a spline function for interpolation with the first coefficient q i , n . The linear structure block is an adaptive linear finite impulse response (FIR) type of linear structure for the coefficient w n .
Figure 1. Proposed HSAF–APA–Fair architecture.
From Figure 1, the input signal x n is the input vector of the adaptive LUT block, while the output signal s n of the LUT block becomes the input of the linear adaptive FIR filter block
s n = u n T C q i , n ,
s n = s n s n 1 s n N + 1 T ,
i = x n Δ x + Q 1 2 ,
u n = x n Δ x x n Δ x ,
u n = u n 3 u n 2 u n 1 T ,
where Δ x is the coefficient between two consecutive control point coefficients and Q is the number of coefficients used. · is the floor operator and C is a spline basis matrix [4], with u n being the coordinate between two points with the coefficient vector of the nonlinear filter.
Hence, the error e n at the output can be expressed by
e n = d n w n T s n ,
where s n is evaluated by the spline interpolation in (2).
Following [4], based on the minimised cost function J ( q , w ) , we have
J ( q , w ) = 1 2 min q , w e n 2 ,
where e n is given in (6).
As stated in the Hammerstein function, the least mean square (LMS) method is applied on adaptive weight coefficients q i , n
q i , n + 1 = q i , n μ q J ( q , w ) q i , n ,
where J ( q , w ) q i , n is given by
J ( q , w ) q i , n = 1 2 ( d n w n T s n ) 2 q i , n = u n T C w n e n ,
where the Catmull–Rom (CR) spline basis matrix C that represents a local interpolating scheme [4] is
C = 1 2 1 3 3 1 2 5 4 1 1 0 1 0 0 2 0 0 .
Substituting (9) into (8), we have
q i , n + 1 = q i , n + μ q u n T C w n .
In a similar fashion, the adaptive linear coefficient w n is defined by
w n + 1 = w n + μ w J ( q , w ) w n ,
where J ( q , w ) w ( k ) is expressed by
J ( q , w ) w n = 1 2 ( d n w n T s n ) 2 w n = s n e n ,
By substituting (13) into (12), we arrive at
w n + 1 = w n + μ w s n e n ,
where μ q and μ w denote the learning rates for q i , n + 1 and w n , respectively.

3. Proposed HSAF with Affine Projection Algorithm Based on Fair Cost Function

This section introduces an adaptive nonlinear HSAF with an affine projection algorithm (APA) based on the Fair cost function (APA–Fair), which is designed to provide a specific characteristic in biomimetic systems. Initially, the Fair cost function is briefly introduced. The HSAF–APA–Fair algorithm is then developed in detail based on the HSAF model.
Following [14], the minimised Fair cost function stands on the approximate coefficient w ˜ n at symbol k, as follows:
J ˜ n = α 2 | e ˜ n | α log 1 + | e ˜ n | α ,
where α > 0 is a threshold value.
The approximate a priori error e ˜ n at symbol n is related to the desired symbol d n
e ˜ n = d n y n = d n w ˜ n 1 T s n ,
where y n is the output signal, w ˜ n is the estimated weight vector, and s n is given in (2).
To minimise the criterion based on the Fair cost function in (15), we assume that the adaptive tap-weight vector q ˜ i , n and w ˜ n based on APA can be expressed as
q ˜ i , n = q ˜ i , n 1 + μ ˜ q n q J n ( X n X n T + ϱ I ) ,
w ˜ n = w ˜ n 1 + μ ˜ w n w J n S n S n T ,
where μ ˜ q n and μ ˜ w n are adaptive step-size for q ˜ i , n and w ˜ n , respectively. w J n and q J n denote the gradient matrices. X n and S n are given by
X n = x n x n 1 x n N + 1 ,
S n = s n s n 1 s n N + 1 .
Then, the gradient q J ˜ n results from differentiating the Fair cost function in (15) with respect to q ˜ i , n , which is given by
q J n = q ˜ i , n α 2 | e ˜ n | α log ( 1 + | e ˜ n | α ) = α 2 u n T C w ˜ n α u n T C w ˜ n α ( 1 + | e ˜ n | α ) = α u n T C w ˜ n e ˜ n α + | e ˜ n | .
Moreover, the gradient w J n is obtained by differentiating the Fair cost function in (15) with respect to w ˜ n , which can be derived by
w J n = w ˜ n α 2 | e ˜ n | α log ( 1 + | e ˜ n | α ) = α 2 s n α s n α ( 1 + | e ˜ n | α ) = α s n e ˜ n α + | e ˜ n | .
By replacing (21) into (17), the adaptive control points q ˜ i , n can be expressed as
q ˜ i , n = q ˜ i , n 1 + μ ˜ q n X n X n T α u n T C w ˜ n e ˜ n α   +   | e ˜ n | ,
where e ˜ n is given in (16). Note that the input of the nonlinear block X n is related to the adaptive control points q ˜ i , n .
By substituting (22) into (18), the adaptive coefficient w ˜ n can be obtained by
w ˜ n = w ˜ n 1 + μ ˜ w n S n S n T α s n e ˜ n α   +   | e ˜ n | ,
where s n is given in (2). It is noticed that the input of the linear block S n is related to the adaptive coefficient w ˜ n .
Following [20], adaptive step sizes μ ˜ q n and μ ˜ w n for q ˜ i , n and w ˜ n can be expressed with the help of a gradient vector, as follows:
μ ˜ q n = β q μ ˜ q n 1 + ρ q g q n 1 T g q n ζ n 2 ,
μ ˜ w n = β w μ ˜ w n 1 + ρ w g w n 1 T g w n ζ n 2 ,
ζ n = σ ζ n 1 + ( 1 σ ) e ˜ n 2 ,
where β q , β w , and ρ q , ρ w are the smooth parameters for smooth convergence.
So, the gradient vectors g q n and g w n , based on gradient weighted average algorithm [20], are given by
g q n = ψ g q n 1 + ( 1 ψ ) u n T C w ˜ n e ˜ n ,
g w n = ψ g w n 1 + ( 1 ψ ) s n e ˜ n ,
where ψ < 1 and e ˜ n is defined in (16).
A summary of the proposed HSAF-APA based on Fair cost function (HSAF-APA-Fair) algorithm with adaptive step-size algorithm is introduced in Algorithm 1.
Algorithm 1 Summary of proposed HSAF–APA–Fair algorithm with adaptive step-size approach
Initial value: w ˜ ( 0 ) = [ 1 0 0 ] T
q ˜ i , n ( 0 ) = [ 1 0 0 ] T and ϱ = 1 × 10 7
Fixed parameter: 0 < α < 1
For n = 1 , 2 , , N
  • To calculate s n as
    s n = u n , 1 T C q ˜ i , n , s n = s n s n 1 s n N + 1 T
  • To compute u n and i as
    u n = u n 3 u n 2 u n 1 T u n = x n Δ x x n Δ x i = x n Δ x + Q 1 2
  • To compute e ˜ n as
    e ˜ n = d n w ˜ n 1 T s n
  • To determine q ˜ i , n as:
    q ˜ i , n = q ˜ i , n 1 + μ ˜ q n X n X n T α u n T C w ˜ n e ˜ n α   +   | e ˜ n | X n = x n x n 1 x n N + 1
  • To obtain μ ˜ q n as
    μ ˜ q n = β q μ ˜ q n 1 + ρ q g q n 1 T g q n ζ n 2 g q n = ψ g q n 1 + ( 1 ψ ) u n T C w ˜ n e ˜ n ζ n = σ ζ n 1 + ( 1 σ ) e ˜ n 2
  • To calculate w ˜ n
    w ˜ n = w ˜ n 1 + μ ˜ w n S n S n T α s n e ˜ n α   +   | e ˜ n | S n = s n s n 1 s n N + 1
  • To obtain μ ˜ w n as
    μ ˜ w n = β w μ ˜ w n 1 + ρ w g w n 1 T g w n ζ n 2 g w n = ψ g w n 1 + ( 1 ψ ) s n e ˜ n
end

4. Performance Analysis of Learning Rate

An analysis of the convergence properties of the proposed step-size parameters is conducted in virtue of a posteriori estimate error and Taylor series expansion in order to ensure the steady-state condition.
We assume a posteriori error e ˜ p n by
e ˜ p n = d n w ˜ n + 1 T s n = e ˜ min n δ w ˜ n T s n .
where the difference in previous and present δ w ˜ n is given by w ˜ n , and can be expressed by
δ w ˜ n = w ˜ n + 1 w ˜ n = μ ˜ w n S n S n T α s n e ˜ n α   +   | e ˜ n | .
By substituting (31) into (30), a posteriori estimate error can be obtained by
e ˜ p n = e ˜ min n μ ˜ w n S n S n T α s n s n T e ˜ n α   +   | e ˜ n | .
We assume that | e ˜ p n | | e ˜ min n | at steady state. In order to demonstrate the range of μ ˜ w ˜ n , we take the norm of both sides of (32), which can be given by
0 < μ ˜ w n < ( S n S n T ) · ( α + | e ˜ n | ) α s n s n T .
By means of Taylor series expansion, a posteriori estimate error with respect to the q ˜ i , n can be given by
e ˜ p n + 1 = e ˜ p n + e ˜ p n q ˜ i , n · δ q ˜ i , n ,
where the difference in previous and present δ q ˜ i , n can be expressed as
δ q ˜ i , n = q ˜ i , n + 1 q ˜ i , n = μ ˜ q n X n X n T α ( u n T C w ˜ n ) e ˜ n α   +   | e ˜ n | .
We demonstrate the a posteriori estimate e ˜ p n by
e ˜ p n = d n w ˜ n + 1 T u n C q ˜ i , n ,
and to take the derivative on e ˜ p n , with respect to q ˜ i , n , by
e ˜ p n q ˜ i , n = q ˜ i , n d n w ˜ n + 1 T u n C q ˜ i , n = w ˜ n + 1 T C u n .
By substituting (35) and (37) into (34), the a posteriori estimate error e ˜ p n can be expressed as
e ˜ p n + 1 = e ˜ p n α μ ˜ q n ( u n T C w ˜ n ) · ( u n T C w ˜ n ) T e ˜ n ( X n X n T ) · ( α + | e ˜ n | ) .
In a similar way, we obtain the range of μ ˜ q n by taking the norm on both sides of (38) as
0 < μ ˜ q n < ( X n X n T ) · ( α + | e ˜ n | ) α ( u n T C w ˜ n ) · ( u n T C w ˜ n ) T ,
where we assume that all constants are positive and | e ˜ p n | | e ˜ n + 1 | at steady state.
Note that if the learning rates of μ ˜ w n and μ ˜ q n are designated as mentioned in (33) and (39), then the proposed method can be confirmed to converge at its own optimum value. These bounds in (33) and (39) are helpful to certify the convergence of the proposed approach.

5. Simulation Results

The efficiency of the proposed HSAF–APA–Fair algorithm was investigated using mean squared error (MSE) to assess the performance of the model and its applicability for ECG signal denoising.

5.1. Experimental Results of Proposed HSAF–APA–Fair Model

Random processes were simulated in the computer experiments. The performance of the proposed HSAF–APA–Fair algorithm was evaluated by comparing it to the HSAF-LMS [4] across 100 Monte Carlo trials using 7000 samples.
The input signal ( x n ) is generated by
x n = ϑ · x n 1 + η n = ϑ · x n 1 + 1 ϑ 2 ξ n ,
where η n is the random noise, ξ n is a zero-mean white Gaussian noise with unitary variance, and ϑ is set to [0.01, 0.99].
In the system identification, an unknown Wiener system comprising a linear component is identified as [3]:
w 0 = [ 0.6 , 0.4 , 0.25 , 0.15 , 0.1 ] .
Following [5], a nonlinear memoryless target function is implemented by a 23-point length LUT q 0 , which is interpolated by a uniform third-degree spline with an interval sampling Δ x = 0.2 as
q 0 = { 2.2 , 2 , 1.8 , , 1.0 , 0.8 , 0.91 , 0.42 ,   0.01 , 0.1 , 0.1 , 0.15 , 0.58 , 1.2 , 1.0 , 1.2 , , 2.0 , 2.2 }
The initial parameters of HSAF–APA–Fair model are α = 0.01 ; μ w = 3.75 × 10 2 ; μ q = 3.55 × 10 2 ; ρ q = 2.95 × 10 3 ; ρ w = 2.75 × 10 3 ; ψ = 0.975 ; and a signal to noise ratio of S N R = 25 dB. The length of the tap (M) is 7 for all algorithms.
The comparison of model performance between the proposed HSAF–APA–Fair method and other nonlinear models [21,22] is proved. Volterra series [21] and adaptive Hammerstein nonlinear system model by Jeraj and Mathews [22] are the representations of other nonlinear models. Volterra series [21] is a simple and powerful approach for analysing a systematic and characteristic model for a nonlinear system. Jeraj and Mathews [22] evaluated the performance of an adaptive nonlinear system by using a Hammerstein model consisting of static nonlinearity with adaptive linear filtering.
The adapted nonlinearity of the proposed HSAF–APA–Fair model compared with the traditional HSAF-LMS [4], Volterra [21] and Jeraj & Mathews [22] is shown in Figure 2. It can be clearly seen that the averaged results of adapted nonlinearity for Volterra [21] and Jeraj and Mathews [22] do not overlap with the nonlinear memoryless target q 0 when the traditional HSAF-LMS scheme is non-adjustable while updating at 7000 samples over 100 trials. Note that the result of the proposed HSAF–APA–Fair obtained by a spline interpolation function employed in adaptive control points q ˜ i , n overlies the target in order to correspond with other nonlinear algorithms.
Figure 2. Target and adapted nonlinearities of HSAF-APA-Fair compared with HSAF-LMS [4], Volterra [21] and Jeraj & Mathews [22] with ϑ = 0.15 .
We determine the mean square error MSE ( n ) that is given in dB by
MSE ( n ) = 10 log e n 2 = 10 log d n w n 1 T s n 2 .
Figure 3 shows the performance of different approaches in terms of the MSE calculated by (41), where MSE curves were obtained from a test of 7000 samples with 100 trials. The comparison of MSE with ϑ = 0.15 is provided and shows the MSE curves of the proposed HSAF–APA–Fair model and HSAF-LMS [4] model with ϑ = 0.15 based on (40). It is clear that the MSE curves of the proposed HSAF–APA–Fair algorithm provides slower convergence compared to the traditional HSAF-LMS algorithm at steady state, while reaching the value of noise level.
Figure 3. MSE curves of proposed HSAF-APA-Fair and HSAF-LMS [4], Volterra [21] and Jeraj & Mathews [22] where ϑ = 0.15 .
In addition, the learning rates of μ q ˜ n and μ w ˜ n are the crucial hyperparameters for controlling the coefficients w ˜ n and q ˜ i , n of the proposed HSAF–APA–Fair model with respect to the estimated error during updating. Figure 4 shows the learning rate of μ q n of adaptive control points q i , n , with the different initial values of μ q ( 0 ) . Figure 5 shows the learning rate of μ w n of the adaptive coefficient w n with the different initial values of μ q ( 0 ) . The proposed learning rate models of step-size parameters μ q n and μ w n begin to display slight fluctuations in learning while processing after several hundreds of samples. However, both adaptive step-size models still maintain a reasonable convergence rate of MSE performance. It is noticed that the learning rate of both μ q n and μ w n can converge effectively to a steady-state environment, starting with the 1000-fold change in different initial values of each step-size.
Figure 4. Learning rate trajectories of step-size μ q n of adaptive control points q i , n at different initial values of μ q ( 0 ) and μ w ( 0 ) .
Figure 5. Learning rate trajectories of step-size μ w n of adaptive coefficient w n at different initial values of μ q ( 0 ) and μ w ( 0 ) .
Regarding the relationship between the MSE curves in Figure 3 and the learning rate of step-size parameters in Figure 4 and Figure 5, if the learning rate is too high at starting point, it ensures that the MSE curve of the proposed model converges quickly to find the optimal value. At steady state, we found that the learning rates adaptively were of lower values when updating the model.

5.2. Denoising ECG Signal

For this experiment, a dataset of ECG signals was provided by the MIT-BIH database [23,24,25]. The ECG input signal ( x E C G n ) was generated in a random process across 100 Monte Carlo trials using 7000 samples as follows:
x E C G n = ϑ · x E C G n 1 + 1 ϑ 2 ξ n .
Based on statistical inference [26], the Cauchy distribution function ( η Cauchy n ) is a representation of the random noise that appeared in the biomedical signal:
η Cauchy n = λ π · ( x E C G n 2 + λ ) ,
where λ is a scale parameter at 0.01.
Following [26], the corrupted ECG input signal ( d η n ) was contaminated by Gaussian Cauchy distribution:
d η n = ( 1 λ ) · d η n 1 + λ · η Cauchy n .
Figure 6 shows the comparison between original ECG, the ECG corrupted by Gaussian Cauchy noise, and the ECG signal denoised by proposed HSAF–APA–Fair model. It can be observed that the corrupted ECG signal in Figure 6b was disturbed by Cauchy random noise. The denoised ECG signal in Figure 6c is very similar to the original ECG shown in Figure 6a after filtering using the proposed HSAF–APA–Fair method in order to eliminate the Cauchy undesired noise.
Figure 6. Denoised ECG signal corrupted by Gaussian Cauchy distribution function: (a) ECG signal; (b) ECG corrupted by Cauchy noise; and (c) denoised ECG by proposed HSAF–APA–Fair model.
Figure 7 shows the performance of proposed HSAF–APA–Fair algorithm with the ECG input corrupted in Figure 6b in terms of MSE, where the MSE curves were obtained from a test of 7000 samples with 100 trials. The comparison of MSE with ϑ = 0.15 , 0.90 is provided, and shows the the MSE curves of the proposed HSAF–APA–Fair approach can converge at the steady state.
Figure 7. MSE curves of proposed HSAF–APA–Fair algorithm with the ECG input corrupted in Figure 6b at different ϑ = 0.15 , 0.90 .

6. Discussion

The proposed HSAF–APA–Fair model achieves faster convergence and greater robustness to random processes compared to the traditional HSAF-LMS model. The proposed HSAF–APA–Fair model with adaptive learning rates outperforms the conventional HSAF-LMS and other nonlinear models. The shape of the adapted nonlinearity function of the proposed model can be smoothly transformed during processing. The performance of the proposed model can be optimised by step-size parameters, which were comprehensively implemented. The tuning process using an adaptive step-size algorithm aimed to enhance the convergence properties of the proposed model. This suggests that the proposed model adapts effectively after learning from a Gaussian random process. Its ability to optimise the corrupted ECG signal was tested against corruption with Cauchy noise. Despite convergence, the proposed model continues to demonstrate stable performance, capturing the underlying biomedical patterns in ECG signal and nonlinear system identification, making the proposed model a suitable option for real-world application.

7. Conclusions

This paper evaluates the effectiveness of the proposed HSAF–APA–Fair model, which is based on the Fair cost function for a general case of nonlinear system identification. The HSAF-based architecture incorporates a memoryless function that is adjusted during the learning process, with spline control points being automatically regulated through a gradient-based method from the APA approach. By leveraging the gradient vector for adaptive learning rate models, the step-size tuning parameters are proved. The bounds of the step-size parameters are verified with the assistance of Taylor series expansion. A systematic analysis of the learning rate of the step-size parameters was conducted to prove that the model can converge effectively to steady-state environment starting with the 1000-fold change in different initial values of each step-size parameter. Several experiments on the Gaussian random process and real data of corrupted ECG signals demonstrated the performance of the proposed HSAF–APA–Fair algorithm with regard to MSE evaluation. Simulation results show that the proposed HSAF–APA–Fair algorithm provides greater robustness and outperforms the conventional HSAF-LMS algorithm and other nonlinear systems in the tasks of system identification and ECG signal denoising.

Author Contributions

Conceptualisation, S.S. and T.W.; methodology, S.S. and T.W.; formal analysis, S.S. and T.W.; writing—original draft preparation, S.S. and T.W.; writing—review and editing, S.S. and T.W.; visualisation, S.S. and T.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
APAAffine Projection Algorithm
ECGElectrocardiogram
FIRFinite Impulse Response
HSAFHammerstein Spline Adaptive Filtering
LMSLeast Mean Square algorithm
LUTLookup Table
MSEMean Squared Error
SAFSpline Adaptive Filtering

References

  1. Lastre-Domínguez, C.; Ibarra-Manzano, O.; Andrade-Lucio, J.A.; Shmaliy, Y.S. Denoising ECG Signals Using Unbiased FIR Smoother and Harmonic State-Space Model. In Proceedings of the IEEE European Signal Processing Conference (EUSIPCO), Amsterdam, The Netherlands, 18–22 January 2021; pp. 1279–1283. [Google Scholar]
  2. Aytha, R.K.; Kumar Vasam, K.; Devandla, P. FPGA Implementation of Transposed FIR Filter for De-Noising ECG Signals. In Proceedings of the IEEE Devices for Integrated Circuit (DevIC), Kalyani, India, 5–6 April 2025; pp. 511–516. [Google Scholar]
  3. Scarpiniti, M.; Comminiello, D.; Parisi, R.; Uncini, A. Novel Cascade Spline Architectures for the Identification of Nonlinear Systems. IEEE Trans. Circuits Syst. I Regul. Pap. 2015, 62, 1825–1835. [Google Scholar] [CrossRef]
  4. Scarpiniti, M.; Comminiello, D.; Parisi, R.; Uncini, A. Hammerstein Uniform Cubic Spline Adaptive Filtering: Learning and Convergence Properties. Signal Process. 2014, 100, 112–123. [Google Scholar] [CrossRef]
  5. Liu, C.; Zhang, Z. Set-Membership Normalised Least M-Estimate Spline Adaptive Filtering Algorithm in Impulsive Noise. Electron. Lett. 2018, 54, 393–395. [Google Scholar] [CrossRef]
  6. Sinova, B.; Van Aelst, S. Tukey’s Biweight Loss Function for Fuzzy Set-Valued M-estimators of Location. In Soft Methods for Data Science; Advances in Intelligent Systems and Computing Series; Springer: Berlin/Heidelberg, Germany, 2017; pp. 447–454. [Google Scholar]
  7. Scarpiniti, M.; Comminiello, D.; Parisi, R.; Uncini, A. Nonlinear Spline Adaptive Filtering. Signal Process. 2013, 93, 772–783. [Google Scholar] [CrossRef]
  8. Liang, H.; Hu, W.; Wang, L.; Gong, K.; Qian, Y.; Li, L. An Improved Spider Wasp Optimizer for UAV Three-Dimensional Path Planning. Biomimetics 2024, 9, 765. [Google Scholar] [CrossRef] [PubMed]
  9. Sun, B.; Lv, Z. Multi-AUV Dynamic Cooperative Path Planning with Hybrid Particle Swarm and Dynamic Window Algorithm in Three-Dimensional Terrain and Ocean Current Environment. Biomimetics 2025, 10, 536. [Google Scholar] [CrossRef] [PubMed]
  10. Yadav, S.; Saha, S.K.; Kar, R. Efficiently Designed Hammerstein Spline Adaptive Filter for Ocular Noise Extraction from EEG Signals. Circuits Syst. Signal Process. 2025, 44, 3466–3489. [Google Scholar] [CrossRef]
  11. Liu, C.; Zhang, Z.; Tang, X. Sign Normalised Hammerstein Spline Adaptive Filtering Algorithm in an Impulsive Noise Environment. Neural Process. Lett. 2019, 50, 477–496. [Google Scholar] [CrossRef]
  12. Van Vaerenbergh, S.; Azpicueta-Ruiz, L.A. Kernel-based Identification of Hammerstein Systems for Nonlinear Acoustic Echo-Cancellation. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Florence, Italy, 4–9 May 2014; pp. 3739–3743. [Google Scholar]
  13. Campo, P.P.; Korpi, D.; Anttila, L.; Valkama, M. Nonlinear Digital Cancellation in Full-Duplex Devices using Spline-based Hammerstein Model. In Proceedings of the IEEE Globecom Workshops (GC-Wkshps), Abu Dhabi, United Arab Emirates, 9–13 December 2018; pp. 1–7. [Google Scholar]
  14. Guan, S.; Cheng, Q.; Zhao, Y.; Biswal, B. Diffusion Adaptive Filtering Algorithm based on the Fair Cost Function. Sci. Rep. 2021, 11, 19715. [Google Scholar] [CrossRef] [PubMed]
  15. Wang, X.; Han, J. Affine Projection Algorithm based on Least Mean Fourth Algorithm for System Identification. IEEE Access 2020, 8, 11930–11938. [Google Scholar] [CrossRef]
  16. Choi, Y.S. Affine Projection Algorithm with Adaptive Error Constraint. Electron. Lett. 2012, 48, 1274–1276. [Google Scholar] [CrossRef]
  17. Lu, L.; Zhu, G.; Yang, X.; Zhou, K.; Liu, X.; Wu, W. Affine Projection Algorithm-Based High-Order Error Power for Partial Discharge Denoising in Power Cables. IEEE Trans. Instrum. Meas. 2020, 69, 1821–1832. [Google Scholar] [CrossRef]
  18. Li, G.; Zhou, X.; Cao, X.; Zhang, H. Variable-Step-Size Efficient Proportionate Affine Projection Sign Algorithms. Electronics 2024, 13, 109. [Google Scholar] [CrossRef]
  19. Chien, Y.R.; Hsieh, H.E.; Qian, G. Robust Bias Compensation LMS Algorithms Under Colored Gaussian Input Noise and Impulse Observation Noise Environments. Mathematics 2025, 13, 3348. [Google Scholar] [CrossRef]
  20. Sitjongsataporn, S. Hammerstein-Spline Aaptive Filtering Architecture based on Gradient Weighted Average Algorithm. In Proceedings of the IEEE International Symposium on Intelligent Signal Processing and Communication Systems (ISPACS), Kaohsiung, Taiwan, 10–13 December 2024; pp. 1–4. [Google Scholar]
  21. Schetzen, M. Nonlinear System Modeling based on the Wiener Theory. Proc. IEEE 1981, 69, 1557–1573. [Google Scholar] [CrossRef]
  22. Jeraj, J.; Mathews, V.J. A Stable Adaptive Hammerstein Filter Employing Partial Orthogonalization of the Input Signals. IEEE Trans. Signal Process. 2006, 54, 1412–1420. [Google Scholar] [CrossRef]
  23. Moody, G.B.; Mark, R.G. A New Method for Detecting Atrial Fibrillation using R-R Intervals. Comput. Cardiol. 1983, 10, 227–230. [Google Scholar]
  24. Goldberger, A.; Amaral, L.; Glass, L.; Hausdor, J.; Ivanov, P.C.; Mark, R.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [PubMed]
  25. Moody, G.; Mark, R. MIT-BIH Atrial Fibrillation Database. 2000. Available online: https://physionet.org/content/afdb/1.0.0/ (accessed on 10 September 2025).
  26. Momot, A. Methods of Weighted Averaging with Application to Biomedical Signals [Internet]. In Applied Biomedical Engineering; InTech: Saitama, Japan, 2011. [Google Scholar] [CrossRef]
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.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.