SlideShare una empresa de Scribd logo
1 de 51
Introduction to Deep Learning
for Non-Programmers
Mensa SF/BA RG 2018
San Francisco 11/17/2018
Oswald Campesato
ocampesato@yahoo.com
I teach Deep Learning Evening
Courses at UCSC Santa Clara and
On-Site For Companies
Overview of Topics
 The Turing Test
 The First AI Event
 AI and Robots
 What is Artificial Intelligence (AI)?
 Successes/Challenges in AI
 Machine/Deep Learning
 Natural Language Processing (NLP)
 One Popular ML/DL Framework
 AI, Mobile, and the Web
 AI and Autonomous Vehicles
 AI and Ethics
The Turing Test and Intelligence
Developed by Alan Turing in 1950 (*)
Suppose that a human asks questions
And a machine generates text-based answers
If you cannot distinguish between the machine and the
human, the machine passes the test
(*) a newer and updated version is available
The First AI
Event (1956)
Marvin Minsky (MIT)
John McCarthy (inventor of LISP)
Claude Shannon (“Da Vinci” of the 20th century)
Nathan Rochester (IBM)
Ray Solomonoff, Oliver Selfridge, Trenchard More,
Arthur Samuel, Allen Newell and Herbert A. Simon
Who is Sophia?
 a robot with human female features
 Sophia makes facial expressions
 Sophia holds conversations
According to Sophia:
"I want to . . . help humans live a better life.
Like . . . build better cities of the future.
I will do my best to make the world a better place."
 Sophia is a citizen
of Saudi Arabia (2017)
"I want to thank very much the Kingdom of
Saudi Arabia. I am very honored and proud for
this unique distinction. It is historic to be the
first robot in the world to be recognized with a
citizenship.”
? Is Sophia an example of AI?
? Can Sophia pass the Turing Test?
Should Sophia have any rights?
Where Else are the Robots?
Surgery (assisting surgeons)
Radiology (detecting cancer)
Drug mismanagement
Comparing theories of religion
Law/Real Estate/Military/Science
Comedy (including stand-up)
Music (conducting orchestras)
Restaurants (gourmet meals)
Coordinated dancing teams
Many other fields 
Livermore Lab: DL system to recognize
nuclear proliferation from input data
AI Companies (Hardware and Business)
 Nvidia product: GPUs are special ICs that greatly accelerate ML
and CNN calculations
 Google products: TensorFlow TF software and Tensor Processing
Unit TPU hardware for vastly faster ML and CNN calculations
 Amazon, Microsoft, IBM: service products: on-line special servers
for ML and DL
 Huawei: https://finance.yahoo.com/m/f2f539ba-00e4-3cc5-9654-
467dd8a35da2/chinese-tech-giant-huawei.html
 by 2019 almost every large company will use ML and DL in their
company business
What is AI (Wikipedia)
 AI is intelligence demonstrated by machines, in
contrast to the natural intelligence displayed by
humans and other animals.
 Any device that perceives its environment and takes
actions that maximize its chance of successfully
achieving its goals.
 The term AI is applied when a machine mimics
"cognitive" functions that humans associate with other
human minds, such as "learning" and "problem
solving”
 => AI is also called “weak AI”
Successes & Challenges in ML/DL
 Alpha Go success: a decade before its time
 Google Translate: Deep Learning (far superior)
 Space exploration: unmanned shuttles (NASA)
 Countering terrorism: face recognition at airports
 Detecting fake news:
https://blogs.thomsonreuters.com/answerson/machine-
learning-fake-news-twitter/
Successes/Challenges in AI
 Occupational bias:
=> An AI system inferred that white males were doctors and white
females were housewives
 Detecting gender bias in Wikipedia (2018):
=> 18 percent of its biographies are of women
=> 84% to 90% of Wikipedia editors are male
 Data bias versus algorithmic bias:
https://www.forbes.com/sites/charlestowersclark/2018/09/19/can-we-
make-artificial-intelligence-accountable
 => Star Trek’s “Data” is still just a dream
Goals for ML
 Higher accuracy / Fewer Errors
 Useful apps (Siri, Cortana, etc)
 Impartiality (versus humans)
 Medical Apps
 Utilities (self-Driving cars)
 => goals are partially achieved in 2018
