Back to Learn

AI Fundamentals

Core concepts, history, and use-cases of AI.

Last updated: July 2026

Artificial IntelligenceMachine LearningDeep LearningGenerative AI
How AI Fundamentals worksletslearngenai.com
Listen: AI Fundamentals (student & teacher)StudentTeacher
0:000:00

AI fundamentals are the core ideas that explain what Artificial Intelligence (AI) is, how it works, why it exists, and how its main parts fit together: machine learning, deep learning, neural networks, and generative AI. Once you understand these basics, you can see the building blocks behind almost every AI product you use today, from email spam filters to voice assistants to large language models.

AI is no longer locked away in research labs. It now shapes hiring decisions, medical diagnoses, customer service, content creation, and even national security policy. Without a solid grasp of the fundamentals, it is hard to judge an AI tool fairly, question its answers, build a responsible system, or explain to someone else why it behaves the way it does.

ComponentWhat it doesExample
Data
AI systems learn from data. Data is the raw material of every model: text, images, numbers, audio, video, or code.To build an AI that spots tumors in X-rays, doctors gathered thousands of labeled X-ray images. Some were marked 'tumor present,' others 'no tumor,' and the AI learned from this labeled set.
Algorithms (Learning Methods)
An algorithm is a set of rules an AI follows to learn patterns from data. Different problems call for different algorithms.Netflix uses a collaborative filtering algorithm. It notices that people who watched Show A and Show B also tend to watch Show C, so it recommends Show C. No manual labels needed.
Models
A model is what you get after training an algorithm on data. It is a mathematical function that turns inputs into outputs.GPT-5.5, Gemini, and Claude are all large language models (LLMs). When you type a question, the model uses learned patterns to predict the most likely useful response.
Training and Inference
Training is where an AI learns. Inference is when a trained model gives answers on new data it has never seen.Training is like a student studying for an exam over several months. Inference is taking the exam and answering new questions using everything learned during study.
Neural Networks
Computing structures loosely inspired by the human brain. They use layers of connected nodes that process and transform data.When you upload a photo to Instagram, a neural network scans the image layer by layer. It picks out edges first, then shapes, then objects, to decide whether the photo shows a face.
Foundation Models and Generative AI
Large models trained on huge, broad datasets that you can adapt (fine-tune) for many specific tasks. Generative AI creates new content such as text, images, code, or audio in response to a prompt.GPT-5.5 is a foundation model. A healthcare company fine-tuned it for patient intake summaries. A legal firm fine-tuned it for contract review. Same base model, very different uses.

Full assembled example

Problem: 'Build a system that classifies customer support emails by urgency.'
Component 1 (Data): 10,000 labeled support emails (Low/Medium/High urgency).
Component 2 (Algorithm): Supervised classification (fine-tuned BERT model).
Component 3 (Training): Model trains on 8,000 examples; validates on 1,000.
Component 4 (Inference): New email arrives → model outputs: { urgency: 'High', confidence: 0.94 }
Component 5 (Result): Email auto-routed to priority queue.

Core Principles

  • 1AI Learns from Patterns in Data, Not from Rules - A rule-based spam filter needs a developer to write each rule by hand, like 'block emails containing click here to win.' A machine learning spam filter works differently: it trains on millions of labeled emails and learns spam patterns on its own, including patterns the developer never thought of.
  • 2All Models Have Limitations and Make Mistakes - An AI trained only on English medical data will do worse on clinical notes written in French or Swahili. A model trained in 2023 will not know about events from 2025. These are not bugs. They are built-in limits of what the model has seen.
  • 3Human-in-the-Loop is Critical for High-Stakes Decisions - An AI parole-risk tool in the US was found to score Black defendants as higher risk than white defendants at twice the rate, even for the same actual re-offense risk. That bias was inherited from historical data. A human reviewer needs to question and override suspect predictions rather than rubber-stamp them.
  • 4Correlation Is Not Causation - An AI might notice that neighborhoods with more coffee shops have lower crime rates. That link does not mean opening coffee shops reduces crime. Acting on a correlation without understanding why it happens can lead to poor decisions.
  • 5Generalization vs. Memorization (Overfitting) - A student who memorizes past exam papers word for word can still fail when a question is worded differently. A model that overfits its training data behaves the same way: it does well on what it has seen but stumbles on real-world inputs.

Supervised Learning

