Instrumentation & Measurement Magazine 24-5 - 58
Framework for LPFG Spectral
Reconstruction
Black-Box Modelling of the LPFG Attenuation
Spectrum
The initial approaches [1] in the spectral reconstruction of the
LPFG spectra given the DFB's information consisted of trying to
fit Gaussian, Lorentzian and Voigt profiles to the available data.
Although in some cases this provided a reasonable fit (and consequently
an acceptable determination of both amplitude and
minimum attenuation wavelength), in most cases the performance
led to a considerable error when compared to OSA data.
Given the variety of LPFG spectral shapes (which can range
from a few nanometers at full width at half maximum to almost
20 nm, and attenuation amplitude from a few dBm to ~40 dBm)
and scarcity of data provided by the low-cost system, a new
model of the LPFG's attenuation band was required to provide
a suitable fit for the spectra. Although more complicated methods
such as data fitting via Markov Chain Monte Carlo (MCMC)
or numerical simulations of LPFG spectra [5] were in principle
possible, this would prove to be a complex task to tackle, both
from a model implementation and computational performance
perspective. Hence, a black box [6] approach to the problem was
chosen, which meant the selection of some functions that could
potentially provide a good fit to the LPFG spectra comparing
their performances when fitting to real LPFG spectra.
Based on a great variety of LPFG spectra acquired with an
OSA, the performance of multiple fitting functions was tested.
Three diagnostic quantities where calculated: the amplitude
and wavelength error (comparing with OSA data) and a χ2
test (which evaluates the quality of the overall fit to the available
data). The data was fit with SciPy's (Python module)
curve fitting methods, using generic bounds such as keeping
the wavelength between 1500 and 1600 nm and at a reasonable
value for the amplitude. Inside the module, the default
method for bounded curve fitting is the Trust Region Reflective
algorithm, which was used on this setup.
The tests performed indicated that a variation of the generalized
logistic distribution provided the best fits given the
entire set of LPFG spectra available. The worst-case scenario
can be seen in Fig. 2, in which the spectrum is very wide at the
top and narrow at the bottom, causing the functions not to fit as
well as in other cases. Even in this case (which is presented as
a limiting one), the generalized logistic distribution performs
reasonably, justifying the choice as fitting function. This function
is defined:
F C A n C A sechn
; , ,, ,00
(1)
where λ refers to the wavelength, C is the offset power, A and
λ0
are the amplitude and central wavelength of the attenuation
band, respectively, and ω and n are parameters related to the
full width half maximum (FWHM) of the curve.
Given the fact that in LPFG sensing the main interest is
focused on the attenuation band's central wavelength and amplitude
determination (and these parameters come directly
from the curve fitting routine described), the performance of
this method can be checked to estimate the typical error.
The error for the curve fitting of multiple functions to a
variety of LPFG spectra can be observed in Fig. 3. The usual errors
for the parameters of interest (regarding the generalized
logistic function) are 0.15% or less for the case of the attenuation
band central wavelength and less than 1% in the case of
the amplitude determination, meaning that the chosen distribution
presents a good fit to the variety of available data.
In the case of the low-cost LPFG spectral analyzer, only a
few intervals of around 4 nm are available for fitting, meaning
much less information is available, which will decrease the
quality of the fitting curve and consequently the determination
of the parameters of interest.
Fig. 2. Result of the curve fitting of multiple functions to a LPFG spectrum with very narrow peak.
58
Low-cost Spectral Analyzer Simulations
Given the choice of fitting function, simulations of the lowcost
setup can be computed using the same LPFG spectral data
collected with the OSA. To
perform these simulations,
the data of the spectra corresponding
to 4 nm around
1530, 1550 and 1570 nm
were taken, and the chosen
function was used to fit this
data and compare it with
the original spectrum. This
procedure allowed for the
evaluation of the curve fitting
routine that was applied
to the monitoring platform.
Fig. 4 shows a typical
case of the spectral
reconstruction using the
available data for the lowcost
system and the chosen
curve fitting function.
IEEE Instrumentation & Measurement Magazine
August 2021
Instrumentation & Measurement Magazine 24-5
Table of Contents for the Digital Edition of Instrumentation & Measurement Magazine 24-5
No label
Instrumentation & Measurement Magazine 24-5 - No label
Instrumentation & Measurement Magazine 24-5 - Cover2
Instrumentation & Measurement Magazine 24-5 - 1
Instrumentation & Measurement Magazine 24-5 - 2
Instrumentation & Measurement Magazine 24-5 - 3
Instrumentation & Measurement Magazine 24-5 - 4
Instrumentation & Measurement Magazine 24-5 - 5
Instrumentation & Measurement Magazine 24-5 - 6
Instrumentation & Measurement Magazine 24-5 - 7
Instrumentation & Measurement Magazine 24-5 - 8
Instrumentation & Measurement Magazine 24-5 - 9
Instrumentation & Measurement Magazine 24-5 - 10
Instrumentation & Measurement Magazine 24-5 - 11
Instrumentation & Measurement Magazine 24-5 - 12
Instrumentation & Measurement Magazine 24-5 - 13
Instrumentation & Measurement Magazine 24-5 - 14
Instrumentation & Measurement Magazine 24-5 - 15
Instrumentation & Measurement Magazine 24-5 - 16
Instrumentation & Measurement Magazine 24-5 - 17
Instrumentation & Measurement Magazine 24-5 - 18
Instrumentation & Measurement Magazine 24-5 - 19
Instrumentation & Measurement Magazine 24-5 - 20
Instrumentation & Measurement Magazine 24-5 - 21
Instrumentation & Measurement Magazine 24-5 - 22
Instrumentation & Measurement Magazine 24-5 - 23
Instrumentation & Measurement Magazine 24-5 - 24
Instrumentation & Measurement Magazine 24-5 - 25
Instrumentation & Measurement Magazine 24-5 - 26
Instrumentation & Measurement Magazine 24-5 - 27
Instrumentation & Measurement Magazine 24-5 - 28
Instrumentation & Measurement Magazine 24-5 - 29
Instrumentation & Measurement Magazine 24-5 - 30
Instrumentation & Measurement Magazine 24-5 - 31
Instrumentation & Measurement Magazine 24-5 - 32
Instrumentation & Measurement Magazine 24-5 - 33
Instrumentation & Measurement Magazine 24-5 - 34
Instrumentation & Measurement Magazine 24-5 - 35
Instrumentation & Measurement Magazine 24-5 - 36
Instrumentation & Measurement Magazine 24-5 - 37
Instrumentation & Measurement Magazine 24-5 - 38
Instrumentation & Measurement Magazine 24-5 - 39
Instrumentation & Measurement Magazine 24-5 - 40
Instrumentation & Measurement Magazine 24-5 - 41
Instrumentation & Measurement Magazine 24-5 - 42
Instrumentation & Measurement Magazine 24-5 - 43
Instrumentation & Measurement Magazine 24-5 - 44
Instrumentation & Measurement Magazine 24-5 - 45
Instrumentation & Measurement Magazine 24-5 - 46
Instrumentation & Measurement Magazine 24-5 - 47
Instrumentation & Measurement Magazine 24-5 - 48
Instrumentation & Measurement Magazine 24-5 - 49
Instrumentation & Measurement Magazine 24-5 - 50
Instrumentation & Measurement Magazine 24-5 - 51
Instrumentation & Measurement Magazine 24-5 - 52
Instrumentation & Measurement Magazine 24-5 - 53
Instrumentation & Measurement Magazine 24-5 - 54
Instrumentation & Measurement Magazine 24-5 - 55
Instrumentation & Measurement Magazine 24-5 - 56
Instrumentation & Measurement Magazine 24-5 - 57
Instrumentation & Measurement Magazine 24-5 - 58
Instrumentation & Measurement Magazine 24-5 - 59
Instrumentation & Measurement Magazine 24-5 - 60
Instrumentation & Measurement Magazine 24-5 - 61
Instrumentation & Measurement Magazine 24-5 - 62
Instrumentation & Measurement Magazine 24-5 - 63
Instrumentation & Measurement Magazine 24-5 - 64
Instrumentation & Measurement Magazine 24-5 - 65
Instrumentation & Measurement Magazine 24-5 - 66
Instrumentation & Measurement Magazine 24-5 - 67
Instrumentation & Measurement Magazine 24-5 - 68
Instrumentation & Measurement Magazine 24-5 - 69
Instrumentation & Measurement Magazine 24-5 - 70
Instrumentation & Measurement Magazine 24-5 - 71
Instrumentation & Measurement Magazine 24-5 - 72
Instrumentation & Measurement Magazine 24-5 - 73
Instrumentation & Measurement Magazine 24-5 - 74
Instrumentation & Measurement Magazine 24-5 - 75
Instrumentation & Measurement Magazine 24-5 - 76
Instrumentation & Measurement Magazine 24-5 - 77
Instrumentation & Measurement Magazine 24-5 - 78
Instrumentation & Measurement Magazine 24-5 - 79
Instrumentation & Measurement Magazine 24-5 - 80
Instrumentation & Measurement Magazine 24-5 - 81
Instrumentation & Measurement Magazine 24-5 - 82
Instrumentation & Measurement Magazine 24-5 - 83
Instrumentation & Measurement Magazine 24-5 - 84
Instrumentation & Measurement Magazine 24-5 - 85
Instrumentation & Measurement Magazine 24-5 - 86
Instrumentation & Measurement Magazine 24-5 - 87
Instrumentation & Measurement Magazine 24-5 - 88
Instrumentation & Measurement Magazine 24-5 - Cover3
Instrumentation & Measurement Magazine 24-5 - Cover4
https://www.nxtbook.com/allen/iamm/26-6
https://www.nxtbook.com/allen/iamm/26-5
https://www.nxtbook.com/allen/iamm/26-4
https://www.nxtbook.com/allen/iamm/26-3
https://www.nxtbook.com/allen/iamm/26-2
https://www.nxtbook.com/allen/iamm/26-1
https://www.nxtbook.com/allen/iamm/25-9
https://www.nxtbook.com/allen/iamm/25-8
https://www.nxtbook.com/allen/iamm/25-7
https://www.nxtbook.com/allen/iamm/25-6
https://www.nxtbook.com/allen/iamm/25-5
https://www.nxtbook.com/allen/iamm/25-4
https://www.nxtbook.com/allen/iamm/25-3
https://www.nxtbook.com/allen/iamm/instrumentation-measurement-magazine-25-2
https://www.nxtbook.com/allen/iamm/25-1
https://www.nxtbook.com/allen/iamm/24-9
https://www.nxtbook.com/allen/iamm/24-7
https://www.nxtbook.com/allen/iamm/24-8
https://www.nxtbook.com/allen/iamm/24-6
https://www.nxtbook.com/allen/iamm/24-5
https://www.nxtbook.com/allen/iamm/24-4
https://www.nxtbook.com/allen/iamm/24-3
https://www.nxtbook.com/allen/iamm/24-2
https://www.nxtbook.com/allen/iamm/24-1
https://www.nxtbook.com/allen/iamm/23-9
https://www.nxtbook.com/allen/iamm/23-8
https://www.nxtbook.com/allen/iamm/23-6
https://www.nxtbook.com/allen/iamm/23-5
https://www.nxtbook.com/allen/iamm/23-2
https://www.nxtbook.com/allen/iamm/23-3
https://www.nxtbook.com/allen/iamm/23-4
https://www.nxtbookmedia.com