Two Mirroring And Interpolating Methods To Estimate Peak Position For Symmetric Signals With Single Peak
Abstract
Signals with single peak and symmetry property are very common in various fields, such as probability density function of normal distribution. Among the information contained in such signals, peak position is the most important, sometimes even the only parameter concerned. Current methods for peak position estimation are always with low precision and bad noise resistance, perform badly for sparse spectrum. This manuscript proposes two new algorithms that take advantage of symmetry property, conduct mirroring and interpolating operations to condense signal spectrum. From tests done in this paper, these two algorithms indicate outstanding advantages compared with current methods.
Index Terms:
mirroring and interpolating methods, peak position estimation, symmetry, single peak signalI Introduction
Symmetric signals with single peak are widely observed in many fields. They can model amounts of phenomena, such as the distribution of white noise and reflective spectrum of a fiber Bragg grating (FBG) sensor [1]. Due to their frequent appearance, the estimation for relevant parameters is urgently required and of great meaning. Several typical parameters are peak amplitude, peak position, and bandwidth. Among them, peak position is the most important, since sometimes it is difficult to determine the type of target signals, or unavoidable disturbances induce distortion to the original well-shaped waveform [2, 3], while just symmetry is confirmed or remained. Thus peak position is the only meaningful parameter. However, current methods either focus on some specific signals and extract full parameters, like Caruana’s method and Guo’s method for Gaussian functions [4, 5]; or fail to make full use of symmetry, thus feature with low precision and weak noise resistance, such as the centroid method [6].
Currently, several methods have been applied to estimate only peak position, mainly including the centroid method [6], polynomial fitting method [7], and spline fitting method [8]. Centroid method just calculates the gravity of the selected spectrum. Polynomial fitting method views the spectrum as a polynomial function, such that the accuracy is limited. While the last algorithm uses a cubic spline to do the fitting instead, thus with better performance compared with the polynomial fitting method. Also, there are some other intelligent algorithms [9, 10, 11], such as the ant colony algorithm [9], used to achieve the same purpose, but whose time cost is always too high.
This paper introduces two novel methods tended to detect the peak position for such symmetric signal with single peak. They are both basically iterative, consequently, high accuracy can be achieved. These two algorithms apply mirroring and interpolating operations to the original spectrum based on symmetry property, aiming to introduce more available samples, thus improve resistance to the noise effect. Since by nature such methods can provide a denser spectrum, they especially show good performance in processing sparse signals from our tests.
II Proposed new algorithms
In some situations, for example, in temperature or strain measurement using FBG sensors, the peak position of the Gaussian-shaped spectrum is the only parameter focused on. Furthermore, in fact, due to fluctuation of source and micro interference like fiber bending, the received FBG spectrum has an imperfect Gaussian profile [3], but only symmetry property maintains. It is improper to use those methods designed to fetch complete parameters like Caruana’s method. So, it will be beneficial to develop a method to derive individual peak position without involving other parameters.
Currently, the centroid method is the most commonly used to solve this problem directly, as described in (1).
(1) |
and are the amplitude and position of the received sample, respectively. Despite simpleness in the calculation, there are some fatal drawbacks in processing such signals. One is the dilemma in the selection of points. To maintain more information from the original signal, collecting more samples spreading from the peak sounds a good idea, but meanwhile, noise problem emerges since noise would exert more effect on points with low amplitude, and vice versa. Also, it features low precision and stability as the variation of sampling rate and noise. Besides the centroid method, all other methods mentioned before have some common issues, which are the neglect of symmetry and suffering from the sparseness of the spectrum.
To overcome such disadvantages, we invented two novel algorithms so-called "Mirroring and Interpolating Methods". The newly proposed algorithms take advantage of signal symmetry, conduct interpolation to condense the spectrum, then iterate to achieve high precision. Based on such thought, we introduced two ways to get peak position only. One is similar with the centroid method while using the new spectrum obtained after mirroring and interpolating. The second one is based on the "Least Square Method (LSM)", aiming to minimize the squared error between the interpolating points and corresponding mirroring points.
First of all, a criterion for sample selection must be defined. To balance between symmetry and noise effect, acting like a band-pass filter, points are chosen bidirectionally starting from the peak position, until their amplitude lower than a defined threshold. Then filtered spectrum is sent to the next step for further processing.
II-A Mirroring and Interpolating Method of Type I
The main procedure of the first new algorithm can be divided into four steps:
Step 1. In the iteration, for every sample , find the corresponding symmetric with respect to the peak position , that is
(2) |
Step 2. Find the interval location for each , which means to search an interval such that . Then do the interpolation for with two end points and to obtain .
Step 3. Build the new spectrum, that is to gather both original samples and interpolating points . Subsequently, calculate the peak position using the centroid method for such new spectrum
(3) |
Step 4. Compare and . If is lower than defined threshold value, stop iteration; else back to Step 1.
The initial value can be set to the peak position of the original spectrum. About the interpolation, either linear or nonlinear is feasible. In fact, at step 2, there may be some point of this set which will not locate in this range and thus can not be interpolated. For this condition, we just generate the respective symmetric point without interpolation instead, shown as the blue point rightmost in Fig. 1. Its following procedures are performed the same as normal points.
Taking advantage of signal symmetry, this method uses mirroring and interpolating operations to condense the spectrum, thus introduces more useful points and improves the peak estimation performance.

