What is a Neural Network? (Brains Made of Dominoes and Seesaws)

Demystifying artificial brains: how millions of simple math decision-makers pass clues to one another in layers, moving from simple edges to complex thoughts.

Foundational Knowledge & Simpler Primers
Need a simpler explanation or feeling stuck?

Need a quick refresher on how words and photos become numbers or how computers learn? Review:

Unsure of mathematical notation or technical terms on this page? Our 57-term AI Glossary breaks down every concept with plain-English analogies and rigorous engineering specs.
Open AI Glossary (57 Terms)

1. Theoretical Motivation & Foundations

People often call neural networks 'artificial brains.' That makes them sound like mysterious sci-fi aliens. In reality, an artificial neuron is as simple as a playground seesaw. Imagine you have to make a decision: 'Should I ride my bike to school today?' You have three clues: 1) Is it sunny? 2) Is your bike tire flat? 3) Did your best friend ride their bike today? Each clue doesn't matter equally. If your tire is flat, nothing else matters—you can't ride! So you assign an 'importance dial' (a Weight) to each clue. You multiply each clue by its weight, add them all up, and see if the total passes your threshold. If the total is heavy enough, the seesaw tips over, and the answer is 'YES!' That is all a single artificial neuron does: it weighs clues and fires a YES or NO. Now, here is the secret of Deep Learning: what if you take 100 of these seesaws, and connect their outputs to another 100 seesaws, and another 100? Think of it like a team of detectives. The first detective only looks for straight lines. The second detective takes those lines and spots circles. The third detective takes circles and spots wheels. The final detective looks at the wheels and screams: 'It's a bicycle!' That assembly line of detectives passing clues forward is a deep neural network.

2. Mathematical Formulations & Derivations

The governing analytical formulations and proof frameworks for this module:

The Anatomy of One Artificial Neuron (The Math Seesaw): Input Clues: x₁, x₂, x₃ Importance Dials (Weights): w₁, w₂, w₃ Starting Bias (How easy it is to tip the seesaw): b Step 1: The Weighted Sum Total_Push = (x₁ × w₁) + (x₂ × w₂) + (x₃ × w₃) + b Step 2: The Activation Function (Did the seesaw tip?) ReLU Function: Output = max(0, Total_Push) If Total_Push is negative, the seesaw stays flat (Output = 0). If Total_Push is positive, it fires the clue forward to the next layer!

3. From-Scratch Reference Implementation

Executable, production-tested reference code without magic libraries:

# Building a Single Artificial Neuron From Scratch def artificial_neuron(clues: list, weights: list, bias: float) -> float: # 1. Multiply each clue by its importance dial and add the bias weighted_sum = sum(c * w for c, w in zip(clues, weights)) + bias # 2. Activation: Only fire if the total push is positive (ReLU) return max(0.0, weighted_sum) # Let's test: 'Should we go to the beach?' # Clues (1 for YES, 0 for NO): [Is Warm?, Is Weekend?, Is Raining?] # Notice the negative weight for rain: rain pushes the seesaw the WRONG way! importance_dials = [3.0, 2.0, -8.0] threshold_bias = -1.0 # Needs at least a little positive evidence to go day1_clues = [1, 1, 0] # Warm, weekend, not raining day2_clues = [1, 1, 1] # Warm, weekend, BUT RAINING! decision_day1 = artificial_neuron(day1_clues, importance_dials, threshold_bias) decision_day2 = artificial_neuron(day2_clues, importance_dials, threshold_bias) print('Day 1 Enthusiasm Score:', decision_day1) # Fires strongly (>0)! print('Day 2 Enthusiasm Score:', decision_day2) # Zero! Rain blocked it completely.

4. Systems Complexity & Memory Footprint

First Principles Takeaway: A single neuron can only draw a straight dividing line. By stacking layers of neurons into a deep network, they can approximate any non-linear shape or concept in the universe.

5. Canonical Literature & Primary Research

Original research papers and foundational texts recommended for advanced study:

  1. McCulloch, W. S., & Pitts, W. (1943). A logical calculus of the ideas immanent in nervous activity. Bulletin of Math Biophysics.
  2. Cybenko, G. (1989). Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals and Systems.
  3. LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436-444.
Next Page for Further Learning
Mastered this concept? Keep advancing

Take your understanding of neural networks into language models and real-world safety: