DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
Big Data & Analitycs e CyberSecurity, July 2018
http://www.disit.org/
Paolo Nesi, paolo.nesi@unifi.it
https://www.Km4City.orghttps://www.snap4City.org
Big Data, Open data, IOT
1
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018
The data!
2
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Real time private Real time public (open data)
Static Public (open data)Private and static
statistics: accidents, census, votations
• Fiscal Code, SSN
• Non shared pictures
• Level aspects
• Patient health record
• ..
Smart City Course, October 2018 3
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Km4City  in Tuscany Area
Road Graph (Tuscany region)
132,923 Roads , 389,711 Road Elements
318,160 Road Nodes, 1,508,207 Street Numbers
Info on: points, paths, areas, etc.
Services (20 cat, 512 cat.)
16 Public Transport Operators
21.280 Bus stops & 1081 bus lines
Dynamic/real‐time in Tuscany Region
• Real time bus lines: 144 updates X day X line
• 1081 Transport Pub Lines:  1‐2 up per day, time‐path
• >210 parking lots status:  76 updates X day X sensor
• >796 traffic Sensors: 288 updates X day X sensor
• 285 weather area: 2 updates X day X area
• >12 hospital Triage status: 96 updates X day X FA
• 22 Environmental data: 20 updates X day X sensor
• 39 Bike Sharing data: Pisa and Siena
• 12 Pollination data
• 140 recharging stations
• Smart benches, waste mng, irrigators, lighting,…
• Florence ent.events: about 60 new events X day
• Different kinds of Florence traffic events, 
• [1600 Fuel stations: 1 update X day X station]
• Wi‐Fi: > 400.000 measures X day
• App mobiles: >50.000 measures X day
• more than 40.000 distinct users X day
• From 600.000 to 4.5 M Tweets X day
• many IOT sensors ……http://servicemap.km4city.org 4
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018
5V of Big Data
Variety
Volume
VariabilityVelocity
Value
5V’s of
Big Data
When data are 
BIG data?
The excel 
file size?
5
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Cloud Infrastructure
Km4City Smart City API
Knowledge 
Base
ETL Processes, Data Analytic, R; IOT App; etc. 
Data Processing Tools
Development and Management Tools
ETL Processes
Resource 
Manager
DataGate/
CKAN
Km4City Ontology
Phoenix, Hbase
+ indexing
Big Data Storage Knowledge
IoT/IoE Applications
AMMA
Linked
Open Graph
ServiceMap Data Flow Analysis
DevDash
Elastic Management of Containers
Mobile and Web Apps
Final Users’ Tools
Dashboards
Social Media
IoT/IoE
Open Data
Personal Data
Industry 4.0
GIS + Map Data
IOT / IOE Apps
IOT Directory
Management
Authentication, Authorization, GDPR, Security Assessment
Powered by
Smart City Course, October 2018 6
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018
Services from Data
via Smart City API
7
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Km4City  in Tuscany Area
What is enabling and providing smart services
• Smart Parking, in Tuscany
• Smart First Aid in Tuscany
• Smart Fuel pricing in Tuscany
• Smart search for POI and public transport srv.
• Public Transportation in Tuscany
• Routing in Tuscany
• Social Media Monitoring and acting
• Traffic events and Resilience in Florence
• Bike Sharing in Pisa and Siena
• Recharge stations for e‐vehicles
• Entertainment Events in Florence
• Traffic Sensors in Tuscany
• Weather forecast/condition in Tuscany
• Pollution and Pollination in Tuscany
• People Monitoring Assessment in the City, in 
Florence via WiFi
• People Monitoring, in Tuscany via App
All Point of Interests, cultural activities, IOT, …
Over than 1.2 Million of complex events per day!http://servicemap.km4city.org 8
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Scenarious vs SmartCity API
Smart City Course, October 2018 9
• Search data: by text, near, along, etc... 
– Resolving text to GPS and formal city nodes model
• Empowering the city users
• Access to event information 
• Supporting City Users in using Public Mobility
• Supporting City Users in using Private Mobility
• New Experience to access at Cultural and Touristic info
• New way to access at health services
• Access at Environmental information
• Profiled Suggestions to City Users
• Personal Assistant
• Sharing knowledge among cities 
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
• Areas, Bus lines, bike lanes, tram, RTZ, etc.
Smart City Course, October 2018
Km4City in Firenze
10
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Along a Line
Smart City Course, October 2018
Into an Area
11
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Supporting City Users in using Public Mobility
Smart City Course, October 2018
• Public Transport, PT
– Getting tickets
– Getting bus stops, lines, and timelines for 
bus, train and tramline (GTFS, ETL, ..)
– Searching Services along a Pub. Transport 
line or closer to a stop
– Searching the closest bus stops
– searching for BUS stops via name
– real time delays of busses
– modal routing for Pub. Transport 
12
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Supporting City Users using Private Mobility
Smart City Course, October 2018
• Private Transport
– Parking status (DATEX II, …)
– Getting closer parking 
– Getting parking forecast
– Getting closer free space on parking 
– Getting fuel stations location and fuel product 
prices
– Getting bike sharing rack status
– Searching Services along a path or closer to a point 
or Service as Hotel, Restaurants, square, etc.
– Getting closer cycling paths
– Recharging stations: location and status 
– Getting traffic information 
13
13
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Private Mobility: routing
and navigation paths
Smart City Course, October 2018
• To get the path from two 
points/POIs:
–Shortest for pedestrian 
–Quietest for pedestrian
–Shortest for private vehicles 
• Search for POIs along the 
identified Path!
• http://www.disit.org/ServiceMap
14
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
New way to access at health services
Smart City Course, October 2018
• Searching for pharmacies and 
hospitals
• Getting the closest hospital first 
aid locations and status
• Getting real time updated 
information about the first aid 
status of major hospitals (triage)
15
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Access at Environmental information
Smart City Course, October 2018
• Getting weather forecast for the next hours 
and days
• Getting alert information from Civil 
protection
• Getting air quality status
• Getting pollination status
• getting actual weather status: 
temperature, humidity, pressure, rain level, 
• etc. 
16
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
IOT Applications and IOT
Smart City Course, October 2018 17
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Level 4 users: dashboard with intelligence App
• Dashboards with IOT Applications for enforcing smart and 
intelligence into them.
DashboardsIOT and City data World IOT Applications
My IOT Devices
Dashboard‐IOT App
Smart City Course, October 2018 18
Applications
IOT Edge on the field
IOT Devices IOT Edge
With IOT App distributed
Sensors/
Actuators
Sensors/
Actuators
Sensors/
Actuators
Sensors/
Actuators
Sensors/
Actuators
Sensors/Actuators
Raspberry pi
‐‐ PC: Win, 
Linux
Android
IOT Directory
(1) Registration
(2) Production of 
IOT App on IOT edge
(3) Production of 
Dashboard user interface
(4) IOT App and 
its Dashboard 
are executed
(0) Sensors &
Actuators
Internet
IOT App can be executed on 
IOT Edge and/or on Cloud. 
MicroServices calling
Dashboards, Storage and 
Analytics are executed on 
Cloud.
On Cloud
Other
Connected
IOT App
Smart City Course, October 2018 19
IOT Edge on the field
IOT Devices
IOT Edge
With IOT App distributed
Sensors/
Actuators
Sensors/
Actuators
Sensors/
Actuators
Sensors/
Actuators
Sensors/
Actuators
Sensors/Actuators
Raspberry pi
‐‐ PC: Win, 
Linux
IOT Directory
(1) Registration
(2) Production of 
IOT App on IOT edge
(3) Production of 
Dashboard user interface
(4) IOT App and 
its Dashboard 
are executed
(0) Sensors &
Actuators
Internet
IOT App can be executed on 
IOT Edge and/or on Cloud. 
MicroServices calling
Dashboards, Storage and 
Analytics are executed on 
Cloud.
On Cloud
Other
Connected
IOT App
20
IOT Brokers
IOT Brokers
Node.js Blocks on NodeRed SotA
Smart City Course, October 2018 21
Snap4City MicroServices
Smart City Course, October 2018 22
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Personal Data vs Open
Smart City Course, October 2018 23
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
• Manage Profile and MyPersonalData
• For each Data Type:
– Start as private  making them public 
(anonymous) and revoke
– The Owner is the only one that can: (1) modify 
values; (2) change the ownership
– Define/revoke Delegation to Access
– Delete/forget per Data Type and “me all!”. 
– Auditing 
GDPR Compliant
Smart City Course, October 2018 24
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Managing MyPersonalData in secure manner
Smart City Course, October 2018 25
Examples:
• 1) Social IOT: A group of friends share some data with other according to GDPR: GPS 
position, Medical parameters as Glucose, etc. 
• 2) saving and retrieve personal sensitive information. 
The users manage their Personal data via personal mobile Dash and IOT App, and 
configuration on the portal and/or Mobile App
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Managing MyPersonalData in secure manner
Smart City Course, October 2018 26
Example:
• Piero shares some data with 
selected friends according to 
GDPR: GPS position
• He managed the data via 
personal mobile Dashboard 
and IOT Application
Encrypted
Data Storage
Smart City 
Services and 
IOT/IOE
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Big Data Analytics
Smart City Course, October 2018 27
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Predicting Models for Admin. & City Users
Smart City Course, October 2018
• Aiming at improving 
– quality of service, distributing workload 
– early warning
• Predictions: Short (15 min, 30 Min) 
and mid Term (1 week)
• Data Analytics: ML, NLP/SA, Clust…
– Traffic Flows  multiflow reconstruction
– Parking Status  free slots
– People Flows (WiFi, Twitter)
 crowd , #number of people
