Keywords

1 Introduction

Fiber Bragg Grating (FBG), as a wavelength modulated sensor, reflects the changes of measured physical quantities by wavelength modulation of the sensing signal [1]. Its central wavelength can be used to measure parameters such as strain [2], temperature [3], pressure [4], humidity [5], vibration [6], viscosity [7], etc. But in practical applications, the FBG center wavelength is obtained by the corresponding peak-seek method, so the detection accuracy of FBG sensor networks is closely related to the peak-seek accuracy of its demodulation algorithm.

Commonly used peak-seek algorithms include direct peak-seek algorithm, power weighted peak-seek algorithm, general polynomial fitting, and Gaussian fitting algorithm, etc. Among which Gaussian fitting algorithm has the advantages of good noise immunity and small error, and the related improved algorithm is also the most. Hu et al. [7] optimized the fitting coefficients of Gauss curve by LM algorithm, which reduced the peak-seek error of FBG demodulation algorithm effectively; Jiang et al. [8] proposed a Weighted Least Squares fitting combined with Asymmetric Gauss correction (WLS-AG) algorithm to achieve high precision peak-seek for the sampled ultra weak fiber Bragg gratings with interference noise; Zhai and Li [9] designed a Gauss curve fitting method (WTG) based on the Wavelets Transform to improve the demodulation accuracy at low sampling rates. Djurhuus et al. [10] proposed a signal processing method for FBG temperature measurements based on the machine learning tool Gauss Process Regression (GPR). Experiments show that the method has lower error and higher detection accuracy.

However, when the FBG reflected light signal has low power, low signal-to-noise ratio, and multiple peaks, traditional demodulation algorithms suffer from low accuracy, poor noise resistance, and false peak detection. This paper combines Hilbert transform with Gauss fitting algorithm to achieve multi peak detection, while reducing the amount of demodulation algorithm operations and improving the demodulation accuracy.

2 Principles of Tunable F-P Filter Demodulation System

The tunable F-P filter demodulation method has the advantages of high accuracy, wide demodulation range, and the ability to achieve multiplexing of large-scale FBG sensor networks. The principle of tunable F-P filter demodulation technology based on F-P etalon is shown in Fig. 1, where the function of F-P etalon is to perform nonlinear calibration on tunable F-P filter.

Fig. 1
A block diagram is depicted. A S E leads to a tunable F P filter, followed by a 3-decibel coupler, circulator, and F B G. The 3-decibel coupler and circulator lead to data collection and processing module through Fabry-Perot Etalon followed by P D 1 and P D 2, respectively.

Schematic diagram of tunable F-P filter demodulation principle based on F-P etalon

A broad-band optical signal from ASE broadband light source enters Tunable F-P Filter, which is controlled by Drive circuit to transmit narrow-band optical signals with different central wavelengths. The narrow-band optical signal enters the F-P Etalon one way through a 3 dB Coupler, its transmitted signal is detected by PD1, the other way through Circulator into the FBG, and the reflected optical signal is detected by PD2 when the narrow-band light transmitted by the Tunable F-P Filter meets the FBG Bragg condition. After the Data collection and Processing module, the peak-seek algorithm, curve fitting and other data processing are completed in the computer, thus wavelength demodulation of FBG is achieved.

3 Research on FBG Demodulation Algorithms

The overall flow of the center wavelength demodulation algorithm in this article is shown in Fig. 2.

Fig. 2
A flow diagram starts with read data, followed by a digital low-pass filter, Hilbert transform, regional division, peak confirmation, and wavelength demodulation. Hilbert transform, regional division, and peak confirmation are categorized under the peak seek algorithm.

FBG demodulation algorithm flow

First read the two signals from the FBG and F-P Etalon, the second is digital low-pass filtering is performed to complete data pre-processing, the next is to confirm the peak position of the two signals using the peak-seek algorithm designed in this paper, finally, the FBG center wavelength is demodulated using a linear interpolation algorithm.

3.1 Digital Low-Pass Filter Processing

First, digital low-pass filtering is performed on the acquired raw data to filter out part of the high-frequency noise introduced during the acquisition. Digital filters are divided into Finite Impulse Response Filter (FIR) and Infinite Impulse Response Filter (IIR), the differences between which are shown in Table 1. In order to reduce the loss of information as much as possible, FIR digital filters are used to process the data.

Table 1 Performance comparison of FIR and IIR filters

