The Magic of Artificial Intelligence

A two-part series for readers 12 and up

15 minute read

Published:

Part 1: How a Brain Learns

A village of small houses connected by dirt roads. On the left, Echo the gray rabbit hears thunder under a dark cloud labeled "BOOM!". Orange arrows carry the message along the roads toward a carrot store on the right, where Mina the white rabbit stands in the rain. A blue arrow marks a new shortcut cut across the grass between two roads. Echo hears the thunder, Mina feels the rain, and after enough storms a new shortcut appears in the village.

BOOM.

Echo the rabbit lives at the edge of a village. Her job is to listen for sounds from the sky. Not far away, her friend Mina watches for water falling from above. The village has never seen rain.

Every house in the village is connected by roads to a few neighbors. A message can travel only from house to house, carried by running rabbits. There is no telephone and no town square. If Echo hears something, she tells her neighbors, they tell theirs, and the news slowly moves inward.

One afternoon, Echo hears an enormous BOOM. She sends the news down the road. A few minutes later, Mina feels the first drops of water and sends a different message. Soon the rain is heavy enough to soak the village’s carrot stores, and the rabbits rush to cover them. To the rabbits, the two events, the boom and the rain, have nothing to do with each other.

Then it happens again. BOOM, then rain. And again. Each time, the same messages run through the same parts of the village. Roads that get used a lot become smoother and faster. Rabbits start cutting across the grass between houses that were never connected. After enough storms, those shortcuts become real paths.

One day Echo hears BOOM, but no rain has started. Because the village has changed, her message races to the rabbits who guard the carrots. They cover them before Mina feels a single drop. Minutes later, the rain arrives.

Nobody taught the village

The village has learned that thunder predicts rain. But look closely. There was no teacher, no lesson, and no wise rabbit who knew the answer in advance. Thunder and rain simply happened in the same order, again and again. Each repetition changed the roads a little. In the end, the first event was enough to prepare the village for the second.

Here is the strange part. Where does that knowledge live? Not in any one rabbit. You could ask every rabbit in the village and none of them could explain the rule. The knowledge is in the roads. It is in the way the connections between houses have changed.

Now take the rabbits out of the story. The houses become neurons, the cells that do the work in your brain. The roads become synapses, the connections between neurons. The running rabbits become the tiny electrical and chemical signals that flash through your brain every moment of your life.

The picture is simplified, but the central idea is real. Learning changes the connections in your brain.

Your brain is not a hard drive

Most people imagine learning as putting facts into your head, the way you save a file on a computer. That is not how it works. Knowledge is not placed inside you. Learning changes the system that does the thinking.

Your brain has about 86 billion neurons. That is more than ten times the number of people on Earth. You were not born with 86 billion blank cells waiting to be programmed. Before you were born, your genes had already built an enormous amount of structure. A newborn baby can breathe, swallow, turn toward sounds, and prefers faces over almost anything else. Nature gives the brain a remarkable starting point. But it does not finish the job. Experience keeps shaping the wiring for years.

Scientists call this ability to change neural plasticity. Connections between neurons can get stronger or weaker. New ones can form. Unused ones can fade away. During childhood and your teenage years, your brain is rewiring itself constantly. Repetition matters because a path that is used again and again becomes fast and easy, just like the rabbits’ shortcuts.

Think about reading

You can see the result in almost everything you know how to do. When you first learned to read, you had to recognize each letter, match it to a sound, glue the sounds into a word, and then connect the word to a meaning. Today you can look at a whole sentence and understand it without noticing any of those steps.

The sentence did not become easier. Your brain became better at processing it.

The same thing happens with typing, swimming, riding a bicycle, speaking a language, or playing an instrument. At first, a skill demands all of your attention. With practice, your brain reorganizes the job so that most of it runs automatically. This is why experts make hard things look effortless. Years of difficult practice have been turned into efficient brain wiring.

Sleep is part of this process too. While you sleep, your brain replays and sorts what you learned during the day and locks the important parts in place. That is why an all-night study session is a poor trade. You gain a few hours of studying and lose the part of the night that makes the studying stick.

A question that changed computer science

By the time you are a teenager, your brain has been shaped by more than a decade of faces, words, friendships, mistakes, and practice. You are not just carrying those experiences around like a stack of files. They built the network you now use to understand everything new.