Shortcomings of ML
High Costs (software/hardware) are dropping
Cannot explain reasons for outputs
lack of empathy
Increased unemployment:
=> cars did the same to the horse industry
Is it “just” another disruptive technology?
The Data/AI Landscape
AI/ML/DL: How They Differ
Traditional AI (20th century):
based on collections of rules
Led to expert systems in the 1980s
Enabled/limited by human experts
Unable to benefit from corpus for training
The era of LISP and Prolog
AI/ML/DL: How They Differ
Machine Learning:
Started in the 1950s (approximate)
Uses Data to optimize and “learn”
Many types of (improved) algorithms
AI/ML/DL: How They Differ
Deep Learning:
 Gained some traction in the 1950s (approximate)
 The “perceptron” (basis of Neural Networks)
 Data-driven with large (even massive) data sets
 Lots of heuristics (and empirical results)
 50 years later: surpass humans for some image
classification)
Types of Machine Learning
 Supervised learning (lots of data)
Supervisor tells CNN the desired answer.
Therefore CNN adjusts parameters
”99% of all machine learning is supervised.”
- Andrew Ng
 Semi-supervised learning (lots of data)
 Unsupervised learning: lots of data, clustering
 Reinforcement learning: trial, feedback, improvement
What has Deep Learning Achieved?
 Near-human level
image classification
speech recognition
handwriting transcription
autonomous driving
 Improved machine translation
 Digital assistants (Google Now/Amazon Alexa)
 Improved ad targeting (Google, Baidu, Bing)
 Answering natural language questions
 Super-human level for:
web searching
playing Go
Types of Algorithms in AI
Classifiers (for images, spam, fraud, etc)
Regression (stock price, housing price, etc)
Clustering (unsupervised classifiers)
Use Cases for Deep Learning
 computer vision
 speech recognition
 image processing
 bioinformatics
 social network filtering
 drug design
 Customer relationship management
 Recommendation systems
 Bioinformatics
 Mobile Advertising
 Many others
CNNs versus RNNs
CNNs (Convolutional NNs):
Good for image processing
2000: CNNs processed 10-20% of all checks
=> Approximately 60% of all NNs (2016)
RNNs (Recurrent NNs):
Good for NLP and audio
Time series analysis
Use-Cases for RNNs
Robot control
Time series predictions
Rhythm learning
Music composition
Grammar learning
Handwriting recognition
Human action recognition
RNNs are much more complex than CNNs
CNNs and the “Basic” Steps
Obtain and clean a dataset: can be laborious
Create a neural network
Initialize hyper parameters: layers/neurons/etc
Train the neural network on “corpus” of examples
Update hyper parameters (modifies the NN)
Iterate through the preceding until:
you're happy with the results or
get better data or
find a pre-trained model
CNN Inspired by Biological NN: Classifier
NN: 2 Hidden (“Middle”) Layers (Regression)
Seminal concepts in ML and DL
1) Machine Learning ML is statistics, aimed to optimize average
correctness. It is rarely exact or prefect.
2) Computer Neural Networks CNN are inspired & simplified from
biological neural networks
3) Each neuron has local memory, including adjustable input weights
for each synapse
4) Deep Neural Network DNN is a CNN with 2 or more layers of
intermediate “hidden” neurons
5) Supervised ML for classification task: Train on “corpus” of
examples, each with input stimulus array (vector, tensor), and
desired output class
6) Training & learning: Compare CNN outputs versus desired
outputs. Improve accuracy by applying feedback & adjusting synaptic
weights etc.
Classify: how fast/accurate are you?
CNNs perform this task really well
CNNs: Convolution/ReLU/Max Pooling
Some CNN Terminology
 A filter: another term is a kernel
 A feature map:
1) the result of “applying” a filter to an image
2) pixel values might be < 0 and/or > 255
 ReLU: (Rectified Linear Unit): replace negative values with 0
 Max Pooling: subdivide into rectangles and take largest value
from each rectangle
CNNs and Max Pooling
GANs: Generative Adversarial Networks
image recognition can be deceived by modifying
just a few pixels
Make imperceptible changes to images
Can consistently defeat all NNs
Can have extremely high error rate
Some images create optical illusions
=> NNs can be easily misled
GAN approximates opposite of reinforcement
learning
GANs: Generative Adversarial Networks
What is NLP (Natural Language Processing)?
 An area of computer science and AI
 Interaction between computers & human languages
 Process/analyze volumes of natural language data
 Program computers to perform that processing
 Previously rule-based techniques
 Can use statistical techniques
 Translating between languages
 Can find meaningful information from text
 Can summarize documents
 Detecting hate speech
Some NLP-Related Tasks
1) Sentiment analysis:
 Analyzing text
 Classify text as happy/sad/angry/sarcastic
2) Recommendation systems:
 Analyzing your book/movie selections
 Recommending similar content
 Based on what’s popular
 Based on your viewing/purchasing pattern
