Introduction to AI & Knowledge and Reasoning
Introduction to Artificial Intelligence
Artificial Intelligence (AI) is a branch of computer science focused on creating machines capable of thinking, learning, reasoning, and decision-making.
- Course Code: BCI503 (Module-1)
- Instructor: Varshita GY
- Core Capabilities: Learning from experience, logical reasoning, problem-solving, and decision-making.
State of the Art Applications of AI
AI systems automate tasks and analyze complex datasets across multiple domain fields:
- Astronomy: Galaxy classification, celestial object detection, exoplanet discovery, and space data analysis.
- Healthcare: Diagnostic imaging analysis (X-rays, MRI, CT scans), disease progression prediction, patient monitoring, and drug discovery.
- Gaming: Non-player character (NPC) control, dynamic game generation, and strategic gameplay evaluation (e.g., chess, Go).
- Finance: Fraud detection, algorithmic trading, credit scoring, risk management, and support via virtual assistants.
- Data Security: Cyber threat prevention, pattern recognition for network activity, malware detection, and vulnerability identification.
- Social Media: Trending topic detection, content recommendation, targeted advertising, and automated content moderation on platforms like Facebook, Twitter, and Instagram.
- Travel & Transport: Dynamic route optimization, traffic management, and travel booking chatbots.
- Automotive Industry: Advanced driver-assistance systems, sign recognition, obstacle detection, and autonomous vehicle development.
- Robotics: Adaptive automation in manufacturing and healthcare, featuring humanoid robots such as Sophia and Erica.
- Entertainment: Personalized movie and show recommendations (e.g., Netflix, Amazon Prime), music recommendation, and automated content generation.
- Agriculture: Crop health monitoring, soil condition analysis, yield prediction, plant disease detection, and precision irrigation via drones and sensors.
- E-Commerce: Personalized product recommendations, behavioral analytics, and automated support chatbots.
Intelligent Agents and Environment
An agent perceives its environment through sensors and acts upon it using actuators or effectors.
- Sensors: Input mechanisms detecting environmental state changes (e.g., human eyes/ears, cameras, digital APIs).
- Actuators / Effectors: Output components executing physical or digital actions (e.g., hands/legs, motors, display screens, script commands).
Agent Categories
- Human Agent: Sensors include eyes, ears, skin; effectors include hands, legs, and vocal tract.
- Robotic Agent: Sensors include cameras and infrared range finders; actuators include electric motors and grippers.
- Software Agent: Sensors include keystrokes, files, and API inputs; actuators include screen displays and automated scripts.
Rationality Criteria
An action is rational if it maximizes the performance measure based on the percept sequence and built-in knowledge. Rationality relies on four factors:
- Performance Measure (e.g., dirt cleaned, time taken, power consumed, and noise generated for a vacuum-cleaner agent).
- Prior Knowledge of the environment.
- Available Actions.
- Percept Sequence.
Structure of Agents
Agent architectures vary in complexity based on decision-making logic:
1. Simple Reflex Agent
Selects actions based exclusively on current percepts via condition-action rules.

2. Model-Based Reflex Agent
Maintains an internal state and world model to track unobserved parts of partially observable environments.

3. Goal-Based Agent
Combines state information with explicit goal states, relying on searching and planning algorithms.

4. Utility-Based Agent
Uses a utility function to assign numerical values to target states, enabling optimal decisions under uncertainty or trade-offs.

5. Learning Agent
Improves performance over time through four functional elements:
- Learning Element: Enhances knowledge and behavior from experience.
- Critic: Evaluates agent behavior against a fixed performance standard.
- Performance Element: Selects external actions.
- Problem Generator: Recommends exploratory actions for new experience acquisition.

Knowledge-Based Agents and Logical Reasoning
A Knowledge-Based Agent (KBA) maintains an internal knowledge representation, updates it with observations, and performs logical inference to derive actions.

Main Structural Components
- Knowledge Base (KB): Central repository composed of formal sentences in a knowledge representation language.
- Inference System: Derives new facts from existing KB statements using logical mechanisms like forward chaining or backward chaining.
Core Operations
- TELL: Communicates sensory observations to the Knowledge Base.
- ASK: Queries the Knowledge Base to choose the best logical action.
- Perform: Executes the determined action.
Operational Levels
- Knowledge Level: Specifies what the agent knows and its goal objectives.
- Logical Level: Encodes domain knowledge into logical sentences.
- Implementation Level: Physical execution platform where code and actions are realized.
Propositional Logic
Propositional Logic (PL) is a formal technique for representing knowledge using declarative propositions that evaluate to either True or False.
Syntax Constructs
- Atomic Propositions: Basic declarative statements consisting of a single proposition symbol (e.g., ).
- Compound Propositions: Complex expressions formed by joining atomic propositions using logical connectives and parentheses (e.g., "It is raining today, and street is wet").