Tech Terms Explained Open in the app →

Neural Network

AI & Machine Learning · Intermediate · 5 min read

What is it?

A neural network is a machine learning model loosely inspired by the brain, made of connected units that together learn to map inputs to outputs.

Explain like I'm 5

A neural network is like a huge team passing notes: each person tweaks the message a little, and through practice the whole team learns to turn a question into the right answer.

Why was it created?

Researchers wanted models that could learn flexible patterns from examples rather than following fixed rules, taking inspiration from how brains process signals.

Where is it used?

  • Image and speech recognition
  • Language models
  • Predictions and classification
  • Recommendation systems

Why should developers care?

Neural networks are the engine behind deep learning and modern AI, so understanding them demystifies how today's AI works.

How does it work?

Inputs flow through layers of artificial neurons; each connection has a weight. The network multiplies and combines values, applies simple functions, and produces an output. Training adjusts the weights to reduce errors over many examples.

Real-world example

A neural network trained on handwriting examples learns to read scanned digits, correctly recognizing new ones it hasn't seen.

Common use cases

  • Classification (spam, objects)
  • Prediction
  • Pattern recognition in images/audio
  • Building blocks of deep learning

Advantages

  • Learns complex, non-linear patterns
  • Flexible across many problem types
  • Improves with data
  • Foundation for deep learning

Disadvantages

  • Needs lots of data to do well
  • Hard to interpret decisions
  • Can overfit
  • Computationally expensive

When should you use it?

When relationships in data are complex and hard to capture with simple formulas.

When should you avoid it?

For small or simple datasets where lighter, interpretable models work better.

Alternatives

Decision treesLinear/logistic regressionSupport vector machines

Related terms

Deep LearningMachine LearningTransformerTrainingInference

Interview questions

Beginner

  • What is a neural network?
  • What is a neuron in this context?

Intermediate

  • What is a weight?
  • What does training adjust?

Senior

  • What is backpropagation at a high level?
  • Why can deep networks overfit, and how do you mitigate it?

Common misconceptions

  • "Neural networks work like the human brain" — they're loosely inspired but mathematically very different.
  • "A neural network understands what it processes" — it learns statistical mappings, not meaning.

Fun facts

  • The 'neurons' are simple math functions, not biological cells.
  • Stacking many layers of them is what makes a network 'deep'.

Timeline

  • 1958 — Early neural network model (the perceptron) introduced
  • 2010s — Deep neural networks drive the AI boom

Learning resources

Quick summary

A neural network is a layered model of weighted connections that learns to map inputs to outputs from examples, forming the basis of deep learning.

Cheat sheet

  • Layers of weighted 'neurons'
  • Learns by adjusting weights
  • Loosely brain-inspired math
  • Foundation of deep learning

If you remember only one thing

A neural network learns by adjusting the weights between simple connected units until inputs map to the right outputs.