Docsity

Sensor Networks in Data Streams: Monitoring Applications and Probabilistic Models - Prof. , Exams of Computer Science

Partial preview of the text

Download Sensor Networks in Data Streams: Monitoring Applications and Probabilistic Models - Prof. and more Exams Computer Science in PDF only on Docsity!

11/29/

Data Streams: Lecture 18

CS 410/510Data StreamsLecture 18: Sensor Networks

Kristin Tufte, David MaierThanks to Wei Hong, Sam Madden(TinyDB ICDE 2004 Tutorial)

11/29/

Data Streams: Lecture 18

Papers „

Sensor Network Integration with StreamingDatabase Systems ‰

D. Abadi, S. Madden, W. Lidner MIT CSAIL

„

Model-Drive Data Acquisition in Sensor Networks ‰

A. Deshpande, C. Guestrin, S. Madden, J. Hellerstein, W.Hong

‰

VLDB 2004

„

Using Probabilistic Models for Data Managementin Acquisitional Environments ‰

A. Deshpande, C. Guestrin, S. Madden

‰

CIDR 2005

11/29/

Data Streams: Lecture 18

Habitat Monitoring „

Monitor Leach’s Storm Petrel (seabird) nestingactivity

„

Want frequent measurements, but do not want toenter colony frequently ‰

Nest abandonment, biasing of results

„

Solution: Deploy sensors to monitor microclimates ‰

Burrow temp, humidity

‰

Outside – temp, light, humidity, pressure

„

Scientists can follow activity throughout thenesting season

http://www.greatduckisland.net/

11/29/

Data Streams: Lecture 18

Other Examples… „

Vineyards – sensors on each plant – light,temperature, humidity

„

Monitor engine vibrations on BP oil tanker ‰

Sensors on machine room equipment monitor vibrationsand relay results

‰

Showed sensors could communicate in a harshenvironment - extreme temperatures, heavy vibration,radio frequency noise

„

Monitor location of BP rail cars (hazmat) ‰

Sensors on car: temp, weight, accelerometers, GPS

‰

Know location of BP facilities, can detect changes thatoccur outside those facilities

11/29/

Data Streams: Lecture 18

What is a Mote? „

Mote: ‰

Low-cost, low-power computer

‰

Radio (wireless radio transmitter)

‰

Power source (usually batteries)

Sensor (attaches to Mote) ‰

Senses: light, sound, position, humidity, temp,pressure, weight, vibration, strain, speed

Berkeley

Mote

11/29/

Data Streams: Lecture 18

Motes Mica Mote^ Mica Mote

Mica2DotMica2Dot

Mica Mote ‰

4Mhz, 8bit Amtel Risc uProc

‰

Radio: 40 KBits/sec, range~200-300 ft

‰

4K RAM, 128 K Program Flash,512 K Data Flash

‰

AA battery pack

‰

2.25 x 1.25 by 0.25 in

Mica2Dot ‰

1.0 by 0.25 inches

‰

3Volt button cell battery

http://computer.howstuffworks.com/mote.htm

11/29/

Data Streams: Lecture 18

Types of Sensors „

Sensors attach via daughtercard

•Weather

–Temperature–Light x 2 (highintensity PAR, lowintensity, fullspectrum)–Air Pressure–Humidity

•Vibration

–2 or 3 axisaccelerometers

•Tracking

–Microphone (for rangingand acoustic signatures)–Magnetometer

GPS

Slide courtesy: Wei Hong,Sam Madden (ICDE 2004)

11/29/

Data Streams: Lecture 18

Mote Features „

Low cost, small ‰

Mica: 15mA of current, 2 AA batteries, 2200mAh energy (2200/15 = 146 hours)

Radio off consumes < 1 microamp, receiving10 milliamps, transmitting 25 milliamps

Allow sensing of information at highresolution and with minimal human presnce

Lifetime: days (full power) to months oryears (if power is conserved)

11/29/

Data Streams: Lecture 18

Energy Usage

Power Consumption Breakdown 0 908070 6050 40302010

Radio

Sensors

Processor

Hardware Element

Percentage of Total Power

Processor Energy Breakdow 5 0 504540353025201510

Idle

Waitingfor Radio

Waiting

for Sensors

Sending

Processing Phas

11/29/

Data Streams: Lecture 18

Mote Hardware/Software Structure

Mote TinyOS

  • Battery-powered- Wireless- Small- Low power

TinyDB

  • Minimal OS- Software to accesslow-level hardware
  • SQL-like QueryLanguage- Projection, join,aggregation, selection

11/29/

Data Streams: Lecture 18

TinyDB „

Motivation - Programming Sensor NetApplications is Hard ‰

Limited power budget

‰

Lossy, low bandwidth communication

‰

Require long-lived, zero admin deployments

‰

Distributed Algorithms

‰

Limited tools, debugging interfaces

Solution – A Tiny Database!

11/29/

Data Streams: Lecture 18

TinyDB „

Declarative Query Processor for SensorNetworks

Queries abstract away much of thecomplexity ‰

Burden on the database developers

‰

Users get: „

Safe, optimizable programs

„

Freedom to think about apps instead of details

Platform: Berkeley Motes + TinyOS

11/29/

Data Streams: Lecture 18

TinySQL „

SQL-like queries over a sensor network(TinySQL)

Selection, join, projection, aggregation

Support for windows and subqueries ‰

Materialization point: Accumulates a small bufferof data that can be used in other queries

Epoch duration (a.k.a. sample period) – timebetween successive samples ‰

Motes are only active a small portion of time

11/29/

Data Streams: Lecture 18

TinySQL „

“Blocking operations” (sort and symmetricjoin) not allowed over streams unless awindow is specified ‰

Note symmetric join isn’t blocking, but doespotentially use unbounded memory