Which leads to a question that computer scientists began asking decades ago. If a living brain can learn by changing its connections, could we build an artificial network that learns the same way?

The answer turned out to be yes. And that is where the magic of artificial intelligence begins. Next: how to build a brain out of numbers, why chatbots can be confidently wrong, and how to keep your own brain in charge.

Words to know

  • Neuron: a brain cell that sends and receives signals.
  • Synapse: the connection between two neurons. Learning makes some synapses stronger and others weaker.
  • Neural plasticity: the brain’s ability to rewire itself through experience.

Try this

Pick a skill you now do without thinking, such as tying your shoes or reading a sentence. Try to notice every small step involved. Hard, isn’t it? That is your brain’s wiring doing the work for you.

Part 2: How a Machine Learns

In Part 1, a village of rabbits learned that thunder predicts rain. Nobody taught them. The roads between their houses simply changed with every storm. Your brain learns the same way: experience changes the connections between neurons. Now let’s build one out of numbers.

From Brain to Artificial Intelligence. Left: a biological neural network, where sensory input from the eye, ear, and hand flows into neurons joined by synapses. A large arrow labeled "Inspired the idea of neural networks" points right to an artificial neural network: input circles, two layers of artificial neurons joined by weights, and prediction circles. A banner reads "Both learn by changing connections." A brain and an artificial neural network are built from very different parts, but both learn by changing connections.

A neuron made of math

An artificial neuron is not a living cell. It is a small calculation. It takes in some numbers, multiplies each one by another number called a weight, adds everything up, and passes the total through a simple rule that decides how strongly it “fires.” Connect millions or billions of these together and you have an artificial neural network.

The weights are the roads of the rabbit village. A big weight means one part of the network strongly influences another. A small weight means a faint connection. And here is the key idea: learning means changing the weights.

Learning by making mistakes

Early attempts at artificial intelligence tried to write down rules. If this happens, do that. Rules are useful, but the real world is far too messy to describe with a list of instructions. Try writing the rules for recognizing a cat in a photo.

Machine learning takes a different approach. Instead of being told the rules, the network is shown examples and adjusts itself when it gets things wrong.

Go back to the rain. Feed the network measurements: how loud the sky is, how dark, how humid. Ask it to predict “rain” or “no rain.” If it guesses wrong, a training program works out which weights contributed to the mistake and nudges them so the next guess is a little better. Repeat this thousands or millions of times, and the network can predict rain without anyone ever telling it that thunder matters.

How a Neural Network Is Trained, in five steps joined by arrows: 1, training examples such as images of a dog, a mountain, and a car, and text such as "The capital of France is Paris"; 2, the neural network with input, hidden, and output layers; 3, a prediction, where a mountain photo gets the label "mountain"; 4, the prediction compared with the correct answer, with a small loss; 5, the weights updated, some decreased and some increased. The loop returns to step 1, and the result is a better next prediction. Training a network: show an example, make a guess, compare with the right answer, adjust the weights, repeat.

Peek under the hood

An artificial neuron is just a weighted sum. Suppose our rain neuron has three inputs, each equal to 1 if true and 0 if false, and three weights it learned during training:

rain score = 0.8 × thunder + 0.5 × dark clouds + 0.1 × humid air

  • Thunder and dark clouds, but dry air: 0.8 + 0.5 + 0 = 1.3. That is above the threshold of 1, so the neuron fires: rain.
  • Humid air only: 0.1. Far below 1, so no rain.

Training changed nothing about the formula. It only changed the three weights. The weight on thunder started near 0 and grew to 0.8 because thunder kept showing up before rain, exactly like the rabbits’ shortcut wearing into a path.

Chatbots learn through an even simpler game. Show the network part of a sentence and ask it to guess the next word. Compare the guess with the real next word. Adjust the weights. Do this on a mountain of text, and the network gradually learns grammar, facts, styles, and even how to explain a chemistry problem. No teacher labels anything. The patterns in language provide the lessons, just like the storms taught the rabbits.

Why it happened now

