proteus [h2020 - big data]

49
PROTEUS Scalable Online Machine Learning & Real-Time Interactive Visual Analytics Rubén Casado (Treelogic) @ruben_casado [email protected] This project is funded by the European Union. Horizon 2020

Upload: ruben-casado-tejedor

Post on 16-Apr-2017

1.547 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: PROTEUS [H2020 - Big Data]

PROTEUS

Scalable Online Machine Learning &

Real-Time Interactive Visual Analytics

Rubén Casado (Treelogic)

@ruben_casado

[email protected]

This project is funded

by the European Union.

Horizon 2020

Page 2: PROTEUS [H2020 - Big Data]

Academics

PhD in Software Engineering

MSc in Computer Science

BSc in Computer Science

Professional

Big Data & Analytics lead at Treelogic

Team lead of Lambdoop technology

Technical coordinator of H2020 PROTEUS project

Director of Master in Big Data Architecture at Kschool

Researcher and assistant professor at University of Oviedo (Spain),

Oxford Brookes University (UK) and INRIA/LORIA (France)

2

About me

Page 3: PROTEUS [H2020 - Big Data]

3

It all began with the three Vs:

Volume, Velocity and Variety

Page 4: PROTEUS [H2020 - Big Data]

4

PROTEUS is about the 4th V: Value

Page 5: PROTEUS [H2020 - Big Data]

5

PROTEUS is an EU H2020 funded research project to evolve massive

online machine learning strategies for predictive analytics and real-

time interactive visualization methods – in terms of scalability, usability

and effectiveness dealing with extremely large data sets and data

streams – into ready to use solutions, and to integrate them into

enhanced version of Apache Flink, the EU Big Data platform.

Page 6: PROTEUS [H2020 - Big Data]

6

PROTEUS is an EU H2020 funded research project to evolve massive

online machine learning strategies for predictive analytics and real-

time interactive visualization methods – in terms of scalability, usability

and effectiveness dealing with extremely large data sets and data

streams – into ready to use solutions, and to integrate them into

enhanced version of Apache Flink, the EU Big Data platform.

1. What is H2020?

2. Project details

3. Scalable online

machine learning

4. Real-Time Interactive

Visual Analytics

6. Use case validation:

Steal production

5. Apache Flink

Page 7: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEEL PRODUCTION

7. CONCLUSIONS

Page 8: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEEL PRODUCTION

7. CONCLUSIONS

Page 9: PROTEUS [H2020 - Big Data]

The EU's research and innovation funding programme (2014-2020). A

budget of just over €80 billion

Grants, not loans

EU members + exceptions

Academic & Research organizations, Industries and Entrepreneurs

A core part of Europe 2020, Innovation Union & European Research Area:

Responding to the economic crisis to invest in future jobs and growth

Addressing people’s concerns about their livelihoods, safety and environment

Strengthening the EU’s global position in research, innovation and technology

9

What is H2020?

H2020

Page 10: PROTEUS [H2020 - Big Data]

10

What is H2020?

Three priorities

Excellent science

World class science is the foundation of tomorrow’s technologies, jobs and well-being

Future and Emerging technologies, Research infrastructures, etc.

Mainly for academics institutions

Industrial leadership

Strategic investments in key technologies underpin innovation across existing and emerging sectors.

ICT, nanotechnologies, materials, biotechnology, manufacturing, space.

Societal challenges

Concerns of citizens and society /EU policy objectives (climate, environment, energy, transport etc.) cannot be achieved without innovation

Health, Food, Climate & Environment, Security, etc.

Industrial

leadership

H2020

Page 11: PROTEUS [H2020 - Big Data]

11

What is H2020?

Industrial leadership - ICT

A new generation of components and systems

engineering of advanced embedded and resource efficient components and systems

Next generation computing

advanced and secure computing systems and technologies, including cloud computing

Future Internet

software, hardware, infrastructures, technologies and services

Content technologies and information management

ICT for digital content, cultural and creative industries

Advanced interfaces and robots:

robotics and smart spaces

Micro- and nanoelectronics and photonics:

key enabling technologies

Industrial

leadership

H2020

ICT

Page 12: PROTEUS [H2020 - Big Data]

12

What is H2020?

Content technologies and information management

Addresses:

Big Data with focus on both innovative data products and services and solving research problems

Machine translation in order to overcome barriers to multilingual online communication

Tools for creative, media and learning industries in order to mobilize the innovation potential of SMEs active in the area

Multimodal and natural computer interaction

Organised in eight calls:

Big Data and Open Data innovation and take-up

Big Data research

Cracking the language barrier

Support to the growth of ICT innovative creative industries SMEs

Technologies for creative industries, social media and convergence