The model trains on labeled data, where every input comes with its correct output. The model learns to map inputs to outputs.

Prompt

I have 10,000 customer emails labeled as 'complaint,' 'inquiry,' or 'compliment.' I want to automatically sort new incoming emails. This is a supervised learning classification problem.

Output

Model correctly identifies 97% of emails; catches 91% of spam (recall).
Use when:Classification tasks (spam detection, medical diagnosis, image labeling), and regression tasks (predicting house prices, forecasting sales).

Unsupervised Learning

The model trains on unlabeled data and has to find structure, patterns, or groupings on its own, without being told what to look for.

Prompt

I have transaction records for 500,000 bank customers, but no labels. A clustering algorithm groups customers into segments: 'high-earner savers,' 'impulse buyers,' and 'low-balance daily users.'

Output

Three distinct customer segments discovered without any manual labeling.
Use when:Customer segmentation, anomaly detection, topic modeling in documents, exploratory data analysis.

Reinforcement Learning

An agent learns by trial and error. It takes actions in an environment, gets rewards or penalties, and slowly learns a strategy that earns the most reward over time.

Prompt

To train an AI to play chess without giving it any rules: it plays millions of games against itself, gets a reward for winning, and learns superhuman strategy. This is how AlphaGo was trained.

Output

Superhuman strategy learned through self-play and reward signals.
Use when:Game playing (chess, Go), robot motion control, recommendation system tuning, automated trading.

Deep Learning

A branch of machine learning that uses neural networks with many layers. These networks can learn complex, layered representations straight from raw data.

Prompt

Build a system that transcribes doctor and patient conversations in real time, even with background noise and different accents. This calls for a deep transformer-based neural network trained on large speech datasets.

Output

High-accuracy real-time transcription from diverse, noisy audio inputs.
Use when:Image recognition, natural language processing (NLP), speech recognition, video analysis, drug discovery.

Generative AI

A type of AI trained to create new content (text, images, code, audio, video) that did not exist before, based on patterns it learned from training data.

Prompt

I want an AI that can write first drafts of marketing copy from a product brief I provide. Given a prompt about a product, a large language model produces original text in the style I ask for.

Output

Novel, on-brief marketing copy generated from a product brief.
Use when:Content creation, code generation, image synthesis, translation, summarization, customer service chatbots.

Transfer Learning

You take a model already trained on a large general dataset and adapt (fine-tune) it for a specific, often smaller task or domain, instead of training from scratch.

Prompt

A small hospital wants an AI that reads radiology reports, but it has only 2,000 labeled examples. Fine-tuning a large medical foundation model on those 2,000 examples works far better than training a new model from scratch.

Output

Specialist-level radiology reading achieved with only 2,000 training examples.
Use when:Whenever labeled data is scarce; adapting general models for specialized domains; cutting compute cost.

Best Practices

  • 1Start with a Clear Problem Definition Before Choosing AI - Airbnb's team first pinned down a precise problem, 'hosts set prices too low and lose revenue,' before picking a pricing-recommendation model. Once the problem was clear, the right model type followed naturally.
  • 2Understand Your Data Before Training - Before training a loan-default prediction model, a fintech team explored their data and found that 95% of it was 'no default' cases. They used oversampling (SMOTE) to balance the classes and avoid a biased model.
  • 3Evaluate Models on Held-Out Data - A fraud detection team set aside the last 3 months of data as a test set. This mirrored real-world conditions, where the model meets brand-new fraud patterns it has never seen.
  • 4Apply the Human-in-the-Loop Principle for High-Stakes Decisions - A law firm using an AI contract-review tool has a junior associate flag every AI-suggested change, and a senior partner approve those changes before the document is finalized.
  • 5Monitor Models in Production (Model Drift) - A bank's fraud-detection AI worked well in 2023. By 2025, fraudsters had found new tricks. The team watched precision and recall every week and retrained the model on fresh labeled fraud data every quarter.

Common Mistakes