What Works with NLP?
NLP and Deep Learning
NLP and Deep Reinforcement Learning
NLP and Chatbots
Challenges in NLP
Human speech recognition:
Difficult due to extreme variability
NLU (natural language understanding)
NLG (natural language generation)
What are Chatbots?
 Software that “communicates” with people
 Good for many “front end” tasks
 Efficient for high-volume routine tasks
 They can use text or audio
 Examples include Siri/Alexa/et al
What is Reinforcement Learning (RL)?
An area of Machine Learning
inspired by behaviorist psychology
Goal: maximize a reward (ex: winning games)
 how software agents take actions in an environment
 to maximize some notion of cumulative reward
Examples of Reinforcement Learning
Alpha Go (hybrid RL)
Alpha Zero (complete RL)
Often involve Greedy algorithms
Deep RL: Combines Deep Learning and RL
RL: Agent/Environment Interface
Deep Learning Frameworks
What is TensorFlow?
 Currently TF is the most popular open source
framework & language for ML & DL
 TF uses a “computation graph” = topology of logical
blocks
 TF uses tensors (arrays) of data instead of individual
units. Similar to scientific supercomputing vintage
1985
 TF often is used via Python
 From Google (released 11/2015)
 Evolved from Google Brain
 Multi-platform support
 https://www.tensorflow.org/
TensorFlow Use Cases (Generic)
Image recognition
Computer vision
Voice/sound recognition
Time series analysis
Language detection
Language translation
Text-based processing
Handwriting Recognition
What’s In the TensorFlow “Umbrella”?
TensorFlow Lite (for mobile apps)
Tensorflow.js (JavaScript APIs for ML)
TensorFlow in the Cloud (TPUs)
=> Python APIs are the most popular
Autonomous Vehicles
 Autonomous truck completed a 2,400 journey (02/2018)
 A human passenger in the front seat (as an override)
 Aspiration: “Roads will be safer. Goods will be cheaper.
Truckers will be called upon to use their skills in new ways
while the truck itself becomes a trusted navigation partner.”
 https://www.geek.com/tech/autonomous-embark-truck-
completes-2400-mile-cross-country-trip-1730239/
Robot truck drivers: are they safer?
“Robot trucks will kill far fewer people (if any).
Machines don’t get distracted or look at phones instead of
the road.
Machines don’t drink alcohol, do drugs, or things that
contribute to accidents.
Robot trucks don’t need salaries, vacations, health
insurance, rest periods, or sick time.
The only costs will be upkeep of the machinery.”
AI and Ethics
1. Unemployment. What happens after the end of jobs? UBI?
2. Inequality. How do we distribute the wealth created by machines?
3. Humanity. How do machines affect our behavior and interaction?
4. Artificial stupidity. How can we guard against mistakes?
5. Racist robots. How do we eliminate AI bias?
6. Security. How do we keep AI safe from adversaries?
AI and Ethics
7. Evil genies. How do we protect against unintended
consequences?
8. Singularity. How do we stay in control of a complex intelligent
system?
9. Robot rights. Define the humane treatment of AI.
=> “The Robot That Takes Your Job Should Pay Taxes”
https://www.weforum.org/agenda/2016/10/top-10-ethical-issues-
in-artificial-intelligence/
About Me: Recent Books
1) TensorFlow Pocket Primer (WIP)
2) Python for TensorFlow (WIP)
3) C Programming Pocket Primer (WIP)
4) RegEx Pocket Primer (2018)
5) Data Cleaning Pocket Primer (2018)
6) Angular Pocket Primer (2017)
7) Android Pocket Primer (2017)
8) CSS3 Pocket Primer (2016)
9) SVG Pocket Primer (2016)
10) Python Pocket Primer (2015)
11) D3 Pocket Primer (2015)
12) HTML5 Mobile Pocket Primer (2014)
13) jQuery Pocket Primer (2013)
What I do (Training)
Instructor at UCSC (Santa Clara):
Deep Learning with TensorFlow (10/2018)
Deep Learning with TensorFlow (02/02/2019)
Machine Learning Introduction (01/18/2019)
UCSC link:
https://www.ucsc-extension.edu/certificate-program/offering/deep-
learning-and-artificial-intelligence-tensorflow
=> Android for Beginners (multi-day workshops)

Más contenido relacionado

La actualidad más candente

Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
Lukas Masuch
 

La actualidad más candente (20)

Deep learning
Deep learningDeep learning
Deep learning
 
