CHAPTER1
Introduction to Artificial Intelligence (AI)
Overview
Topic: Introduction to Artificial Intelligence (AI) and Machine Learning
Course Code: ST1511 (AIML)
Learning Outcomes
Understand the fundamental concepts of AI and Machine Learning:
Define AI and Machine Learning
Explain the interrelationship between AI and Machine Learning.
Identify the problems that Machine Learning can solve.
Understand the importance of task definition and data knowledge for successful application.
Familiarity with Machine Learning Algorithms:
Learn how to select appropriate ML algorithms for different tasks.
What is AI?
Definition of Artificial Intelligence:
Artificial intelligence (AI) refers to the ability of a digital computer or robot controlled by a computer to perform tasks typically associated with intelligent beings.
Source: Britannica
Components of AI
Input: Data fed into the system.
Algorithm: A set of rules or steps to be followed in calculations or problem-solving operations.
Programmable Computer: A device capable of executing computations based on instructions.
Output: Results produced by the AI system based on inputs and algorithms.
Image Classification Through AI
Example of Image Classification:
Input: An image of a horse.
Algorithm: Classifies the input image.
Programmable Computer: Processes the information.
Output: Result indicates whether the image is classified as a horse.
Tasks Associated with AI
Samples of tasks commonly performed by AI include:
Image understanding
Natural language processing
Knowledge acquisition
Text understanding
Planning
Robotics
Forecasting
Question posed: Can a general AI system perform all these tasks?
Big Ideas in AI
The key concepts in AI can be summarized into five big ideas:
1. Perception
Computers perceive the world through sensors.
Definition of Perception: The process of extracting meaning from sensory signals. Achievements in AI related to perception include enabling computers to see and hear effectively for practical applications.
2. Representation & Reasoning
AI systems maintain representations of the world and use these for reasoning.
Importance: Representation is fundamental to intelligence, involving the construction of data structures to support reasoning algorithms, helping derive new information from existing data.
3. Learning
Computers learn from data via methods such as:
Machine Learning: A statistical inference methodology to identify patterns in data.
Requires vast amounts of data, often provided by humans, though sometimes generated autonomously by machines.
4. Natural Interaction
AI agents necessitate diverse knowledge types to interact naturally with humans, such as understanding language, facial expressions, and cultural contexts.
Current Capabilities: Most AI systems can use language only to a limited extent and lack the general reasoning ability of a human.
5. Societal Impact
AI influences society positively and negatively.
Positive Impacts: Changes in work, transportation, communication, and healthcare.
Negative Considerations: Potential biases within data could lead to unequal service. Importance of ethical design in AI highlighted.
Tribes of AI - Different Approaches to AI
Categories: Different methodologies in AI include
Connectionists: Involves neural networks and pattern recognition.
Symbolists: Utilize symbols and rules for knowledge representation.
Evolutionaries: Generate variations and assess fitness for purposes.
Bayesians: Based on probabilistic inference.
Applications of AI
Financial Fraud Detection:
Statistic: Tax evasion costs U.S. government approximately $458 billion annually.
AI is used by the IRS to predict individual tax returns based on demographic data.
Marketing and E-commerce:
Example: Shopee uses AI to analyze user interactions and predicts their buying tendencies based on likes, comments, and purchase history.
What is Machine Learning?
Definition: Machine learning is defined as a field of AI focusing on autonomous learning through computer software.
Source: Britannica
Comparison:
Non-machine learning approaches require predefined algorithms and reprogramming for new conditions.
Machine learning focuses on identifying relationships from historical performance, needing only data rather than rewrites for each new condition.
Technical Definition of Machine Learning
A computer program is considered to learn from experience (E) concerning tasks (T) and performance measures (P) if its performance on tasks in T, assessed by P, improves through experience E.
Advantages and Disadvantages of Machine Learning
Pros:
Autonomous learning from data, minimizing human input.
Capability for superhuman performance on specific tasks (e.g., AlphaGo).
Cons:
Requires massive amounts of data to function effectively.
Relationships learned are often complex and can be difficult to explain.
Vulnerability to bad data impacting outcomes.
Deep Learning
Definition: Deep Learning is a subset of machine learning involving algorithms modeled after the brain's structure, known as artificial neural networks.
Function: Aims to learn feature hierarchies, where higher-level features are constructed by compositions of lower-level features, thereby enabling direct mapping from input to output.
Machine Learning Workflow Process
Steps:
Get Data: Access and collect raw data for analysis.
Clean, Prepare & Manipulate Data: Data cleansing is crucial for quality outputs.
Train Model: Develop the model using the data provided.
Test Data: Validate the model’s performance with test data.
Improve: Iterate for optimization and enhancement.
Types of Machine Learning
Supervised Learning:
Products output from data with defined outcome. Feedback is direct.
Resolves classification and regression problems.
Unsupervised Learning:
Input data is not labeled, focuses on identifying underlying structures.
Evaluation can be qualitative or indirect, does not specifically predict outcomes.
Reinforcement Learning:
Based on rewards for positive or negative actions, learns to maximize rewards effectively.
Machine Learning Algorithms
Algorithm Categories:
Anomaly Detection: Techniques including One-class SVM and PCA-based anomaly detection.
Clustering Techniques: K-means for structure discovery and unusual data point identification.
Multiclass Classification: Involves logistic regression, neural networks, and decision forests.
Regression Techniques: Encompasses various models tailored for predicting categories and values.
References
Comprehensive understanding and study can be fostered through these resources:
Articles from Medium, PwC, and various AI-focused publications and tutorials.
Summary of Key Concepts
AI is distinct from human intelligence.
Multiple approaches to achieving AI exist.
Machine Learning falls under AI, with a further subset known as Deep Learning.
Machine Learning enables the algorithm to learn automatically from data.
The machine learning workflow is applicable across various tools.
Choosing the appropriate machine learning algorithm is critical based on the task and data.