<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Application of a perceptron to solve the problem of analyzing the fluorescence spectrum of a DBMBF2 sensor in a mixture of aromatic hydrocarbons</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ilya Katanov</string-name>
          <email>semargl42@gmail.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yuriy Kononevich</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexander Kupriyanov</string-name>
          <email>akupr@ssau.ru</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmitry Ionov</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Organoelement compounds., A. N. Nesmeyanov of the Russian, Academy of Sciences</institution>
          ,
          <addr-line>Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Photochemistry center of the RAS, NRC, "Crystallography and Photonics" of the, RAS</institution>
          ,
          <addr-line>Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Samara National Research University</institution>
          ,
          <addr-line>Samara</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>319</fpage>
      <lpage>322</lpage>
      <abstract>
        <p>-The article deals with the problem of choosing the neural network architecture in the problem of analyzing signal data obtained by shooting spectra from fluorescent sensors, which are based on the formation of exciplexes between the boron Dibenzoyl methanate fluorophore (DBMBF2) and aromatic compounds. Attention is paid to the problem of selecting the structural features and parameters of the network in the process of training and testing on available data.</p>
      </abstract>
      <kwd-group>
        <kwd>DBMBF2</kwd>
        <kwd>aromatic compounds</kwd>
        <kwd>neural network</kwd>
        <kwd>fluorescent sensors</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>
        This work is based on the usage of data obtained from the