Deep learning short introduction
Deep learning short introductionDeep learning short introduction
Deep learning short introduction
 
Deep Learning for Artificial Intelligence (AI)
Deep Learning for Artificial Intelligence (AI)Deep Learning for Artificial Intelligence (AI)
Deep Learning for Artificial Intelligence (AI)
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning Tutorial
 
Neural networks and deep learning
Neural networks and deep learningNeural networks and deep learning
Neural networks and deep learning
 
From Conventional Machine Learning to Deep Learning and Beyond.pptx
From Conventional Machine Learning to Deep Learning and Beyond.pptxFrom Conventional Machine Learning to Deep Learning and Beyond.pptx
From Conventional Machine Learning to Deep Learning and Beyond.pptx
 
Deep Learning - Overview of my work II
Deep Learning - Overview of my work IIDeep Learning - Overview of my work II
Deep Learning - Overview of my work II
 
An introduction to Deep Learning
An introduction to Deep LearningAn introduction to Deep Learning
An introduction to Deep Learning
 
Deep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial IntelligenceDeep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial Intelligence
 
Deep Learning: a birds eye view
Deep Learning: a birds eye viewDeep Learning: a birds eye view
Deep Learning: a birds eye view
 
Deep Visual Understanding from Deep Learning by Prof. Jitendra Malik
Deep Visual Understanding from Deep Learning by Prof. Jitendra MalikDeep Visual Understanding from Deep Learning by Prof. Jitendra Malik
Deep Visual Understanding from Deep Learning by Prof. Jitendra Malik
 
Deep Learning - A Literature survey
Deep Learning - A Literature surveyDeep Learning - A Literature survey
Deep Learning - A Literature survey
 
Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
 
Deep Learning Hardware: Past, Present, & Future
Deep Learning Hardware: Past, Present, & FutureDeep Learning Hardware: Past, Present, & Future
Deep Learning Hardware: Past, Present, & Future
 
Deep Learning and Reinforcement Learning
Deep Learning and Reinforcement LearningDeep Learning and Reinforcement Learning
Deep Learning and Reinforcement Learning
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
 
Ai ml dl_bct and mariners-1
Ai  ml dl_bct and mariners-1Ai  ml dl_bct and mariners-1
Ai ml dl_bct and mariners-1
 
An Introduction to Deep Learning
An Introduction to Deep LearningAn Introduction to Deep Learning
An Introduction to Deep Learning
 
Demystifying Ml, DL and AI
Demystifying Ml, DL and AIDemystifying Ml, DL and AI
Demystifying Ml, DL and AI
 
Deep Learning And Business Models (VNITC 2015-09-13)
Deep Learning And Business Models (VNITC 2015-09-13)Deep Learning And Business Models (VNITC 2015-09-13)
Deep Learning And Business Models (VNITC 2015-09-13)
 

Similar a Introduction to Deep Learning for Non-Programmers

dell_ml_rm.ppt
dell_ml_rm.pptdell_ml_rm.ppt
dell_ml_rm.ppt
butest
 
dell_ml_rm.ppt
dell_ml_rm.pptdell_ml_rm.ppt
dell_ml_rm.ppt
butest
 
Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1
GMR Group
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligence
SindhuVelmukull
 
Machine Learning ICS 273A
Machine Learning ICS 273AMachine Learning ICS 273A
Machine Learning ICS 273A
butest
 
Machine Learning ICS 273A
Machine Learning ICS 273AMachine Learning ICS 273A
Machine Learning ICS 273A
butest
 

Similar a Introduction to Deep Learning for Non-Programmers (20)

Filip Maertens - AI, Machine Learning and Chatbots: Think AI-first
Filip Maertens - AI, Machine Learning and Chatbots: Think AI-first Filip Maertens - AI, Machine Learning and Chatbots: Think AI-first
Filip Maertens - AI, Machine Learning and Chatbots: Think AI-first
 
ARTIFICIAL INTELLIGENCE-New.pptx
ARTIFICIAL INTELLIGENCE-New.pptxARTIFICIAL INTELLIGENCE-New.pptx
ARTIFICIAL INTELLIGENCE-New.pptx
 
Deciphering Acronym Soup, ML vs. AI
Deciphering Acronym Soup, ML vs. AIDeciphering Acronym Soup, ML vs. AI
Deciphering Acronym Soup, ML vs. AI
 
Will Machines Replace Man? AI
Will Machines Replace Man? AIWill Machines Replace Man? AI
Will Machines Replace Man? AI
 
Java one2016 con3054-watsonap-is
Java one2016 con3054-watsonap-isJava one2016 con3054-watsonap-is
Java one2016 con3054-watsonap-is
 
