Artificial Intelligence
Artificial Intelligence
Artificial Intelligence
Artificial Intelligence is defined as a field of science and engineering that deals with
"A computer system able to perform tasks that normally require human intelligence,
between languages
Artificial Intelligence exists when a machine can have human based skills such
importance of AI and why should we learn it. Following are some main reasons to
● With the help of AI, you can create such software or devices which can solve
real-world problems very easily and with accuracy such as health issues,
marketing, traffic issues, etc.
● With the help of AI, you can create your personal virtual Assistant, such as
Cortana, Google Assistant, Siri, etc.
● With the help of AI, you can build such Robots which can work in an
environment where survival of humans can be at risk.
What is intelligence?
Intelligence is the 'ability to perceive or information, and to retain it as
context.
Learning
There are a number of different forms of learning as applied to artificial
intelligence. The simplest is learning by trial and error. For example, a simple
computer program for solving mate-in-one chess problems might try moves at
random until mate is found. The program might then store the solution with the
position so that the next time the computer encountered the same position it would
recall the solution. This simple memorizing of individual items and
procedures—known as rote learning—is relatively easy to implement on a
computer.
Reasoning
Reasoning plays a great role in the process of artificial Intelligence. Thus Reasoning
can be defined as the logical process of drawing conclusions, making predictions or
constructing approaches towards a particular thought with the help of existing
knowledge. In artificial intelligence, reasoning is very important because to
understand the human brain, how the brain thinks, how it draws conclusions towards
particular things for all these sorts of works we need the help of reasoning.The most
significant difference between these forms of reasoning is that in the deductive case the truth
of the premises guarantees the truth of the conclusion, whereas in the inductive case the truth
of the premise lends support to the conclusion without giving absolute assurance.
Problem solving
Problem solving, particularly in artificial intelligence, may be characterized as a
systematic search through a range of possible actions in order to reach some
predefined goal or solution. Problem-solving methods divide into special purpose
and general purpose. A special-purpose method is tailor-made for a particular
problem and often exploits very specific features of the situation in which the
problem is embedded.
The Concepts of AI:
1. Artificial Intelligence
"Artificial Intelligence" refers to the simulation of human intelligence processes by
machines, especially computer systems. It also includes Expert systems, voice
recognition, machine vision, and natural language processing (NLP).
● Learning Processes
● Reasoning Processes
● Self-correction Processes
● Learning Processes:This part of AI programming is concerned with
gathering data and creating rules for transforming it into useful information.
The rules, which are also called algorithms, offer computing devices with
step-by-step instructions for accomplishing a particular job.
● Reasoning Processes:This part of AI programming is concerned with
selecting the best algorithm to achieve the desired result.
● Self-Correction Processes:This part of AI programming aims to
fine-tune algorithms regularly in order to ensure that they offer the most
reliable results possible.
2.Machine Learning
Machine Learning is defined as the branch of Artificial Intelligence and computer
science that focuses on learning and improving the performance of
computers/machines through past experience by using algorithms.
AI is used to make intelligent machines/robots, whereas machine learning helps
those machines to train for predicting the outcome without human intervention.
3.Reinforcement Learning
Reinforcement learning is defined as the feedback-based
method to learn from past experience and improve the
performance of models. In this method, an AI agent
automatically explores its surrounding by hitting and trial
actions.
3.Neural Network:
neural networks that develop the structure of a human brain. Similar to the human
brain that has neurons interconnected to one another, artificial neural networks also
have neurons that are interconnected to one another in various layers of the
networks. These neurons are known as nodes.
1. Robotics
Robotics is an interdisciplinary branch of computer science and
engineering. Robotics involves design, construction, operation, and use
of robots. The goal of robotics is to design machines that can help and
assist humans.
Robotics integrates fields of mechanical engineering, electrical
engineering, information engineering, mechatronics, electronics,
bioengineering, computer engineering, control engineering, software
engineering, mathematics, etc.
Robotics develops machines that can substitute for humans and
replicate human actions. Robots can be used in many situations for
many purposes, but today many are used in dangerous environments
(including inspection of radioactive materials, bomb detection and
deactivation), manufacturing processes, or where humans cannot
survive (e.g. in space, underwater, in high heat, and clean up and
containment of hazardous materials and radiation).
Robots can take any form, but some are made to resemble humans in
appearance. This is claimed to help in the acceptance of robots in
certain replicative behaviours which are usually performed by people.
Such robots attempt to replicate walking, lifting, speech, cognition, or
any other human activity. Many of today’s robots are inspired by nature,
contributing to the field of bio-inspired robotics.
Certain robots require user input to operate while other robots function
autonomously. The concept of creating robots that can operate
autonomously dates back to classical times, but research into the
functionality and potential uses of robots did not grow substantially until
the 20th century.
Throughout history, it has been frequently assumed by various scholars,
inventors, engineers, and technicians that robots will one day be able to
mimic human behaviour and manage tasks in a human-like fashion.
Today, robotics is a rapidly growing field, as technological advances
continue; researching, designing, and building new robots serve various
practical purposes, whether domestically, commercially, or militarily.
Many robots are built to do jobs that are hazardous to people, such as
defusing bombs, finding survivors in unstable ruins, and exploring mines
and shipwrecks. Robotics is also used in STEM (science, technology,
engineering, and mathematics) as a teaching aid.
2. Expert Systems
An expert system is a computer program that is designed to solve
complex problems and to provide decision-making ability like a human
expert. It performs this by extracting knowledge from its knowledge base
using the reasoning and inference rules according to the user queries.
The expert system is a part of AI, and the first ES was developed in the
year 1970, which was the first successful approach of artificial
intelligence. It solves the most complex issue as an expert by extracting
the knowledge stored in its knowledge base.
The system helps in decision making for compsex problems using both
facts and heuristics like a human expert. It is called so because it
contains the expert knowledge of a specific domain and can solve any
complex problem of that particular domain. These systems are designed
for a specific domain, such as medicine, science, etc.
The performance of an expert system is based on the expert’s
knowledge stored in its knowledge base. The more knowledge stored in
the KB, the more that system improves its performance. One of the
common examples of an ES is a suggestion of spelling errors while
typing in the Google search box.
3. Fuzzy Logic
Fuzzy logic is a form of many-valued logic in which the truth value of
variables may be any real number between 0 and 1. It is employed to
handle the concept of partial truth, where the truth value may range
between completely true and completely false. By contrast, in Boolean
logic, the truth values of variables may only be the integer values 0 or 1.
The term fuzzy logic was introduced with the 1965 proposal of fuzzy set
theory by Iranian Azerbaijani mathematician Lotfi Zadeh. Fuzzy logic
had, however, been studied since the 1920s, as infinite-valued
logic—notably by Łukasiewicz and Tarski.
Fuzzy logic is based on the observation that people make decisions
based on imprecise and non-numerical information. Fuzzy models or
sets are mathematical means of representing vagueness and imprecise
information (hence the term fuzzy).
These models have the capability of recognising, representing,
manipulating, interpreting, and using data and information that are vague
and lack certainty. Fuzzy logic has been applied to many fields, from
control theory to artificial intelligence.
In the boolean system truth value, 1.0 represents the absolute truth
value and 0.0 represents the absolute false value. But in the fuzzy
system, there is no logic for the absolute truth and absolute false value.
But in fuzzy logic, there is an intermediate value too present which is
partially true and partially false.
2.AI in Gaming
● AI can be used for gaming purpose. The AI machines can play strategic
games like chess, where the machine needs to think of a large number of
possible places.
3. AI in Finance
● AI and finance industries are the best matches for each other. The finance
industry is implementing automation, chatbot, adaptive intelligence, algorithm
trading, and machine learning into financial processes.
4. 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. Some examples such as AEG bot, AI2 Platform,are
used to determine software bug and cyber-attacks in a better way.
5. AI in Social Media
● Social Media sites such as Facebook, Twitter, and Snapchat contain billions of
user profiles, which need to be stored and managed in a very efficient way. AI
can organize and manage massive amounts of data. AI can analyze lots of
data to identify the latest trends, hashtag, and requirement of different users.
7. AI in Robotics:
● Artificial Intelligence has a remarkable role in Robotics. Usually, general
robots are programmed such that they can perform some repetitive task, but
with the help of AI, we can create intelligent robots which can perform tasks
with their own experiences without pre-programmed.
● Humanoid Robots are best examples for AI in robotics, recently the intelligent
Humanoid robot named as Erica and Sophia has been developed which can
talk and behave like humans.
8. AI in Entertainment
● We are currently using some AI based applications in our daily life with some
entertainment services such as Netflix or Amazon. With the help of ML/AI
algorithms, these services show the recommendations for programs or shows.
9. AI in Agriculture
● Agriculture is an area which requires various resources, labor, money, and
time for best result. Now a day's agriculture is becoming digital, and AI is
emerging in this field. Agriculture is applying AI as agriculture robotics, solid
and crop monitoring, predictive analysis. AI in agriculture can be very helpful
for farmers.
10. AI in education:
● AI can automate grading so that the tutor can have more time to teach. AI
chatbot can communicate with students as a teaching assistant.
● AI in the future can be work as a personal virtual tutor for students, which will
be accessible easily at any time and any place.
What is knowledge?
A knowledge base in artificial intelligence aims to capture human expert
knowledge to support decision-making, problem-solving, and more.
Knowledge representation
1. Propositional logic
2. Semantic network
5. Frames
1.Propositional logic (PL) : it is the simplest form of logic where all the
statements are made by propositions. A proposition is a declarative statement
which is either true or false. It is a technique of knowledge representation in logical
and mathematical form.
Example:
1. a) It is Sunday.
2. b) The Sun rises from West (False proposition)
3. c) 3+3= 7(False proposition)
4. d) 5 is a prime number.
Logical Connectives:
Logical connectives are used to connect two simpler propositions or representing a
sentence logically. We can create compound propositions with the help of logical
connectives. There are mainly five connectives, which are given as follows:
conjunction.
Example: Rohan is intelligent and hardworking. It can be written as,
P= Rohan is intelligent,
Q= Rohan is hardworking. → P∧ Q.
3. Disjunction: A sentence which has ∨ connective, such as P ∨ Q. is called
EXAMPLE
· A dog is a mammal.
Variables x, y, z, a, b,....
Connectives ∧, ∨, ¬, ⇒, ⇔
Equality ==
Quantifier ∀, ∃
1.Universal Quantifier:
statement within its range is true for everything or every instance of a particular
thing.
A.
● For all x
● For each x
● For every x.
Example:
2.Existential Quantifier:
Existential quantifiers are the type of quantifiers, which express that the statement
as:
Example:
4.Frames: frames are record like structure that have slots and
slot values for an entity.
Example:
Employee details
Ram(
Types of knowledge
Following are the various types of knowledge:
1. Declarative Knowledge:
Procedural Knowledge
Meta-knowledge:
Heuristic knowledge:
5. Structural knowledge:
AI knowledge cycle:
An Artificial intelligence system has the following components for displaying
intelligent behavior:
● Perception
● Learning
● Knowledge Representation and Reasoning
● Planning
● Execution
The above diagram is showing how an AI system can interact with the real world and
what components help it to show intelligence. AI system has Perception component
by which it retrieves information from its environment. It can be visual, audio or
another form of sensory input. The learning component is responsible for learning
from data captured by Perception comportment. In the complete cycle, the main
components are knowledge representation and Reasoning. These two components
are involved in showing the intelligence in machine-like humans. These two
components are independent with each other but also coupled together. The
planning and execution depend on analysis of Knowledge representation and
reasoning.
○ Knowledge-base and
○ Inference system.
What is Grammar?
Grammar is defined as the rules for forming well-structured sentences.
While describing the syntactic structure of well-formed programs, Grammar
plays a very essential and important role. In simple words, Grammar denotes
syntactical rules that are used for conversation in natural languages.
For Example, in the ‘C’ programming language, the precise grammar rules
state how functions are made with the help of lists and statements.
Mathematically, a grammar G can be written as a 4-tuple (N, T, S, P) where,
N or VN = set of non-terminal symbols, or variables.
T or ∑ = set of terminal symbols.
S = Start symbol where S ∈ N
P = Production rules for Terminals as well as Non-terminals.
It has the form α → β, where α and β are strings on VN ∪ ∑ and at least one
symbol of α belongs to VN
Different Types of Grammar in NLP:
● Context-Free Grammar (CFG)
● Constituency Grammar (CG)
● Dependency Grammar (DG)
● Set of Non-Terminals
● Set of Terminals
● Set of Productions
● Start Symbol
Set of Non-terminals
It is represented by V. The non-terminals are syntactic variables that denote the sets of
strings, which helps in defining the language that is generated with the help of grammar.
Set of Terminals
It is also known as tokens and represented by Σ. Strings are formed with the help of the
basic symbols of terminals.
Set of Productions
It is represented by P. The set gives an idea about how the terminals and nonterminals can
be combined. Every production consists of the following components:
● Non-terminals,
● Arrow,
● Terminals (the sequence of terminals).
The left side of production is called non-terminals while the right side of production is
called terminals.
Start Symbol
The production begins from the start symbol. It is represented by symbol S. Non-terminal
symbols are always designated as start symbols.
Before deep dive into the discussion of CG, let’s see some fundamental points about
constituency grammar and constituency relation.
● All the related frameworks view the sentence structure in terms of constituency
relation.
● To derive the constituency relation, we take the help of subject-predicate division
of Latin as well as Greek grammar.
● Here we study the clause structure in terms of noun phrase NP and verb phrase VP.
For Example,
Sentence: This tree is illustrating the constituency relation
Image Source: Google Images
In Constituency Grammar, the constituents can be any word, group of words, or phrases
and the goal of constituency grammar is to organize any sentence into its constituents
using their properties. To derive these properties we generally take the help of:
Before deep dive into the discussion of DG, let’s see some fundamental points about
Dependency grammar and Dependency relation.
● In Dependency Grammar, the words are connected to each other by directed links.
● The verb is considered the center of the clause structure.
● Every other syntactic unit is connected to the verb in terms of directed link. These
syntactic units are called dependencies.
For Example,
Sentence: This tree is illustrating the dependency relation
1. Dependency Grammar states that words of a sentence are dependent upon other
words of the sentence.
For Example, in the previous sentence which we discussed in CG, “barking dog”
was mentioned and the dog was modified with the help of barking as the
dependency adjective modifier exists between the two.
Parser
Parser is a compiler that is used to break the data into smaller elements coming
from lexical analysis phase.
A parser takes input in the form of sequence of tokens and produces output in the
form of parse tree.
● In the top down parsing, the parsing starts from the start symbol and
transform it into the input symbol.
Bottom up parsing
● In the bottom up parsing, the parsing starts with the input symbol and
construct the parse tree up to the start symbol by tracing out the rightmost
derivations of string in reverse.
Example
Production
1. E → T
2. T → T * F
3. T → id
4. F → T
5. F → id
UNIT III:
What is an Expert System?
An expert system is a computer program that is designed to solve complex
problems and to provide decision-making ability like a human expert. It performs
this by extracting knowledge from its knowledge base using the reasoning and
inference rules according to the user queries.
The expert system is a part of AI, and the first ES was developed in the year 1970,
which was the first successful approach of artificial intelligence. It solves the most
complex issue as an expert by extracting the knowledge stored in its knowledge
base. The system helps in decision making for complex problems using both facts
and heuristics like a human expert. It is called so because it contains the expert
knowledge of a specific domain and can solve any complex problem of that
particular domain. These systems are designed for a specific domain, such as
medicine, science, etc.
● User Interface
● Inference Engine
● Knowledge Base
1. User Interface
With the help of a user interface, the expert system interacts with the
user, takes queries as an input in a readable format, and passes it to
the inference engine. After getting the response from the inference
engine, it displays the output to the user. In other words, it is an
interface that helps a non-expert user to communicate with the expert
system to find a solution.
3. Knowledge Base
● The knowledgebase is a type of storage that stores knowledge
acquired from the different experts of the particular domain. It is
considered as big storage of knowledge. The more the knowledge
base, the more precise will be the Expert System.
● One can also view the knowledge base as collections of objects and
their attributes. Such as a Lion is an object and its attributes are it is a
mammal, it is not a domestic animal, etc.
Expert system shell contains the special software development environment, and
Inference engine, user interface. This shell is linked along with a predefined
components.
provided by human experts. These experts are those persons who are
specialized in that specific domain.
the knowledge from the domain experts and then codifies that
knowledge to the system according to the formalism.
not be experts, and working on the expert system needs the solution or
advice for his queries, which are complex.
● Advising: It is capable of advising the human being for the query of any
domain from the particular ES.
● Provide decision-making capabilities: It provides the capability of
decision making in any domain, such as for making any financial
decision, decisions in medical science, etc.
● They can be used for risky places where the human presence is not
safe.
● The response of the expert system may get wrong if the knowledge
base contains the wrong information.
set of rules for manipulating that data. These rules are sometimes
referred to as ‘If statements’ as they tend to follow the line of ‘IF X
happens THEN do Y’.
The database
The database has a set of facts that are used to compare against the IF
(condition) part of the rules that are held in the knowledge base.
Explanation facilities/Modules
The explanation facilities make it possible for the user to ask the expert
system how a specific conclusion was reached and why a specific fact is
required.
The explanation module explains the reasoning of the system to a user. It provides the
user with an explanation of the reasoning process when requested. The credibility of
expert system will be established only when it is able to explain “how and why” a
particular conclusion is drawn. This explanation increases the belief of user in the expert
system.
a) Explanation(How): To respond to a how query, the explanation module traces
the chain of rules fired during a consolation with the user. This explanation mode
can be activated once the process is over. It explains how a fact was deduced by
the system and similarly how a rule was/wasn’t used. The simplest way to specify
this is to explain the rule which allows the deduction. For e.g.
If the system (S) will give information about the parent-child relationship to the user (U)
then the followings can be possible.
explaining why the question was asked. For example S: Is the following true?
A is the father of B.
U:Why?
S:I need the fact:
A is the father of B to establish the following fact “B is the son of
A”.
By using the rule no. 4:
A is the father of B:
B is the son of A.
User interface
The user interface is the means through which the user seeking a solution to a
problem communicates with the expert system. The communication should
be as meaningful and friendly as possible and the user interface should be as
intuitive as possible.
Working memory
advantages
1. A rule-based system is generally accurate in terms of its results.
2. The outputs generated by the system are dependent on rules so the
output responses are stable and not random.
3. The coverage for different circumstances is less, whatever scenarios
are covered by the Rule Based system will provide high accuracy.
The error rate goes down because of the predefined rules.
Disadvantages
1. A rule-based system is built upon a lot of data, deep knowledge of
the domain, and a lot of manual work.
2. Writing and generating rules for a complex system is quite
challenging and time-consuming.
3. The self-learning capacity in a rule-based system is less as it
generates the result as per the rules.
KNOWLEDGE ACQUISITION:
Knowledge acquisition is the gathering or collecting knowledge from
various sources. It is the process of adding new knowledge to a
knowledge base and refining or improving knowledge that was
previously acquired. Acquisition is the process of expanding the
capabilities of a system or improving its performance at some specified
task. So it is the goal oriented creation and refinement of knowledge.
Acquired knowledge may consist of facts, rules, concepts, procedures,
heuristics, formulas, relationships, statistics or any other useful
information. Source of these knowledge may be experts in the domain of
interest, text books, technical papers, database reports, journals and the
environments. Knowledge acquisition is a continuous process and is
spread over an entire lifetime. Example of knowledge acquisition is
machine learning. It may be a process of autonomous knowledge creation
or refinements through the use of computer programs.The role of
knowledge engineer is also very important with respect to developing the
refinements of knowledge. Knowledge engineers may be the
professionals who elicit knowledge from experts. They integrate
knowledge from various sources like creates and edits code, operates the
various interactive tools, build the knowledge base etc.
Knowledge Acquisition Techniques
c) Hierarchy-Generation Techniques
f) Sorting Techniques
● In diagram based techniques the generation and use of concept
maps, event diagrams and process maps. This technique captures
the features like “why, when, who, how and where”.
● The matrix based techniques involve the construction of grids
indicating such things as problems encountered against possible
solutions.
● Hierarchical techniques are used to build hierarchical structures
like trees.
● Protocol analysis technique is used to identify the type of
knowledge like goals, decisions, relationships etc.
● The protocol generation techniques include various types of
interviews like structured, semi-structured and unstructured.
UNIT IV
What is learning?
Machine learning is a subset of AI, which enables the machine to
automatically learn from data, improve performance from past
experiences, and make predictions. Machine learning contains a set of
algorithms that work on a huge amount of data.
Role of learning
Machine learning is a subset of AI, which enables the machine to automatically
learn from data, improve performance from past experiences, and make
predictions. Machine learning contains a set of algorithms that work on a huge
amount of data.
Some important applications in which machine learning is widely used are given
below:
1. Healthcare: Machine Learning is widely used in the healthcare industry. It
2. Banking and Finance: In the banking and finance sector, machine learning
helped in many ways, such as fraud detection, portfolio management, risk
management, chatbots, document analysis, high-frequency trading,
mortgage underwriting, AML detection, anomaly detection, risk credit score
detection, KYC processing, etc. Hence, machine learning is widely applied in
the banking and finance sector to reduce error as well as time.
learning which is used to detect the image over the internet. Further, various
social media sites such as Facebook uses image recognition for tagging the
images to your Facebook friends with its feature named auto friend tagging
suggestion.
Further, now a day's, almost all mobile devices come with exciting face
detection features. Using this feature, you can secure your mobile data with
face unlocking, so if anyone tries to access your mobile device, they cannot
open without face recognition.
Based on the methods and way of learning, machine learning is divided into mainly
four types, which are:
3. Reinforcement Learning
Supervised machine learning can be classified into two types of problems, which are
given below:
● Classification
● Regression
a) Classification
Classification algorithms are used to solve the classification problems in which the
output variable is categorical, such as "Yes" or No, Male or Female, Red or Blue, etc.
The classification algorithms predict the categories present in the dataset.
b) Regression
Advantages:
● Since supervised learning work with the labelled dataset so we can have an
exact idea about the classes of objects.
● These algorithms are helpful in predicting the output on the basis of prior
experience.
Disadvantages:
● It may predict the wrong output if the test data is different from the training
data.
The main aim of the unsupervised learning algorithm is to group or categories the
unsorted dataset according to the similarities, patterns, and differences. Machines
are instructed to find the hidden patterns from the input dataset.
Unsupervised Learning can be further classified into two types, which are given
below:
● Clustering
● Association
1) Clustering
The clustering technique is used when we want to find the inherent groups from the
data. It is a way to group the objects into a cluster such that the objects with the
most similarities remain in one group and have fewer or no similarities with the
objects of other groups. An example of the clustering algorithm is grouping the
customers by their purchasing behaviour.
2) Association
Advantages:
Disadvantages:
3.Reinforcement Learning
● Reinforcement learning works on a feedback-based process, in which an AI
agent (A software component) automatically explore its surrounding by
hitting & trail, taking action, learning from experiences, and improving its
performance.
Advantages
Disadvantage
● Too much reinforcement learning can lead to an overload of states which can
weaken the results.
1.ACCURACY
The most commonly and widely used metric, for any model, is accuracy, it basically
does what It says, calculates what is the prediction accuracy of our model. The
formulation is given below:
As we can see, it basically tells us among all the points how many of them are
correctly predicted.
Advantages:
Disadvantages:
1. Not recommended for Imbalanced data, as results can be misleading.
Let me give you an example. Let’s say we have 100 data points among
which 95 points are negative and 5 points are positive. If I have a dumb
model, which only predicts negative results then at the end of training I
will have a model that will only predict negative. But still, be 95% accurate
based on the above formula. Hence not recommended for imbalanced
data.
2. We don’t understand where our model is making mistakes.
2.CONFUSION METRICS
As the name suggests it is a 2×2 matrix that has Actual and Predicted as Rows and
Columns respectively. It determines the number of Correct and Incorrect
Predictions, we didn’t bother about incorrect prediction in the Accuracy method,
and we only consider the correct ones, so the Confusion Matrix helps us
understand both aspects.
Imagine I have a binary classification problem with classes as positive and negative
labels, now, If my actual point is Positive and my Model predicted point is also
positive then I get a True Positive, here “True” means correctly classified and
“Positive” is the predicted class by the model, Similarly If I have actual class as
Negative and I predicted it as Positive, i.e. an incorrect predicted, then I get False
Positive, “False” means Incorrect prediction, and “Positive” is the predicted class
by the model.
Advantages:
Disadvantage:
Precision is the measure which states, among all the predicted positive class, how
many are actually positive, formula is given below:
Recall is the measure which states, among all the Positive classes how many are
actually predicted correctly, formula is given below:
Recall is the measure which states, among all the Positive classes how many
are actually predicted correctly, formula is given below:
We often seek for getting high precision and recall. If both are high means our
model is sensible. Here, we also take into consideration, the incorrect points,
hence we are aware where our model is making mistakes, and Minority class is
also taken into consideration.
Advantages:
Disadvantages:
1. Recall deals with true positives and false negatives and precision
deals with true positives and false positives. It doesn’t deal with all
the cells of the confusion matrix. True negatives are never taken into
account.
2. Hence, precision and recall should only be used in situations,
where the correct identification of the negative class does not play a
role.
3. Focuses only on Positive class.
4. Best suited for Binary Classification.
4.F1-SCORE:
F1 score is the harmonic mean of the precision and recall, where an F1 score
reaches its best value at 1 (perfect precision and recall). The F1 score is also
known as the Sorensen–Dice coefficient or Dice similarity coefficient (DSC).
It leverages both the advantages of Precision and Recall. An Ideal model will
have precision and recall as 1 hence F1 score will also be 1.
1. Chatbots
interact with humans in such a way that they sound like humans
either just respond to specific keywords or they can even hold full
the sentence and they also learn from their conversations with
humans and become better with time. Chatbots work in two simple
steps. First, they identify the meaning of the question asked and
collect all the data from the user that may be required to answer the
typing “game” in Google, you may get further suggestions for “game
you want to ask. Search engines use their enormous data sets to
analyze what their customers are probably typing when they enter
3. Voice Assistants
These days voice assistants are all the rage! Whether its Siri, Alexa,
internet, etc. These voice assistants have made life much easier. But
between humans and the internet and provide all manner of services
based on just voice interaction. However, they are still a little far
from that goal seeing as Siri still can’t understand what you are
saying sometimes!
4. Language Translator
Want to translate a text from English to Hindi but don’t know Hindi?
Well, Google Translate is the tool for you! While it’s not exactly
to Hindi in this case) and then looked for the common patterns and
5. Sentiment Analysis
Almost all the world is on social media these days! And companies
user feels about a particular topic, product, etc. They can use natural
and services and find out if the sentiment is good, bad, or neutral.
product reviews, to gauge their brand sentiment, etc. And not just
nation.
6. Grammar Checkers
lecturers. After all, having major errors may get you fired or failed!
That’s why grammar and spell checkers are a very important tool for
any professional writer. They can not only correct grammar and
check spellings but also suggest better synonyms and improve the
than what you have written. Some of the most popular grammar
ProWritingAid, etc.
Promotional section! But how does this work? Email services use
natural language processing to identify the contents of each Email
Computer Vision:
Firstly, a vast amount of visual labeled data is provided to machines to train it. This
labeled data enables the machine to analyze different patterns in all the data points
and can relate to those labels. E.g., suppose we provide visual data of millions of
dog images. In that case, the computer learns from this data, analyzes each photo,
shape, the distance between each shape, color, etc., and hence identifies patterns
similar to dogs and generates a model. As a result, this computer vision model can
now accurately detect whether the image contains a dog or not for each input
image.
What is a robot?
A robot is a machine that looks like a human, and is capable of performing out of box
actions and replicating certain human movements automatically by means of
commands given to it using programming. Examples: Drug Compounding Robot,
Automotive Industry Robots, Order Picking Robots, Industrial Floor Scrubbers and
Sage Automation Gantry Robots, etc.
Components of Robot
○ Actuators: Actuators are the devices that are responsible for moving and
controlling a system or machine. It helps to achieve physical movements by
converting energy like electrical, hydraulic and air, etc. Actuators can create
linear as well as rotary motion.
○ Electric Motors: These are the devices that convert electrical energy into
mechanical energy and are required for the rotational motion of the
machines.
○ Pneumatic Air Muscles: Air Muscles are soft pneumatic devices that are
ideally best fitted for robotics. They can contract and extend and operate by
pressurised air filling a pneumatic bladder. Whenever air is introduced, it can
contract up to 40%.
○ Muscles wire: These are made up of nickel-titanium alloy called Nitinol and
are very thin in shape. It can also extend and contract when a specific
amount of heat and electric current is supplied into it. Also, it can be formed
and bent into different shapes when it is in its martensitic form. They can
contract by 5% when electrical current passes through them.
○ Sensor: Sensors are the devices or machines which help to detect the events
or changes in the environment and send data to the computer processor.
These devices are usually equipped with other electronic devices. Similar to
human organs, the electrical sensor also plays a crucial role in Artificial
Intelligence & robotics. AI algorithms control robots by sensing the
environment, and it provides real-time information to computer processors.
Applications of Robotics
○ Accuracy
○ Flexibility
Robots in the mining industry: Robotics is very helpful for various mining
applications such as robotic dozing, excavation and haulage, robotic
mapping & surveying, robotic drilling and explosive .handling, etc. A mining
robot can solely navigate flooded passages and use cameras and other
sensors to detect valuable minerals. Further, robots also help in excavation
to detect gases and other materials and keep humans safe from harm and
injuries.
Javatpoint Services