Artificial Intelligence Unit 1
Artificial Intelligence Unit 1
ALIGARH
Unit: 1
INTRODUCTION:
Introduction–Definition – Future of Artificial Intelligence – Characteristics of Intelligent
Agents– Typical Intelligent Agents – Problem Solving Approach to Typical AI problems
Artificial intelligence
Unit: 1
History of Artificial Intelligence
Date development Artificial Intelligence is not a new word and not a new technology for
researchers. This technology is much older than you would imagine. Even there are the myths
of Mechanical men in Ancient Greek and Egyptian Myths. Following are some milestones in
the history of AI which defines the journey from the AI generation to till.
• Healthcare
Unit: 1
• Education.
Personalized Learning: AI tutors will adapt to students' individual learning styles and
paces.
4. Transportation
• Energy Efficiency: Smart grids and AI-driven optimization will reduce energy waste.
• Environmental Monitoring: AI will help track and mitigate climate change impacts.
• Agriculture: Precision farming powered by AI will improve yields and reduce
resource use.
Unit: 1
Challenges and Considerations
• Bias and Fairness: Ensuring AI systems are equitable and free from biases.
• Dependence on AI: Striking a balance to avoid over-reliance.
• Regulation: Policymaking to address ethical concerns, job displacement, and
accountability.
Long-term Prospects
Machine learning
AI can learn without being explicitly programmed by using algorithms to process input data and
predict an output.
Neural networks
AI can model the analytical mechanisms of the human brain, and can be used for classification,
prediction, and recognition.
Unit: 1
Automating repetitive tasks
AI can automate repetitive, data-driven tasks that humans would otherwise spend a lot of time
on.
Computer vision
AI can extract useful information from digital images, videos, and other visual inputs.
• Problem-solving
AI can study and analyze large quantities of data at a much faster rate than the human brain.
• Infinite memory
AI has a near-permanent and infinite memory, which makes it suitable for recognizing complex
patterns and making decisions.
For example:
Unit: 1
• AutoGPT is an AI agent that can generate human-like text responses. It can comprehend the
• BabyAGI is an autonomous AI agent that can independently learn and perform tasks like
commands, etc.
• AgentGPT is an intelligent virtual agent designed to interact with customers and provide
them with personalized recommendations. It can understand natural language and provide
Characteristics of an AI agent
While AI tools and agents are software programs designed to automate tasks, specific key
You can consider an AI tool as an AI agent when it has the following characteristics:
• Perception: The agent function senses and interprets the environment they operate in through
• Reactivity: An AI agent can assess the environment and respond accordingly to achieve its
goals.
Unit: 1
• Reasoning and decision-making: AI agents are intelligent tools that can analyze data and
make decisions to achieve goals. They use reasoning techniques and algorithms to process
• Learning: They can learn and enhance their performance through machine, deep, and
• Communication: AI agents can communicate with other agents or humans using different
methods, like understanding and responding to natural language, recognizing speech, and
At its core, an AI agent is made up of four components: the environment, sensors, actuators,
and the decision-making mechanism.
1. Environment
The environment refers to the area or domain in which an AI agent operates. It can be a
Unit: 1
2. Sensors
Sensors are the tools that an AI agent uses to perceive its environment. These can be cameras,
microphones, or any other sensory input that the AI agent can use to understand what is
3. Actuators
Actuators are the tools that an AI agent uses to interact with its environment. These can be
things like robotic arms, computer screens, or any other device the AI agent can use to
4. Decision-making mechanism
A decision-making mechanism is the brain of an AI agent. It processes the information
gathered by the sensors and decides what action to take using the actuators. The decision-
5. Learning system
The learning system enables the AI agent to learn from its experiences and interactions with
the environment. It uses techniques like reinforcement learning, supervised learning, and
developers can create AI agents to perform specific tasks accurately and efficiently. As AI
technology evolves, we can expect new types of AI agents with even more sophisticated
Unit: 1
include organizing the data, creating a knowledge base, or making internal representations
Step 3: Decision-making
The agent uses reasoning techniques like logic or statistical analysis to make an informed
decision based on its knowledge base and goals. This can involve applying pre-determined
Unit: 1
Step 4: Planning and executing an action
The agent makes a plan or a series of steps to reach its goals. This may involve creating a
priorities. Based on its plan, the agent executes all the steps to achieve the desired goal. It can
also receive feedback or new information from the environment, which can be used to adjust
its future actions or update its knowledge base.
the agent to improve performance and adapt to new situations and environments.
Unit: 1
Components of AI agents
AI agents comprise many key components that work together to perceive, reason, and act in
their environment. Understanding these components will help you grasp how AI systems
Sensors: These allow the models to gather information from its surroundings, much like
human senses. For a robot, sensors might include cameras for vision, microphones for
hearing, or touch sensors for physical interaction. In software agents, sensors could be data
Perception module: This processes the raw sensor data into meaningful information. It
involves tasks like image recognition, speech-to-text conversion, or data preprocessing. The
best course of action. Depending on the AI’s design and purpose, this might involve
Unit: 1
Actuator: It carries out the chosen actions. In a physical robot, actuators might be motors or
mechanical parts. For software agents, actuators could be functions that modify data, send
AI agents offer businesses the potential to streamline operations, make informed decisions,
improve customer experiences, and drive growth and competitiveness in the digital age.
1. Increased efficiency
AI agents can automate repetitive tasks, allowing businesses to complete them faster and
more accurately. This efficiency improvement frees employees’ time to focus on more
business-critical tasks and improves productivity.
2. Better decision-making
AI agents can analyze large amounts of data and provide valuable insights to support
agents can identify patterns, trends, and correlations that humans may overlook.
Unit: 1
AI agents can provide personalized and timely interactions with customers, enhancing their
experience. They can offer instant support, answer queries, and provide recommendations,
4. Cost savings
By automating tasks, AI agents can reduce the need for human resources and manual labor,
resulting in cost savings for businesses. They can handle high-volume, repetitive tasks
Agent
An agent can be anything that perceive its environment through sensors and act upon that
environment through actuators. An Agent runs in the cycle of perceiving, thinking, and
acting. An agent can be
Human-Agent: A human agent has eyes, ears, and other organs which work for sensors and
hand, legs, vocal tract work for actuators.
Robotic Agent: A robotic agent can have cameras, infrared range finder, NLP for sensors and
various motors for actuators
Unit: 1
Software Agent: Software agent can have keystrokes, file contents as sensory input and act
on those inputs and display output on the screen.
• Define the Problem Clearly: Identify the specific issue you want the AI system to address.
• Determine Goals and Objectives: Set measurable outcomes. For example, is it classification,
regression, clustering, or generation?
• Gather Domain Knowledge: Collaborate with subject matter experts to understand
constraints and nuances.
• Data Collection: Gather relevant and sufficient data from diverse sources.
• Data Cleaning: Handle missing values, outliers, and inconsistencies.
• Feature Engineering: Extract, transform, or create meaningful features that improve
performance.
• Exploratory Data Analysis (EDA): Visualize and summarize the data to uncover patterns,
distributions, and correlations.
• Split Data: Separate into training, validation, and testing sets.
3. Select an Approach
• Choose a Paradigm:
o Supervised Learning: For labeled data.
o Unsupervised Learning: For finding hidden structures in unlabeled data.
o Reinforcement Learning: For decision-making problems.
o Generative Models: For tasks like image synthesis or text generation.
• Algorithm Selection: Decide on a class of algorithms (e.g., decision trees, neural networks,
SVMs) based on problem type and data size.
4. Model Development
Unit: 1
5. Evaluation
• Metrics Selection: Choose relevant metrics based on the problem (e.g., accuracy, precision,
recall, F1-score, RMSE, etc.).
• Cross-Validation: Evaluate model robustness using techniques like k-fold cross-validation.
• Compare with Baseline: Ensure the model performs better than the baseline.
6. Optimization
• Iterate: Refine the model through experimentation with different algorithms, features, or
architectures.
• Automated Tools: Use AutoML or optimization libraries when applicable.
7. Deployment
8. Post-Deployment Maintenance
9. Ethical Considerations