<!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>Activity recognition for autonomous water drones based on unsupervised learning methods</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alberto Castellini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Giovanni Beltrame</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Manuele Bicego</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Domenico Bloisi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jason Blum</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Matteo Denitto</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alessandro Farinelli</string-name>
          <email>alessandro.farinellig@univr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Verona University, Department of Computer Science</institution>
          ,
          <addr-line>Strada Le Grazie 15, 37134 Verona</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Water monitoring involves the acquisition of data from rivers, lakes, and other
bodies of water to gather knowledge about water properties. New technologies
have recently started a transition from manual and passive monitoring to
automatic and active monitoring, in which water drones autonomously move into
catchments according to strategies that maximize the acquisition of information
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. These intelligent systems collect large amount of data which need advanced
computational methods to be analyzed, interpreted, and exploited for decision
making [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        A promising research area in this context concerns the automatic identi
cation of events [9], activities [
        <xref ref-type="bibr" rid="ref3">3,14</xref>
        ], and situations [
        <xref ref-type="bibr" rid="ref5 ref6 ref7">5,6,12,7</xref>
        ] of interest from the
analysis of large datasets collected by unmanned vehicles using arti cial
intelligence and statistical learning methods [13,10]. Here we follow this line of research
and aim at developing an activity recognition system for unmanned vehicles
involved in water monitoring. The main data sources for activity recognition can
be grouped into two macro-categories, namely vision-based and sensor-based
sources [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In this work we use only the second kind of sources. Moreover, while
activity recognition is a concept often applied to human activities [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], this is a
key features also for autonomous robots when the activities of others can not be
communicated [14] or when such activities can not be perceived from the robots
(e.g., because there are no available sensors to directly perceive such activity) or
because sensors can be too expensive (e.g., detecting whether the water drone
is navigating upstream or downstream in a river).
      </p>
      <p>Speci cally, our aim in this work is twofold: i) to support drone operations
(on-line decision making ), ii) to support the extraction of knowledge from the
large sets of data collected by drones (o -line data analysis ). The main
contributions we present here are: i) the application of unsupervised statistical
methods to activity recognition in the context of autonomous water monitoring, and
ii) the empirical evaluation of a system for detecting a speci c activity:
\upstream/downstream navigation" on real data. Our empirical evaluation provides
promising results for the identi cation of this activity.</p>
    </sec>
    <sec id="sec-2">
      <title>Material and Methods</title>
      <p>
        System overview. This work is part of the H2020 EU project INTCATCH1
