OpenEEW a Call for Code Open Source Project 
Tags: callforcode, techforgood
Published: 2021-04-02 20:11:18

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fg7oksvzuy5g7olaat8e.jpg)
####The Basics

Open Earthquake Early Warning (EEW) is constructed to detect early signs of potential earthquakes and providing early signals to the community being affected. 

This solution focuses on addressing the key areas of earthquakes such as: 

1. Detecting the early signals of an imminent earthquake 

2. Predicting the direction of a quake from multiple geographically dispersed sensors 

3. Warning communities and populations to take immediate action 

[Watch the OpenEEW online event](https://www.crowdcast.io/e/9ljwbm5n)
[Join the Slack channel](https://openeew.slack.com/join/shared_invite/zt-cibhc0za-XKReMPobi2DsrPusORJZVQ#/shared-invite/email)

<enter>
<enter>
<enter>

####Andy Meira- *CEO & Founder of Grillo*

<enter>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tvk0tscvh74rou9112n8.png)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9wkvrserwsr9cxf8d1c.png) 

###Andy's Takeaways

One of the main takeaways Andy provided in the OpenEEW presentation was the effect of the earthquake in Haiti in 2010.  Being reminded of the impact of losing over 300 thousand individuals, the impact of a 7.2 earthquake, and the aftereffect of the economy, painted a strong picture toward the audience.  

The biggest takeaway was Andy speaking first hand, speaking about how he experienced the Haiti earthquake, saw the initial impact, but even worse, saw the lasting impact on Haiti.  When you listen to Andy speak about a first-hand experience it glues your attention and creates a desire to listen more about how the OpenEEW capabilities can improve and overall save lives in the near future.   

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/82fdth45hcy04f2jr3ar.png)

Another first-hand experience Andy encounter was being a part of the Mexico Earthquake in 2017.  Having Andy seeing the magnitude, the first-hand effects of the Earthquake in Mexico, speaks to the need for OpenEEW to create awareness before the Earthquake occurs. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/21a1qb62whompf9lejy2.png)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l1xfutxvxqpz3cp24804.jpg)
####Specific Facts 

Some specific numbers which stood out in the Open EEW presentation were: 

**2.7B people** live with a threat of earthquakes globally (about a quarter of the world)

**36,000** people die globally because of earthquakes each year (Average of past 15 years)

**$3.1B USD** the estimated economic cost of 2020 earthquakes in Puerto Rico

####EEW Global Implementation

Even with the improved capabilities to technology in the past decade, there is only a handful of EEW’s around the world being used.  Japan is the only country that implemented a full national Earthquake Early-Warning system (EEW).  Understanding EEW’s capabilities, the challenge is the price.  Japan implements an EEW which cost $1 Billion USD.  

####Developing Countries vs. Developed Countries

Another interesting point Andy was describing was the importance of implementing Open EEW in developing countries.  Developing countries do not have the same materials, technology, and overall structure compared to more developed countries.  Understanding the disadvantages developing countries experience increases the overall lack of safety when earthquakes occur. 

####OpenEEW Capabilities
The world’s **first IOT-based EEW** → off the shelf components drive down cost by orders of magnitude: 

    1. Low-noise MEMs accelerometers 

    2. Powerful cloud computing 

    3. AI earthquake detection 

    4. Smart intensity prediction 

**Open EEW’s Components** 

The OpenEEW Open-Source Components include: 

    1. OpenEEW Sensors 

        a. <10% cost of traditional seismometer 

    2. Cloud Monitoring + Detection: 

        a. Fast/accurate algorithms running in IBM cloud 

    3. Multi-channel Alerts: 
        a. Predicts shaking intensity for each user 

<enter>
<enter>

####John Walicki- *STSM, Lead Developer Advocate*
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z8kqyd93ql3tof4250sl.png)

John opens with the emphasis on open source communities and how it isn’t just IBMers working on OpenEEW. The best way to get involved with this project is by joining the slack channel here. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9npjc29upytcu7vrt1al.jpg)

