<!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>
      <journal-title-group>
        <journal-title>Workshop on Artificial Intelligence and Formal Verification, Logic, Automata, and Synthesis,
November</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>A First-Order Interval Temporal Logic for Adjacent Variables Temporal Data</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Guido Sciavicco</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Ferrara</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <volume>7</volume>
      <issue>2023</issue>
      <fpage>0000</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>Multivariate time series are a very common non-tabular type of data. In many practical cases, multivariate time series encode real-world situations that include temporal information, and, recently, machine learning from datasets of multivariate time series has become a very active area of research. Modal symbolic learning has shown itself to be a serious alternative to sub-symbolic methods such as neural networks for non-tabular data; when applied to multivariate time series, modal symbolic learning makes use propositional temporal logic such as interval temporal logic. In special cases, however, multivariate time series display an internal structure that propositional modal logics are unable to capture. In this paper, we propose a first-order extension of propositional interval temporal logic, we describe its syntax and semantics, and we study its expressive power in relationship with such special cases of multivariate time series.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;interval temporal logic</kwd>
        <kwd>expressive power</kwd>
        <kwd>machine learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        essentially based on propositional logic, with very few exceptions, and consequently limited to
tabular data. In the past few years, however, modal symbolic learning has been proposed as
a generalization of symbolic learning to modal logic, and applied to non-tabular data. Modal
logics have the ability of capturing a greater fraction of the internal structure of the instances
of a non-tabular dataset, and by enriching intelligent symbolic models, such as decision trees,
with the possibility of learning modal logic rules, one is able to extract such structure, as well as
to learn and express interesting and complex patterns. In the temporal case, for example, modal
symbolic learning is instantiated to temporal symbolic learning, and learning from temporal
datasets is accomplished with, for instance, temporal decision trees [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], which are able to extract
temporal patterns and express them using a suitable modal temporal logic. Among all possible
modal temporal logics, interval temporal logic (of which several versions exist) revealed itself to
be a a very useful tool in this regard. In a nutshell, one first sets up a set of feature extraction
functions (e.g., the mean of a set of real numbers); then one builds a set of propositional letters,
each resulting from the comparison between the result of applying one feature extraction
function on an interval of values of one temporal variable (e.g., the mean of the fever during an
interval of days is greater than a value ); finally, one is able to express a property of a (set) of
multivariate time series as an interval temporal logic formula (e.g., it is always true that during
an interval in which the mean of the fever is greater than  there exists an interval in which the
headache reaches a maximum value of pain of ′.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ], among others, a model for temporal decision trees with Halpern and Shoham’s
Modal Logic for Time Intervals (HS) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] has been designed and used to learn patterns from
datasets of multivariate time series. The logic HS is an unary propositional modal logic whose
syntax encompasses all Boolean connectives plus one unary modal operator for each Allen’s
relation between two intervals, such as during or later.
      </p>
      <p>In special cases, multivariate time series may display a richer internal structure than the
one that can be captured with propositional HS. Two prominent examples of this situation are
audio and electroencephalogram signals. In both cases, pre-processing of the original signal
(in the first case, the single sound power expressed in , in the second case the electric
power of each electrode expressed in  ) produces several temporal variables (in the first case
audio frequencies, in the second one electric frequencies) which are naturally ordered and not
mutually independent; we call such temporal variables adjacent. In this paper, we propose a
simple first-order extension of HS that allows us to capture patterns of temporal datasets of
multivariate time series with adjacent variables, by encompassing the possibility of comparing
the natural order between temporal variables as well as the possibility of relating the behaviour
of two variables in an interval of time.
2. First-Order Interval Temporal Logic for Adjacent Variables
The language of the First-Order Modal Logic for Time Intervals for Adjacent Variables (FOHSa, for
short) encompasses a numerable set of first-order variables 1, 2, . . ., a set of unary function
symbols 1, 2, . . ., arbitrary real constants, the set of comparison operators &lt;, ≤ , =, ≥ , and &gt;,
standard Boolean operators, and unary interval temporal logic operators, one for each Allen’s
relation between any two intervals on a linear order, namely ⟨⟩ (meets), ⟨⟩ (later), ⟨⟩
Modality</p>
      <p>Definition
