Introduction
Your phone unlocks when it sees your face, your keyboard finishes your sentence, and the app that recommends your next film seems to know your taste better than your friends do. Behind all three sits the same piece of machinery: a neural network. It is the engine under almost every meaningful AI application of the last decade, and yet most people cannot explain what one actually is.
A neural network is not a brain. It is a mathematical function made of layers of simpler functions, with millions of adjustable numbers called weights. You feed it input data, it produces an output, and you measure how wrong that output was. A process called backpropagation traces the error backward and adjusts the weights slightly so the next prediction is a little more accurate. Repeat that millions of times and the network learns. This guide works through it slowly, with no maths beyond multiplication and no jargon left unexplained.
This guide works through it slowly, with no maths beyond multiplication and no jargon left unexplained. You will meet the three moving parts, the training loop, the main types and their limits, and you will finish knowing exactly what to ask the next time someone says the words artificial intelligence.
Key takeaways
- A neural network is a model built from layers of units called neurons, linked by adjustable weights, that learns patterns from examples.
- Each neuron takes numbers in, multiplies each by a weight, adds them together, adds a bias, and passes the result through an activation function.
- Training is a loop: guess, measure the error, trace it back with backpropagation, and nudge every weight slightly with gradient descent.
- Convolutional networks suit images, recurrent networks suit sequences, and transformers now power most large language models.
- Networks are pattern matchers, not thinkers: they need huge amounts of data, they fail on unfamiliar data, and they cannot explain their own answers.
What a Neural Network Actually Is
A computer screen shows lines of code naming a transformer model. A neural network is a computer program that learns to identify patterns by studying many examples, loosely based on the brain. Your brain contains about 86 billion neurons, and when you learn, the connections between certain neurons strengthen; when you forget, they weaken. A neural network borrows that basic idea: it is a mathematical system made of nodes connected to each other, and each connection has a weight, a number that determines how strongly one node influences another. When a neural network learns, it adjusts those weights.
The name is the first trap. A network does not understand anything, and it does not know what a cat is in the way you do. It has simply been shown so many labelled pictures of cats that its weights now score cat-like patterns highly. Show it a picture it has never seen and it guesses, using the patterns it extracted from the pictures it was shown. Change the task, and the patterns it learned no longer apply. A neural network is also only one kind of AI model, not the product that uses it: a chatbot may include several models and a great deal of ordinary software.
Neurons, Layers and Weights: The Three Moving Parts
Blue and white fibre-optic cables plug into a patch panel in dense rows, a stand-in for a network’s connections, each carrying a weight. A neuron, also called a node, is a simple unit that receives numbers, combines them and passes on a result. It takes several numbers as input, multiplies each by a weight, adds them together, adds a bias value, and passes the result through an activation function. The activation function is usually something simple, such as ReLU, which outputs the input if it is positive and zero if it is negative. Without activation functions, stacking layers would be mathematically equivalent to just one layer.
The neurons are organised into layers. The input layer receives the raw data. Hidden layers sit between the input and the output, transforming the data step by step. The output layer produces the final prediction. When a network has many hidden layers, it is called a deep neural network. Depth lets the network learn hierarchical features: early layers detect edges, while deeper layers recognise faces or cars. A single neuron is trivial. Together, in layers of thousands, they become capable of representing remarkably complex functions.

How a Network Learns: Training, Step by Step
A server rack glowing blue, the hardware that runs the training loop. Before training, a network’s weights are set to small random numbers. Training adjusts those weights until the predictions become accurate, and it needs labelled examples: inputs where you already know the correct answer. For each example, four things happen: First, the forward pass: data flows through the layers until the output layer produces a prediction. Second, the loss: the prediction is compared to the correct answer. The goal of training is to minimise the loss across all training examples.
Third, the backward pass, called backpropagation: it applies the chain rule from calculus to trace how each weight affected the final error, going backward from the output layer to the input layer. Fourth, gradient descent: every weight is nudged slightly in the direction that reduces the error, by an amount set by the learning rate. Then the loop repeats. Think of it as throwing darts while blindfolded: guess, measure, adjust, and throw again. The network never sees the rule; it only sees examples. That is also why training is expensive: a large network may need to see its examples many times over, on specialised hardware, for days or weeks.

The Main Types: CNN, RNN and the Transformer
A laptop screen shows a chatbot greeting its user, the interface a transformer model sits behind. Different architectures suit different data. A feedforward network is the simplest: data moves in one direction only, from input to output, with no loops or memory, and it suits tabular data and simple prediction. A convolutional neural network, a CNN, is built for spatial data, particularly images. It uses small learned filters that slide across the input to detect edges, textures and shapes. CNNs are the standard choice for image tasks.
A recurrent neural network, an RNN, is designed for sequential data: it feeds the output of one step back as input to the next, giving the network a short-term memory for speech recognition and forecasting. Its drawback is the vanishing gradient problem: as a sequence gets longer, the signal from early steps fades. LSTMs fix that with gates that decide what to keep and what to forget. Then came the transformer, introduced in 2017 in the paper “Attention Is All You Need”. Instead of processing a sequence step by step, a transformer uses self-attention, weighing every word against every other word at once. That allows parallel processing, so transformers train far faster than RNNs at scale, and they now power most modern large language models. They are hungry for data and computing power.
| Architecture | Best for | Data appetite | Training cost |
|---|---|---|---|
| Convolutional (CNN) | Images, video, spatial data | High | High |
| Recurrent (RNN) | Short sequences, speech | Medium | Medium |
| LSTM | Longer sequences, time series | Medium | Medium to high |
| Transformer | Language, vision, multimodal models | Very high | Very high |
The last two columns are relative, not prices: no one publishes a standard price for training a network. The practical reading is simple. For images, start with a pre-trained CNN. For text, start with a pre-trained transformer. Almost nobody trains either from scratch any more; the usual move is to take a model someone else trained and fine-tune it.

Where You Already Meet Neural Networks
A hand holds a phone showing a chatbot on a wooden table, the keyboard open. You meet neural networks far more often than you notice. When your phone unlocks with your face, a CNN is comparing the shape of your face to the pattern it stored. When your keyboard suggests the next word, a small language model is predicting it from the words you just typed. When your photos sort themselves into albums, a CNN has tagged them. When a streaming service recommends a film, a network has learned what people like you watch. And when you talk to a voice assistant or a chatbot, a transformer is turning your words into a reply, one word at a time.
In hospitals, CNNs help radiologists spot patterns in scans, though always with a clinician in charge, since a network’s answer is a probability, not a diagnosis. That is a useful test for every claim you hear about AI: ask where the examples came from, and how many there were. Our guide to the BAC calculator is a useful contrast: a calculator follows a formula a person wrote down, while a network learns its own formula.

What Neural Networks Cannot Do
Words alone carry this section, because what it describes is an absence rather than a thing, and a picture of a robot would only suggest powers the technology does not have. A network cannot understand what it is doing. It can caption a photograph of a dog without knowing what a dog is. It cannot reason about things it has not seen: show it data unlike its training data and it fails, and a language model asked about a subject with little training data will invent a confident answer that is simply wrong. It cannot explain itself either. Researchers call this the black box problem: a network cannot tell you why it gave a particular answer, which is why its answers need checking whenever the stakes are high.
A network also cannot learn without data, and data carries the biases of whoever collected it. And a network cannot want anything or be responsible for anything. When a network makes a mistake, the responsibility sits with the people who built it and chose its data.
A Short History, and How to Try One Yourself
Server cabinets in a data centre, the hardware that modern training runs on. The idea is older than the hype. In 1943, McCulloch and Pitts published the first model of a neuron. In 1958, Frank Rosenblatt described the perceptron, the first trainable network, which learned simple shapes. In 1969, Minsky and Papert proved the limits of single-layer perceptrons. The breakthrough came in 1986, when Rumelhart, Hinton and Williams published backpropagation in Nature, a practical way to train networks with hidden layers. In 2012, AlexNet won the ImageNet competition with a top-five error rate of 15.3 percent against the runner-up’s 26.2 percent, and deep learning became the default for vision. In 2017, eight researchers at Google published “Attention Is All You Need”, introducing the transformer.
Trying one yourself needs no code. Open a chatbot, ask it a question, then ask it again with one word changed, and watch how the answer moves. Or open a photo app and search your own pictures for “dog” and then for “beach”, and notice which pictures it finds and which it misses. For the mornings when the phone is the first thing you reach for, our guide to phone-free mornings is a good start, and our guide to building a morning routine you will actually keep puts the experiment in its place.

Conclusion
A neural network is a machine that learns patterns from examples: neurons that combine weighted numbers, layers, and training that guesses, measures the error and nudges the weights. Convolutional networks read images, recurrent networks read sequences, and transformers read language. They are already everywhere, and they are also limited: they do not understand, they fail on unfamiliar data, and they cannot explain themselves. Next time an app seems to read your mind, remember this: it saw a pattern, and it guessed.



