Professional Documents
Culture Documents
Artificial Intelligence Must
Artificial Intelligence Must
Artificial Intelligence Must
Artificial Intelligence:
There is no agreed definition of the term Artificial Intelligence. However, there are various
definitions that have been proposed by some professional scientists.
Some scientist says that,
“AI is the field of science and engineering which is use to make intelligent machines,
especially intelligent computer programs.”
"AI is a branch of computer science by which we can create intelligent machines
which can behave like a humans, act like humans, think like humans, and even
make decisions like humans."
John McCarthy was the founder of AI, who introduced the term AI in 1954.
But according to my observations,
Artificial Intelligence is composed of two words Artificial and Intelligence,
where Artificial defines "man-made," and intelligence defines "thinking power",
therefor, AI means "a man-made thinking power."
AI involved some remarkable abilities which interact with the real word, such as
1. Reasoning (Advice, Answers)
— Decision Making, Judgement Prediction
2. Learning (Learn It-self)
— Skill Gaining, Knowledge Perception
3. Problem Solving (Effective Solutions)
— Tackle the problem with different strategies
4. Perception (Sense/Sensors Through Nervous System)
— Hot Cup of Tea, Iron Rod (Temperature)
5. Linguistic Intelligent (NLP)
— Natural Language Processing
— Understand language under different situation
Advantages of AI
Following are some main advantages of Artificial Intelligence:
o High Accuracy with less errors: AI machines or systems perform their responsibility
with accuracy.
o High-Speed: AI systems can be of very high-speed and fast-decision making, because
of that AI systems can beat a chess champion in the Chess game.
o High reliability: AI machines are highly reliable and can perform the same action
multiple times with high accuracy.
o Useful for risky areas: AI machines can be helpful in situations such as defusing a
bomb, exploring the ocean floor, where to employ a human can be risky.
o Digital Assistant: AI can be very useful to provide digital assistant to the users such
as AI technology is currently used by various E-commerce websites to show the
products as per customer requirement.
o Useful as a public utility: AI can be very useful for public utilities such as a self-
driving car which can make our journey safer and hassle-free, facial recognition for
security purpose, Natural language processing to communicate with the human in
human-language, etc.
Disadvantage of AI
Every technology has some disadvantages, and the same goes for Artificial intelligence.
Being so advantageous technology still, it has some disadvantages which we need to keep in
our mind while creating an AI system.
Following are the disadvantages of AI:
o High Cost: The hardware and software requirement of AI is very costly as it requires
lots of maintenance to meet current world requirements.
o Can't think out of the box: Even we are making smarter machines with AI, but still
they cannot work out of the box, as the robot will only do that work for which they
are trained, or programmed.
o No feelings and emotions: AI machines can be an outstanding performer, but still it
does not have the feeling so it cannot make any kind of emotional attachment with
human, and may sometime be harmful for users if the proper care is not taken.
o Increase dependency on machines: With the increment of technology, people are
getting more dependent on devices and hence they are losing their mental
capabilities.
o No Original Creativity: As humans are so creative and can imagine some new ideas
but still AI machines cannot beat this power of human intelligence and cannot be
creative and imaginative.
Pre-requisite of AI
Before learning about Artificial Intelligence, we must have the fundamental knowledge of
following so that you can understand the concepts easily:
o Computer languages such as C++, Java, Python (knowledge of Python will be an advantage).
o Knowledge of essential Mathematics such as derivatives, probability theory, etc.
Application of AI
AI is making our daily life more comfortable and fast. It is becoming essential for today’s
time because it can solve complex problems with an efficient way in multiple industries.
Following are some sectors which have the application of Artificial Intelligence:
1. AI in Education System
In education system artificial intelligence plays an important role to improve
education teaching performance like chat-bot can teach their students as a teaching
assistance. Grading system is another example of AI that gives grade to their
student.
2. AI in Healthcare:
In the last, five to ten years, AI becoming more advantageous for the healthcare
industry like AI system helps doctors with diagnoses system. It provide medical help
that can reach to the patient before hospitalization.
3. AI in Robotics:
Artificial intelligence has a remarkable role in Robotics industry. Usually, general
robots are programmed such that they can perform some repetitive task, but with
help of AI, we can create intelligent robot which can perform tasks with the help of
their own experiences with pre-programmed. “Humanoid Robots” are the best
example AI in robotics industry. Recently, the intelligent Humanoid Robots named as
“Sophia” and “Titan” has been developed which can talk and behave like humans
4. AI in Agriculture:
AI in agriculture can be very helpful for farmers. Because agriculture is an area which
requires various resources like labour, money, and the time for best result. Now a
day's crop monitoring, predictive analysis robots are playing important roles.
5. AI in Entertainment:
We are currently using some AI based applications in our daily like with some
entertainment services as “Netflix” or “Amazon”. With the help of ML/AI algorithm,
these services show the recommendation for programs or shows.
6. AI in Gaming:
AI machines can play games like human plays. Like Chess-Game, Alpha-Go, Check-
Solver, where the machine need to think large number of possible places.
7. AI in Social Media:
Social media sites such as Facebook, Twitter, Instragram, and Snap-chat contain
billions of user profile, which need to store but AI managed in a very efficient way.
8. AI in Automotive Industry:
Various Industries are currently working for developing self-driven cars which can
make your journey more safe and secure.
9. AI in Data Security:
The security of data is crucial for every company and cyber-attacks are growing very
rapidly in the digital world. AI can be used to make your data more safe and secure.
10. E-Commerce: AI has remarkable positive aspects in online shopping.
Intelligence System in Everyday Life:
Post Office
Automatics address recognitions and sorting of mail
Banks
Signature verification system and make a check and balance on banks accounts.
Automated loan application classification (decision on loan system)
Customer Service
Automatic voice recognition (Instant voice reply after making a call to authorized companies.
The Web Searching
Identifying your age, gender, location from websites
Automated fraud detection is also another example of AI in software departments
Digital Cameras
Automated face detection and focusing on phone cameras or digital cameras.
Computer Games
Intelligent characters/agents that can play as an opponent player.
Google Searching Machine
It predicts what you want to say on searing box.
Turing Test
Alan Turing one of the famous computer scientists who proposed the Turing Test in the mid
of 1950’s. He proposed that, A Turing Test is a method of inquiry in artificial intelligence (AI)
which is used to determine “whether or not” machines can think intelligently like a
humans?"
Receives input in Chinese. He refers the rule ledger for producing outputs. Returns output in
Chinese. The inside person has no understanding of what those symbols mean, but from
outside the room it looks like the inside person knows Chinese perfectly.
What is 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.
AI is responsible for any work-output obtained from system.
Important Point:
Any agent carries 2 key tasks continuously
in an infinite loop/cycle, they are
“Perceive/Sense”
“Act/Output”
Rule 1: An AI agent must have the ability to perceive the environment.
Rule 2: The observation must be used to make decisions.
Rule 3: Decision should result in an action.
Rule 4: The action taken by an AI agent must be a rational action.
A human agent has sensory organs such as eyes, ears, nose, tongue and skin parallel to
the sensors, and other organs such as hands, legs, mouth, for effectors.
A robotic agent replaces cameras and infrared range finders for the sensors, and various
motors and actuators for effectors.
A software agent has encoded bit strings as its programs and actions.
Types of Agents in AI
3. Goal-Based Agents
Focuses only on reaching the goal set/
Agent takes decision based on how far it is currently from the goal state.
Every action is taken to minimize the distance to the foal state
It is more flexible agent.
4. Utility-Based Agents
Agent are more concerned about the utility (preference) for each state.
Action is not only on goals based but also the best way to achieve the goal.
Useful when, there are multiple possible alternatives and agent has to choose in
order to perform best actions.
5. Learning Agents
It can learn from its past experiences.
it starts to act with the basic knowledge and
then able to act by adapting learning.
Actually we design the algorithm to perform some specific task which are usually behind the
seen, and we can execute our required algorithm in any programming language such C++ or
Python etc.
For example: What is an algorithm of Sum of two numbers?
Step1: Read A
Step2: Read B
Step3: Sum= A+B
Step4: Print (Sum)
Characteristics of an Algorithm:
1. It should contain finite number of steps (Instructions) and each instruction
should take finite time to get execute.
2. It should take relevant symbols and unambiguous ( ب الکل صاف، )واضحInstructions.
For example, you need to use accurate symbol in your algorithm, like if you are
solving two number in the form of addition or subtraction then you need to use
accurate symbol for Addition and Subtraction.
What is Analysis?
Analysis is process of comparing two algorithm w.r.t time, space, etc.
Analysis are plays very important role in algorithm and it can be found in two form
1. Priory (Analysis Before the execution) 2. Posterior (Analysis After the execution)
Step1: Read A Execution 1 Time Code of this given algorithm using C++:
Step2: Read B 1 Time Main ()
Step3: Sum= A+B 1 Time Int main a, b, sum;
Step4: Print (Sum) 1 Time Sum (a,b);
We are just finding iteration (Repetition) Print (Sum);
So, the Time complexity = 4 (no need to use Pentium 4= 0.4 Sec
sec or millisecond because we are Core i3= 0.3Sec
considering the iteration) Core i5= 0.2Sec
Another Example: Factorial (n) -> Iteration Core i7= 0.1Sec
ف It is dependent because it depends upon
ن گش ن
ے آپ کو کاون ن
ے۔
ہ ا ہر کر ٹ پ ا ن کت ی ب ار hardware, by using good quality of hardware
It is independent. And it gives the the time execution will be change.
approximate value. It gives the exact value like 0.423 sec
Search Algorithms in Artificial Intelligence
Search algorithms are one of the most important areas of Artificial Intelligence.
Problem-Solving agents:
In Artificial Intelligence, Search techniques are universal problem-solving methods. Rational agents or
Problem-solving agents in AI mostly used these search strategies or algorithms to solve a specific problem
and provide the best result. Problem-solving agents are the goal-based agents and use atomic
representation
Searching Algorithms Terminologies
o Search: Searching is a step-by-step procedure to solve a search-problem in a given search space. A
search problem can have three main factors:
2. Informed Search
Informed search algorithms use domain knowledge. In an informed search, problem
information is available which can guide the search.
Informed search strategies can find a solution more efficiently than an uninformed search
strategy.
Informed search is also called a Heuristic search.
A heuristic is a way which might not always be guaranteed for best solutions but guaranteed to find
a good solution in reasonable time.
Informed search can solve much complex problem which could not be solved in another way.
1. Greedy Best-First Search
2. A* Search
3. Recursive Best-First Search (RBFS) Search (+Additional)
We can solve the problem in an efficient manner if we have relevant information, clues, or hints.
The clue will help us to solve the problem which will save the time and cost as well.
Instead of searching one path or many paths just like that informed search uses the given heuristic
information (Predicted Information) to decide whether or not to explore the current state further.
The uninformed search algorithms which looked through search space for all possible solutions of the
problem without having any additional knowledge about search space. But informed search algorithm
contains an array of knowledge such as how far we are from the goal, path cost, how to reach to goal
node, etc. This knowledge help agents to explore less to the search space and find more efficiently the goal
node.
The informed search algorithm is more useful for large search space. Informed search algorithm uses the
idea of heuristic, so it is also called Heuristic search.
Uninformed Search (Blind Search)
In the below tree structure, we have shown the traversing of the tree using BFS algorithm from the
root node S to goal node K. BFS search algorithm traverse in layers, so it will follow the path which is
shown by the dotted arrow, and the traversed path will be:
S---> A--->B---->C--->D---->G--->H--->E---
>F---->I---->K
Advantages:
1. It will find a solution, if exist.
2. It will try to find the minimal solution
in least number of steps
Disadvantages
1. It requires more memory.
2. It need lots of time, if the solution
is far from the root node.
Advantages:
1. It requires more memory.
2. Less time to reach the goal node if, the traversal in right path.
Disadvantages:
1. There is No guarantee of finding a solution
2. It can go infinite loop.
Algorithm of DFS: Push
a. Remove Node
i. If Node=Goal then make them stop
ii. Push all the children node in stack
Time Complexity is expressed as
T (b) = O (b d) b= branching factor & d=depth
The Space Complexity is expressed as O (b*d).
Examples of DFS
3. Depth-Limited Search Algorithm:
The Depth-Limited Search Algorithm is similar to Depth-First Search algorithm but it works with a
predetermined limit.
It helps in solving the problem of infinite path which is occur in DFS
Termination Condition:
Depth-limited search can be terminated with two Conditions of failure:
— Standard Failure: It indicates that problem does not have any solution.
— Cut-off Failure: It defines no solution for the problem within a given depth limit.
Advantages:
1. Depth-Limited Search algorithm is Memory Efficient.
Disadvantages
Incompleteness
Time Complexity:
Let C* is Cost of the optimal solution, and ε is each step to get closer to the goal node. Then the
number of steps is = C*/ε+1. Here we have taken +1, as we start from state 0 and end to C*/ε.
Hence, the worst-case time complexity of Uniform-cost search isO(b1 + [C*/ε])/.
Space Complexity:
The same logic is for space complexity so, the worst-case space complexity of Uniform-cost search
is O (b1 + [C*/ε]).
Example: It can also perform Backtracking method.
5. Iterative Deeping Search
The Iterative Deepening Search algorithm is a combination of DFS and BFS algorithms. This search
algorithm finds out the best depth limit and does it by gradually increasing the limit until a goal is
found.
This Search algorithm combines the benefits of Breadth-first search's fast search
and depth-first search's memory efficiency.
The iterative search algorithm is useful uninformed search when search space is large, and
depth of goal node is unknown.
Advantages:
1. It combines the benefits of BFS and DFS search algorithm in terms of fast search and memory
efficiency.
Disadvantages:
1. The main drawback of this algorithm is that it repeats all the work of the previous phase.
6. Bidirectional Search Algorithm
Bidirectional Search Algorithm runs two simultaneous searches,
1. One start form initial state to the goal which is called forward-search
2. Other start from goal to the initial state which is called as backward-search, to find the goal node.
Bidirectional search replaces one single search graph with two small sub graphs in which one starts
the search from an initial point and other starts from goal. The search stops when these two graphs
intersect each other.
Bidirectional search can use search techniques such as BFS, DFS, DLS, etc.
Advantages:
1. It is very Fast.
2. It requires less Memory
Disadvantages
1. Implementation of the bidirectional
search tree is difficult.
2. In bidirectional search, one should
know the goal state in advance.
(You should need to know goal
state)
The informed search algorithm is more useful for large search space. Informed search algorithm uses the
idea of heuristic, so it is also called Heuristic search.
Heuristics Search:
Heuristics search is a searching techniques which tries to optimize a problem using heuristic
function.
Heuristics function:
It is a function which is known as h (n) that gives an estimation on the cost of getting node “n” to the
goal state.
— Heuristic is a function always used in Informed Search,
The heuristic method, however, might not always give the best solution, but it guaranteed to find a
good solution in reasonable time.
Heuristic function estimates how close a state is to the goal. It is represented by h(n), and it
calculates the cost of an optimal path between the pair of states. The value of the heuristic function
is always positive.
Types of Heuristics:
1. Admissible
Admissibility of the heuristic function is given as: h (n) <= h*(n)
Here h (n) is heuristic cost, and h*(n) is the estimated cost.
Hence heuristic cost should be less than or equal to the estimated cost.
2. Non Admissible
Admissibility of the heuristic function is given as: h (n) > h*(n)
On each iteration, each node n with the lowest heuristic value is expanded and generates all its
successors and n is placed to the closed list. The algorithm continues unit a goal state is found.
In the informed search we will discuss two main algorithms which are given below:
f (n)= g(n).
Advantages
o Best first search can switch between BFS and DFS by gaining the advantages of both the algorithms.
o This algorithm is more efficient than BFS and DFS algorithms.
Disadvantages
In this search example, we are using two lists which are OPEN and CLOSED Lists. Following are the
iteration for traversing the above example.
2. A* Search Algorithm
A * algorithm is a searching algorithm that searches for the shortest path between the initial and the
final state. It is used in various applications, such as maps, video games and it also use as a machine
learning tool. In maps the A* algorithm is used to calculate the shortest distance between the source
and the destination.
In addition to that, it is also known as a Best-Searching Algorithm because it will eliminate the
expensive path and shows the shortest path that will save the cost of path and time as well.
In A* search algorithm, we use search heuristic as well as the cost to reach the node. Hence we can
combine both costs as following, and this sum is called as a fitness number.
Explanation:
A* Algorithm has three main parameters, which are g, h, f.
f (n) = g (n) + h (n) “n = node (point)”
1. g (n): the cost of moving from the initial point to the current point
g(n)
A B g(n) = 2
2
2. h (n): heuristic value (it is the estimated cost of moving from the current cell to the final cell),
One thing I would like to mention here is that,
“The actual cost cannot be calculated until the final point is reached”
h(n) h(n) h(n) h(n)
Starting g(n) g(n) g(n)
S B C G Goal
Point
2 8 7
3 5 4 0
3. f (n): the sum of g (n) and h (n), or the estimated total path to reach the goal.
A* Algorithm
o Step1: Place the starting node in the OPEN list.
o Step 2: Check if the OPEN list is empty or not, if the list is empty then return failure and stops.
o Step 3: Select the node from the OPEN list which has the smallest value of evaluation function
(g+h), if node n is goal node then return success and stop, otherwise
o Step 4: Expand node n and generate all of its successors, and put n into the closed list. For each
successor n', check whether n' is already in the OPEN or CLOSED list, if not then compute
evaluation function for n' and place into Open list.
o Step 5: Else if node n' is already in OPEN and CLOSED, then it should be attached to the back
pointer which reflects the lowest g(n') value.
o Step 6: Return to Step 2
Informed Search is better than Uniformed Search, because it find the optimal solution to
reach the goal state in short way. Along with that, it use heuristic function which will help
to find optimal path (minimal path cost)
Advantages
o A* search algorithm is the best algorithm than other search algorithms.
o A* search algorithm is optimal and complete.
o This algorithm can solve very complex problems.
Disadvantages
o It does not always produce the shortest path as it mostly based on heuristics and approximation.
o A* search algorithm has some complexity issues.
o The main drawback of A* is memory requirement as it keeps all generated nodes in the memory, so
it is not practical for various large-scale problems.
Example of A* Algorithm
Knowledge-Based Agent in Artificial intelligence
An intelligent agent needs knowledge about the real world for taking decisions and reasoning to act
efficiently.
o Knowledge-based agents are those agents who have the capability of maintaining an internal state
of knowledge, reason over that knowledge, update their knowledge after observations and take
actions. These agents can represent the world with some formal representation and act
intelligently.
o Knowledge-based agents are composed of two main parts:
o Knowledge-base
o Inference system.
The above diagram is representing a generalized architecture for a knowledge-based agent. The
knowledge-based agent (KBA) take input from the environment by perceiving the environment. The input
is taken by the inference engine of the agent and which also communicate with KB to decide as per the
knowledge store in KB. The learning element of KBA regularly updates the KB by learning new knowledge.
DL: It is an artificial intelligence function that imitates the working of human brain (Neurons).
DS: Data Science is the study of data which extract the vast amounts of data by using
different methodologies like scientific methods, algorithms, and processes.
Machine Learning
In the real world, we are surrounded by humans who can learn everything from their
experiences with their learning capability, and we have computers or machines which work
on our instructions. But can a machine also learn from experiences or past data like a
human does? So here comes the role of Machine Learning.
The term machine learning was first introduced by Arthur Samuel in 1959. We can define it
in a summarized way as:
With the help of sample historical data, which is known as training data, machine learning
algorithms build a mathematical model that helps in making predictions or decisions
without being explicitly programmed. Machine learning brings computer science and
statistics together for creating predictive models. Machine learning constructs or uses the
algorithms that learn from historical data.
The below block diagram explains the working of Machine Learning algorithm:
The need for machine learning is increasing day by day. The reason behind the need for
machine learning is that it is capable of doing tasks that are too complex for a person to
implement directly. As a human, we have some limitations as we cannot access the huge
amount of data manually, so for this, we need some computer systems and here comes the
machine learning to make things easy for us.
We can train machine learning algorithms by providing them the huge amount of data and
let them explore the data, construct the models, and predict the required output
automatically. The performance of the machine learning algorithm depends on the amount
of data, and it can be determined by the cost function. With the help of machine learning,
we can save both time and money.
The importance of machine learning can be easily understood by its uses cases, currently,
machine learning is used in self-driving cars, cyber fraud detection, face recognition,
and friend suggestion by Facebook, etc. Various top companies such as Netflix and Amazon
have built machine learning models that are using a vast amount of data to analyse the user
interest and recommend product accordingly.
Type/Classification of Machine Learning
There are mainly three type for machine learning types
1. Supervised Learning
Classification
Regression
2. Unsupervised Learning
Clustering
Association
3. Reinforcement Learning
Prediction target (also called as target variable or dependent variable) is outcome of the
machine learning process. The type of prediction target determines the selection of
algorithms and processes for prediction.
There are mainly two types of outcome as follows
Quantitative (Numeric)
Count – variables are numeric, non-negative, result from counting rather than ranking
Process is a type of learning problems that a machine learning system tries to solve.
These processes are selected based on learning types and required type of prediction target.
Regression A regression problem is when the output variable is a real value, such as
“Salary” or “Price”.
Clustering A clustering problem is where you want to discover the inherent groupings
in the data, such as grouping customers by purchasing behaviour.
Association An association rule learning problem is where you want to discover rules that
describe large portions of your data, such as people that buy X also tend to buy
Y.
1. Supervised Learning (Please teach me!)
Supervised learning is a learning method in which a machine learns with the help of
supervision.
In supervised learning, the training is provided to the machine in the form of data that has
been labelled, classified, or categorized, and the algorithm needs to act on that data with
the help of supervision.
The goal of supervised learning is to map input data with the output data. The supervised
learning is based on supervision, and it is the same as when a student learns things in the
supervision of the teacher. The example of supervised learning is spam filtering.
Supervised learning can be further classifieds into two categories of algorithms:
a) Classification
b) Regression
2. Unsupervised Learning (I can learn myself!)
Unsupervised learning is a learning method in which a machine learns without any supervision.
In unsupervised learning, the training is provided to the machine in the form of data that
has not been labelled, classified, or categorized, and the algorithm needs to act on that data
without any supervision.
The goal of unsupervised learning is to restructure the input data into new features or a
group of objects with similar patterns. In unsupervised learning, we don't have a
predetermined result. The machine tries to find useful insights from the huge amount of
data.
Unsupervised learning can be further classifieds into two categories of algorithms:
a) Clustering
b) Association
3. Reinforcement learning (My way or highway!)
Reinforcement learning is a feedback-based learning method, in which a learning agent gets
a reward for each right action and gets a penalty for each wrong action. The agent learns
automatically with these feedbacks and improves its performance. In reinforcement
learning, the agent interacts with the environment and explores it. The goal of an agent is to
get the most reward points, and hence, it improves its performance.
The robotic dog, which automatically learns the movement of his arms, is an example of
Reinforcement learning.
Reinforcement Learning
Differences Between Supervised vs Unsupervised Learning vs Reinforcement Learning
Comparison Table
Linear Regression,
K – Means, Q – Learning,
Algorithms Logistic Regression,
C – Means, Apriori SARSA
SVM, KNN etc.
Recommendation
Risk Evaluation, Self Driving Cars,
Application System, Anomaly
Forecast Sales Gaming, Healthcare
Detection
1. Supervised Learning
Before we delve into the technical details regarding supervised learning, it is imperative to
give a brief and simplistic overview that can be understood by all readers, regardless of their
experience in this growing field. With supervised learning, you feed the output of your
algorithm into the system. This means that in supervised learning, the machine already
knows the output of the algorithm before it starts working on it or learning it. A basic
example of this concept would be a student learning a course from an instructor. The
student knows what he/she is learning from the course.
With the output of the algorithm known, all that a system needs to do is to work out the
steps or process needed to reach from the input to the output. The algorithm is being
taught through a training data set that guides the machine. If the process goes haywire and
the algorithms come up with results completely different than what should be expected,
then the training data does its part to guide the algorithm back towards the right path.
Supervised Machine Learning currently makes up most of the ML that is being used by
systems across the world. The input variable (x) is used to connect with the output variable
(y) through the use of an algorithm. All of the input, the output, the algorithm, and the
scenario are being provided by humans. We can understand supervised learning in an even
better way by looking at it through two types of problems.
Classification: Classification problems categorize all the variables that form the output.
Examples of these categories formed through classification would include demographic data
such as marital status, sex, or age. The most common model used for this type of service
status is the support vector machine. The support vector machines set forth to define the
linear decision boundaries.
Regression: Problems that can be classified as regression problems include types where the
output variables are set as a real number. The format for this problem often follows a linear
format.
2. Unsupervised Learning
Since we now know the basic details pertaining to supervised learning, it would be pertinent to hop
on towards unsupervised learning. The concept of unsupervised learning is not as widespread and
frequently used as supervised learning. In fact, the concept has been put to use in only a limited
amount of applications as of yet. Despite the fact that unsupervised learning has not been
implemented on a wider scale yet, this methodology forms the future behind Machine Learning and
its possibilities. We always talk about ML bringing forth unlimited opportunities in the future, but fail
to grasp the detail behind the statements made. Whenever people talk about computers and
machines developing the ability to “teach themselves” in a seamless manner, rather than us humans
having to do the honour, they are in a way alluding to the processes involved in unsupervised
learning.
During the process of unsupervised learning, the system does not have concrete data sets, and the
outcomes to most of the problems are largely unknown. In simple terminology, the AI system and
the ML objective is blinded when it goes into the operation. The system has its faultless and
immense logical operations to guide it along the way, but the lack of proper input and output
algorithms makes the process even more challenging. Incredible as the whole process may sound,
unsupervised learning has the ability to interpret and find solutions to a limitless amount of data,
through the input data and the binary logic mechanism present in all computer systems. The system
has no reference data at all. Since we expect readers to have a basic imagery of unsupervised
learning by now, it would be pertinent to make the understanding even simpler through the use of
an example. Just consider that we have a digital image that has a variety of colored geometric
shapes on it. These geometric shapes needed to be matched into groups according to colour and
other classification features. For a system that follows supervised learning, this whole process is a bit
too simple.
The procedure is extremely straightforward, as you just have to teach the computer all the details
pertaining to the figures. You can let the system know that all shapes with four sides are known as
squares, and others with eight sides are known as octagons, etc. We can also teach the system to
interpret the colours and see how the light being given out is classified.
However, in unsupervised learning, the whole process becomes a little trickier. The algorithm for an
unsupervised learning system has the same input data as the one for its supervised counterpart (in
our case, digital images showing shapes in different colours).
Once it has the input data, the system learns all it can from the information at hand. In fact, the
system works by itself to recognize the problem of classification and also the difference in shapes
and colours. With information related to the problem at hand, the unsupervised learning system will
then recognize all similar objects, and group them together. The labels that it will give to these
objects will be designed by the machine itself. Technically, there are bound to be wrong answers,
since there is a certain degree of probability. However, just like how we humans work, the strength
of machine learning lies in its ability to recognize mistakes, learn from them, and to eventually make
better estimations next time around.
3. Reinforcement Learning
Reinforcement Learning is another part of Machine Learning that is gaining a lot of prestige in how it
helps the machine learn from its progress. Readers who have studied psychology in college would be
able to relate to this concept on a better level. Reinforcement Learning spurs off from the concept of
Unsupervised Learning, and gives a high sphere of control to software agents and machines to
determine what the ideal behaviour within a context can be. This link is formed to maximize the
performance of the machine in a way that helps it to grow. Simple feedback that informs the
machine about its progress is required here to help the machine learn its behaviour. Reinforcement
Learning is not simple, and is tackled by a plethora of different algorithms. As a matter of fact, in
Reinforcement Learning an agent decides the best action based on the current state of the results.
The growth in Reinforcement Learning has led to the production of a wide variety of algorithms that
help machines learn the outcome of what they are doing. Since we have a basic understanding of
Reinforcement Learning by now, we can get a better grasp by forming a comparative analysis
between Reinforcement Learning and the concepts of Supervised and Unsupervised Learning that
we have studied in detail before.