⟨⟩ (after)
⟨⟩ (later)
⟨⟩ (begins)
⟨⟩ (ends)
⟨⟩ (during)
⟨⟩ (overlaps)
(overlaps), ⟨⟩ (during), ⟨⟩ (begins), ⟨⟩ (ends), and their inverse ones (if ⟨⟩ is an interval
operator, ⟨⟩ denotes its inverse one). Formulas of FOHSa are built using the following


 ::=
::=
::=
 ( ) |  ( ) | 
 ◁▷  |  ◁▷ 
 | ¬ |</p>
      <p>∨  | ⟨⟩ | ∀,
where  is a temporal variable,  is a first-order variable,  is a function, ◁▷∈ {&lt;, ≤ , =, ≥ , &gt;},
 ∈ R, and  ∈ {, , , , , , , , , , , }.</p>
      <p>
        Intuitively, a FOHSa formula is interpreted on a multivariate time series; towards a precise
definition of the truth relation, though, a few definitions are necessary. First, a multivariate time
series  = {1, . . . , } is said to be adjacent variables if the set of time series {1, . . . , }
is linearly ordered by a relation &lt;; the equality relation = is defined in the standard way.
Now, given the set D (the domain of all time series in  ), we say that I(D) is the set of all
intervals that can be built on D, that is I(D) = {[, ] | ,  ∈ D,  &lt; }. Moreover, let
turn, a set  = { |  ∈ N+}, and each element of a set  ∈  is a function  : R
ℱ = {1, . . . , } be a set of feature extraction function templates, where each template  is, in
→ R. A
set  represents the interpretation of a function symbol  ; since the value  ( ) is computed on

an interval [, ], the specific function that must be used to compute it depends on the quantity
 −  + 1; for example, if  is the (generalized) mean of a set of reals, computing the mean of 
on the interval [
        <xref ref-type="bibr" rid="ref3 ref7">3, 7</xref>
        ] entails collecting the values  (3), . . . ,  (7) and using the function mean
of 8 values. Observe that we intentionally overload function symbols and their interpretation, as
well as variable symbols and their interpretation, to ease the reading. A FOHSa model is a pair
the following clauses (see Tab. 1 for the semantics of the interval relations):
⟨ , ℱ ⟩, and the truth of a FOHSa formula  on a model ⟨ , ℱ ⟩ and an interval [, ] is given by
⟨, ℱ ⟩, [, ] ⊩ () ◁▷  () if
⟨, ℱ ⟩, [, ] ⊩  ◁▷ 
if there exists [, ] s.t. [, ][, ] and
⟨, ℱ ⟩, [, ] ⊩ 
⟨, ℱ ⟩, [, ] ⊩  [/ ],
if for every variable  it is the case that
where ◁▷∈ {&lt;, ≤ , =, ≥ , &gt;}.
      </p>
      <p>A typical audio signal presents a spectrum of frequencies that range roughly from 20
to 20,000. In audio signal processing of a sample, it is customary to extract its spectral
representation, facilitating their interpretation in terms of audio frequencies. To this end,
the most widespread adopted technique is known as extracting the Mel-Frequency Cepstral
Coeficients</p>
      <p>
        (MFCC) [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]; obviously, MFCC includes a Fast Fourier Transform (FFT) step. As a
result of several MFCC processing steps, a single sample is finally represented as a multivariate
time series whose variables contain the value, at each time point, of the power of the signal
at a specific frequency; frequencies are naturally ordered from the lowest one to the highest
one. As another example, consider the signal recorded from an electroencephalogram executed
on a (human) brain. In the most typical presentation, such a signal is the collection of the
recording of several electrodes in a period of time. Again, each signal from an electrode present
a spectrum of frequencies, usually from 0.5 to 50. Again, a single sample is processed
via FFT, applied to each signal of each electrode, resulting in the sample being represented as a
multivariate time series whose variables contain the value of the electric power of the signal of
a specific electrode at a specific frequency, and in this case as well frequencies are ordered from
the lowest one to the highest one.
      </p>
      <p>In time series processing, a set of feature extraction functions can be identified from the current
