Abstract
When there is a relative difference in the delay scale of different frequency component signals input to a variable fractional delay filter, adjusting a certain sub filter parameter alone cannot flexibly adjust the filter group delay, resulting in distortion errors in the signal spectrum at the output of the filter. An optimization design method for dynamically adjustable variable fractional delay filter is proposed for this purpose. It generates the delay response frequency of an ideal variable fraction filter under the Farrow structure. Based on trapezoidal curves, the multi-scale Fourier spectrum interpolation method is used to linearly combine the sub filters in the Farrow structure to reduce group delay distortion errors. Then, it derives the polynomial parameters of the Farrow structure’s sub filters, and optimizes the sub filter parameters uniformly. The method performs real time calculation and updating of adjustable parameters through PID algorithm to optimize and adjust the fractional delay parameters of VFD filters, achieving flexible and adjustable group delay of VFD filters. Through experiments, it has been proven that the VFD filter designed in this paper has low maximum amplitude error, normalized root mean square error, and maximum group delay error. The amplitude frequency response and group delay response can be adjusted flexibly, and it has good application effects.
Introduction
Digital filters have the advantages of fast operation speed, good flexibility, high accuracy, strong anti-interference ability, and easy integration. They have been widely used in fields such as communication, speech and image processing, medical and biological signal processing, and spectral analysis.1,2 In many signal processing applications, such as digital communication, speech coding and synthesis, sample rate conversion, etc., precise delay processing of signals is required. 3 Traditional integer delay filters cannot meet the precise and continuously variable delay requirements, while fractional delay filters can achieve fractional multiple sampling period delays for signals, thus meeting these application requirements. Variable fractional delay (VFD) filter is a type of filter that delays input signals by non-integer multiples of the sampling period, and is considered the first step towards non-uniform sampling discrete-time systems. Unlike traditional filters, VFD filters can flexibly adjust the delay value according to the dynamic changes of the input signal, providing more accurate delay control. They have received widespread attention in modern engineering application scenarios that require strict delay accuracy and real-time performance. For broadband beamforming technology in fields such as radar and communication, VFD filters can provide more suitable variable fractional delay to address aperture effects in arrays and modify antenna beam pointing. For signal simulators of receiver devices in navigation systems, VFD filters can perform precise delay processing in complex weather environments, thereby improving the performance and accuracy of signal processing. 4 In digital communication, precise delay control helps improve signal synchronization and anti-interference ability. In speech processing, it can improve the accuracy and clarity of speech recognition. Therefore, studying the optimization of variable fractional delay filters can promote technological progress and application innovation in these fields.
For the optimization of variable fractional delay filters, Zhou et al. 5 proposes a new sparse optimization Farrow structure variable fractional delay (SFS-VFD) filter to address the aperture effect in broadband arrays. It is mainly based on coefficient (inverse) symmetry and optimizes the number and order of sub filters, greatly reducing the number of non-zero coefficients. And by using a cost function to solve the parameter minimization problem of multiple regularization constraints, combined with the three block alternating direction multiplier method for solving, the aperture effect can be efficiently corrected, enabling the VFD filter to achieve accurate beam pointing. However, when the three alternating direction multipliers used in this method are used for working conditions with a large number of filter orders or sub filters, they cannot effectively adjust the filter coefficients, resulting in significant filtering delay deviation. Zou et al. 6 optimizes the symmetry of VFD filter coefficients by optimizing finite impulse response digital filters. By using the traditional least squares method with asymmetric coefficients to optimize the filter and continuing the calculation on half of the tap coefficients of the total order, the computational resources are reduced. However, in the process of optimizing the symmetry of filter coefficients, this method may need to balance the performance of other sub filters. For example, excessive optimization of coefficient symmetry may cause changes in the frequency response characteristics of filters of different orders, thereby affecting the filtering effect and accuracy of the filter. Wang et al. 7 addresses the issue of requiring a large number of sub filters to be used together in the operation of VFD filters based on the Farrow structure. Through sparse coefficients, the Farrow structure VFD filter is optimized. By using sparse constraint theory, the weight coefficients of the filter are calculated, and the weight coefficient optimization model is improved through L1 regularization under the minimax criterion. The alternating direction multiplier method is further used to iteratively solve the weight coefficients, achieving VFD filter optimization under sparse constraints. However, sparse constraint theory can reduce the number of non-zero coefficients when optimizing filter weight coefficients, but it may also lead to the loss of some important coefficients, thereby affecting the performance of the filter. At the same time, the introduction of L1 regularization enhances the sparsity of the model, but the choice of regularization parameters has a significant impact on the final optimization results. If the parameter selection is improper, it may lead to optimization results deviating from expectations, and even affect the stability and accuracy of the filter. Deng et al. 8 proposed an optimization method for filter delay. By fitting the time-domain phase of the signal with an exponential polynomial, optimize the filter parameters to reduce delay. However, the optimized filter parameters of this method after exponential polynomial fitting were not updated in real-time, resulting in insufficient accuracy of the delay response.
Dynamic adjustability refers to the ability of filter parameters (such as time delay, passband width, etc.) to be adjusted in real-time and continuously as needed, without the necessity to redesign the filter. This feature is crucial for signal processing systems as it allows the system to flexibly adapt to changes in input signals under different conditions. This paper dynamically adjusts the delay parameters to optimize the frequency response and phase characteristics of VFD filters, reducing delay errors caused by changes in input signal frequency and phase.
Dynamic adjustable optimization method for variable fractional delay filter
Delay generation of fractional delay filter based on Farrow structure
In wireless communication environments, signals will reach the receiving end through multiple paths. Due to the varying lengths of different paths, the time delay for signals to reach the receiving end is also different, and these delays will vary with the environment, that is, the delay scale. In order to enable the fractional delay filter to flexibly adapt to the time-varying scale relative differences in the fractional delay of different frequency signals, this paper optimizes the design of a variable fractional delay filter using the Farrow structure. After generating the delay signal using the filter, the required fractional delay is obtained through interpolation techniques. The Farrow structure consists of a set of parallel connected fixed coefficient finite impulse response (FIR) sub filters and an adjustable parameter that provides on-site variable delay. By adjusting this adjustable parameter, the time-varying fractional delay scale can be achieved without changing the filter coefficients, thereby improving the flexibility and efficiency of the filter. The designed Farrow structure allows for changing the delay value without recalculating the filter coefficients, thereby improving the real-time performance and flexibility of the system. 9
The VFD filter designed under the Farrow structure can be transformed into a problem of solving

