<!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>Regression Trees for System Models and Prediction</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Swantje Plambeck</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Görschwin Fey</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Hamburg University of Technology</institution>
          ,
          <addr-line>Am Schwarzenberg-Campus 3, 21073 Hamburg</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Today's systems are highly complex and often appear as black-box systems because of unknown internal functionalities. Thus, retrieving a model of a system is possible only based on observations of the system. We explore the usage of regression trees to learn a model of a complex system with continuous signals. Our approach for learning a regression tree uses observed inputs and outputs of a system from bounded history. We describe how to construct such a model and analyze the accuracy of predictions. Results show the applicability of regression tree models for continuous systems.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Regression Trees</kwd>
        <kwd>System Models</kwd>
        <kwd>Continuous Systems</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>approximation. In this paper, we consider systems with real-valued input and output signals as
[11], but examine capabilities of regression trees as system models.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Modeling Approach</title>
      <sec id="sec-2-1">
        <title>2.1. Preliminaries</title>
        <p>Definition 1 (Regression Tree). A regression tree is a tree  = (, ) consisting of a set of
nodes  and a set of edges . The regression tree represents a function  :  → R that maps
a feature vector f = [1, ..., ] from the domain  to a real number. The set of nodes without
outgoing edges  are called leaf nodes or leaves. All other nodes  ∖  are inner nodes [12].</p>
        <p>We assume a binary regression tree where each inner node has exactly two outgoing edges. A
regression tree  is built based on a learning set ℒ consisting of a set of labeled feature vectors
(f , ) with f ∈  and  ∈ R. Every node  in the tree represents a subset  ⊆ ℒ where each
inner node splits its set into disjoint subsets 1 , 2 associated to the successors 1, 2 of .
The leaf nodes have a label representing the output of the regression function . The label  is
calculated as the mean value over all labels in the set  as follows
 =
1</p>
        <p>∑︁