II-B Mirroring and Interpolating Method of Type II
This algorithm is designed to derive the peak position by minimizing the difference between mirroring points and interpolating points. The basic idea is that, since the spectrum is symmetric, the points generated by mirroring each original sample with respect to the true symmetric axis located at the peak position will perfectly belong to the spectrum. However, because the true and complete spectrum is unknown, we can do interpolation for the original samples to approximate the mirroring points. Therefore, the condensing operations for the spectrum branches – one mirroring, and the other interpolating. Since for each time of mirroring, the symmetric axis is the current peak position, not the unknown true one, obviously, these two spectra would be different, shown as in Fig. 2. Consequently, our target is to find such a peak position that can minimize the square sum of difference, which comes to a common and easy problem.

Without loss of generality and for convenience to obtain the explicit form, we use linear interpolation here, and note and as mirroring point and interpolating point of respectively. In fact, is equal to , is the same as . Note this square sum of difference as S, that is
(4) |
As mentioned in step 2 of "Mirroring and Interpolating Method of Type I" and taking linear interpolation as example, we can rewrite using the two neighbor end points and , that is
(5) |
Since the original spectrum is uniform sampled, thus is constant, noted as . Furthermore, can be expressed as , is the peak position, then (5) is shown as
(6) |
Then (4) also is transferred into
(7) |
Optimizing this problem by setting the differential of with respect to to zero, and the solution of such equation comes to
(8) |
However, we can not obtain directly from (8) as the interval location corresponding to is dependent on the previous peak position. Therefore, this algorithm is also iterative by nature. Its iteration procedure is described as following:
Step 1. In iteration, for point mirrored by every with respect to peak position , noted as , find the interval such that is contained in.
Step 2. Calculate the peak position using (8) based on obtained information from Step 1.
Step 3. Define stop criterion for the iteration. That is firstly to compare the difference between consecutive two results, and . Then depending on the difference, end the iteration if it is lower than the threshold, otherwise back to Step 1.
In practice, occasionally, especially in a high power noise environment, the iteration would not converge but oscillate between two final values. In such a case, we can terminate the iteration by setting a limit value for the iteration number.
For these two new algorithms, besides the symmetry, prior information about other characters of the target signal is not mandatory. This advantage would largely broaden their applications in fitting symmetric functions. In addition, the algorithms are iterative, implying a potential high accuracy. Moreover, due to the interpolating operation in both two algorithms, a denser spectrum is formed, which indicates lower noise susceptibility. This effect is rather beneficial to the fitting of a signal with a sparse spectrum or low sampling rate. Also, they are low time cost, proper for real-time processing.
III Simulation and comparison
In this section, we do simulation for three algorithms mentioned above, which are the centroid method and two types of mirroring and interpolating methods, since the three are all simple, general, and direct. The performance of these algorithms under different noise levels has been studied. To verify the capability of analyzing sparse spectrum, tests have been repeated at several sampling rates. Finally, the sample selection criterion would be modified, aiming to search the optimal set-up for the threshold value.
Firstly, to evaluate the sensitivity to noise, without loss of generality, we select a Gaussian function as an example, with amplitude , peak position , and standard deviation . The sampling rate is set to 10, signal interval ranges from 0 to 10 in this test. A white noise with zero mean value is added. Its noise level is assigned with several values, from 0.2, 0.15, 0.1, 0.05, 0.025, 0.01 to 0.005, corresponding SNR equal to 14dB, 16.5dB, 20dB, 26dB, 32dB, 40dB and 46dB. Empirically, is chosen as the sample amplitude threshold as a compromise, such that about 10 points are selected. Finally, the experiment would be repeated 5000 times under each noisy environment. The results of mean value and variance are analyzed.

