<!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 “From Objects to Agents”, September</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>An Early Warning System for Seismic Events based on the Multi-Agent Model</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Roberto Spina</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Fornaia</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Emiliano Tramontana</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Mathematics and Computer Science, University of Catania</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>National Council of Geologists (CNG)</institution>
          ,
          <addr-line>Rome</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <volume>1</volume>
      <fpage>4</fpage>
      <lpage>16</lpage>
      <abstract>
        <p>When a disastrous earthquake is about to occur in a specific territory, there are a series of anomalies that alter the pre-existing natural balances. Seismic swarms, ground deformation, bright flashes, emissions of various gas types (radon, CO2,..), changes in the composition and flow rate groundwater are just some physical-chemical perturbations induced by the growing stress condition borne by the crustal masses. Dilatancy theory and asperity model allow us to interpret the dynamic mechanisms to which the seismic precursors are due: the development of a network of cracks and the sliding of areas with less mechanical resistance are in agreement with seismic, mechanical and geochemical anomalies that occur before to high magnitude earthquakes. In areas with high seismic risk, constant monitoring of geophysical parameters is frequent, carried out using diferent types of sensors. The MAS (Multi-Agent System) model is one of the most suitable choices for eficiently implementing a seismic alert system, based on the interpretation of experimental data obtained from the sensor network. Using this type of approach, a Seismic Early Warning (SEW) has been created that according to the data acquired by the sensors and through the activities carried out by agent clusters, define the risk of seismic events having magnitude at least six. The SEW system aims to interpret, in real-time, the variations of an adequate number of seismic precursors for specific threshold values, calculated statistically. The integrated and complementary analysis of them, using several specific Boolean expressions, assesses the contribution provided by each parameter for computing the level of risk, divided into soft, medium and hard. The model has been tested with data gathered in New Zealand, a nation with a high seismic and volcanic risk which ofers free access to some seismic precursors.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;MAOP</kwd>
        <kwd>MAS</kwd>
        <kwd>multi-agent system</kwd>
        <kwd>seismic precursors</kwd>
        <kwd>earthquakes</kwd>
        <kwd>geophysical parameters</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Software applications based on MAOP (Multi-Agent Oriented Programming) are widely used in
various fields and have taken on an increasingly important role thanks to the use of artificial
intelligence (AI) techniques [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1, 2, 3</xref>
        ]. The adoption of centralized methods presents intrinsic
dificulties due to the growing complexity of the systems, the dimensions of which continue
to increase: in this context, the architectural solutions proposed by the MAS (Multi-Agent
System) ofer diferent advantages and a good solution for the modelling of complex distributed
systems [
        <xref ref-type="bibr" rid="ref3 ref4 ref5">3, 4, 5</xref>
        ]. One of the fundamental characteristics of the MAS paradigm is the
interaction between agents, independent and autonomous software modules that perform specific
propaedeutics activities for the development of one or more system functions. The innumerable
properties that distinguish the agents (communication, persistence, reactivity, proactivity, etc.)
make them potentially suitable for monitoring natural phenomena, especially those capable of
producing catastrophic events.
      </p>
      <p>The diferent activities required by a seismic early warning system, summarized in the
acquisition, interpretation and formatting of geophysical data with the addition of real-time user
assistance, make the MAS model one of the most appropriate systems for real-time monitoring
of precursor parameters (seismic swarms, ground deformation, soil temperature, radon gas
emission, etc.) aimed at predicting earthquakes potentially destructive.</p>
      <p>Concerning the previous observations, a software system called SEW (Seismic Early Warning)
has been developed, based on a dashboard that, in real-time, shows updates based on alert
level (soft, medium and hard) that characterizes a specific area at high seismic risk. The system
of agents, operating in the background, allows comparing the experimental data of seismic
precursors with the corresponding threshold values, obtained statistically from seismic swarms
which, in the past, have produced a destructive earthquake. Through simple Boolean expressions,
it will then be possible to automatically establish a certain alarm level in the places surrounding
the seismic source.</p>
      <p>The remainder of this document is organized as follows. A literature survey is discussed in
Sections II. Section III presents the seismic domain of the application and the methodologies
used. Section IV defines the characteristics of the MAS and the collaborative interaction between
agents. Section V illustrates the case study of New Zealand, a region with high seismic and
volcanic risk in which a SEW prototype has been implemented and tested and the results of
which are discussed in section VI. And in conclusion, the MAS approach advantages and all the
new features presented were analyzed in Section VII.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        Many applications that combine artificial intelligence and MAS technologies, in various
sectors, have been developed: some examples are represented by the new opportunities created
respectively for trafic control at intersections[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], for monitoring and improving the cloud
performance and security [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], or for alerting people about crowded destinations [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. In the last
years, a group of scientists presented a Multi-Agent System paradigm and discuss how it can be
used to design intelligent and distributed systems [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Next, a decentralized approach of MAS
has been developed using a distributed simulation kernel to solve partitioning, load balancing
and interest management problems in an integrated, transparent and adaptive manner [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        Diferent works have been produced on the implementation of multi-agent systems relating to
coordination and rescue in the stages following the occurrence of a high-intensity seismic event.
A multi-agent system for the evacuation of people in immediate post-emergency situations
has been implemented for the city of Iaşi (Romania) [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. A series of simulators using a MAS
architecture, following the damage caused by the 1999 earthquakes in Turkey and Pakistan
in 2005, have been developed: damage, victims and other auxiliary simulators [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. A Disaster
Management System (DMS) developed with the multi-agent model has been proposed to
adequately manage a multi-risk situation consisting of two or more disasters occur at the same
time, such as, for example, the combination of earthquake and tsunami [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>
        Other systems for the management of the pre-post seismic phases have been developed
by the authors in various ways: (i) through a Seismic and Volcanic Early Warning System in
the Etna area based on specific threshold values for each geophysical precursor [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]; (ii) with
an approach based on the coupling of multi-agent systems and intelligent systems (cellular
automata) for simulation on rescue in the event of an earthquake disaster [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]; (iii) through
simulations of various post-seismic evacuation scenarios for people using a multi-agent system
[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]; (iv) integrating GIS with multi-agent seismic disaster simulations to investigate factors
significantly afecting rescue eforts, and to clarify countermeasures for saving lives [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Approach</title>
      <p>This section describes the model on which SEW is based and the methodologies used to
implement the proposed system. The first activity concerns the extraction of useful information
from the databases of seismic precursors (seismic swarms, soil deformations, ...) and their
visualization in a SPA (Single Page Application), based on Angular. The next phase is the
implementation of a multi-agent system defining the alert level of the seismic territory based
on the result obtained from a set of Boolean expressions founded on the seismic precursors.</p>
      <sec id="sec-3-1">
        <title>3.1. Methodology</title>
        <p>Within each seismic zone, there are one or more seismogenic structures (faults) which, with
their displacement, can produce the vibrations that generate the earthquake. Sequences of
seismic events that, in some cases, may prelude to a major magnitude earthquake (mainshock)
are called seismic swarms. Every single event (foreshock) belonging to the sequence often
occurs a short time from the previous one.</p>
        <p>Suppose we consider all the seismic swarms that in the past have given rise to mainshocks of
medium-high magnitude (above 6) which, about to the characteristics of the territory concerned,
can produce serious damage to people and things. We denote with 1, 2, 3 three classes of
seismic swarms which as a final result gave an earthquake of magnitude M  ≥ 6 and with
(1, ¯1), (2, ¯2), (3, ¯3), the ordered pairs where P corresponds to the number of S elements
and ¯ to the arithmetic mean for each class 1, 2, 3. The average of the averages for the three
classes of seismic swarms that prelude to an earthquake of Magnitude  will be given by:
3
ℎ = 1 ∑︁ ¯</p>
        <p>=1
 = 1 + 2 + 3.</p>
        <p>(1)
(2)
The ℎ value obtained corresponds to the most probable value for seismic swarms with ¯ &lt;
6 for that specific seismogenic structure, and therefore a threshold value for the mainshock of
magnitude M ≥ 6.</p>
        <p>The same procedure is performed for geophysical precursors for which a consistent database
of measurements is available. Consequently, three further threshold values (ℎ , ℎ and
ℎ ) will be obtained referring respectively to Radon Concentration (RC), Ground Deformation
(GD) and Soil Temperature (ST) for earthquakes with M ≥ 6. The four previously threshold
values (ℎ) will be associated with the respective standard deviations ( ) expressed by:
 = ⎷⎸ =1
⎯
⎸ 3
⎸⎸ ∑︁(¯ − ℎ)2
3
(3)
(4)
and the achievement of the threshold value (ℎ) will occur when:</p>
        <p>[¯ ±  ] ∩ [ ℎ ±  ℎ] ̸= ∅
where ¯  represents the average magnitude of the current seismic swarm and   the standard
deviation associated with it. In real conditions in presence of an extensive seismic swarm (SS),
the system will calculate the average magnitude value (¯) of the seismic sequence in progress
and the other three seismic precursors (¯, ¯ and ¯ ). In the next step, it will compare the
mean value of the four precursors with the respective threshold values.</p>
        <p>The definition of the alarm level will be based on the evaluation of a series of Boolean
expressions and conditional instructions, arranged in sequence, which allows defining the
type of alarm based on the number of precursor parameters that have reached or exceeded
the threshold value, going from hard (all variables are true) to soft (only two variables have
exceeded the threshold value). Among the four Boolean variables, SS (Seismic Swarm) has a
fundamental role in defining any alarm level:
if ( ∧  ∧  ∧  ) (5)</p>
        <p>return "hard";
if ( ∧ (( ∧ ) ∨ ( ∧  ) ∨ ( ∧  )))</p>
        <p>return "medium";
if ( ∧ ( ∨  ∨  ))</p>
        <p>return "soft".</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Theoretical Background of the SEW</title>
        <p>Forecasting of high-magnitude seismic events has as its foundation some theories that, since the
last century, have been proposed by various authors to explain the phenomena that determine
earthquakes.</p>
        <p>
          Dilatancy theory [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] foresees that before an earthquake the seismogenic area is subject to an
increase in stress with an expansion of the crustal volume due to a substantial cracking of the
rocks. Consequently, the rocks undergo a variation of their physical characteristics and from
the external regions, the fluids are attracted by this extensive fracturing phenomenon. Both the
gases and the liquids circulating within the crustal volume change their paths and upon contact
with diferent rocks and/or fluids change their geochemical composition. The interpretation of
the phenomena that prelude and follow an earthquake is the basis of what is proposed by Aki
(1979) and Kanamori (1981) called respectively barrier model and asperity model.
        </p>
        <p>
          In the barrier model [
          <xref ref-type="bibr" rid="ref15 ref16">15, 16</xref>
          ] it is assumed that, before the earthquake, the stress on the fault
is uniform. The earthquake is produced by the sliding of the weakest area, while the most
resistant area (barrier) is opposed to dislocation. In this way, there is an increase in barrier
stress. Consequently, after the earthquake, the barrier may be afected by seismic (aftershock)
or aseismic sliding episodes.
        </p>
        <p>
          The asperity model [
          <xref ref-type="bibr" rid="ref15 ref16">15, 16</xref>
          ] considers that the sliding that generates the earthquake concerns
the most resistant area, i.e. the asperity. Before the mainshock, the stress on the fault is not
uniform because aseismic sliding and preliminary shocks (foreshock) have reduced stress in the
weakest areas of the fault, concentrating it on asperities. When stress reaches a critical value,
the asperity yields giving rise to the earthquake.
        </p>
        <p>The three models agree with the physico-chemical anomalies related to the extensive fracture
afecting the seismogenic area (seismic precursors) and with the long sequences of earthquakes
preceding (foreshock) and subsequent (aftershock) at the mainshock, providing a valid
interpretative key.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Framework</title>
      <p>The SEW dashboard consists of a series of software components (agents) capable of performing
simple tasks, but unable to perform a complex task individually. Recall that each task can
be decomposed into simpler parts, to be performed by individual agents or groups of them
who cooperate. By planning their interaction through a multi-agent architecture, based on
collaboration and the exchange of information, it is possible to achieve the common goal.</p>
      <p>A more detailed analysis of the individual responsibilities attributed to each agent and the
proposed architectures are described in the following sections.</p>
      <sec id="sec-4-1">
        <title>4.1. Hardware and software architecture</title>
        <p>A fundamental prerequisite for the implementation of SEW is the presence, in the seismic
territory, of a capillary network of seismometers and GPS sensors, recently replaced by GNSS
(Global Navigation Satellite System). By this acronym we mean a constellation of satellites
that, by sending a signal from space, allow specific receivers to determine their geographical
coordinates (longitude, latitude and altitude) on any point on the earth’s surface: any ground
deformation, before, simultaneously or after a seismic event, will be highlighted by deviations
from the original positions.</p>
        <p>The test of the system, carried out in the Experiments section, was based on the available
datasets, i.e. Seismic Swarms and Ground Deformation. Additional precursor parameters, in
seismic areas where they are available, could significantly improve the results obtainable
from SEW: concentration of Radon, 2, Arsenic and Iron, soil temperature are some of the
many precursors that give significant anomalies before a destructive earthquake. The sensors
network, arranged optimally for the seismogenic structures, must guarantee monitoring of the
precursor parameters with measurements carried out continuously through a Repeater-Gateway
transmission system, as in the case of ground deformation, earthquakes and soil temperature. For
other precursors (Radon, Iron, 2 and Arsenic) the data acquisition can take place directly
with on-site sampling.</p>
        <p>
          Figure 1 shows the acquisition-transmission scheme of the wireless network, consisting of
three main components: the gateway, the repeater, and the end devices [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. GNSS receivers,
seismometers and geochemical sensors acquire the experimental data and send them to a
repeater which amplifies the signal strength to be transmitted to the gateway, equipped with
an internet connection, which routes them to the respective servers of the data processing
center. And from this moment on, software agents come into play, carrying out a series of
sub-activities to achieve the final goal corresponding to the definition of the current alert level.
The main features of the Multi-Agent System is based on some assumptions: (i) no agent can
solve a problem on his own but must make use of the collaboration of the others to achieve the
intended purpose; (ii) each agent difers from the others in the properties that distinguish it and
the tasks it can perform; (iii) agents are divided and associated in a congregation, i.e. groupings
of them that perform a series of semantically similar tasks.
        </p>
        <p>With reference to the third point, we can consider that each group of agents acts in parallel
and independently from the others, even if they share the same final objective. E.g., the cluster
of agents SS (Seismic Swarm) acts in parallel with the clusters GD (Ground Deformation), RC
(Radon Concentration) and ST (Soil Temperature): each group carries out similar activities to
determine if there is an overlap between your current experimental data range and that of the
corresponding threshold value, expressed by the relation (4). The interpretation of the data
obtained from the n agent clusters and the definition of the alert level is the exclusive relevance
of agent A. To verify that no malfunctions have occurred, a group of three demon agents (1,
2 and 3), periodically and alternately, checks whether the state of A is consistent, by sending
it a message to which a response must follow. In case of no-confirmation, the role of the main
agent will be assigned to one of the two "A substitutes" (1 or 2) who will assume the same
functions performed by A.</p>
        <p>The detail of the interactions between the agents relating to diferent clusters is described in
the following section.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Collaborative interaction between agents</title>
        <p>The description of the interactions in the SEW system is based on the assumptions the MAS
implementation concerns earthquakes with a magnitude greater than six and each agent is
characterized by its internal state, that is, by variables and data structures which, at a given
instant, contain specific values. Agents are server-side back-end components queried by the
Sendmessage</p>
        <p>D1</p>
        <p>B1
Level of alarm
Graphics
and table
B2
D2</p>
        <p>C1
C2
SEW Dashboard
earthquakes database
Seismic data server
…
…
seismic swarms
database
ground deformation
database
Geophysical precursor server
ground deformation
database
Ground deformation server
front-end. The system, still under development, uses Java Agent Development Framework
(JADE), a network-oriented framework that guarantees very eficient communication. The
example shown refers to the geophysical parameter "Seismic Swarm", but the actions and
operations carried out can also be considered substantially equivalent for the other geophysical
parameters.</p>
        <p>Collaboration and exchange of information can be summarized with the following activities,
distributed over a series of agents: (i) download of experimental data from the corresponding
servers where they have been stored by the sensor network; (ii) filtering according to certain
rules that establish whether they are suitable for registration or not; (iii) analysis of current
data and comparison with statistically calculated threshold values; (iv) establish if the alarm
level must be updated defining its criticality; (v) formatting and display of data to be presented
to the user; (vi) notification of a warning to a select group of scientists on any existing critical
problems.</p>
        <p>Figure 2 highlights the diferent roles assumed by agents 1, 1, 1, belonging to the same
group of agents, while A belongs to a hierarchically higher level. Every 10 minutes agent A
sends a notification to agent 1 that queries the internal server for the latest updates on seismic
events occurred in that source area. In case of a positive response, it sends a message to agent
1 which includes the magnitude (), the hypocenter () and the date/hour (D) in which
the seismic event occurred. Received the message, the agent 1 compares the data received
with those of the previous earthquake, stored in its internal state: the earthquake will be entered
in the seismic swarm database only if it has  ≥ 1 and occurred within 24 hours from the
previous one, otherwise it is discarded. If the earthquake is inserted in the current seismic
sequence, 1 sends a notification signal to agent 1 which activates and checks the earthquake
frequency () in its own state in the last seven days, with the specifications defined previously
(hypocenter, magnitude). If the frequency is suficiently high (e.g.  ≥ 5 earthquakes/day),
1 calculates the average magnitude and the associated  for the current seismic sequence and
compares it with the corresponding threshold value. In case it reaches or exceeds the threshold
value, 1 updates the value of ¯  in the database and sends a message to agent A, whose
evaluation will take into account the frequency of the seismic swarm in the last days.</p>
        <p>Next, based on the result obtained from the Boolean expression (5), it will decide whether
to activate an alarming level and of which type (soft, medium or hard), sending a notification
to the  and  agents, “specialized” in user assistance. In particular, the  agent will update
the table and the respective graphs (histograms, box-and-whisker diagrams, ...), while the 
agent will send, via e-mail, a report to a small group of scientists. The document, created in an
automated way, will report the experimental data that determined the activation of the specific
alert level. At the end of the activity cycle, the clusters of agents listen for new notifications that
can re-trigger the sequence of activities listed above. A mockup of the SEW interface, currently
under development, is shown in Figure 3.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. User assistance</title>
        <p>Within the MAS, the purpose of Agents E and F is to assist users for the interpretation of
experimental data and the notification of system status information documents. There are two
degrees of access with level 2 users (scientists) who have more rights than level 1 (normal user).
The main activities carried out by agent E can be summarized in: i) facilitating the interpretation
of experimental data, showing them in real-time in the form of graphs and tables; ii) make them
available in various formats, via download, for further research activities.</p>
        <p>At the end of the activity cycle, carried out by the various clusters of agents, which aim at
determining the alert level, A transmits the updates that have occurred: upon receipt of the
notification, agent E is activated instantly by refreshing the SEW dashboard, which will show
updated graphs and tables of each seismic precursor. For both user levels, there is a button
pointing to the precursor databases which contains recent and historical experimental data.
Through a multiple-choice menu, it is possible to select one of the following possible formats:
JSON, CSV and KML. When the user clicks on the “download” button, reactively and according
to the selected choice, Agent E will take care of data extraction, formatting according to the
selected format and starting the download process.</p>
        <p>At the same time, Agent F takes care of creating a report, in pdf, to be sent via e-mail to a small
group of scientists whose e-mail addresses have been stored. The document will be sent only in
the presence of a hard level alarm and will present several standard fields: (i) the geographical
coordinates of the area in which the seismic swarm occurred and the hypocentral depth; (ii) the
frequency of earthquakes in the last two days; (iii) the average values and the relative standard
deviation of the seismic precursors; (iv) further technical information on the instrumentation
used, the seismogenic structure afected by the seismic swarm, etc. The information reported in
the document have been extracted from the databases and system variables in which they are
stored and assembled in a specific template, used for the realization of the report. In the case of
the other alarm levels, no notification will be sent to the scientists, however it will always be
possible to access an updated report, once a day, directly from the dashboard whose access is
limited to level 2 users only.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Case study: New Zealand, a land with high seismic and volcanic risk</title>
      <p>New Zealand is a region characterized by a high seismic and volcanic risk due to the presence
of a fair number of active volcanoes and the particular geodynamic location, in the collision
zone between the Australian Plate and Pacific Plates. For this reason, the area is covered by
a dense network of sensors, some of which have only recently been operating, which allow
continuous monitoring of diferent seismic and volcanic precursors. The data are made available
to users through the GeoNet project (Geological hazard information for New Zealand) at
https://www.geonet.org.nz.</p>
      <sec id="sec-5-1">
        <title>5.1. Seismotectonic overview</title>
        <p>Within the GeoNet Quake Search section, New Zealand is divided into 10 seismic regions, from
Auckland &amp; Northland to Wellington &amp; Marlborough. The intense tectonic and seismic activity
is attributable to the presence of the Alpine fault, a large dextral transform structure, which
crosses the southern part and marks the contact between the Pacific and the Australian plate.
In the eastern of-shore area of the north island, the Pacific plate dips below the Australian
plate: the phenomenon of subduction continues also at the Cook Strait and is the cause of deep
earthquakes and the presence of active volcanism in the island of North. There are also a series
of active secondary faults kinetically connected with the Alpine one, like Marlborough fault
system, a set of four major faults which transfer displacement between Alpine fault and the
Kermadec Trench (see Figure 4).</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Experiments</title>
        <p>The network of seismometers and GPS/GNSS sensors is well developed and represents a good
way to test the seismic alert system. Each seismic region is covered by a fair number of
GPS/GNSS stations for the measurement of the ground deformation, even if for some stations
the operativeness has occurred only in the last years and for others, the first registrations are
from 1999. Of the three components that relate to displacement from the initial position (east,
north, and up) only the up component was taken into consideration, relative to the vertical
displacements of the ground. And this because the other two components, east and north, are
mainly attributable to the displacement of the two plates.</p>
        <p>The seismic data available on the “GeoNet Quake Search” page of the geonet.org.nz site
were filtered by geographic coordinates, region and depth and downloaded in CSV format: the
threshold value and the relative standard deviation were then calculated for two high magnitude
seismic events. To download the data relating to the ground deformation, the GeoNet API
was used, which allows the experimental data to be downloaded quickly, using special queries
carried out in GET mode.</p>
        <p>The SEW test was performed on the northern segment of the Marlborough fault system of
the Wellington &amp; Marlborough seismic region. The GPS/GNSS stations used for the calculation
of the threshold values are those closest to the seismogenic structure analyzed, in which
experimental data were available from 2004. Seismic events occurred on 2013-07-21 and
201611-14 were considered, respectively of  = 6.5 and  = 6.2. Only two mainshocks have
been considered, although they are made up of more than 600 seismic events in total, because
catastrophic earthquakes of high magnitude, over the last twenty years, are quite limited in
number.</p>
        <p>For the ground deformation, the registrations made up to four months before the mainshock
was considered and the threshold values for each of the three stations were obtained using the
data relating to the two seismic events of 2013 and 2016. In reality, by restricting the datasets to
one month before the seismic event, the variation in the values obtained for the three stations
is negligible and falls within the order of a tenth of a millimetre.</p>
        <p>The 2013-08-16 earthquake of  = 6.5 was used to test the correspondence between seismic
swarms in progress and statistically calculated threshold values. A further test was performed
on the seismic swarm of May 2018 which as a final result did not give a mainshock.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Results</title>
      <p>The data of the seismic swarms relating to earthquakes occurred on 2013-07-21 and 2016-11-14
are shown in Table 1:  indicates the magnitude value of the mainshock. The threshold
value obtained for the northern segment of the Marlborough fault system is of 2.2 ± 0.2. Table
2 shows the threshold values (ℎ) and the respective standard deviations ( ), expressed in
centimetres, relating to the 2013 and 2016 earthquakes for the three stations CMBL, WITH
and KAIK. All stations are characterized by negative ground displacements which denote land
subsidence before the mainshock.</p>
      <p>The 2013-08-16 earthquake of  = 6.5, which occurred about a month later after the strong
earthquake of July 2013, was used as a sequence to test the system. Figure 3 shows one of the
seismic swarms, in the Marlborough fault system, which preceded the mainshock: you can see
the alignment of the hypocenters along a preferential direction that corresponds to the direction
of development of the fault system that generated it (see Marlborough fault system of Figure 4).</p>
      <p>Table 3 reports the average magnitude value and the relative standard deviation of the seismic
swarm before the mainshock which is in the range of 2.3± 0.4. The fields relating to the three
ground deformation measuring stations show the values ¯ ±  . It can be seen that in all
stations the intervals of the ground deformation in progress fall within the intervals of the
threshold values ℎ ±  . Hence, condition (4) is verified for both seismic precursors (SS and
GD):</p>
      <p>([¯ ±  ] ∩ [ ℎ ±  ℎ] ̸= ∅) ∧ ([¯ ±  ] ∩ [ ℎ ±  ℎ] ̸= ∅). (6)
The evaluation of the Boolean expression for ground deformation corresponds to a logical AND
between the three GNSS/GPS stations:</p>
      <p>(CMBL) ∧ (WITH) ∧ (KAIK). (7)</p>
      <p>Figure 5 shows that in the three stations considered, before the event of August 2013, the
ground deformation intervals intersects that of the respective threshold values and therefore,
according to the final result, the evaluation of the GD parameter returns true. A similar result is
also obtained for the seismic swarm parameter with an almost complete overlap between the
confidence interval in progress and that relating to the threshold value. Table 3 also shows the
results of the seismic swarm of May 2018 (about 115 foreshocks), indicated as two asterisks,</p>
      <sec id="sec-6-1">
        <title>Seismic Swarm</title>
      </sec>
      <sec id="sec-6-2">
        <title>CMBL</title>
      </sec>
      <sec id="sec-6-3">
        <title>WITH KAIK</title>
        <p>¯*
¯**
¯*
¯**
which afected the same fault system. It can be observed that although the average value of
the seismic swarm falls within the confidence interval of the respective threshold value, the
expression (7) returns false because this does not happen for the ground deformation which has
an inverse (positive) sign with respect to the corresponding (negative) threshold values.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusions</title>
      <p>An integrated, complementary and real-time analysis of a series of precursor parameters to
establish of the alert level of a seismic risk territory, is the idea on which the SEW forecasting
system is based. With the integrated analysis, we aim to simultaneously analyze the experimental
data of the physico-chemical precursors for which an adequate network of sensors is available.
Acting in a complementary way means considering the results obtained by each parameter
not disjoint from the others but which contribute, in diferent ways, to the achievement of
the final objective. The innovation of the proposed model lies precisely in these short and
simple concepts and the final evaluation of Boolean expressions made up of representative
variables of each precursor allows each of them to make their contribution. In this way, it
is possible to assess whether the transformation that a seismic territory is undergoing is on
average attributable to those that occurred in the past in the periods preceding earthquakes of
equal magnitude ( ≥ 6).</p>
      <p>
        According to the theory of dilatancy and asperity, the transformations that a territory
undergoes before a strong seismic event produce ground deformations which, by fracturing,
generates foreshock and catalyzes fluids from the surrounding areas, making their geochemical
properties vary. If we consider that the entity of the deformations depends on the mechanical
characteristics of the rocks present in each seismogenic area, we can consider that before each
“characteristic earthquake” [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], physico-chemical anomalies, on average similar to those that
occurred in the past, can be generated.
      </p>
      <p>The SEW system has been implemented using the MAS approach, hence ensuring modularity,
eficiency and maintainability. The choice to use a multi-agent structure greatly facilitates
the process of acquiring and processing experimental data carried out in parallel by the agent
clusters, each of which deals with a specific precursor. Two further agents, specialized in user
assistance, take care of adequately formatting diagrams, tables and reports to be presented to
users or sent to specific scientific groups to alert them of any critical states.</p>
      <p>The results of the  = 6.5 earthquake test of 2013-08-16 on one of the seismic regions of
New Zealand show an extensive overlap of the ranges [¯ ±  ] and [¯ ±  ] of both
precursors with their respective confidence intervals of the threshold values and only small
parts of the left interval are external to them. The ground deformation indicates that the areas
surrounding the seismogenic structure undergo pronounced subsidence in the period before
the seismic event. The choice of this datasets is due to the possibility of using both seismic
swarms and ground deformations starting from 2004, a combination not possible for surface
earthquakes in the other seismic regions of New Zealand.</p>
      <p>On the contrary, the seismic swarm of May 2018, which afected the same area, shows that
even if the seismic swarms in progress meet the threshold intervals, the deformation values in
the three stations are largely outside the intervals [ ℎ ±  ℎ]: the absence of the mainshock
is therefore in agreement with the result of the expression (7) which returns false. The results,
therefore, confirm that a forecast based on a fair number of precursors can be a good solution
for the implementation of a seismic alert system.</p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgement</title>
      <p>We acknowledge the New Zealand GeoNet project and its sponsors EQC, GNS Science and
LINZ, for providing data/images used in this study, and project TEAMS–TEchniques to support
the Analysis of big data in Medicine, energy and Structures–Piano di incentivi per la ricerca di
Ateneo 2020/2022.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Krzysztoń</surname>
          </string-name>
          ,
          <string-name>
            <surname>B. Śnieżyński,</surname>
          </string-name>
          <article-title>Combining machine learning and multi-agent approach for controlling trafic at intersections</article-title>
          ,
          <source>in: Computational Collective Intelligence, LNCS</source>
          , volume
          <volume>9329</volume>
          ,
          <year>2015</year>
          , pp.
          <fpage>57</fpage>
          -
          <lpage>66</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>319</fpage>
          -24069-
          <issue>5</issue>
          _
          <fpage>6</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Grzonka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Jakóbik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kołodziej</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Pllana</surname>
          </string-name>
          ,
          <article-title>Using a multi-agent system and artificial intelligence for monitoring and improving the cloud performance and security</article-title>
          ,
          <source>Future Generation Computer Systems, Elsevier</source>
          <volume>86</volume>
          (
          <year>2018</year>
          )
          <fpage>1106</fpage>
          -
          <lpage>1117</lpage>
          . doi:
          <volume>10</volume>
          .1016/j.future.
          <year>2017</year>
          .
          <volume>05</volume>
          .046.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A. E. F.</given-names>
            <surname>Seghrouchni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Florea</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Olaru</surname>
          </string-name>
          <article-title>, Multi-agent systems: A paradigm to design ambient intelligent applications, in: Studies in Computational Intelligence</article-title>
          , SCI, volume
          <volume>315</volume>
          ,
          <year>2010</year>
          , pp.
          <fpage>3</fpage>
          -
          <lpage>9</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>642</fpage>
          -15211-
          <issue>5</issue>
          _
          <fpage>1</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>V.</given-names>
            <surname>Suryanarayanan</surname>
          </string-name>
          , G. Theodoropoulos,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lees</surname>
          </string-name>
          , PDES-MAS:
          <article-title>Distributed simulation of multi-agent systems</article-title>
          , Procedia Computer Science, Elsevier
          <volume>18</volume>
          (
          <year>2013</year>
          )
          <fpage>671</fpage>
          -
          <lpage>681</lpage>
          . doi:
          <volume>10</volume>
          . 1016/j.procs.
          <year>2013</year>
          .
          <volume>05</volume>
          .231.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Calvagna</surname>
          </string-name>
          , E. Tramontana,
          <article-title>Delivering dependable reusable components by expressing and enforcing design decisions</article-title>
          ,
          <source>in: Proc. of IEEE Computer Software and Applications Conference (COMPSAC)</source>
          , IEEE,
          <year>2013</year>
          , pp.
          <fpage>493</fpage>
          -
          <lpage>498</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>C.</given-names>
            <surname>Cavallaro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Verga</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Tramontana</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Muscato</surname>
          </string-name>
          ,
          <article-title>Suggesting just enough (un)crowded routes and destinations</article-title>
          ,
          <source>in: Proc. of 21st Workshop '</source>
          From Objects to Agents
          <source>' (WOA</source>
          <year>2020</year>
          ), Bologna, Italy,
          <year>2020</year>
          , pp.
          <fpage>493</fpage>
          -
          <lpage>498</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>G.</given-names>
            <surname>Bunea</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Leon</surname>
          </string-name>
          , G. Atanasiu,
          <article-title>Postdisaster evacuation scenarios using multiagent system</article-title>
          ,
          <source>Journal of Computing in Civil Engineering, American Society of Civil Engineers</source>
          <volume>30</volume>
          (
          <year>2016</year>
          ). doi:
          <volume>10</volume>
          .1061/(ASCE)CP.
          <fpage>1943</fpage>
          -
          <volume>5487</volume>
          .
          <fpage>0000575</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>F.</given-names>
            <surname>Fiedrichn</surname>
          </string-name>
          ,
          <article-title>An hla based multiagent system for optimized resource allocation after strong earthquakes</article-title>
          , in: J.
          <string-name>
            <surname>Cohen</surname>
          </string-name>
          (Ed.),
          <source>Proceedings of the 2006 Winter Simulation Conference</source>
          , Monterey, CA,
          <year>2006</year>
          , pp.
          <fpage>486</fpage>
          -
          <lpage>492</lpage>
          . doi:
          <volume>10</volume>
          .1109/WSC.
          <year>2006</year>
          .
          <volume>323120</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>D.</given-names>
            <surname>Moser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pinto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Cipriano</surname>
          </string-name>
          ,
          <article-title>Developing a multiagent based decision support system for realtime multi-risk disaster manage- ment</article-title>
          ,
          <source>International Journal of Environmental and Ecological Engineering</source>
          <volume>9</volume>
          (
          <year>2015</year>
          )
          <fpage>831</fpage>
          -
          <lpage>835</lpage>
          . doi:doi.org/10.5281/zenodo.1099832.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>R.</given-names>
            <surname>Spina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fornaia</surname>
          </string-name>
          , E. Tramontana,
          <article-title>VSEW: an early warning system for volcanic and seismic events</article-title>
          ,
          <source>in: Proceedings of IEEE International Conference on Smart Computing</source>
          ,
          <string-name>
            <surname>SMARTCOMP</surname>
          </string-name>
          , Bologna, Italy,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>Tani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Yamamura</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Waridashi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Kawamura</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. Takizawa,</surname>
          </string-name>
          <article-title>Simulation on rescue in case of earthquake disaster by multi-agent system</article-title>
          ,
          <source>in: Proc. of World Conference on Earthquake Engineering</source>
          , Vancouver, BC, Canada,
          <year>2004</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>G.</given-names>
            <surname>Bunea</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. M.</given-names>
            <surname>Atanasiu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Leon</surname>
          </string-name>
          ,
          <article-title>The efect of information on the performance of a multiagent system for post-disaster evacuation</article-title>
          ,
          <source>in: Proc. of International Symposium on Life-Cycle Civil Engineering</source>
          , Delft, The Netherlands,
          <year>2016</year>
          , pp.
          <fpage>2053</fpage>
          -
          <lpage>2059</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>T.</given-names>
            <surname>Furuya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Sadohara</surname>
          </string-name>
          ,
          <article-title>Modeling and simulation of rescue activity by the local residents in the seismic disaster</article-title>
          ,
          <source>in: Proc. of ESRI International User Conference</source>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>I. G.</given-names>
            <surname>Main</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. F.</given-names>
            <surname>Bell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. G.</given-names>
            <surname>Meredith</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Geiger</surname>
          </string-name>
          ,
          <string-name>
            <surname>S. Touati,</surname>
          </string-name>
          <article-title>The dilatancy-difusion hypothesis and earthquake predictability</article-title>
          ,
          <source>Geological Society</source>
          , London, Special Publications 367 (
          <year>2012</year>
          )
          <fpage>215</fpage>
          -
          <lpage>230</lpage>
          . doi:https://doi.org/10.1144/SP367.15.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>K.</given-names>
            <surname>Aki</surname>
          </string-name>
          ,
          <article-title>Asperities, barriers, characteristic earthquakes and strong motion prediction</article-title>
          ,
          <source>Journal of Geophysical Research</source>
          <volume>89</volume>
          (
          <year>1984</year>
          )
          <fpage>5867</fpage>
          -
          <lpage>5872</lpage>
          . doi:
          <volume>10</volume>
          .1029/JB089iB07p05867.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>M.</given-names>
            <surname>Béjar-Pizarro</surname>
          </string-name>
          , et al.,
          <article-title>Asperities and barriers on the seismogenic zone in north chile: State of the art after the 2007 mw 7.7 tocopilla earthquake inferred by GPS and InSar data</article-title>
          ,
          <source>Geophysical Journal International</source>
          <volume>183</volume>
          (
          <year>2010</year>
          )
          <fpage>390</fpage>
          -
          <lpage>406</lpage>
          . doi:
          <volume>10</volume>
          .1111/j.
          <fpage>1365</fpage>
          -
          <lpage>246X</lpage>
          .
          <year>2010</year>
          .
          <volume>04748</volume>
          .x.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>S.</given-names>
            <surname>Awadallah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Moure</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Torres-González</surname>
          </string-name>
          ,
          <article-title>An internet of things (IoT) application on volcano monitoring</article-title>
          ,
          <source>Sensors</source>
          <volume>19</volume>
          (
          <year>2019</year>
          )
          <article-title>4651</article-title>
          . doi:
          <volume>10</volume>
          .3390/s19214651.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>