MistakeReal-World ScenarioFix
Treating AI output as fact without verificationA journalist uses AI to research a profile piece. The AI confidently cites a 2022 Harvard study that doesn't exist. The article is published with the fake citation.Always check specific claims, statistics, and citations from AI against primary sources.
Using the wrong AI type for the problemA startup trains a supervised classification model to 'discover unknown patterns in customer behavior,' but has no labels. The model produces garbage results.Match the AI type to the problem: use unsupervised learning for discovery, and supervised learning for prediction when you have labels.
Ignoring class imbalanceA healthcare team trains a sepsis-detection model on data that is 99% 'no sepsis.' The model learns to always say 'no sepsis,' hits 99% accuracy, and catches zero real cases.Use the right tools for imbalance: oversampling (SMOTE), class weighting, or F1-score and AUC instead of raw accuracy.
Training and testing on the same data (data leakage)A data scientist builds a churn prediction model, hits 98% accuracy, and ships it. In production, accuracy drops to 60%. The test set had data from the same customers as the training set.Always make a strict train/validation/test split before any preprocessing. Keep the test set fully separate until the final check.
Prompt vagueness in generative AIA content marketer asks an AI to 'write a blog post about AI.' The result is a 1,500-word generic article that adds no value.Include the audience, tone, word count, key points, and the outcome you want in every generative AI prompt.
Deploying AI without fairness checksA hiring tool trained on past résumé data learns to mark down female candidates for technical roles, because fewer women were hired in the past.Check training data for historical bias, and test model outputs across different groups before launch.
Neglecting model monitoring post-deploymentA recommendation engine trained in 2023 is never updated. By 2026, user tastes have shifted a lot. The engine keeps suggesting content nobody wants.Keep an eye on key metrics, set automated alerts for drops in performance, and retrain on a regular schedule.

Use Cases

Use CaseReal-World ExampleBest Approach
Customer service automationA telecom company deploys an AI chatbot that resolves 70% of billing queries without human interventionLarge language model (LLM) fine-tuned on company FAQs + escalation logic to human agents
Medical image analysisA radiology AI flags potential lung nodules in CT scans for radiologist review, reducing scan review time by 40%Deep learning (Convolutional Neural Network) trained on labeled radiology images
Fraud detectionA credit card company identifies suspicious transactions in real time, blocking fraud before it completesSupervised learning (gradient boosting or neural network) on historical labeled transaction data
Content generationA global e-commerce brand generates product descriptions in 12 languages for 50,000 new SKUs per monthGenerative AI (LLM) with fine-tuning or prompt templates per product category
Predictive maintenanceA manufacturing plant predicts when industrial machines will fail 72 hours in advanceTime-series supervised learning on sensor data (temperature, vibration, pressure)
Code generationDevelopers use GitHub Copilot to autocomplete and generate functions, reducing boilerplate writing timeLarge language model (LLM) fine-tuned on public code repositories
Drug discoveryA pharmaceutical company uses AI to screen millions of molecular compounds for potential therapeutic propertiesDeep learning generative models (graph neural networks) + reinforcement learning for molecular optimization
1

Binary Classification: Email Spam Detection

Weak prompt

Train an AI model on email data to detect spam. Just feed it the emails.
Better prompt

Strong prompt

Step 1: Collect 10,000 labeled emails (spam / not_spam).
Step 2: Preprocess the text: remove punctuation, lowercase, tokenize, convert to TF-IDF features.
Step 3: Train a naive Bayes or logistic regression classifier on 80% of data.
Step 4: Evaluate on held-out 20% test set using precision, recall, and F1-score.

Example training data:
'Congratulations! You've won $1,000,000. Click here' → spam
'Hi Sarah, can we reschedule the 3pm meeting?' → not_spam
'FREE IPHONE - limited time offer click now!!!' → spam

Output

Classification Report:
  not_spam: precision 0.97, recall 0.99, f1 0.98
  spam: precision 0.96, recall 0.91, f1 0.93
  accuracy: 0.97

What this means: The model correctly identifies 97% of all emails. It catches 91% of spam (recall), and when it flags something as spam, it is right 96% of the time (precision).
2

Generative AI: Structured Prompt for Content Creation

Weak prompt

Write an announcement email for our new expense reporting tool.
Better prompt

Strong prompt

You are a senior product marketing writer. Write a 150-word announcement email for the internal launch of a new AI-powered expense reporting tool called 'ExpenseIQ.'

Context:
- Audience: Finance team at a 500-person SaaS company
- Key benefits: Reduces expense report processing time from 3 days to 4 hours; auto-categorizes expenses from receipts via photo upload; integrates with Xero and QuickBooks
- Tone: Professional, enthusiastic, practical
- Include: A clear subject line, 3 key bullet points, and a call-to-action

