<!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>RECONSTRUCTION OF ORDINARY DIFFERENTIAL EQUATIONS FROM IRREGULARLY DISTRIBUTED TIME- SERIES DATA</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>A.G. Golovkina</string-name>
          <email>a.golovkina@spbu.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>V.A. Kozynchenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>N.V. Kulabukhova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Saint Petersburg State University</institution>
          ,
          <addr-line>7/9 Universitetskaya emb., Saint Petersburg, 199034</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <fpage>5</fpage>
      <lpage>9</lpage>
      <abstract>
        <p>The present paper aims to develop a reconstruction method for the right side of a system of ODEs in polynomial form from sparse and irregularly distributed time-series data. This method doesn't require any additional knowledge about the system and has several steps. The scarcity of the data through the trajectory length is compensated by the artificially generated points using approximating trigonometrical polynomials. Then, we get uniformly spread data points with the step conditioned by the desired accuracy of derivatives approximation in ODEs. This let to further use conventional reconstruction algorithms described in the literature. We test the proposed method on time series data generated from known ODE models in a two-dimensional system. We quantify the accuracy of the reconstruction for the system of ODEs as a function of the amount of data used by the method. Further, we solve the reconstructed system of ODEs and compare the solution to the original time series data. The method developed and validated here can now be applied to large data sets for physical and biological systems for which there is no known system of ODEs.</p>
      </abstract>
      <kwd-group>
        <kwd>System identification</kwd>
        <kwd>ODEs reconstruction</kwd>
        <kwd>dynamical systems</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>The modeling and identification of dynamical systems from time-series data is a field of
increasing interest mainly because of forecasting and model-based control applications. A
mathematical description of interconnections between the measured data is a helpful tool to
understand the considered dynamical system, predict its behavior or respond to different control
actions.</p>
      <p>System identification problems can be categorized into two groups: reconstruction of the
mathematical form of the measured data (i.e. a solution of the system) or the reconstruction of the
equations of motion of the underlying system. Irrelative to the type of problem, when the structure of
the model is known the only necessary thing is to estimate the unknown coefficients from the
timeseries data either in general solution or in the right side of the differential equation. Otherwise,
identification requires a prior step of choosing the most suitable mathematical form. The situation
becomes more complicated when the measured data demonstrates nonnegligible nonlinear system
dynamics. Unlike linear models for which a complete theory exists, nonlinear modeling still lacks
well-established identification algorithms.</p>
      <p>The previous work of the authors [1] introduces an algorithm of learning dynamical systems
from time-series data including both of mentioned above methods as two sequential steps. At first,
reconstruction of ordinary differential equations (ODEs) with a polynomial right side with only one
measured system trajectory. Then, applying the Taylor mapping technique to represent the solution of
ODEs. The solution is written in a polynomial form establishing a relationship between the phase
variables at the current and past moments of time. In other words, a regression formula with
predefined weights initialized from the reconstructed ODEs. Such a representation is convenient for
further fine-tuning of the weights according to other available training data.</p>
      <p>The present paper aims to strengthen the previous research [1] by enhancing a reconstruction
algorithm of ODEs with polynomial right side when only rare or irregular measurements are available.
Under ideal conditions, i.e. noise-free and high sampling frequency a variety of schemes, including
sparse regression schemes [2-3], reservoir computing [4] and neural approaches [5-6]. However, real
life data are often corrupted by noise and/or observed partially. In such situations, the
abovementioned approaches are most likely to fail to uncover unknown governing equations. To address this
challenge, we need to jointly solve the reconstruction of governing equations and the identification of
the hidden dynamics [1].</p>
      <p>Here, we develop a method to build a polynomial right side of a system of ODEs that will
correspond to the time-series data of a dynamical system. This method doesn’t need any input except
the time series data and includes several steps. We first identify a basis to approximate the sparse time
series data. Here we use trigonometrical bases, but it can be chosen arbitrarily. The second step is an
augmentation of a measured system trajectory by a linear segment to satisfy the periodicity condition
at the ends of the time interval. Then, a choice both the order of trigonometrical polynomials and data
points used for approximation. After the best approximation function consistent with the measured
data is found, we use it further for data points generation through the trajectory length and solving a
system of linear equations. We test our ODEs reconstruction method on time series data generated
from known ODEs models in a two-dimensional system. We quantify the accuracy of the
reconstruction for the system of ODEs as a function of the amount of data used by the method.
Further, we solve the reconstructed system of ODEs and compare the solution to the original time
series data. The method developed and validated here can now be applied to large data sets for
physical and biological systems for which there is no known system of ODEs.</p>
      <p>The rest of the paper is organized as follows. Sec. 2 introduce a step-by-step description of the
