community seismic network daniel obenshain along with k. mani chandy, robert clayton, andreas...

93
Community Seismic Community Seismic Network Network Daniel Obenshain Daniel Obenshain along with along with K. Mani Chandy, Robert Clayton, Andreas K. Mani Chandy, Robert Clayton, Andreas Krause, Krause, Michael Olson, Matthew Faulkner, Leif Strand, Michael Olson, Matthew Faulkner, Leif Strand, Rishi Chandy, Daniel Rosenberg, Annie Tang, Rishi Chandy, Daniel Rosenberg, Annie Tang, and others and others California Institute of Technology California Institute of Technology

Upload: clay-wilkes

Post on 15-Jan-2016

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Community Seismic Community Seismic NetworkNetwork

Daniel ObenshainDaniel Obenshain

along withalong with

K. Mani Chandy, Robert Clayton, Andreas Krause, K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Michael Olson, Matthew Faulkner, Leif Strand, Rishi Chandy, Daniel Rosenberg, Annie Tang, Rishi Chandy, Daniel Rosenberg, Annie Tang,

and othersand others

California Institute of TechnologyCalifornia Institute of Technology

Page 2: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

XKCDXKCD

Image by Randall Munroe of xkcd.com, Creative Commons Attribution-Noncommercial 2.5 License

Page 3: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Internet and EarthquakesInternet and Earthquakes

In the comic:In the comic:– The tweets travel faster than the The tweets travel faster than the

earthquakeearthquake– Other users get quake information Other users get quake information

before it hitsbefore it hits– They are too slow to do anything about They are too slow to do anything about

it.it.

Page 4: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

BackgroundBackground

Earthquakes are dangerous threatsEarthquakes are dangerous threats– USGS estimates 2000 deaths and $200 billion USGS estimates 2000 deaths and $200 billion

damages from 7.8 magnitude quakedamages from 7.8 magnitude quake

Page 5: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

BackgroundBackground

Earthquakes are dangerous threatsEarthquakes are dangerous threats– USGS estimates 2000 deaths and $200 billion USGS estimates 2000 deaths and $200 billion

damages from 7.8 magnitude quakedamages from 7.8 magnitude quake Early warning could minimize sufferingEarly warning could minimize suffering

– Activate safeguards in critical operationsActivate safeguards in critical operations

Page 6: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

BackgroundBackground

Earthquakes are dangerous threatsEarthquakes are dangerous threats– USGS estimates 2000 deaths and $200 billion USGS estimates 2000 deaths and $200 billion

damages from 7.8 magnitude quakedamages from 7.8 magnitude quake Early warning could minimize sufferingEarly warning could minimize suffering

– Activate safeguards in critical operationsActivate safeguards in critical operations Providing early warning is an interesting Providing early warning is an interesting

problemproblem– Bayesian decision theory, geology, distributed Bayesian decision theory, geology, distributed

computingcomputing

Page 7: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

BackgroundBackground

Earthquakes are dangerous threatsEarthquakes are dangerous threats– USGS estimates 2000 deaths and $200 billion USGS estimates 2000 deaths and $200 billion

damages from 7.8 magnitude quakedamages from 7.8 magnitude quake Early warning could minimize sufferingEarly warning could minimize suffering

– Activate safeguards in critical operationsActivate safeguards in critical operations Providing early warning is an interesting Providing early warning is an interesting

problemproblem– Bayesian decision theory, geology, distributed Bayesian decision theory, geology, distributed

computingcomputing Current seismic network is too sparseCurrent seismic network is too sparse

– Can’t provide enough early warningCan’t provide enough early warning

Page 8: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Sensor Network is too Sensor Network is too SparseSparse

A sensor network of one hundred sensors.

A sensor network of one thousand sensors.

SCSN (Southern California Seismic Network) has ~350 sensors right now.

Page 9: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pause for ExamplePause for Example

Page 10: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Sensor Network is too Sensor Network is too SparseSparse

Ten thousand sensors! Both a 3 second wave and a 1 second wave.

Page 11: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Early Warning Can HelpEarly Warning Can Help

Slow trains

