<!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>Demonstration: Semantic Web Enabled Smart Farm with GSN</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Raj Gaire</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Laurent Lefort</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michael Compton</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gregory Falzon</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>David Lamb</string-name>
          <email>dlambg@une.edu.au</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kerry Taylor</string-name>
          <email>kerry.taylorg@csiro.au</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CSIRO Computational Informatics</institution>
          ,
          <addr-line>Acton</addr-line>
          ,
          <country country="AU">Australia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Precision Agriculture Research Group, University of New England</institution>
          ,
          <country country="AU">Australia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>GSN is an open source middleware designed for managing data produced by sensors deployed in a sensor network. We have extended the GSN to enable (i) semantically aware preparation, exchange and processing of the data (ii) user speci ed event processing for alerts, and (iii) associate sensor data to things. Here, we demonstrate our smart farm as a use case of a semantically aware sensor network for better integration of sensor data.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>Sensing devices are used in agriculture to measure and control farming activities.
Smarter use of these measurements requires integration with other information.
For example, soil condition measurements such as temperature and volumetric
water content together with historical and weather forecast data can help make
decisions about the time to sow a particular crop. Similarly, the cattle location
data together with the current weather data can help monitor the cattle welfare.
Since such data are often distributed across di erent organisations, the semantic
web can be used as an integration mechanism for making better decisions.</p>
      <p>
        Sensors produce data streams continuously or at short intervals generating
large volumes of data. Therefore, data management is a prominent issue with
sensor networks. Global Sensor Network (GSN) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], an open source middleware,
provides some foundation for the management of the streaming sensor data.
In order to enable integration of this data across the web, it is necessary to
employ ontologies like SSN [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and techniques like Linked Data [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] that are
widely accepted in the semantic web community. The disparity between existing
tools like GSN and the need for providing open access for an e ective integration
of sensor network data exists as a barrier.
      </p>
      <p>
        Our Kirby Smart Farm is a prototypical 269 hectare livestock property
located in Armidale, NSW. In this paper, we use our smart farm to illustrate how
GSN can be extended to enable integration of sensor network data with external
data, de ne situation monitoring conditions to produce alerts, and extend the
sensor measurements to implement web of things in a farm. Speci cally, in
Section 2, we describe the architecture of smart farm system. Section 3 highlights
our extensions of GSN and semantic web aspects, followed by the conclusion in
Section 4. Furthermore, the semantic network aspect of our work in a farming
environment is described in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] while the business aspect is explained in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. This
system can be accessed from our website http://smartfarm-ict.it.csiro.au.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Architecture</title>
      <p>Our farm contains a mixture of environmental and livestock tracking sensor
nodes: 100 soil sensors, 2 weather stations and 65 cattle tags. A soil sensor node
contains sensors measuring ground temperature, soil temperature, volumetric
water content (VWC) and electric conductivity (EC). A weather station node
contains sensors measuring air temperature, photo-synthetically active radiation
(PAR), pressure, wind, rain and hail measurements. These nodes also contain
sensors to measure temperature, battery status, solar voltage and current of the
platform in which the sensors are embedded. Finally, the cattle have active tags
attached to their ears, which send radio signals to base stations. Based on the
time lapsed to receive the signal at three base stations, the locations of cattle
are determined3.</p>
      <p>The architecture design of the smart farm is shown in Fig 1. Here, the signal
received from all the sensors are collected by a gateway located on the farm
and sent to smartfarm servers through a high speed broadband network. The
smartfarm server contains four software components: data listener (a python
script library), RabbitMQ4 (a message queue system), GSN (a sensor network
middleware) and Virtuoso5 (a triple store enabled DBMS). The data listener
3 http://www.taggle.com.au/livestock.php
4 http://www.rabbitmq.com
5 http://virtuoso.openlinksw.com/
directly receives data from the farm, transforms them to text messages and then
publishes the messages to the message queue. The GSN is con gured with virtual
sensors which subscribe to these messages.</p>
      <p>Fig 2. CCI SPARQL query</p>
      <p>Fig 3. CCI as a composite variable of
temp, humidity, wind speed and PAR</p>
      <p>
        Our sensor network requires management of both static and dynamic data.