####The Sensor

*We want a bunch of sensors- distance and coverage matter!*

Not only a sensor but also an alarm- John points out that most of these sensors are in rural areas with internet and power. A big concern was people unplugging the sensor when their internet connection was slow by adding an alarm to the sensor it gives people incentive to leave them plugged in! 

Sensor Features  

    - Sensor and alarm  

    - WIFI and ethernet  

    - ESP 32 

The sensor is mounted and listens to noise- we do not want to send every noise heard to the cloud (think door slams or vehicles driving by). The firmware has early detection for shaking and we use multiple sensors to detect an earthquake. The detection of an earthquake happens in the cloud using an algorithm that prevents false positives. 

<enter>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d5nw7jh09vzl1dvpubih.jpg)

####New Sensor Demo  

Next, John shows us how to set up a new sensor through an app that can be found on the Google Play store (coming soon to the Apple App store). The sensors do not have a GUI or keyboard so the setup is through your mobile device. During setup, you will connect to your WIFI which will then be broadcasted to your sensor. There is no GPS or cameras on the sensor so it has no idea where it is- this important information is pulled from your mobile device.  

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ijqnijzr69qc2eezv6n.jpg)

<enter>

####Dashboards

John can see all of his sensors and where they are on the map. There is a world map with green dots to show where each sensor is. You can sort by different sensor networks (ex. Regional areas). While data is being fed from the sensor to the cloud we can also push alerts to the sensor to alert people when there is an earthquake. If we push the command that an earthquake is happening the sensor will blink red and make a loud beeping noise. 

Below are some screenshots from the dashboards:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hffxk3ozsisdjmojx3kk.jpg)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ktnbof63hev5bauc4pj.gif)

####Provisioning Diagram & Tracking Code

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0gjmu9v4pq7tiir53amn.png)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u98yejhjyhvv3xdqza1e.png)

####Oaxaca Earthquake Demo 

On February 16, 2018, there was a 7.2 magnitude earthquake in Oaxaca, Mexico. The OpenEEW team had sensors in place for the earthquake- this was a great opportunity because it is great to train the sensors with large magnitude earthquakes since they look very different than small magnitude ones. John showed the sensor data from the earthquake and you can see how the sensor picks up on the earthquake and the aftershocks. To put this into perspective the earthquake measured about 100 Gals- where slamming a door is about .5 Gals! 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iebcc1rurlgl70zso2eh.png)

####Top 5 Questions

Q: **How can I get a sensor?**
A: You can buy one! Click here to learn more.                     

Q: **Where can I learn more about the deployment?** 
A: https://openeew.com/docs/deployment 

Q: **Where is the best place to put the sensor and how many are needed?**
A: On the ground floor and on structural members (concrete column) and where people aren’t moving around too much. Good internet and good power! No magic number- as many as possible would be great! 

Q: **Is there any training/simulation data available?** 
A: https://registry.opendata.aws/grillo-openeew/ 

Q: **Are you considering sharing alerts API to use with other systems or generate CAP alerts for public use?** 
A: Here's an open issue with a discussion on CAP support: https://github.com/openeew/openeew-detection/issues/35. Would love to see contributions from the community to move that along! Each country has different ways of alerting its population. We are very aware that not all countries want us to have that access so people can subscribe through the app. 


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xej4lb5ujnhih4kmtjzm.png)

###If you are interested in answering the call use the resources below to join!###

[OpenEEW Website](https://openeew.com/)
[Watch the OpenEEW online event](https://www.crowdcast.io/e/9ljwbm5n)
[Join the Slack channel](https://openeew.slack.com/join/shared_invite/zt-cibhc0za-XKReMPobi2DsrPusORJZVQ#/shared-invite/email)
[OpenEEW Github](https://github.com/openeew)

####Written by: 
{% user dhiemenz %}
{% user katiemaxwell %}