Predicting at EXPO2015
Early Warning Water Bomb
Early Warning Hot in Tuscany
Predicting City Users on Areas
29
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Free Parking space trends
Smart City Course, October 2018
12 parking areas in Florence 30
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Free Parking PREDICTIONS
Smart City Course, October 2018
• Active on Apps
– «Firenze dove cosa»
– «Toscana dove cosa»
Careggi car park
Model  
features 
BRNN model results
R‐squared RMSE MASE
Baseline 0.974 24 1.87
Baseline + Weather   0.975 24 1.75
Baseline + Traffic sensors   0.975 24 2.04
Baseline + Weather + Traffic 
sensors  
0.975  24  1.87 
31
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
User Behaviour Analysis
Smart City Course, October 2018
• Monitoring movements by traffic
flow sensors
– Spires and virtual spires
• Monitoring movements from 
Mobile Cells
– Unsuitable for precise tracking and OD 
production
• Monitoring movements from Wi‐Fi
• Monitoring movements and much
more from mobile Apps
32
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Characterizing City Areas
Smart City Course, October 2018
Predicting City Areas Crowd level
characterizing Users’ BehaviorsWi‐Fi based
33
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018
Prediction and identification of anomalies
Cluster confidence
AP average and confidence
Actual AP trend for today
AP prediction for the next time slot in the day on the basis of past weeks
Guessing number of users of Wi‐Fi Access Points
34
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Origin Destination Matrix Estimation
Wi‐Fi based
DISIT lab overview, January 2017, Florence
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018
Traffic Flow Tools
• Spire and Virtual Spires (cameras), Bluetooth, ..
• Specifically located: along, around, ..
• Traffic
Tuscany
36
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018
Traffic Flow reconstruction, real time
http://firenzetraffic.km4city.org
37
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Routing and Multimodal Routing
• Pedonal
• Veichles
• Public Multimodal
• Delivering
Smart City Course, October 2018 38
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Routing
• Pedonal
– Normal
– Quite
Smart City Course, October 2018 39
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
App as data collection
and User Engagement
Smart City Course, October 2018 40
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Km4City APP
• Smart Parking, in Tuscany
• Smart First Aid in Tuscany
• Smart Public Transportation in 
Tuscany
• Smart Fuel pricing in Tuscany
• Bike Sharing in Pisa
• Weather condition in Tuscany
• Pollution and Pollination in 
Tuscany
• Traffic Sensors in Tuscany
• Smart Routing in Tuscany
• Smart Transportation in Florence
• Events, traffic, …
• Entertainment Events in Florence
Smart City Course, October 2018 41
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018 42
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Social Media Analysis
Smart City Course, October 2018 43
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Twitter Vigilance
• http://www.disit.org/tv
• http://www.disit.org/rttv
• Citizens as sensors  to
– Assess sentiment on services, 
events, … 
– Response of consumers wrt… 
– Early detection of critical 
conditions 
– Information channel
– Opinion leaders 
– Communities 
– Formation
– Predicting volume of visitors for 
tuning the services 
Smart City Course, October 2018 44
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Prediction/Assessment
• Football game results as related to the volume of Tweets
• Number of votes on political elections, 
via sentiment analysis, SA
• Size and inception of contagious diseases
• marketability of consumer goods 
• public health seasonal flu 
• box‐office revenues for movies 
• places to be visited, most visited
• number of people in locations like airports
• audience of TV programmes, political TV shows
• weather forecast information
• Appreciation of services
Smart City Course, October 2018 45
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Twitter Vigilance
Smart City Course, October 2018
Early Warning
Predictive models
Hot flows
Attendance at long lasting events: EXPO2015
Attendance at recurrent events: TV, footbal
46
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Visual Analytics and
Dashboards
Smart City Course, October 2018 47
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018 48
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018 49
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Smart City Course, October 2018 50
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
The Living Lab Approach
Smart City Course, October 2018 51
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Connect
IOT/IOE
Upload context  
Open Data
Connect external 
Services
Advanced Smart 
City API
Run
Applications & 
Dashboard 
Monitor
City Platform
Life Cycle
experiments
workshops
tutorials
networking
agreements
events
Start‐ups
Research 
groups
City 
Users
City Operators
Large 
Industries
collaborations
Licensing, 
Gold services
personal
services
Case 
Studies
Inhouse 
companies
Resource Operators
Tech 
providers
partnerships
documentation
Help desk
Category 
Associations
Corporations
Advertisers
Community
Building
subscription to
applications
Produce City 
Applications & 
Dashboard 
Promote 
Applications & 
Dashboards 
Produce 
Applications for City 
Users
Set Up: ETL & Data 
Analytic algorithms
Collaborative 
Platform
Early Adopters
Snap4City
Smart City Course, October 2018 52
DISIT Lab, Distributed Data Intelligence and Technologies
Distributed Systems and Internet Technologies
Department of Information Engineering (DINFO)
http://www.disit.dinfo.unifi.it
http://www.disit.org
Mobile e Web Apps
Tools for Final Users
Km4City Smart City Engine
Transport systems
Mobility, parking
Km4City Smart City API
Public Services
Govern, events, …
Sensors, IOT
Cameras, ..
Environment, 
Water, energy
Social Media
WiFi, network
DISCES ‐‐Distributed and parallel architecture on Cloud 
Shops, services, 
operators
Km4City
Big Data Analytics
Smartening Tools
Development Tools
Recommender
Personal Assistant
Http://www.km4city.org
Smart Decision Support
Twitter VigilanceServiceMap browser
Analyzers of City User Behavior
Dashboards
City Operators and Decision Makers
Smart City Course, October 2018 53
IOT Directory
Back Office Processes 
IOT Broker
IOT Broker
IOT Broker
IOT Broker
ETL Process
Data Analytics
ETL Process
ETL Process
ETL Process
Data Analytics
Data Analytics
Data Analytics
Knowledge Base, 
Km4City
Smart City API from Knowledge Base and other tools
Ontology SPARQL, FLINT LOG.disit.org
ServiceMap ServiceMap3D
Swagger MicroServices
IOT ApplicationsWeb and Mobile AppsDISCES and back office management tools Smart City Course, October 2018 54
MicroApplications
Resource Manager

