+ All Categories
Home > Documents > SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain,...

SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain,...

Date post: 20-Jan-2016
Category:
Upload: brittney-white
View: 216 times
Download: 0 times
Share this document with a friend
Popular Tags:
32
SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian, and Utz Westermann
Transcript
Page 1: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

SATware:Middleware for Sentient Spaces

WMSC 2007

Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

and Utz Westermann

Page 2: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

QoS Privacy

Stream

Stream

Stream

Uninterpreted streams of sensor event observations

Sensing layer

Traditional sensor network

.

.

.

Ad-hocApplication

Page 3: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

QoS Privacy

Stream

Stream

Stream

StreamStream

Stream

QoS PrivacySituation

model

Domainmodel

Uninterpreted streams of sensor event observations

Interpreted streams of entity-related events

Sensing layer

Semantic layer:entities and activities

Application

SATware: Semantic Layer

Page 4: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

SATware: Challenges

Different levels of abstractionfrom user's high abstraction levelto sensors' levelUsers care about entities and events

Different kinds of sensors: different resources, mobility capabilities, data streams produced (scalar, video), phenomena being sensed

Lots of sensorssome sensors produce streams with very high sample rates and sample sizes (e.g. video).

Sensors and services need to be added, removed and discovered

In emergency responsefailures happen

Privacy of users (both direct and indirect users)has to be protected

In emergency response,being able to specify quality of the service and having the system guarantee it is crucial

Page 5: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Queries written at the Queries written at the entityentity level level E.g., E.g., IdentifyIdentify who left the coffee pot burningwho left the coffee pot burning?? E.g., E.g., Notify when someone leaves a mess in the shared kitchenNotify when someone leaves a mess in the shared kitchen.. E.g., E.g., Notify when Sharad is in the shared area and his status is Notify when Sharad is in the shared area and his status is

“Not Busy”“Not Busy”.. E.g., E.g., Notify when Iosif and Sharad are both in the shared areaNotify when Iosif and Sharad are both in the shared area

Queries are translated into Operators

Queries in SATware

Page 6: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

A stream is an infinite discrete flow A stream is an infinite discrete flow of packets:of packets:

stream = list(packet)stream = list(packet)

packet = <packet = <t , c>t , c>

t : time stampt : time stamp

c: content c: content C domain(DT)C domain(DT)DT := int | float | char | byte | void | DT := int | float | char | byte | void |

bool | eventbool | eventDT := list(DT) | tuple(DT)DT := list(DT) | tuple(DT)Event := <event_id, confidence, DT>Event := <event_id, confidence, DT> Stre

am

<14:01:12.50 Jan 1st 2007,

Temperature = 50>

Stream processing model -Data model-

Stream

<14:01:12.50 Jan 1st 2007, <LocationChange, 0.65,

void>>

Page 7: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Oi

< ti , <PersonID, ci >>

< ti, <Door Status, cm>>

< ti , <ID_Enter_y, ck >>

Oi

< ti , Jpeg image>< ti , <Door Status, ci>>

Event-based event detection

Oi

< ti , <PersonID, ci >>

< ti, <Door Status, cm>>

Time synchronizer

Oi

< ti , Jpeg image >Source

Oi

Output

Image processing-based event detection

< ti , (<PersonID, ci>,

<Door Status, cm)]>

< ti , <PersonID, ci >>

Stream processing model -Processing model-

Processing based on operatorsProcessing based on operators

OP = { fOP = { fDTx…xDT DTx…xDT | f| fDTx…xDTDTx…xDT: : streamx…xstream -> streamx…xstream ->

streamstream } }

Code reuseCode reuse Sharing operator instancesSharing operator instances Simplify designSimplify design Load distributionLoad distribution

Virtual sensorsVirtual sensors

WhoBurnedCoffeeWhoBurnedCoffeex,yx,y = =

O10(CoffeeBurnO10(CoffeeBurnxx, , PersonIDPersonIDyy))

Page 8: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

UCI has been instrumented with a large set of sensors throughout all campus.

The instrumentation would allow conducting a quick assessment of the status of buildings from any device that has access to Internet by accessing an onlineRemote Windshield Assessment application.

The system would allow any user (for example, UCIPD) to register for events.

Firelocation: UCI#building1#floor4#(300,20)

Remote Windshield Remote Windshield AssessmentAssessment

Sample application

Page 9: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Sensor

stream stream

Sensor

stream stream

Sensor

stream stream

Sensor

stream stream

Sensor

stream stream

stre

am

streamED2

ED2ED1ED1

ED1ED1

SRCSRC

SRCSRCSRC

SRC

ED1

ED2UI

UI

Event detection1: Estimation of number of people in and out a certain door.

Event detection 2:Estimation of number of people in a room.

Source agent:Gets JPEG frames from a network camera.

Source agent:User interface.

Query: Notify when there is a change of distribution of people in a building

Query: Notify when there is a change of distribution of people in a building

Sample query

Page 10: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

SATRuntime

SATDeployer

SATLite

SATQL

Sensor infrastructure Heterogeneous sensors

DistributedReflexiveMobile-agent based runtime

Deployment optimization

Deployment (topology) description

High-level query language

Application

<Query

resu

lts>

SATRuntime

<Query>SATQL

<Query>SATLite

SATware architecture

Page 11: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

SATLite

Sensor

SATRuntimeProcessing

node

Processingnode

SATRuntime

SATRuntime

MAMA

Sensor

streamstream

MA

SATRepository

SATware snapshot,

configurations, operators

repository,spatial model

SATQL

UI

{SATLite}

SATDeployer

QoS

QoS

Event and dataStorage

subsystem

MA

{SATQL}

QoSQoS

SATRuntime

Page 12: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

SATRuntime

Runtimes are connected instead Runtimes are connected instead of the agents.of the agents.

Agents are programmed in a Agents are programmed in a topology-agnostic manner.topology-agnostic manner.

SATRuntime provides mobility SATRuntime provides mobility support and message-passing.support and message-passing.

SATRepository contains SATRepository contains repository of operators and repository of operators and state of SATware (sensors, runtime state of SATware (sensors, runtime

nodes, network topology, and nodes, network topology, and current operator deployment).current operator deployment).

SATRepository

SATware snapshot,

configurations, operators

repository,spatial model

SATRuntime SATRuntime

MA

stream

MA MA

Page 13: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

SATLite

SATRepository

SATware snapshot,

configurations, operators

repository,spatial model

SATQL

SATDeployer

{SATQL}

Processingnode

Processingnode

Processingnode

Processingnode

Processingnode

ProcessingnodeProcessing

nodeProcessingnode

ProcessingnodeProcessing

nodeProcessingnode

Processingnode

Processingnode

SATRuntime

ED

SATRuntime

SRC

Sensor

stream stream SATRuntimeSATRuntime

ED

SATRuntime

SRC

Sensor

stream streamSATRuntime

ED1

SATRuntime

SRC

stream stream

SATRuntime

ED

SATRuntime

SRC

Sensor

stream streamSATRuntime

ED1

SATRuntime

SRC

stream stream SATRuntime

ED2

stre

am

SATRuntime

ED2

stream

UI

Sample query

Sensor

Sensor

Page 14: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

//operatorsO1 = CreateOperator(ReadCam, camera_url);O3 = CreateOperator(DetectBurner);

//data flowsImage = O1();BurnerStatus = O3(Image);BurnerOn = O6(BurnerStatus);O11(PersonId);

//operatorsO1 = CreateOperator(ReadCam, camera_url);O3 = CreateOperator(DetectBurner);

//data flowsImage = O1();BurnerStatus = O3(Image);BurnerOn = O6(BurnerStatus);O11(PersonId);

SATLite

SATLite is a language for describing queriesSATLite is a language for describing queries

Page 15: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

““Which image contains Iosif?”Which image contains Iosif?”

Assume RFID also availableAssume RFID also available

λ2

λ3

λ4

Which pictures contain an object?”

Which pictures contain a person?”

Which pictures contain Iosif?”

λ1

λ2 λ3 λ4

MAYBE MAYBE

NO

YES

MAYBEλ1

MAYBE

RFID tag matches Iosif’s tag?”λ2 λ3 λ4

MAYBE MAYBE

NO

YES

MAYBE

Predicate optimization

1Iosif Lazaridis and Sharad Mehrotra, “Optimazation of Multi-Version Expensive Predicates”, SIGMOD 2007.

Page 16: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

GivenGiven Sequence of selection predicatesSequence of selection predicates

λλ11, λ, λ22, …, λ, …, λnn

With Per-tuple cost:With Per-tuple cost: cc11, c, c22, …, c, …, cnn

And MAnd MAYBEAYBE selectivity: selectivity: #Maybe / #All#Maybe / #All mm11, m, m22, …, m, …, mnn

Such that:Such that: cc1 1 < c< c2 2 < … < c< … < cnn

mm1 1 > m> m2 2 > … > m> … > mnn

Determine the least cost execution plan for Determine the least cost execution plan for λλnn

λk(t) = YesNoMaybe

Problem formulation

1Iosif Lazaridis and Sharad Mehrotra, “Optimazation of Multi-Version Expensive Predicates”, SIGMOD 2007.

Page 17: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Solutions

1Iosif Lazaridis and Sharad Mehrotra, “Optimazation of Multi-Version Expensive Predicates”, SIGMOD 2007.

Evaluate MAYBE

YES

MAYBE OGP

λi+1

λi+2

λn

NOλi

Evaluate MAYBE

YES

MAYBE Group

λi+1

λn

λi+1

NOλi

λi+2 λn

λn

OGP

λi+1

λi+2

λn

Optimal Generalized Plan Individualized Handling

Tuple Grouping

Page 18: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Translating a query plan Translating a query plan into a deployment planinto a deployment plan

Mapping query plan nodes Mapping query plan nodes into processing nodesinto processing nodes

Minimizing query Minimizing query processing costprocessing cost

Network costNetwork cost Computing costComputing cost Query evaluation timeQuery evaluation time

OptimizationsOptimizations Operator reuseOperator reuse Load balancingLoad balancing

SATDeployer

Page 19: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Privacy

Untrusted

DB

Trusted node

2Bijit Hore, Jehan Wickramasuriya, Sharad Mehrotra, and Nalini Venkatasubramanian, “ Privacy-Preserving Event Detection for Pervasive Spaces” (2007, UCI-ICS tech-report)

   

Privacy is protected unless the Privacy is protected unless the user violates a user violates a specificspecific rule rule

Page 20: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Privacy

3Alexander Ihler, Jon Hutchins, and Padhraic Smyth, "Adaptive Event Detection with Time–Varying Poisson Processes", KDD 2006

Abnormal event detectionAbnormal event detectionAggregated behavior of human beings:Aggregated behavior of human beings:

N(t) = N0(t) + NE(t) Markov Modulated Poisson

Normal behavior: periodicityNormal behavior: periodicity

N0(t) ~ P(N; (t)) Time-Varying Poisson

(t) = 0 * d(t) * d(t),h(t)

1 ≤ d(t) ≤ 7 and 1 ≤ h(t) ≤ 48/288/…

Abnormal behavior: rare and shortAbnormal behavior: rare and short

0 z(t) = 0

NE(t) ~

P(N; (t)) z(t) = 1

z(t) ~ Markov Process

Unsupervised learning of model parameters Unsupervised learning of model parameters via statistical methods (MCMC)via statistical methods (MCMC)

Page 21: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Responsphere:Responsphere:

1/3 UCI campus:2 Indoor buildings

+Outdoors

+200 sensors+10 types

Implementation

Page 22: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Summary

Sentient systems Challenges

Layered architecture Privacy applications

Page 23: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Thank you

http://satware.ics.uci.edu

Page 24: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Extra slides

Page 25: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Funded through National Science Foundation Funding:Funded through National Science Foundation Funding:ITR award ITR award

NSF Research Infrastructure award NSF Research Infrastructure award

Project RESCUE June 20, 2007

http://www.itr-rescue.org

Page 26: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Mission

The mission of RESCUE is to enhance the ability of The mission of RESCUE is to enhance the ability of

emergency response organizations and the public emergency response organizations and the public

to mitigate crises, save lives, and prevent to mitigate crises, save lives, and prevent

secondary and indirect human and economic loss secondary and indirect human and economic loss

by radically transforming ways in which these by radically transforming ways in which these

organizations gather, process, manage, use and organizations gather, process, manage, use and

disseminate information during man-made and disseminate information during man-made and

natural catastrophes.natural catastrophes.

Page 27: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Approach: Information Technologies for Improved Situational Awareness

HypothesisHypothesis: Right InformationRight Information to the to the Right PersonRight Person at the at the Right TimeRight Time can result in dramatically better response can result in dramatically better response

Response Effectiveness• lives & property saved • damage prevented• cascades avoided

Quality & Timeliness of

Information

Situational Awareness• incidences• resources• victims• needs

Quality of Decisions• first responders• consequence planners• public

Page 28: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

• Privacy• Security• Trust

• Natural Hazards Center• Social Science

• Data Management• Security and Trust

• Disaster Analysis • Earthquake Engineering• GIS

• Civil Engineering• Data Analysis & Mining• Data Management• Middleware & Distributed Systems

• Civil Engineering• Transportation Engineering

• Computer Vision• Networking• Multimodal Speech

Research Team

• Transporation Modeling• Urban Planning

• Privacy• Social Science • Transportation Science

• Wireless

Page 29: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Industrial Partners

5G WirelessBroad-ranged IEEE 802.11

networking

AMDCompute Servers

Apani NetworksData security at layer 2

Asvaco1st responder (LAPD), and threat

analysis software

BoeingCommunity Advisory Board Member

CanonVisualization equipment SDK

ConveraSoftware partnership

Cox CommunicationsBroadcast video delivery

D-LinkCamera Equipment and SDK

Ether2Next-generation ethernet

IBMSmart Surveillance Software (S3) and

22 e330 xSeries servers

ImageCat, Inc.GIS loss estimation in emergency

response

MicrosoftSoftware

PrintronixRFID Technology

The School Broadcasting Company

School based dissemination

Vital Data TechnologySoftware partnership

Walker WirelessPeople-counting technology

Page 30: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Government Partners

California Governor’s Office of Emergency Services

California Governor’s

Office of Homeland Security

City of Champaign City of Dana Point

City of Irvine City of Los Angeles

City of Ontario

Fire DepartmentCity of San Diego

Department of Health and Human Services – Centers for

Disease Control

Lawrence Livermore

National Laboratory

Los Angeles County National Science Foundation

Orange CountyOrange County Fire

Authority

U.S. Department of

Homeland Security

Page 31: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

RESCUE Research

• Social Science – context and understanding of crisis domain

• Information Technology – infrastructure & tools to enhance flow of information & situational awareness

• Engineering – platform for realization, real-world physical constraints that help test, and validate IT solutions

Networking & Computing systemsComputing, communication, & storage systems under extreme situations

Information Centric Computingenhanced situational awareness

Social & Disaster Science context, model & understanding of process,

organizational structure, needs

Engineering & Transportationvalidation platform for role of IT research

Secu

rity

, Pri

vacy

& T

rust

C

ross

cu

ttin

g iss

ue a

t every

level

Page 32: SATware: Middleware for Sentient Spaces WMSC 2007 Bijit Hore, Hojjat Jafarpour, Ramesh Jain, Shengyue Ji, Daniel Massaguer, Sharad Mehrotra, Nalini Venkatasubramanian,

Testbeds

RESCUE Thrust Areas INFORMATION SHARING

INFORMATIONCOLLECTION

INFORMATIONANALYSIS

INFORMATIONDISSEMINATION

RESCUEResearchProjects

Situation Awareness

Situation Awareness Robust

Networking

Robust Networking Customized

Dissemination

CustomizedDissemination

Policy-driven Information

Sharing

Policy-driven Information

Sharing PrivacyPrivacy

METASIMMETASIM

CAMAS CAMAS

GLQ GLQ

CHAMPAIGN CHAMPAIGN

FUTURE TESTBEDSFUTURE TESTBEDS

IntegrativeArtifacts

Smart Reconnaissance

System

Smart Reconnaissance

System

EnterpriseService

Bus

EnterpriseService

Bus

Policy Engine

Policy Engine

Real-time Alert

System

Real-time Alert

System

Integrated Information Dashboard

Integrated Information Dashboard

Internet-basedLoss Estimation

System

Internet-basedLoss Estimation

System

Robust Networking

Solution

Robust Networking

Solution

RiskCommunication

System

RiskCommunication

System

Project Structure


Recommended