From both current and following tests, it is observed that the bias from the true value of all three methods is very small, always several orders lower than that of standard deviation. Precision value dominates the peak detection quality, so only the result of precision has been illustrated in this paper.
In Fig. 3, it can be found that two mirroring and interpolating methods show significant higher precision in peak position estimation compared with the centroid method, especially at the low noise level. For example, at SNR=46dB, the standard deviation of the centroid method is nearly tripled compared with that of the novel method of type II. The new algorithms perform similarly under low SNR conditions, while type II works better at high SNR.
The sampling rate also affects the peak detection quality, since it determines the density of the spectrum. A denser spectrum will decrease the fluctuation induced by noise since it introduces more samples. Experiments designed to investigate the influence of sampling rate have been repeated 5000 times under each sampling condition. The tested signal is also a Gaussian function with the same parameters as before. While the white noise level is fixed at 0.025, half of such value is set as the sample filtering threshold. The sampling rate has been tuned from 3 to 10, 1 at each step, the corresponding precision is shown in Fig. 4.
From the results in Fig. 4, the proposed two new methods perform much better than the centroid method. Among them, the new method of type II is outstanding at all sampling rates. The centroid method is the most sensitive to the sampling rate, as predicted before. However, the other two show high resistance to decreasing of sampling rate, which implies that the mirroring and interpolating approach works. As a consequence, they are very appropriate for processing signals with a sparse spectrum.

About the spectrum determination, after knowing the peak location, a common filtering procedure would be executed to its nearby samples. By moving forward and backward, samples with an amplitude higher than the threshold would be gathered to form the spectrum used for the following analysis. In such an approach, the determination of the threshold value is very important. It decides the quality of the spectrum used to process. A small threshold would let more samples with lower amplitude in, help to maintain symmetry, and suppress the noise disturbance. However, meanwhile, these samples of low power are badly affected by noise thus not correct, so it also would lower the quality of the spectrum. High threshold behaves contrarily. So there would be a trad-off for the setup of spectrum determination threshold.
A test concerning the effect of such parameter has been carried out. Such threshold value is modified from 0.1 to 3.5 with SNR fixed at 20dB. Then using the same Gaussian function, peak position estimations applying the three methods have been implemented, corresponding results are exhibited in Fig. 5. Again, precision decides the peak detection performance, accuracy comparison has been omitted.
In Fig. 5, it is interesting that there is an optimal threshold value for all the three methods for the Gaussian signal case, though less significant for the new methods. Such optimal value is about 2 for the centroid method, for type I and II. From the results shown here, it can be concluded that, in general, owing to the mirroring and interpolating operation, the two novel methods provide not only a higher resistance to the introduction of points with low amplitude, but also a wider working range, which bring much convenience for real applications.
In additional, during the above simulations, the convergence for these two new methods are fast, commonly less than 10 times of iteration is required to achieve a precise result. By their nature, signal symmetry is fully and only explored. Therefore, though all tests taking a Gaussian signal as an example, naturally, these innovative methods can handle well the peak estimation issue for different types of symmetric signals with single peak, not limited to the Gaussian model.

