AI for business: Capire l'opportunità

51
ML Meetup AI for business: Capire l'opportunità [email protected]

Transcript of AI for business: Capire l'opportunità

Page 1: AI for business: Capire l'opportunità

ML MeetupAI for business: Capire l'opportunità

[email protected]

Page 2: AI for business: Capire l'opportunità

Simone, Gianluca e NicolòEntrepreneur and Statistiscian, Engineer, Self-driving car Engineer

Page 3: AI for business: Capire l'opportunità

About me:Engineering -> Entrepreneurship -> Data Science

[email protected]

Page 4: AI for business: Capire l'opportunità

"L'hype da AI"

Page 5: AI for business: Capire l'opportunità
Page 6: AI for business: Capire l'opportunità

"L'hype da AI"

Page 7: AI for business: Capire l'opportunità

"L'hype da AI"

Page 8: AI for business: Capire l'opportunità

Perché AI?Perché ora?

Page 9: AI for business: Capire l'opportunità

Un po' di storia: Dartmouth, 1956

Page 10: AI for business: Capire l'opportunità

What is intelligence?“The true sign of intelligence is not knowledge but

imagination”

Albert Einstein

Page 11: AI for business: Capire l'opportunità

AI: generale vs ristretta

Page 12: AI for business: Capire l'opportunità

Prima applicazione di AI ristretta:English-Russian translator

Page 13: AI for business: Capire l'opportunità
Page 14: AI for business: Capire l'opportunità

Risultati:English:"The spirit is strong, but the flesh is weak"After English - Russian > Russian - English:"The whiskey is strong, but the meat is rotten"

Page 15: AI for business: Capire l'opportunità

Primo "AI Winter" (1966 ~ 1980s):No potenza di calcolo.

No dati.

No metodi.

Page 16: AI for business: Capire l'opportunità

Secondo "AI spring":I sistemi esperti

Page 17: AI for business: Capire l'opportunità

Problemi Expert Systems:Costosi da realizzare

Molto settorializzati

Scarsa capacità di generalizzazione

Page 18: AI for business: Capire l'opportunità

Un "nuovo" approccio: il Machine Learning

Page 19: AI for business: Capire l'opportunità

What is Machine Learning?«A computer program is said to learn from

experience E with respect to some class of tasks Tand performance measure P if its performance at

tasks in T, as measured by P, improves withexperience E»

Page 20: AI for business: Capire l'opportunità

Funziona?"If one could devise a successful chess machine, onewould seem to have penetrated to the core of human

intellectual endeavor"

Allen Newell, 1958

Page 21: AI for business: Capire l'opportunità

Deep Blue vs Garry Kasparov,1997

Page 22: AI for business: Capire l'opportunità

Deep Learning: un nuovo (ultimo?) "AI spring"

Page 23: AI for business: Capire l'opportunità

Deep Learning: un nuovo (ultimo?) "AI spring"

Page 24: AI for business: Capire l'opportunità

Deep Learning: un nuovo (ultimo?) "AI spring"

Page 25: AI for business: Capire l'opportunità

Deep Learning: un nuovo (ultimo?) "AI spring"

"It may be a hundred years before a computer beatshumans at ’Go’, maybe even longer"

The New York Times, 1997

Page 26: AI for business: Capire l'opportunità

Alpha go vs Lee Sedol, 2016"Master of Go Board Game Is Walloped by Google

Computer Program."

The New York Times, 2016

Page 27: AI for business: Capire l'opportunità

Deep Learning & ReasoningLevel = Superhuman

Page 28: AI for business: Capire l'opportunità

Deep Learning & Computer visionLevel = Superhuman

Page 29: AI for business: Capire l'opportunità
Page 30: AI for business: Capire l'opportunità

Deep Learning & Voice RecognitionLevel = Same as human

Page 31: AI for business: Capire l'opportunità
Page 32: AI for business: Capire l'opportunità

