Automated flood warning system for citizens

Rasters.io
Rasters.io
Published in
6 min readOct 10, 2018

The smart city and automated warning of floods

How smart cities more effectively alert their citizens with IoT, mapping and an automated warning system.

More and more people are affected by floods. The human and economic costs are enormous for society. Technology is now providing new ways for authorities to manage communications with their citizens in an emergency.

When dealing with a flash flood, the automation of processes becomes necessary in order to effectively alert the population. This efficiency limits the flood’s impact on people and property. The following case demonstrates how by using sensor data provided by Hydro-météo, Sutron or Paratronic, the Rasters.io platform can trigger alert campaigns in systems such as Twilio, Somum and Nexmo in a fully configurable manner.

A real use case

The purpose of the project is to alert citizens with a telephone message when the water level of the stream near their home reaches a threshold that may cause flooding. In addition, the inhabitants of different geographical zones are warned according to the level of alert. When the water level of the Beaurivage River reaches level 1, the inhabitants of zone 1 are alerted with the following message: “Warning, … the municipality wishes to warn you that the Beaurivage River has reached a level of water that puts you in a state of alert. No evacuation is planned at the moment but plan on placing your belongings in a safe place.” Then, the call system asks the citizen to press 1 if the message has been understood.

To do this, the city must set up an automatic process that integrates the following data into Rasters.io:

  1. Real-time water level sensor data;
  2. Personalized mapping with citizens’ phone numbers;
  3. Automation processes and an automatic calling machine.

The city has decided on 3 alert levels:

  1. State of alert;
  2. Alert;
  3. Evacuation.

Each alert level of each sensor is associated with a specific geographical area. Thus, when a level reaches an alert threshold, the following actions are executed:

  • The corresponding area changes color;
  • An email is sent to civil security workers;
  • A geographic intersection is applied between the area and the geographic layer that has those telephone numbers;
  • The result of the intersection (list of telephone numbers of the zone) is transmitted to the automatic call machine;
  • The controller initiates the call campaign with the message corresponding to the alert level.

Authorities can follow the development of the real-time call campaign on the Rasters.io map. Circles appear when a call is waiting (red), in progress (yellow) or completed (green).

Real-time call status on the map

Configuring Rasters.io

First, a connector for acquiring gauge data is configured in Rasters.io. The platform supports several types of connections for data acquisition (see blog about connectors for more details). In this case, the data comes from a database accessible via an HTTP REST API.

If no connector can meet your needs, the Rasters.io team can quickly help you define one that will.

IoT Connector configuration

Step 1 — Display the gauges

In Rasters.io, an IoT layer is created and named “Hydrometric Gauges“. The REST API connector is selected and configured. This connector connects to an HTTP REST API to retrieve gauge data every 60 seconds.

Step 2 — Localize the gauge

When the connector is properly configured, the gauges are automatically displayed on the map. Since this type of sensor does not send a geographical position, the gauges are initially set to 0.0 (in the center of the map of West Africa). Using the mouse, users can place the devices in the right places manually on the map.

Localize the IoT

Step 3 — Configure device properties

Properties mapping

By default, the gauges send a lot of information and some are irrelevant to current use cases. In addition, the properties of the device are difficult to read. To display only useful information and improve visibility, the IoT Layer Properties panel is used.

Using this panel, you can select only the properties to use and assign them a readable name and a unit. In this case, only 4 properties are selected.

Custom properties for each IoT

In addition, customs properties have been created representing the 3 alert level. Theses properties will be manually defined for each device. These values represent the threshold water level for each alert. Thus, when the user clicks on the item, only the selected information will be displayed in the tooltip (see the following image).

Step 4 — Configure alert zones

The next step is to configure the different geographical areas corresponding to the different alerts. Thus, when the gauge 1 reaches alert level 1, the inhabitants of the zone 1 must be warned with a personalized voice message. To create zones, add an “Annotation” layer and start defining areas with the “Polygon” tool. See the tutorial “Annotation” to learn how to create and edit annotations on the map.

For this case, 1 zone per gauge has been created:

Map annotations

Step 5 — Configure notification rules

The final step is to configure the link between the IoTs water levels and calls to citizens in different areas. To do this, we will use the Rasters.io rules engine and the Somum Communication automatic calling solution to make the calls. You can also use another phone system of your choice.

In Rasters.io, a new rule “Alert Level 1” has been created and configured in the “Rules” tab. This rule represent the following meaning: “For any device on the layer Hydrometric Gauges, IF gauge water level is greater than its custom values Alert level 1 THEN…

Add a notification rule

When this condition is true, the actions will be executed. Now add a “Somum” action and enter the parameters of the call campaign to be executed. The Somum communication system allows you to define a call campaign ahead of time with a recorded message and several other parameters. This campaign can then be referred to Rasters.io using its customer number and campaign number (SivR). So when the level of the gauge has reached 90 cm (Alert level 1 of the gauge 1 for example), the “Campaign” campaign will be launched and will call all the inhabitants of zone 1.

Add a notification action

In addition, it is possible to add an action to this rule so that the corresponding area on the map and the device change color. To do this, add a “Style”action and specify which element to apply the new style to. In this case, we have selected “Source” and “Flood Zone“. We then selected the style to be applied. So when the rule is true, the corresponding gauge will turn yellow (this is the “Source” of the rule) and the intersecting zone will also turn yellow. When the rule no longer applies, the zone and the gauge will return to their original styles.

Configure the style with an action

The step 5 must be repeated for the 3 defined alert level:

  • Level 1 : Level > Alert Level 1
  • Level 2 : Level > Alert Level 2
  • Level 3 : Level > Alert Level 3

The system is now fully configured and calls to citizens are fully automated. Smart City now has a new ally for connecting paring objects, mapping, and automated notifications. Today, citizens are able to quickly receive relevant information about themselves and take action without delay. For its part, civil security can devote slightly fewer resources to monitoring in the field and can monitor the evolution of several sectors in real time.

Try Rasters.io now and discover all these possibilities.

Do you need a connector to IoTs in your organization or a specific action to one of your internal systems? Contact us! Our team will guide you in developing your project.

--

--