Page 12: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Early Warning Can HelpEarly Warning Can Help

Slow trains

Stop elevators

Page 13: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Early Warning Can HelpEarly Warning Can Help

Slow trains

Stop elevators

Open fire station doors

Page 14: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Early Warning Can HelpEarly Warning Can Help

The information The information can also help the can also help the electrical grid.electrical grid.

Southern California Edison Territory

Page 15: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Early Warning Can HelpEarly Warning Can Help

The information The information can also help the can also help the electrical grid.electrical grid.

The grid can be The grid can be shut down and shut down and made safe prior to made safe prior to severe shaking.severe shaking.

Southern California Edison Territory

Page 16: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Early Warning Can HelpEarly Warning Can Help

The information The information can also help the can also help the electrical grid.electrical grid.

The grid can be The grid can be shut down and shut down and made safe prior to made safe prior to severe shaking.severe shaking.

Power back in a Power back in a day, not weeks day, not weeks after earthquake.after earthquake.

Southern California Edison Territory

Page 17: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

BenefitsBenefits

Provide Early WarningProvide Early Warning Easy deployment in areas without Easy deployment in areas without

existing seismic networksexisting seismic networks– Peru and IndonesiaPeru and Indonesia

Cell phones are prevalentCell phones are prevalent

Identify hard-hit areas quicklyIdentify hard-hit areas quickly– Direct first respondersDirect first responders

Page 18: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

That’s why we’re That’s why we’re doing it.doing it.

What about how What about how we’re doing it?we’re doing it?

Page 19: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Expand the NetworkExpand the Network

We want to add more data.We want to add more data.

Page 20: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Expand the NetworkExpand the Network

We want to add more data.We want to add more data. Why not get data from as many Why not get data from as many

sources as possible?sources as possible?

Page 21: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Expand the NetworkExpand the Network

We want to add more data.We want to add more data. Why not get data from as many Why not get data from as many

sources as possible?sources as possible? Add in acceleration devices of Add in acceleration devices of

different types, cell phones, laptops, different types, cell phones, laptops, etc.etc.

Page 22: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Expand the NetworkExpand the Network

We want to add more data.We want to add more data. Why not get data from as many Why not get data from as many

sources as possible?sources as possible? Add in acceleration devices of Add in acceleration devices of

different types, cell phones, laptops, different types, cell phones, laptops, etc.etc.

The User installs some client software The User installs some client software and his or her acceleration data and his or her acceleration data becomes part of the network.becomes part of the network.

Page 23: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

The ClientThe Client

Registration

Handler

SensorHandler

ServerRegistration

Handler

Error, NoUpdate, orHandlers

Calculation

Handler

Alert Handler

Controller

Registration handler invoked on first run

Returns Proceed, Error, or New Handlers

Handlers and Queues managed

Core

pro

cessin

g

ServerAlert

Listener

Page 24: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Example Client – Cell PhoneExample Client – Cell Phone

Measures 3-D accelerationMeasures 3-D acceleration Program runs in Program runs in

backgroundbackground Especially good while Especially good while

chargingcharging

Page 25: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Example Client – Cell PhoneExample Client – Cell Phone

Martin Lukac (of UCLA) recorded a minor seismic Martin Lukac (of UCLA) recorded a minor seismic event on a Nokia phone, with different software.event on a Nokia phone, with different software.

Page 26: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pause for ExamplePause for Example

Page 27: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

How often should the client send How often should the client send data to the server?data to the server?

Page 28: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

How often should the client send How often should the client send data to the server?data to the server?

Only when significant shaking is Only when significant shaking is occurring.occurring.

Page 29: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

How often should the client send How often should the client send data to the server?data to the server?

Only when significant shaking is Only when significant shaking is occurring.occurring.

How does the client know?How does the client know?

Page 30: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

How often should the client send How often should the client send data to the server?data to the server?

Only when significant shaking is Only when significant shaking is occurring.occurring.

How does the client know?How does the client know? It performs a simple calculation on It performs a simple calculation on

the incoming data stream.the incoming data stream.

Page 31: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

How often should the client send How often should the client send data to the server?data to the server?