Deep Learning & Speech SynthesisLevel = Close to human

Page 33: AI for business: Capire l'opportunità

Perchè ora?

Page 34: AI for business: Capire l'opportunità

AlgoritmiRumelhart et Al., Learning representations by back-propagating errors.1986Corinna Cortes and Vladimir Vapnik. Support-vector networks. 199550+ nuovi paper al giorno su arxiv.

Page 35: AI for business: Capire l'opportunità

Strumenti open sourceScikitTensorflowCaffeKerasTheano

Page 36: AI for business: Capire l'opportunità

Strumenti in pratica: dante-botdef build_graph(batch_size, seq_len, vocab_size, rnn_size): x = tf.placeholder(tf.int32,[batch_size, seq_len]) y = tf.placeholder(tf.int32,[batch_size, seq_len]) cell = rnn_cell.GRUCell(rnn_size) init = cell.zero_state(batch_size, tf.float32) embeddings = tf.get_variable('embedding_matrix',[vocab_size, rnn_size])

rnn_inputs = tf.nn.embedding_lookup(embeddings, x) rnn_outputs, final_state = tf.nn.dynamic_rnn(cell, rnn_inputs, initial_state = init)

with tf.variable_scope('softmax') as scope: W = tf.get_variable('W',[rnn_size, vocab_size]) b = tf.get_variable('b',[vocab_size], initializer=tf.constant_initializer(0.0))

rnn_outputs = tf.reshape(rnn_outputs, [-1, rnn_size]) y_ = tf.reshape(y, [-1]) logits = tf.matmul(rnn_outputs, W) + b

predictions = tf.nn.softmax(logits) cross_entropy = tf.nn.sparse_softmax_cross_entropy_with_logits(logits, y_) loss = tf.reduce_mean(cross_entropy)

train_step = tf.train.AdamOptimizer(learning_rate).minimize(loss)

Page 37: AI for business: Capire l'opportunità

Dati disponibili

Page 38: AI for business: Capire l'opportunità
Page 39: AI for business: Capire l'opportunità

Prezzo storage dati

Page 40: AI for business: Capire l'opportunità

Potenza computazionale disponibile

Page 41: AI for business: Capire l'opportunità

Prezzo CPU

Page 42: AI for business: Capire l'opportunità

"Many of the papers, data sets, and software toolsrelated to deep learning have been open sourced.[...] Software tools like Theano and TensorFlow,

combined with cloud data centers for training, andinexpensive GPUs for deployment, allow small teamsof engineers to build state-of-the-art AI systems."

Chris Dixon, A16Z partner

Page 43: AI for business: Capire l'opportunità

Come rispondono gliinvestitori?

Page 44: AI for business: Capire l'opportunità
Page 45: AI for business: Capire l'opportunità

Come rispondono le corporate?

Page 46: AI for business: Capire l'opportunità
Page 47: AI for business: Capire l'opportunità

Social: Pinterest deep-learning-powered reccommender: +30% repinsEcommerce: The Clymb ha avuto +175% revenue/1000 promo email,-72% churn (HBR)Customer service: 85% interazioni senza interazione umana nel 2020(Gartner).

Page 48: AI for business: Capire l'opportunità

Marketing & sales: 76% delle aziende che usano ML hanno aumentato leproprie revenue (Accenture)Fintech: Banche che usano ML per promuovere prodotti ottengono +10%sales e -20% churn (Accenture).Ingegneria: Sight ha ridotto downtime macchine 50% e aumentatoperformance del 25%...

Page 49: AI for business: Capire l'opportunità

Conclusioni"AI is the new electricity. Just as 100 years ago

electricity transformed industry after industry, AIwill now do the same."

Andrew Ng, Chief Scientist at Baidu

Page 50: AI for business: Capire l'opportunità

È il momento di passare da "ML as a product" a"ML as a feature".

Page 51: AI for business: Capire l'opportunità

Q&A