literature (in most cases features have been presented as specific to a problem, but they often
re-occur in diferent application areas). Among many others, examples of properties that can be
expressed in FOHSa in the above domains include: there exists a frequency for which it is always
true that, during every interval when its mean value is lower than  there is an interval in which
its maximum value is greater than ′ and for every frequency it is true that if in an interval its
mean value is lower than  then in some future interval there is a higher frequency whose mean
value is greater than ′.</p>
    </sec>
    <sec id="sec-2">
      <title>3. Conclusions</title>
      <p>We presented FOHSa, a novel logical system specifically designed to express non-propositional
temporal interval properties that could be of interest in several applicative areas and diferent
contexts including, for example, symbolic machine learning.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Clark</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Niblett</surname>
          </string-name>
          ,
          <article-title>The CN2 Induction Algorithm, Machine Learning 3 (</article-title>
          <year>1989</year>
          )
          <fpage>261</fpage>
          -
          <lpage>283</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>R.</given-names>
            <surname>Rivest</surname>
          </string-name>
          ,
          <article-title>Learning Decision Lists, Machine Learning 2 (</article-title>
          <year>1987</year>
          )
          <fpage>229</fpage>
          -
          <lpage>246</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>L.</given-names>
            <surname>Breiman</surname>
          </string-name>
          , Bagging predictors,
          <source>Machine Learning</source>
          <volume>24</volume>
          (
          <year>1996</year>
          )
          <fpage>123</fpage>
          -
          <lpage>140</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>L.</given-names>
            <surname>Breiman</surname>
          </string-name>
          , Random forests,
          <source>Machine Learning</source>
          <volume>45</volume>
          (
          <year>2001</year>
          )
          <fpage>5</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Kearns</surname>
          </string-name>
          , L. Valiant,
          <source>Cryptographic Limitations on Learning Boolean Formulae and Finite Automata, Journal of the ACM</source>
          <volume>41</volume>
          (
          <year>1994</year>
          )
          <fpage>67</fpage>
          -
          <lpage>95</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>T.</given-names>
            <surname>Chen</surname>
          </string-name>
          , C. Guestrin,
          <article-title>XGBoost: A Scalable Tree Boosting System</article-title>
          ,
          <source>in: Proc. of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD)</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>785</fpage>
          -
          <lpage>794</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>G.</given-names>
            <surname>Ke</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Meng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Finley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Chen</surname>
          </string-name>
          , W. Ma,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Ye</surname>
          </string-name>
          , T. Liu,
          <article-title>LightGBM: A Highly Eficient Gradient Boosting Decision Tree</article-title>
          ,
          <source>in: Proc. of the 31st Advances in Neural Information Processing Systems (NIPS)</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>3146</fpage>
          -
          <lpage>3154</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>G.</given-names>
            <surname>Sciavicco</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Stan</surname>
          </string-name>
          ,
          <article-title>Knowledge extraction with interval temporal logic decision trees</article-title>
          ,
          <source>in: Proc. of the 27th International Symposium on Temporal Representation and Reasoning (TIME)</source>
          , volume
          <volume>178</volume>
          of LIPIcs,
          <year>2020</year>
          , pp.
          <volume>9</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>9</lpage>
          :
          <fpage>16</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>G.</given-names>
            <surname>Bechini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Losi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Manservigi</surname>
          </string-name>
          , G. Pagliarini, G. Sciavicco, I. Stan,
          <string-name>
            <given-names>M.</given-names>
            <surname>Venturini</surname>
          </string-name>
          ,
          <article-title>Statistical rule extraction for gas turbine trip prediction</article-title>
          ,
          <source>Journal of Engineering for Gas Turbines and Power</source>
          (
          <year>2023</year>
          )
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J.</given-names>
            <surname>Halpern</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Shoham</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A Propositional</given-names>
            <surname>Modal</surname>
          </string-name>
          <article-title>Logic of Time Intervals</article-title>
          ,
          <source>Journal of the ACM</source>
          <volume>38</volume>
          (
          <year>1991</year>
          )
          <fpage>935</fpage>
          -
          <lpage>962</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S. B.</given-names>
            <surname>Davis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mermelstein</surname>
          </string-name>
          ,
          <article-title>Comparison of parametric representations for monosyllabic word recognition in continuously spoken sentences</article-title>
          ,
          <source>IEEE Transactions on Acoustics, Speech and Signal Processing</source>
          <volume>28</volume>
          (
          <year>1980</year>
          )
          <fpage>357</fpage>
          -
          <lpage>366</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>