Enhancing Microwave Photonic Interrogation Accuracy for Fiber-Optic Temperature Sensors via Artificial Neural Network Integration

: In this paper, an application of an artificial neural network algorithm is proposed to enhance the accuracy of temperature measurement using a fiber-optic sensor based on a Fabry–Perot interferometer (FPI). It is assumed that the interrogation of the FPI is carried out using an optical comb generator realizing a microwave photonic approach. Firstly, modelling of the reflection spectrum of a Fabry–Perot interferometer is implemented. Secondly, probing of the obtained spectrum using a comb-generator model is performed. The resulting electrical signal of the photodetector is processed and is used to create a sample for artificial neural network training aimed at temperature detection. It is demonstrated that the artificial neural network implementation can predict temperature variations with an accuracy equal to 0.018 ◦ C in the range from − 10 to +10 ◦ C and 0.147 in the range from − 15 to +15 ◦ C.


Introduction
Microwave photonics is a scientific and technical discipline at the interface of radio electronics and photonics, which deals with the study of technologies for the generation, transmission, processing and reception of signals using the transfer of optical signal processing into the radio frequency range.The original goal of microwave photonics was to combine the advantages of photonic (laser) technologies with mature microwave technologies.Microwave photonic techniques can significantly increase transmission capacity and range, reduce signal loss and interference, improve accuracy and significantly reduce the cost of both transmission and measurement systems [1][2][3].Microwave photonic techniques have applications in various fields including telecommunications [4], radar systems [5,6], wireless communications, measurement technology [7,8] and fiber-optic sensing [9][10][11].The use of microwave photonic methods in fiber-optic sensing allows not only to significantly reduce the cost of interrogation equipment but at the same time to increase both the speed and accuracy of measurements [10][11][12][13].
In modern optical and photonic engineering, the task of accurately measuring physical environmental parameters, such as temperature, pressure and chemical composition, is becoming critical.For example, accurate temperature measurement is a key factor in a number of biomedical applications and is crucial in various industrial applications [14].Classical electrical sensors are among the most common [15], but their application is a challenge when used in corrosive, explosive or flammable environments.Mechanical sensors are inexpensive devices that meet safety requirements, but their low resolution and Optics 2024, 5 224 vulnerability to mechanical damage limit their applicability [16].There is great interest in developing new measurement devices based on fiber-optic sensor systems.Given their fundamental advantages, such sensors have high reliability, sensitivity and are becoming affordable.The development of fiber-optic sensing technologies opens up new opportunities to improve patient care, health status and quality of life [17], in particular in the field of new more sensitive and accurate fiber-optic temperature sensors.Optical interferometers, such as Fabry-Perot interferometers, are known for their high sensitivity and resolution, which makes them very promising for use as sensors in various fields of science and technology.However, interpretation of data obtained with these devices can be difficult due to their high cross-sensitivity to a wide range of external factors [18].
Another rapidly developing modern research area is artificial neural networks (ANN) and fuzzy logic algorithms, which among other things are also applied in sensor networks [19][20][21][22].Artificial neural networks are also used as a control tool [22] and in signal processing devices [23,24].In [25], an ANN was used to effectively analyze the effect of temperature and acidity level (pH) on the sensor sensitivity, providing a stable response under different physical conditions.Machine learning-based models excel in analyzing large amounts of information to predict data outcomes they have not previously encountered, demonstrating a significant ability to improve the efficiency of fiber-optic systems in the task of processing and interpreting complex signals [26].For example, an artificial neural network apparatus has been used to measure the salinity and temperature of seawater [27].Experiments have shown that linear ANNs provide high accuracy and stability of temperature measurements [28,29] when processing a small number of samples.
The aim of this work is to evaluate the advantages of integrating two key technologies (microwave photonics and artificial neural networks) to solve the problems of improving the accuracy and speed of interrogation in fiber-optic measurement systems.One of the first approaches to the application of the artificial neural network apparatus in fiber-optic sensing, undertaken by the authors, was the developed algorithm for determining the central wavelength of fiber Bragg gratings as key elements of sensor networks [30].Despite the fact that the authors obtained good results on the determination of the spectral shift of a fiber Bragg grating obtained under conditions of low spectral resolution, the work did not use microwave photonic methods, and the measurement system required a full-fledged spectrum analyzer for the wavelength range 1510-1590 nm.