proposed reconstruction algorithm, while sec. 3 contains the presentation of a test model with the
known system of ODEs and the results of its equation reconstruction in polynomial form. Sec. 4 draws
the conclusion remarks and discusses the obtained results.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Reconstruction algorithm</title>
      <p>Let us denote the set of the parameters describing the process as vector 
with changing in
time components   ( ),  = ̅1̅̅,̅̅. And we suppose to know the values of the vector function  ( )
measured in</p>
      <p>discrete times  0, … ,   +1:  ( 0), … ,  (  +1).</p>
      <p>
        The main our assumption about the collected time-series data describing the multi-parametric
dynamical process is that it approximately follows an autonomous ODEs system. We will find its
right-hand side in polynomial form, so that the system looks like
Equation (
        <xref ref-type="bibr" rid="ref1">2</xref>
        ) can be expressed in matrix form
where:
 =
 ( 1)  [2]( 1)
 ( 2)  [2]( 2)
⋮
      </p>
      <p>⋮
(
 (  )  [2](  )</p>
      <p>=  ,
…  [ ]( 1)
…  [ ]( 2) ,
⋱</p>
      <p>⋮
…  [ ](  ))
 = ( 1, … ,   ) ,
where  is an independent variable,  ∈ ℝ is a state vector corresponding to the parameters of the
dynamical process, and  [ ] means k-th Kroneker’s power of vector  . For example, for 
we have  [2] = ( 12,  1 2,  22),  [3] = ( 13,  12 2,  1 22,  23) after reduction of the same terms.
= ( 1,  2)</p>
      <p>Matrices   are unknown and should be found from the measurements that we have
solving the system of liner equations, that comes in by replacing the derivatives 
 ( 0), … ,  (  +1). If the available data is of high sampling frequency, we can easily compute  
in the left side of
(1) with finite differences:
 (  +1)− (  −1)
  +1−  −1
=
∑ =0    [ ](  ),  = ̅1̅̅,̅̅̅.</p>
      <p>
        [ ](  ) = ( [ ](  )) ,
) .
(1)
(
        <xref ref-type="bibr" rid="ref1">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">3</xref>
        )
