<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Appl. Math. Stat.</journal-id>
<journal-title>Frontiers in Applied Mathematics and Statistics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Appl. Math. Stat.</abbrev-journal-title>
<issn pub-type="epub">2297-4687</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fams.2023.1107243</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Applied Mathematics and Statistics</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>A statistical methodology for classifying earthquake detections and for earthquake parameter estimation in smartphone-based earthquake early warning systems</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name><surname>Massoda Tchoussi</surname> <given-names>Frank Yannick</given-names></name>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Finazzi</surname> <given-names>Francesco</given-names></name>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/914441/overview"/>
</contrib>
</contrib-group>
<aff><institution>Department of Economics, University of Bergamo</institution>, <addr-line>Bergamo</addr-line>, <country>Italy</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: George Michailidis, University of Florida, United States</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Annette Witt, Max-Planck-Institute for Dynamics and Self-Organisation, Germany; Alex Jung, Aalto University, Finland</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Francesco Finazzi &#x02709; <email>francesco.finazzi&#x00040;unibg.it</email></corresp>
<fn fn-type="other" id="fn001"><p>This article was submitted to Statistics and Probability, a section of the journal Frontiers in Applied Mathematics and Statistics</p></fn></author-notes>
<pub-date pub-type="epub">
<day>16</day>
<month>02</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>9</volume>
<elocation-id>1107243</elocation-id>
<history>
<date date-type="received">
<day>24</day>
<month>11</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>26</day>
<month>01</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2023 Massoda Tchoussi and Finazzi.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Massoda Tchoussi and Finazzi</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license></permissions>
<abstract>
<p>Smartphone-based earthquake early warning systems (EEWSs) are emerging as a complementary solution to classic EEWSs based on expensive scientific-grade instruments. Smartphone-based systems, however, are characterized by a highly dynamic network geometry and by noisy measurements. Thus, there is a need to control the probability of false alarms and the probability of missed detection. This study proposes a statistical methodology to address this challenge and to jointly estimate in near real-time earthquake parameters like epicenter and depth. The methodology is based on a parametric statistical model, on hypothesis testing and on Monte Carlo simulation. The methodology is tested using data obtained from the Earthquake Network (EQN), a citizen science initiative that implements a global smartphone-based EEWS. It is discovered that, when the probability to miss an earthquake is fixed at 1%, the probability of false alarm is 0.8%, proving that EQN is a robust smartphone-based EEW system.</p></abstract>
<kwd-group>
<kwd>maximum likelihood (ML)</kwd>
<kwd>Monte Carlo simulation (MC)</kwd>
<kwd>hypothesis testing (HT)</kwd>
<kwd>optimization algorithm</kwd>
<kwd>classification</kwd>
</kwd-group>
<contract-num rid="cn001">821115</contract-num>
<contract-sponsor id="cn001">Horizon 2020 Framework Programme<named-content content-type="fundref-id">10.13039/100010661</named-content></contract-sponsor>
<counts>
<fig-count count="6"/>
<table-count count="1"/>
<equation-count count="20"/>
<ref-count count="18"/>
<page-count count="10"/>
<word-count count="5044"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1. Introduction</title>
<p>Wireless sensor networks (WSNs) enable solutions in multiple fields, and they are adopted in environmental, health, urban, and military applications [<xref ref-type="bibr" rid="B1">1</xref>, <xref ref-type="bibr" rid="B2">2</xref>]. A problem commonly solved within WSNs is the detection and localization in space of relevant events or targets [<xref ref-type="bibr" rid="B3">3</xref>&#x02013;<xref ref-type="bibr" rid="B7">7</xref>].</p>
<p>This study focuses on earthquake early warning systems (EEWSs) [<xref ref-type="bibr" rid="B8">8</xref>&#x02013;<xref ref-type="bibr" rid="B10">10</xref>], which are deployed in seismic areas for the real-time detection of earthquakes, with the ultimate goal of sending alerts to citizens and stopping critical processes before ground shaking begins.</p>
<p>Classic EEWSs are based on a dense network of scientific-grade instruments, with construction and operating costs on the order of millions of euros [<xref ref-type="bibr" rid="B11">11</xref>]. This largely limited their implementation, especially in seismic developing countries.</p>
<p>Due to smartphone technology, low-cost EEWSs have been recently implemented at the global level [<xref ref-type="bibr" rid="B12">12</xref>]. Smartphones are used to detect ground shaking using the on-board accelerometer, and a warning is issued to the population as soon as the earthquake is detected. This path has been explored by the Earthquake Network (EQN), a citizen science initiative [<xref ref-type="bibr" rid="B13">13</xref>, <xref ref-type="bibr" rid="B14">14</xref>], that, since 2013, implements the first smartphone-based EEWS.</p>
<p>Within the EQN EEWS, nodes of the WSN are the smartphones voluntarily made available by citizens. This poses many challenges because personal smartphones mainly sense the &#x0201C;anthropic noise&#x0201D; connected with human activities.</p>
<p>The primary challenge faced by the EQN is to control the probability of false alarms and the probability to miss an earthquake. Alerts may be triggered by events unrelated to earthquakes and some (possibly strong) earthquakes may be missed, especially if the number of monitoring smartphones is small. Both false alarms and missed detections may undermine people&#x00027;s trust in the EQN.</p>
<p>In the pivotal study by Finazzi and Fass&#x000F2; [<xref ref-type="bibr" rid="B15">15</xref>], a statistical methodology is developed for identifying in real-time earthquake occurrence. The study, however, does not take into account the spatial dimension of the smartphone network, making the detection algorithm prone to false alarms. Moreover, the methodology does not allow to estimate important earthquake parameters such as epicenter and depth. In Finazzi et al. [<xref ref-type="bibr" rid="B16">16</xref>], instead, the EQN detection capabilities are modeled within a probabilistic framework. It is discovered that the EQN missed some relatively strong earthquakes that were supposed to be detected by the smartphone network. These considerations and findings suggest that there is room to improve EQN&#x00027;s methods and algorithms.</p>
<p>This study proposes a statistical methodology for 1) controlling the probability of false alarms, 2) controlling the probability of missed detection, 3) classifying a detection between true and false earthquake, and 4) estimating earthquake epicenter and depth (if the detection is classified as a true earthquake).</p>
<p>The methodology is based on a statistical parametric model, statistical hypothesis testing, and Monte Carlo simulation. Contrary to model-less approaches (see for instance [<xref ref-type="bibr" rid="B3">3</xref>]), the methodology exploits the fact that the spatio-temporal dynamic of seismic waves is well-known. This information is retained by the statistical model, and it helps to both classify the EQN detection and to estimate the earthquake parameters.</p>
<p>Due to the peculiarity of the specific application, real-time is a constraint. Ideally, classification and earthquake parameter estimation should not exceed 1 or 2 s of computing time.</p>
<p>The smartphone-based EQN is used to test the statistical methodology, which is then applied to some true and false EQN detections.</p></sec>
<sec id="s2">
<title>2. EQN&#x00027;s detection algorithm</title>
<p>Before formalizing the classification and the earthquake parameter estimation problems, it is useful to detail the output of the earthquake detection algorithm currently implemented by the EQN [<xref ref-type="bibr" rid="B15">15</xref>]. For any given area of radius 30 km, the algorithm compares the number of triggering smartphones in the last 10 s with the number of active smartphones. A triggering smartphone is a smartphone that detected an acceleration above a threshold, while an active smartphone is a smartphone known to monitor earthquakes. If the ratio between triggering smartphones and active smartphones exceeds a threshold, an earthquake is claimed to be detected. The output of the detection algorithm consists of the detection location and the list of the triggering smartphones (triggers for short), which are identified by their spatial coordinates (latitude and longitude) and the triggering time.</p></sec>
<sec id="s3">
<title>3. Problem formalization</title>
<p>An earthquake detection made by an EQN is defined in terms of <italic>k</italic><sub><italic>j</italic></sub>&#x0003E;0 triggers, where <italic>j</italic> is the index of the generic detection. In general, <italic>k</italic><sub><italic>j</italic></sub> is not a constant, meaning that each detection is characterized by a different number of triggers. Each trigger is described by the feature vector as follows:</p>
<disp-formula id="E1"><mml:math id="M1"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <italic>t</italic><sub><italic>i</italic></sub>&#x02208;&#x0211D; is the triggering time, while <inline-formula><mml:math id="M2"><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="-tex-caligraphic">S</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> are the smartphone coordinates, with <inline-formula><mml:math id="M3"><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="-tex-caligraphic">S</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> being the sphere embedded in &#x0211D;<sup>3</sup>. The <italic>k</italic><sub><italic>j</italic></sub>&#x000D7;3 matrix <inline-formula><mml:math id="M4"><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> is the data point, and the feature space is <inline-formula><mml:math id="M5"><mml:mrow><mml:mi mathvariant="-tex-caligraphic">X</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:msubsup><mml:mrow><mml:mo>&#x0222A;</mml:mo></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>&#x0221E;</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="-tex-caligraphic">X</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, with <inline-formula><mml:math id="M6"><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="-tex-caligraphic">X</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mi>&#x0211D;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msup><mml:mo>&#x000D7;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="-tex-caligraphic">S</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> and <italic>k</italic>&#x0003E;0 is the generic number of triggers.</p>
<p>Let <inline-formula><mml:math id="M7"><mml:mrow><mml:mi mathvariant="-tex-caligraphic">Y</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mo>&#x0220B;</mml:mo><mml:mi>y</mml:mi></mml:math></inline-formula> be the label space. For each earthquake detection, <italic>y</italic> &#x0003D; 1 if the detection is false while <italic>y</italic> &#x0003D; &#x02212;1 if the detection is related to a true earthquake.</p>
<p>The aim is to learn a hypothesis map <inline-formula><mml:math id="M8"><mml:mi>h</mml:mi><mml:mo>:</mml:mo><mml:mrow><mml:mi mathvariant="-tex-caligraphic">X</mml:mi><mml:mo>&#x02192;</mml:mo><mml:mi mathvariant="-tex-caligraphic">Y</mml:mi></mml:mrow></mml:math></inline-formula> such that <italic>y</italic>&#x02248;<italic>h</italic>(<italic><bold>X</bold></italic>) for any data point <italic><bold>X</bold></italic> (i.e., for any future EQN detection). The map <italic>h</italic> is highly non-linear since the information content of <italic><bold>X</bold></italic> is determined by the spatio-temporal dynamics of the seismic waves and spatial distribution of the smartphones at the time of the earthquake.</p>
<p>A statistical parametric model <inline-formula><mml:math id="M9"><mml:mi>f</mml:mi><mml:mo>:</mml:mo><mml:mrow><mml:mi mathvariant="-tex-caligraphic">X</mml:mi><mml:mo>&#x02192;</mml:mo></mml:mrow><mml:mi>&#x00398;</mml:mi></mml:math></inline-formula> is adopted to understand if <italic><bold>X</bold></italic> is generated by a true earthquake. The unknown model parameter vector is <bold>&#x003B8;</bold>&#x02208;&#x00398; &#x0003D; &#x0211D;<sup><italic>s</italic></sup>, with <italic>s</italic>&#x0226A;<italic>k</italic><sub><italic>j</italic></sub> as the vector size. The hypothesis map is then <italic>h</italic>(<italic><bold>X</bold></italic>) &#x0003D; <italic>g</italic>(<italic>f</italic>(<italic><bold>X</bold></italic>)) &#x0003D; <italic>g</italic>(<bold>&#x003B8;</bold>). Note that <italic>s</italic> is constant, and it does not depend on the dimension of <italic><bold>X</bold></italic>.</p>
<p>When dealing with EEW systems, it is required to control two parameters: the probability &#x003B1; of missed detections (true earthquakes which are not detected by the system) and the probability &#x003B2; of false detections (detections which are not related to any occurred earthquake). It is thus reasonable to adopt a 0/1 loss function as follows:</p>
<disp-formula id="E2"><mml:math id="M10"><mml:mrow><mml:mi>L</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle><mml:mo>,</mml:mo><mml:mi>y</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>g</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mn>1</mml:mn><mml:mtext>&#x000A0;&#x000A0;&#x000A0;if&#x000A0;</mml:mtext><mml:mi>y</mml:mi><mml:mo>&#x02260;</mml:mo><mml:mover accent='true'><mml:mi>y</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mn>0</mml:mn><mml:mtext>&#x000A0;&#x000A0;else,</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:math></disp-formula>
<p>and to learn a <italic>g</italic> that minimized the Bayes risk</p>
<disp-formula id="E3"><label>(1)</label><mml:math id="M11"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>&#x0011D;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle="true"><mml:munder><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mi>E</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>L</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle><mml:mo>,</mml:mo><mml:mi>y</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>g</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>As discussed by Jung [<xref ref-type="bibr" rid="B17">17</xref>], solving (Equation 1) requires knowing the joint probability distribution <italic>p</italic>(<italic><bold>X</bold></italic>, <italic>y</italic>). Instead, we rely on the fact that it is relatively easy to simulate EQN detections under different smartphone geometries and different earthquake parameters. This induces a variability on <italic><bold>X</bold></italic> and on the number of triggers <italic>k</italic><sub><italic>j</italic></sub>. Assuming to have a data set <inline-formula><mml:math id="M12"><mml:mrow><mml:mi mathvariant="-tex-caligraphic">D</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>m</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>m</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> and that <inline-formula><mml:math id="M13"><mml:mrow><mml:mi mathvariant="-tex-caligraphic">D</mml:mi></mml:mrow></mml:math></inline-formula> is a representative sample of <italic>p</italic>(<italic><bold>X</bold></italic>, <italic>y</italic>), we define the empirical risk as follows:</p>
<disp-formula id="E4"><mml:math id="M14"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mi>L</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>g</mml:mi><mml:mstyle mathvariant="bold"><mml:mo>&#x02223;</mml:mo></mml:mstyle><mml:mrow><mml:mi mathvariant="-tex-caligraphic">D</mml:mi></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>/</mml:mo><mml:mi>m</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:mi>L</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>g</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>and <italic>g</italic> is learned from the following minimization problem:</p>
<disp-formula id="E5"><label>(2)</label><mml:math id="M15"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>&#x0011D;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle="true"><mml:munder><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mi>L</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>g</mml:mi><mml:mstyle mathvariant="bold"><mml:mo>&#x02223;</mml:mo></mml:mstyle><mml:mrow><mml:mi mathvariant="-tex-caligraphic">D</mml:mi></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>Note that solving (Equation 2) is equivalent to solve</p>
<disp-formula id="E6"><label>(3)</label><mml:math id="M16"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>&#x0011D;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle="true"><mml:munder><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003B1;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x0002B;</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where it is made explicit that the probabilities of missed and false detections depend on <italic>g</italic>.</p>
<p>From an EEW perspective, the solution provided by Equation (3) is not necessarily the best. In some contexts, a missed detection has a larger negative impact than a false detection, while in other contexts, it is the opposite. In this case, one probability is fixed to the desired level, and the other probability is minimized. Two other minimization problems for learning <italic>g</italic> are the following:</p>
<disp-formula id="E7"><label>(4)</label><mml:math id="M17"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>&#x0011D;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle="true"><mml:munder><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003B1;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x0002B;</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E8"><label>(5)</label><mml:math id="M18"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>&#x0011D;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle="true"><mml:munder><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003B1;</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></sec>
<sec id="s4">
<title>4. Statistical parametric model and classification</title>
<p>In this section, we propose a statistical parametric model for the generic data point <italic><bold>X</bold></italic>. The observed triggering time for a smartphone sensing an earthquake is modeled as</p>
<disp-formula id="E9"><label>(6)</label><mml:math id="M19"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msubsup><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <inline-formula><mml:math id="M20"><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> is the expected triggering time, while <inline-formula><mml:math id="M21"><mml:msub><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0007E;</mml:mo><mml:mi>N</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> is a random component. More in detail</p>
<disp-formula id="E10"><label>(7)</label><mml:math id="M22"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>H</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>v</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>O</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>with</p>
<disp-formula id="E11"><label>(8)</label><mml:math id="M23"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>H</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:msubsup><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x0002B;</mml:mo><mml:mn>4</mml:mn><mml:mi>R</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>E</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:mi>R</mml:mi></mml:mrow></mml:mfrac></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:msqrt><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>as the distance between the hypocentre and the smartphone location, <italic>v</italic> is the seismic wave speed, and <italic>t</italic><sub><italic>O</italic></sub>&#x02208;&#x0211D; is the earthquake origin time.</p>
<p>In Equation (8), <italic>D</italic><sub><italic>i, E</italic></sub> is the distance between the epicenter <inline-formula><mml:math id="M24"><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="-tex-caligraphic">S</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> and the smartphone location, <italic>d</italic><sub><italic>E</italic></sub>&#x02208;[0, 500] is the earthquake depth, and <italic>R</italic> is the earth radius (6, 371 km). Here, it is assumed that all smartphones either detect the primary seismic wave (<italic>v</italic> &#x0003D; 7.8 km/s) or they all detect the secondary wave (<italic>v</italic> &#x0003D; 4.5 km/s). This assumption is justified by the fact that earthquake detection is based on smartphones within a radius of 30 km, which is a relatively small area.</p>
<p>The role of the random component &#x003F5;<sub><italic>i</italic></sub> is to model the difference between the expected and the observed triggering time. This difference is mainly due to the smartphone detection delay and a seismic wave velocity that may differ from the expected value.</p>
<p>Equations (6&#x02013;8) fully define the statistical model <italic>f</italic> and the model parameter vector is <inline-formula><mml:math id="M25"><mml:mstyle mathvariant="bold"><mml:mi>&#x003B8;</mml:mi></mml:mstyle><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>O</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x02208;</mml:mo><mml:mi>&#x00398;</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="-tex-caligraphic">S</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x000D7;</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>500</mml:mn></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x000D7;</mml:mo><mml:mi>&#x0211D;</mml:mi><mml:mo>&#x000D7;</mml:mo><mml:msup><mml:mrow><mml:mi>&#x0211D;</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002B;</mml:mo></mml:mrow></mml:msup><mml:mo>&#x02282;</mml:mo><mml:msup><mml:mrow><mml:mi>&#x0211D;</mml:mi></mml:mrow><mml:mrow><mml:mn>6</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>.</p>
<sec>
<title>4.1. Model estimation</title>
<p>Model estimation is based on the maximum likelihood method. For a generic EQN detection, the log-likelihood function based on the joint probability distribution of <inline-formula><mml:math id="M26"><mml:mi>&#x00394;</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> is</p>
<disp-formula id="E12"><label>(9)</label><mml:math id="M27"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>l</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant="bold"><mml:mi>&#x003B8;</mml:mi></mml:mstyle><mml:mo>;</mml:mo><mml:mstyle mathvariant="bold-italic"><mml:mtext>X</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mfrac><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mo class="qopname">ln</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>2</mml:mn><mml:mi>&#x003C0;</mml:mi><mml:mo>-</mml:mo><mml:mfrac><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mo class="qopname">ln</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:mi>&#x00394;</mml:mi><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The &#x00394;<italic>t</italic><sub><italic>i</italic></sub> are assumed to be independent. This assumption is realistic because smartphones do not share a common clock, detection delays are independent, and the detection by each smartphone is influenced by local factors (e.g., where the smartphone is located, at which floor of the building, and the accelerometer sensitivity).</p>
<p>Maximum likelihood estimates of <italic>lat</italic><sub><italic>E</italic></sub>, <italic>lon</italic><sub><italic>E</italic></sub>, <italic>d</italic><sub><italic>E</italic></sub>, and <italic>t</italic><sub><italic>O</italic></sub> are given by</p>
<disp-formula id="E13"><label>(10)</label><mml:math id="M28"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mstyle displaystyle="true"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>O</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder></mml:mstyle><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:mi>&#x00394;</mml:mi><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The solution of Equation (10) cannot be obtained in a closed form due to the non-linearity of Equation (8) hence, estimates are obtained <italic>via</italic> numerical optimization using the BFGS Quasi-Newton method [<xref ref-type="bibr" rid="B18">18</xref>]. As usual, to avoid local minima, the numerical optimization algorithm is run multiple times starting from random initial values for <italic>lat</italic><sub><italic>E</italic></sub>, <italic>lon</italic><sub><italic>E</italic></sub>, <italic>d</italic><sub><italic>E</italic></sub>, and <italic>t</italic><sub><italic>O</italic></sub>. The minimization in Equation (10) is possible because for any &#x0201C;proposed&#x0201D; values of the model parameters, <inline-formula><mml:math id="M29"><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> can be computed using Equations (7), (8) and then compared with the observed <italic>t</italic><sub><italic>i</italic></sub>.</p>
<p>At convergence, the BFGS quasi-network method also returns the Hessian matrix. Since maximum likelihood estimates for model parameters are obtained from a minimization problem, the Hessian is equivalent to the observed Fisher information matrix. The variance&#x02013;covariance matrix of the three parameters is then the inverse of the Hessian matrix from which standard errors are easily computed.</p>
<p>Finally, the maximum likelihood estimate of the variance is as follows:</p>
<disp-formula id="E14"><label>(11)</label><mml:math id="M30"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:mfrac><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:munderover></mml:mstyle><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x00394;</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <inline-formula><mml:math id="M31"><mml:mover accent="true"><mml:mrow><mml:mi>&#x00394;</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> is computed after replacing in Equations (7) and in Equation (8) the maximum likelihood estimates of latitude, longitude, and depth, while <inline-formula><mml:math id="M32"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> is the mean of the <inline-formula><mml:math id="M33"><mml:mover accent="true"><mml:mrow><mml:mi>&#x00394;</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula>.</p></sec>
<sec>
<title>4.2. EQN detection classification</title>
<p>Among all elements of <bold>&#x003B8;</bold>, the parameter that carries information about how the EQN detection should be classified is <inline-formula><mml:math id="M34"><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>. Indeed, <inline-formula><mml:math id="M35"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> tends to be small when the earthquake is true (and triggering times follow the seismic wave dynamic) while <inline-formula><mml:math id="M36"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> tends to be large when the detection is not related to an earthquake event. This implies that <italic>g</italic>(<bold>&#x003B8;</bold>) reduces to <inline-formula><mml:math id="M37"><mml:mi>g</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
<p>In this study, <italic>g</italic> is chosen to be a statistical hypothesis test on <inline-formula><mml:math id="M38"><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>. The system of hypothesis is given by</p>
<disp-formula id="E15"><label>(12)</label><mml:math id="M39"><mml:mrow><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo>:</mml:mo><mml:msubsup><mml:mi>&#x003C3;</mml:mi><mml:mi>&#x003F5;</mml:mi><mml:mn>2</mml:mn></mml:msubsup><mml:mo>=</mml:mo><mml:mi>&#x003B4;</mml:mi></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>:</mml:mo><mml:msubsup><mml:mi>&#x003C3;</mml:mi><mml:mi>&#x003F5;</mml:mi><mml:mn>2</mml:mn></mml:msubsup><mml:mo>&#x0003E;</mml:mo><mml:mi>&#x003B4;</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:mrow></mml:math></disp-formula>
<p>The null hypothesis is rejected when the variance is higher than expected, namely, when smartphone triggering times do not follow the propagation law of the primary or secondary seismic wave. As customary in the statistical hypothesis testing, the probability &#x003B1; is fixed, and it represents the probability to reject the null hypothesis when it is actually true (namely, it is the probability to miss a true earthquake).</p>
<p>The test statistic is as follows:</p>
<disp-formula id="E16"><label>(13)</label><mml:math id="M40"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>T</mml:mi><mml:mo>=</mml:mo><mml:mi>d</mml:mi><mml:mi>f</mml:mi><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow></mml:mfrac><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>which, under the null hypothesis, is distributed as a chi-square with <italic>k</italic>&#x02212;4 degrees of freedom (<italic>df</italic>), where 4 is the number of estimated parameters in Equation (10). The null hypothesis is rejected if <inline-formula><mml:math id="M41"><mml:mover accent="true"><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mrow><mml:mi>q</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>&#x003B1;</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>d</mml:mi><mml:mi>f</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, where <inline-formula><mml:math id="M42"><mml:mover accent="true"><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> is obtained replacing <inline-formula><mml:math id="M43"><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> with <inline-formula><mml:math id="M44"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> in Equation (13), while <italic>q</italic><sub>(1&#x02212;&#x003B1;), <italic>df</italic></sub> is the (1&#x02212;&#x003B1;)-quantile of a chi-square distribution with <italic>df</italic> degrees of freedom, usually called the critical value. In practice, an EQN detection is a true earthquake unless data bring enough evidence that the detection is actually false.</p>
<p>Since we do not know which seismic wave is detected by the smartphones, two models <italic>f</italic> are estimated: one with <italic>v</italic> &#x0003D; 7.8 km/s and another with <italic>v</italic> &#x0003D; 4.5 km/s in Equation (7). This brings to two estimated values for <inline-formula><mml:math id="M45"><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> and two hypothesis tests are implemented. The detection is classified as a false earthquake if the null hypothesis is rejected under both tests; otherwise, the earthquake is classified as true.</p>
 <p>It is worth noting that the statistical hypothesis test is equivalent to a linear map. Indeed, setting</p>
<disp-formula id="E17"><label>(14)</label><mml:math id="M61"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>w</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow></mml:mfrac><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E18"><label>(15)</label><mml:math id="M62"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>&#x003D5;</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mi>d</mml:mi><mml:mi>f</mml:mi><mml:msup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>q</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>&#x003B1;</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>d</mml:mi><mml:mi>f</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>then <italic>g</italic> &#x0003D; <italic>w</italic>&#x02032;&#x003D5;, and the earthquake detection classification is based on the following rule:</p>
<disp-formula id="E19"><label>(16)</label><mml:math id="M63"><mml:mrow><mml:mover accent='true'><mml:mi>y</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn><mml:mtext>&#x000A0;&#x000A0;&#x000A0;if&#x000A0;</mml:mtext><mml:msup><mml:mi>w</mml:mi><mml:mo>&#x02032;</mml:mo></mml:msup><mml:mi>&#x003D5;</mml:mi><mml:mo>&#x0003C;</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mn>1</mml:mn><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;else</mml:mtext><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:math></disp-formula>
<p>Finally, &#x003B4; is obtained by solving the problem</p>
<disp-formula id="E20"><label>(17)</label><mml:math id="M64"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mover accent="true"><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle="true"><mml:munder><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003B1;</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p><xref ref-type="table" rid="T2">Algorithm 1</xref> summarizes the steps for classifying an EQN detection and for estimating the earthquake parameters in case the detection is classified as a true earthquake.</p>
<table-wrap position="float" id="T2">
<label>Algorithm 1</label>
<caption><p>EQN detection classification and earthquake parameters estimation.</p></caption>
<table frame="hsides" rules="groups">
<tbody>
<tr><td align="left" valign="top">1: &#x000A0;Initialisations: the number of times <italic>N</italic> the initial values of <italic>lat</italic><sub><italic>E</italic></sub>, <italic>lon</italic><sub><italic>E</italic></sub>, <italic>d</italic><sub><italic>E</italic></sub> and <italic>t</italic><sub><italic>O</italic></sub> are randomized when solving (Equation 10). The degrees of freedom <italic>df</italic>.</td></tr>
<tr><td align="left" valign="top">2: &#x000A0;<bold>for</bold> <italic>z</italic> &#x0003D; 1, &#x02026;, <italic>N</italic> <bold>do</bold></td></tr>
<tr><td align="left" valign="top">3: &#x000A0;Sample <italic>lat</italic><sub><italic>E</italic></sub>, <italic>lon</italic><sub><italic>E</italic></sub>, <italic>d</italic><sub><italic>E</italic></sub> and <italic>t</italic><sub><italic>O</italic></sub> from uniform distributions.</td></tr>
<tr><td align="left" valign="top">4: &#x000A0;Solve the minimization problem in Equation (10).</td></tr>
<tr><td align="left" valign="top">5: &#x000A0;Compute <inline-formula><mml:math id="M46"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> in Equation (11).</td></tr>
<tr><td align="left" valign="top">6: &#x000A0;Let <italic>lat</italic><sub><italic>E, z</italic></sub>, <italic>lon</italic><sub><italic>E, z</italic></sub>, <italic>d</italic><sub><italic>E, z</italic></sub>, <italic>t</italic><sub><italic>O, z</italic></sub> and <inline-formula><mml:math id="M47"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> be the estimates for the <italic>z</italic>-th iteration.</td></tr>
<tr><td align="left" valign="top">7: &#x000A0;Let <inline-formula><mml:math id="M48"><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:munderover><mml:mi>&#x00394;</mml:mi><mml:msubsup><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> when the model parameters are <italic>lat</italic><sub><italic>E, z</italic></sub>, <italic>lon</italic><sub><italic>E, z</italic></sub>, <italic>d</italic><sub><italic>E, z</italic></sub>, <italic>t</italic><sub><italic>O, z</italic></sub>.</td></tr>
<tr><td align="left" valign="top">8: &#x000A0;<bold>end for</bold></td></tr>
<tr><td align="left" valign="top">9: &#x000A0;Solve <inline-formula><mml:math id="M49"><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:munder><mml:mrow><mml:mo class="qopname">arg&#x000A0;min</mml:mo></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow></mml:munder><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>.</td></tr>
<tr><td align="left" valign="top">10: &#x000A0;Maximum likelihood estimates of model parameters are <inline-formula><mml:math id="M50"><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="M51"><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="M52"><mml:msub><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="M53"><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>O</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="M54"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>.</td></tr>
<tr><td align="left" valign="top">11: &#x000A0;Compute the quantile <italic>q</italic><sub>1&#x02212;&#x003B1;, <italic>df</italic></sub> of a chi-square distribution with <italic>df</italic> degrees of freedom.</td></tr>
<tr><td align="left" valign="top">12: &#x000A0;Set the vector <bold><italic>w</italic></bold> in Equation (14) and the vector <bold>&#x003D5;</bold> in Equation (15) replacing <inline-formula><mml:math id="M55"><mml:msup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> with <inline-formula><mml:math id="M56"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>.</td></tr>
<tr><td align="left" valign="top">13: &#x000A0;Compute <bold><italic>w</italic></bold>&#x02032;<bold>&#x003D5;</bold> and classify the EQN detection using the rule in Equation (16).</td></tr>
<tr><td align="left" valign="top">14: &#x000A0;Return the classification &#x00177;.</td></tr>
<tr><td align="left" valign="top">15: &#x000A0;if &#x00177; &#x0003D; &#x02212;1 then</td></tr>
<tr><td align="left" valign="top">16: &#x000A0;Return the estimated earthquake parameters <inline-formula><mml:math id="M57"><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="M58"><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="M59"><mml:msub><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="M60"><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>O</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x0002A;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub></mml:math></inline-formula>.</td></tr>
<tr>
<td align="left" valign="top">17: &#x000A0;<bold>end if</bold></td></tr> 
</tbody>
</table>
</table-wrap></sec></sec>
<sec id="s5">
<title>5. Simulation study</title>
<p>The minimization problem in Equation (17) has no closed-form solution. For this reason, we implement a Monte Carlo simulation that aims to simulate a data set <inline-formula><mml:math id="M66"><mml:mrow><mml:mi mathvariant="-tex-caligraphic">D</mml:mi></mml:mrow></mml:math></inline-formula> and to minimize Equation (17).</p>
<p>A total of 1,000 true EQN detections and 1,000 false EQN detections are simulated considering the true locations of 1,000 smartphones of the EQN in Lima (Peru).</p>
<p>The probability of missed detection is fixed to &#x003B1; &#x0003D; 0.01 while &#x003B4; is made varying from 0.1 to 1.5 with step 0.1. For each value of &#x003B4;, &#x003B2;(&#x003B4;) is computed by estimating the model <italic>f</italic> and by implementing the hypothesis test (Equation 13) overall data points <italic><bold>X</bold></italic><sup>(<italic>j</italic>)</sup> in <inline-formula><mml:math id="M67"><mml:mrow><mml:mi mathvariant="-tex-caligraphic">D</mml:mi></mml:mrow></mml:math></inline-formula>. Finally, <inline-formula><mml:math id="M68"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> is the value of &#x003B4; that minimizes &#x003B2;(&#x003B4;).</p>
<sec>
<title>5.1. Simulation of true detections</title>
<p>For simulating a true earthquake, the following aspects are taken into account: the earthquake epicenter and depth, the arrival time of the seismic wave at the smartphone locations, the earthquake detectability by the smartphone, and the error on the triggering time. Finally, we account for the fact that smartphones may detect events unrelated to the earthquake.</p>
<p>The epicenter locations (<italic>lon</italic><sub><italic>E</italic></sub> and <italic>lat</italic><sub><italic>E</italic></sub>) are simulated uniformly inside the coordinates box [&#x02212;12.39&#x000B0;, &#x02212;11.74&#x000B0;] for latitude and [&#x02212;77.17&#x000B0;, &#x02212;76.66&#x000B0;] for longitude. The box encompasses the EQN of Lima. On the contrary, the earthquake depth is simulated uniformly in the range [0, 100] km independently of the earthquake epicenter.</p>
<p>The arrival time of the seismic wave at each smartphone location is simulated from Equation (6) assuming <italic>t</italic><sub><italic>O</italic></sub> &#x0003D; 0 and <italic>v</italic> &#x0003D; 7.8 km/s. Only 70% of smartphones are made triggering because of the earthquake. For these smartphones, the error on the triggering time is simulated from a zero mean normal distribution with variance <inline-formula><mml:math id="M69"><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>.</mml:mo><mml:mn>67</mml:mn></mml:math></inline-formula>. Such variance guarantees that the 1st and the 99th percentiles of the error distribution are around &#x02212;3 and 3 s, respectively, which are realistic values for an error on the triggering time.</p>
<p>Of the remaining 30% of smartphones which do not trigger, 6% are made triggering at random with a triggering time uniformly generated in the range [0, 12] s. This implies that when the earthquake is detected by the EQN detection algorithm, the list of triggering smartphones may include triggers unrelated to the earthquake dynamic.</p>
<p>Once the list of triggering smartphones is defined and sorted by triggering time, the EQN detection algorithm is applied to the list. The algorithm stops when the detection condition is satisfied, and the sub-list of triggers that concurred with the earthquake detection is given as the output.</p>
<p><xref ref-type="fig" rid="F1">Figure 1</xref> shows an example of a simulated true earthquake. Two separated regions can be visually identified, one with triggering smartphones (those that concurred with the detection) and another with non-triggering smartphones not yet reached by the seismic waves.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Simulated true earthquake detection based on the EQN smartphone network of Lima (Peru). The diameter of circles is proportional to the triggering time.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-09-1107243-g0001.tif"/>
</fig></sec>
<sec>
<title>5.2. Simulation of false detections</title>
<p>To simulate a false detection, we assume that smartphones trigger at random with a triggering time that does not follow the law of seismic wave propagation. Only 30% of the smartphones are made triggering, and the triggering time is uniformly sampled in the range [0, 12] s.</p>
<p><xref ref-type="fig" rid="F2">Figure 2</xref> shows an example of a simulated false EQN detection. Contrary to true earthquakes, no specific spatial pattern on the triggers is observed.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Simulated false earthquake detection based on the EQN smartphone network of Lima (Peru). The diameter of circles is proportional to the triggering time.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-09-1107243-g0002.tif"/>
</fig></sec>
<sec>
<title>5.3. Simulation results</title>
<p>The minimization of Equation (17) is attained when <inline-formula><mml:math id="M70"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>.</mml:mo><mml:mn>6</mml:mn></mml:math></inline-formula> and &#x003B2; is found to be equal to 0.008 (conditionally on &#x003B1; &#x0003D; 0.01). <xref ref-type="fig" rid="F3">Figure 3</xref> shows the empirical distributions of <inline-formula><mml:math id="M71"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> for both true and false simulated EQN detections. Although the detection classification is based on the hypothesis test (and not directly on <inline-formula><mml:math id="M72"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>), the overlapping between distributions suggests that classification errors are possible.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>Empirical distributions of <inline-formula><mml:math id="M65"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> under simulated true detections (blue histogram) and under simulated false detections (red histogram).</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-09-1107243-g0003.tif"/>
</fig>
<p>A by-product of detection classification is the estimate of the earthquake parameters. <xref ref-type="fig" rid="F4">Figure 4</xref> shows the box plots of errors on earthquake epicenter and depth. Both errors have a median of around 18 km, suggesting that along with the detection classification (true/false), the model output can be exploited to provide preliminary estimates of the earthquake parameters.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Box plot of the errors on epicenter location (<italic>lat</italic><sub><italic>E</italic></sub>, <italic>lon</italic><sub><italic>E</italic></sub>) <bold>(left)</bold> and box plot of the errors on earthquake depth <italic>d</italic><sub><italic>E</italic></sub> <bold>(right)</bold> for the 1,000 simulated true earthquake detections.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-09-1107243-g0004.tif"/>
</fig></sec></sec>
<sec id="s6">
<title>6. Real data example</title>
<p>The methodology developed in this study is applied to true and false detections made by the EQN. As a true earthquake, the event occurred near Genova (Italy) on 4 October 2022 at 21:41:10.5 UTC is considered. <xref ref-type="fig" rid="F5">Figure 5</xref> depicts the triggering smartphones (<italic>n</italic> &#x0003D; 21), while estimation and classification results are reported in <xref ref-type="table" rid="T1">Table 1</xref> for <italic>v</italic> &#x0003D; 7.8 and <italic>v</italic> &#x0003D; 4.5 km/s, respectively.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>EQN triggers for the earthquake occurred on 4 October 2022 close to Genoa (Italy). The diameter of circles is proportional to the triggering time.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-09-1107243-g0005.tif"/>
</fig>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Detection classification and earthquake parameters estimation for the EQN detection near Genova (Italy) assuming <italic>v</italic> equal to 7.8 and 4.5 km/s.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919497">
<th/>
<th/>
<th valign="top" align="left" colspan="2"><italic><bold>v</bold></italic> &#x0003D; 7.8 <bold>km/s</bold></th>
<th valign="top" align="left" colspan="2"><italic><bold>v</bold></italic> &#x0003D; 4.5 <bold>km/s</bold></th>
</tr>
</thead>
<tbody>
 <tr style="background-color:#919497">
<td/>
<td valign="top" align="left"><bold>Real</bold></td>
<td valign="top" align="left"><bold>Estimated</bold></td>
<td valign="top" align="left"><bold>Error</bold></td>
<td valign="top" align="left"><bold>Estimated</bold></td>
<td valign="top" align="left"><bold>Error</bold></td>
</tr> <tr>
<td valign="top" align="left">Latitude (&#x000B0;)</td>
<td valign="top" align="left">44.46</td>
<td valign="top" align="left">44.43</td>
<td valign="top" align="left">0.03</td>
<td valign="top" align="left">44.43</td>
<td valign="top" align="left">0.02</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">[44.38, 44.47]</td>
<td/>
<td valign="top" align="left">[44.40, 44.45]</td>
<td/>
</tr> <tr>
<td valign="top" align="left">Longitude (&#x000B0;)</td>
<td valign="top" align="left">9.06</td>
<td valign="top" align="left">9.06</td>
<td valign="top" align="left">0.00</td>
<td valign="top" align="left">9.03</td>
<td valign="top" align="left">0.03</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">[9.01, 9.11]</td>
<td/>
<td valign="top" align="left">[9.03, 9.09]</td>
<td/>
</tr> <tr>
<td valign="top" align="left">Depth (km)</td>
<td valign="top" align="left">8.00</td>
<td valign="top" align="left">0.01</td>
<td valign="top" align="left">7.99</td>
<td valign="top" align="left">0.01</td>
<td valign="top" align="left">7.99</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">[0.00, 8.36]</td>
<td/>
<td valign="top" align="left">[0.00, 3.80]</td>
<td/>
</tr> <tr>
<td valign="top" align="left">Estimated variance</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">0.57</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">1.03</td>
<td valign="top" align="left">-</td>
</tr> <tr>
<td valign="top" align="left">Test statistic value</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">17.18</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">31.02</td>
<td valign="top" align="left">-</td>
</tr> <tr>
<td valign="top" align="left">Critical value</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">34.80</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">34.80</td>
<td valign="top" align="left">-</td>
</tr> <tr>
<td valign="top" align="left">Classification</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">True earthquake</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">True earthquake</td>
<td valign="top" align="left">-</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p>The number of triggering smartphones is <italic>n</italic> &#x0003D; 21, and 99% confidence intervals is presented in brackets. Real earthquake parameters are taken from the website of the European-Mediterranean Seismological Centre (<ext-link ext-link-type="uri" xlink:href="https://www.emsc-csem.org">https://www.emsc-csem.org</ext-link>).</p>
</table-wrap-foot>
</table-wrap>
<p>For both seismic wave velocities, we can observe that latitude and longitude are accurately estimated, while the error in depth is not negligible. Nonetheless, the true values are within the 99% confidence intervals evaluated from the standard errors on the model parameters. In addition, the earthquake is classified as true under both velocities since both observed test statistics are lower than the test critical value. This happens because triggers are close to the epicenter, and primary and secondary seismic waves are nearly concurrent.</p>
<p>The estimation and classification results were obtained in less than 1 s using an Intel(R) Core(TM) i7-9750H CPU &#x00040;2.60GHz, suggesting that the approach can be adopted for real-time applications.</p>
<p><xref ref-type="fig" rid="F6">Figure 6</xref> shows the <italic>n</italic> &#x0003D; 108 triggers of a false detection occurred near Acapulco (Mexico) on 25 September 2022, at 09:55:45 UTC. In this case, the computed test statistics are 1039.7 and 1026.0 for <italic>v</italic> &#x0003D; 4.5 and 7.8 km/s, respectively, while the critical value is 141.62. <italic>H</italic><sub>0</sub> is rejected in both cases and the detection is claimed as false. In this particular case, the detection was caused by a strong lightning bolt. The speed of sound, however, is around 0.3 km/s, a value much smaller than the speed of primary and secondary seismic waves.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Triggers for the false EQN detection occurred on 25 September 2022, close to Acapulco (Mexico). The diameter of circles is proportional to the triggering time.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fams-09-1107243-g0006.tif"/>
</fig></sec>
<sec sec-type="discussion" id="s7">
<title>7. Discussion</title>
<p>The methodology developed in this study allows to classify detections made by smartphone-based earthquake early warning systems between true (related to a real earthquake) and false. This is done analyzing the information content of the smartphone triggers that contributed to the detection.</p>
<p>With respect to classic classification problems, the data point describing the triggers has a varying dimension which depends on the smartphone network geometry. The proposed solution is based on two steps. First, a statistical parametric model is used to convert the data point into a parameter vector with a fixed (and small) dimension. Second, a hypothesis test is implemented for classification.</p>
<p>While we do not claim our choices of <italic>f</italic> and <italic>g</italic> to be optimal, both steps are based on well-established statistical methods. With respect to the specific choice of <italic>g</italic>, it is worth discussing that a simpler alternative is the linear map <italic>g</italic><sup>&#x0002A;</sup> &#x0003D; <bold>&#x003B4;&#x02032;&#x003D5;</bold>, with <bold>&#x003B4;</bold> &#x0003D; (&#x003B4;, 1)&#x02032; and <inline-formula><mml:math id="M73"><mml:mstyle mathvariant="bold"><mml:mi>&#x003D5;</mml:mi></mml:mstyle><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>&#x02032;</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula>. In this case, the classification is based on the more intuitive comparison <inline-formula><mml:math id="M74"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x022DB;</mml:mo><mml:mi>&#x003B4;</mml:mi></mml:math></inline-formula>. This simpler solution, however, does not take into account neither the actual number of triggers for the specific detection (10 or 1,000 makes a difference in the uncertainty of <inline-formula><mml:math id="M75"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>) nor the fact that the distribution of <inline-formula><mml:math id="M76"><mml:msubsup><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> is known under the null hypothesis (that the detection is related to a true earthquake). Using hypothesis testing, we are thus able to retain a part of the information which is lost when <italic><bold>X</bold></italic> is synthesized with <bold>&#x003B8;</bold>.</p></sec>
<sec sec-type="conclusions" id="s8">
<title>8. Conclusion</title>
<p>Classification and earthquake parameter estimation are performed in near real time, making the statistical methodology suitable to be implemented in operational systems. On the contrary, the methodology does not fully exploit the information available on the EQN system. Specifically, the modeling is only on the triggering smartphones, while the active non-triggering smartphones are ignored. Knowing, at the EQN detection time, which smartphones have not (yet) triggered may better constraint epicenter and depth, thus improving their estimates.</p>
<p>In addition, for an EEWS like EQN that works globally, it would be important to study if the data set <inline-formula><mml:math id="M77"><mml:mrow><mml:mi mathvariant="-tex-caligraphic">D</mml:mi></mml:mrow></mml:math></inline-formula> generated by the Monte Carlo simulation is a representative sample of <italic>p</italic>(<italic><bold>X</bold></italic>, <italic>y</italic>). If not, the observed &#x003B1; and &#x003B2; probabilities might deviate from the expected ones.</p>
<p>Finally, a limit of the approach proposed by this study is that the statistical methodology is applied downstream of EQN detections. Ideally, the detection, the classification, and the earthquake parameter estimation problems should be jointly addressed in a unified approach. In this regard, the vast literature on wireless sensor networks may help propose a solution under the real-time constraint.</p>
<p>These open problems, along with the estimation of the earthquake magnitude, will be the focus of future works.</p></sec>
<sec sec-type="data-availability" id="s9">
<title>Data availability statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.</p></sec>
<sec sec-type="author-contributions" id="s10">
<title>Author contributions</title>
<p>FF: conceptualization, writing&#x02013;review, and editing. FM: investigation, methodology, validation, and writing&#x02013;original draft preparation. All authors contributed to the article and approved the submitted version.</p></sec>
</body>
<back>
<sec sec-type="funding-information" id="s11">
<title>Funding</title>
<p>This article was funded by the European Union&#x00027;s Horizon 2020 Research and Innovation Program under grant agreement RISE No. 821115.</p>
</sec>
<ack><p>Authors thank the reviewers and the associate editor for the well-targeted suggestions that considerably improved the quality of the article.</p>
</ack>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s12">
<title>Publisher&#x00027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<sec sec-type="disclaimer" id="s13">
<title>Author disclaimer</title>
<p>Opinions expressed in this article solely reflect the authors&#x00027; views and the EU is not responsible for any use that may be made of information it contains.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Elson</surname> <given-names>J</given-names></name> <name><surname>Estrin</surname> <given-names>D</given-names></name></person-group>. <article-title>Sensor networks: a bridge to the physical world</article-title>. In: <source>Wireless Sensor Networks</source>. <publisher-loc>Boston, MA</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2004</year>). p. <fpage>3</fpage>&#x02013;<lpage>20</lpage>.</citation>
</ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Arampatzis</surname> <given-names>T</given-names></name> <name><surname>Lygeros</surname> <given-names>J</given-names></name> <name><surname>Manesis</surname> <given-names>S</given-names></name></person-group>. <article-title>A survey of applications of wireless sensors and wireless sensor networks</article-title>. In: <source>Proceedings of the 2005 IEEE International Symposium on, Mediterrean Conference on Control and Automation Intelligent Control</source>. <publisher-loc>Limassol</publisher-loc>: <publisher-name>IEEE</publisher-name> (<year>2005</year>). p. <fpage>719</fpage>&#x02013;<lpage>24</lpage>.</citation>
</ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Katenka</surname> <given-names>N</given-names></name> <name><surname>Levina</surname> <given-names>E</given-names></name> <name><surname>Michailidis</surname> <given-names>G</given-names></name></person-group>. <article-title>Local vote decision fusion for target detection in wireless sensor networks</article-title>. <source>IEEE Trans Signal Process</source>. (<year>2007</year>) <volume>56</volume>:<fpage>329</fpage>&#x02013;<lpage>38</lpage>. <pub-id pub-id-type="doi">10.1109/TSP.2007.900165</pub-id></citation>
</ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Huang</surname> <given-names>C</given-names></name> <name><surname>Hsing</surname> <given-names>T</given-names></name> <name><surname>Cressie</surname> <given-names>N</given-names></name> <name><surname>Ganguly</surname> <given-names>AR</given-names></name> <name><surname>Protopopescu</surname> <given-names>VA</given-names></name> <name><surname>Rao</surname> <given-names>NS</given-names></name></person-group>. <article-title>Bayesian source detection and parameter estimation of a plume model based on sensor network measurements</article-title>. <source>Appl Stochastic Models Business Ind</source>. (<year>2010</year>) <volume>26</volume>:<fpage>331</fpage>&#x02013;<lpage>48</lpage>. <pub-id pub-id-type="doi">10.1002/asmb.859</pub-id></citation>
</ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Khadivi</surname> <given-names>A</given-names></name> <name><surname>Hasler</surname> <given-names>M</given-names></name></person-group>. <article-title>Fire detection and localization using wireless sensor networks</article-title>. In: <source>Sensor Applications, Experimentation, and Logistics: First International Conference, SENSAPPEAL 2009 Athens, Greece, September 25. 2009 Revised Selected Papers 1</source>. <publisher-loc>Athens</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2010</year>). p. <fpage>16</fpage>&#x02013;<lpage>26</lpage>.<pub-id pub-id-type="pmid">28471402</pub-id></citation></ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hazart</surname> <given-names>A</given-names></name> <name><surname>Giovannelli</surname> <given-names>JF</given-names></name> <name><surname>Dubost</surname> <given-names>S</given-names></name> <name><surname>Chatellier</surname> <given-names>L</given-names></name></person-group>. <article-title>Inverse transport problem of estimating point-like source using a Bayesian parametric method with MCMC</article-title>. <source>Signal Process</source>. (<year>2014</year>) <volume>96</volume>:<fpage>346</fpage>&#x02013;<lpage>61</lpage>. <pub-id pub-id-type="doi">10.1016/j.sigpro.2013.08.013</pub-id></citation>
</ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ciuonzo</surname> <given-names>D</given-names></name> <name><surname>Rossi</surname> <given-names>PS</given-names></name></person-group>. <article-title>Distributed detection of a non-cooperative target <italic>via</italic> generalized locally-optimum approaches</article-title>. <source>Inf Fusion</source>. (<year>2017</year>) <volume>36</volume>:<fpage>261</fpage>&#x02013;<lpage>74</lpage>. <pub-id pub-id-type="doi">10.1016/j.inffus.2016.12.006</pub-id></citation>
</ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Gasparini</surname> <given-names>P</given-names></name> <name><surname>Manfredi</surname> <given-names>G</given-names></name> <name><surname>Zschau</surname> <given-names>J</given-names></name></person-group>. <source>Earthquake Early Warning Systems</source>. <publisher-loc>Berlin</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2007</year>).</citation>
</ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Satriano</surname> <given-names>C</given-names></name> <name><surname>Wu</surname> <given-names>YM</given-names></name> <name><surname>Zollo</surname> <given-names>A</given-names></name> <name><surname>Kanamori</surname> <given-names>H</given-names></name></person-group>. <article-title>Earthquake early warning: concepts, methods and physical grounds</article-title>. <source>Soil Dyn Earthquake Eng</source>. (<year>2011</year>) <volume>31</volume>:<fpage>106</fpage>&#x02013;<lpage>18</lpage>. <pub-id pub-id-type="doi">10.1016/j.soildyn.2010.07.007</pub-id></citation>
</ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cremen</surname> <given-names>G</given-names></name> <name><surname>Galasso</surname> <given-names>C</given-names></name></person-group>. <article-title>Earthquake early warning: recent advances and perspectives</article-title>. <source>Earth Sci Rev</source>. (<year>2020</year>) <volume>205</volume>:<fpage>103184</fpage>. <pub-id pub-id-type="doi">10.1016/j.earscirev.2020.103184</pub-id></citation>
</ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Given</surname> <given-names>DD</given-names></name> <name><surname>Cochran</surname> <given-names>ES</given-names></name> <name><surname>Heaton</surname> <given-names>T</given-names></name> <name><surname>Hauksson</surname> <given-names>E</given-names></name> <name><surname>Allen</surname> <given-names>R</given-names></name> <name><surname>Hellweg</surname> <given-names>P</given-names></name> <etal/></person-group>. <source>Technical Implementation plan for the ShakeAlert Production System: An Earthquake Early Warning System for the West Coast of the United States</source>. <publisher-loc>Reston, VA</publisher-loc>: <publisher-name>U.S. Department of the Interior, US Geological Survey</publisher-name> (<year>2014</year>).</citation>
</ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Finazzi</surname> <given-names>F</given-names></name></person-group>. <article-title>The earthquake network project: toward a crowdsourced smartphone-based earthquake early warning system</article-title>. <source>Bull Seismol Soc Am</source>. (<year>2016</year>) <volume>106</volume>:<fpage>1088</fpage>&#x02013;<lpage>99</lpage>. <pub-id pub-id-type="doi">10.1785/0120150354</pub-id></citation>
</ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Finazzi</surname> <given-names>F</given-names></name></person-group>. <article-title>The earthquake network project: a platform for earthquake early warning, rapid impact assessment, and search and rescue</article-title>. <source>Front Earth Sci</source>. (<year>2020</year>) <volume>8</volume>:<fpage>243</fpage>. <pub-id pub-id-type="doi">10.3389/feart.2020.00243</pub-id></citation>
</ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bossu</surname> <given-names>R</given-names></name> <name><surname>Finazzi</surname> <given-names>F</given-names></name> <name><surname>Steed</surname> <given-names>R</given-names></name> <name><surname>Fallou</surname> <given-names>L</given-names></name> <name><surname>Bond&#x000E1;r</surname> <given-names>I</given-names></name></person-group>. <article-title>&#x0201C;Shaking in 5 Seconds!&#x0201D;&#x02013;performance and user appreciation assessment of the earthquake network smartphone-based public earthquake early warning system</article-title>. <source>Seismol Soc Am</source>. (<year>2022</year>) <volume>93</volume>:<fpage>137</fpage>&#x02013;<lpage>48</lpage>. <pub-id pub-id-type="doi">10.1785/0220210180</pub-id></citation>
</ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Finazzi</surname> <given-names>F</given-names></name> <name><surname>Fass&#x000F2;</surname> <given-names>A</given-names></name></person-group>. <article-title>A statistical approach to crowdsourced smartphone-based earthquake early warning systems</article-title>. <source>Stochastic Environ Res Risk Assessment</source>. (<year>2017</year>) <volume>31</volume>:<fpage>1649</fpage>&#x02013;<lpage>58</lpage>. <pub-id pub-id-type="doi">10.1007/s00477-016-1240-8</pub-id></citation>
</ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Finazzi</surname> <given-names>F</given-names></name> <name><surname>Bond&#x000E1;r</surname> <given-names>I</given-names></name> <name><surname>Bossu</surname> <given-names>R</given-names></name> <name><surname>Steed</surname> <given-names>R</given-names></name></person-group>. <article-title>A probabilistic framework for modeling the detection capability of smartphone networks in earthquake early warning</article-title>. <source>Seismol Res Lett</source>. (<year>2022</year>) <volume>222</volume>:<fpage>213</fpage>. <pub-id pub-id-type="doi">10.1785/0220220213</pub-id></citation>
</ref>
<ref id="B17">
<label>17.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Jung</surname> <given-names>A</given-names></name></person-group>. <source>Machine Learning: The Basics</source>. <publisher-loc>Singapore</publisher-loc>: <publisher-name>Springer Nature</publisher-name> (<year>2022</year>).</citation>
</ref>
<ref id="B18">
<label>18.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dai</surname> <given-names>YH</given-names></name></person-group>. <article-title>Convergence properties of the BFGS algoritm</article-title>. <source>SIAM J Optimizat</source>. (<year>2002</year>) <volume>13</volume>:<fpage>693</fpage>&#x02013;<lpage>701</lpage>. <pub-id pub-id-type="doi">10.1137/S1052623401383455</pub-id></citation>
</ref>
</ref-list>
</back>
</article>