Only when significant shaking is Only when significant shaking is occurring.occurring.

How does the client know?How does the client know? It performs a simple calculation on It performs a simple calculation on

the incoming data stream.the incoming data stream. We call this the “Picking Algorithm.”We call this the “Picking Algorithm.”

Page 32: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

STA/LTA > trigger

Page 33: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

STA – Short Term Average : the STA – Short Term Average : the average acceleration over the past average acceleration over the past several data pointsseveral data points

STA/LTA > trigger

Page 34: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

STA – Short Term Average : the STA – Short Term Average : the average acceleration over the past average acceleration over the past several data pointsseveral data points

LTA – Long Term Average : the LTA – Long Term Average : the average acceleration over more data average acceleration over more data pointspoints

STA/LTA > trigger

Page 35: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

STA – Short Term Average : the STA – Short Term Average : the average acceleration over the past average acceleration over the past several data pointsseveral data points

LTA – Long Term Average : the LTA – Long Term Average : the average acceleration over more data average acceleration over more data pointspoints

trigger – a thresholdtrigger – a threshold

STA/LTA > trigger

Page 36: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Accelerometer

Long Term Average

Short Term Average

Page 37: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Accelerometer

New DataLong Term Average

Short Term Average

Page 38: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Accelerometer

Short Term Average

Long Term Average

Page 39: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

If STA/LTA > trigger is true, then we If STA/LTA > trigger is true, then we have “picked.”have “picked.”

Page 40: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

If STA/LTA > trigger is true, then we If STA/LTA > trigger is true, then we have “picked.”have “picked.”

The algorithm then waits a little bit The algorithm then waits a little bit before sending a message to the before sending a message to the server.server.

Page 41: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

If STA/LTA > trigger is true, then we If STA/LTA > trigger is true, then we have “picked.”have “picked.”

The algorithm then waits a little bit The algorithm then waits a little bit before sending a message to the before sending a message to the server.server.

This is to make sure it sends data This is to make sure it sends data from the peak of the wave.from the peak of the wave.

Page 42: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Pause for this length of time beforesending a message to the server.

1 2 3

1. Detected significant shaking2. Maximum shaking3. Sent message to server

Page 43: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

After sending a message to the After sending a message to the server, the client will wait a while server, the client will wait a while before picking again.before picking again.

Page 44: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

After sending a message to the After sending a message to the server, the client will wait a while server, the client will wait a while before picking again.before picking again.

This is to stop the client from picking This is to stop the client from picking multiple times for the same shaking.multiple times for the same shaking.

Page 45: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Delay for this length of timebefore picking again.

1

1. Last message sent to server2. The coda of the earthquake,

where we don’t want to pick

2

Page 46: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Five tunable parameters.Five tunable parameters.

Page 47: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Five tunable parameters.Five tunable parameters.– Length of STALength of STA

Page 48: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Five tunable parameters.Five tunable parameters.– Length of STALength of STA– Length of LTALength of LTA

Page 49: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Five tunable parameters.Five tunable parameters.– Length of STALength of STA– Length of LTALength of LTA– Value of triggerValue of trigger

Page 50: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Five tunable parameters.Five tunable parameters.– Length of STALength of STA– Length of LTALength of LTA– Value of triggerValue of trigger– How long to wait after picking before How long to wait after picking before

sending a message to the serversending a message to the server

Page 51: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Five tunable parameters.Five tunable parameters.– Length of STALength of STA– Length of LTALength of LTA– Value of triggerValue of trigger– How long to wait after picking before How long to wait after picking before

sending a message to the serversending a message to the server– How long to wait between messagesHow long to wait between messages

Page 52: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Picking AlgorithmPicking Algorithm

Five tunable parameters.Five tunable parameters.– Length of STALength of STA– Length of LTALength of LTA– Value of triggerValue of trigger– How long to wait after picking before How long to wait after picking before

sending a message to the serversending a message to the server– How long to wait between messagesHow long to wait between messages

They can all be tuned by the server, They can all be tuned by the server, on a client-by-client basis.on a client-by-client basis.

Page 53: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

GUIGUI