| | (f,)∈
.</p>
        <p>
          (
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
        </p>
        <p>Regression trees tend to overfit the learning data. To overcome overfitting, there exist multiple
strategies. Here, we apply a binning step before tree learning as part of the algorithm – meaning
that equidistant discretization intervals (bins) are used for all real-valued features.
2.2. Learning Regression Tree Models of Systems
We consider a black-box system that receives a possibly multi-dimensional input i of dimension
 and outputs a one-dimensional output  ∈ R. This is a valid assumption, as usually a single
value of interest is observed at a time. If several outputs are considered, multiple regression
tree models can be learned in parallel. Inputs are categorical or real-valued. The observation
of a system results in sequences ˜s = ⟨(i0, 0), (i1, 1), . . . ⟩ representing sampled inputs and
outputs over discrete time points. We assume to observe the system with bounded history,
which is a practical requirement assuming that limited memory is available. Thus, the learning
data results in observations s = ⟨(i0, 0), . . . , (iN,  )⟩ of length  + 1 with  ∈ N. The
regression tree requires a learning set ℒ consisting of tuples (f , ). Given a sequence s, we map
to an observation for the learning set as follows
f = ⟨11, . . . , , 1, 21, . . . , 2, . . . , 1 , . . . ,  ⟩,  =  .</p>
        <p>
          1
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
        </p>
        <p>With this mapping, the learned regression tree represents the prediction of the next output
based on the knowledge about all previous in- and outputs of the last  time steps. The
regression tree’s prediction accuracy is validated on an evaluation set ℰ consisting of tuples of
4
E
(a) Example of a Discrete System
(b) Example of a Continuous Signal
feature vectors and a known next output (f , ). We use the mean prediction error (Eq. 3)
as a quality metric for the learned regression tree model.</p>
        <p>=
1</p>
        <p>
          ∑︁
|ℰ | (f,)∈ℰ
| − (f )|
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>2.3. Theoretical Limitations</title>
        <p>For an optimal model, the prediction (f ) always perfectly matches the exact output .
Regression tree models according to our approach have some theoretical limitations introducing
approximations that lead to imperfect predictions. A first reason for approximations is the usage
of bounded history, because the information from previous time steps might not be suficient to
fully determine the system’s status and, thus, determine an upcoming output.
Example 1. Consider that Fig. 1a shows a valid, discrete abstraction of a system, where circles
1 to 4 represent states of the system, while arrows are transitions labeled with observations from
the alphabet {, , , , }. Because of the two self-loops with observation  at state 1 and 3,
bounded history does not always allow to clearly determine, in which of these states the system is
and, thus, what the next observed symbol will be.</p>
        <p>
          Further limitations result from the sampling of the time-continuous signals and the fact that
a regression tree has a finite set of results – thus, approximating the actual real-valued output.
Example 2. Considering a system with an output signal as in Fig. 1b, we could achieve optimal
predictions under the following conditions (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) there is no noise or measurement error, (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) the
sampling of the signal is happening with a sampling rate that matches the signal’s periodicity, (
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
we sample the output signal always at the exact same sampling points for each observation. If any
of the above conditions does not hold, approximations might be introduced to the learned model.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Experimental Evaluation</title>
      <p>In the following, we present an empirical evaluation on example systems. For all examples 150
simulation runs are used for learning, while 50 additional simulation runs provide evaluation
data. Sampling periods  are provided with respect to the simulation time unit and, thus, come
without physical unit. The number of bins for regression tree learning is set to 30 which was
empirically found suitable within the interval of 10 to 100 bins.</p>
      <p>Water Reservoir A water reservoir with one tank. The input signals are the flow rates at
inflow and outflow valves while the output is the water level of the reservoir. The input and
output flow rates are alternating, periodic rectangular functions describing modes of inflow and
outflow. The system is modeled in Matlab and the total duration of one simulation run is 50
time units.</p>
      <p>Boiler A temperature control system based on [13]. The input signal is the
reference temperature which changes every 50 time units randomly to values from the set
{18 ∘ C, 19 ∘ C, . . . , 25 ∘ C}. The output signal is the water temperature of the boiler starting at
15 ∘ C. The overall simulation time of one run is 1400 time units.</p>
      <p>0.006
0.004

0.002
0 2
4

6
8</p>
      <p>10
(a) Waterreservoir</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion &amp; Future Work</title>
      <p>We presented an approach to model complex systems using regression trees allowing to include
continuous signals from observations of bounded history without resetting the system to an
initial state. We introduced a mapping from system observations to labeled feature vectors for
regression tree learning. The resulting regression tree model represents a decision rule that
predicts a next output signal based on previous behavior of the system. Future work considers
to evaluate further strategies for regression tree pruning and analysis of the influence of the
sampling frequency as well as discretization-related approximations in modeling.
This work is partially funded by BMBF project AGenC no. 01IS22047A.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Corso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Moss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Koren</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kochenderfer</surname>
          </string-name>
          ,
          <article-title>A survey of algorithms for black-box safety validation of cyber-physical systems</article-title>
          ,
          <source>J. Artif. Int. Res</source>
          .
          <volume>72</volume>
          (
          <year>2021</year>
          ). doi:
          <volume>10</volume>
          .1613/ jair.1.12716.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B. K.</given-names>
            <surname>Aichernig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Bloem</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ebrahimi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Horn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pernkopf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Roth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rupp</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Tappler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Tranninger</surname>
          </string-name>
          ,
          <article-title>Learning a behavior model of hybrid systems through combining modelbased testing and machine learning</article-title>
          ,
          <source>in: Testing Software and Systems</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>3</fpage>
          -
          <lpage>21</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Plambeck</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Schyga</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hinckeldeyn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kreutzfeldt</surname>
          </string-name>
          , G. Fey,
          <article-title>Automata learning for automated test generation of real time localization systems</article-title>
          ,
          <year>2021</year>
          . arXiv:
          <volume>2105</volume>
          .
          <fpage>11911</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Maier</surname>
          </string-name>
          ,
          <article-title>Online passive learning of timed automata for cyber-physical production systems</article-title>
          ,
          <source>in: IEEE International Conference on Industrial Informatics (INDIN)</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>60</fpage>
          -
          <lpage>66</lpage>
          . doi:
          <volume>10</volume>
          .1109/INDIN.
          <year>2014</year>
          .
          <volume>6945484</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>F. H.</given-names>
            <surname>Bahnsen</surname>
          </string-name>
          , G. Fey,
          <article-title>Local monitoring of embedded applications and devices using artificial neural networks</article-title>
          ,
          <source>in: Euromicro Conference on Digital System Design (DSD)</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>485</fpage>
          -
          <lpage>491</lpage>
          . doi:
          <volume>10</volume>
          .1109/DSD.
          <year>2019</year>
          .
          <volume>00076</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>F.</given-names>
            <surname>Howar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Stefen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Merten</surname>
          </string-name>
          ,
          <article-title>Automata learning with automated alphabet abstraction refinement</article-title>
          , in: Verification,
          <string-name>
            <given-names>Model</given-names>
            <surname>Checking</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Abstract</given-names>
            <surname>Interpretation</surname>
          </string-name>
          ,
          <year>2011</year>
          , pp.
          <fpage>263</fpage>
          -
          <lpage>277</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>642</fpage>
          -18275-4\_
          <fpage>19</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>K. P.</given-names>
            <surname>Murphy</surname>
          </string-name>
          , et al.,
          <article-title>Passively learning finite automata</article-title>
          ,
          <source>Technical Report, Santa Fe Institute</source>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>D.</given-names>
            <surname>Angluin</surname>
          </string-name>
          ,
          <article-title>Learning regular sets from queries and counterexamples</article-title>
          ,
          <source>Information and Computation</source>
          <volume>75</volume>
          (
          <year>1987</year>
          ). doi:
          <volume>10</volume>
          .1016/
          <fpage>0890</fpage>
          -
          <lpage>5401</lpage>
          (
          <issue>87</issue>
          )
          <fpage>90052</fpage>
          -
          <lpage>6</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Merten</surname>
          </string-name>
          ,
          <article-title>Active automata learning for real life applications</article-title>
          ,
          <source>Ph.D. thesis, Technische Universität Dortmund</source>
          ,
          <year>2013</year>
          . doi:
          <volume>10</volume>
          .17877/DE290R-5169.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>H.</given-names>
            <surname>Urbat</surname>
          </string-name>
          , L. Schröder,
          <article-title>Automata learning: An algebraic approach</article-title>
          , in: ACM/IEEE Symposium on Logic in Computer Science,
          <year>2020</year>
          , p.
          <fpage>900</fpage>
          -
          <lpage>914</lpage>
          . doi:
          <volume>10</volume>
          .1145/3373718.3394775.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Plambeck</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Schammer</surname>
          </string-name>
          , G. Fey,
          <article-title>On the viability of decision trees for learning models of systems</article-title>
          , in: Asia and
          <string-name>
            <given-names>South</given-names>
            <surname>Pacific Design Automation Conference (ASP-DAC)</surname>
          </string-name>
          ,
          <year>2022</year>
          , pp.
          <fpage>696</fpage>
          -
          <lpage>701</lpage>
          . doi:
          <volume>10</volume>
          .1109/ASP-DAC52403.
          <year>2022</year>
          .
          <volume>9712579</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Berk</surname>
          </string-name>
          ,
          <source>Classification and Regression Trees (CART)</source>
          , Springer, New York,
          <year>2008</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>65</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-0-
          <fpage>387</fpage>
          -77501-
          <issue>2</issue>
          _
          <fpage>3</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>MathWorks</surname>
          </string-name>
          ,
          <article-title>Bang-bang control using temporal logic</article-title>
          , https://mathworks.com/help/ simulink/slref/modeling
          <article-title>-discrete-message-transport-systems</article-title>
          .html,
          <year>2022</year>
          . Accessed:
          <volume>13</volume>
          .
          <fpage>07</fpage>
          .22.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>