30 Days of AIDay 3 of 30 · Week 1: The Foundations
Course outline▾

Week 2 · Applied AI & APIs

  1. Day 8Coming soon
  2. Day 9Coming soon
  3. Day 10Coming soon
  4. Day 11Coming soon
  5. Day 12Coming soon
  6. Day 13Coming soon
  7. Day 14Coming soon

Week 3 · Infrastructure & Hosting

  1. Day 15Coming soon
  2. Day 16Coming soon
  3. Day 17Coming soon
  4. Day 18Coming soon
  5. Day 19Coming soon
  6. Day 20Coming soon
  7. Day 21Coming soon

Week 4 · Enterprise Workflows

  1. Day 22Coming soon
  2. Day 23Coming soon
  3. Day 24Coming soon
  4. Day 25Coming soon
  5. Day 26Coming soon
  6. Day 27Coming soon
  7. Day 28Coming soon
  8. Day 29Coming soon
  9. Day 30Coming soon
Open the course page →

Day 3: Inside Neural Networks — The Engine of Modern Deep Learning

2026-10-04 · 17 min read

Classical machine learning algorithms are very good at structured data, like the rows and columns of a spreadsheet. But images, audio and raw text are different: there is no neat column that says "this part of the photo is an ear". To handle that kind of unstructured data, we use Artificial Neural Networks (ANNs).

The Biological Inspiration

An artificial neural network is an information-processing model loosely inspired by the nervous system. In the human brain, billions of simple cells interact and work in parallel, and that teamwork produces complex abilities like recognizing a face. A neural network borrows that idea. It uses simple mathematical units called perceptrons, or artificial neurons, in place of biological cells.

In plain terms: Picture a small committee. Each member (an input) gets a vote, but some members are trusted more than others (the weights). The committee adds up the votes, adds a personal lean (the bias), and then decides whether it is confident enough to speak up (the activation function).

x₁ w₁ x₂ w₂ x₃ w₃ Σ+ bias b f y inputsweightssumactivationoutput y = f( w₁x₁ + w₂x₂ + w₃x₃ + b )
One artificial neuron: each input is multiplied by its weight, the results are added with a bias, and an activation function decides what comes out.

The Anatomy of the Network

A standard neural network arranges these neurons into three kinds of layers:

  • Input layer: receives the real-world data, such as the pixels of an image, and passes it into the network.
  • Hidden layers: sit in between and learn the complicated relationships in the data. When a network links many of these layers together, it is called deep learning.
  • Output layer: delivers the final prediction or classification, such as "Cat, 92%".
Cat 92%Dog 8% Input layerraw pixels Hidden layersfind patterns Output layerthe answer "deep" = many hidden layers
The three kinds of layers: the input layer takes in the data, hidden layers find patterns, and the output layer gives the answer. Many hidden layers make a network deep.

The Mechanics of Learning

A network does not know how to solve a problem when it is created. It learns by adjusting its own internal numbers, through repetition.

  • Weights and biases: as data moves from one neuron to the next, a weight scales it, and a bias is added so the model can fit the data more accurately. These are the numbers the network adjusts as it learns.
  • Activation functions: a gatekeeper that looks at the total a neuron receives and decides what it passes on. Without them, a network could only learn simple straight-line patterns.
0negative inputpositive inputoutput Gate closed: output stays 0 Gate open: signal passes Activation function (ReLU)It decides how much of a neuron's signal moves on.
An activation function acts as a gatekeeper. With ReLU, a neuron stays silent for negative input and passes positive input straight through.
  • Forward propagation: information flows one way, from the input, through the hidden layers, to the output, to produce a prediction.
  • The loss function: once there is a prediction, the loss function measures how far it is from the true answer. A big loss means a big mistake.
  • Backpropagation: to shrink that error, the network works backward through its layers. Using the chain rule from calculus, it works out how much each neuron contributed to the mistake and updates the weights so the next attempt is better.
1. Forward propagation: make a prediction 2. Backpropagation: send the error back inputpredictionThe prediction is compared with the true answer
Learning has two passes: the signal flows forward to make a prediction, then the error flows backward so each weight can be adjusted.

Put together, this is the loop that every neural network goes through during training:

Training data inputs plus the true answers Forward propagation make a prediction Loss function how far off was it? Backpropagation each neuron's share of the error Update the weights nudge them to reduce the error repeat thousands of times
The training loop: predict, measure the error, find who is responsible, adjust, and repeat thousands of times.

As the loop repeats, the loss keeps falling:

highlow Training rounds →Loss (error) → As the network learns, its error falls.
Loss is the size of the network's mistakes. Training pushes it down round after round, quickly at first and then more slowly.

In plain terms: Imagine walking down a foggy hill, trying to reach the lowest point. You cannot see the valley, so you feel the slope under your feet and take a small step downhill, again and again. Training does the same with the weights. This method is called gradient descent.

lowest errorhigh errorWeights are adjusted a little at a time, always downhill. This method is called gradient descent.
Gradient descent: picture the error as a hill. Each update moves the weights one small step downhill until the error is as low as it can get.

Why Deep Learning Changes the Game

Historically, people had to decide by hand which features of the data a model should look at, like edges in an image or word counts in a document. That manual feature design was slow and expensive, and it limited how well the model could do. Deep neural networks remove that bottleneck. They learn the features on their own, layering them inside the network: first simple patterns, then parts, then whole objects, until they can give a clear answer.

Layer 1edges and lines Layer 2shapes and parts Layer 3whole objects Each layer builds on the one before it.No human told it to look for edges, shapes or ears. It learned them.
Deep learning builds understanding in steps: simple edges first, then shapes and parts, then whole objects. The network works this out itself.
Classical machine learning Raw data Features designed by people Model Answer manual, slow and costly Deep learning Raw data Neural network learns its own features Answer automatic: no hand-made features
The big change: classical machine learning needs people to design the features by hand, while a deep network learns them from the raw data.

Coming Up Next

Day 4: The AI project lifecycle, from raw data to production deployment.

#ArtificialIntelligence #DeepLearning #NeuralNetworks #MachineLearning #AILearning #TechEducation #DataScience #Innovation