Acceleration data is displayed in real Acceleration data is displayed in real time on the user’s screen.time on the user’s screen.

Page 54: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

GUIGUI

Acceleration data is displayed in real Acceleration data is displayed in real time on the user’s screen.time on the user’s screen.

Promotes use of the software.Promotes use of the software.

Page 55: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

GUIGUI

Acceleration data is displayed in real Acceleration data is displayed in real time on the user’s screen.time on the user’s screen.

Promotes use of the software.Promotes use of the software. Can be used in science classrooms to Can be used in science classrooms to

explain project.explain project.

Page 56: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

GUIGUI

Acceleration data is displayed in real Acceleration data is displayed in real time on the user’s screen.time on the user’s screen.

Promotes use of the software.Promotes use of the software. Can be used in science classrooms to Can be used in science classrooms to

explain project.explain project. Each message to the server marked Each message to the server marked

by a red line.by a red line.

Page 57: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

GUIGUI

3 Axes3 Axes

Page 58: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

GUIGUI

3 Axes3 Axes Data streams from Data streams from

the rightthe right

Page 59: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

GUIGUI

3 Axes3 Axes Data streams from Data streams from

the rightthe right The red line The red line

represents a represents a message to the message to the serverserver

Page 60: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pause for ExamplePause for Example

Page 61: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Client-server messagesClient-server messages

RegistrationRegistration PicksPicks HeartbeatHeartbeat

Page 62: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Client-server messagesClient-server messages

RegistrationRegistration– Location (or an approximation)Location (or an approximation)– Given a client idGiven a client id

PicksPicks HeartbeatHeartbeat

Page 63: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Client-server messagesClient-server messages

RegistrationRegistration PicksPicks

– Short UDP messageShort UDP message– Location, time, and acceleration Location, time, and acceleration

experiencedexperienced– Can be a playback message!Can be a playback message!

HeartbeatHeartbeat

Page 64: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Client-server messagesClient-server messages

RegistrationRegistration PicksPicks HeartbeatHeartbeat

– Check in with serverCheck in with server– Get any updates, playback infoGet any updates, playback info– For security, server will never push For security, server will never push

updates. Client must call in to get updates. Client must call in to get updates.updates.

Page 65: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Client-server messagesClient-server messages

RegistrationRegistration PicksPicks HeartbeatHeartbeat All are in XML format.All are in XML format.

– Human readableHuman readable– Easily extendedEasily extended– Can easily interface with other, similar Can easily interface with other, similar

projectsprojects

Page 66: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Sensor ValidationSensor Validation

Tested our sensor with artificial Tested our sensor with artificial event.event.

Page 67: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Sensor ValidationSensor Validation

Tested our sensor with artificial Tested our sensor with artificial event.event.

Compared our sensor to the SCSN Compared our sensor to the SCSN (Southern California Seismic (Southern California Seismic Network) sensor in the basement of Network) sensor in the basement of Millikan Library.Millikan Library.

Page 68: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Sensor ValidationSensor Validation

Tested our sensor with artificial Tested our sensor with artificial event.event.

Compared our sensor to the SCSN Compared our sensor to the SCSN (Southern California Seismic (Southern California Seismic Network) sensor in the basement of Network) sensor in the basement of Millikan Library.Millikan Library.

Caused seismic activity with a Caused seismic activity with a sledgehammer.sledgehammer.

Page 69: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Sensor ValidationSensor Validation

Page 70: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Sensor ValidationSensor Validation

We have since switched to better noise We have since switched to better noise filtering and a better sensorfiltering and a better sensor

Still, the correlation is visibleStill, the correlation is visible

Page 71: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

ServerServer

Four main tasksFour main tasks– Handle new user registrationHandle new user registration

Page 72: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

ServerServer

Four main tasksFour main tasks– Handle new user registrationHandle new user registration– Listen for pick messagesListen for pick messages

Page 73: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

ServerServer

Four main tasksFour main tasks– Handle new user registrationHandle new user registration– Listen for pick messagesListen for pick messages– Handle heartbeat messagesHandle heartbeat messages

Page 74: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

ServerServer

