1. Home
  2. Explore
  3. Computer Science
  4. History of Artificial Intelligence

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

History of Artificial Intelligence

From Perceptrons to Deep Learning: A History of Neural Networks

1. The Rise and Importance of Artificial Intelligence

Artificial intelligence (AI) refers to computer systems designed to perform tasks that normally require human intelligence, such as recognizing patterns, making decisions, understanding language, driving vehicles, and learning from experience.

AI is now integrated into many aspects of daily life:

  • Autonomous and assisted driving systems use AI to interpret their surroundings.

  • Robotic devices can clean homes and perform other household tasks.

  • Some people use AI-based systems for conversational support or therapy.

  • Recommendation algorithms on video, shopping, and social-media platforms often rely on neural networks.

  • AI systems are used for speech recognition, image classification, translation, medical analysis, and scientific research.

The rapid development of AI during the last decade has been described as a new industrial revolution because modern AI has begun transforming science, industry, transportation, communication, and everyday life.

However, the history of AI has not been a continuous success story. Neural networks experienced periods of intense excitement followed by severe disappointment. These periods of reduced funding and research activity are called AI winters.


2. Digital Computers and the Need for Flexible Machines

During the 1950s, after World War II, digital computers were becoming increasingly important. Early computers had originally been developed for tasks such as codebreaking, military communication, and scientific calculation.

Computers were soon used for:

  • Calculating missile trajectories

  • Running scientific simulations

  • Exploring mathematical problems

  • Playing simple games

  • Processing large quantities of numerical information

Despite their power, early computers had a major limitation: they were generally designed for specific tasks. Solving a new problem often required designing or reconfiguring an entire machine.

This limitation was especially serious because computers in the 1950s were physically enormous, often filling entire rooms. A flexible machine that could learn how to perform different tasks would therefore be much more useful than a separate custom-built computer for every problem.

This search for flexibility helped motivate research into machines modeled after the human brain.


3. The Biological Neuron

In the 1940s, Warren McCulloch and Walter Pitts developed a simplified mathematical model inspired by the biological neuron.

Structure and operation of a biological neuron

A biological neuron generally works as follows:

  1. Dendrites receive electrical signals from other neurons.

  2. The signals travel toward the cell body.

  3. The neuron combines the incoming signals.

  4. If the combined signal is strong enough, the neuron fires.

  5. The fired signal travels onward to other neurons.

  6. If the total signal is insufficient, the neuron remains inactive.

The key idea is that a neuron does not respond equally to every input. Some incoming signals may be more influential than others, and the neuron fires only when the combined influence reaches a sufficient level.

The digital neuron model

The McCulloch–Pitts model represented each input with a numerical value. Each input was multiplied by a weight, which represented the importance of that input.

For inputs x1,x2,…,xnx_1, x_2, \ldots, x_nx1​,x2​,…,xn​ and weights w1,w2,…,wnw_1, w_2, \ldots, w_nw1​,w2​,…,wn​, the neuron calculates a weighted sum:

z=∑i=1nwixiz = \sum_{i=1}^{n} w_i x_iz=∑i=1n​wi​xi​

A threshold determines whether the neuron activates:

y={1,if z>threshold0,otherwisey = \begin{cases} 1, & \text{if } z > \text{threshold} \\ 0, & \text{otherwise} \end{cases}y={1,0,​if z>thresholdotherwise​

The value 111 represents an active or firing neuron, while 000 represents an inactive neuron.

Limitation of the original model

The weights had to be selected manually. Once a neuron had been constructed, its behavior was fixed unless a person changed the weights.

This meant that the model reproduced the structure of a neuron but not its ability to learn. A useful artificial system would need to adjust its own weights based on experience.


4. Rosenblatt’s Perceptron

In the 1950s, psychologist Frank Rosenblatt developed the perceptron, one of the earliest trainable AI models.

The perceptron extended the basic artificial neuron by adding:

  • Weights, which determine the importance of inputs

  • A bias, which shifts the activation threshold

  • A learning rate, which controls how much the weights change during learning

The perceptron’s weighted sum can be written as:

z=∑i=1nwixi+bz = \sum_{i=1}^{n} w_i x_i + bz=∑i=1n​wi​xi​+b

where:

  • xix_ixi​ is an input

  • wiw_iwi​ is the weight associated with that input

  • bbb is the bias

  • zzz is the total activation before the threshold decision

The perceptron then applies a threshold function to produce an output of 000 or 111.


5. How a Perceptron Learns

A perceptron can learn a simple classification task, such as deciding whether a point lies above or below a line.

Classification example

Suppose each point has coordinates and belongs to one of two categories:

  • Points on one side of a line should produce an output of 111.

  • Points on the other side should produce an output of 000.

The perceptron begins with randomly chosen weights and bias values.

For each training example, it performs the following process:

  1. Calculate the weighted sum of the inputs.

  2. Add the bias.

  3. Apply the threshold function.

  4. Compare the predicted output with the expected output.

  5. Adjust the weights and bias if the prediction is incorrect.

Error calculation

The error is calculated as the difference between the expected output and the predicted output:

error=yexpected−ypredicted\text{error} = y_{\text{expected}} - y_{\text{predicted}}error=yexpected​−ypredicted​

This error indicates whether the perceptron has:

  • Overshot, producing an output that is too large

  • Undershot, producing an output that is too small

  • Predicted correctly, producing an error of zero

Weight update rule

The weights are updated using the learning rate:

wi←wi+η⋅error⋅xiw_i \leftarrow w_i + \eta \cdot \text{error} \cdot x_iwi​←wi​+η⋅error⋅xi​

The bias is updated similarly, except it is not multiplied by an input:

b←b+η⋅errorb \leftarrow b + \eta \cdot \text{error}b←b+η⋅error

where η\etaη is the learning rate.

The learning rate determines how strongly each mistake affects the next version of the perceptron.

  • A small learning rate produces small corrections.

  • A large learning rate produces larger corrections.

  • Repeated updates gradually move the decision boundary toward a better position.

Convergence

At first, a perceptron may classify many examples incorrectly. After repeated exposure to training examples, it adjusts its weights and bias.

For a linearly separable problem, the perceptron can eventually converge on a decision boundary that correctly separates the classes. Once the appropriate weights are found, the perceptron can classify every point in the training problem correctly.


6. The Mark I Perceptron and Early AI Optimism

In 1957, Rosenblatt combined perceptron units with sensors and threshold mechanisms to construct the Mark I Perceptron.

The machine could learn to recognize certain shapes and patterns with relatively little direct human programming. This was revolutionary because it suggested that machines might learn from examples rather than requiring every rule to be written manually.

The perceptron generated enormous enthusiasm. Some observers believed that increasingly sophisticated versions might eventually be able to:

  • Walk

  • Talk

  • See

  • Write

  • Reproduce themselves

  • Become conscious

The early optimism reflected a widespread belief that the perceptron might be a general-purpose learning machine capable of solving almost any problem.

The United States government provided substantial funding for this research, increasing both the resources available and the expectations placed on neural networks.


7. The Perceptron’s Critical Limitation

In 1969, Marvin Minsky and Seymour Papert published a major analysis of perceptrons. They demonstrated that a single-layer perceptron could solve only problems that were linearly separable.

Linear separability

A classification problem is linearly separable if a single straight line can divide the categories in two dimensions. In higher dimensions, the equivalent boundary is a plane or hyperplane.

For example, a perceptron can classify points according to whether they lie on one side or the other of a line.

The circle problem

Consider a task in which:

  • Points inside a circle belong to one class.

  • Points outside the circle belong to another class.

No single straight line can separate every point inside the circle from every point outside it. The boundary must be curved.

Therefore, the problem is not linearly separable, and a single perceptron cannot solve it.

A single perceptron can represent only a linear decision boundary. It cannot solve classification tasks that require fundamentally nonlinear boundaries.

Consequences

Minsky and Papert’s work changed perceptions of neural networks:

  • The perceptron could not solve every possible problem.

  • Its usefulness was limited to a relatively narrow class of tasks.

  • Research funding declined.

  • Government support was reduced.

  • Neural-network research became less popular.

This began the first AI winter, during which neural-network research largely stalled for approximately 15 years.

Frank Rosenblatt died in a boating accident in 1971 at the age of 43, before later developments demonstrated how his original ideas could be extended.


8. Early Multilayer Neural Networks

The limitation identified by Minsky and Papert applied to a single-layer perceptron. It did not mean that neural networks with multiple layers were incapable of solving nonlinear problems.

Ukrainian researcher Alexey Ivakhnenko developed important early multilayer neural-network ideas in the 1960s and 1970s. He built upon Rosenblatt’s work by stacking neurons into multiple connected layers.

Structure of a multilayer network

A multilayer neural network typically includes:

  • An input layer, which receives the data

  • One or more hidden layers, which transform the data internally

  • An output layer, which produces the final prediction

Each neuron in one layer sends its output to neurons in the next layer. The resulting interconnected structure is the familiar neural-network diagram.

Nonlinear activation functions

After calculating the weighted sum, each neuron applies an activation function:

a=f(z)a = f(z)a=f(z)

The activation function determines the neuron’s output.

A nonlinear activation function is essential. If every layer used only linear operations, then a network with many layers would still behave like one large linear transformation. It would not be able to represent curved or complex decision boundaries.

A common modern activation function is the rectified linear unit (ReLU):

ReLU⁡(z)=max⁡(0,z)\operatorname{ReLU}(z) = \max(0,z)ReLU(z)=max(0,z)

ReLU outputs zero for negative values and preserves positive values.

Why multiple layers solve nonlinear problems

Each layer transforms the representation of the input. Early layers may detect simple patterns, while later layers combine those patterns into increasingly complex structures.

For example:

  • An early layer might detect basic geometric features.

  • A middle layer might combine those features into shapes.

  • A later layer might use the shapes to classify an object.

This layered transformation allows a multilayer network to model nonlinear relationships that a single perceptron cannot represent.

The training challenge

Adding hidden layers and nonlinear activation functions creates a major training problem. Rosenblatt’s original perceptron learning rule is not sufficient for efficiently adjusting all the weights in a multilayer network.

Ivakhnenko proposed a technique called the Group Method of Data Handling, but the importance of his work was not widely recognized at the time. Limited interest in neural networks and the isolation of Soviet research contributed to the lack of immediate attention.


9. Backpropagation

During the 1980s, David Rumelhart, Geoffrey Hinton, and Ronald Williams helped popularize backpropagation, an efficient method for training multilayer neural networks.

Backpropagation became one of the foundational algorithms of modern AI because it allows a network to determine how each weight contributed to the final error.


10. Forward Pass Through a Multilayer Network

Consider a simple multilayer perceptron designed to classify whether a point lies inside or outside a circle.

The network contains:

  • An input layer containing the coordinates or features of the point

  • A hidden layer

  • An output layer containing two neurons

The output neurons represent the two possible classes:

  • Inside the circle: expected output (1,0)\left(1,0\right)(1,0)

  • Outside the circle: expected output (0,1)\left(0,1\right)(0,1)

The larger output determines the predicted class.

Steps in a forward pass

  1. Inputs enter the input layer.

  2. Each neuron computes a weighted sum and bias.

  3. The hidden layer applies an activation function such as ReLU.

  4. The hidden-layer outputs are passed to the output layer.

  5. The output layer calculates its own weighted sums.

  6. The output layer applies a probability-producing activation function.

For a neuron in a layer, the calculation is generally:

zj=∑iwjiai+bjz_j = \sum_i w_{ji}a_i + b_jzj​=∑i​wji​ai​+bj​

followed by:

aj=f(zj)a_j = f(z_j)aj​=f(zj​)

where:

  • aia_iai​ is an activation from the previous layer

  • wjiw_{ji}wji​ is the weight connecting the previous neuron to the current neuron

  • bjb_jbj​ is the current neuron’s bias

  • zjz_jzj​ is the weighted sum

  • aja_jaj​ is the resulting activation

Softmax output

The output layer often uses softmax, which converts raw output values into probabilities:

softmax⁡(zi)=ezi∑jezj\operatorname{softmax}(z_i) = \frac{e^{z_i}}{\sum_j e^{z_j}}softmax(zi​)=∑j​ezj​ezi​​

The resulting probabilities add up to 111. This makes the network’s confidence in each class easier to interpret and provides a smooth output that can be used during training.


11. Loss Functions

A neural network’s weights and biases are initially random. The network must therefore measure how far its prediction is from the correct answer.

A loss function assigns a numerical value to the network’s error.

  • A low loss means the prediction is close to the expected answer.

  • A high loss means the prediction is far from the expected answer.

  • Training aims to minimize the loss.

One simple loss function is squared error loss:

L=∑i(y^i−yi)2L = \sum_i \left(\hat{y}_i-y_i\right)^2L=∑i​(y^​i​−yi​)2

where:

  • y^i\hat{y}_iy^​i​ is the network’s predicted output

  • yiy_iyi​ is the expected or ground-truth output

  • LLL is the total loss

The difference is squared so that:

  • Negative and positive errors cannot cancel each other.

  • Larger errors receive greater emphasis.

  • The result is always nonnegative.

A neural network can be viewed mathematically as a function that maps inputs, expected outputs, and parameters to a loss:

Fθ(X,Y)=LF_{\theta}(X,Y)=LFθ​(X,Y)=L

where:

  • XXX represents the input

  • YYY represents the ground truth

  • θ\thetaθ represents all weights and biases

  • LLL represents the resulting loss

The objective of training is to find parameter values θ\thetaθ that make LLL as small as possible.


12. Gradient Descent

Training requires changing the weights and biases in the direction that reduces the loss. Gradient descent is the general optimization method used for this purpose.

A simple one-variable example

Imagine a loss function f(x)f(x)f(x) with a minimum. The current value of xxx represents the current model parameters.

The derivative f′(x)f'(x)f′(x) gives the slope:

  • If f′(x)<0f'(x)<0f′(x)<0, the function slopes downward as xxx increases.

  • If f′(x)>0f'(x)>0f′(x)>0, the function slopes upward as xxx increases.

  • If f′(x)=0f'(x)=0f′(x)=0, the point may be a minimum, maximum, or flat region.

The update rule is:

xnew=xold−ηf′(xold)x_{\text{new}} = x_{\text{old}} - \eta f'(x_{\text{old}})xnew​=xold​−ηf′(xold​)

The derivative is subtracted because the goal is to move downhill toward lower loss.

The learning rate

The learning rate η\etaη controls the size of each update.

  • Learning rate too large: The updates may overshoot the minimum, oscillate, or converge to a poor solution.

  • Learning rate too small: The model may eventually reach a good solution, but training can become extremely slow.

  • Appropriate learning rate: The model moves steadily toward a low-loss region.

Selecting an effective learning rate is therefore central to successful training.

Stochastic gradient descent

The source identifies stochastic gradient descent as an approach for minimizing a loss function. Instead of calculating updates using every training example at once, stochastic methods can use individual examples or small batches, making training more practical for large datasets.


13. Gradients in Neural Networks

A neural network has many parameters rather than just one variable. Each weight can affect the final loss, so training requires the derivative of the loss with respect to every weight.

These partial derivatives together form the gradient:

∇θL=(∂L∂θ1,∂L∂θ2,…,∂L∂θn)\nabla_{\theta}L = \left( \frac{\partial L}{\partial \theta_1}, \frac{\partial L}{\partial \theta_2}, \ldots, \frac{\partial L}{\partial \theta_n} \right)∇θ​L=(∂θ1​∂L​,∂θ2​∂L​,…,∂θn​∂L​)

The gradient indicates how the loss changes when each parameter changes slightly.

The general parameter update is:

θ←θ−η∇θL\theta \leftarrow \theta-\eta\nabla_{\theta}Lθ←θ−η∇θ​L

Although a neural network may contain millions or billions of parameters, the principle remains the same: adjust every parameter in the direction that reduces the loss.


14. How Backpropagation Computes Gradients

Backpropagation efficiently computes the gradient by applying the chain rule of calculus through the network.

It begins at the output layer, where the prediction error is known, and works backward through the hidden layers.

Gradient for a weight

For a weight connecting neuron jjj in one layer to neuron iii in the next layer, the derivative of the loss with respect to that weight can be expressed conceptually as:

∂L∂wij=δiaj\frac{\partial L}{\partial w_{ij}} = \delta_i a_j∂wij​∂L​=δi​aj​

where:

  • δi\delta_iδi​ is the error signal, or delta, for the receiving neuron

  • aja_jaj​ is the activation produced by the neuron in the previous layer

This relationship is important because the same delta appears for every weight entering a particular neuron. Once the delta is calculated, it can be reused for all incoming connections.

The delta term

For an output neuron, the delta combines:

  1. The derivative of the loss with respect to the neuron’s output

  2. The derivative of the activation function

Conceptually:

δi=∂L∂ai⋅f′(zi)\delta_i = \frac{\partial L}{\partial a_i} \cdot f'(z_i)δi​=∂ai​∂L​⋅f′(zi​)

For squared error, the loss-related term is based on the difference between the predicted and expected outputs:

∂L∂ai∝ai−yi\frac{\partial L}{\partial a_i} \propto a_i-y_i∂ai​∂L​∝ai​−yi​

The activation derivative determines how strongly the neuron’s pre-activation influenced its output.

The weighted sum ziz_izi​ and the activation aia_iai​ were already calculated during the forward pass, so they can be stored and reused during backpropagation.

Bias updates

Because a bias is added directly to a neuron’s weighted sum, its gradient is the neuron’s delta:

∂L∂bi=δi\frac{\partial L}{\partial b_i}=\delta_i∂bi​∂L​=δi​

Thus, once the delta is known:

  • A weight update uses the delta multiplied by the preceding activation.

  • A bias update uses the delta directly.

Propagating deltas to hidden layers

For a hidden neuron, its delta depends on the deltas of neurons in the layer ahead of it:

δj=f′(zj)∑iwijδi\delta_j = f'(z_j) \sum_i w_{ij}\delta_iδj​=f′(zj​)∑i​wij​δi​

This means the hidden neuron’s error signal is determined by:

  • The deltas of connected neurons in the next layer

  • The weights connecting the hidden neuron to those neurons

  • The derivative of the hidden neuron’s activation function

The calculation resembles the forward weighted sum, but it proceeds in the reverse direction.

Why it is called backpropagation

Backpropagation is named for the direction in which error information moves:

  1. The network performs a forward pass to produce an output.

  2. The loss is calculated.

  3. Deltas are calculated at the output neurons.

  4. Those deltas are propagated backward through the network.

  5. The gradients are used to update all weights and biases.

This method avoids recalculating the same information repeatedly. Its efficiency makes it possible to train multilayer networks with many parameters.


15. Early Demonstrations of Multilayer Networks

Once backpropagation made multilayer training practical, neural networks began solving tasks that single perceptrons could not handle.

NETtalk

In 1987, Terry Sejnowski and Charles Rosenberg developed NETtalk, a neural network that learned to convert written English into speech sounds.

The system was trained using approximately 10,000 words. Its speech was imperfect, but the demonstration showed that neural networks could learn relationships between written language and pronunciation.

This was significant because the network was not given a complete pronunciation rule for every word. Instead, it learned patterns from examples.

ALVINN

In 1989, Dean Pomerleau developed ALVINN, a neural network designed for autonomous driving.

The system used sensory information to help control a vehicle. It demonstrated that neural networks could be applied to real-world perception and navigation tasks long before autonomous driving became a major commercial research area.

Together, systems such as NETtalk and ALVINN showed that neural networks could be used for:

  • Language and speech

  • Pattern recognition

  • Autonomous navigation

  • Sensor interpretation

  • Real-world decision-making


16. The Second AI Winter

Despite these successes, neural networks still faced severe practical limitations during the 1980s and 1990s.

Computational demands

Complex problems require networks with:

  • Many layers

  • Large numbers of neurons

  • Numerous weights and biases

  • Large training datasets

  • Extensive computation

The computers available during the 1980s and 1990s were not powerful enough to train large neural networks efficiently.

As a result:

  • Training took too long.

  • Large experiments were expensive.

  • Neural networks were often impractical outside demonstrations.

  • Researchers and funders shifted attention to other methods.

This decline in interest marked the beginning of the second AI winter, which extended from roughly the early 1990s into the 2000s.

The central problem was not that neural networks were theoretically incapable. Rather, the available hardware, datasets, and computational resources were insufficient for their potential to be fully realized.


17. The Revival of Deep Learning

In 2012, Alex Krizhevsky, working with collaborators, used a deep convolutional neural network to achieve a major breakthrough in a highly competitive image-recognition challenge. The system, commonly known as AlexNet, was built on ideas associated with Yann LeCun and earlier convolutional-network research.

This achievement demonstrated that neural networks could outperform established computer-vision techniques when provided with:

  • Large training datasets

  • Powerful graphics-processing hardware

  • Deep network architectures

  • Effective activation functions

  • Efficient optimization methods

  • Backpropagation-based training

The breakthrough helped launch the modern deep learning revolution.

Why the timing mattered

Neural networks had existed for decades, but several conditions finally aligned:

  • Computers became dramatically more powerful.

  • Graphics processing units accelerated mathematical operations.

  • Digital datasets became much larger.

  • Storage became cheaper.

  • Better training algorithms and architectures were developed.

  • Researchers gained access to large labeled datasets.

The resulting systems could train networks far larger and more capable than those available during earlier periods.


18. Overall Development of Neural Networks

The historical progression can be summarized as follows:

  1. McCulloch–Pitts neuron: Established a mathematical model inspired by biological neurons.

  2. Rosenblatt perceptron: Added trainable weights, bias, and learning rules.

  3. Perceptron limitation: Demonstrated that a single layer cannot solve nonlinearly separable problems.

  4. Early multilayer research: Showed that stacking neurons could represent more complex functions.

  5. Nonlinear activation functions: Allowed networks to form curved and highly complex decision boundaries.

  6. Backpropagation: Provided an efficient method for calculating gradients through multiple layers.

  7. Early applications: Demonstrated neural networks in speech synthesis and autonomous driving.

  8. Second AI winter: Limited computing power made complex networks impractical.

  9. Deep-learning revival: Larger datasets, better hardware, and improved methods made large neural networks highly effective.

Modern AI is built on the combination of multilayer architectures, nonlinear activation functions, loss functions, gradient-based optimization, and backpropagation.

The most important conceptual transition was from manually programmed machines to systems that adjust internal parameters from examples. Neural networks became powerful not because the basic neuron changed fundamentally, but because researchers learned how to combine many neurons, train them efficiently, and provide enough data and computation for them to discover complex patterns.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent