2036, 6shfldo 7rslfv (gjh &rpsxwlqj€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh...

14
11/18/2018 1 ECE 590/COMPSI 590 Special Topics: Edge Computing Edge in Data Collection Applications Monday October 15 th , 2018 Wednesday October 17 th , 2018 Lecture Outline Responsive vs. data collection applications Edge in data collection applications: two views Reducing data transmission with edge • Wednesday : Edge and machine learning ML training with edge involvement Personalized ML models with edge 2

Upload: others

Post on 03-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

1

ECE 590/COMPSI 590Special Topics: Edge Computing

Edge in Data Collection Applications

Monday October 15th, 2018

Wednesday October 17th, 2018

Lecture Outline

• Responsive vs. data collection applications

• Edge in data collection applications: two views

• Reducing data transmission with edge

• Wednesday: Edge and machine learning ML training with edge involvement

Personalized ML models with edge

2

Page 2: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

2

Responsive Applications

• Also sometimes called “interactive applications”

• Often single device

• Speed of reaction matters

3

Data Collection Applications

• Slower reaction time Speed of operation

less of a concern

No in-the-loop control

• Often look across multiple devices

4

Page 3: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

3

Data Collection Applications: Examples

• Environmental, home, human health monitoring, …

5

Example Applications: Data Collection Across Multiple Mobile Users

• Images

• Clicks

• System performance

6

Page 4: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

4

Turning Data Collection Applications into Responsive Applications?

7

• Near-real-time reaction to traditionally long-term logged data is possible in some cases

Turning Data Collection Applications into Responsive Applications?

• Some decision-making and response timelines do not call for fast responses

8

Page 5: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

5

Lecture Outline • Responsive vs. data collection applications

• Edge in data collection applications

• Traditional pipeline view: reducing data transmission with edge

• Comprehensive view: edge and machine learning ML training with edge involvement

Personalized ML models with edge

9

Data Collection Applications: Current State

10Sensors Cloud

Raw data

Page 6: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

6

Data Collection Applications: Via Additional Edge Nodes

11Sensors CloudEdge nodes

Data Collection Applications: With Capable Edge Devices

12CloudEdge devices

Partially processed

data

Page 7: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

7

Data Collection Applications: With Edge Devices and Cloudlets

13CloudEdge devices Cloudlets

Data Collection: Traditional Pipeline View

14

• Data feeds to some entity which acts on it

• Edge has a role in data acquisition and storage stages

• Can modify what is sent to the cloud, but do not modify data processing algorithms

Page 8: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

8

Data Collection: Comprehensive View

15

• Change collection approaches and restructure processing algorithms

• Requires in-depth understanding of the algorithms Anomaly detection

Learning algorithms

Lecture Outline • Responsive vs. data collection applications

• Edge in data collection applications

• Traditional pipeline view: reducing data transmission with edge Data reduction

Data reduction + edge for data storage

• Comprehensive view: edge and machine learning ML training with edge involvement

Personalized ML models with edge 16

Page 9: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

9

Opportunities for Improvement

• Wasteful to transmit data that is ultimately not used

• Classic data reduction techniques all apply

17

Classic Techniques: Execute Early Stages of Algorithmic Pipelines on the Edge

• When it reduces the amount of data transmittedPre-processing

Feature extraction

18

Page 10: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

10

Classic Data Reduction Techniques on the Edge: Filtering

• Also called selective forwarding

• Send only important data to the cloud

• E.g., : Of a certain type

GEQ, LEQ, in range, …

• Supported by AWS Greengrass19

Lossy Techniques

• Compress or aggregate the data Sampling

Summarization

Approximations

20

Page 11: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

11

Tradeoff: Data Storage Quality

• Cloud-stored data may be reduced in density and richness in the long termUnless the reduction techniques are fully

lossless

• Lose the ability to data-mine for perpetuity

21

Classic Techniques are Important in Practice

• Reduce operating expenses

• Could be one of the main drivers for edge deployments

22

Page 12: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

12

Tradeoff: Dealing With Changes

• Existing techniques are largely non-adaptive Predefined LEQ, GEQ, … assume that data properties

are stationary

• Concept drifts need to be detected and dealt with Detecting changes

Periodically updating rules for them

23

Lecture Outline • Responsive vs. data collection applications

• Edge in data collection applications

• Traditional pipeline view: reducing data transmission with edge Data reduction

Data reduction + edge for data storage

• Comprehensive view: edge and machine learning ML training with edge involvement

Personalized ML models with edge 24

Page 13: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

13

Classic Techniques in Collaboration with Data Storage Policies: Video Example

• Send reduced “important data” from a video to the cloud

• Keep full video available locally for a pre-specified number of days

• Send the full video to the cloud later on if required

25

Reverse Content Delivery Networks

• Need new solutions for searching, storage management

26From: Reverse CDN in Fog Computing: The Lifecycles of Video Data in Connected and Autonomous Vehicles, by Moustafa et all, IEEE FWC, 2017.

Page 14: 2036, 6SHFLDO 7RSLFV (GJH &RPSXWLQJ€¦ · :lwk (gjh 'hylfhv dqg &orxgohwv í ï (gjh ghylfhv&orxgohwv&orxg 'dwd &roohfwlrq 7udglwlrqdo 3lsholqh 9lhz í ð 'dwd ihhgv wr vrph hqwlw\

11/18/2018

14

Recap

• Responsive vs. data collection applications

• Edge in data collection applications

• Traditional pipeline view: reducing data transmission with edgeData reduction

Data reduction + edge for data storage

27

Next Class: Reading Material

• Google AI Blog: Federated Learning: Collaborative Machine Learning without Centralized Training Data

28