Problem Statement
It was decided to analyze the possibility of a complete refusal from optical spectrum analyzers with simultaneous high-precision determination of the spectrum shift completely by means of microwave photonic methods on a model which was formulated as follows.Let a thin polymer film with refractive index and thickness linearly depending on temperature be applied to the end of an optical fiber.The difference between the refractive indices of the optical fiber and the thin film deposited on the fiber end face forms a Fabry-Perot interferometer (FPI) [31][32][33].One of the mirrors of the interferometer is the interface between the optical fiber and the polymer film, and the second mirror is the interface between the polymer film and the environment.The resulting Fabry-Perot end-face interferometer, as well as any interferometric system, is extremely sensitive to changes in the phase overlap between the mirrors, which in turn depends on both the refractive index of the material and the distance between the mirrors [34], which, as mentioned above, depend on the ambient temperature.In this work, it is assumed that the FPI is isolated from all the external factors, such as humidity, pressure, dust, etc., except for the temperature variation.
According to the proposed microwave photonic interrogation approach, the scheme of which is presented in Figure 1, the probing of the FPI reflection spectrum is carried out by an optical frequency comb including five-seven optical spectral components in the optical part of the spectrum with a step of 5-10 GHz (40-80 pm) and full width at half height up to 30-35 GHz (240-280 pm).The considered wavelength range of the FPI reflection spectrum is from 1520 nm to 1595 nm.The optical frequency comb can be formed using a wideband optical source (denoted as 1 in Figure 1), the radiation from which is reflected from the superstructured fiber Bragg grating 3 (described in detail in Section 3.3) and directed to the Fabry-Perot interferometer through the circulators 2 and 4.
by an optical frequency comb including five-seven optical spectral components in the optical part of the spectrum with a step of 5-10 GHz (40-80 pm) and full width at half height up to [30][31][32][33][34][35].The considered wavelength range of the FPI reflection spectrum is from 1520 nm to 1595 nm.The optical frequency comb can be formed using a wideband optical source (denoted as 1 in Figure 1), the radiation from which is reflected from the superstructured fiber Bragg grating 3 (described in detail in Section 3.3) and directed to the Fabry-Perot interferometer through the circulators 2 and 4. The signal reflected from the FPI is directed to the photodetector through the circulator 4. On the photodetector, as on the element with a quadratic transfer characteristic, the cross-beating of all frequency components forming the optical frequency comb will be formed, and the frequency of beating components will be a multiple of the frequency spacing of the optical comb.The amplitude of the beating components is a multiple of the product of the amplitudes of the probing components of the optical frequency comb and the Fabry-Perot reflection spectrum.The flat shift of the comb spectrum leads to a change in the resulting amplitudes of the probing radiation and, as a consequence, in the amplitudes of the beating signal at the photodetector's output.The beating signal is filtered using seven bandpass filters, the number of which corresponds to the number of the considered beating components, and is processed by the analog-to-digital converter 8.The obtained data is processed in the ANN-based unit 9 defining the measured value of temperature.Such a microwave photonic interrogation approach does not rely on the spectrometer, the resolution of which is limited by the CCD array, thereby enhancing the maximum achievable measurement resolution.
In the present work, the task was set to analyze the possibility and limits of applicability of determining the temperature of the Fabry-Perot sensing element by a set of amplitudes of the photodetector output signal obtained at multiple frequencies of the difference frequencies of the probing optical frequency comb.

Mathematical Model
The mathematical model of the FPI sensing element probing (a polymer film applied to the end of an optical fiber) includes the following: a model of the reflection spectrum of the Fabry-Perot interferometer, along with the dependence of its parameters on tem- The signal reflected from the FPI is directed to the photodetector through the circulator 4. On the photodetector, as on the element with a quadratic transfer characteristic, the cross-beating of all frequency components forming the optical frequency comb will be formed, and the frequency of beating components will be a multiple of the frequency spacing of the optical comb.The amplitude of the beating components is a multiple of the product of the amplitudes of the probing components of the optical frequency comb and the Fabry-Perot reflection spectrum.The flat shift of the comb spectrum leads to a change in the resulting amplitudes of the probing radiation and, as a consequence, in the amplitudes of the beating signal at the photodetector's output.The beating signal is filtered using seven bandpass filters, the number of which corresponds to the number of the considered beating components, and is processed by the analog-to-digital converter 8.The obtained data is processed in the ANN-based unit 9 defining the measured value of temperature.Such a microwave photonic interrogation approach does not rely on the spectrometer, the resolution of which is limited by the CCD array, thereby enhancing the maximum achievable measurement resolution.
In the present work, the task was set to analyze the possibility and limits of applicability of determining the temperature of the Fabry-Perot sensing element by a set of amplitudes of the photodetector output signal obtained at multiple frequencies of the difference frequencies of the probing optical frequency comb.