The raw data are the FBG reflection spectrum and the F-P etalon transmission spectrum, where all the sampling points in one scan period of the drive circuit are selected as the raw data. The time-domain waveform of the FBG raw data is shown in Fig. 3a.

Fig. 3
Two frequency graphs of amplitude versus samples plot a frequency with two peaks near sample 2 times 10 superscript 4 and slightly beyond sample 3 times 10 superscript 4. The 2 inset graphs represent the close-up views of the peaks.

a FBG reflectance spectrum raw data. b FBG digital filtered output

The two peak signals in Fig. 3a correspond to the two FBG reflection spectra of the up and down travel of the tuned F-P filter driving voltage delta wave, respectively, and are evident from local amplification at the upper right corner, with some high-frequency noise in the original signal. Using the digital filter module in the Matlab toolbox, a low-pass filter with a cutoff frequency of 1 kHz was designed using a Hamming window, and the results are shown in Fig. 3b, where it can be found that the higher order harmonics near the FBG peak are filtered out, which will aid in the next step of the peak-seek algorithm processing. The same treatment was applied to the F-P etalon transmission spectrum, and the results are shown in Fig. 4.

Fig. 4
Two frequency graphs a and b of amplitude versus samples plot oscillating waves. Two inset graphs for graphs a and b depict peaks at samples of 4.614 times 10 superscript 4 and 4.58 times 10 superscript 4, respectively. Values are estimated.

a F-P etalon transmission spectrum raw data. b F-P etalon digital filtered output

3.2 Peak-Seek Algorithm Design

The peak-seek algorithm is to confirm that the optical signals of the F-P etalon and FBG are scanned by a tunable F-P filter, and the peak position of the electrical signal after the optoelectronic conversion, with the peak value of each electrical signal corresponding to the central wavelength value of the optical signal. There are four commonly used peak-seek algorithms: direct peak-seek algorithm, power weighted peak-seek algorithm, general polynomial fitting, and Gaussian fitting algorithm.

The characteristics of various commonly used algorithms are shown in Table 2.

Table 2 Comparison of common peak-seek algorithms

From the table, it can be seen that the Gaussian fitting algorithm has high peak finding accuracy and strong anti noise performance, so there are also the most improved algorithms based on the Gaussian algorithm (such as the Gaussian polynomial fitting algorithm). In order to reduce the calculation amount of the Gaussian fitting algorithm and adapt to the characteristic that the transmission spectrum of the F-P etalon contains multiple peak signals, this paper combines the Hilbert transform with the Gaussian fitting algorithm to complete the determination of the peak signal.

  1. (1)

    Hilbert transform

The function of Hilbert transform is to realize the predetermined bit and region segmentation of the peak value of the signal after low-pass filtering denoising, which can not only reduce the data volume of Gaussian fitting algorithm, but also eliminate the interference of other components in the signal to the fitting. Hilbert transform of time domain signal x(t) can be expressed as:

$$ \hat{x}\left( t \right) = H\left[ {x\left( t \right)} \right] = \frac{1}{{\uppi }}\int\limits_{ - \infty }^{ + \infty } {x\left( \tau \right)\frac{1}{t - \tau }d\tau } $$
(1)

where x(t) and \(\hat{x}(t)\) are linear, and Hilbert transform can be expressed in convolution form:

$$ \hat{x}\left( t \right) = H\left[ {x\left( t \right)} \right] = x\left( t \right) * \frac{1}{{{\uppi }t}} $$
(2)

Thus, the complexity of calculation \(\hat{x}(t)\) is reduced. As shown in Fig. 5, Hilbert transform is performed on the filtered FBG reflection spectrum and F-P etalon transmission spectrum.

Fig. 5
Two frequency graphs of amplitude versus samples. The left graph plots trends for F B G digital filtered output and Hilbert transform output. The right graph plots oscillating trends for F-P etalon output and Hilbert transform output.

Hilbert transform of FBG data and F-P etalon data

The signal peak after low-pass filtering is located between the two poles after Hilbert transform, so the sampling point interval corresponding to the two adjacent positive and negative poles can be used as the initial estimation of the peak position and peak interval. Compared with the constant threshold partition, Hilbert transform can overcome the problem of false peak detection caused by side lobe or peak distortion.

  1. (2)

    Gaussian fitting algorithm