VFD filter structure based on Farrow structure.
As shown in Figure 1, the Farrow structure consists of multiple parallel FIR filters, each sub filter corresponding to one order of polynomial interpolation. Combine the outputs of the sub filters linearly with polynomial weights to generate the final output signal. Receive the score delay value from external input and dynamically adjust the filter output. In the Farrow structure shown in Figure 1, the ideal time delay response frequency of the variable fraction filter is:
In the formula,
Designing an actual filter requires approximating the ideal frequency response through a transfer function, so it is necessary to calculate the transfer function
In the formula,
In the formula,
Thus, the transfer function
After utilizing the transfer function, we transform formula (4) into the ideal time-delay frequency response
At this point, the delay frequency response
Linear combination of Farrow structured sub filters based on multi-scale Fourier spectrum interpolation
The main framework of the VFD filter designed in the previous text is the Farrow structure, which is composed of multiple direct FIR sub filters. When the VFD filter needs to generate a group of multiple frequency components in the signal, there is a delay. When multiple sub filters with nonlinear phase are used for filtering simultaneously, the parameters can be freely adjusted, which will cause multi-scale group delay errors. Therefore, this method is based on the high and low frequency input signals of the filter. The trapezoidal curve is linearly combined with multiple direct FIR filters through multi-scale Fourier spectrum interpolation using normalized convolution windows, thereby solving the problem of free adjustment error of filter group delay. 4
Using different truncation orders to construct the high and low frequency trapezoidal curve
In the formula,
Correspondingly, if the transmission bandwidth
Using the trapezoidal curve
Among them, the normalized convolution window is the Hanning window
Due to the fact that
If the number of frequency bands
In equation (9), [·] represents rounding to an integer.
The linear combination trapezoidal curve of the Farrow structure sub filter after interpolation processing is shown in Figure 2.