(
        <xref ref-type="bibr" rid="ref3">4</xref>
        )
 = (
 ( 2) −  ( 0)⁄
 2 −  0 , … ,
 (  +1) −  (  −1)⁄
      </p>
      <p>+1 −   −1</p>
      <p>=  +  2 + ⋯ +   .</p>
      <p>
        The system (
        <xref ref-type="bibr" rid="ref2">3</xref>
        ) includes  ⋅ ( +  2 + ⋯ +   ) unknowns and  ⋅ 
equations. Here  is the
dimension of the vector  and   ,  ≥ 2 is the dimension of its Kronecker degree  [ ]. Thus, to obtain
a system with an equal number of equations and unknowns, the following condition must be met for
the number of measurements M
      </p>
      <p>
        However, in case of sparse measurements in time, this approach can hardly be applied
because system (
        <xref ref-type="bibr" rid="ref2">3</xref>
        ) may be underdetermined (condition (
        <xref ref-type="bibr" rid="ref3">4</xref>
        ) is violated) as well as a derivative’s finite
difference approximation can have insufficient precision.
      </p>
      <p>To address this challenge, we propose at first to approximate the collected measurement by a
set of trigonometrical polynomials. The choice is due to the uniform properties of this set of basis
functions. For example, approximating a function by finite sum of Chebyshev polynomials has
drawbacks related to the behavior of their derivatives [7]. The algorithm includes the following
sequential steps.
1. Periodization of the input dataset. Choosing a closing coefficient (  ).</p>
      <p>Let us denote the lattice  0: { 0 ∈ [ 0, . . ,   +1],  = ̅1̅,̅̅̅̅̅} where the data  0: { ( 0)} × 0 is
0
collected. In general case the collected data doesn’t correspond to a periodic or oscillational dynamic
process, meaning that  0( 10) ≠  0(  00 ). To fulfill this condition necessary for trigonometric
approximation, we introduce a close coefficient   &gt; 1 that enlarge the given time interval till the
value</p>
      <p>=  0 +   (  +1 −  0). This complements the lattice  0
 11: { 111, …  1111} , where  111 =   00 and  1111 =   . Let  1 =  0 ∪  11 and lattice function  1 =
 0 ∪  11, where  11: { ( 11)} × 11 = {   11 +   } =1̅̅,̅̅̅̅1̅1̅ . Unknown coefficients are defined from
with the following
values
the following conditions:
 =1̅̅̅,̅̅
{
  01 =   11
  11</p>
      <p>+  
  0 0</p>
      <p>
        =    111 +  
Satisfying to (
        <xref ref-type="bibr" rid="ref4">5</xref>
        ) means that  1( 11) =  1(  1 1) where  1 =  0 +  11.
2. Determine coefficients of trigonometrical polynomials. Choosing an order of polynomials (K).
which are used for the weight coefficients 
formula
      </p>
      <p>
        The order of trigonometrical polynomials K defines the number of lattice points  2 = 2 + 1

0
, 


, 
  ,  = ̅1̅̅,̅̅,  = 1̅̅,̅̅̅ calculation in approximation
(
        <xref ref-type="bibr" rid="ref4">5</xref>
        )
(
        <xref ref-type="bibr" rid="ref5">6</xref>
        )
  ( ) = 21  0 + ∑ =1(   cos(   ) +    sin(   )) ,  = ̅1̅̅,̅̅
      </p>
      <p>2</p>
      <p>where   =</p>
      <p>,  =   −  0,  - a lattice point where the polynomial value is computed.</p>
      <p>
        Let us choose  2 points from the lattice  1 being at an equal distance from each other and
select corresponding lattice function values  1. Those points form lattice  2: { 12, … ,  2 2} and lattice
function  2: { ( 2)} × 2. According to [8], the unknown coefficients in (
        <xref ref-type="bibr" rid="ref5">6</xref>
        ) are found from the
equality condition of trigonometrical polynomial values and lattice function in the  2 mesh nodes
 2 =   ( 2). It should be noted that we take an odd number of nodes. In this case, the formulas are

 0 =
2
 2  =1
 2
∑   2 ,

  =
2
 2  =1
 2
∑   2 cos
2
 2
,

  =
2
 2  =1
 2
∑   2 sin
2
 2
.
  ,  = ̅1̅,̅̅̅̅5̅ and  5: { ( 5)} × 5
be solved with a suitable numerical method.
3. Generating a dense lattice for derivatives approximation. Choosing a stride (  ).
 31: { 14, … ,  4 4 } and lattice function  4: { ( 4)} × 4.
      </p>
      <p>
        Trigonometrical approximation (
        <xref ref-type="bibr" rid="ref5">6</xref>
        ) fitted in the lattice points  2 is used further to generate a
new lattice function  3: { ( 3)} × 3 with a mesh  3: { 13, … ,  3 3} frequent enough to approximate
derivatives (
        <xref ref-type="bibr" rid="ref1">2</xref>
        ) with central finite differences. Before doing that and solving a linear system (
        <xref ref-type="bibr" rid="ref2">3</xref>
        ) to

obtain necessary matrices   ,  = ̅1̅,̅̅̅ in (1), we should delete the part of the lattice  31 = { 3:  3 &gt;
 +1,  = ̅1̅,̅̅̅̅̅} corresponding to the added linear closer in p.1. It results in a lattice  4 =  3 ∖
3
      </p>
      <p>
        Condition (
        <xref ref-type="bibr" rid="ref3">4</xref>
        ) defines the necessary number of points we should take from  4 to solve (
        <xref ref-type="bibr" rid="ref2">3</xref>
        ). For
sake of convenience, let us introduce a stride parameter   to resample  4 to M groups of 3 points
(2 outermost to calculate the finite difference in the central). Then,  5: { 15, … ,  5 5
},  5 =  14 +  ⋅
defines the matrix A and vector B in the linear system (
        <xref ref-type="bibr" rid="ref2">3</xref>
        ) that can
      </p>
      <p>
        The algorithm described above has three parameters introduced at each step that make an
impact on the solution of (
        <xref ref-type="bibr" rid="ref2">3</xref>
        ). Thus, generally they should be chosen as a solution of optimization
measurements that we have.
problem   ,  ,   = argmin‖ −  ‖, where 
is a numerical solution of (1) and
      </p>
      <p>is the</p>
    </sec>
    <sec id="sec-3">
      <title>3. Test model and numerical results</title>
      <p>As a training dataset for the introduced reconstruction algorithms let us consider points
( ( ),  ( )) artificially generated by a model of two-dimensional particle motion in cylindrical
deflector:</p>
      <p>̇ =  ,
{
 ̇ = −2 +
 2

calculating unknown matrices   ,  = ̅1̅,̅̅̅.</p>
      <p>
        We numerically find a particular solution of (
        <xref ref-type="bibr" rid="ref6">7</xref>
        ) at the time interval [0, 4] with the initial
condition  0: ( 0,  0) = (
        <xref ref-type="bibr" rid="ref3">−2, 4</xref>
        ), parameter
      </p>
      <p>
        = 10 and integration step ℎ = 0.01. As a training set
we consider every 20-th point in the generated trajectory, so  0 includes 20 points ( 0 = 20).
approximation (step 1), figure 1,b (blue line) illustrates  4 lattice function (step 2-3) used further for
The final reconstruction results depending on the amount of data used by the method are
presented in figure 2 (a)  0 = 20, b)  0 = 13). The blue line corresponds to the true solution of (
        <xref ref-type="bibr" rid="ref6">7</xref>
        )
 , and the red line – to  solution of (
        <xref ref-type="bibr" rid="ref6">7</xref>
        ) with the reconstructed matrices   . The title of each graphics
contains the computed values   ,  ,   minimizing the norm of deviation  from  .
a)
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>The paper introduces a reconstruction algorithm for the system of ODEs right side in
polynomial form from irregularly distributed time-series data. The presented algorithm aims to
amplify the results of the authors’ previous work [1] built on the assumption that the collected
measurements are frequently and uniformly spread in time. Although the solution of reconstructed
ODEs doesn’t fully congruent to the solution of true ODEs [fig. 2], it captures the dynamics of the
system what is more important. According to [1, 9], the reconstructed ODEs are only used for initial
weights initialization in the regression formula or neural network. After then, the weights are anyway
fine-tuned with additional data, so we claim mild requirements for the accuracy of the ODEs
reconstruction.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Acknowledgements</title>
      <p>The authors would like to thank Saint Petersburg State University for the research grant