We have used a hybrid approach to manage them using GSN and Virutoso [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
Live linked data in RDF format are provided through GSN, while Virtuoso
is used to provide archived data in data cube [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] format and visualised using
VisualBox6 (see Fig 2,3).
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Semantically Enabled GSN</title>
      <p>GSN is particularly useful in micro-management of live sensor data. However,
GSN in its original form has a few limitations: it requires upgrades of dependent
libraries; it lacks some important concepts (e.g. it is not possible to specify the
units of measurements); it supports limited situation monitoring queries; and it
does not provide data in a format expected by the semantic web community. We
have modi ed GSN to overcome these limitations. In addition, we have extended
Fig 4. The smart farm map interface</p>
      <p>
        Fig 5. The interface for user de ned events
GSN to provide additional features. Firstly, a combination of Java/R algorithms
6 http://visualbox.org
is implemented for geo-spatial data processing to produce spatially aggregated
cross-sectional data, generate heatmaps and infer relevant measurements
corresponding to the cattle location (see Fig 4). Secondly, complex event processing
system has been created based on semantic event descriptions [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], which is also
embedded in GSN. We have identi ed and implemented a number of alert
conditions, such as `sowing time' for a crop, `cattle not in farm', `frost', and `soil
compaction' which are particularly useful to farmers. At the same time, users
can specify their own alerts (see Fig 5), enabling them to embed their
knowledge into the system. Thirdly, composite variables as cattle welfare indicators
comprehensive climate index (CCI) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and heat load index (HLI) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] have been
implemented. Finally, GSN is extended to produce RDF data in linked data
formats for both live and archived data.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>In this paper, we presented Kirby `Smart' Farm as a prototype farm installed
with various sensors and connected with a broadband network. We demonstrated
that by enabling a farm with the semantic web and providing query capability
on both the static (i.e. archived) and the dynamic (i.e. live) linked data, we can
ful l the needs of the farmers and help them make better decisions.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Aberer</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hauswirth</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Salehi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A middleware for fast and exible sensor network deployment</article-title>
          .
          <source>In: Proceedings of the 32nd international conference on Very large data bases</source>
          ,
          <source>VLDB Endowment</source>
          (
          <year>2006</year>
          )
          <volume>1199</volume>
          {
          <fpage>1202</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Lefort</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Henson</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Taylor</surname>
          </string-name>
          , K.,
          <string-name>
            <surname>Barnaghi</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Compton</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Corcho</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>GarciaCastro</surname>
          </string-name>
          , R.,
          <string-name>
            <surname>Graybeal</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Herzog</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Janowicz</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          , et al.:
          <article-title>Semantic sensor network xg nal report</article-title>
          .
          <source>W3C Incubator Group Report</source>
          <volume>28</volume>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bizer</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heath</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Berners-Lee</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Linked data-the story so far</article-title>
          .
          <source>International Journal on Semantic Web and Information Systems (IJSWIS) 5</source>
          (
          <issue>3</issue>
          ) (
          <year>2009</year>
          )
          <volume>1</volume>
          {
          <fpage>22</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Gaire</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lefort</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Compton</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Falzon</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lamb</surname>
            ,
            <given-names>D.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Taylor</surname>
          </string-name>
          , K.:
          <article-title>Semantic web enabled smart farming</article-title>
          .
          <source>In: Proceedings of the 1st International Workshop on Semantic Machine Learning and Linked Open</source>
          Data (
          <article-title>SML2OD) for Agricultural and Environmental Informatics, ISWC (</article-title>
          <year>2013</year>
          ) accepted
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. Gri th,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Heydon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Lamb</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            ,
            <surname>Lefort</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Taylor</surname>
          </string-name>
          , K.,
          <string-name>
            <surname>Trotter</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wark</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Smart farming: Leveraging the impact of broadband and the digital economy (</article-title>
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Cyganiak</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reynolds</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tennison</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>The rdf data cube vocabulary, w3c working draft 05 april 2012</article-title>
          . World Wide Web Consortium (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Taylor</surname>
          </string-name>
          , K.,
          <string-name>
            <surname>Leidinger</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Ontology-driven complex event processing in heterogeneous sensor networks</article-title>
          .
          <source>In: The Semanic Web: Research and Applications</source>
          . Springer (
          <year>2011</year>
          )
          <volume>285</volume>
          {
          <fpage>299</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Mader</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Johnson</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gaughan</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>A comprehensive index for assessing environmental stress in animals</article-title>
          .
          <source>Journal of Animal Science</source>
          <volume>88</volume>
          (
          <issue>6</issue>
          ) (
          <year>2010</year>
          )
          <volume>2153</volume>
          {
          <fpage>2165</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Gaughan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mader</surname>
            ,
            <given-names>T.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Holt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lisle</surname>
            ,
            <given-names>A.:</given-names>
          </string-name>
          <article-title>A new heat load index for feedlot cattle</article-title>
          .
          <source>Journal of Animal Science</source>
          <volume>86</volume>
          (
          <issue>1</issue>
          ) (
          <year>2008</year>
          )
          <volume>226</volume>
          {
          <fpage>234</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>