IV Conclusion and Discussion
In this paper, two novel types of mirroring and interpolating methods have been proposed to evaluate only peak position for symmetric signals with single peak. They take advantage of the symmetry of target functions, increase spectrum density by mirroring and interpolating approach, then iterate to achieve higher precision.
Type I works more like the centroid method, just calculates centroid for the new spectrum. While type II utilizes LSM to minimize the sum of the difference between interpolating points and mirroring points. The core idea of these two methods is to condense the spectrum to increase the resistance of noise interference and lower the fluctuation of the result by mirroring and interpolating operations.
Compared with the centroid method, such two innovative algorithms show outstanding merits, including much higher precision and less sensitivity to the sampling rate. These two methods are rather useful when precision and robustness are required but no further information about the target signal is given excluding symmetry. Moreover, the two types of such algorithms show less susceptibility to the low spectrum threshold and also broaden the proper working range, which means we can ease the worrying about the issue of sample selection. They are both direct, simple, and iterative in nature, also with fast convergence. Due to the condensing operation, they work well in processing sparse spectrum or when high sampling rate is unavailable.
References
- [1] C. C. Chan, W. Jin, and M. S. Demokan, “Enhancement of measurement accuracy in fiber bragg grating sensors by using digital signal processing,” Optics & Laser Technology, vol. 31, no. 4, pp. 299–307, 1998.
- [2] L. Zhao, Q. Zheng, J. Geng, and Z. Fang, “Effect of friction in ferrules on compression tuning characteristics of fiber bragg gratings,” Optics & Laser Technology, vol. 35, no. 7, pp. 559–562, 2003.
- [3] X. W. A, D. Z. A, Y. Q. B, J. L. A, and N. F. A, “Improving the peak wavelength detection accuracy of sn-doped, h 2 -loaded fbg high temperature sensors by wavelet filter and gaussian curve fitting,” Sensors and Actuators A: Physical, vol. 174, no. 1, pp. 91–95, 2012.
- [4] R. A. Caruana, R. B. Searle, T. Heller, and S. I. Shupack, “Fast algorithm for the resolution of spectra,” Analytical Chemistry, vol. 58, no. 6, 1986.
- [5] H. Guo, “A simple algorithm for fitting a gaussian function [dsp tips and tricks],” IEEE Signal Processing Magazine, vol. 28, no. 5, pp. 134–137, 2011.
- [6] A. Othonos, Fiber Bragg Gratings: Fundamentals and Applications in Telecommunications and Sensing. Artech House, 1999.
- [7] L. Negri, A. Nied, H. Kalinowski, and A. Paterno, “Benchmark for peak detection algorithms in fiber bragg grating interrogation and a new neural network for its performance improvement,” Sensors, vol. 11, no. 4, pp. 3466–3482, 2011.
- [8] N. LI, D. WANG, Y. WANG, Q. BAI, H. ZHOU, and B. JIN, “Research on influence of curve fitting algorithm on demodulation performance of fiber bragg grating sensor,” Chinese Journal of Sensors and Actuators, vol. 5, no. 32, pp. 711–714, 2019.
- [9] W. Fei, “Application of ant colony algorithm in analyzing of traverse uniform strain reflective spectrum of fiber bragg grating,” Chinese Journal of Lasers, vol. 37, no. 2, pp. 477–483, 2010.
- [10] J. J. Liang, C. C. Chan, V. L. Huang, and P. N. Suganthan, “Improving the performance of a fbg sensor network using a novel dynamic multi-swarm particle swarm optimizer,” Proceedings of SPIE - The International Society for Optical Engineering, vol. 1, no. 8, pp. 373–378, 2005.
- [11] A. D. Melnikov, Y. P. Tsentalovich, and V. V. Yanshole, “Deep learning for the precise peak detection in high-resolution lc-ms data,” Analytical Chemistry, vol. 92, no. XXX, pp. 588–592, 2019.