Technologies for better human learning and teaching

Advanced digital gaming/gamification technologies

Multimodal and natural computer interaction

Industrial

leadership

H2020

Content technologies

and information management

ICT

Page 13: PROTEUS [H2020 - Big Data]

13

What is H2020?

ICT-16-Big Data Research call

(…) Collaborative projects to develop novel data structures, algorithms,methodology, software architectures, optimisation methodologies andlanguage understanding technologies for carrying out data analytics, dataquality assessment and improvement, prediction and visualization tasks atextremely large scale and with diverse structured and unstructured data. Ofspecific interest is the real time cross-stream analysis of very large numbers ofdiverse, and, where appropriate, multilingual, multimodal data streams (…)

H2020 statistics

Based on the first 100 calls (2014)

31115 proposals submitted

4315 accepted 14% success rate

ICT statistics

Global FP7 ~25% success rate. FP7 ICT ~15% success rate

H2020 ICT ~10% success rate

H2020 ICT-16-Big Data ~150 proposals, ~10 accepted ~7% success rate

Industrial

leadership

H2020

Content technologies

and information management

BIG DATA

ICT

http://ec.europa.eu/programmes/horizon2020/en/news/horizon-2020-statistics-first-100-calls

Page 14: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEEL PRODUCTION

7. CONCLUSIONS

Page 15: PROTEUS [H2020 - Big Data]

15

Project details

2015 201820172016

2014:

Inception of project idea

Apr 15:

Proposal submission

Aug 15:

Notification of acceptance

Dic 15:

PROTEUS kick-off

Nov 18:

PROTEUS closing

Duration: 36 months

Life cycle

Page 16: PROTEUS [H2020 - Big Data]

16

Project details

Consortium

Coordinator

ICT company specialised on Big Data & Analyticssolutions

Creator of Lambdoop

ICT start-up specialised on streaming analytics

Cloud-based online machine learning as a Service

Evolution of Lambdoop

The world's leading integrated steel and mining company

End-user

Validation scenario

Big contributorto the Apache Flink project

Intelligent analytics for massive data

Scientific research

Academic

research

Focus on

online

predictive

analytics

Institute of

Data Science

Research consultancy

Ethical & Data management

Benchmarks and impact assessment

Consortium

Page 17: PROTEUS [H2020 - Big Data]

17

Project details

Partner contributions & complementarity and innovation chain

Page 18: PROTEUS [H2020 - Big Data]

18

Project details

Strategy

Page 19: PROTEUS [H2020 - Big Data]

19

Project details

Work Plan

Page 20: PROTEUS [H2020 - Big Data]

20

Project details

Outcomes

Hybrid processing

Stream processing engine

Declarative Language for batch & streams analytics

Scalable Online machine Learning

SOLMA Library

Real-time interactive Visual Analytics

Big Data visual guidelines

Web charts library

Incremental engine

Business Impact

Integration in Apache Flink

Validation in realistic industrial use case

Generic KPIs and benchmarks for technology evaluation

Page 21: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEAL PRODUCTION

7. CONCLUSIONS

Page 22: PROTEUS [H2020 - Big Data]

22

Scalable Online Machine Learning

What is Machine Learning (ML)?

It is programming computers to perform an action using example data or past experience learn from and make predictions on data

It is used when:

Human expertise does not exist (e.g. navigating on Mars)

Humans are unable to explain their expertise (e.g. speech recognition)

Solution changes in time (e.g. routing on a computer network)

Solution needs to be adapted to particular cases (e.g. user biometrics)

Page 23: PROTEUS [H2020 - Big Data]

23

Scalable Online Machine Learning

ML Terminology

Observations: Items or entities used for learning or evaluation (e.g., emails)

Features: Attributes (typically numeric) used to represent an observation (e.g.

length, date, presence of keywords)

Labels: Values / categories assigned to observations (e.g., spam, not-spam)

Training and Test Data: Observations used to train and evaluate a learning

algorithm (e.g., a set of emails along with their labels)

Training data is given to the algorithm for training

Test data is withheld at train time

Page 24: PROTEUS [H2020 - Big Data]

24

Scalable Online Machine Learning

Types of ML

Supervised Learning: Learning from labelled observations

Classification

Regression / Prediction

Recommendation

Unsupervised Learning: Learning from unlabelled observations. Learning

algorithm must find latent structure from features alone.

Clustering

Dimensionality Reduction

Anomaly detection

Others

Reinforcement learning

Semi-supervised learning

Active learning

Page 25: PROTEUS [H2020 - Big Data]

25

Scalable Online Machine Learning

ML: Why now?

Big Data

Flood of data available

Internet, Smartphones, IoT, etc.

Higher performance of computer

