Chapter #5 - Deep Learning
Chapter #5 - Deep Learning
College of Computing
MSC 536 - Selected Topic in Artificial Intelligence
CEN 526 - Artificial Intelligence
Spring 2022-2023
Deep Learning
Spring 2022-2023
Deep-learning architectures such as deep neural networks,
deep belief networks, deep reinforcement learning,
recurrent neural networks, convolutional neural networks
and transformers have been applied to fields including
computer vision, speech recognition, natural language
processing, machine translation, bioinformatics, drug
design, medical image analysis, climate science, material
inspection and board game programs, where they have
produced results comparable to and in some cases
surpassing human expert performance.
Computer Science and IT | College of Computing | 2
Deep learning……..
Spring 2022-2023
systems. ANNs have various differences from biological brains.
Specifically, artificial neural networks tend to be static and
symbolic, while the biological brain of most living organisms is
dynamic (plastic) and analog.
Spring 2022-2023
linear perceptron cannot be a universal classifier, but that
a network with a nonpolynomial activation function with
one hidden layer of unbounded width can. Deep learning
is a modern variation that is concerned with an
unbounded number of layers of bounded size, which
permits practical application and optimized
implementation, while retaining theoretical universality
under mild conditions. In deep learning the layers are
also permitted to be heterogeneous and to deviate
widely from biologically informed connectionist models,
for the sake of efficiency, trainability and
understandability.
Computer Science and IT | College of Computing | 4
Deep learning……..……
Spring 2022-2023
Computer Science and IT | College of Computing | 5
Definition
Spring 2022-2023
Computer Science and IT | College of Computing | 6
Deep learning is a class of machine learning algorithms that
uses multiple layers to progressively extract higher-level
features from the raw input. For example, in image processing,
lower layers may identify edges, while higher layers may
identify the concepts relevant to a human such as digits or
Spring 2022-2023
letters or faces.
Spring 2022-2023
Computer Science and IT | College of Computing | 8
Deep Learning Vs. Machine Learning Vs.
AI: An In-Depth Guide…………
▪ Self-driving cars
Spring 2022-2023
▪ Touched-up selfies
▪ Netflix recommendations
Artificial intelligence (AI) is all around you, and it’s only getting
Spring 2022-2023
more pervasive. But if you start looking into how it works,
you’ll immediately run into a few questions about the
concepts surrounding it: What is deep learning vs. machine
learning? And how do artificial intelligence, machine learning,
and deep learning relate to one another?
Spring 2022-2023
complex ones, and then there’s the math behind it all,
which is so complicated that it’s probably best to set aside
for now. At any level of understanding, these answers are
important—particularly for brands and marketers. After all,
AI increasingly governs interactions with customers, as
illustrated by the rise of voice AI technologies.
Spring 2022-2023
touchpoints like voicebots, smart home devices, AI
assistants, and conversational AI platforms of all
descriptions. It’s the perfect illustration of a practical use
for deep learning. But first, if you want to understand
machine learning, AI, and deep learning, start with a few
key definitions.
Spring 2022-2023
Computer Science and IT | College of Computing | 13
What do artificial intelligence, machine
learning, and deep learning mean?
Spring 2022-2023
demonstrated by machines.” Wikipedia contrasts this with
the “natural intelligence displayed by humans and animals,
which involves consciousness and emotionality.” As for
intelligence itself, that’s simply an ability to obtain
information and use it adaptively.
Spring 2022-2023
computer scientist Tom Mitchell, who literally wrote the
book on machine learning.
Spring 2022-2023
(for the most part) through deep neural networks (DNN).
There are other ways to perform deep learning, but DNNs
are far and away the most common in practical use today.
Spring 2022-2023
subset of machine learning, and machine learning is a
subset of AI. However, deep learning has become so
dominant in AI circles that, when someone mentions AI,
it’s extremely likely that they’re also talking about deep
learning; you can assume that any discussion of AI is
also a discussion of deep learning (and therefore
machine learning, too).
Spring 2022-2023
“deep learning,” but neural networks have eclipsed all
the rest to the extent that you can safely assume any
mention of deep learning is based on the neural
network model—so much so that an effective (if not
scientifically accurate) definition of deep learning could
be “machine learning through deep neural network
architecture.”
Spring 2022-2023
that’s only a rough analogy. When you get down to the
details, human brains and neural networks are extremely
different. Still, the metaphor is helpful for understanding
the broad strokes of neural networks: Neural networks
mimic the way the human brain works to process
information.
Spring 2022-2023
network does something similar. The neural networks,
widely used in the 1990s, consist of three layers of
networked processors, or artificial neurons: the input
layer, a hidden layer, and an output layer. Each neuron
receives input data, performs an operation on that data,
and exports the results of the operation as an input to
the next processing layer.
Spring 2022-2023
perceptrons (MLP), and they efficiently solved some of
the most vexing problems of their era. But with the
increasing availability of larger datasets, and long strains
of research breaking into practice, neural networks
evolved alongside the dawning era of Big Data.
Spring 2022-2023
the more layers, the more abstract representations the
system can extract.
For example, say our goal is to train a neural network to
classify images of dogs and cats accurately. If we feed
millions of images into the neural network, the local features
of these images may include:
•Shapes of eyes
•Shapes of ears
•Fur color
•Fur pattern
Computer Science and IT | College of Computing | 22
Abstraction of local features gives DNN its
power…..
➢ Shapes of eyes, Shapes of ears, Fur color and Fur
pattern.
See the trouble? These local features are themselves
Spring 2022-2023
highly variable; there’s no single color of fur that can
differentiate a cat from a dog. You can’t make a one-to-
one connection between a single local feature and the
designation “cat.” Instead, we need to study abstract
features: not just certain eye shapes, but the whole
placement and appearance of eyes within a face. That
helps the system categorize images as “cat” or “dog”
based on abstract relationships between local
representations.
Computer Science and IT | College of Computing | 23
Abstraction of local features gives DNN its
power…..
Spring 2022-2023
of cats and dogs. Programmers may not even know which
features the DNN is extracting; we just know that when we
pass enormous volumes of data (labeled images of cats and
dogs) through the network, it maps a processing path toward
more accurate categorization of new images.
Spring 2022-2023
conduct more complex processes. It’s a powerful
technology—so powerful, theoretically, that we have to ask
another question: Why are we only beginning to use this
computing architecture now, decades after it was theorized?
Spring 2022-2023
1.Hardware. When deep neural networks first emerged,
we didn’t have hardware that was efficient enough to
train DNNs. That changed with the development of
modern graphics processing units (GPUs)—the
development of which was hastened along by video
game consoles, not the needs of academics. The GPU on
a $200 video game console can be ideal hardware for
training complex DNN models—much better than even
an advanced central processing unit, or CPU.
Computer Science and IT | College of Computing | 26
How did deep learning go from theory to
practical application?……..
Spring 2022-2023
early days of neural networks. To train a complex DNN
model in a stable way, you need extraordinary amounts
of data. In the early days of AI, that data wasn’t available.
Now there are easily accessible platforms that allow
researchers to collect billions and billions of data points
every single day.
Spring 2022-2023
complex DNN models stable during training. Early
algorithms led to unstable models, which weren’t
dependable enough for practical use. Thanks to the work of
enterprising scientists, today’s deep learning algorithms can
train stable DNN models to achieve consistent results.
Spring 2022-2023
Deep neural networks don’t just play into the best
contemporary vocoders; they’re also introducing a whole
new approach to speech synthesis. Researchers at
Google, ReadSpeaker, and other tech companies are
working on end-to-end TTS models.
Spring 2022-2023
acoustic model, and only then transmit predictive data to
the vocoder. Each of these steps may require tweaking by
computational linguists—in other words, most neural TTS
still requires human intervention. The human knowledge
embedded in these linguistic pipelines opens the door for
bias and errors.
Spring 2022-2023
from characters. Google’s Tacotron is an experimental end-
to-end TTS model that, while not stable enough for
commercial use yet, is proving the possibility of such a
system. It could be that end-to-end TTS is the next step in
the evolution of synthetic speech.
Spring 2022-2023
bring DNN-powered synthetic speech to smaller
devices and low-resource computing environments.
▪ TTS that’s controllable for emotional speaking styles.
▪ Multilingual TTS, so one voice model can speak
multiple languages.
▪ Adjustable speaking styles within a single TTS model.
▪ Expressing the hidden, underlying aspects of speech
that even linguists haven’t mapped out yet
Spring 2022-2023
this system can be applied. You can use algorithms,
pseudo code, graphs.....etc.
Spring 2022-2023
Computer Science and IT | College of Computing | 34