Top Banner
Delivering near real-time mobility insights at Swisscom François Garillot [email protected] @huitseeker
33

Delivering near real time mobility insights at swisscom

Jan 23, 2018

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Delivering near real time mobility insights at swisscom

Delivering near real-time mobilityinsights at Swisscom

François [email protected]

@huitseeker

Page 2: Delivering near real time mobility insights at swisscom

AgendaIntroSmart-DataBig Data ArchitectureStreamingData challenges

Page 3: Delivering near real time mobility insights at swisscom

Introduction : Positioning

Page 4: Delivering near real time mobility insights at swisscom

Positioning users in a modernnetwork

no radio-goniometer at scalecell of attachment has position, beam characteristicsover history, best position ~200m

Page 5: Delivering near real time mobility insights at swisscom

Positioning at specific locations

handovers at specific cell-to-cell locationphone needs to be active

Page 6: Delivering near real time mobility insights at swisscom

Positioning with more precision

better positioning with excellent data sources:3G : GPEH4G: LTE-CTR

Page 7: Delivering near real time mobility insights at swisscom

Trajectorydata miningtime series reconstructiontrajectory segmentationmap matching, clusteringmode of transport detection...

Page 8: Delivering near real time mobility insights at swisscom

How to create value withpositioning at Swisscom ?

with competitive analytics & data sources,and by making sure it embodies the right values.

Page 9: Delivering near real time mobility insights at swisscom

Smart Data

Page 10: Delivering near real time mobility insights at swisscom

On (not) tracking (any users) "Swisscom strictly complies with all applicable legislations, inparticular with the telecommunications law and the dataprotection initiative."

Jürg Studerus, Swisscom Senior Manager, Corporate Responsibility

Page 11: Delivering near real time mobility insights at swisscom

Smart Data : Big Data without Big BrotherPrivacy preservation is an assetIt makes sense to care as much about your customer as they do about you.

We technically enforce thisanswering only synoptic questions, no individual ones,with data flow control : we neutralize quasi-identifiers at every stage

Page 12: Delivering near real time mobility insights at swisscom

Swisscom mobile subscribers

source: xavierstuder.com, MD\&A reports

Page 13: Delivering near real time mobility insights at swisscom

Our choicespublic good applications: making Switzerland run better,understanding places, not individuals,all results presented aggregated, anonymized.

Page 14: Delivering near real time mobility insights at swisscom

Markets

Page 15: Delivering near real time mobility insights at swisscom

A first product : City

"It's a dream for civil engineers" -- Alexandre Machu, Urbansystems engineer, Pully

Page 16: Delivering near real time mobility insights at swisscom

Demo time

Page 17: Delivering near real time mobility insights at swisscom

UsagesNew roads to divert transit traffic out of downtown (informs a 50M$project)Parking lot expansion and transformation (informs a 10M$ project)Electric car charging station deployment

Page 18: Delivering near real time mobility insights at swisscom

Big Data architecture

Page 19: Delivering near real time mobility insights at swisscom

In the backend

Page 20: Delivering near real time mobility insights at swisscom

Spark configuration essentials for enterprisejobs

spark.executor.memory="not the default 1g" spark.kryo.registrator="something custom" // and companions spark.shuffle.service.enabled="true" spark.dynamicAllocation.enabled="true" spark.deploy.recoveryMode="ZOOKEEPER" spark.deploy.recoveryDirectory="/path/to/state" spark.deploy.zookeeper.url="quorumMachine1:2181, ..."

NOT the only valuable settings, see https://techsuppdiva.github.iofor more

Page 21: Delivering near real time mobility insights at swisscom

See Also

Page 22: Delivering near real time mobility insights at swisscom

In the front-end

Page 23: Delivering near real time mobility insights at swisscom

Scala (1/2)type ChronoHistory = List[UEupdate] @@ Chronological type AnteChronoHistory = List[UEupdate] @@ AnteChronological implicit class Chrono(l: List[UEupdate]) { def asChrono: ChronoHistory = { chronoCheck(l) l.asInstanceOf[ChronoHistory] } def asAnteChrono: AnteChronoHistory = { anteChronoCheck(l) l.asInstanceOf[AnteChronoHistory] } }

Page 24: Delivering near real time mobility insights at swisscom

Scala (2/2)implicit def reverseChrono(l: ChronoHistory): AnteChronoHistory = l.reverse.asAnteChronoimplicit def reverseAnteChrono(l: AnteChronoHistory): ChronoHistory = l.reverse.asChrono

Page 25: Delivering near real time mobility insights at swisscom

Streaming Analytics

Page 26: Delivering near real time mobility insights at swisscom

Selecting users on a path of Interest

Massive discrepancy between # of users (2-3E6)and # of interesting users (1.5E3 on test segments)Filtering interesting time series.

Page 27: Delivering near real time mobility insights at swisscom

Graph matching

Page 28: Delivering near real time mobility insights at swisscom

Locality-sensitive hashing short historiesA family H of hashing functions is -sensitive if:(r, cr, , )p1 p2

if then if then

p– q } r P [h(q) = h(p)] ~rH p1

p– q ~ cr P [h(q) = h(p)] }rH p2

More :Locality Sensitive Hashing By Spark, Uber, Spark SummitA Gentle Introduction to Locality-Sensitive Hashing with Apache Spark,Scala by The Bay

Page 29: Delivering near real time mobility insights at swisscom

Computing speeds: Solving graphconstraints

a speed comes from a user well-positioned, twiceplus route knowledgegiven a history of cells, where was the user, exactly ?

Page 30: Delivering near real time mobility insights at swisscom

Solving graph constraints

just a few users left in computation at this stageso a lot invested in > linear complexity algorithms

Page 31: Delivering near real time mobility insights at swisscom

Data Challenges

Page 32: Delivering near real time mobility insights at swisscom

Crucial elementsQuality, reliability of data sourcesAutomated ground truth checking

sensorsTEMS fleet

What's the ground truth for mode of transport, domicile, etc ?Colleagues and friends volunteers

Page 33: Delivering near real time mobility insights at swisscom

In the worksAccuracy improvementsMore features (see you Spark Summit EU!)Streaming for city

Thank you