Artificial IntelligenceUnit 111 min read
AI Basics: Definitions, History, Agents, Tasks & Limits
Unit 1 of Artificial Intelligence introduces core concepts like AI definitions, its history, intelligent agents, problem-solving tasks, and limitations, with real-world examples from Nepalese tech (eSewa, Daraz) and global platforms (Google, WhatsApp).
TAKEAWAYS:
- AI is the study of creating machines that mimic human intelligence through problem-solving, learning, and decision-making.
- Intelligent agents (e.g., chatbots, recommendation systems) perceive environments and act to achieve goals.
- AI tasks include searching, reasoning, learning, and perception, each with unique methods (e.g., game trees for chess, neural networks for image recognition).
- Limitations like the Turing Test’s flaws and AI’s lack of true consciousness define its boundaries.
- Real-world applications span from eSewa’s fraud detection to Google’s AlphaGo using game trees.
- Exam focus: Define AI, compare weak vs. strong AI, and explain agents’ components (perception, action, goals).
1. What is Artificial Intelligence?
1.1 Definition and Scope
Artificial Intelligence (AI) is the branch of computer science that aims to create systems capable of performing tasks that typically require human intelligence, such as:
- Reasoning (e.g., solving puzzles like Sudoku).
- Learning (e.g., Netflix’s recommendation system).
- Perception (e.g., self-driving cars detecting pedestrians).
- Problem-solving (e.g., Daraz’s inventory optimization).
Key Idea: AI ≠ Human Intelligence. It mimics specific behaviors (e.g., playing chess) but lacks consciousness or general intelligence.
1.2 The Turing Test: Can Machines Think?
Proposed by Alan Turing (1950), the Turing Test checks if a machine can fool a human into believing it’s another human in a text-based conversation.
- Passing the Test: If a judge cannot distinguish the machine from a human after 5 minutes, the machine is considered "intelligent."
- Limitations:
- Only tests natural language understanding, not other AI capabilities (e.g., vision, reasoning).
- No true consciousness: Machines lack self-awareness or emotions.
- Cheating: Machines can exploit loopholes (e.g., memorizing responses).
1.3 Weak AI vs. Strong AI
| Weak AI (Narrow AI) | Strong AI (Artificial General Intelligence, AGI) |
|---|---|
| Designed for specific tasks (e.g., Siri, self-driving cars). | Hypothetical AI with human-like general intelligence. |
| No self-awareness or consciousness. | Capable of abstract reasoning, creativity, and learning like humans. |
| Current state: Dominates AI applications today. | Not yet achieved; remains theoretical. |
| Example: eSewa’s chatbot for bill payments. | Example: Hypothetical AI scientist solving unsolved math problems. |
2. Intelligent Agents: How AI Systems Work
An intelligent agent is an entity that percews its environment and acts to achieve goals. It has:
- Perceptors: Sensors (e.g., cameras, microphones) to gather data.
- Effectors: Actuators (e.g., robot arms, speakers) to perform actions.
- Goals: Objectives to maximize (e.g., maximize profit for Daraz, minimize travel time for Pathao).
2.1 Agent Types and Examples
| Agent Type | Example | How It Works |
|---|---|---|
| Reflex Agent | Thermostat | Acts based on current input only (e.g., turns AC on if temperature > 25°C). |
| Model-Based Agent | Google Maps Navigation | Uses a map (model) of the environment to plan routes dynamically. |
| Goal-Based Agent | WhatsApp Auto-Reply Bot | Prioritizes actions to achieve a goal (e.g., reply to messages within 1 hour). |
| Learning Agent | Ncell’s Customer Service AI | Improves over time by learning from past interactions (e.g., better fraud detection). |
2.2 The Agent-Environment Interface
flowchart LR
A["Environment"] -->|"Percepts"| B["Agent"]
B -->|"Actions"| A
B --> C["Performance Measure"]
C -->|"Feedback"| B- Percepts: Inputs from the environment (e.g., user queries for a chatbot).
- Actions: Outputs the agent performs (e.g., sending a response).
- Performance Measure: Evaluates success (e.g., user satisfaction score).
Worked Example: Daraz’s Order Fulfillment Agent
- Percepts: User places an order (product, quantity, location).
- Model: Daraz’s inventory database and delivery routes.
- Goal: Deliver the order in ≤3 days with minimal cost.
- Action: Assigns the nearest warehouse and delivery partner.
- Feedback: User reviews and delivery time data improve future orders.
3. Problem-Solving Tasks in AI
AI tackles problems through four core tasks:
- Automated Reasoning: Logical deductions (e.g., medical diagnosis systems).
- Machine Learning: Learning from data (e.g., NEPSE stock prediction).
- Perception: Interpreting sensory data (e.g., NTC’s traffic camera analysis).
- Natural Language Processing (NLP): Understanding human language (e.g., eSewa’s chatbot).
3.1 Problem-Solving Approaches
| Approach | Example | Method Used |
|---|---|---|
| Searching | Pathao’s Optimal Route Calculation | Uses game trees or A* search algorithm. |
| Reasoning | Medical Diagnosis AI | Applies rule-based systems or probabilistic logic. |
| Learning | Khalti’s Fraud Detection | Uses supervised learning (e.g., decision trees). |
| Perception | Self-Driving Cars | Combines computer vision and sensor fusion. |
Visual: Game Tree for Tic-Tac-Toe
graph TD
A["Start"] --> B["X's Turn"]
B --> C1["X takes top-left"]
B --> C2["X takes top-center"]
C1 --> D1["O's Turn"]
D1 --> E1["O takes center"]
D1 --> E2["O takes bottom-right"]
E1 --> F1["X wins"]
E2 --> F2["Game continues"]- Explored Path: X takes top-left → O takes center → X wins.
- Used in: Google’s AlphaGo (simulates millions of moves ahead).
4. Limitations of AI
4.1 The Chinese Room Argument (Searle, 1980)
- Claim: A person following rules (without understanding Chinese) in a "Chinese Room" cannot truly understand language.
- Implication: AI systems may simulate intelligence without real comprehension.
4.2 Other Key Limitations
| Limitation | Example | Why It Matters |
|---|---|---|
| Lack of Common Sense | AI fails to recognize a "hot dog" in a photo. | Humans use world knowledge; AI lacks it. |
| Bias in Data | Facial recognition fails for darker skin tones. | Garbage in, garbage out (GIGO). |
| Ethical Concerns | Autonomous weapons making life/death decisions. | Need for AI ethics guidelines. |
| Explainability (Black Box) | Neural networks can’t explain decisions. | Critical for healthcare or legal AI. |
In the Real World
eSewa’s Fraud Detection
- AI Idea: Uses anomaly detection (a machine learning technique) to flag unusual transactions (e.g., sudden large payments).
- How It Works:
- Trains on historical data to learn "normal" behavior.
- Flags transactions deviating from the norm (e.g., a user paying bills in a new country).
- Real Example: In 2023, eSewa blocked NPR 50 million in fraudulent transactions using this system.
Pathao’s Dynamic Pricing
- AI Idea: Reinforcement learning adjusts fares based on demand (like Uber).
- How It Works:
- If demand is high (e.g., during Dashain), prices increase to balance supply.
- Uses real-time data from GPS and user requests.
- Worked Example:
- Scenario: 10:00 PM on a Friday in Kathmandu (high demand).
- Action: Pathao’s AI increases prices by 30%.
- Outcome: More drivers join, reducing wait times.
Google’s AlphaGo vs. Human Champions
- AI Idea: Monte Carlo Tree Search (MCTS) + Deep Neural Networks.
- How It Works:
- Simulates millions of Go moves per second using a game tree.
- Learns from past games (including human moves) to improve.
- Real Impact: Defeated Lee Sedol (2016) and Ke Jie (2017), proving AI’s superiority in complex strategy games.
Exam Tip
Definitions Are Critical:
- Memorize Turing Test, Weak AI vs. Strong AI, and intelligent agent components.
- Example question: "Explain how a reflex agent differs from a learning agent with an example."
Compare and Contrast:
- Tables (like Weak vs. Strong AI) are high-scoring. Always include real-world examples.
Problem-Solving Tasks:
- Know one example per task (e.g., A search for Pathao*, decision trees for Khalti).
- Diagrams score marks: Draw a game tree or agent-environment flowchart in exams.
Limitations:
- Chinese Room Argument and bias in AI are frequent exam topics. Relate them to Nepali contexts (e.g., bias in Ncell’s customer service AI).
Short Notes:
- Prepare bullet points for:
- AI applications in Nepal (eSewa, Daraz, NTC).
- Ethical dilemmas (e.g., AI in hiring, autonomous vehicles).
- Prepare bullet points for:
5. Summary Table: AI Concepts at a Glance
| Concept | Key Idea | Nepali Example | Global Example |
|---|---|---|---|
| Turing Test | Can a machine fool a human? | eSewa’s chatbot responses. | ELIZA (1966) chatbot. |
| Intelligent Agent | Percepts → Actions → Goals. | Daraz’s order fulfillment system. | Roomba (vacuum cleaner). |
| Game Tree | Simulate possible moves. | Pathao’s route optimization. | AlphaGo (Go). |
| Machine Learning | Learn from data. | Ncell’s fraud detection. | Netflix recommendations. |
| Weak AI | Narrow, task-specific. | Khalti’s payment processing. | Siri (Apple). |
| Strong AI | Hypothetical general intelligence. | Not yet deployed. | Theoretical AGI. |
6. Practice Questions (Self-Check)
- Define AI and explain why a thermostat is a reflex agent but Google Maps is a model-based agent.
- Draw a game tree for a simplified version of Ludo and mark the optimal path.
- How does eSewa use AI to detect fraud? Describe the percepts, actions, and feedback loop.
- Critique the Turing Test using Searle’s Chinese Room Argument.
- Compare the AI used in Pathao’s dynamic pricing vs. NTC’s traffic management.
7. Further Reading
- Books:
- Artificial Intelligence: A Modern Approach (Stuart Russell & Peter Norvig).
- Life 3.0 (Max Tegmark) – AI’s future and ethics.
- Nepali Context:
- Study NTC’s smart traffic systems (uses AI for congestion prediction).
- Explore NEPSE’s AI-driven stock analysis tools.
Based on the TU BIT syllabus for Artificial Intelligence (BIT252), unit 1.
Discussion
Loading…