Slide 1

Slide 1 text

Demystifying THE FOG EUGENE SIOW RAPID AND INTEROPERABLE COMPUTING FOR THE INTERNET OF THINGS

Slide 2

Slide 2 text

DATA OWNERSHIP & PRIVACY WITH LIGHTWEIGHT COMPUTERS A Smart Home Scenario implementing a Personal IoT Repository Smart Home Dashboard Personal IoT Repository Environmental Sensors Energy Meters Data Stream Energy Saving Analytics Stream & Historical Queries Motion Sensors Data ownership Own and store your data at home ↓PUBLIC Cloud ENCRYPTION BETTER PERFORMANCE SPECIFIC POLICIES/CONTROL ONLINE/OFFLINE, TRUST, ACCESS CONTROL

Slide 3

Slide 3 text

LIGHTWEIGHT COMPUTERS WITHIN A FOG COMPUTING INFRASTRUCTURE Fog Computing utilises the space between the “Ground” and “Cloud” Irrigation Application Soil Moisture Analytics Lightweight Computer Hub Data Stream Environmental Sensors GROUND National Disaster Monitoring Application Weather Data City Inclement Weather Planning Application CLOUD Distributed Queries

Slide 4

Slide 4 text

LOTS of data, lots of private data “The Internet of Things is currently beset by product silos.” W3C Web of Things Interest Group CURRENT STATE OF THE INTERNET OF THINGS DATA SILOS: we don’t agree on standards EMERGING IDEAS like FOG COMPUTING PERFORMANCE of APPLICATIONS & ANALYTICS

Slide 5

Slide 5 text

INTRODUCING GRAPH DATA MODELS LIKE LINKED DATA OR PROPERTY GRAPHS FOR INTEROPERABILITY Ontologies AND DATA MODELS Establish common data structures & References http://thing.io/1 is a http://ont/weather_sensor CLASS produces http://thing.io/obs/1 http://ont/temp_observation is a 13.0 has value CLASS ℃ unit ENABLES RICH METADATA what, where, WHEN, HOW of DATA located at http://thing.io/loc/1 latitude longitude -1.41 50.9 PERFORMANCE CHALLENGES STORES DON’T SCALE & PERFORM WELL ON WEB YET Buil-Aranda, C., Hogan, A.: SPARQL Web-Querying Infrastructure: Ready for Action? ISWC 2013

Slide 6

Slide 6 text

THE SHAPE OF IOT TIME-SERIES DATA 1 2,3 4 5 6+ Width { timestamp : 1467673132, temperature : 32.0, humidity : 10.5, pressure : 1016, light: 120.0, } 1 2 3 4 { timestamp : 1467673132, temperature : { max: 22.0, min: 15.0, current: 17.0, error: { percentage: 5.0 } } } FLAT { timestamp : 1467673132, temperature : 32.0, wind_speed : 10.5, pressure : 1016 } COMPLEX 20k UNIQUE DEVICES dweet.io 99.5% FLAT SCHEMATA 80.0% WIDE SCHEMATA 87.2% NUMERICAL FIELDS Siow, E., Tiropanis, T., Hall, W. (2016) A Study of Dweet.io and Sparkfun Internet of Things Device Schemata. http://dx.doi.org/10.5258/SOTON/D0076

Slide 7

Slide 7 text

INTEROPERABILITY WITH A RICH DATA MODEL THING TEMPERATURE OBS HUMIDITY OBS WIND SPEED OBS 13.0 2016-01-01 06:00:00 CELCIUS 93.0 2016-01-01 06:00:00 PERCENT 10.5 2016-01-01 06:00:00 MPH LOCATION produces produces located produces has value unit time GRAPH MODEL Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference

Slide 8

Slide 8 text

OBSERVATION DATA OBSERVATION METADATA SENSOR METADATA THING TEMPERATURE OBS HUMIDITY OBS WIND SPEED OBS 13.0 LOCATION produces produces located produces has value THING THING THING TEMPERATURE OBS time TEMPERATURE OBS 2016-01-01 06:00:00 unit TEMPERATURE OBS celcius 93.0 has value HUMIDITY OBS time HUMIDITY OBS 2016-01-01 06:00:00 unit HUMIDITY OBS PERCENT 10.5 has value WIND SPEED OBS time WIND SPEED OBS 2016-01-01 06:00:00 unit WIND SPEED OBS MPH RDF TRIPLES Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference INTEROPERABILITY WITH A RICH DATA MODEL

