AWS Builder Center
Fundamentals of Artificial Intelegence and Machine Learning

Fundamentals of Artificial Intelegence and Machine Learning

Artificial Intelligence is developing rapidly, learn the basics of artificial intelligence and machine learning to understand the existing theories.

Series: AWS Certified AI Practitioner (AIF-C01) Exam Preparation (1 article)

  1. 1
    Fundamentals of Artificial Intelegence and Machine Learning This article
The world of technology is currently undergoing a major transformation thanks to the emergence of Artificial Intelligence (AI) and Machine Learning (ML).
These technologies are no longer mere science fiction, but rather the foundation for various modern innovations from virtual assistants on your phone to large-scale automation systems in industry. However, for some, the technical terms involved can often sound complicated and confusing.
This article will step-by-step summarize the basic theory about foundations of AI and machine learning, starting with core terminology concepts and the model development work cycle, and finally, simple analogies to understand how deep learning works. Let's get started!

1. Basic AI terminology

The terms build on each other, moving from broad to specific.
Term
Meaning
Artificial intelligence (AI)
Field focused on building systems that perform tasks normally requiring a human: perception, reasoning, decision-making
Machine learning (ML)
Subset of AI; methods that learn from data to improve performance on specific tasks
Neural network
Computational model inspired by the brain; layers of nodes (neurons) transform an input into an output; used for pattern recognition and inference
Deep learning
Subset of ML using multi-layered neural networks that automatically extract features from large datasets; handles more complex tasks
Computer vision
AI field that interprets visual information (images, video)
Natural language processing (NLP)
AI field that works with human language: translation, generation, interpretation, sentiment analysis
AI model
An algorithm trained on data to perform tasks such as classification, prediction, pattern recognition
ML algorithm
Set of procedures for analyzing data and making predictions or decisions from patterns
Model training
Teaching a model to make accurate predictions or create content by feeding it large amounts of data
Inferencing
Using a trained model to generate predictions or decisions
Model fairness
Ensuring predictions do not disadvantage or bias any group or individual
Model fit
How well the model's predictions match its training data, showing it captured the underlying patterns
Large language model (LLM)
AI model trained on vast amounts of text to understand and generate language: conversation, summaries, sentiment analysis, and more
Hierarchy to remember: AI ⊃ ML ⊃ deep learning (built on neural networks).

2. The machine learning workflow

A cycle of four steps; evaluation results feed back into step 1.

Step 1: Data collection and preparation (one of the most important steps)

  • Labeled data: tagged with categories; helps the model learn faster and more accurately
  • Unlabeled data: no tags; the model must find patterns itself
  • Tabular data: rows and columns, like a spreadsheet
  • Time-series data: timestamped observations at regular intervals; good for trends and anomaly detection
  • Image data: images or video; used for computer vision (edge, object, facial recognition)
  • Structured text: predefined format with fields and tags (e.g. CSV; overlaps with tabular)
  • Unstructured data: freeform text (social media posts, PDFs); harder to analyze, needs NLP

Step 2: Select the algorithm

Algorithm
What it does
Example
Linear regression
Models the relationship between a dependent variable and independent variables
Predicting house prices from size, location, bedrooms
Logistic regression
Binary classification
Spam or not spam
K-nearest neighbors (KNN)
Classifies data based on its neighbors' classes
Recommendation engine
Principal component analysis (PCA)
Condenses a large dataset while keeping the important features
Facial recognition

Step 3: Train the model (most time- and resource-intensive)

  • Supervised learning: trained on labeled input-output pairs, then predicts on new unseen data
  • Unsupervised learning: trained on unlabeled data; finds patterns and groupings without predefined categories
  • Reinforcement learning: learns to make decisions through positive or negative feedback on its outcomes

Step 4: Evaluate model performance

  • Batch inferencing: processes a large set of data all at once; chosen when accuracy matters more than speed
  • Real-time inferencing: immediate responses; chosen when speed matters (LLM prompts, self-driving cars)

3. Deep learning: the factory analogy

Layer
Factory equivalent
Role
Input layer
Loading dock receiving raw materials
Takes in the features of the data (image pixels, measurements, metadata) and prepares them for processing
Hidden layers
Assembly workers (neurons)
Each neuron transforms what it receives and passes it on; in image recognition, layers may detect pixel color, then edges, then basic shapes
Output layer
Packaging and shipping area
Combines the hidden layers' work into a usable result, such as a classification
Example: a picture of a dog is fed in and broken into pieces, the hidden layers analyze it, and for the question "does this contain a cat?" the output is "no."

Infograpics

Fundamental AI and ML Summary


Series: AWS Certified AI Practitioner (AIF-C01) Exam Preparation (1 article)

  1. 1
    Fundamentals of Artificial Intelegence and Machine Learning This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article