IEEE Consumer Electronics Magazine - April 2017 - 51
simplest way is the difference between the predicted (learned)
and the true outputs.
Training algorithms work by updating the weights and measuring the way that the loss changes over time. This is usually
accomplished by some form of a gradient descent optimizer. It's
possible to become stuck or quickly converge to a nonoptimal
solution when strictly following the steepest gradients. For this
reason, we typically use some form of stochastic gradient descent, which is simply a stochastic or slightly randomized form
of gradient descent. Back propagation is used to allow us to
propagate the error information from the last layer to the first
layer to modify the weights, and this is often used in a way that
is synonymous with training. Methods that can be used to improve a network's results are called learning rules.
a renaIssance for neural networks?
Although these methods have been successfully used for decades, they have seen a very recent resurgence as refinements
upon existing techniques, combined with newer hardware and
the growth of big data, have created an artificial intelligence
boom that shows no signs of slowing down. The global market
for smart machines is expected to exceed 15 billion by 2019,
with an average annual growth rate of nearly 20% [8]. The set
of techniques that have led to this growth has been coined deep
learning. In the following sections, we will discuss some of the
techniques that enable deep learning, why they work, and how
they are used to make smart machines.
Convolutional neural networks
To store and process analog signals (e.g., voice and biological
signals) on a computer, one must first convert these inputs
into a digital form in a process called analog-to-digital conversion. This transforms the information from a continuous
space to a discrete space. Some information is lost in the process. Often that information isn't critical to understanding the
underlying analog signal, but in some instances, we could
lose critical data, such as high-frequency information.
In digital processing, we often refer to a piece of data, such
as a picture, as a sample. It is convenient, but computationally
expensive, to represent these samples in a high-dimensional space
where each unit (or pixel, in the case of images), is considered as
being located on a specific axis with the range of possible values
being the size of that axis (e.g., 0-255 in the case of an 8-b color-channel in an image). An image that is 100 × 100 pixels would
be represented as a vector that is a point in a 10,000-dimensional
space. We call this space the feature space. Since even the most
powerful computers can have trouble with such high-dimensional space, we try to reduce the number of dimensions to just those
that are critical to a task or to change the way these features are
represented. In the traditional pattern recognition approach, to
perform a given task, we separate our process into two steps:
feature generation and feature selection. The former generates
new features from the pixel space, while the latter reduces the
dimensionality of the feature space. Examples of feature generation include morphological, Fourier, and wavelet transforms,
which create more useful features for specific tasks. Feature se-
lection includes methods like principal component analysis and
linear Fisher discriminant [9].
A newer technique based on sparse mapping calls for
expanding the dimensions with the goal of representing more
abstract features instead of trying to reduce the dimensions.
This is inspired by models of the visual cortex of animals
[10]. Convolutional layers, a key component of deep learning, make use of this sparse mapping approach.
convolutIon and Its role In a neural network
One of the most novel and useful aspects of CNNs is that
they can learn the filters that previously had to be customdesigned by the researcher, a task that would often take years
of trial and error. Convolutional layers are essential to this
task in modern deep neural networks.
Convolutional layers make use of the convolution operator.
The convolution operator is used on two functions. One is the
signal from the sample space and the other, called the filter, is
applied to the sample. On a GPU, convolutions are implemented as matrix multiplications. This operator has a long history in
image processing applications and dates back to the time when
digital image processing started. The convolution operation
can be discussed in both spatial and transform space. In the
spatial space, the convolution operator is the equivalent operation of correlation with the reversed filter, i.e., this operator
calculates the similarity of the input function with the filter.
For example, the edge detection and corner detection filters use
the similarity of the input image with a predefined filter mimicking the edge or corner shape. Looking at the function in the
transform space, the convolution is performing frequency filtering. For example, low-pass or high-pass filters have their
equivalent spatial filters, which could be applied to the image
using convolution operations (see Figure 4).
In the deep learning approach, the filter is learned and
applied to the data during the training process with the hope
that, after training, the learned filter will be the best choice
for the task. One difference between the way convolutions are
used in CNNs from more traditional uses is that the convolution operator is applied using a four-dimensional (4-D) filter.
This is essentially a set of three-dimensional (3-D) filters that
are stacked in the fourth dimension. We use 4-D filter to map
one 3-D space to another 3-D space (see Figure 5).
ConvoLutionaL Layer
In general, for an n-dimensional signal, the convolutional
layer is an n- or (n + 1)-dimensional feature space mapping
with n + 1 or n + 2 dimensional kernels (filters). For example, given a two-dimensional image, the convolutional layer
would be 3-D with a 4-D kernel. In this case, the four dimensions of the kernel correspond to
▼▼ the width of the input
▼▼ the height of the input
▼▼ the number of channels of the input
▼▼ the number of channels of the output.
In Figure 5, you can see two different convolutional layers. The
k channel layer on the left side is mapped to a p channel layer on
APRIL 2017
^
IEEE Consumer Electronics Magazine
51
Table of Contents for the Digital Edition of IEEE Consumer Electronics Magazine - April 2017
IEEE Consumer Electronics Magazine - April 2017 - Cover1
IEEE Consumer Electronics Magazine - April 2017 - Cover2
IEEE Consumer Electronics Magazine - April 2017 - 1
IEEE Consumer Electronics Magazine - April 2017 - 2
IEEE Consumer Electronics Magazine - April 2017 - 3
IEEE Consumer Electronics Magazine - April 2017 - 4
IEEE Consumer Electronics Magazine - April 2017 - 5
IEEE Consumer Electronics Magazine - April 2017 - 6
IEEE Consumer Electronics Magazine - April 2017 - 7
IEEE Consumer Electronics Magazine - April 2017 - 8
IEEE Consumer Electronics Magazine - April 2017 - 9
IEEE Consumer Electronics Magazine - April 2017 - 10
IEEE Consumer Electronics Magazine - April 2017 - 11
IEEE Consumer Electronics Magazine - April 2017 - 12
IEEE Consumer Electronics Magazine - April 2017 - 13
IEEE Consumer Electronics Magazine - April 2017 - 14
IEEE Consumer Electronics Magazine - April 2017 - 15
IEEE Consumer Electronics Magazine - April 2017 - 16
IEEE Consumer Electronics Magazine - April 2017 - 17
IEEE Consumer Electronics Magazine - April 2017 - 18
IEEE Consumer Electronics Magazine - April 2017 - 19
IEEE Consumer Electronics Magazine - April 2017 - 20
IEEE Consumer Electronics Magazine - April 2017 - 21
IEEE Consumer Electronics Magazine - April 2017 - 22
IEEE Consumer Electronics Magazine - April 2017 - 23
IEEE Consumer Electronics Magazine - April 2017 - 24
IEEE Consumer Electronics Magazine - April 2017 - 25
IEEE Consumer Electronics Magazine - April 2017 - 26
IEEE Consumer Electronics Magazine - April 2017 - 27
IEEE Consumer Electronics Magazine - April 2017 - 28
IEEE Consumer Electronics Magazine - April 2017 - 29
IEEE Consumer Electronics Magazine - April 2017 - 30
IEEE Consumer Electronics Magazine - April 2017 - 31
IEEE Consumer Electronics Magazine - April 2017 - 32
IEEE Consumer Electronics Magazine - April 2017 - 33
IEEE Consumer Electronics Magazine - April 2017 - 34
IEEE Consumer Electronics Magazine - April 2017 - 35
IEEE Consumer Electronics Magazine - April 2017 - 36
IEEE Consumer Electronics Magazine - April 2017 - 37
IEEE Consumer Electronics Magazine - April 2017 - 38
IEEE Consumer Electronics Magazine - April 2017 - 39
IEEE Consumer Electronics Magazine - April 2017 - 40
IEEE Consumer Electronics Magazine - April 2017 - 41
IEEE Consumer Electronics Magazine - April 2017 - 42
IEEE Consumer Electronics Magazine - April 2017 - 43
IEEE Consumer Electronics Magazine - April 2017 - 44
IEEE Consumer Electronics Magazine - April 2017 - 45
IEEE Consumer Electronics Magazine - April 2017 - 46
IEEE Consumer Electronics Magazine - April 2017 - 47
IEEE Consumer Electronics Magazine - April 2017 - 48
IEEE Consumer Electronics Magazine - April 2017 - 49
IEEE Consumer Electronics Magazine - April 2017 - 50
IEEE Consumer Electronics Magazine - April 2017 - 51
IEEE Consumer Electronics Magazine - April 2017 - 52
IEEE Consumer Electronics Magazine - April 2017 - 53
IEEE Consumer Electronics Magazine - April 2017 - 54
IEEE Consumer Electronics Magazine - April 2017 - 55
IEEE Consumer Electronics Magazine - April 2017 - 56
IEEE Consumer Electronics Magazine - April 2017 - 57
IEEE Consumer Electronics Magazine - April 2017 - 58
IEEE Consumer Electronics Magazine - April 2017 - 59
IEEE Consumer Electronics Magazine - April 2017 - 60
IEEE Consumer Electronics Magazine - April 2017 - 61
IEEE Consumer Electronics Magazine - April 2017 - 62
IEEE Consumer Electronics Magazine - April 2017 - 63
IEEE Consumer Electronics Magazine - April 2017 - 64
IEEE Consumer Electronics Magazine - April 2017 - 65
IEEE Consumer Electronics Magazine - April 2017 - 66
IEEE Consumer Electronics Magazine - April 2017 - 67
IEEE Consumer Electronics Magazine - April 2017 - 68
IEEE Consumer Electronics Magazine - April 2017 - 69
IEEE Consumer Electronics Magazine - April 2017 - 70
IEEE Consumer Electronics Magazine - April 2017 - 71
IEEE Consumer Electronics Magazine - April 2017 - 72
IEEE Consumer Electronics Magazine - April 2017 - 73
IEEE Consumer Electronics Magazine - April 2017 - 74
IEEE Consumer Electronics Magazine - April 2017 - 75
IEEE Consumer Electronics Magazine - April 2017 - 76
IEEE Consumer Electronics Magazine - April 2017 - 77
IEEE Consumer Electronics Magazine - April 2017 - 78
IEEE Consumer Electronics Magazine - April 2017 - 79
IEEE Consumer Electronics Magazine - April 2017 - 80
IEEE Consumer Electronics Magazine - April 2017 - 81
IEEE Consumer Electronics Magazine - April 2017 - 82
IEEE Consumer Electronics Magazine - April 2017 - 83
IEEE Consumer Electronics Magazine - April 2017 - 84
IEEE Consumer Electronics Magazine - April 2017 - 85
IEEE Consumer Electronics Magazine - April 2017 - 86
IEEE Consumer Electronics Magazine - April 2017 - 87
IEEE Consumer Electronics Magazine - April 2017 - 88
IEEE Consumer Electronics Magazine - April 2017 - 89
IEEE Consumer Electronics Magazine - April 2017 - 90
IEEE Consumer Electronics Magazine - April 2017 - 91
IEEE Consumer Electronics Magazine - April 2017 - 92
IEEE Consumer Electronics Magazine - April 2017 - 93
IEEE Consumer Electronics Magazine - April 2017 - 94
IEEE Consumer Electronics Magazine - April 2017 - 95
IEEE Consumer Electronics Magazine - April 2017 - 96
IEEE Consumer Electronics Magazine - April 2017 - 97
IEEE Consumer Electronics Magazine - April 2017 - 98
IEEE Consumer Electronics Magazine - April 2017 - 99
IEEE Consumer Electronics Magazine - April 2017 - 100
IEEE Consumer Electronics Magazine - April 2017 - 101
IEEE Consumer Electronics Magazine - April 2017 - 102
IEEE Consumer Electronics Magazine - April 2017 - 103
IEEE Consumer Electronics Magazine - April 2017 - 104
IEEE Consumer Electronics Magazine - April 2017 - 105
IEEE Consumer Electronics Magazine - April 2017 - 106
IEEE Consumer Electronics Magazine - April 2017 - 107
IEEE Consumer Electronics Magazine - April 2017 - 108
IEEE Consumer Electronics Magazine - April 2017 - 109
IEEE Consumer Electronics Magazine - April 2017 - 110
IEEE Consumer Electronics Magazine - April 2017 - 111
IEEE Consumer Electronics Magazine - April 2017 - 112
IEEE Consumer Electronics Magazine - April 2017 - 113
IEEE Consumer Electronics Magazine - April 2017 - 114
IEEE Consumer Electronics Magazine - April 2017 - 115
IEEE Consumer Electronics Magazine - April 2017 - 116
IEEE Consumer Electronics Magazine - April 2017 - 117
IEEE Consumer Electronics Magazine - April 2017 - 118
IEEE Consumer Electronics Magazine - April 2017 - 119
IEEE Consumer Electronics Magazine - April 2017 - 120
IEEE Consumer Electronics Magazine - April 2017 - 121
IEEE Consumer Electronics Magazine - April 2017 - 122
IEEE Consumer Electronics Magazine - April 2017 - 123
IEEE Consumer Electronics Magazine - April 2017 - 124
IEEE Consumer Electronics Magazine - April 2017 - 125
IEEE Consumer Electronics Magazine - April 2017 - 126
IEEE Consumer Electronics Magazine - April 2017 - 127
IEEE Consumer Electronics Magazine - April 2017 - 128
IEEE Consumer Electronics Magazine - April 2017 - Cover3
IEEE Consumer Electronics Magazine - April 2017 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20240102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20231112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20221112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20211112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202010
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202009
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202007
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202004
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202003
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202001
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201909
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201907
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201905
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201903
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201901
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201811
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201809
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201807
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201805
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201803
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_october2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_october2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2015
https://www.nxtbookmedia.com