py conie 2014

33
FROM BLACK BOX TO BLACK MAGIC Daniele Trainini Lovera Gloria I)Y*>!. j !q)y j *+mph 3 )q)y j ** > !!!!!!m!!!!b z ! !!!!!⅞,⅞! !!!!!S!!!!h )!!!!!!* 53 1

Upload: gloria-lovera

Post on 15-Jun-2015

77 views

Category:

Data & Analytics


4 download

TRANSCRIPT

Page 1: Py conie 2014

FROM BLACK BOX TO BLACK MAGIC

Daniele Trainini Lovera Gloria

1

Page 2: Py conie 2014

Automotive Sensor Market Worth $35.78 Billion by 2022

2

Page 3: Py conie 2014

VIRTUAL SENSORS3

Page 4: Py conie 2014

WHY MACHINE LEARNING?

Page 5: Py conie 2014

20/50 ENGINE SIGNALS

Page 6: Py conie 2014

Data gathering

Raw Data

TEST

Data storage

Data analysis

Features selection

Data preprocessing

Model Selection

Results analysis

Experiments

Params calibration

WORKFLOW

DB

Page 7: Py conie 2014

Data analysis

Features selection

Data preprocessing

Fx and Fy as functions of the longitudinal slip “k” and side slip angle β

k_slip

Fx [N]

Fy [N]

Page 8: Py conie 2014

Clean Noisy

Data analysis

Features selection

Data preprocessing

• Noisy signals • Quantization errors • Missing data

Page 9: Py conie 2014

Random irrelevant patterns

ML Model : “Grey cars are very fast!”

Page 10: Py conie 2014

Random irrelevant patterns

ML Model : “ ??? ”

Page 11: Py conie 2014

CONVENTION DOESN’T EXIST

wheel rad

24,5[cm]9,65[inch]

330[km/h]205[mph]

Page 12: Py conie 2014

BELFAGOR : OUR PREPROCESSING TOOL

Page 13: Py conie 2014
Page 14: Py conie 2014

Data analysis

Features selection

Data preprocessing

Samples distinguishibility

features nr.

Curse of dimensionality

Features ranking

Page 15: Py conie 2014

Raw features

Engineers features

Scikit-Learn Chi2, Variance

Threshold, …

Scikit-Learn ensemble methods,

SVM

Wrappers features selection

Scikit-Learn metrics

Statistical features selection

Proprietary algorithms

Domain knowledge

Data analysis

Features selection

Data preprocessing

Page 16: Py conie 2014

Data analysis

Features selection

Data preprocessing Wrappers

features selection SVM

Page 17: Py conie 2014

Data analysis

Features selection

Data preprocessing

SVM example: Evaluate speed and steer signals as

features subset for Yaw Rate classification

Page 18: Py conie 2014

Data analysis

Features selection

Data preprocessing

SVM example: Evaluate speed and battery current

signals as features subset for Yaw Rate classification

Page 19: Py conie 2014

Model Selection

Params calibration Neural Networks

x1

x2∑ | yw2

w1

Neuron/Perceptron

Page 20: Py conie 2014

Model Selection

Params calibration

Neural Networks example: Yaw Rate classification

x1

x2 y

h5

h4

h3

h2

h1

b1

b2

class 0 = yawr < -3 class 1 = yawr >=-3

Page 21: Py conie 2014

Model Selection

Params calibration

Neural Networks example: Yaw Rate classification

class 0 = yawr < -3 class 1 = yawr >=-3

x = class 0 x = class 1

x = correct x = error

Labels Predictions

Page 22: Py conie 2014

Deep Neural Networks

Page 23: Py conie 2014

class = 1 class = 0

class = 1 f11 f10

class = 0 f01 f00

CONFUSION MATRIX

Predicted class

True class

Accuracy = # of correct predictions / # of predictions = (f11 + f00) / (f11 + f10 + f01 + f00)

Error rate = # of wrong predictions / # of predictions = (f10 + f01) / (f11 + f10 + f01 + f00)

RESULTS EVALUATION

Page 24: Py conie 2014

WHERE WE WERE

24

Page 25: Py conie 2014

DISTORTION

“One Tool to rule them all, !

One Tool to find them,!

One Tool to bring them all !

and in the BlackBox correlate them”

25

Page 26: Py conie 2014

Adapter

DISTORTION MAP

Data Uploader

Job Manager

Worker[s]

Algorithms API

26

Page 27: Py conie 2014

JOB MANAGER

27

Page 28: Py conie 2014

JOB MANAGER

28

Page 29: Py conie 2014

WHY ?

RELATIONAL PL

OPEN TRIGGER

VIEW

29

Page 30: Py conie 2014

WHY PYTHON?

• it’s awesome

30

Page 31: Py conie 2014

E M B E D D E D

Resources Optimization Processor Specific Tuning Multi-Core & Polyedrical Optimization Microprocessors and FPGA Targets !SW in-the-loop HW in-the-loop

31

Page 32: Py conie 2014

WHAT’S FOR THE FUTURE…• Libraries versions management (e.g. ANACONDA virtual env.)

• Data/Results analysis tools

• More Design of Experiment

• Some technical details:

• preemption management

• data caching in worker module

• Suggestions?

32

Page 33: Py conie 2014

Questions?

it.linkedin.com/in/dani84bs/it

@Dani84bs

it.linkedin.com/pub/gloria-lovera/5b/152/4a8/

@LoveraGloria