=Paper= {{Paper |id=Vol-2706/paper15 |storemode=property |title=An Early Warning System for seismic events based on the Multi-Agent Model |pdfUrl=https://ceur-ws.org/Vol-2706/paper16.pdf |volume=Vol-2706 |authors=Roberto Spina,Andrea Fornaia,Emiliano Tramontana |dblpUrl=https://dblp.org/rec/conf/woa/SpinaFT20 }} ==An Early Warning System for seismic events based on the Multi-Agent Model== https://ceur-ws.org/Vol-2706/paper16.pdf
An Early Warning System for Seismic Events based
on the Multi-Agent Model
Roberto Spinaa,b , Andrea Fornaiaa and Emiliano Tramontanaa
a
    Department of Mathematics and Computer Science, University of Catania, Italy
b
    National Council of Geologists (CNG), Rome, Italy


                                         Abstract
                                         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 different types of sensors.
                                             The MAS (Multi-Agent System) model is one of the most suitable choices for efficiently 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 offers free access to some seismic precursors.

                                         Keywords
                                         MAOP, MAS, multi-agent system, seismic precursors, earthquakes, geophysical parameters




1. Introduction
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 [1, 2, 3]. The adoption of centralized methods presents intrinsic
difficulties 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) offer different advantages and a good solution for the modelling of complex distributed


WOA 2020: Workshop “From Objects to Agents”, September 14–16, 2020, Bologna, Italy
" roberto.spina@phd.unict.it (R. Spina); fornaia@dmi.unict.it (A. Fornaia); tramontana@dmi.unict.it
(E. Tramontana)
 0000-0001-7393-7249 (R. Spina); 0000-0001-6034-855X (A. Fornaia); 0000-0002-7169-659X (E. Tramontana)
                                       © 2020 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
    CEUR
    Workshop
    Proceedings
                  http://ceur-ws.org
                  ISSN 1613-0073
                                       CEUR Workshop Proceedings (CEUR-WS.org)



                                                                                                         184
Roberto Spina et al.                                                                      184–199


systems [3, 4, 5]. One of the fundamental characteristics of the MAS paradigm is the interac-
tion 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.
   The different 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.
   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.
   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.


2. Related Work
Many applications that combine artificial intelligence and MAS technologies, in various sec-
tors, have been developed: some examples are represented by the new opportunities created
respectively for traffic control at intersections[1], for monitoring and improving the cloud
performance and security [2], or for alerting people about crowded destinations [6]. 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 [3]. 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 [4].
   Different 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) [7]. 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 [8]. A Disaster



                                               185
Roberto Spina et al.                                                                           184–199


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 [9].
   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 [10]; (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 [11]; (iii) through
simulations of various post-seismic evacuation scenarios for people using a multi-agent system
[12]; (iv) integrating GIS with multi-agent seismic disaster simulations to investigate factors
significantly affecting rescue efforts, and to clarify countermeasures for saving lives [13].


3. Approach
This section describes the model on which SEW is based and the methodologies used to im-
plement 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.

3.1. Methodology
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.
   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 ), (𝑃2 , 𝑆
(𝑃1 , 𝑆                         ¯ 3 ), the ordered pairs where P corresponds to the number of S elements
                   ¯ 2 ), (𝑃3 , 𝑆
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 ∑︁ ¯
                            𝑆𝑆𝑇ℎ =        𝑃𝑖 𝑆 𝑖                        (1)
                                      𝑁
                                         𝑖=1
                            𝑁 = 𝑃1 + 𝑃2 + 𝑃3 .                          (2)

The 𝑆𝑆𝑇ℎ value obtained corresponds to the most probable value for seismic swarms with 𝑀¯𝑤 <
6 for that specific seismogenic structure, and therefore a threshold value for the mainshock of
magnitude M𝑤 ≥ 6.



                                                  186
Roberto Spina et al.                                                                     184–199


   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:
                               ⎯
                               ⎸ 3
                               ⎸ ∑︁
                               ⎸
                               ⎸      (𝑆¯𝑖 − 𝑇ℎ )2
                               ⎷ 𝑖=1
                          𝜎=                                        (3)
                                          3
and the achievement of the threshold value (𝑇ℎ ) will occur when:

                           [𝑀¯𝑤 ± 𝜎𝑤 ] ∩ [𝑆𝑆𝑇 ℎ ± 𝜎𝑡ℎ ] ̸= ∅        (4)

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.
  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)
                                  return "hard";
                           if (𝑆𝑆 ∧ ((𝑅𝐶 ∧ 𝐺𝐷) ∨ (𝑅𝐶 ∧ 𝑆𝑇 ) ∨ (𝐺𝐷 ∧ 𝑆𝑇 )))
                                  return "medium";
                           if (𝑆𝑆 ∧ (𝑅𝐶 ∨ 𝐺𝐷 ∨ 𝑆𝑇 ))
                                  return "soft".