Larger memory in handling the data

Greater computational power for calculating

Growing progress in available algorithms and theory developed by researchers

Increasing support from industries

Filter spam

Customer segmentation

Web advertising

Face recognition

Product recommendation

Fraud detection

Page 26: PROTEUS [H2020 - Big Data]

26

Scalable Online Machine Learning

ML challenge: Scalability

Classic ML techniques are not always suitable for modern datasets

Data grows faster than Moore’s Law

Example:

Least Squares Regression: Learn mapping (w) from features to labels that minimizes

residual sum of squares

Closed form solution (if inverse exists)

Computational bottlenecks

Matrix multiply of operations

Matrix inverse: operations

Storage bottlenecks

and it is inverse: floats

floats

Other methods have similar complexity

Page 27: PROTEUS [H2020 - Big Data]

27

Scalable Online Machine Learning

ML challenge: Data Streams

Current state of the art of machine learning algorithms for Big Data is

dominated by offline learning algorithms that process data-at-rest.

Plenty of current data sources are streaming (online, data-in-motion): sensors,

social networks, clickstream, etc.

In online learning, the algorithms see the data only once. The traditional

meaning of online is that data is processed sequentially one by one but for

many epochs.

Page 28: PROTEUS [H2020 - Big Data]

28

Scalable Online Machine Learning

We need scalable methods(using parallel & distributed computing) that

are linear in time and space

We need algorithms able to adapt complex and fast-changing

environment to deal with online data and evolving concepts

SOLMA: Scalable Online Machine Learning and Data Mining Algorithms

Efficient distributed online algorithms for basic utilities, sketches.

Advanced online predictive analytics for various tasks like classification,

clustering, regression, ensemble methods, and novelty and change detection

Page 29: PROTEUS [H2020 - Big Data]

29

Scalable Online Machine Learning

PROTEUS contribution: SOLMA

User-friendly

Extensibility

Basic scalable stream sketches that enable to query the stream

Iterative algorithms for approximating the outcome of offline computation

Ready-to-use (supervised & unsupervised) online ML algorithms in Apache Flink

Page 30: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEEL PRODUCTION

7. CONCLUSIONS

Page 31: PROTEUS [H2020 - Big Data]

31

Real-time Interactive Visual Analytics

How does Big Data change the nature of data visualization?

We use the same charts since 70s! Tukey’s Exploratory Data Analysis book

Streams Data-in-motion

Temporal context

Source, space, relevance, etc.

How to deal with data interaction in Big Data?

Data-at-rest batch processing

O(nx) when n is huge Not real-time interaction!

Data-in-motion streaming processing

Loss of context

Machine Learning and interactive visualization

The combination of human intuition and input using interactive techniques produce better models than automatic techniques

Visualization paradigms would help to explain the behavior of the algorithms

Page 32: PROTEUS [H2020 - Big Data]

32

Real-time Interactive Visual Analytics

PROTEUS contribution

Definition of new ways of presenting information in order to make the

knowledge derived from extremely large and/or streaming data valuable and

actionable.

Design and implementation of a new software architecture on top of Apache

Flink using an incremental approach to achieve low-latency advanced

visualizations and interactions.

Development of ready-to-use novel web-based visualization library seamless

integrated with the proposed architecture implementing the defined Big Data

visualization guidelines for disruptive changes in the visual analysis of data.

Page 33: PROTEUS [H2020 - Big Data]

33

Real-time Interactive Visual Analytics

Data collector: in charge of iteratively getting new data from data

sources (both static and streaming)

Incremental Analytics engine: incremental partial results in ~ O(1)

Visualization Layer: web-based library seamlessly connected to the

Incremental Analytics engine

Page 34: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEEL PRODUCTION

7. CONCLUSIONS

Page 35: PROTEUS [H2020 - Big Data]

35

What is Apache Flink?

Apache Flink is a Big Data open source platform for scalable

batch and stream data processing

Started in 2009 by the Berlin-based database research groups

(Stratosphere project)

Accepted as Apache Incubator project in April 2014.

Become Apache Top-Level project since December 2014.

About 120 contributors, highly active community

Page 36: PROTEUS [H2020 - Big Data]

36

What is Apache Flink?

Massive parallel data flow engine with unified batch and stream

processing

Batch (DataSet) and Stream (DataStream) APIs on top of a streaming engine

Rich set of operators (including native iteration)

Map, Reduce, Join, CoGroup, Union, Iterate, Delta Iterate, Filter, FlatMap, GroupReduce, Project, Aggregate, Distinct, Vertex-Update, Accumulators, …

Programming APIs for Java and Scala (Python upcoming)

Flink Optimizer

Inspired by optimizers of parallel database systems

