Abstract
In the traditional time-shifting based phase difference method, considerable errors may be introduced by wrapped phase problem as long as translation coefficient tends to one even in a small-scale turbulence noise. In this paper, an improved frequency estimator is proposed to overcome the problem of wrapped phase by combination of phase difference method and interpolation algorithm. Compared with the traditional method of phase difference based on time-shifting, the improved algorithm can obtain an accurate estimate when translation coefficient exceeds one. Comparative studies were done by means of root-mean-square error over Cramer–Rao lower bound. According to the computer simulations, it is demonstrated that root-mean-square errors can cross Cramer–Rao lower bound if the translation coefficient is properly selected even in the case of the low signal-to-noise ratio, which implies that the proposed algorithm has a strong noise immunity. Finally, the advantage of the proposed algorithm is illustrated for the simulation signal which contained strong local random noise.
Introduction
Phase difference method and interpolation algorithm are two of effective spectrum correction techniques to reduce the bias caused by the non-integer period sampling. 1 The interpolation-based method, in which the frequency error can be corrected by the ratio of a certain number of known discrete Fourier transform (DFT) spectral bins, has the advantage of low computational burden.2–9 Early in 1970s, the interpolation algorithm, based on the modulus of two DFT bins, was proposed by Rife and Vincent. 2 In the following decades, various improved algorithms were presented, such as the multi-point interpolated DFT approach, 3 the weighted interpolation approach.4–6 However, most of the interpolation algorithms were established on the specific window or a cluster of windows. In 2015, Candan 7 proposed a frequency estimator by calculating the correcting factor of window function 7 to break the limit of window choice. At the same time, Luo et al.8,9 investigated the interpolation algorithms for classic windows based on main-lobe fitting technique and zero padding technique. In contrast, the phase difference method is feasible for all kinds of windows and can be implemented conveniently without calculating any parameters in advance. As a result, it is extensively applied to various engineering fields, such as vibration monitoring, 10 fault diagnosis,11–13 coriolis mass flowmeter,14,15 power electronic parameter estimation 16 and so on.
The phase interpolation estimator (PIE) method was firstly proposed by McMahon et al. 17 to estimate the frequency. In 1994, the leakage-induced phase error was researched through analyzing the windowing signal. 18 In 2002, an universal method of phase difference based on time-shifting (PDTS) was presented by Ding and Zhong, 19 in which the translation coefficient was less than or equal to 1. The algorithm proposed by Ding et al. 20 was a special case of PDTS by employing two continuous segment signals. In the light of the translation of the window center, Huang and Xu 21 derived a new phase difference algorithm. Meanwhile, the synthesized phase difference method based on time-domain translation and the changing width of symmetrical window were put forward by Ding et al. In 2007, the estimation error of PDTS in the case of Gauss White noise was analyzed. 23 By considering the effect from negative frequency, an algorithm for low-frequency vibration signal was provided by Zhang and Tu. 24 Recently, McKilliam et al. 25 deduced a phase unwrapping estimator in the least squares sense. In view of utilizing the peak DFT bins of sub-segment from input samples with N points, the phase difference method, which is similar to the PDTS, was derived. 26 Simultaneously, the calculation burden and statistical properties were also investigated. What’s more, Luo et al. made full use of the phase characteristics of asymmetric window and presented a new phase difference method, which can gain precise frequency estimated value only from one signal segment. 1
The time-shifting based phase difference method has many advantages. For example, as translation coefficient increases, the errors caused by random noise or other interference would be reduced, consequently enhancing the estimation accuracy. In particular, the method is also advantageous for sampled signal containing strong local noise. However, once the translation coefficient exceeds one, considerable estimation errors would appear in the case of a large frequency deviation because of wrapped phase problem. In this paper, we focus on this problem and try to establish an improved phase difference algorithm which can still work when the translation coefficient is more than one. The remaining structure of the paper is as follows, in the next section, the theoretical background is illustrated. The derivation of the improved phase difference based on time shifting is then described. The simulations and results can be found in the subsequent section. Finally, some conclusions are summarized in the last section.
Theoretical background
For simplicity but without losing the generality, we consider an exponential signal emerged in random white noise
At this stage, we ignore the noise term in the following part. After multiplying the time-shifting window function
According to the convolution theorem, the DFT coefficients at spectrum line k of equation (3) can be calculated by
Classic interpolation method
Subscribing equation (6) into equation (5) and replacing k by
Similarly, the second highest amplitude can be written as
In two-point interpolation methods, the ratio of two highest amplitude is defined as
In terms of equation (8), the frequency bias can be described as a function of
It can be seen in equation (9) that frequency offset can be solely determined once the window is selected. For the maximum side-lobe decay (MSD) window, the relationship can be simply written as
5
Phase difference method based on time-shifting
Compared with interpolation algorithm, the time-shifting based phase difference method requires two signal frames. The signal with M points delay of equation (1) is expressed as
Similar to equation (3) and equation (5), the DFT coefficients of the weighted time-shifting signal can be described as
After substituting
In equation (13b),
Let us define
For the traditional PDTS, the translation coefficient is less than 1, equation (14) can be further simplified as (see Appendix 1)
As a result, the frequency offset can be expressed as
Finally, the frequency estimate can be calculated by
Derivation of the improved algorithm
It is known from ‘Phase difference method based on time-shifting’ section that the traditional PDTS is built on ignoring the phase ambiguity while translation coefficient is less than 1. However, phase ambiguity is supposed to be taken into account once translation coefficient is equal to or beyond 1. Considering the phase ambiguity and the noise interference on frequency estimator, frequency error corrected by PDTS should be rewritten as (see Appendix 1)
As illustrated in equation (19), the influence of noise term would be reduced and would approach with the increasing translation coefficient, and hence the estimation value would be more precise. However, the number of wrapped phase cannot be known according to translation coefficient in advance, so the effectively corrected range of traditional PDTS would be shrunk as the increasing translation coefficient. To guarantee the feasibility of PDTS using equation (16) while translation coefficient is larger than one, it is necessary to add a correction value of high accuracy which can ensure the residual bias to meet the requirement in equation (32) (Appendix 1). The initial correction value can be achieved in the absence of noise and approximately obtained as much as possible in the presence of noise by the interpolation method (simplified as Selva) proposed in Selva.
29
First of all, we employed, respectively, Selva algorithm to estimate frequency from signal
Replacing m with
At last, the improved PDTS can be summarized as follows:
Two discrete signals Obtain the tappered sequences Estimate the coarse frequency estimates Compute the arithmetic mean by Calculate the phase difference Return the bias by The final frequency estimate is expressed as
Simulations and results
Performance of the improved algorithm without noise
In this section, the comparative study between traditional PDTS and improved PDTS is investigated in the case of noiselessness. For convenience but without losing the generality, the sample rate and the number of samples were set as 256, which implied the frequency resolution was equal to 1. The theoretical frequency and phase were varied from [63.5,64.5] with steps of 0.025 and

