What Is an AI Model
How does a phone app read a number you wrote by hand? Navika, in Dallas, photographs a handwritten note from her older sister Srihitha, and her phone turns the scribbled "52" into typed text. Nobody wrote a rule for every way a person can write a 5 or a 2. Something inside the app learned what handwritten digits look like.
That something is a model. You have met the word in every lesson so far; this lesson explains exactly what it means.
A Model, Defined
An AI model is a computational system that learned patterns from data and uses them to produce outputs. Three parts of that sentence matter:
- "Learned patterns from data": the model was trained on examples, such as thousands of handwritten digits with their labels.
- "Uses them": once trained, the model applies those patterns to new input it has never seen.
- "Produce outputs": a prediction, a label, a piece of text, an image or a number.
The Handwritten Digits Example
Reading handwritten digits is one of the classic problems in machine learning. For decades, researchers taught and tested models on a public collection of 70,000 handwritten digits, known as MNIST. The steps are the same ones you saw in the picture:
| Step | What happens | In the example |
|---|---|---|
| 1. Collect data | Gather many examples with labels | Thousands of handwritten digits, each marked 0 to 9 |
| 2. Train | The model adjusts itself to match the labels | It learns which loops and lines make a 2, a 5 or an 8 |
| 3. Use (inference) | Give it new input and read the output | A new "52" comes out as the text 52 |
Notice that the trained model doesn't contain the training photos. It contains what it learned from them, stored as numbers. You will see what those numbers are in "Parameters: What a Model Learns".
Input, Model, Output
Every model, however large, follows the same shape: input → model → output.
| Model | Input | Output |
|---|---|---|
| Digit reader | A photo of handwriting | The digits it shows |
| House-price model | Area, bedrooms, age, location | A predicted price, such as $284,000 |
| Spam filter | An email | Spam or not spam |
| Chat assistant's language model | Your question, as text | A reply, as text |
Common Mistakes
Thinking a model is the whole app. The model is one part; the app around it adds the screen, the rules and the checks, as "Model vs Application vs Interface" shows.
Thinking a model stores its training data. It stores learned numbers, not a copy of every example.
Thinking a model's output is a fact. It is the model's best guess, based on patterns, and it can be wrong.
Interview Corner
What is an AI model?
A computational system that learned patterns from data and uses them to produce outputs. It is trained on examples, then applied to new input, such as reading a handwritten number or predicting a price.
What is the difference between training a model and using it?
Training adjusts the model so its outputs match the labels in the training data. Using it, called inference, gives the trained model new input and reads its output. The next chapter covers both in detail.
Practice
Exercise: input, model, output. Pick five AI features you use, such as photo search, voice typing or a map's arrival time. For each one, write the input, the kind of model it probably uses, and the output. Which one was hardest to describe, and why?
Check your understanding:
- Define an AI model in one sentence.
- Does a trained digit reader contain the photos it learned from?
- What are the input and output of a spam filter?
Key Takeaways
Quick reference
| Term | Meaning |
|---|---|
| Model | A system that learned patterns from data and uses them to produce outputs |
| Training | Adjusting a model so its outputs match the training labels |
| Inference | Using a trained model on new input |
| Input | What goes into a model, such as a photo or a question |
| Output | What comes out, such as a label, a number or text |
Was this tutorial helpful?