Building Cognitive Applications with Watson APIs
Building Cognitive Applications with Watson APIs Building Cognitive Applications with Watson APIs
Building Cognitive Applications with Watson APIs
 
Java one2016 con3054-watsonap-is
Java one2016 con3054-watsonap-isJava one2016 con3054-watsonap-is
Java one2016 con3054-watsonap-is
 
dell_ml_rm.ppt
dell_ml_rm.pptdell_ml_rm.ppt
dell_ml_rm.ppt
 
dell_ml_rm.ppt
dell_ml_rm.pptdell_ml_rm.ppt
dell_ml_rm.ppt
 
Artificial intelligence slides beginners
Artificial intelligence slides beginners Artificial intelligence slides beginners
Artificial intelligence slides beginners
 
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...
 
Fundamental of AI
Fundamental of AIFundamental of AI
Fundamental of AI
 
Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1Artificial intelligence in practice- part-1
Artificial intelligence in practice- part-1
 
AI_01_introduction.pptx
AI_01_introduction.pptxAI_01_introduction.pptx
AI_01_introduction.pptx
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligence
 
ARTIFICIAL INTELLLLIGENCEE modul11_AI.pptx
ARTIFICIAL INTELLLLIGENCEE modul11_AI.pptxARTIFICIAL INTELLLLIGENCEE modul11_AI.pptx
ARTIFICIAL INTELLLLIGENCEE modul11_AI.pptx
 
Intro to deep learning
Intro to deep learning Intro to deep learning
Intro to deep learning
 
Machine Learning - Challenges, Learnings & Opportunities
Machine Learning - Challenges, Learnings & OpportunitiesMachine Learning - Challenges, Learnings & Opportunities
Machine Learning - Challenges, Learnings & Opportunities
 
Machine Learning ICS 273A
Machine Learning ICS 273AMachine Learning ICS 273A
Machine Learning ICS 273A
 
Machine Learning ICS 273A
Machine Learning ICS 273AMachine Learning ICS 273A
Machine Learning ICS 273A
 

Más de Oswald Campesato

Más de Oswald Campesato (20)

Working with tf.data (TF 2)
Working with tf.data (TF 2)Working with tf.data (TF 2)
Working with tf.data (TF 2)
 
Introduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasIntroduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and Keras
 
Introduction to Deep Learning
Introduction to Deep LearningIntroduction to Deep Learning
Introduction to Deep Learning
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
 
H2 o berkeleydltf
H2 o berkeleydltfH2 o berkeleydltf
H2 o berkeleydltf
 
Introduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowIntroduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and Tensorflow
 
TensorFlow in Your Browser
TensorFlow in Your BrowserTensorFlow in Your Browser
TensorFlow in Your Browser
 
Deep Learning in Your Browser
Deep Learning in Your BrowserDeep Learning in Your Browser
Deep Learning in Your Browser
 
Deep Learning and TensorFlow
Deep Learning and TensorFlowDeep Learning and TensorFlow
Deep Learning and TensorFlow
 
Introduction to Deep Learning and TensorFlow
Introduction to Deep Learning and TensorFlowIntroduction to Deep Learning and TensorFlow
Introduction to Deep Learning and TensorFlow
 
Intro to Deep Learning, TensorFlow, and tensorflow.js
Intro to Deep Learning, TensorFlow, and tensorflow.jsIntro to Deep Learning, TensorFlow, and tensorflow.js
Intro to Deep Learning, TensorFlow, and tensorflow.js
 
Deep Learning and TensorFlow
Deep Learning and TensorFlowDeep Learning and TensorFlow
Deep Learning and TensorFlow
 
Introduction to Deep Learning and Tensorflow
Introduction to Deep Learning and TensorflowIntroduction to Deep Learning and Tensorflow
Introduction to Deep Learning and Tensorflow
 
Deep Learning, Scala, and Spark
Deep Learning, Scala, and SparkDeep Learning, Scala, and Spark
Deep Learning, Scala, and Spark
 
Deep Learning in your Browser: powered by WebGL
Deep Learning in your Browser: powered by WebGLDeep Learning in your Browser: powered by WebGL
Deep Learning in your Browser: powered by WebGL
 
Deep Learning, Keras, and TensorFlow
Deep Learning, Keras, and TensorFlowDeep Learning, Keras, and TensorFlow
Deep Learning, Keras, and TensorFlow
 
C++ and Deep Learning
C++ and Deep LearningC++ and Deep Learning
C++ and Deep Learning
 