Physical optimization follows cost ‐based approach

Memory Management

Flink manages its own memory

Never breaks the JVM heap

Page 37: PROTEUS [H2020 - Big Data]

37

Apache Flink in the Big Data ecosystem

Applications

Data processing

engines

App & resource

management

Storage & streams

YARN

Page 38: PROTEUS [H2020 - Big Data]

38

Apache Flink examples

Batch Wordcount

Stream windowed Wordcount

Page 39: PROTEUS [H2020 - Big Data]

39

Apache Flink comparison

API low-level high-level high-level

Data Transfer batch batch pipelined & batch

Memory Management

disk-based JVM-managed Active managed

Iterationsfile system

cachedin-memory

cached streamed

Fault tolerance task level task level job level

Good at massive scale out data explorationheavy backend &

iterative jobs

Libraries many external built-in & externalevolving built-in &

external

Batch processing

Streaming “true” mini batches “true”

API low-level high-level high-level

Fault tolerance tuple-level ACKs RDD-based (lineage)coarse

checkpointing

State not built-in external internal

Exactly once at least once exactly once exactly once

Windowing not built-in restricted flexible

Latency low medium low

Throughput medium high high

Streaming processing

Page 40: PROTEUS [H2020 - Big Data]

40

Why Apache Flink is good for PROTEUS?

Hybrid batch/streaming engine

Easy to develop hybrid architectures (e.g. Lambda & Kappa) suitable for the

online machine learning algorithms and incremental engine

Native support for iterations

Better performance for incremental updates (models & partial results)

Easy to use for end-users

Little tuning or configuration required

EU technology

Avoid dependency from US IT companies

Lambda Architecture in Apache Flink Kappa Architecture in Apache Flink

Page 41: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEEL PRODUCTION

7. CONCLUSIONS

Page 42: PROTEUS [H2020 - Big Data]

42

Steel Industry: Hot Strip Mill

Steel industry is a key sector for the European economy

Second largest producer in the world, ~ 11% of global output

Steel life-cycle

From material extraction to usage (and recycling)

Steel production

From slabs to coils

Hot Strip Mill

Heats the material 1200º C

Laminate the material high pressure

Real-time sensors to control the process

Coil parameters steel quality

Thickness

Width

Flatness measurement

Page 43: PROTEUS [H2020 - Big Data]

43

Steel Industry: Hot Strip Mill

Page 44: PROTEUS [H2020 - Big Data]

44

Steel Industry: Hot Strip Mill

Preheating furnace Breaking-down mil

Page 45: PROTEUS [H2020 - Big Data]

45

Hot Strip Mill: needs

Predict coil parameters (thickness, Width, Flatness) using massive streaming

real-time data generated during the Hot Strip Mill process

The sooner defects are detected, the sooner the process can be modified

It is necessary to deal with a continuous learning process as steel composition

varies continuously, and so does its mechanical behaviour

Most of steel grades produced in 2015 did not exist five years earlier

Lack of data due to sensor malfunction

Visualization methods for understanding the process

Compare online data with massive historical data

Objective: achieve a reduction of 20% of defections coils and reducing

rejected material by 15%

Page 46: PROTEUS [H2020 - Big Data]

46

Hot Strip Mill: Big Data scenario

Page 47: PROTEUS [H2020 - Big Data]

CONTENTS

1. WHAT IS H2020?

2. PROJECT DETAILS

3. SCALABLE ONLINE

MACHINE LEARNING

4. REAL-TIME INTERACTIVE

VISUAL ANALYTICS

5. APACHE FLINK

6. USE CASE VALIDATION:

STEAL PRODUCTION

7. CONCLUSIONS

Page 48: PROTEUS [H2020 - Big Data]

48

Conclusions

PROTEUS is an EU H2020 international research project

PROTEUS will contribute to the Big Data ecosystem with:

An innovative hybrid engine for processing both data-at-rest and data-in-motion

SOLMA: An new library for scalable online machine learning

Big Data Visual guideless: new ways of presenting and working with Big Data

Real-time interactive visualization technology: Incremental engine & web-based library

PROTEUS will be part of the Apache Flink community

PROTEUS will validate their innovations in a realistic industrial scenario

PROTEUS will provide full-scale evaluation and impact assessment including

benchmarks, KPIs and anonymized datasets

Specific metrics for the ArcelorMittal use case

Generic indicators on the advancements in scalable machine learning, hybrid computation and real-time interactive visual analytics.

Page 49: PROTEUS [H2020 - Big Data]

49

Thanks for your attention!

Questions?

Contact us:

Rubén Casado Tejedor

[email protected]

@ruben_casado

www.treelogic.com

www.proteus-bigdata.com