Artificial Inntelligene
Artificial Inntelligene
ARTIFICIAL INTELLIGENCES
Def; AI is a Human intelligence of a computer sciences that aims to create tasks of solving,
learning, reasoning, language understanding and perceptions.
Thinkers like “Aristotle and Ramon Llull” laid the groundwork of AI by describing how human
thinking works using symbols.
Charles Babbage and Ada Lovelace designed machine that could be program in the 1880s. In the
1940s, John von Neumann came up with the idea of storing computer programs at the same time
Warren McCulloch and Walter Pitts started building the base of neural networks.
The 1950s brought us modern computers which allow scientist to dig into it intelligence. Alan
test become a big deal computer smarts. The term “Artificial intelligence” was first used in a
1956 Dartmouth college meeting where they introduced the first AI program, the logic theorist.
Job Displacement: Automation through AI can lead to job losses, especially in industries that
rely heavily on manual or routine tasks. This can create economic and social challenges for
affected workers.
Bias and Discrimination: AI systems can inherit biases present in the data they are trained on.
This can result in discriminatory outcomes, especially in areas like hiring, lending, and law
enforcement.
Privacy Concerns: AI systems often rely on large amounts of data, which can raise privacy
issues. The collection and use of personal information can lead to concerns about data security
and misuse.
Security Risks: AI can be exploited for malicious purposes, such as creating deepfakes,
automating cyberattacks, or developing autonomous weapons. This poses significant security
threats.
High Costs: Developing and maintaining AI systems can be expensive. This can limit access
to AI technology for smaller businesses or developing countries, potentially widening the
economic divide.
Lack of Transparency: AI algorithms can be complex and difficult to understand, even for
their developers. This lack of transparency can make it hard to trust AI systems and hold them
accountable for their decisions.
Ethical Concerns: The use of AI in decision-making processes raises ethical questions, such as
who is responsible when AI makes a mistake or causes harm. There is also debate over the
ethical use of AI in areas like surveillance and data collection.
Dependency: Over-reliance on AI systems can lead to a loss of critical skills and knowledge.
For example, if people rely too much on AI for navigation, they might lose their ability to
navigate without technology.
Unemployment and Economic Impact: The displacement of jobs by AI can lead to economic
instability and increased inequality. This can create social and political challenges that need to be
addressed.
APPLICATION OF AI IN HEALTHCARE
1. Medical Diagnosis
AI algorithms can analyze vast amounts of medical data, such as electronic health records
(EHRs), to assist in diagnosing diseases. For example, AI can help detect patterns in imaging
data that might be missed by human eyes, leading to earlier and more accurate diagnoses2.
AI accelerates the drug discovery process by predicting how different compounds will
interact with targets in the body. This reduces the time and cost associated with bringing new
drugs to market3.
4. Robotic Surgery
AI-powered robotic systems assist surgeons in performing precise and minimally invasive
surgeries. These systems can reduce human error and improve surgical outcomes.
5. Administrative Tasks
6. Patient Monitoring
AI-enabled devices can continuously monitor patients' vital signs and alert healthcare
providers to any abnormalities. This is particularly useful for patients with chronic
conditions who require constant monitoring.
APPLICATION OF AI IN EDUCATION
1. Personalized Learning
AI can provide customized lesson plans and resources that cater to each student's needs. This
helps in keeping students engaged and improving their overall learning outcomes.
3. Automated Grading
AI automates the grading of assignments, quizzes, and exams, providing quick and consistent
evaluation. This reduces the burden on educators and allows them to focus more on teaching and
less on administrative tasks
5. Virtual Classrooms and Teaching Assistants
AI facilitates virtual classrooms where students can interact with teachers and peers remotely. AI
teaching assistants can help manage these virtual environments by answering common questions,
moderating discussions, and providing resources.
6. Administrative Efficiency
APPLICATION OF AI IN GAMING
1. Smart game characters: AI is like the brains behind game characters that aren’t control by
players, making them act real people or clever enemies. They can learn from what players
do and change their behavior.
2. Creating Game world with AI: AI can make parts of video games all on its own. It can
create levels, maps, and places to explore without people having to make them by hand.
3. Making Games look and feel real: AI helps to make games look and act more like the real
world.
APPLICATION OF AI IN TRANSPORTATION
APPLICATION OF AI IN ENTERTAINMENT.
APPLICATION OF AI IN FINANCE
APPLICATION OF AI IN E-COMMERCE
1. Personalized product suggestions: AI can help in online shopping making it more fun and
helping you discover new things you might want to buy.
2. Managing inventory: AI takes care of a store’s shelves. It predicts how much of each
product people will buy and automatically orders more when needed.
3. Dynamic Pricing: AI dynamically adjusts pricing according to demand, market
competition, and inventory levels, ensuring customers receive optimal value while
enhancing store’s profitability.
APPLICATION OF AI IN SECURITY
AI SYSTEM
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.
Example:
- Human agent has eyes, ears, and other organs which work as sensors and hand, legs,
vocal tract work for actuators.
- A robotic agent can have cameras, infrared range finder, NLP for sensors and various
motors for actuators.
- Software agent can have keystrokes, file contents as sensory input and act on those inputs
and display output on the screen.
Sensor: Sensor is a device which detects the change in the environment and sends the
information to other electronic devices. An agent observes its environment through sensors.
Actuators: Actuators are the component of machines that converts energy into motion. The
actuators are only responsible for moving and controlling a system. An actuator can be an
electric motor, gears, rails, etc.
Effectors: Effectors are the devices which affect the environment. Effectors can be legs, wheels,
arms, fingers, wings, fins, and display screen.
INTELLIGENT AGENT
An intelligent agent is an autonomous entity which act upon an environment using sensors and
actuators for achieving goals. An intelligent agent may learn from the environment to achieve
their goals. A thermostat is an example of an intelligent agent.
TYPES OF AI AGENT
3. Goal-based Agents
- Goal-base agents expand the capabilities of the model-based agent by having the goal
information.
- They choose an action so that they can consider a goal.
- These agents may have to consider a long sequence of possible actions before deciding
whether the goal is achieved or not.
- Such considerations are called searching and planning making the agent proactive.
4. Utility-based Agents
- These agents provide extra component of utility measurement.
- They act based not only the goals but also the best way to achieve the goals.
- In multiple alternatives, they map all the achieved goals and hence choosing the best
action
5. Learning Agents
- Can learn from its past experiences. Or it has learning capabilities.
- Learning agent have four conceptual components which are: -
o Learning element: Responsible for improving learning capabilities
o Critic: Gives feedbacks to the learning element, describing how well the agent is
doing.
o Performance element: Responsible for selecting external action
o Problem generator: Responsible for suggesting actions that will lead to new and
informative experience
- Learning agents are able to learn, analyze performance and look for new ways to improve
performance.
6. Agent environment in AI
- An environment is everything in the world which surround the agent but it’s not part of
the agent itself
- The environment is where the agent lives, operates and provide the agent with something
to sense and act upon it.
Properties of environment in AI
Features
o Fully observable Vs partially observable
o Static Vs Dynamic
o Discrete Vs continuous
o Deterministic Vs stochastic
o Single-agent Vs multi-agents
o Episodic Vs sequential
o Known Vs unknown
o Accessible Vs inaccessible
SEARCH ALGORITHMS
Search algorithms in AI are created to aid the searchers in getting the right solution. Search
algorithms terminologies includes: -
- Search: Searching is step by step procedure to solve a search-problem. It has three factors
o Search space
o Start state
o Search tree
- Actions: It gives the description of all the available actions to the agent
- Transition model: A description of what each action
- Path Cost: it is a function which assigns a numeric cost to each path.
- Solution: action hat leads from the start node to the goal node
- Optimal solution: a solution having the lowest cost among all solutions
- Completeness
- Optimality
- Time complexity
- Space complexity
- Uniformed/blind search
o Breadth first search
o Uniform cost search
o Depth first search
o Depth limited search
- Informed search
o Best first search
o A*search
Is an approach that finds out all the possible solutions to find a satisfactory solution to a given
problem. Can be of two types include: -
Often Brute force algorithms require exponential time. Various heuristics and optimization can
be used; -
- Heuristic: A rule of thumb that helps you to decide which possibilities we should look at
first.
- Optimization: Certain possibilities are eliminated without exploring all of them.
BFS ALGORITHM
Breadth first search is a graph traversal algorithm that starts traversing the graph from the root
node and explores all the neighboring nodes. Then selects the nearest node and explore all the
unexplored nodes.
APPLICATION OF BFS
- BFS can be used to find the neighboring locations from a given source location.
- In a peer-to-peer network, BFS algorithm can be used as a traversal method to find all the
neighboring nodes
- BFS can be used in web crawlers to create web page indexes.
- BFS is used to determine the shortest path and minimum spanning tree.
- BFS is also used in Cheney's technique to duplicate the garbage collection.
- It can be used in Ford-Fulkerson method to compute the maximum flow in a flow
network
It is a recursive algorithm to search all the vertices of a tree data structure or a graph. It starts
with the initial node going deeper until finding the goal node or node with no children
HEURISTICS
Definition: is a technique used to solve a problem faster than the classic methods, those
techniques are used to find the approximate solutions of a problem when classic methods do not.
HISTORY OF HEURISTICS
Psychologists “Daniel Kahneman and Amos tversky” have developed the study of heuristics in
human decision-making in the year 1970s and 1980s. However, this concept was first introduced
by the “Nobel Laureate Herbert A. Simon” whose primary object of reach was problem-solving.
TYPES OF HEURISTICS
1. Availability heuristics
Is said to be the judgment that make people make regarding the likehood of an event
based on information that quickly comes into mind. On making decisions, people
typically rely on the past knowledge or experience of an event. It allows a person to judge
a situation based on the examples of similar situation that comes to mind.
2. Representative heuristics
It occurs when we evaluate an events probability on the basis of its similarity with
another event
Example: we can understand the representative heuristics by the example of product
packaging, as consumers tend to associate the products quality with the external
packaging of a products.
3. Affect heuristics
It based on the negative and positive feeling that are linked with a certain stimulus. It
includes quick feelings that are based on past beliefs.
Example: it can be understanding by the example of advertisement which can influence
the emotion of the consumers.
LIMITATIONS OF HEURISTICS
- Although heuristics speed up our decision making process and also help us to solve
problems, they can also introduce errors just because something has worked in the past,
so it doesn’t meant that it will work again.
- It will hard to find alternative solution or ideas if we rely on the existing solutions or
heuristics.
-
FUZZY LOGIC
Definition: the word fuzzy means the things that are not clear, sometimes we don’t know
whether things are true or false, at that time this concept provides many value between the true
and false and gives the flexibility to find the best solution to that problem
MEMBERSHIP FUNCTION
Definition: is a function which represents the graph of fuzzy sets, and allows users to quantify the
linguistic term.
It is a graph which is used for mapping each element of x to the value between 0 and 1.
This function is also known as indicator or characteristics function. This function of Membership was
introduced in the first papers of fuzzy set by Zadeh. For the Fuzzy Set B, the membership function for X
is defined as: μB:X → [0,1]. In this function X, each element of set B is mapped to the value between 0
and 1. This is called a degree of membership or membership value.
DEFFUZIFICATION
Definition: is the process of converting a fuzzy output into a crisp value. Two most commonly used
methods of Deffuzification are: -
- Center of area
- Center of Gravity
SOLUTION
- Center of area
1. ½ x b x h
= ½ x 1 x 0.3
= 0.15
2. L x W
= 2.5 x 0.3
= 0.75
3. L x W
= 0.3 x 0.5
= 0.15
4. ½ x b x h
= ½ x 0.2 x 0.2
= 0.02
5. L x W
= 1.5 x 0.5
= 0.75
6. L x W
= 0.5 x 0.5
= 0.25
7. ½ x b x h
= ½ x 0.5 x 0.5
= 0.125
8. L x W
=1x1
=1
9. ½ x b x h
=½x1x1
= 0.5
- Center of gravity
1. 0+1+1
3
= 2/3 = 0.66
2. 1+3.5
2
= 4.5/2 = 2.25
3. 3.5+4
2
= 7.5/2 = 3.75
4. 3.5+4+4
3
= 11.5/3 = 3.83
5. 4+5.5
2
= 9.5/2 = 4.75
6. 5.5+6
2
= 11.5/2 = 5.75
7. 5.5+6+6
3
= 17.5/3 = 5.83
8. 6+7
2
= 13/2 = 6.5
9. 7+7+8
3
= 22/3 = 7.33
NO- Ai Xi Ai x xi
1 0.15 0.66 0.099
2 0.75 2.25 1.687
3 0.15 3.75 0.562
4 0.02 3.83 0.0766
5 0.75 4.75 3.562
6 0.25 5.75 1.437
7 0.125 5.83 0.728
8 1 6.5 6.5
9 0.5 7.33 3.665
Total 3.695 40.65 18.316
∑n = Ai xi
Ai
= 18.316
3.695
= 4.956 : - The possible Centroid = 4 approximately
NEURAL NETWORK
Definition: Neural networks ar machine learning models that mimic the complex of functions of the
human brain.
KEY COMPONENTS: -
1. Neurons: the basic units that receive inputs, is governed by a threshold and an activation function
2. Connections: Links that carry information, regulated by weights and biases.
3. Weight and Biases: These parameters determine the strength and influence of connection
4. Propagation functions: mechanism that help process and transfer data across the layers of neurons
5. Learning rule: The method that adjust the weight and biases over time and improve accuracy.
Learning take three stages: -
a. Input computation: Data is fed into the network
b. Output generation: Based on the current parameters, the network generates an output
c. Iterative refinement: The network refines its output by adjusting weight and biases,
gradually improving the performance on diverse task.
Neural networks have evolved significantly since their inception in the mid-20th century.
Initially, McCulloch and Pitts introduced a mathematical model of artificial neurons, but
progress was slow due to limited computational power. In the 1960s-70s, Rosenblatt's perceptron
demonstrated basic learning capabilities but couldn't handle complex tasks. The 1980s saw a
breakthrough with backpropagation, enabling training of multilayer networks. Neural networks
gained popularity in the 1990s across multiple domains but faced setbacks during the "AI winter"
due to high costs and unrealistic expectations. The 2000s marked a resurgence driven by larger
datasets, better computational power, and deep learning architectures. Since the 2010s, deep
learning models like CNNs and RNNs have dominated the field, advancing applications in image
recognition, finance, and beyond.
1. Input Layer: This is where the network receives its input data. Each input neuron in the layer
corresponds to a feature in the input data.
2. Hidden Layers: These layers perform most of the computational heavy lifting. A neural network
can have one or multiple hidden layers. Each layer consists of units (neurons) that transform the
inputs into something that the output layer can use.
3. Output Layer: The final layer produces the output of the model. The format of these outputs
varies depending on the specific task (e.g., classification, regression).