Slide 9

Slide 9 text

SENSOR METADATA OBSERVATION DATA OUR APPROACH THING TEMPERATURE OBS WIND SPEED OBS CELCIUS PERCENT MPH LOCATION produces located HUMIDITY OBS unit TEMPERATURE HUMIDITY WIND SPEED 13.0 93.0 10.5 TIME 2016-01-01 06:00:00 OBSERVATION METADATA Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference INTEROPERABILITY WITH A RICH DATA MODEL

Slide 10

Slide 10 text

EFFICIENT QUERYING: MAP-MATCH-OPERATE THING TEMPERATURE OBS WIND SPEED OBS CELCIUS PERCENT MPH LOCATION produces located HUMIDITY OBS unit TEMPERATURE HUMIDITY WINDSPEED 13.0 93.0 10.5 TIME 2016-01-01 06:00:00 Table1 TABLE1.TEMPERATURE has value has value TABLE1.HUMIDITY has value TABLE1.WINDSPEED Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference

Slide 11

Slide 11 text

THING TEMPERATURE OBS WIND SPEED OBS CELCIUS PERCENT MPH LOCATION produces located HUMIDITY OBS unit TEMPERATURE HUMIDITY WINDSPEED 13.0 93.0 10.5 TIME 2016-01-01 06:00:00 Table1 TABLE1.TEMPERATURE has value has value TABLE1.HUMIDITY has value TABLE1.WINDSPEED EFFICIENT QUERYING: MAP-MATCH-OPERATE Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference

Slide 12

Slide 12 text

THING TEMPERATURE OBS CELCIUS PERCENT produces loc HUMIDITY OBS unit TEMPERATURE HUMID 13.0 93.0 TIME 2016-01-01 06:00:00 TABLE1.TEMPERATURE has value has va TABLE1.H MAX( ) ?TEMPERATURE SELECT ?OBS TEMPERATURE OBS a has value ?OBS ?TEMPERATURE has unit ?OBS ?uom { } SELECT MAX( ) ?TEMPERATURE ?OBS TEMPERATURE OBS a has value ?OBS ?TEMPERATURE has unit ?OBS ?uom EFFICIENT QUERYING: MAP-MATCH-OPERATE Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference

Slide 13

Slide 13 text

TEMPERATURE OBS CELCIUS TEMPERATURE 13.0 TABLE1.TEMPERATURE has value MAX( ) ?TEMPERATURE SELECT ?OBS TEMPERATURE OBS a has value ?OBS ?TEMPERATURE has unit ?OBS ?uom { } SELECT MAX( ) ?TEMPERATURE ?OBS TEMPERATURE OBS a has value ?OBS ?TEMPERATURE has unit ?OBS ?uom Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference EFFICIENT QUERYING: MAP-MATCH-OPERATE

Slide 14

Slide 14 text

MAX( ) ?TEMPERATURE SELECT ?OBS TEMPERATURE OBS a has value ?OBS ?TEMPERATURE has unit ?OBS ?uom { } SELECT MAX( ) ?TEMPERATURE ?OBS TEMPERATURE OBS a has value ?OBS ?TEMPERATURE has unit ?OBS ?uom SELECT MAX( ) ?TEMPERATURE ?OBS ?TEMPERATURE ?uom TABLE1.TEMPERATURE CELCIUS NODE_TEMP EFFICIENT QUERYING: MAP-MATCH-OPERATE Siow, E., Tiropanis, T. and Hall, W. (2016) Interoperable & Efficient: Linked Data for the Internet of Things. INSCI2016: The 3rd Internet Science Conference

Slide 15

Slide 15 text

Benchmarks on queries SMART HOME BENCH SRBench 2 to 104 3 to 69 Siow, E., Tiropanis, T. and Hall, W. (2016) SPARQL-to-SQL on internet of things databases and streams. ISWC2016: The 15th International Semantic Web Conference 300K TRIPLES 3ok TRIPLES GraphDB (OWLIM) Ontop Our Approach (S2S) TDB G Morph O S M T Raspberry Pi 2 Model B+ 1GB RAM, 900MHz Quad Core ARM Cortex A7, Class 10 SD Cards