Mathematical Model
The mathematical model of the FPI sensing element probing (a polymer film applied to the end of an optical fiber) includes the following: a model of the reflection spectrum of the Fabry-Perot interferometer, along with the dependence of its parameters on temperature; a model of the resulting spectrum of the probing optical frequency comb; a model of their interaction spectrum; a model of the electrical signal spectrum obtained at the photodetector; and a model of the amplitude detector at difference frequencies.
The mathematical model will enable the creation of a digital twin of the measurement conversion process of a fiber-optic sensor based on an FPI with a microwave photonic interrogation method at multiple difference frequencies.The susceptibility of the spectral response of the interferometer to environmental parameters, incorporated in the mathematical model, makes it possible to study the system at different values of temperature in the required range.The proposed mathematical model makes it possible to form a continuous set of training data for the artificial neural network.

Model of the Fabry-Perot Reflection Spectrum
The mathematical apparatus of scattering and transmission matrices was used to model the reflection spectrum of the Fabry-Perot interferometer [35].In general, the reflection and transmission spectra of the Fabry-Perot interferometer are modelled by the product of three transmission matrices: (a) a discontinuous change in the propagation medium parameters (from the optical fiber core to the interferometer inner cavity); (b) a continuous medium of the interferometer inner cavity; and (c) a discontinuous change in the propagation medium parameters (from the interferometer inner cavity to the external medium).The scattering matrix of a continuous medium is a function of the radiation wavelength, permittivity, permeability and thickness of the medium: where ε and µ are the permittivity and permeability of the solid medium, H is the thickness of the solid medium, and λ is the wavelength of radiation.
The scattering matrices of the discontinuity of the medium parameters at the boundaries of propagation media are a function of the permittivities and permeabilities of the media: where ε 1 and µ 1 are the permittivity and permeability of the optical fiber, ε 2 and µ 2 are the permittivity and permeability of the Fabry-Perot interferometer cavity (polymer film), and ε 3 and µ 3 are the permittivity and permeability of the external medium.
The scattering matrices S are transformed into the transmission matrix T and back by operators of the form The Fabry-Perot transmission matrix is the result of successive multiplication of the transmission matrices of the partition boundaries and the internal cavity of the interferometer (continuous medium) and is a function depending on the radiation wavelength, dielectric and magnetic permeability of the media, and cavity length: In ( 5), the lower index defines the transmission matrix ("J"-discontinuous change of parameters, "M"-continuous medium), the upper index of the matrix "J" indicates the direction of radiation transition from the i-th layer to the (i + 1)-th layer, and the upper index of the matrix "M" defines the parameters of the interferometer cavity.
The S FP scattering matrix of the Fabry-Perot interferometer is obtained by inverse transformation of the T FP transmission matrix by (4): The (S FP ) 1,1 element of the resulting scattering matrix defines the dependence of the Fabry-Perot interferometer reflection coefficient for radiation directed into it from the optical fiber side; (S FP ) 2,2 is the reflection coefficient from the external boundary for radiation directed from the external medium; (S FP ) 1,2 is the transmittance coefficient for radiation directed from the optical fiber side; and (S FP ) 2,1 is the transmittance coefficient for radiation directed from the external medium side.
In general, all reflection and transmission coefficients are functions of the wavelength, of the dielectric and magnetic permeabilities of all media and of the length of the internal cavity of the interferometer.