3.2. Theoretical Background of the SEW
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.
   Dilatancy theory [14] 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 different 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.



                                              187
Roberto Spina et al.                                                                      184–199


   In the barrier model [15, 16] 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 affected by seismic (aftershock)
or aseismic sliding episodes.
   The asperity model [15, 16] 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.
   The three models agree with the physico-chemical anomalies related to the extensive fracture
affecting the seismogenic area (seismic precursors) and with the long sequences of earthquakes
preceding (foreshock) and subsequent (aftershock) at the mainshock, providing a valid interpre-
tative key.


4. Framework
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.
  A more detailed analysis of the individual responsibilities attributed to each agent and the
proposed architectures are described in the following sections.

4.1. Hardware and software architecture
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.
   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.



                                               188
Roberto Spina et al.                                                                       184–199




Figure 1: Repeater-Gateway transmission system [17]


   Figure 1 shows the acquisition-transmission scheme of the wireless network, consisting of
three main components: the gateway, the repeater, and the end devices [17]. 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 differs 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.
   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.
   The detail of the interactions between the agents relating to different clusters is described in
the following section.

4.2. Collaborative interaction between agents
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



                                                189
Roberto Spina et al.                                                                              184–199




                                                 B1


                                                              C1
                                                                                          earthquakes database



                                                                                  Seismic data server
                                            D1



                                                                                          seismic swarms
                                                                                          database
         A                                 Level of alarm




                                                                                    ……
                                            Graphics                                      ground deformation
                                            and table                                     database

                                                                                  Geophysical precursor server




                                          B2
     F         E

                                                                                         ground deformation
                                                        C2                               database
             Se
               nd
               m
                es




                                                                                 Ground deformation server
                    sa




                                           D2
                      ge




                                                            SEW Dashboard


Figure 2: Agent interactions scheme


front-end. The system, still under development, uses Java Agent Development Framework
(JADE), a network-oriented framework that guarantees very efficient 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.
   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.
   Figure 2 highlights the different 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



                                                      190
Roberto Spina et al.                                                                          184–199




Figure 3: A mockup of the SEW dashboard


𝐶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 sufficiently 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.
   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



                                                 191
Roberto Spina et al.                                                                         184–199


can re-trigger the sequence of activities listed above. A mockup of the SEW interface, currently
under development, is shown in Figure 3.

4.3. User assistance
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.
   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.
   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 affected 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.


5. Case study: New Zealand, a land with high seismic and
   volcanic risk
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 different 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.



                                                 192
Roberto Spina et al.                                                                              184–199




Figure 4: Scheme of the subduction area (Kermadec Trench) and the transform zone (Alpine fault)
with the relative displacement speeds of the Pacific plate in collision with the Australian plate. (Credit:
Mikenorton via Creative Commons https:// commons.wikimedia.org/ w/ index.php?curid=10735284)


5.1. Seismotectonic overview
Within the GeoNet Quake Search section, New Zealand is divided into 10 seismic regions, from
Auckland & Northland to Wellington & 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 off-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).