Do NOT use jargon. Do NOT use the phrase 'game-changer.'

Output

Subject: Introducing ExpenseIQ: Expense Reporting Gets a Whole Lot Faster

Hi Finance Team,

We're excited to launch ExpenseIQ, a new tool that makes expense reporting faster and less painful for everyone.

Starting Monday, ExpenseIQ will:
• Cut processing time from 3 days to under 4 hours
• Auto-categorize expenses when you simply photograph a receipt
• Sync smoothly with both Xero and QuickBooks

We'll host a 20-minute walkthrough this Thursday at 2 PM. Join the meeting using the link below.
3

Human-in-the-Loop: Catching an AI Hallucination

Weak prompt

What percentage of Fortune 500 companies currently use AI in at least one business function? [AI answers with invented statistics without verification]
Better prompt

Strong prompt

Step 1: Get AI response: 'According to a 2024 McKinsey Global Survey, 87% of Fortune 500 companies now use AI in at least one function.'

Step 2: Human verification check:
- Source: 'McKinsey Global Survey on AI Adoption' ✓ (verifiable)
- Statistic: '87%' → NEEDS VERIFICATION
- Search the actual McKinsey 2024 survey.

Step 3: Find the real data: McKinsey 'State of AI' 2024 reports that 72% of respondents' organizations use AI in at least one function, up from 55% in 2023. The AI's figures were wrong.

Step 4: Use the corrected output in the report.

Output

Corrected output: 'According to the McKinsey State of AI 2024 survey, 72% of organizations report using AI in at least one business function, up from 55% in 2023. [Source: McKinsey & Company, The State of AI in 2024, May 2024]'

Key lesson: The AI produced plausible but inaccurate numbers. The human-in-the-loop check caught and fixed the error before it reached a business report.

Tools & Platforms

Tool / PlatformBest ForLink
ChatGPT (OpenAI)General-purpose text generation, reasoning, coding, summarizationhttps://chat.openai.com
Google GeminiMultimodal tasks (text + images + documents), Google Workspace integrationhttps://gemini.google.com
Claude (Anthropic)Long-form document analysis, nuanced writing, safety-focused use caseshttps://claude.ai
GitHub CopilotAI-assisted code generation and completion within IDEshttps://github.com/features/copilot
Hugging FaceOpen-source models, model hosting, datasets, and experimentationhttps://huggingface.co
Google ColabRunning Python-based ML code in the browser, free GPU access for learninghttps://colab.research.google.com
fast.aiPractical deep learning courses, beginner-friendly, freehttps://www.fast.ai

Frequently asked questions

What are the core components of AI?

The core components of AI include data, algorithms, models, training and inference, neural networks, and foundation models. Data serves as the raw material for AI systems, while algorithms help identify patterns. Models are the result of training algorithms on data, and neural networks process information in layers. Foundation models can be adapted for various tasks, and training and inference are essential for learning and applying AI knowledge.

How does machine learning differ from traditional programming?

Machine learning differs from traditional programming in that it learns patterns from data rather than following explicit rules. In traditional programming, developers write specific rules for tasks, while machine learning systems train on data to identify patterns and make predictions, often discovering insights beyond human-designed rules.

What are the main types of AI learning methods?

The main types of AI learning methods are supervised learning, unsupervised learning, reinforcement learning, deep learning, generative AI, and transfer learning. Supervised learning uses labeled data to map inputs to outputs, while unsupervised learning identifies patterns in unlabeled data. Reinforcement learning involves trial and error, deep learning uses neural networks for complex tasks, generative AI creates new content, and transfer learning adapts pre-trained models for specific tasks.

What are some common mistakes in AI implementation?

Common mistakes in AI implementation include treating AI outputs as facts without verification, using the wrong AI type for a problem, ignoring class imbalance, and data leakage. These errors can lead to inaccurate results, such as false predictions or biased models, and can be mitigated by verifying AI outputs, matching AI types to problems, addressing class imbalances, and ensuring proper data splitting.

Why is human oversight important in AI systems?

Human oversight is crucial in AI systems, especially for high-stakes decisions, to prevent biases and errors. AI can inherit biases from historical data, leading to unfair outcomes, as seen in parole-risk tools. Human reviewers are needed to question AI predictions and ensure ethical and accurate decision-making.