Big Data, Open data, IOT

  • 1.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it Big Data & Analitycs e CyberSecurity, July 2018 http://www.disit.org/ Paolo Nesi, paolo.nesi@unifi.it https://www.Km4City.orghttps://www.snap4City.org Big Data, Open data, IOT 1
  • 2.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 The data! 2
  • 3.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Real time private Real time public (open data) Static Public (open data)Private and static statistics: accidents, census, votations • Fiscal Code, SSN • Non shared pictures • Level aspects • Patient health record • .. Smart City Course, October 2018 3
  • 4.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Km4City  in Tuscany Area Road Graph (Tuscany region) 132,923 Roads , 389,711 Road Elements 318,160 Road Nodes, 1,508,207 Street Numbers Info on: points, paths, areas, etc. Services (20 cat, 512 cat.) 16 Public Transport Operators 21.280 Bus stops & 1081 bus lines Dynamic/real‐time in Tuscany Region • Real time bus lines: 144 updates X day X line • 1081 Transport Pub Lines:  1‐2 up per day, time‐path • >210 parking lots status:  76 updates X day X sensor • >796 traffic Sensors: 288 updates X day X sensor • 285 weather area: 2 updates X day X area • >12 hospital Triage status: 96 updates X day X FA • 22 Environmental data: 20 updates X day X sensor • 39 Bike Sharing data: Pisa and Siena • 12 Pollination data • 140 recharging stations • Smart benches, waste mng, irrigators, lighting,… • Florence ent.events: about 60 new events X day • Different kinds of Florence traffic events,  • [1600 Fuel stations: 1 update X day X station] • Wi‐Fi: > 400.000 measures X day • App mobiles: >50.000 measures X day • more than 40.000 distinct users X day • From 600.000 to 4.5 M Tweets X day • many IOT sensors ……http://servicemap.km4city.org 4
  • 5.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 5V of Big Data Variety Volume VariabilityVelocity Value 5V’s of Big Data When data are  BIG data? The excel  file size? 5
  • 6.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Cloud Infrastructure Km4City Smart City API Knowledge  Base ETL Processes, Data Analytic, R; IOT App; etc.  Data Processing Tools Development and Management Tools ETL Processes Resource  Manager DataGate/ CKAN Km4City Ontology Phoenix, Hbase + indexing Big Data Storage Knowledge IoT/IoE Applications AMMA Linked Open Graph ServiceMap Data Flow Analysis DevDash Elastic Management of Containers Mobile and Web Apps Final Users’ Tools Dashboards Social Media IoT/IoE Open Data Personal Data Industry 4.0 GIS + Map Data IOT / IOE Apps IOT Directory Management Authentication, Authorization, GDPR, Security Assessment Powered by Smart City Course, October 2018 6
  • 7.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 Services from Data via Smart City API 7
  • 8.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Km4City  in Tuscany Area What is enabling and providing smart services • Smart Parking, in Tuscany • Smart First Aid in Tuscany • Smart Fuel pricing in Tuscany • Smart search for POI and public transport srv. • Public Transportation in Tuscany • Routing in Tuscany • Social Media Monitoring and acting • Traffic events and Resilience in Florence • Bike Sharing in Pisa and Siena • Recharge stations for e‐vehicles • Entertainment Events in Florence • Traffic Sensors in Tuscany • Weather forecast/condition in Tuscany • Pollution and Pollination in Tuscany • People Monitoring Assessment in the City, in  Florence via WiFi • People Monitoring, in Tuscany via App All Point of Interests, cultural activities, IOT, … Over than 1.2 Million of complex events per day!http://servicemap.km4city.org 8
  • 9.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Scenarious vs SmartCity API Smart City Course, October 2018 9 • Search data: by text, near, along, etc...  – Resolving text to GPS and formal city nodes model • Empowering the city users • Access to event information  • Supporting City Users in using Public Mobility • Supporting City Users in using Private Mobility • New Experience to access at Cultural and Touristic info • New way to access at health services • Access at Environmental information • Profiled Suggestions to City Users • Personal Assistant • Sharing knowledge among cities 
  • 10.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org • Areas, Bus lines, bike lanes, tram, RTZ, etc. Smart City Course, October 2018 Km4City in Firenze 10
  • 11.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Along a Line Smart City Course, October 2018 Into an Area 11
  • 12.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Supporting City Users in using Public Mobility Smart City Course, October 2018 • Public Transport, PT – Getting tickets – Getting bus stops, lines, and timelines for  bus, train and tramline (GTFS, ETL, ..) – Searching Services along a Pub. Transport  line or closer to a stop – Searching the closest bus stops – searching for BUS stops via name – real time delays of busses – modal routing for Pub. Transport  12
  • 13.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Supporting City Users using Private Mobility Smart City Course, October 2018 • Private Transport – Parking status (DATEX II, …) – Getting closer parking  – Getting parking forecast – Getting closer free space on parking  – Getting fuel stations location and fuel product  prices – Getting bike sharing rack status – Searching Services along a path or closer to a point  or Service as Hotel, Restaurants, square, etc. – Getting closer cycling paths – Recharging stations: location and status  – Getting traffic information  13 13
  • 14.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Private Mobility: routing and navigation paths Smart City Course, October 2018 • To get the path from two  points/POIs: –Shortest for pedestrian  –Quietest for pedestrian –Shortest for private vehicles  • Search for POIs along the  identified Path! • http://www.disit.org/ServiceMap 14
  • 15.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org New way to access at health services Smart City Course, October 2018 • Searching for pharmacies and  hospitals • Getting the closest hospital first  aid locations and status • Getting real time updated  information about the first aid  status of major hospitals (triage) 15
  • 16.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Access at Environmental information Smart City Course, October 2018 • Getting weather forecast for the next hours  and days • Getting alert information from Civil  protection • Getting air quality status • Getting pollination status • getting actual weather status:  temperature, humidity, pressure, rain level,  • etc.  16
  • 17.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org IOT Applications and IOT Smart City Course, October 2018 17
  • 18.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Level 4 users: dashboard with intelligence App • Dashboards with IOT Applications for enforcing smart and  intelligence into them. DashboardsIOT and City data World IOT Applications My IOT Devices Dashboard‐IOT App Smart City Course, October 2018 18 Applications
  • 19.
    IOT Edge on the field IOT Devices IOT Edge With IOT App distributed Sensors/ Actuators Sensors/ Actuators Sensors/ Actuators Sensors/ Actuators Sensors/ Actuators Sensors/Actuators Raspberrypi ‐‐ PC: Win,  Linux Android IOT Directory (1) Registration (2) Production of  IOT App on IOT edge (3) Production of  Dashboard user interface (4) IOT App and  its Dashboard  are executed (0) Sensors & Actuators Internet IOT App can be executed on  IOT Edge and/or on Cloud.  MicroServices calling Dashboards, Storage and  Analytics are executed on  Cloud. On Cloud Other Connected IOT App Smart City Course, October 2018 19
  • 20.
    IOT Edge on the field IOT Devices IOT Edge With IOT App distributed Sensors/ Actuators Sensors/ Actuators Sensors/ Actuators Sensors/ Actuators Sensors/ Actuators Sensors/Actuators Raspberry pi ‐‐PC: Win,  Linux IOT Directory (1) Registration (2) Production of  IOT App on IOT edge (3) Production of  Dashboard user interface (4) IOT App and  its Dashboard  are executed (0) Sensors & Actuators Internet IOT App can be executed on  IOT Edge and/or on Cloud.  MicroServices calling Dashboards, Storage and  Analytics are executed on  Cloud. On Cloud Other Connected IOT App 20 IOT Brokers IOT Brokers
  • 21.
  • 22.
  • 23.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Personal Data vs Open Smart City Course, October 2018 23
  • 24.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org • Manage Profile and MyPersonalData • For each Data Type: – Start as private  making them public  (anonymous) and revoke – The Owner is the only one that can: (1) modify  values; (2) change the ownership – Define/revoke Delegation to Access – Delete/forget per Data Type and “me all!”.  – Auditing  GDPR Compliant Smart City Course, October 2018 24
  • 25.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Managing MyPersonalData in secure manner Smart City Course, October 2018 25 Examples: • 1) Social IOT: A group of friends share some data with other according to GDPR: GPS  position, Medical parameters as Glucose, etc.  • 2) saving and retrieve personal sensitive information.  The users manage their Personal data via personal mobile Dash and IOT App, and  configuration on the portal and/or Mobile App
  • 26.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Managing MyPersonalData in secure manner Smart City Course, October 2018 26 Example: • Piero shares some data with  selected friends according to  GDPR: GPS position • He managed the data via  personal mobile Dashboard  and IOT Application Encrypted Data Storage Smart City  Services and  IOT/IOE
  • 27.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Big Data Analytics Smart City Course, October 2018 27
  • 28.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Predicting Models for Admin. & City Users Smart City Course, October 2018 • Aiming at improving  – quality of service, distributing workload  – early warning • Predictions: Short (15 min, 30 Min)  and mid Term (1 week) • Data Analytics: ML, NLP/SA, Clust… – Traffic Flows  multiflow reconstruction – Parking Status  free slots – People Flows (WiFi, Twitter)  crowd , #number of people Predicting at EXPO2015 Early Warning Water Bomb Early Warning Hot in Tuscany Predicting City Users on Areas 29
  • 29.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Free Parking space trends Smart City Course, October 2018 12 parking areas in Florence 30
  • 30.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Free Parking PREDICTIONS Smart City Course, October 2018 • Active on Apps – «Firenze dove cosa» – «Toscana dove cosa» Careggi car park Model   features  BRNN model results R‐squared RMSE MASE Baseline 0.974 24 1.87 Baseline + Weather   0.975 24 1.75 Baseline + Traffic sensors   0.975 24 2.04 Baseline + Weather + Traffic  sensors   0.975  24  1.87  31
  • 31.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org User Behaviour Analysis Smart City Course, October 2018 • Monitoring movements by traffic flow sensors – Spires and virtual spires • Monitoring movements from  Mobile Cells – Unsuitable for precise tracking and OD  production • Monitoring movements from Wi‐Fi • Monitoring movements and much more from mobile Apps 32
  • 32.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Characterizing City Areas Smart City Course, October 2018 Predicting City Areas Crowd level characterizing Users’ BehaviorsWi‐Fi based 33
  • 33.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 Prediction and identification of anomalies Cluster confidence AP average and confidence Actual AP trend for today AP prediction for the next time slot in the day on the basis of past weeks Guessing number of users of Wi‐Fi Access Points 34
  • 34.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Origin Destination Matrix Estimation Wi‐Fi based DISIT lab overview, January 2017, Florence
  • 35.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 Traffic Flow Tools • Spire and Virtual Spires (cameras), Bluetooth, .. • Specifically located: along, around, .. • Traffic Tuscany 36
  • 36.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 Traffic Flow reconstruction, real time http://firenzetraffic.km4city.org 37
  • 37.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Routing and Multimodal Routing • Pedonal • Veichles • Public Multimodal • Delivering Smart City Course, October 2018 38
  • 38.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Routing • Pedonal – Normal – Quite Smart City Course, October 2018 39
  • 39.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org App as data collection and User Engagement Smart City Course, October 2018 40
  • 40.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Km4City APP • Smart Parking, in Tuscany • Smart First Aid in Tuscany • Smart Public Transportation in  Tuscany • Smart Fuel pricing in Tuscany • Bike Sharing in Pisa • Weather condition in Tuscany • Pollution and Pollination in  Tuscany • Traffic Sensors in Tuscany • Smart Routing in Tuscany • Smart Transportation in Florence • Events, traffic, … • Entertainment Events in Florence Smart City Course, October 2018 41
  • 41.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 42
  • 42.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Social Media Analysis Smart City Course, October 2018 43
  • 43.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Twitter Vigilance • http://www.disit.org/tv • http://www.disit.org/rttv • Citizens as sensors  to – Assess sentiment on services,  events, …  – Response of consumers wrt…  – Early detection of critical  conditions  – Information channel – Opinion leaders  – Communities  – Formation – Predicting volume of visitors for  tuning the services  Smart City Course, October 2018 44
  • 44.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Prediction/Assessment • Football game results as related to the volume of Tweets • Number of votes on political elections,  via sentiment analysis, SA • Size and inception of contagious diseases • marketability of consumer goods  • public health seasonal flu  • box‐office revenues for movies  • places to be visited, most visited • number of people in locations like airports • audience of TV programmes, political TV shows • weather forecast information • Appreciation of services Smart City Course, October 2018 45
  • 45.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Twitter Vigilance Smart City Course, October 2018 Early Warning Predictive models Hot flows Attendance at long lasting events: EXPO2015 Attendance at recurrent events: TV, footbal 46
  • 46.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Visual Analytics and Dashboards Smart City Course, October 2018 47
  • 47.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 48
  • 48.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 49
  • 49.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Smart City Course, October 2018 50
  • 50.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org The Living Lab Approach Smart City Course, October 2018 51
  • 51.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Connect IOT/IOE Upload context   Open Data Connect external  Services Advanced Smart  City API Run Applications &  Dashboard  Monitor City Platform Life Cycle experiments workshops tutorials networking agreements events Start‐ups Research  groups City  Users City Operators Large  Industries collaborations Licensing,  Gold services personal services Case  Studies Inhouse  companies Resource Operators Tech  providers partnerships documentation Help desk Category  Associations Corporations Advertisers Community Building subscription to applications Produce City  Applications &  Dashboard  Promote  Applications &  Dashboards  Produce  Applications for City  Users Set Up: ETL & Data  Analytic algorithms Collaborative  Platform Early Adopters Snap4City Smart City Course, October 2018 52
  • 52.
    DISIT Lab, DistributedData Intelligence and Technologies Distributed Systems and Internet Technologies Department of Information Engineering (DINFO) http://www.disit.dinfo.unifi.it http://www.disit.org Mobile e Web Apps Tools for Final Users Km4City Smart City Engine Transport systems Mobility, parking Km4City Smart City API Public Services Govern, events, … Sensors, IOT Cameras, .. Environment,  Water, energy Social Media WiFi, network DISCES ‐‐Distributed and parallel architecture on Cloud  Shops, services,  operators Km4City Big Data Analytics Smartening Tools Development Tools Recommender Personal Assistant Http://www.km4city.org Smart Decision Support Twitter VigilanceServiceMap browser Analyzers of City User Behavior Dashboards City Operators and Decision Makers Smart City Course, October 2018 53
  • 53.
    IOT Directory Back Office Processes  IOT Broker IOT Broker IOT Broker IOT Broker ETL Process Data Analytics ETL Process ETL Process ETL Process Data Analytics Data Analytics Data Analytics Knowledge Base,  Km4City Smart City API from Knowledge Base and other tools Ontology SPARQL, FLINTLOG.disit.org ServiceMap ServiceMap3D Swagger MicroServices IOT ApplicationsWeb and Mobile AppsDISCES and back office management tools Smart City Course, October 2018 54 MicroApplications Resource Manager