Assuming the sampling data is \((x_{i} ,y_{i} )(i = 1,2, \ldots )\), the Gaussian fitting algorithm can be represented by Eq. (3):

$$ y_{i} = y_{\max } \times \exp \left[ { - \left( {\frac{{x_{i} - x_{\max } }}{\sigma }} \right)^{2} } \right] $$
(3)

In the formula, ymax, xmax, and σ are the peak values of the sampled data, the sampling points corresponding to the peak values, and the 3 dB bandwidth. For

$$ z_{i} = {\text{In}}y_{i} ,\,\,b_{0} = {\text{In}}y_{\max } - \frac{{x_{\max }^{2} }}{{\sigma^{2} }},\,\,b_{1} = \frac{{2x_{\max } }}{{\sigma^{2} }},\,\,b_{2} = - \frac{1}{{\sigma^{2} }} $$

then Eq. (3) can be simplified as:

$$ z_{i} = b_{0} + b_{1} x_{i} + b_{2} x_{i}^{2} $$
(4)

Substitute all data into Eq. (4), which can be expressed as Z = XB by matrix, Expand to:

$$ \left[ {\begin{array}{*{20}c} {z_{1} } \\ {z_{2} } \\ \vdots \\ {z_{n} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} \begin{gathered} 1 \hfill \\ 1 \hfill \\ \vdots \hfill \\ 1 \hfill \\ \end{gathered} & \begin{gathered} x_{1} \hfill \\ x_{2} \hfill \\ \vdots \hfill \\ x_{n} \hfill \\ \end{gathered} & \begin{gathered} x_{1}^{2} \hfill \\ x_{2}^{2} \hfill \\ \vdots \hfill \\ x_{n}^{2} \hfill \\ \end{gathered} \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {b_{0} } \\ {b_{1} } \\ {b_{2} } \\ \end{array} } \right] $$
(5)

The least square solution of matrix B can be calculated by the least square principle

$$ B = \left( {X^{T} X} \right)^{ - 1} X^{T} Z $$
(6)

Through the above analysis, the peak position can be expressed as:

$$ x_{\max } = - \frac{{b_{1} }}{{2b_{2} }} $$
(7)

Gaussian fitting curves can accurately calculate the center wavelength position. Due to its good mean square error, strong stability, and excellent noise resistance, it can effectively fit the spectral data of FBG and F-P etalon. The Gaussian fitting results are shown in Fig. 6.

Fig. 6
Two scatterplots a and b of amplitude versus samples depict dots for F B G data and F P etalon data along with a line for Gaussian fit, respectively. Plots a and b make a parabolic curve with the highest amplitudes of around 0.23 and 0.38 volts, respectively.

Gaussian fitting of FBG data and F-P etalon data after threshold division

3.3 Linear Interpolation Algorithm

Since the data acquisition module is used to simultaneously collect the signals of FBG and F-P etalon at the same sampling rate, the data of the two channels can be combined to solve the central wavelength value of FBG. The method is as follows: Confirm the sampling point corresponding to the center wavelength of each narrowband spectrum through the negative peak marker point of the F-P etalon, and set the center wavelengths of any two narrowband spectra of the F-P etalon as λ1 and λ2. The sampling points are x1 and x2 respectively, so the wavelength value corresponding to any sampling point λx can be obtained by Eq. (8)

$$ \lambda_{x} = \frac{{\lambda_{2} - \lambda_{1} }}{{x_{2} - x_{1} }}\left( {x - x_{1} } \right) + \lambda_{1} $$
(8)

The FBG center wavelength measured with a demodulator (SmartScan 08-80 XR, repeatability less than 1 pm) is the agreed true value, the comparison between the Gaussian fitting algorithm and the peak-seek algorithm designed in this article is shown in Table 3.

Table 3 Comparison of two peak-seek algorithms

4 Conclusion

In this paper, firstly, digital low-pass filtering is performed on the collected original signal to remove high-frequency noise, and then Hilbert transform is introduced into the Gaussian fitting algorithm to solve the defect that the constant threshold division needs to predict the range of each peak, reducing the calculation amount of the Gaussian fitting algorithm. Finally, combined with the F-P etalon spectrum, the central wavelength of the FBG is extracted through the linear interpolation algorithm. The experiment shows that the peak finding error of the demodulation algorithm designed in this article is below 1 pm, which has certain reference value for engineering needs, especially for multi peak detection in distributed sensor networks.