which aims at developing innovative strategies for integrated water monitoring
of catchments. Our low-cost aquatic drones, displayed in Figure 1, are equipped
with sensors able to detect: i) GPS coordinates, i.e., latitude and longitude, ii)
water properties, such as temperature, dissolved oxygen and electrical
conductivity, iii) commands to propellers, iv) battery voltage. In the data acquisition
phase, signals coming from di erent sources are integrated and synchronized, and
new variables are possibly generated by fusing information from these sources.
A data matrix of n variables and m time steps is thus generated which we aim
to annotate with activity labels, such as, \the boat is navigating upstream".
Each activity instance should be represented by the time interval in which the
activity was detected and the subset of variables that provided information to
identify the activity. Therefore, an activity instance should be represented by a
sub-matrix, possibly after row rearrangements, containing speci c information
patterns. From this point of view our problem could be seen as a multivariate
time-series segmentation [
        <xref ref-type="bibr" rid="ref4">11,4</xref>
        ] or a clustering problem [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>Dataset. Data collection was performed in di erent environments and locations
including rivers, sh ponds an lakes. Every dataset is a matrix of 13 features,
namely time, latitude, longitude, altitude, speed, electrical conductivity, dissolved
oxygen, temperature, battery voltage, heading, acceleration, command to propeller
1 and 2, and a certain number of observations depending on the duration of
the data acquisition process. Di erent sensors have di erent sampling intervals,
hence interpolation is performed during data preprocessing to merge all signals
and obtain a common sampling interval of 1 second.</p>
      <p>Activities. Aquatic drones face di erent activities during their missions, where
an activity can be de ned, in general, as a speci c action that the drone is
performing in a given state of the environment. Manual labeling was performed
for ve activities, namely, acquiring data in/out of water, upstream/downstream
navigation, manual/automatic driving, navigation facing waves/no waves, blocked
boat. Labeling was performed in a partial way, namely, experts analyzed
georeferenced path images, videos of the acquisition phases and manual notes, and
they labeled time intervals in which speci c activities surely occurred. They left
1 See the project website for futrther info http://www.intcatch.eu/
unlabeled (i.e., label 0 in Figure 2) time intervals in which activity occurrence
was not completely sure. In this work we aim at assessing a speci c activity,
namely if the drone is moving upstream or downstream in a river.
Unsupervised learning methods for activity recognition. We performed
clustering of sensors observations using Gaussian Mixture Models (GMMs) and
Hidden Markov Models (HMMs). In both cases the Expectation-Maximization
(EM) algorithm was used to learn the model. Inference was performed
using the junction tree algorithm for GMMs and Viterbi algorithm for HMMs.
Clustering performance was computed by purity. Purity is an external method
of the extent to which clusters contain a single class, and it is computed as
P (C) = N1 Pk2K md2aDx jk \ dj, where C represents a clustering, N is the total
number of points, K is the set of clusters and D is the set of classes.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Results</title>
      <p>GMMs and HMMs were trained on a dataset collected on a river, with a total
of 3615 observations (multiple sensor readings) and 9 features, namely, speed,
electrical conductivity, dissolved oxygen, temperature, battery voltage, heading,
acceleration, command to propeller 1 and 2. During the entire mission, which
lasted about 1 hour, the aquatic drone moved both upstream and downstream,
as shown in Figure 2 (the stream direction is from left to right in the map).
Moreover, sensor readings include data acquired before the drone was inserted
into the water and after it was removed from the water.</p>
      <p>We set the number of clusters (hidden states) to 3, in order to enable the
detection of the target activity (i.e., upstream and downstream navigation)
considering also the possibility of having measurements that show no speci c water
ow (e.g., when the drone was out of the water). Clusterings generated by GMMs
and HMMs are graphically shown in points (b) and (c), respectively, of Figure
2. The value of purity for GMMs is 0:54 while for HMM we have 0:95. GMMs
clearly detect the intervals in which the boat was out of the water, corresponding
to cluster 3 (blue) and 1 (red) in the picture (low level of electrical conductivity
identify such an activity). However, this model groups together all observations
collected in water and it cannot distinguish upstream from downstream
navigation. This behavior is well represented by the low value of purity. On the other
hand, HMMs achieve good performance in the detection of both situations out of
water (cluster 2/green points in Figure 2) and upstream/downstream navigation
(cluster 1/red points and cluster 3/blue points, respectively). The high purity
achieved by HMM con rms the good performance of this clustering.</p>
      <p>In order to understand what characterizes upstream and downstream
navigation in our dataset we analyzed model parameters. In particular we compared
the distributions of each variable of the HMM model between upstream and
downstream clusters (see box plots in the right-hand side of Figure 2) and we
identi ed statistically signi cant di erences in means using Student's t -test. We
found that variables heading, commands to propellers 1 and 2, dissolved
oxygen and speed were signi cantly di erent using a threshold of 0.05 for p-values.
Di erences in heading have intuitive interpretation since the boat had opposite
directions while navigating upstream and downstream in the river. The
commands to propellers 1 and 2 were higher in upstream navigation (cluster 1) than
in downstream navigation. This is because the boat needed full power to move
against the water ow. The speed of the boat was also higher during upstream
navigation. An interesting element of the analysis is the unexpected behavior
of dissolved oxygen which had higher level during upstream navigation (i.e.,
7:53 g=L) than during downstream navigation (i.e., 7:48 g=L). Since the
water moved along the same path (only in di erent directions) during upstream
and downstream navigation we suppose that the slight but statistically signi
cant di erence is due to the increased turbulence generated by the boat along
the upstream path.</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>This paper takes a rst important step towards activity recognition for
autonomous water drones. The main idea behind our approach is to employ
statistical methods for multivariate time-series segmentation to perform activity
recognition in this speci c context. Our approach achieves promising results by
correctly interpreting real data collected during data acquisition missions.
Moreover, by observing the statistical distribution provided by the model it is also
possible to identify the most representative variables for a given activity.
Future work in this direction includes a more detailed analysis of our approach
for di erent activities/datasets and an investigation to further analyse the
interpretability of the models by human operators.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This work is partially funded by the European Unions Horizon 2020 research and
innovation programme under grant agreement No 689341. This work re ects only
the authors view and the EASME is not responsible for any use that may be
made of the information it contains.
9. R. P. Higgins. Automatic event recognition for enhanced situational awareness in
UAV video. In MILCOM 2005 - 2005 IEEE Military Communications Conference,
pages 1706{1711 Vol. 3, 2005.
10. A. Holst, B. Bjurling, J. Ekman, A. Rudstrom, K. Wallenius, M. Bjorkman,
F. Fooladvandi, R. Laxhammar, and J. Tronninger. A joint statistical and
symbolic anomaly detection system: Increasing performance in maritime surveillance.</p>
      <p>In 15th International Conference on Information Fusion, pages 1919{1926, 2012.
11. E. Keogh, S. Chu, D. Hart, and M. Pazzani. Segmenting time series: A survey and
novel approach. In In an Edited Volume, Data mining in Time Series Databases.</p>
      <p>Published by World Scienti c, pages 1{22. Publishing Company, 1993.
12. D. A. Lambert. Situations for situation awareness. In Proceedings of the 4th</p>
      <p>International Conference on Information Fusion, 2001.
13. R. Laxhammar. Arti cial intelligence for situation assessment. Master's thesis,
School of Computer Science and Engineering, Royal Institute of Technology, KTH
CSC, Sweden, 2007.
14. D. L. Vail, M. M. Veloso, and J. D. La erty. Conditional random elds for
activity recognition. In Proceedings of the 6th International Joint Conference on
Autonomous Agents and Multiagent Systems, AAMAS '07, pages 235:1{235:8, New
York, NY, USA, 2007. ACM.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>U.</given-names>
            <surname>Ahsan</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Bais</surname>
          </string-name>
          .
          <article-title>A review on big data analysis and internet of things</article-title>
          .
          <source>In 2016 IEEE 13th International Conference on Mobile Ad Hoc and Sensor Systems (MASS)</source>
          , pages
          <fpage>325</fpage>
          {
          <fpage>330</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>L.</given-names>
            <surname>Bottarelli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Bicego</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Blum</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Farinelli</surname>
          </string-name>
          .
          <article-title>Skeleton-based orienteering for level set estimation</article-title>
          .
          <source>In ECAI 2016 - 22nd European Conference on Arti cial Intelligence</source>
          ,
          <volume>29</volume>
          <fpage>August</fpage>
          -2
          <source>September</source>
          <year>2016</year>
          ,
          <article-title>The Hague, The Netherlands - Including Prestigious Applications of Arti cial Intelligence (PAIS</article-title>
          <year>2016</year>
          ), pages
          <fpage>1256</fpage>
          {
          <fpage>1264</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>L.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hoey</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Nugent</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. J.</given-names>
            <surname>Cook</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yu</surname>
          </string-name>
          .
          <article-title>Sensor-based activity recognition</article-title>
          .
          <source>IEEE Transactions on Systems, Man, and Cybernetics</source>
          , Part C (
          <article-title>Applications</article-title>
          and Reviews),
          <volume>42</volume>
          (
          <issue>6</issue>
          ):
          <volume>790</volume>
          {
          <fpage>808</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>F.</given-names>
            <surname>Duch</surname>
          </string-name>
          ^ene, C. Garbay, and
          <string-name>
            <given-names>V.</given-names>
            <surname>Rialle</surname>
          </string-name>
          .
          <article-title>Learning recurrent behaviors from heterogeneous multivariate time-series</article-title>
          .
          <source>Arti cial Intelligence in Medicine</source>
          ,
          <volume>39</volume>
          (
          <issue>1</issue>
          ):
          <volume>25</volume>
          {
          <fpage>47</fpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Endsley</surname>
          </string-name>
          .
          <article-title>Toward a theory of situation awareness in dynamic systems</article-title>
          .
          <source>Human Factors</source>
          ,
          <volume>37</volume>
          (
          <issue>1</issue>
          ):
          <volume>32</volume>
          {
          <fpage>64</fpage>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Endsley</surname>
          </string-name>
          .
          <article-title>Theoretical underpinnings of situation awareness: a critical review</article-title>
          . In
          <string-name>
            <surname>M. R. Endsley</surname>
            and
            <given-names>D. J</given-names>
          </string-name>
          . Garland, editors,
          <source>Situation Awareness Analysis and Measurement</source>
          . Lawrence Erlbaum Associates, Mahwah, NJ, USA,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>A.</given-names>
            <surname>Farinelli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Nardi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Pigliacampo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rossi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G. P.</given-names>
            <surname>Settembre</surname>
          </string-name>
          .
          <article-title>Cooperative situation assessment in a maritime scenario</article-title>
          .
          <source>International Journal of Intelligent Systems</source>
          ,
          <volume>27</volume>
          (
          <issue>5</issue>
          ):
          <volume>477</volume>
          {
          <fpage>501</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>D.</given-names>
            <surname>Hallac</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Vare</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Boyd</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Leskovec</surname>
          </string-name>
          .
          <article-title>Toeplitz inverse covariance-based clustering of multivariate time series data</article-title>
          .
          <source>In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD '17 (August 13-17)</source>
          , pages
          <fpage>215</fpage>
          {
          <fpage>223</fpage>
          , New York, NY, USA,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>