How Neural Networks Think — An Interactive Explorable Explanation
When you see a handwritten '3', your brain instantly recognizes it. But a computer just sees a grid of pixels. To build a neural network, our first step is to unroll that 2D grid into a single 1D column of numbers. We call these containers Neurons.
We don't jump straight from pixels to the final answer. Neural networks use Hidden Layers to build abstractions. Imagine if the second layer learned to recognize tiny edges, and the third layer combined those edges into loops and lines.
Let's zoom in on just one neuron to see the math. A neuron calculates its activation by taking a weighted sum of all the neurons connected to it, plus a baseline bias.
There's a catch in the math above. A weighted sum can result in any number, like +45 or -12. But we want our neuron's activation to represent an intensity between 0 and 1. To fix this, we pump the result through an Activation Function like the Sigmoid curve.
When you have 13,000 weights, calculating them one by one is too slow. Engineers group the activations into a vector, the weights into a matrix, and compute the whole layer at once using Linear Algebra.