The ideas behind neural networks are decades old. For a long time, computers were too slow and there was not enough data. Then three things changed at once. The Internet produced enormous piles of text and images. Computers got dramatically faster. And graphics chips, originally built for video games, turned out to be perfect for the kind of math that networks need. In 2012, a network called AlexNet used those chips to win an image recognition contest by a huge margin. In 2017, a new design called the transformer made it practical to train networks on almost unimaginable amounts of text. Today’s chatbots are its descendants.

Not a library, not a brain

So a chatbot is not a giant library with a prepared answer to every question. It is a network of billions of weights, shaped by predicting text. When you ask it something, it builds a reply one word at a time. That is why it can answer a question nobody has ever asked in exactly that way. It has learned patterns it can recombine.

It is also not a brain. A neuron is a living cell. An artificial neuron is a calculation. Your brain grew through a body, senses, feelings, and friendships, and it keeps rewiring itself every day. A chatbot’s weights are frozen once it is released. Talking to it does not change it.

The catch

Because the network learns from examples, it can learn the wrong thing. Imagine someone in the rabbit village started banging a drum on sunny days. The rabbits would cover the carrots for nothing, until enough clear-sky booms rewired the roads again.

Computer scientists have an old saying: garbage in, garbage out. A network trained on badly labeled photos learns the wrong categories. A network trained on biased text can repeat the bias. And a chatbot can give you an answer that sounds smooth and confident while being completely false. That is not a mystery. Its training rewards text that sounds right, not text that has been checked against the truth. Sounding fluent proves the words fit a pattern. It does not prove they are true.

The same catch applies to you

Here is where artificial intelligence becomes a lesson about human intelligence.

Your brain also learns from whatever reaches it: teachers, friends, books, videos, and social media. Most of what you know, you learned from someone else. That is normal and necessary. But a source can be sincere and still be wrong, and hearing something many times does not make it true.

Psychologists call one of our biggest traps confirmation bias. Once you believe something, evidence that agrees with you feels convincing, and evidence that disagrees is easy to ignore. In the language of the village, some roads become so familiar that your thoughts always take them. Critical thinking means deliberately exploring the roads you would normally skip.

It helps to separate what you saw from what you concluded. “She walked past me without saying hello” is an observation. “She walked past me because she doesn’t like me” is an interpretation. The interpretation might be right, but it needs more evidence.

So when something matters, ask three questions. Where did this come from? Is there a second source that says the same thing? What would make me change my mind? Apply those questions to your teachers, to this article, and especially to AI. If a chatbot gives you a source, open the source. Do not just trust the citation.

Keep your brain in charge

AI can explain a math problem, summarize a chapter, fix your essay, or write code in seconds. That is extraordinary. But there is a danger hidden inside the convenience. A machine can hand you the answer without giving you the experience that would have changed your brain. Remember: the sentence did not get easier, your brain got better. The struggle is often the part that builds the wiring.

So use AI as a tutor, a critic, and a tool. Ask it to explain something a different way, quiz you, or point out the weak spots in your argument. And sometimes close it, wrestle with the problem yourself, and make sure the understanding belongs to you.

Nobody knows which AI tools will matter in ten years. The best preparation is not mastering one app. It is becoming very good at learning new things, and knowing enough about a subject to notice when a machine is wrong.

The real magic

Artificial intelligence may be one of the most important technologies of your lifetime. But its most interesting lesson is an old one. What we learn depends on what reaches us, how we process it, and whether we stay willing to learn again.

Maybe that is the real magic. Not a spell, but the remarkable fact that patterns, repetition, and changing connections can produce abilities that no single part possesses alone. A rabbit village can learn to predict rain. A pile of numbers can learn to write. And a teenager with a curious, well-rested brain can learn almost anything.

Stay curious. Keep asking questions. And whenever the evidence demands it, do not be afraid to build a better road.

Words to know

  • Weight: a number that controls how strongly one artificial neuron influences another. Training changes the weights.
  • Training: showing a network many examples and adjusting its weights each time it makes a mistake.
  • Confirmation bias: the habit of noticing evidence that supports what you already believe and ignoring evidence that does not.

Try this

Ask an AI chatbot a factual question about something you know well, such as your favorite sport or a historical event. Then check its answer against a trusted source. Did it get everything right? Did it sound confident anyway?

← All Pensées