5.2. Experiments
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



                                                   193
Roberto Spina et al.                                                                       184–199


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.
   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.
   The SEW test was performed on the northern segment of the Marlborough fault system of
the Wellington & 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 2016-
11-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.
   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.
   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.


6. Results
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.
   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).



                                                194
Roberto Spina et al.                                                                      184–199


Table 1
Seismic swarms before the mainshock (Marlborough fault system)


                  Seismic swarms                      𝑀𝑚𝑠        ¯
                                                                 𝑀           𝑁𝑠𝑒


                  2013-07-21                            6.5      2.4          340
                  2016-11-14                            6.2      2.0          290

                  Threshold value: 2.2
                  Standard deviation: 0.2
                  Total number of seismic events: 630



Table 2
Ground deformation before the mainshock (Marlborough fault system)


                 GPS/GNSS Stations                    𝑇ℎ (𝑐𝑚)      𝜎(𝑐𝑚)      𝑁𝑚


                 CMBL                                   -29            4.1     400
                 WITH                                   -4.6           0.8     400
                 KAIK                                   -17.2          0.4     400

                 Total number of measurements: 1200



   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):
       ([𝑀¯𝑤 ± 𝜎𝑤 ] ∩ [𝑆𝑆𝑇 ℎ ± 𝜎𝑡ℎ ] ̸= ∅) ∧ ([𝐺𝐷 ¯ ± 𝜎𝑔𝑑 ] ∩ [𝐺𝐷𝑇 ℎ ± 𝜎𝑡ℎ ] ̸= ∅).        (6)
The evaluation of the Boolean expression for ground deformation corresponds to a logical AND
between the three GNSS/GPS stations:
                                   (CMBL) ∧ (WITH) ∧ (KAIK).                               (7)
   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,



                                               195
Roberto Spina et al.                                                                     184–199


Table 3
Test 2013-08-16 earthquake* and seismic swarm** on May 2018


                            Seismic Swarm     CMBL         WITH          KAIK
                    ¯ *
                   𝐺𝐷             -         -24.6 ± 3.5   -4.9 ± 0.3   -16.8 ± 0.4

                    ¯ **
                   𝐺𝐷             -         94.7 ± 0.5    9.4 ± 0.5    57.6 ± 0.5

                   𝑀¯𝑤 *      2.3 ± 0.4          -            -             -

                   𝑀¯𝑤 **     2.3 ± 0.7          -            -             -



which affected 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.


7. Conclusions
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 different 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).
   According to the theory of dilatancy and asperity, the transformations that a territory un-
dergoes 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” [15], physico-chemical anomalies, on average similar to those that
occurred in the past, can be generated.
   The SEW system has been implemented using the MAS approach, hence ensuring modularity,
efficiency 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



                                               196
Roberto Spina et al.                                                                      184–199




Figure 5: Comparison between the ranges of the data in progress and the threshold values for the
ground deformation and the seismic swarms related to the August 2013 earthquake. Note that in all
cases there is an overlap of the intervals.


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.
   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.
   On the contrary, the seismic swarm of May 2018, which affected 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.




                                               197
Roberto Spina et al.                                                                    184–199


Acknowledgement
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.


References
 [1] M. Krzysztoń, B. Śnieżyński, Combining machine learning and multi-agent approach
     for controlling traffic at intersections, in: Computational Collective Intelligence, LNCS,
     volume 9329, 2015, pp. 57–66. doi:10.1007/978-3-319-24069-5_6.
 [2] D. Grzonka, A. Jakóbik, J. Kołodziej, S. Pllana, Using a multi-agent system and artificial
     intelligence for monitoring and improving the cloud performance and security, Future
     Generation Computer Systems, Elsevier 86 (2018) 1106–1117. doi:10.1016/j.future.
     2017.05.046.
 [3] A. E. F. Seghrouchni, A. M. Florea, A. Olaru, Multi-agent systems: A paradigm to design
     ambient intelligent applications, in: Studies in Computational Intelligence, SCI, volume
     315, 2010, pp. 3–9. doi:10.1007/978-3-642-15211-5_1.
 [4] V. Suryanarayanan, G. Theodoropoulos, M. Lees, PDES-MAS: Distributed simulation
     of multi-agent systems, Procedia Computer Science, Elsevier 18 (2013) 671–681. doi:10.
     1016/j.procs.2013.05.231.
 [5] A. Calvagna, E. Tramontana, Delivering dependable reusable components by expressing
     and enforcing design decisions, in: Proc. of IEEE Computer Software and Applications
     Conference (COMPSAC), IEEE, 2013, pp. 493–498.
 [6] C. Cavallaro, G. Verga, E. Tramontana, O. Muscato, Suggesting just enough (un)crowded
     routes and destinations, in: Proc. of 21st Workshop ’From Objects to Agents’ (WOA 2020),
     Bologna, Italy, 2020, pp. 493–498.
 [7] G. Bunea, F. Leon, G. Atanasiu, Postdisaster evacuation scenarios using multiagent system,
     Journal of Computing in Civil Engineering, American Society of Civil Engineers 30 (2016).
     doi:10.1061/(ASCE)CP.1943-5487.0000575.
 [8] F. Fiedrichn, An hla based multiagent system for optimized resource allocation after strong
     earthquakes, in: J. Cohen (Ed.), Proceedings of the 2006 Winter Simulation Conference,
     Monterey, CA, 2006, pp. 486–492. doi:10.1109/WSC.2006.323120.
 [9] D. Moser, D. Pinto, A. Cipriano, Developing a multiagent based decision support system
     for realtime multi-risk disaster manage- ment, International Journal of Environmental and
     Ecological Engineering 9 (2015) 831–835. doi:doi.org/10.5281/zenodo.1099832.
[10] R. Spina, A. Fornaia, E. Tramontana, VSEW: an early warning system for volcanic and
     seismic events, in: Proceedings of IEEE International Conference on Smart Computing,
     SMARTCOMP, Bologna, Italy, 2020.
[11] A. Tani, T. Yamamura, Y. Waridashi, H. Kawamura, A. Takizawa, Simulation on rescue
     in case of earthquake disaster by multi-agent system, in: Proc. of World Conference on
     Earthquake Engineering, Vancouver, BC, Canada, 2004, pp. 1–6.




                                              198
Roberto Spina et al.                                                                        184–199


[12] G. Bunea, G. M. Atanasiu, F. Leon, The effect of information on the performance of a
     multiagent system for post-disaster evacuation, in: Proc. of International Symposium on
     Life-Cycle Civil Engineering, Delft, The Netherlands, 2016, pp. 2053–2059.
[13] T. Furuya, S. Sadohara, Modeling and simulation of rescue activity by the local residents
     in the seismic disaster, in: Proc. of ESRI International User Conference, 2004.
[14] I. G. Main, A. F. Bell, P. G. Meredith, S. Geiger, S. Touati, The dilatancy-diffusion hypothesis
     and earthquake predictability, Geological Society, London, Special Publications 367 (2012)
     215–230. doi:https://doi.org/10.1144/SP367.15.
[15] K. Aki, Asperities, barriers, characteristic earthquakes and strong motion prediction,
     Journal of Geophysical Research 89 (1984) 5867–5872. doi:10.1029/JB089iB07p05867.
[16] M. Béjar-Pizarro, et al., 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, Geophysical Journal International 183 (2010) 390–406. doi:10.1111/j.1365-246X.
     2010.04748.x.
[17] S. Awadallah, D. Moure, P. Torres-González, An internet of things (IoT) application on
     volcano monitoring, Sensors 19 (2019) 4651. doi:10.3390/s19214651.




                                                199