Maximum absolute error of frequency versus
Performance of the improved algorithm with random Gaussian noise
To verify the feasibility and robustness of improved algorithm in the case of random noise, following simulations are performed. The exponential signal corrupted by Gauss White noise was generated by equation (1). The ratio of root-mean-square error (RMSE) to Cramér–Rao lower bound (CRLB) was investigated to evaluate the behavior of the improved algorithm. The expressions of RMSE1 and CRLB30 can be calculated by
In equation (23), the SNR is defined as
Maximum translation coefficient
In this subsection, the maximum translation coefficient in the case of different SNRs (dB) is discussed. The theoretical frequency and initial phase were selected randomly in [63.5,64.5] and

Ratio of RMSE to CRLB versus S. (a) Rectangle window (b) Hanning window (c) Hamming window (d) Blackman window.
From the pictures, it should be pointed out that the performance trend is identical with regard to different SNRs when the translation coefficient is less than or equal to 4. In addition, it is obvious for all selected windows that the ratio curve initially declines as we add translation coefficient, then minimum value and starts to go up as the translation coefficient increases except the situation that the SNR =10. The point with maximum translation coefficient and minimum ratio value, which reflects the excellent capability of anti-noise, is different for variable SNR. The reason is that the improved method can only compensate the error caused by wrapped phase problem in certain extend. As the translation coefficient increases, the interference from noise on PDTS is deceased, and the accuracy is remarkably improved. For instance, the minimum ratio can approximately attach to 0.3, while SNR is equal to −5 dB. However, it should be stressed that the interpolation algorithm in Step 3 would suffer obstacle from noise disturbance if a low SNR is encountered. The problem may, in turn, lead to a considerable residual error
However, it is complicated to establish the relationship by theoretical derivation, so we attempt to zoom the simulation parameters to simulate the corresponding relationship between maximum translation coefficient and random noise. The parameters of theoretical frequency and phase were same as above. The SNR was varied from −5 dB to 15 dB with steps of 1 dB, and translation coefficient was varied from 0.25 to 20 with steps of 0.25. Figure 3 describes the ratio of RMSE to CRLB as a function of S and SNR for different windows.