Four main tasksFour main tasks– Handle new user registrationHandle new user registration– Listen for pick messagesListen for pick messages– Handle heartbeat messagesHandle heartbeat messages– Analyze dataAnalyze data

Page 75: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

ServerServer

Registration Handler

Pick Handler

Heartbeat Handler

Database Associator

Page 76: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

UDP vs TCPUDP vs TCP

We send messages using two different We send messages using two different protocols.protocols.

TCP (Transmission Control Protocol)TCP (Transmission Control Protocol)– Handshake delayHandshake delay– Error correctionError correction

Page 77: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

UDP vs TCPUDP vs TCP

We send messages using two different We send messages using two different protocols.protocols.

TCP (Transmission Control Protocol)TCP (Transmission Control Protocol)– Handshake delayHandshake delay– Error correctionError correction

UDP (User Datagram Protocol)UDP (User Datagram Protocol)– FastFast– UnreliableUnreliable

Page 78: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pick Message HandlerPick Message Handler

Pick messages are sent using UDP Pick messages are sent using UDP packets.packets.

Reasons:Reasons:– Unsure of condition of networkUnsure of condition of network– Speed is importantSpeed is important

Page 79: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Indiana Jones EffectIndiana Jones Effect

From Indiana Jones and the Raiders of the Lost Ark.

Page 80: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pick Message HandlerPick Message Handler

Listen for incoming picksListen for incoming picks

Page 81: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pick Message HandlerPick Message Handler

Listen for incoming picksListen for incoming picks– Parse messageParse message

Page 82: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pick Message HandlerPick Message Handler

Listen for incoming picksListen for incoming picks– Parse messageParse message– Check for playback flagCheck for playback flag

If the flag is not present, the pick is stored in If the flag is not present, the pick is stored in the database.the database.

If the message is flagged as playback, it is If the message is flagged as playback, it is written to a separate table in the database.written to a separate table in the database.

Page 83: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Server OperationServer Operation

Registration

Listener

Alert Listener

Calculation

Handler

WarningHandler

Controller

Core

pro

cessin

g

Equipment, devices,notification systems

Heartbeat

Listener

ClientsClientsClientsClientsClientsClientsClientsClientsClients

Page 84: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Server-side AnalysisServer-side Analysis

Bayesian decision-makingBayesian decision-making

Page 85: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Server-side AnalysisServer-side Analysis

Bayesian decision-makingBayesian decision-making

Once posterior is sufficient, we send Once posterior is sufficient, we send Early WarningEarly Warning

Page 86: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Tested on Fake DataTested on Fake Data

Priors from Priors from Gutenberg-Richter Gutenberg-Richter law (mag vs. num)law (mag vs. num)

Fake data stream Fake data stream with errors in itwith errors in it

Located epicenter Located epicenter to within 25 kmto within 25 km

Located epicenter Located epicenter in 10 secondsin 10 seconds

Page 87: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Display dataDisplay data

Heat mapHeat map Hotter colors = higher magnitude Hotter colors = higher magnitude

pickspicks

Page 88: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi
Page 89: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Pause for ExamplePause for Example

http://map.communityseismicnetwork.org/

Page 90: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Google App EngineGoogle App Engine

Server Server implemented on implemented on Google App EngineGoogle App Engine

Our data is sent to Our data is sent to and stored thereand stored there

Robust, scalableRobust, scalable

Page 91: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Machine LearningMachine Learning

Feedback loopFeedback loop Five parameters (or more!) per clientFive parameters (or more!) per client If a client picks more often than If a client picks more often than

normal, tune it downnormal, tune it down If a client picks less often than If a client picks less often than

normal, tune it upnormal, tune it up

Page 92: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Machine LearningMachine Learning

A client next to A client next to constructionconstruction

Not useful for small Not useful for small seismic eventsseismic events

Still useful for big Still useful for big ones!ones!

Set the threshold Set the threshold higher.higher.

Page 93: Community Seismic Network Daniel Obenshain along with K. Mani Chandy, Robert Clayton, Andreas Krause, Michael Olson, Matthew Faulkner, Leif Strand, Rishi

Thank YouThank You

Q&A SessionQ&A Session