Step curve.
In Figure 2,
Induction and unified optimization of linear combination polynomial parameters for sub filters
Although the Farrow structure’s linear combination of sub filters effectively reduced group delay bias in the previous section, it did not take into account that each sub filter in the VFD filter has different filtering weights, and there are differences in the amplitude and frequency of the input signal for each sub filter. If the linear combination interpolation result of filter delay is directly applied, it cannot respond to spectral changes and instead increases delay errors. The delay scale of the VFD filter in the Farrow structure is controlled by the filtering parameters. Therefore, based on the weights, polynomial filtering parameters that integrate sub and uniformly optimized to enhance the flexibility of the delay response and reduce delay deviation. Specifically, in the design process of Farrow structured VFD filters, the first step is to calculate the filtering parameters of each small filter based on the interpolation or extraction ratio.12,13 Then, Taylor expansion is performed on the transfer function in two scenarios to derive the sub filter coefficients of the Farrow structure. The sub filter coefficients are unified to complete the sub filter coefficient configuration of the Farrow structure. On the basis of representing the coefficients of the filter in polynomial form with adjustable parameters, the output calculation of the VFD filter is determined. These coefficients determine the weight of each small filter in the filtering process, thereby affecting the final filtering effect. Therefore, the design of VFD filters can be transformed into a problem of optimizing the coefficients of multiple sub filters in the Farrow structure. 14
In order to obtain the filtering parameter
Specifically, excluding the boundary points
1. Scenario 1:
Base on formula (10), the form of the sub filter parameter
Furthermore, the expression of the derivatives of each order in formula (11) can be derived as follows:
By combining formulas (11) and (12), the coefficients of the sub filters can be summarized and unified. The calculation formula is:
2. Scenario 2:
According to the same logic as in situation 1, the polynomial parameters of the sub filter can be summarized and optimized uniformly. The calculation formula is:
Dynamic adjustable control of polynomial parameters for VFD filter based on PID algorithm
As can be seen from the previous section, the control mechanism of adjustable parameter
On the basis of representing the coefficients of the filter in polynomial form with adjustable parameters, the output calculation of the VFD filter is determined using the following formula:
In the formula,
Using a PID controller to update adjustable parameters in real-time, the formula is as follows:
In the formula,
The steps for implementing dynamic adjustability of VFD filters through PID algorithm are as follows:
Determine filter parameters: Select appropriate filter order
Initialize filter coefficients: Perform Taylor series expansion on the transfer function.
Real time calculation error: During the operation of the filter, the error between the actual delay and the target delay is calculated in real time.
Update adjustable parameter
Update filter coefficients: Substitute the new adjustable parameter value
Output filter signal: Use the updated filter coefficients to calculate and output the signal of the VFD filter.
By designing a reasonable control mechanism for adjustable parameter value

Optimization flowchart of variable fractional delay filter.
Experimental analysis
Experimental setup
To verify the application performance of the dynamically adjustable VFD filter designed in this paper, a simulation example is designed for comparative verification. Compare the performance of the VFD filter designed in this paper with the VFD filter designed based on least squares method (Wang et al. 7 ) and the VFD filter designed based on sparse constraints (Zou et al. 6 ).
In this paper we use FPGA integrated chip data as the input signal source for the filter, and the experimental scenario is shown in Figure 4.

Experimental scenario of FPGA integrated chip filtering.
The simulation experiment of Farrow filter was conducted using Matlab + Modelsim joint simulation method. The testing and verification mainly include the generation of test data, sub filter coefficients, digital prototype (STM 32F103CBT6), excitation file testbench (MTC – 3000), Farrow filter, etc. The testing and verification process is shown in Figure 5.

Testing and verification process.
The introduction of each module is as follows: the test data generation module is used to generate the required test data; the sub filter coefficient generation module is used to generate Farrow filter parameters; the digital prototype module is used to calculate theoretical filtering results and automatically compare them with simulation results; the incentive file testbench module is used to generate driver files for Modelsim simulation; the Farrow filter module is the FPGA engineering file to be tested.
Set the order
Experimental results and analysis
Test of delay generation effect of fractional delay filter
The input test data for the FPGA integrated chip is a set of sine wave signals, and the filter parameters are generated using the Lagrange interpolation method. The delay results of the Farrow structure filter group generated in this paper are plotted using Matlab, as shown in Figure 6.