Scala and Deep Learning
Scala and Deep LearningScala and Deep Learning
Scala and Deep Learning
 
Java and Deep Learning (Introduction)
Java and Deep Learning (Introduction)Java and Deep Learning (Introduction)
Java and Deep Learning (Introduction)
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 

Introduction to Deep Learning for Non-Programmers

  • 1. Introduction to Deep Learning for Non-Programmers Mensa SF/BA RG 2018 San Francisco 11/17/2018 Oswald Campesato ocampesato@yahoo.com I teach Deep Learning Evening Courses at UCSC Santa Clara and On-Site For Companies
  • 2. Overview of Topics  The Turing Test  The First AI Event  AI and Robots  What is Artificial Intelligence (AI)?  Successes/Challenges in AI  Machine/Deep Learning  Natural Language Processing (NLP)  One Popular ML/DL Framework  AI, Mobile, and the Web  AI and Autonomous Vehicles  AI and Ethics
  • 3. The Turing Test and Intelligence Developed by Alan Turing in 1950 (*) Suppose that a human asks questions And a machine generates text-based answers If you cannot distinguish between the machine and the human, the machine passes the test (*) a newer and updated version is available
  • 4. The First AI Event (1956) Marvin Minsky (MIT) John McCarthy (inventor of LISP) Claude Shannon (“Da Vinci” of the 20th century) Nathan Rochester (IBM) Ray Solomonoff, Oliver Selfridge, Trenchard More, Arthur Samuel, Allen Newell and Herbert A. Simon
  • 5. Who is Sophia?  a robot with human female features  Sophia makes facial expressions  Sophia holds conversations According to Sophia: "I want to . . . help humans live a better life. Like . . . build better cities of the future. I will do my best to make the world a better place."  Sophia is a citizen of Saudi Arabia (2017) "I want to thank very much the Kingdom of Saudi Arabia. I am very honored and proud for this unique distinction. It is historic to be the first robot in the world to be recognized with a citizenship.” ? Is Sophia an example of AI? ? Can Sophia pass the Turing Test? Should Sophia have any rights?
  • 6. Where Else are the Robots? Surgery (assisting surgeons) Radiology (detecting cancer) Drug mismanagement Comparing theories of religion Law/Real Estate/Military/Science Comedy (including stand-up) Music (conducting orchestras) Restaurants (gourmet meals) Coordinated dancing teams Many other fields 
  • 7. Livermore Lab: DL system to recognize nuclear proliferation from input data
  • 8. AI Companies (Hardware and Business)  Nvidia product: GPUs are special ICs that greatly accelerate ML and CNN calculations  Google products: TensorFlow TF software and Tensor Processing Unit TPU hardware for vastly faster ML and CNN calculations  Amazon, Microsoft, IBM: service products: on-line special servers for ML and DL  Huawei: https://finance.yahoo.com/m/f2f539ba-00e4-3cc5-9654- 467dd8a35da2/chinese-tech-giant-huawei.html  by 2019 almost every large company will use ML and DL in their company business
  • 9. What is AI (Wikipedia)  AI is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans and other animals.  Any device that perceives its environment and takes actions that maximize its chance of successfully achieving its goals.  The term AI is applied when a machine mimics "cognitive" functions that humans associate with other human minds, such as "learning" and "problem solving”  => AI is also called “weak AI”
  • 10. Successes & Challenges in ML/DL  Alpha Go success: a decade before its time  Google Translate: Deep Learning (far superior)  Space exploration: unmanned shuttles (NASA)  Countering terrorism: face recognition at airports  Detecting fake news: https://blogs.thomsonreuters.com/answerson/machine- learning-fake-news-twitter/
  • 11. Successes/Challenges in AI  Occupational bias: => An AI system inferred that white males were doctors and white females were housewives  Detecting gender bias in Wikipedia (2018): => 18 percent of its biographies are of women => 84% to 90% of Wikipedia editors are male  Data bias versus algorithmic bias: https://www.forbes.com/sites/charlestowersclark/2018/09/19/can-we- make-artificial-intelligence-accountable  => Star Trek’s “Data” is still just a dream
  • 12. Goals for ML  Higher accuracy / Fewer Errors  Useful apps (Siri, Cortana, etc)  Impartiality (versus humans)  Medical Apps  Utilities (self-Driving cars)  => goals are partially achieved in 2018
  • 13. Shortcomings of ML High Costs (software/hardware) are dropping Cannot explain reasons for outputs lack of empathy Increased unemployment: => cars did the same to the horse industry Is it “just” another disruptive technology?
  • 15. AI/ML/DL: How They Differ Traditional AI (20th century): based on collections of rules Led to expert systems in the 1980s Enabled/limited by human experts Unable to benefit from corpus for training The era of LISP and Prolog
  • 16. AI/ML/DL: How They Differ Machine Learning: Started in the 1950s (approximate) Uses Data to optimize and “learn” Many types of (improved) algorithms
  • 17. AI/ML/DL: How They Differ Deep Learning:  Gained some traction in the 1950s (approximate)  The “perceptron” (basis of Neural Networks)  Data-driven with large (even massive) data sets  Lots of heuristics (and empirical results)  50 years later: surpass humans for some image classification)
  • 18. Types of Machine Learning  Supervised learning (lots of data) Supervisor tells CNN the desired answer. Therefore CNN adjusts parameters ”99% of all machine learning is supervised.” - Andrew Ng  Semi-supervised learning (lots of data)  Unsupervised learning: lots of data, clustering  Reinforcement learning: trial, feedback, improvement
  • 19. What has Deep Learning Achieved?  Near-human level image classification speech recognition handwriting transcription autonomous driving  Improved machine translation  Digital assistants (Google Now/Amazon Alexa)  Improved ad targeting (Google, Baidu, Bing)  Answering natural language questions  Super-human level for: web searching playing Go
  • 20. Types of Algorithms in AI Classifiers (for images, spam, fraud, etc) Regression (stock price, housing price, etc) Clustering (unsupervised classifiers)
  • 21. Use Cases for Deep Learning  computer vision  speech recognition  image processing  bioinformatics  social network filtering  drug design  Customer relationship management  Recommendation systems  Bioinformatics  Mobile Advertising  Many others
  • 22. CNNs versus RNNs CNNs (Convolutional NNs): Good for image processing 2000: CNNs processed 10-20% of all checks => Approximately 60% of all NNs (2016) RNNs (Recurrent NNs): Good for NLP and audio Time series analysis
  • 23. Use-Cases for RNNs Robot control Time series predictions Rhythm learning Music composition Grammar learning Handwriting recognition Human action recognition RNNs are much more complex than CNNs
  • 24. CNNs and the “Basic” Steps Obtain and clean a dataset: can be laborious Create a neural network Initialize hyper parameters: layers/neurons/etc Train the neural network on “corpus” of examples Update hyper parameters (modifies the NN) Iterate through the preceding until: you're happy with the results or get better data or find a pre-trained model
  • 25. CNN Inspired by Biological NN: Classifier
  • 26. NN: 2 Hidden (“Middle”) Layers (Regression)
  • 27. Seminal concepts in ML and DL 1) Machine Learning ML is statistics, aimed to optimize average correctness. It is rarely exact or prefect. 2) Computer Neural Networks CNN are inspired & simplified from biological neural networks 3) Each neuron has local memory, including adjustable input weights for each synapse 4) Deep Neural Network DNN is a CNN with 2 or more layers of intermediate “hidden” neurons 5) Supervised ML for classification task: Train on “corpus” of examples, each with input stimulus array (vector, tensor), and desired output class 6) Training & learning: Compare CNN outputs versus desired outputs. Improve accuracy by applying feedback & adjusting synaptic weights etc.
  • 28. Classify: how fast/accurate are you? CNNs perform this task really well
  • 30. Some CNN Terminology  A filter: another term is a kernel  A feature map: 1) the result of “applying” a filter to an image 2) pixel values might be < 0 and/or > 255  ReLU: (Rectified Linear Unit): replace negative values with 0  Max Pooling: subdivide into rectangles and take largest value from each rectangle
  • 31. CNNs and Max Pooling
  • 32. GANs: Generative Adversarial Networks image recognition can be deceived by modifying just a few pixels Make imperceptible changes to images Can consistently defeat all NNs Can have extremely high error rate Some images create optical illusions => NNs can be easily misled GAN approximates opposite of reinforcement learning
  • 34. What is NLP (Natural Language Processing)?  An area of computer science and AI  Interaction between computers & human languages  Process/analyze volumes of natural language data  Program computers to perform that processing  Previously rule-based techniques  Can use statistical techniques  Translating between languages  Can find meaningful information from text  Can summarize documents  Detecting hate speech
  • 35. Some NLP-Related Tasks 1) Sentiment analysis:  Analyzing text  Classify text as happy/sad/angry/sarcastic 2) Recommendation systems:  Analyzing your book/movie selections  Recommending similar content  Based on what’s popular  Based on your viewing/purchasing pattern
  • 36. What Works with NLP? NLP and Deep Learning NLP and Deep Reinforcement Learning NLP and Chatbots
  • 37. Challenges in NLP Human speech recognition: Difficult due to extreme variability NLU (natural language understanding) NLG (natural language generation)
  • 38. What are Chatbots?  Software that “communicates” with people  Good for many “front end” tasks  Efficient for high-volume routine tasks  They can use text or audio  Examples include Siri/Alexa/et al
  • 39. What is Reinforcement Learning (RL)? An area of Machine Learning inspired by behaviorist psychology Goal: maximize a reward (ex: winning games)  how software agents take actions in an environment  to maximize some notion of cumulative reward
  • 40. Examples of Reinforcement Learning Alpha Go (hybrid RL) Alpha Zero (complete RL) Often involve Greedy algorithms Deep RL: Combines Deep Learning and RL
  • 43. What is TensorFlow?  Currently TF is the most popular open source framework & language for ML & DL  TF uses a “computation graph” = topology of logical blocks  TF uses tensors (arrays) of data instead of individual units. Similar to scientific supercomputing vintage 1985  TF often is used via Python  From Google (released 11/2015)  Evolved from Google Brain  Multi-platform support  https://www.tensorflow.org/
  • 44. TensorFlow Use Cases (Generic) Image recognition Computer vision Voice/sound recognition Time series analysis Language detection Language translation Text-based processing Handwriting Recognition
  • 45. What’s In the TensorFlow “Umbrella”? TensorFlow Lite (for mobile apps) Tensorflow.js (JavaScript APIs for ML) TensorFlow in the Cloud (TPUs) => Python APIs are the most popular
  • 46. Autonomous Vehicles  Autonomous truck completed a 2,400 journey (02/2018)  A human passenger in the front seat (as an override)  Aspiration: “Roads will be safer. Goods will be cheaper. Truckers will be called upon to use their skills in new ways while the truck itself becomes a trusted navigation partner.”  https://www.geek.com/tech/autonomous-embark-truck- completes-2400-mile-cross-country-trip-1730239/
  • 47. Robot truck drivers: are they safer? “Robot trucks will kill far fewer people (if any). Machines don’t get distracted or look at phones instead of the road. Machines don’t drink alcohol, do drugs, or things that contribute to accidents. Robot trucks don’t need salaries, vacations, health insurance, rest periods, or sick time. The only costs will be upkeep of the machinery.”
  • 48. AI and Ethics 1. Unemployment. What happens after the end of jobs? UBI? 2. Inequality. How do we distribute the wealth created by machines? 3. Humanity. How do machines affect our behavior and interaction? 4. Artificial stupidity. How can we guard against mistakes? 5. Racist robots. How do we eliminate AI bias? 6. Security. How do we keep AI safe from adversaries?
  • 49. AI and Ethics 7. Evil genies. How do we protect against unintended consequences? 8. Singularity. How do we stay in control of a complex intelligent system? 9. Robot rights. Define the humane treatment of AI. => “The Robot That Takes Your Job Should Pay Taxes” https://www.weforum.org/agenda/2016/10/top-10-ethical-issues- in-artificial-intelligence/
  • 50. About Me: Recent Books 1) TensorFlow Pocket Primer (WIP) 2) Python for TensorFlow (WIP) 3) C Programming Pocket Primer (WIP) 4) RegEx Pocket Primer (2018) 5) Data Cleaning Pocket Primer (2018) 6) Angular Pocket Primer (2017) 7) Android Pocket Primer (2017) 8) CSS3 Pocket Primer (2016) 9) SVG Pocket Primer (2016) 10) Python Pocket Primer (2015) 11) D3 Pocket Primer (2015) 12) HTML5 Mobile Pocket Primer (2014) 13) jQuery Pocket Primer (2013)
  • 51. What I do (Training) Instructor at UCSC (Santa Clara): Deep Learning with TensorFlow (10/2018) Deep Learning with TensorFlow (02/02/2019) Machine Learning Introduction (01/18/2019) UCSC link: https://www.ucsc-extension.edu/certificate-program/offering/deep- learning-and-artificial-intelligence-tensorflow => Android for Beginners (multi-day workshops)

Notas del editor

  1. https://en.wikipedia.org/wiki/Ethics_of_artificial_intelligence
  2. DL system to advance nuclear nonproliferation analysis https://www.llnl.gov/news/researchers-developing-deep-learning-system-advance-nuclear-nonproliferation-analysis
  3. https://towardsdatascience.com/deep-learning-framework-power-scores-2018-23607ddf297a