Slide 16

Slide 16 text

STREAM PROCESSING EFFICIENCY 1 2 3 4 5 7 8 9 10 SRBENCH 294 261 306 277k 3243k 5245 426 280k 98 Le-Phuoc, D., et al. (2011) "A native and adaptive approach for unified processing of linked streams and linked data.” The 10th International Semantic Web Conference. CQELS Performance Improvement For IoT Data Over 196 2 1 167 xImprovement Query SMART HOME Siow, E., Tiropanis, T. and Hall, W. (2016) SPARQL-to-SQL on internet of things databases and streams. ISWC2016: The 15th International Semantic Web Conference

Slide 17

Slide 17 text

STREAM PROCESSING SCALABILITY VELOCITY >99% <1ms latency increasing from 1 to 1000 rows/ms VOLUME 33.5million rows, projected ~2.5 billion triples! <1ms 10-100ms 1 2 5 10 100 1000 99% 100% Rate in rows/ms Percentage Latency in ms Bands Siow, E., Tiropanis, T. and Hall, W. (2016) SPARQL-to-SQL on internet of things databases and streams. ISWC2016: The 15th International Semantic Web Conference

Slide 18

Slide 18 text

PERSONAL IOT REPOSITORY Siow, E., Tiropanis, T. and Hall, W. (2016) PIOTRe: Personal Internet of Things Repository: The 15th International Semantic Web Conference P&D github.com/eugenesiow/piotre PIOTRE Apps sparql2stream sparql2sql Metadata

Slide 19

Slide 19 text

Eywa is like a huge biological internet; the trees being computer servers that store information and sensors being neural-connected flora and fauna AVATAR JAMES CAMERON’S

Slide 20

Slide 20 text

FOG COMPUTING FOR RDF STREAM PROCESSING Siow, E., Tiropanis, T. and Hall, W. (2016) Eywa: An Interoperable Fog Computing Infrastructure with RDF Stream Processing. INSCI2017: The 4th Internet Science Conference Sensors Node Data Stream Broker Subscribe(URI_1) Client Publish ([Query_p1,Q_p2]) Push (Select_Stream), Access Control, Bandwidth Control Inverted pub-sub Query Broadcast, Nodes manage distributed processing WORKLOAD DISTRIBUTION No single point of failure. Any RPi can serve as a broker. ‘Best effort’ for source nodes ResultSet

Slide 21

Slide 21 text

INTRODUCING A DECENTRALISED SOCIAL WEB OF THINGS Siow, E., Tiropanis, T. and Hall, W. (2017) A Decentralised Social Web of Things. PRIMARY APPLICATION AND INFRASTRUCTURE TETIARY APPLICATIONS SECONDARY APPLICATIONS APPS COLLABORATIVE WORK DECENTRALSATION SOCIAL GRAPH WOT IOT LD hubber.space

Slide 22

Slide 22 text

Siow, E., Tiropanis, T. and Hall, W. (2017) A Decentralised Social Web of Things. HANDLING VOLUME MACHINE-TRANSITION HUMAN-DRIVEN MACHINE-AUTOMATED Chatbots Messaging Client Neural Representation Messaging Friend/Follow Trustless Networks Edge Prediction Policy Game Theory Social Graph Crowd Sourcing Collaborative Editing Collaboration Web 2.0/Mobile Strong AI Algorithmic Rule-based Learned Interaction

Slide 23

Slide 23 text

TritanDB Siow, E., Tiropanis, T. and Hall, W. (2017) TritanDB: Time-series Rapid Internet of Things Analytics,

Slide 24

Slide 24 text

A hit TV-Series portraying realistic hacking and bleeding-edge technology fsociety E CORP

Slide 25

Slide 25 text

“NOTHING IS WORKING.” “UNPLUG WHAT?” “EVERYTHING IS INSIDE THE WALLS.”

Slide 26

Slide 26 text

@eugene_siow “It's a long road, it's a long and narrow way. If I can't work up to you, you'll surely have to work down to me someday.” Narrow Way by Bob Dylan EUGENE SIOW THANASSIS TIROPANIS WENDY HALL