Sensor Database System - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

Sensor Database System

Description:

Philippe Bonnet, Johannes Gehrke, Praveen Seshadri. Sensor networks are being widely deployed for ... Sensors respond to physical signals (heat, sound, ... – PowerPoint PPT presentation

Number of Views:28
Avg rating:3.0/5.0
Slides: 21
Provided by: pavit
Category:

less

Transcript and Presenter's Notes

Title: Sensor Database System


1
Sensor Database System
  • Computer Science Department,
  • Cornell University
  • By
  • Philippe Bonnet, Johannes Gehrke, Praveen
    Seshadri

2
  • Sensor networks are being widely deployed for
    measurement, detection and surveillance
    applications.

3
  • What are sensors?
  • Sensors respond to physical signals (heat,
    sound, pressure, magnetism) to produce data, they
    also embed computing and communication
    capabilities.
  • They are thus able to store, process locally and
    transfer the data they produce.

4
  • Applications monitor the physical world by
    querying and analyzing data.
  • Example of application includes supervising
    items in a factory warehouse, gathering
    information in a disaster area, etc.

5
  • What is Sensor Database ?
  • Application involves combination of
  • Stored data i.e. (list of sensors and their
    related attributes, such as their location) .
  • Sensor data.

6
  • What is Sensor query ?
  • Sensor query is a query expressed over a
    sensor database.
  • A typical scenario involves aggregating
    queries that give a birds eye view of the
    environment as well as queries zooming on a
    particular region of interest.

7
  • Two approaches to executing sensor queries
  • The warehousing approach.
  • The distributed approach.

8
  • Warehousing Approach
  • It proceeds in two steps
  • First the data is extracted from the sensor
    network in a predefined way and stored in a
    database.
  • Query processing takes place on the centralized
    database.

9
  • Distributed Approach
  • Different queries extract different data from
    the sensor network and only relevant data are
    extracted from the sensor network.

10
  • Example (Factory Warehouse)
  • Sensors are attached to walls and embedded in
    floors and ceilings.
  • Each sensor provides two signal-processing
    functions
  • getTemperature() returns the measured
    temperature at regular intervals.
  • detectAlaramTemperature(threshold) returns
    whenever temperature crosses certain threshold.

11
  • Query processing takes place on a database while
    signal processing functions are executed on the
    sensor nodes involved in the query.

12
  • The query execution engine on the database
    includes a mechanism for interacting with the
    remote sensors.
  • On each sensors a lightweight query execution
    engine is responsible for executing signal
    processing functions and sending data back to the
    database.

13
  • Sample queries
  • Return repeatedly abnormal temperature
    measured by all sensors.
  • Every minute, return the temperature measured
    by all the sensors in third floor.
  • Return the average temperature measured on
    each floor over the last 10 minutes.
  • Every five min retrieve the maximum
    temperature measured.

14
  • Characteristics of Sensor queries
  • Queries need to aggregate sensor data over
    time windows.
  • They are long running.
  • Queries need to correlate data produced
    simultaneously by different sensors.
  • Queries contains some condition restricting the
    set of sensors involved.

15
  • Consider a relation
  • R (loc point, floor int, s sensorNode)
  • where
  • loc is a point that stores the co-ordinate of
    sensors.
  • floor is the floor where the sensor is located.
  • sensorNode is a sensor that supports the
    methods.

16
  • Query 1 Return repeatedly the abnormal
    temperatures measured by all sensors.
  • SELECT R.s.detectAlaramTemp(100)
  • FROM R
  • WHERE every()

17
  • Query 2 Every minute, return the temperature
    measured by all sensors on the third floor.
  • SELECT R.s.getTemp()
  • FROM R
  • WHERE R.floor 3 AND every(60)

18
  • Query 3 Generate a notification whenever two
    sensors within 5 yards of each other measure
    simultaneously an abnormal temperature.
  • SELECT R1.s.detectAlaramTemp(100),
    R2.s.detectAlaramTemp(100)
  • FROM R R1, R R2
  • WHERE SQRT(SQR(R1.loc.x-R2.loc.y)
    SQR(R1.loc.y-R2.loc.y))lt5 AND R1.sgtR2.s AND
    every()

19
  • Questions ?

20
  • Thank You
Write a Comment
User Comments (0)
About PowerShow.com