Ratio of RMSE to CRLB versus S and SNR (a) Rectangle window (b) Hanning window (c) Hamming window (d) Blackman window.
It is shown in pictures that the relationship is almost identical for different window techniques, because the capability to resolve the problem of wrapped phase is dependent on the accuracy of the interpolation algorithm. The phenomenon implies that the relationship between S and SNR can be obtained by curve fitting technique through one of selected windows. The result of curve fitting with rectangle window is depicted in Figure 4, and the formula for the relationship is established in equation (25). In Figure 4, it can be seen that the value of line-fitting is a little larger than data when the SNR is in the range of [1 dB,6 dB]. To guarantee the high accuracy with maximum translation coefficient calculated by the fitted expression, the floor function, where floor (·) denotes the nearest integers less than or equal to (·), should be operated. What’s more, it can also be known that the maximum translation coefficient can be attached to 20, while SNR is larger than 10 dB in equation (25), and at this time, the RMSE of improved method can be 0.07 times over CRLB.

Line-fitting curve of S versus SNR.
Influence of frequency deviation
In order to assess the performance of the improved phase difference for changing deviations of frequency, we set theoretical frequency to vary with 0.05 interval in the range of [63.5,64.5] and SNR is equal to −5 dB. Initial phase was randomly selected in

Ratio of RMSE and CRLB versus different deviations (a) Rectangle window (b) Hanning window (c) Hamming window (d) Blackman window.
From these pictures, it can be found that the trend of ratio curves is almost a uniform flat in the whole range of frequency deviations due to the first scheme corrected by interpolation method.
29
The interpolation method can eliminate the effect for wrong location maximum spectral bins when frequency deviation is close to
Algorithm analysis under simulated signal interfered by strong local random noise
In practical process of sampling, it is possible that the signal may be corrupted by strong local noise. In this subsection, the problem is considered to exam the advantages of the improved phase difference algorithm. At first, the Gauss White noise with zero mean was generated with SNR = −15 dB and −25 dB, respectively. In order to simulate well the real environment noise, the Kaiser–Bessel window (

Simulation sampled signal when the additive noise is weighted by Kaiser–Bessel window (
In Figure 7(a) and (b), FN and LN denote the first segment signal and the last segment signal with N points, respectively. The RMSEs of two methods and arithmetic mean of estimation value are comprehensively compared. It can be seen that the RMSEs of Selva method with N points are not related to the FN or LN, and the operation, taking arithmetic mean, can reduce the random error caused by noise. For the two kinds of signal frames, the RMSE of improved algorithm is approximately 0.02 times over Selva (5N) in Figure 7(a). It can be seen in Figure 7(b) that the RMSE even approximately attach to 28, which vertifies the Selva (5N) method has worst behavior due to the wrong location of maximum spectral bin. In contrast, the frequency corrected by the improved method always keeps the privilege than other frequency estimates. Consequently, it can be concluded that the improved PDTS can be a good strategy to achieve the precise estimation of frequency when samples are submerged by strong local random noise.

RMSEs of different estimation values versus deviations when the noise is weighted by Kaiser–Bessel window (
Conclusions
The paper illustrates a frequency estimator by combining the PDTS and interpolation algorithm to estimate frequency. The extensive simulation results verify the effectiveness of the proposed frequency estimator, and the improved method can be applied for several kinds of window functions. As the translation coefficient increases, the capability against random noise becomes stronger; in particular, the ratios of RMSE to CRLB can even approximately attach to 0.35 for different window functions when translation coefficient is equal to 4. For the sake of keeping the balance between maximum translation coefficient and random noise, curve fitting technique is used to obtain the arithmetic relationship. It can be known in equation (25) that the maximum translation coefficient can be 20 if SNR is equal to or larger than 10 dB and high precise estimate can be achieved. What’s more, while the stable samples interfered by strong local noise, which may be generated by sampling environment, the improved algorithm can still achieve high accuracy parameters estimation.
Footnotes
Acknowledgments
The authors would like to thank the anonymous reviewers for their valuable comments and suggestions, and the help is of great significance for improving the quality of the paper. We also want to express our appreciation for the guidance by Dr. J. Luo.
Declaration of Conflicting Interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research was supported by the National Natural Science Foundation of China (Grant Nos. 51705059 and 51605065), Chongqing Municipal Education Commission (Grant No. KJ1600428), also partly supported by the found of Chongqing Science and Technology Committee (No. cstc2017jcyjAX0033).