ID: 75206008.
[1] Golovkina, A. Kozynchenko, V. Kulabukhova, N. Reconstruction and Identification of
Dynamical Systems Based on Taylor Maps // Gervasi O. et al. (eds) Computational Science and Its
Applications – ICCSA 2021. ICCSA 2021. Lecture Notes in Computer Science, vol. 12956. Springer,
2021</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Brunton</surname>
            ,
            <given-names>S. L.</given-names>
          </string-name>
          <string-name>
            <surname>Proctor</surname>
            ,
            <given-names>J. L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutz</surname>
            ,
            <given-names>J. N.</given-names>
          </string-name>
          <article-title>Discovering governing equations from data by sparse identification of nonlinear dynamical systems //</article-title>
          <source>Proceedings of the National Academy of Sciences</source>
          , vol.
          <volume>113</volume>
          , No 15, pp.
          <fpage>3932</fpage>
          -
          <lpage>3937</lpage>
          ,
          <year>2016</year>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Corbetta</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <article-title>Application of sparse identification of nonlinear dynamics for physics-informed learning</article-title>
          ,
          <source>2020 IEEE Aerospace Conference</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          ,
          <fpage>2020</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Pathak</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          et al.
          <article-title>Model-Free Prediction of Large Spatiotemporally Chaotic Systems from Data: A Reservoir Computing Approach // Physical Review Letters</article-title>
          , vol.
          <volume>120</volume>
          , issue 2,
          <fpage>2018</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Vlachas</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          R. at al.
          <article-title>Data-driven forecasting of high-dimensional chaotic systems with long shortterm memory networks //</article-title>
          <source>Proceedings of The Royal Society A</source>
          , vol.
          <volume>474</volume>
          , issue 2213,
          <year>2018</year>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Fablet</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Ouala</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Herzet</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <article-title>Bilinear Residual Neural Network for the Identification</article-title>
          and
          <source>Forecasting of Geophysical Dynamics // 26th European Signal Processing Conference (EUSIPCO)</source>
          , pp.
          <fpage>1477</fpage>
          -
          <lpage>1481</lpage>
          ,
          <year>2018</year>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Tal-Ezer</surname>
          </string-name>
          , H. Nonperiodic Trigonometric Polynomial Approximation // Journal of Scientific Computing, vol.
          <volume>60</volume>
          , pp.
          <fpage>345</fpage>
          -
          <lpage>362</lpage>
          ,
          <year>2014</year>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Hesthaven</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Gottlieb</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Gottlieb</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <article-title>Spectral Methods for Time-Dependent Problems</article-title>
          (Cambridge Monographs on Applied and
          <source>Computational Mathematics)</source>
          . Cambridge: Cambridge University Press,
          <year>2007</year>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Ivanov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Golovkina</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Iben</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          <article-title>Polynomial neural networks and Taylor maps for dynamical systems simulation</article-title>
          and learning //
          <source>Frontiers in Artificial Intelligence and Applications</source>
          , vol.
          <volume>325</volume>
          , pp.
          <fpage>1230</fpage>
          -
          <lpage>1237</lpage>
          ,
          <year>2020</year>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>