Controlling the Parameters of the Fabry-Perot Interferometer with Temperature Changes
A change in ambient temperature directly affects all seven parameters of the interferometer, namely the dielectric and magnetic permeabilities of the three media as well as the length of the interferometer's internal cavity.As our previous studies have shown, if the propagation medium is a quartz fiber, the interferometer inner cavity is a polymer (dielectric), and the external medium is air; then the temperature effect on the Fabry-Perot spectrum shift has a change only in the dielectric permittivity and the length of the interferometer inner cavity [34].
To model the temperature change of the interferometer inner cavity, the linear dependence of its dielectric permittivity and length on the temperature change was used: where K ε2 is the temperature coefficient of dielectric constant of the interferometer inner cavity, α is the coefficient of thermal expansion of the polymer film, ε 20 is the value of dielectric constant, and H 0 is the length of the interferometer inner cavity at the reference temperature.The permittivity of the optical fiber ε 1 also has a linear temperature dependence similar to (7) with the temperature coefficient K ε1 .The modelling result of the Fabry-Perot interferometer reflection spectrum obtained at ±1 • C temperature change is shown in Figure 2 (data obtained at

Probing Radiation
Optical frequency comb or spectral comb is an optical radiation, the spectrum of which consists of discrete and evenly spaced spectral lines.Optical oscillators are capable of generating several evenly spaced optical carriers with a minimum number of components.Another method of optical frequency comb formation can be implemented based on a superstructured array of homogeneous weakly reflective Bragg fiber gratings with phase shifts between them.The superstructure consists of a periodically repeating nested structure, which is a combination of homogeneous weakly reflecting Bragg gratings arranged with phase inhomogeneities of the form determining the phase shift between the gratings, where n is the number of partitions of the full circle [0, 2π] into sections φ i .An example of a superstructure scheme consisting of three separate structures, each formed from five homogeneous fiber Bragg gratings, is shown in Figure 3.The red curly braces in the figure denote the structures, and the black curly braces denote the homogeneous Bragg fiber gratings; φ i denotes the phase shifts configured by (8).

Probing Radiation
Optical frequency comb or spectral comb is an optical radiation, the spectrum o which consists of discrete and evenly spaced spectral lines.Optical oscillators are capab of generating several evenly spaced optical carriers with a minimum number of compo nents.Another method of optical frequency comb formation can be implemented base on a superstructured array of homogeneous weakly reflective Bragg fiber gratings wit phase shifts between them.The superstructure consists of a periodically repeating neste structure, which is a combination of homogeneous weakly reflecting Bragg gratings a ranged with phase inhomogeneities of the form

Probing Radiation
Optical frequency comb or spectral comb is an optical radiation, the spectrum o which consists of discrete and evenly spaced spectral lines.Optical oscillators are capabl of generating several evenly spaced optical carriers with a minimum number of compo nents.Another method of optical frequency comb formation can be implemented base on a superstructured array of homogeneous weakly reflective Bragg fiber gratings wit phase shifts between them.The superstructure consists of a periodically repeating neste structure, which is a combination of homogeneous weakly reflecting Bragg gratings ar ranged with phase inhomogeneities of the form determining the phase shift between the gratings, where n is the number of partitions o the full circle [0, 2π] into sections φi.An example of a superstructure scheme consisting o three separate structures, each formed from five homogeneous fiber Bragg gratings, i shown in Figure 3.The red curly braces in the figure denote the structures, and the blac curly braces denote the homogeneous Bragg fiber gratings; φi denotes the phase shift configured by (8).This approach to structure creation allows to form a frequency comb in the optica range and at the same time significantly increase the reflectivity of its individual compo nents, as shown in Figure 4 obtained via numerical simulation using the transfer matri method.The model was implemented under the assumption of the structure implemen tation within a single-mode optical fiber with a core refractive index of 1.4586, induce This approach to structure creation allows to form a frequency comb in the optical range and at the same time significantly increase the reflectivity of its individual components, as shown in Figure 4 obtained via numerical simulation using the transfer matrix method.The model was implemented under the assumption of the structure implementation within a single-mode optical fiber with a core refractive index of 1.4586, induced refractive index of 1 × 10 −4 , n = 4, homogeneous segment length of 5 mm and grating period of 5.3129 × 10 −7 m.
Optics 2024, 5, FOR PEER REVIEW refractive index of 1 × 10 −4 , n = 4, homogeneous segment length of 5 mm and grating pe of 5.3129 × 10 −7 m.The envelope of the optical frequency comb spectrum coincides with the reflec spectrum of the Bragg fiber array with a length corresponding to the length of one ho geneous segment, as shown in Figure 4. Varying the number of homogeneous segm in the structure, as well as the number of structures in the superstructure, allows con ling the number of frequency components in the reflection spectrum while maintain the total length of the structure.Thus, for example, at n = 1 (φi = 0) a single-freque structure is formed; at n = 1 (φi = π), a two-frequency structure with a difference freque Ω between the components; at n = 2 (φi = 0, π), a four-frequency comb with a differe frequency Ω/2; at n = 3 (φi = 0, 2π/3, 4π/3), an eight-frequency comb with a differe frequency Ω/3; etc.
Based on the analysis of works devoted to the implementation of optical freque combs [36][37][38], we can conclude that, in general, the spectrum of an optical freque comb can be considered a set of evenly spaced spectral components with a common velope.In the present work, we used a mathematical model of the optical frequency co spectrum, each component of which is described by a normal distribution function, w a common envelope also described by a normal distribution function.This descriptio the optical frequency comb spectrum allows controlling both the number of spectral c ponents and the distance between them, as well as the shape and parameters of the s tral components and the common envelope.The mathematical model also allows rep ing the normal distribution function, for example, by a Lorentz function or similar example of an optical frequency comb spectrum with a spectral width of 5 nm, a t number of optical components equal to 5, a center wavelength of λ = 1551.8nm, an common envelope with σ = 1.1 × 10 −10 is shown in Figure 5.The envelope of the optical frequency comb spectrum coincides with the reflection spectrum of the Bragg fiber array with a length corresponding to the length of one homogeneous segment, as shown in Figure 4. Varying the number of homogeneous segments in the structure, as well as the number of structures in the superstructure, allows controlling the number of frequency components in the reflection spectrum while maintaining the total length of the structure.Thus, for example, at n = 1 (φ i = 0) a single-frequency structure is formed; at n = 1 (φ i = π), a two-frequency structure with a difference frequency Ω between the components; at n = 2 (φ i = 0, π), a four-frequency comb with a difference frequency Ω/2; at n = 3 (φ i = 0, 2π/3, 4π/3), an eight-frequency comb with a difference frequency Ω/3; etc.
Based on the analysis of works devoted to the implementation of optical frequency combs [36][37][38], we can conclude that, in general, the spectrum of an optical frequency comb can be considered a set of evenly spaced spectral components with a common envelope.In the present work, we used a mathematical model of the optical frequency comb spectrum, each component of which is described by a normal distribution function, with a common envelope also described by a normal distribution function.This description of the optical frequency comb spectrum allows controlling both the number of spectral components and the distance between them, as well as the shape and parameters of the spectral components and the common envelope.The mathematical model also allows replacing the normal distribution function, for example, by a Lorentz function or similar.An example of an optical frequency comb spectrum with a spectral width of 5 nm, a total number of optical components equal to 5, a center wavelength of λ = 1551.8nm, and a common envelope with σ = 1.1 × 10 −10 is shown in Figure 5.The interaction spectrum of the probing radiation and the Fabry-Perot interferom is modelled by multiplication at the same wavelengths (frequencies) of the spectra of interferometer and the optical frequency comb, as shown in Figure 6.The displacement of the Fabry-Perot interferometer spectrum at temperature cha entails a change in the amplitudes of the spectral components of the probing study of optical frequency comb, the spectral position of which is assumed to be stabilized at middle of the linear section of the spectral response of the interferometer.

Photodetector
A photodetector is a nonlinear quadratic element, the output current of which is p portional to the square of the modulus of the optical radiation incident on it.As a res on the photodetector there are cross-beatings of all components of the optical freque The interaction spectrum of the probing radiation and the Fabry-Perot interferometer is modelled by multiplication at the same wavelengths (frequencies) of the spectra of the interferometer and the optical frequency comb, as shown in Figure 6.The interaction spectrum of the probing radiation and the Fabry-Perot interferom is modelled by multiplication at the same wavelengths (frequencies) of the spectra o interferometer and the optical frequency comb, as shown in Figure 6.The displacement of the Fabry-Perot interferometer spectrum at temperature cha entails a change in the amplitudes of the spectral components of the probing study of optical frequency comb, the spectral position of which is assumed to be stabilized a middle of the linear section of the spectral response of the interferometer.

Photodetector
A photodetector is a nonlinear quadratic element, the output current of which is portional to the square of the modulus of the optical radiation incident on it.As a re on the photodetector there are cross-beatings of all components of the optical freque comb radiation falling on it.The spectrum of radiation falling on the photodetecto The displacement of the Fabry-Perot interferometer spectrum at temperature change entails a change in the amplitudes of the spectral components of the probing study of the optical frequency comb, the spectral position of which is assumed to be stabilized at the middle of the linear section of the spectral response of the interferometer.

Photodetector
A photodetector is a nonlinear quadratic element, the output current of which is proportional to the square of the modulus of the optical radiation incident on it.As a result, on the photodetector there are cross-beatings of all components of the optical frequency comb radiation falling on it.The spectrum of radiation falling on the photodetector is modelled by a linear discrete spectrum, the detail of discretization of which can be chosen as practically any.In practice, the sampling frequency is determined by the criterion of model signal correspondence to the real one.The spectrum of the signal arriving at the photodetector can be described as a discrete set of amplitudes {A k }, k = 0, N; hence, the light flux can be described as a set of monochromatic emissions at discrete frequencies: where N is the number of spectrum discretization points, A k is the spectrum amplitude at wavelength λ k = λ 0 + k•∆λ, ∆λ is the discretization step of the spectrum wavelength, c is the speed of light, ω k = 2π•c/λ k is the frequency, and ∆ω = 2π•c•∆λ/(λ 2 ) is the frequency discretization step.The output current of the photodetector is proportional to the square of the modulus of the light flux incident on it: If we open the brackets, we obtain Consequently, the photodetector output current at frequency Ω n = n•∆ω is proportional to the sum of products of all amplitudes whose difference frequency coincides with the frequency Ω n : The increase in the number of points of modelling the reflection spectrum and the photodetector output current spectrum is directly proportional to the approximation accuracy and inversely proportional to the modelling time, and within the model any number of points in the spectra can be chosen, with it being an adjustable parameter.An example of the photodetector spectrum model corresponding to the presented reflectance spectra of the Fabry-Perot interferometer and the probing radiation shown in the previous figures is presented in Figure 7.
The microwave photonic method involves the analysis of the photodetector output signal at the difference frequencies of the optical frequency comb, which correspond to the maximum peaks of the photodetector output current peaks.To select the amplitudes of the photodetector output current at differential frequencies of the optical frequency comb, it is necessary to filter the output current signal at multiple frequencies of the comb step.The model uses a bandpass frequency filter whose amplitude-frequency response is described by a normal distribution function.An example of the resulting spectrum, when selecting frequencies by the bandpass filter, is shown in Figure 8.
curacy and inversely proportional to the modelling time, and within the model any n ber of points in the spectra can be chosen, with it being an adjustable parameter.An ample of the photodetector spectrum model corresponding to the presented reflecta spectra of the Fabry-Perot interferometer and the probing radiation shown in the prev figures is presented in Figure 7.The microwave photonic method involves the analysis of the photodetector ou signal at the difference frequencies of the optical frequency comb, which correspon the maximum peaks of the photodetector output current peaks.To select the amplitu of the photodetector output current at differential frequencies of the optical freque comb, it is necessary to filter the output current signal at multiple frequencies of the co step.The model uses a bandpass frequency filter whose amplitude-frequency respon described by a normal distribution function.An example of the resulting spectrum, w selecting frequencies by the bandpass filter, is shown in Figure 8.The parameters of the frequency bandpass filter at the output of the photodete are flexibly adjustable, which allows us to use the model of this tool to build various sig processing tools.Theoretically, it would be possible to choose a bandpass filter with arbitrary frequency response, but, as numerical experiments have shown, the influenc its shape is negligible.

Data Format
When starting work on this topic, the authors were guided by the hypothesis that position of the Fabry-Perot reflection spectrum can be put in unambiguous correspo ence from the mutual ratio of amplitudes obtained by microwave photonic probing of interferometer optical frequency comb with their separation at differential frequencie change in the external temperature leads to a change in the dielectric permittivity and thickness of the Fabry-Perot interferometer and, as has already been shown, to a shi the spectrum, and the shift in the spectrum, in turn, will lead to a change in the amplitu of the probing signal and, as a consequence, to a change in the amplitudes of the bea The parameters of the frequency bandpass filter at the output of the photodetector are flexibly adjustable, which allows us to use the model of this tool to build various signal processing tools.Theoretically, it would be possible to choose a bandpass filter with an arbitrary frequency response, but, as numerical experiments have shown, the influence of its shape is negligible.

Data Format
When starting work on this topic, the authors were guided by the hypothesis that the position of the Fabry-Perot reflection spectrum can be put in unambiguous correspondence from the mutual ratio of amplitudes obtained by microwave photonic probing of the interferometer optical frequency comb with their separation at differential frequencies.A change in the external temperature leads to a change in the dielectric permittivity and film thickness of the Fabry-Perot interferometer and, as has already been shown, to a shift in the spectrum, and the shift in the spectrum, in turn, will lead to a change in the amplitudes of the probing signal and, as a consequence, to a change in the amplitudes of the beats of the photodetector output current at differential frequencies of the optical frequency comb.Thus, the task was to unambiguously compare the ratio of the photodetector output current amplitudes at differential frequencies to the temperature value.
To train the artificial neural network, microwave photonic processing data were generated for temperature values varying in the range from −15 to +15 • C with a discrete step of ∆T = 0.001 • C. The small data discretization step is due to the need to obtain a large amount of data required for training the artificial neural network in order to improve its accuracy.This resulted in a marked-up set of 30,100 data which were normalized into a dimensionless interval [0; 1] for input and output data, finally giving a normalized set of input and output data for training.

Artificial Neural Network Model
In general, to build an artificial neural network corresponding to the task at hand, we need a fully connected ANN designed for processing one-dimensional signals [39][40][41], having at the input the number of neurons per unit less than the number of frequency components of the optical frequency comb (equal to the number of frequencies of crossbeats of the comb components) and the output (last) layer in the network must contain one neuron that determines the temperature value.There are no special recommendations for selecting the number of hidden (computational) layers and neurons in them; various configurations have been tested in this work.
The logistic activation function was used for training.The accuracy of the model performance was assessed simultaneously by two parameters: mean absolute error, MAE, and mean relative error, MRPE, which were calculated using the formulas where M is the number of data in the dataset, y i is the actual value, and p i is the predicted value for the i-th dataset.Several of the tested configurations of the ANN are listed in Table 1 with the corresponding MAE values obtained in the temperature range from −15 to +15 • C. In all of the configurations, the input layer consisted of four neurons, and the output layer included one neuron.The configuration No. 8 from Table 1 was used in the current study, which is a fully connected ANN corresponding to probing with an optical frequency comb containing five frequency components, the input layer of which consisted of four neurons, followed sequentially by hidden layers containing 700, 500, 300 and 200 neurons, respectively.The output layer consisted of one neuron.The activation function for all hidden layers was LeakyReLU with a negative slope coefficient of 0.3, while for the output layer tanh function was used.The ANN was implemented using Python 3.11 with the TensorFlow library.
As part of the input data, as required by the training algorithms, the labelled dataset was divided into a training dataset (90%) and a control dataset (10%).The training dataset was used directly to adjust the weights, while the control dataset was used to determine the accuracy of model performance between training iterations and was not used to adjust the weights.Already after 1500 epochs of training, the value of the loss function did not exceed 0.001, as shown in Figure 9.The obtained data show that the trained artificial neural network model has the m imum error at the largest verifiable range, and as the range decreases, the error value creases significantly to 0.08 °С, which is good accuracy.

Conclusions
According to the results of the work, the following set of conclusions can be m Firstly, the empirical method was used to confirm the assumption that the position of Fabry-Perot reflection spectrum can be unambiguously compared with the amplitude the signal obtained by microwave photonic probing of the Fabry-Perot interferomete an optical frequency comb with separation of the amplitudes of the photodetector ou current at differential frequencies.Secondly, the prospect of using the Fabry-Perot e face interferometer, implemented on the end of an optical fiber in the form of a thin p mer film as a temperature sensor, which can be interrogated by microwave photonic m ods, is confirmed.Thirdly, it is shown that due to the choice of the network configura Values of absolute and relative errors of temperature determination are given in Table 2 below.The obtained data show that the trained artificial neural network model has the maximum error at the largest verifiable range, and as the range decreases, the error value decreases significantly to 0.08 • C, which is good accuracy.

Conclusions
According to the results of the work, the following set of conclusions can be made.Firstly, the empirical method was used to confirm the assumption that the position of the Fabry-Perot reflection spectrum can be unambiguously compared with the amplitudes of the signal obtained by microwave photonic probing of the Fabry-Perot interferometer by an optical frequency comb with separation of the amplitudes of the photodetector output current at differential frequencies.Secondly, the prospect of using the Fabry-Perot end-face interferometer, implemented on the end of an optical fiber in the form of a thin polymer film as a temperature sensor, which can be interrogated by microwave photonic methods, is confirmed.Thirdly, it is shown that due to the choice of the network configuration and probing radiation, it is possible to achieve an accuracy of temperature determination from 0.146 to 0.018 • C, and a reduction in the range of temperature variation by two degrees leads to a reduction in the average absolute error of temperature determination by 1.75 times.
In conclusion, the combination of artificial intelligence algorithms with microwave photonic interrogation methods has great potential in the field of fiber-optic sensing.The combination of microwave photonic methods together with artificial intelligence algorithms can potentially produce more accurate results with higher frequency and at lower cost.The proposed innovative approach can significantly contribute to the development of high-precision measurement systems.
shift between the gratings, where n is the number of partitions o the full circle [0, 2π] into sections φi.An example of a superstructure scheme consisting o three separate structures, each formed from five homogeneous fiber Bragg gratings, shown in Figure3.The red curly braces in the figure denote the structures, and the blac curly braces denote the homogeneous Bragg fiber gratings; φi denotes the phase shif configured by(8).

Figure 3 .
Figure 3. Structural diagram of the optical frequency comb based on an array of weakly reflectin

Figure 3 .
Figure 3. Structural diagram of the optical frequency comb based on an array of weakly reflectin fiber Bragg gratings, n = 4. Different colors denote separate homogeneous FBGs.

Figure 3 .
Figure 3. Structural diagram of the optical frequency comb based on an array of weakly reflecting fiber Bragg gratings, n = 4. Different colors denote separate homogeneous FBGs.

Figure 4 .
Figure 4. Reflection spectrum of the superstructured FBG array with n = 4 (red line) and its enve (blue line).The total length of the structure is 25 mm, and the length of the homogeneous segm is 5 mm.

Figure 4 .
Figure 4. Reflection spectrum of the superstructured FBG array with n = 4 (red line) and its envelope (blue line).The total length of the structure is 25 mm, and the length of the homogeneous segment is 5 mm.

Optics 2024, 5 ,Figure 5 .
Figure 5. Example of the probing spectrum of an optical frequency comb with the number of c ponents equal to 5, a comb step of Δλ = 20.8pm (red line) and a common envelope with σ = 1.1 × (purple line).

Figure 6 .
Figure 6.Interaction between the spectrum of the probing radiation and Fabry-Perot interferom

Figure 5 .
Figure 5. Example of the probing spectrum of an optical frequency comb with the number of components equal to 5, a comb step of ∆λ = 20.8pm (red line) and a common envelope with σ = 1.1 × 10 −10 (purple line).

Optics 2024, 5 ,Figure 5 .
Figure 5. Example of the probing spectrum of an optical frequency comb with the number of ponents equal to 5, a comb step of Δλ = 20.8pm (red line) and a common envelope with σ = 1.1 × (purple line).

Figure 6 .
Figure 6.Interaction between the spectrum of the probing radiation and Fabry-Perot interferom

Figure 6 .
Figure 6.Interaction between the spectrum of the probing radiation and Fabry-Perot interferometer.

Figure 7 .
Figure 7. Photodetector spectrum model corresponding to the given data.

Figure 7 .
Figure 7. Photodetector spectrum model corresponding to the given data.

Figure 8 .
Figure 8. Signal at the photodetector output after filtering at differential frequencies of the op frequency comb.

Figure 8 .
Figure 8. Signal at the photodetector output after filtering at differential frequencies of the optical frequency comb.

Figure 9 .
Figure 9. Loss function in the learning process.

Table 1 .
Error values for various configurations of ANN.

Table 2 .
Error values for temperature determination in various ranges for the developed ANN

Table 2 .
Error values for temperature determination in various ranges for the developed ANN.