sensor described in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. This sensor can selectively detect
benzene and its derivatives in multicomponent mixtures of
aromatic hydrocarbon compounds. It's work is based on the
properties of the dibenzoyl methanate boron fluorophore
(DBMBF2). During the operation of this sensor, changes in
the DBMBF2 fluorescence spectra that appear due to the
formation of complexes (exciplexes) between the
fluorophore and aromatic compounds in the excited state are
measured. As the output, the sensor provides spectrum shape
data in the form of 2048 spectrum values, each of which
represents the signal intensity at a specific frequency. In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
processing and analysis of spectral data is performed based
on the model [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] of changing of the fluorescence spectra
shape of DBMBF2, which is adsorbed on silica gel. The
multidimensional least squares method is used to determine
the parameters of this model [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The resulting parameters
are then applied to solve the inverse problem of calculating
the concentration of hydrocarbons from a known form of the
spectrum. However, an attempt to analyze data obtained
from two or more chemosensitive elements that react
differently to changes in gas concentration showed
insufficient effectiveness of this method in the described
task.
      </p>
      <p>
        The problem of calculating the concentration of
hydrocarbons by using a known form of the spectrum can be
solved not only by using the least squares method. Other
method to solve similar tasks were presented in work [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
However, we intend to propose a different kind of solution
for this problem. This data analysis task is characterized by a
lack of information about the data structure, dependencies
between data, and the distribution of analyzed indicators.
Under these conditions, the best solution is to use neural
networks to create a neural network model that can
determine the concentration of hydrocarbons by the shape of
the spectrum. This is due to the ability of neural networks to
learn and model nonlinear processes while working with data
that does not have clear relationships and dependencies.
      </p>
      <p>However, the usage of neural networks is associated with
a number of difficulties. In particular, we need to choose the
network architecture that is appropriate for the task, as well
as determine the values of hyperparameters that would allow
us to solve the problem in the best way using the available
data. With this approach, we will have to go through all the
architecture and hyperparameters options, and choose a
specific set that will give the best results of solving the
problem among the presented options.</p>
    </sec>
    <sec id="sec-2">
      <title>II. CHOICE OF NEURAL NETWORK ARCHITECTURE</title>
      <p>In the described case, we solve the problem of predicting
the gas concentration based on the available values of the
spectrum shape taken from two sensors. At the same time,
the spectrum data taken from specific sensor does not depend
on data of other sensor in any way and does not form any
clear sequence. Each element of the source data is a
onedimensional array of fluorescence intensities at different
wavelengths, taken for a specific concentration of various
hydrocarbons in the air.</p>
      <p>
        Prediction problems are very often solved by using direct
propagation networks. The basis of networks of this type is a
multi-layer perceptron, which is widely used for data
processing in modeling, identifying various situations, and
predicting any events or values [
        <xref ref-type="bibr" rid="ref10 ref11 ref12 ref13 ref14">9-14</xref>
        ]. Combined with the
format of the available data, a multi-layer perceptron is a
very promising solution. For this reason, it was decided to
choose an architecture based on the use of a multi-layer
perceptron for further research.
      </p>
      <p>III. NEURAL NETWORK HYPERPARAMETERS SELECTION</p>
      <p>Neural network hyperparameters are parameters that are
used during network training, but do not change in the
process. These include parameters such as:
• Learning rate.
• Neuron activation functions.
• Optimization algorithm.
• The batch size (Batch Size).
• Number of neurons in hidden layers</p>
      <p>The difficulty of choosing hyperparameters is that the
choice must satisfy two conditions – solve the problem at the
lowest values of prediction errors and provide sufficient
generalizing ability of the network to avoid overfitting [6].
output data of training results and network predictions, was
implemented.</p>
      <p>There are various approaches for selecting the values of
neural network hyperparameters [7,8]. The most popular
method is called Grid Search, which could be described as
searching for combinations of all the proposed values of
hyperparameters in the network and selection of the best
combination based on a certain metric, such as the deviation
of predicted values from true values, in ppm in our case. It
was decided to use this approach in this work.</p>
      <p>
        Each of the sensor elements used in the experiment
provides data in form of an array of 2048 fluorescence
intensity values at different wavelengths. A detailed study of
the data allowed us to determine that out of 2048 channels
provided by each sensor, values of only 882 responded to
changes in concentration. Data from two sensors was used
simultaneously during network training. Thus, since
following above statements, the data used for network
training is a one-dimensional array of 1764 elements
representing fluorescence intensities captured by detectors
from two sensor elements consisting of different
chemosensory materials, characterized by surface
modification of the carrier matrix or the use of various
DBMBF2 derivatives[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], the number of input neurons was
assumed to be equal to the number of available elements –
1764 to be exact. As options of the number of neurons in the
hidden layers, the products of the number of input neurons
by various powers of the number 2 were accepted. Thus,
options like 220, 441, 882, 1764, 3528 neurons per hidden
layer were accepted. 1,2,3 and 4 layers were the acceptable
number of hidden layers.
      </p>
      <p>The options of optimization algorithms was represented
by such algorithms as Adam, Adagrad, Adadelta, SGD
(Stochastic Gradient Descent).</p>
      <p>The options of activation functions for hidden layers
consisted of ReLU, LeakyReLU, Tanh (hyperbolic tangent),
sigmoid, and linear function.</p>
      <p>The learning speed was represented by values from 0.001
to 0.0001 with step of 0.0001.</p>
      <p>
        Thus, all combinations of the parameters of neural
networks were trained and validated using cross-validation
on a samples of fluorescence intensity and concentration
values obtained from sensors during the experiment
described in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], and among them one with the lowest
average error of cross-validation, having values k=10, was
selected.
      </p>
      <p>As a result, the following parameters of the neural
network prevailed:
• Number of hidden layers: 3;
• Number of neurons in hidden layers: 882, 882 and 220
in series;
• Activation function of hidden layers of neurons: ReLU;
• Learning rate: 0.0004;
• Optimization algorithm: Adagrad.</p>
      <p>IV. EVALUATION OF THE RESULTING NETWORK MODEL</p>
      <p>To evaluate the obtained hyperparameters, a software
tool, which was used to train a neural network with the
proposed parameters and available data, as well as to obtain
The software tool that was mentioned above consists of
two components:</p>
      <p>• A server-side program that directly trains the network
using the capabilities of the supercomputer of the Samara
national research University, by utilizing CUDA cores
through Python libraries, TensorFlow and Keras to be exact;
• A client application written in the Java using libraries
such as Swing, for providing GUI, JSch to connect to server
and control training process and Apache Commons to obtain
data after training finishes. This application loads the Python
program, and transfers data, used to train the network, to the
server. It also was controlling the start of training and
receiving output results obtained as a result of training the
network and predicting gas concentration values on testing
data-sets.</p>
      <p>Screenshot of the operation of this application is shown
in figure 1.</p>
      <p>This application was used to test the previously obtained
set of hyperparameters by training network on 1,376
examples of sensor measurements, with concentrations
presented in fugures 2, 3 and 4.</p>
      <p>Cross-validation by the K-Fold method, where k=10, was
used to ensure validity of our results, which gave us the
prediction results for benzene concentrations shown in figure
5.</p>
      <p>The same set of hyperparameters was applied to training
neural networks used for prediction of concentrations of
toluene and p-xylene. The results of k-fold cross-validation
for those neural networks is shown in figures 6 and 7.</p>
      <p>As you can see from the picture, the predicted
concentration values are very close to the real ones. The
average error rate during validation was 8 ppm, when
measuring benzene with evenly distributed concentrations
equal to 30, 60, 100, 133, 171, 200, 240 and 300 ppm. This
confirms that the multilayer perceptron with the architecture
presented in this paper can be used in the task of analyzing
spectral data using two or more sensors, which will allow us
to obtain a sufficiently high accuracy of predicting gas
concentrations.</p>
    </sec>
    <sec id="sec-3">
      <title>V. IMPROVEMENTS</title>
      <p>Despite the fact that the obtained result of selecting
hyperparameters in training already shows results close to
real ones, it is possible to achieve even greater accuracy by
selecting hyperparameters using evolutionary algorithms,
such as the genetic algorithm, which has been growing in
popularity in recent years when performing this task.</p>
    </sec>
    <sec id="sec-4">
      <title>ACKNOWLEDGMENT</title>
      <p>The research was supported by the Ministry of Science
and Higher Education of the Russian Federation (Grant #
0777-2020-0017) and partially funded by RFBR, project
number # 19-29-01135.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>D.</given-names>
            <surname>Ionov</surname>
          </string-name>
          , G. Yurasik,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kononevich</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Sazhnikov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Muzafarov</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Alfimov</surname>
          </string-name>
          , “
          <article-title>Simple Fluorescent Sensor for Simultaneous Selective Quantification of Benzene, Toluene and Xylene in a Multicomponent Mixture,” Procedia Eng</article-title>
          ., vol.
          <volume>168</volume>
          , pp.
          <fpage>341</fpage>
          -
          <lpage>345</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Ionov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Yurasik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Antonov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Sazhnikov</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Alfimov</surname>
          </string-name>
          , “
          <article-title>Model of formation of exciplexes of dibenzoylmethanate boron difluoride with aromatic hydrocarbons on the surface of silica,” High energy chemistry</article-title>
          , vol.
          <volume>49</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>210</fpage>
          -
          <lpage>215</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>D.</given-names>
            <surname>Ionov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Sazhnikov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Yurasik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Safonov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kononevich</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Alfimov</surname>
          </string-name>
          , “
          <article-title>Exciplexes Of Fluorine And Methyl Derivatives Of Boron Dibenzoyl Methanate With Benzene And Toluene On The Surface Of Trimethylsilylated Aerosil,” High energy chemistry</article-title>
          , vol.
          <volume>52</volume>
          , no.
          <issue>6</issue>
          , pp.
          <fpage>473</fpage>
          -
          <lpage>479</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>N.</given-names>
            <surname>Vasilyev</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Morozov</surname>
          </string-name>
          , “
          <article-title>Identification of substances according to strongly distorted measurement errors of the spectra</article-title>
          ,”
          <source>Computer Optics</source>
          , vol.
          <volume>38</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>856</fpage>
          -
          <lpage>865</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Maeder</surname>
          </string-name>
          and Y.
          <string-name>
            <surname>-M. Neuhold</surname>
          </string-name>
          , “
          <article-title>Practical Data Analysis in Chemistry,” Data Handling in Science and Technology</article-title>
          , vol.
          <volume>26</volume>
          , pp.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>E.</given-names>
            <surname>Watanabe</surname>
          </string-name>
          and
          <string-name>
            <given-names>H.</given-names>
            <surname>Shimizu</surname>
          </string-name>
          ,
          <article-title>"Relationships between internal representation and generalization ability in multi layered neural network for binary pattern classification problem,"</article-title>
          <source>Proceedings of International Conference on Neural Networks (IJCNN)</source>
          , Nagoya, Japan, vol.
          <volume>2</volume>
          , pp.
          <fpage>1736</fpage>
          -
          <lpage>1739</lpage>
          ,
          <year>1993</year>
          . DOI:
          <volume>10</volume>
          .1109/IJCNN.
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>V.</given-names>
            <surname>Tsaregorodcev</surname>
          </string-name>
          , “
          <article-title>Determining the optimal size of the reverse propagation neural network by comparing the average values of modules weights of synapses,”</article-title>
          <source>Proceedings of the 14th international conference on Neurocybernetics, Rostov-on-don</source>
          , pp.
          <fpage>60</fpage>
          -
          <lpage>64</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>A.</given-names>
            <surname>Larko</surname>
          </string-name>
          , “
          <article-title>Optimizing the size of the reverse propagation neural network” [Online]</article-title>
          . URL: http://www.sciteclibrary.ru/rus/catalog/page s/8621.html.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>V.</given-names>
            <surname>Gridin</surname>
          </string-name>
          , “
          <article-title>Reverse propagation neural network size optimization,” Proceedings of the Scientific and practical seminar New information technologies in automated systems</article-title>
          , Moscow, pp.
          <fpage>270</fpage>
          -
          <lpage>273</lpage>
          ,
          <year>2016</year>
          ,
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J.</given-names>
            <surname>El Haddad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Villot-Kadri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ismael</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Gal-lou, K</article-title>
          . Michel, “
          <article-title>Artificial neural network for on-site quantitative analysis of soils using laser induced breakdown spectroscopy,”</article-title>
          <source>Spectrochimica Acta Part B: Atomic Spectroscopy</source>
          , vol.
          <volume>79</volume>
          -
          <issue>80</issue>
          , pp.
          <fpage>51</fpage>
          -
          <lpage>57</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>B.</given-names>
            <surname>Kuang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Tekin</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.M.</given-names>
            <surname>Mouazen</surname>
          </string-name>
          , “
          <article-title>Comparison between artificial neural network and partial least squares for on-live visible and near infrared spectroscopy measurement of soil organic carbon</article-title>
          ,
          <source>pH and clay content,” Soil and Tillage Research</source>
          , vol.
          <volume>146</volume>
          , pp.
          <fpage>243</fpage>
          -
          <lpage>252</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>A.M. Ahmed</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Duran</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Zweiri</surname>
            and
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Smith</surname>
          </string-name>
          , “
          <article-title>Quantitative analysis of petroleum hydrocarbon contaminated soils using spectroscopy, spectral unmixing and deep neural networks</article-title>
          ,
          <source>” Proceedings Image and Signal Processing for Remote Sensing</source>
          , Berlin, Germany, vol.
          <volume>10789</volume>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhao</surname>
          </string-name>
          , “
          <article-title>A spectral analysis based heteroscedastic model for the estimation of value at risk</article-title>
          ,”
          <source>The Journal of Risk Finance</source>
          , vol.
          <volume>19</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>295</fpage>
          -
          <lpage>314</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>E.C.</given-names>
            <surname>Ferreira</surname>
          </string-name>
          ,
          <string-name>
            <surname>D.M.B.P. Milori</surname>
            ,
            <given-names>E.J.</given-names>
          </string-name>
          <string-name>
            <surname>Fer-reira</surname>
          </string-name>
          , R.M. da
          <string-name>
            <surname>Silva</surname>
          </string-name>
          , L. Martin-Neto, “
          <article-title>Artificial neural network for Cu quantitative determination in soil using a portable Laser Induced Breakdown Spectroscopy system</article-title>
          ,”
          <source>Spectrochimica Acta Part B: Atomic Spectroscopy</source>
          , vol.
          <volume>63</volume>
          , no.
          <issue>10</issue>
          , pp.
          <fpage>1216</fpage>
          -
          <lpage>1220</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>