Farrow structure filter group delay.
As shown in Figure 6, this paper uses multiple sub filters with Farrow structure to effectively generate filtering delay results for different frequency and amplitude signals with delay scales d of 0–0.9, without delay overlap, and the delay generation effect is good.
Unified optimization effect of linear combination polynomial parameters induction for sub filters
Use the maximum amplitude error
1. The maximum amplitude error refers to the maximum difference between the output signal of the filter and the expected output signal, which reflects the maximum degree of distortion that the filter may produce when processing the signal. By evaluating the maximum amplitude error, it can be ensured that the filter will not produce excessive delay distortion when optimizing the parameters of the sub filter linear combination polynomial, thereby meeting the performance requirements of the system. The calculation formula is as follows:
2. Normalized root mean square error is a statistical indicator used to measure the difference between the output signal of a filter and the expected output signal. It can be obtained by calculating the square root of the average sum of squares of the difference between the output signal of the filter and the expected output signal, and normalizing it. MSE has a high sensitivity to errors, which can comprehensively reflect the performance of the filter in the entire signal processing process, and also reflect the small distortion of the filter in signal processing. The calculation formula is as follows:
3. The maximum group delay error refers to the difference between the maximum group delay generated by the filter during signal processing and the expected group delay. By evaluating the maximum group delay error, it can ensure that the filter does not produce excessive phase distortion during signal processing, thereby meeting the phase response requirements of the system. The calculation formula is as follows:
The performance comparison of VFD filters designed by three algorithms,
Comparison of error accuracy of different filters (dB).
Based on Table 1, it can be found that when the filtering parameters
Dynamic response adjustable control effect of VFD filter polynomial parameters
We use amplitude frequency response and group delay response, respectively, to verify the dynamic response adjustable control capability of the filter.
The amplitude frequency response describes the attenuation or gain of signal amplitude by a filter at different frequencies, and can intuitively reflect the processing effect of the filter on signal frequency components. By testing the amplitude frequency response, we can understand the degree of attenuation of harmonics and noise by the filter at different frequencies, thereby verifying its adjustable filtering delay effect.
Group delay refers to the relative delay difference introduced by a filter to signals of different frequency components, reflecting the distortion of the signal spectrum by the filter. Especially for nonlinear phase filters, the group delay effect is more pronounced. The testing of group delay response can evaluate the impact of filters on signal delay, thereby understanding their performance in practical applications. The group delay response test helps ensure that the VFD filter does not introduce excessive delay while filtering out harmonics and noise, thereby maintaining the real-time and accuracy of the signal.
The comparison of amplitude frequency response and group delay response of different methods is shown in Figures 7 and 8, respectively.

Comparison of amplitude frequency response of different methods.

Comparison of group delay response using different methods.
From the comprehensive analysis of Figures 7 and 8, it can be seen that the method proposed in this paper has a flatter curve at low frequencies, performs better than the VFD filter designed based on the least squares method at high frequencies, and performs better than the VFD filter designed based on sparse constraints at all frequency bands. This is because the VFD filter designed in this paper uses a PID controller to update adjustable parameters based on the frequency band of the input signal, thereby achieving free adjustment of the filter group delay, enabling the delay results to maintain high accuracy at both high and low frequencies.
Conclusion
VFD filters play an important role in the field of signal processing, and their accuracy and response speed have a significant impact on the overall performance of the system. With the continuous development of technology, the performance requirements for VFD filters are also constantly increasing. Therefore, this paper focuses on optimizing the dynamic adjustable performance of variable fractional delay filters. In experimental verification, it was found that the designed VFD filter exhibited low error levels in terms of maximum amplitude error, normalized root mean square error, and maximum group delay error. At the same time, its performance in amplitude frequency response and group delay response was also good. This indicates that the design ideas and methods are effective and can provide better performance guarantees for the application of VFD filters.
With the continuous development of signal processing technology and the expansion of application fields, future research needs to continue to delve into the optimization design methods of VFD filters, explore more efficient and accurate algorithms and models to meet the needs of different application scenarios.
Footnotes
Funding
The authors received no financial support for the research, authorship, and/or publication of this article.
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Informed consent/Patient consent
Not applicable.
Trial registration number/date
Not applicable.
Ethical Statement
There are no conflicts of interest in this study.
Data availability statement
The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.
Author contribution
All authors contributed to the study conception and design. Material preparation, data collection and analysis were performed by Hai Feng Zheng. The first draft of the manuscript was written by Li Ying Han, and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.
