AI Book - IX - 19072024 - 152532
AI Book - IX - 19072024 - 152532
ARTIFICIAL INTELLIGENCE
Introduction to Artificial Intelligence
Artificial Intelligence is formed by combining the two words artificial and intelligence.
a. Artificial – Artificial refers to something created or produced by humans rather than
existing naturally
b. Intelligence – The ability to acquire and use knowledge and skills is referred to as
intelligence.
Artificial Intelligence (AI) is the ability of machines to do cognitive tasks such as thinking,
perceiving, learning, problem solving, and decision making. It is based on how individuals
use their brains to observe, learn, figure out, and make decisions.
Types of Artificial Intelligence
Artificial Intelligence can be divided based on capabilities and functionalities.
There are three types of Artificial Intelligence-based on capabilities -
Narrow AI
General AI
Super AI
Narrow AI, also called as Weak AI, focuses on one narrow task and cannot perform
beyond its limitations. It targets a single subset of cognitive abilities and advances in that
spectrum. Narrow AI applications are becoming increasingly common in our day-to-day
lives as machine learning and deep learning methods continue to develop.
Apple Siri is an example of a Narrow AI that operates with a limited pre-defined range
of functions. Siri often has problems with tasks outside its breadth of abilities.
IBM Watson supercomputer is another example of a Narrow AI. It applies cognitive
computing, machine learning, and natural language processing to process information
and answers your queries. IBM Watson once out-performed human contestant Ken
Jennings to become the champion on the popular game show, Jeopardy!.
Other examples of Narrow AI include google translate, image recognition software,
recommendation systems, spam filtering, and Google‟s page-ranking algorithm.
General AI, also known as strong AI, can understand and learn any intellectual task that a
human being can. It allows a machine to apply knowledge and skills in different contexts.
AI researchers have not been able to achieve strong AI so far. They would need to find a
method to make machines conscious, programming a full cognitive ability set. General AI
has received a $1 billion investment from Microsoft through OpenAI.
Fujitsu has built the K computer, which is one of the fastest supercomputers in the
world. It is one of the significant attempts at achieving strong AI. It took nearly 40
minutes to simulate a single second of neural activity. Hence, it is difficult to determine
whether strong AI will be achieved shortly.
Super AI surpasses human intelligence and can perform any task better than a human. The
concept of artificial superintelligence sees AI evolved to be so akin to human sentiments
and experiences that it doesn't merely understand them; it also evokes emotions, needs,
beliefs, and desires of its own. Its existence is still hypothetical. Some of the critical
characteristics of super AI include thinking, solving puzzles, making judgments, and
decisions on its own.
EXCITE
Whether we notice it or not, we are surrounded by machines that work on AI. They
are becoming a crucial part of our everyday life and provide us with an ease of having
even some of the most complicated and time-consuming tasks being done at the touch
of a button or by the simple use of a sensor.
AI has not only made our lives easier but has also been
taking care of our habits, likes, and dislikes. This is why
platforms like Netflix, Amazon, Spotify, YouTube etc.
show us recommendations on the basis of what we like.
Since we have a lot of different technologies which exist around us in today‟s time, it is
very common for us to misunderstand any other technology as AI. That is why, we need
to have a clear distinction between what is AI and what is not.
As we discussed earlier, any machine that has been trained with data and can make
decisions/predictions on its own can be termed as AI. Here, the term „training‟ is
important.
A fully automatic washing machine can work on its own, but it requires
human intervention to select the parameters of washing and to do the
necessary preparation for it to function correctly before each wash, which
makes it an example of automation, not AI.
An air conditioner can be turned on and off remotely with the help of
internet but still needs a human touch. This is an example of Internet of
Things (IoT). Also, every now and then we get to know about robots which
might follow a path or maybe can avoid obstacles but need to be primed
accordingly each time.
We also get to see a lot of projects which can automate our surroundings
with the help of sensors. Here too, since the bot or the automation
machine is not trained with any data, it does not count as AI.
Also, it would be valid to say that not all the devices which are termed as "smart" are
AI-enabled. For example, a TV does not become AI-enabled if it is a smart one, it gets
the power of AI when it is able to think and process on its own.
Just as humans learn how to walk and then improve this skill with the help of their
experiences, an AI machine too gets trained first on the training data and then
optimises itself according to its own experiences which makes AI different from any
other technological device/machine.
But well, surely these other technologies too can be integrated with AI to provide the
users with a much better and immersive experience!
Robotics and AI can definitely open the doors to humanoids and self-driving cars, AI
when merged with Internet of things can give rise to cloud computing of data and
remote access of AI tools, automation along with AI can help in achieving voice
automated homes and so on. Such integrations can help us get the best of both worlds!
World Famous AI Machines
Some of the world famous AI machines are as follows:
. IBM Watson
.Google,s Driveless Car
.Sophia ,the Humanoid Robot.
.Alexa
Honda Asimo
.Boston Dynamics AI Robot
AI, ML & DL
As you have been progressing towards building AI readiness, you must have come
across a very common dilemma between Artificial Intelligence (AI) and Machine
Learning (ML). Many times, these terms are used interchangeably but are they the
same? Is there no difference in Machine Learning and Artificial Intelligence? Is Deep
Learning (DL) Also Artificial Intelligence? What exactly is Deep Learning? Let us
see.
Artificial Intelligence (AI)
Refers to any technique that enables computers to mimic human intelligence. It gives
the ability to machines to recognize a human‟s face; to move and manipulate objects;
to understand the voice commands by humans, and also do other tasks. The AI-
enabled machines think algorithmically and execute what they have been asked for
intelligently.
It enables software to train itself to perform tasks with vast amounts of data. In Deep
Learning, the machine is trained with huge amounts of data which helps it in training
itself around the data. Such machines are intelligent enough to develop algorithms for
themselves. Deep Learning is the most advanced form of Artificial Intelligence out of
these three. Then comes Machine Learning which is intermediately intelligent and
Artificial Intelligence covers all the concepts and algorithms which, in some way or
the other mimic human intelligence.
There are a lot of applications of AI out of which few are those which come under ML
out of which very few can be labelled as DL. Therefore, Machine Learning (ML) and
Deep Learning (DL) are part of Artificial Intelligence (AI), but not everything that is
Machine learning will be Deep learning.
Introduction to AI Domains
Data sciences is a domain of AI related to data systems and processes, in which the
system collects numerous data, maintains data sets and derives meaning/sense out of
them.
The information extracted through data science can be used to make a decision about it.
Computer Vision
Examples of Computer
Vision
Self-Driving cars/ Automatic Cars
Email filters
` Smart assistants
AI Ethics
Nowadays, we are moving from the Information era to Artificial Intelligence era. Now
we do not use data or information, but the intelligence collected from the data to build
solutions. These solutions can even recommend the next TV show or movies you
should watch on Netflix.
We can proudly say that India is leading in the AI usage trends, so we need to keep
aspects relating to ethical practices in mind while developing solutions using AI. Let
us understand some of the ethical concerns in detail.
Moral Issues: Self-Driving Cars
Scenario 1:
Let us imagine that we are in year 2030. Self-Driving cars which are just a concept in
today‟s time are now on roads. People like us are buying them for ease and are using it
for our daily transits. Of-course because of all the features which this car has, it is
expensive. Now, let us assume, one day your father is going to office in his self-driving
car. He is sitting in the back seat as the car is driving itself. Suddenly, a small boy
comes in front of this car. The incident was so sudden that the car is only able to make
either of the two choices:
1. Go straight and hit the boy who has come in front of the car and injure him severely.
2. Take a sharp right turn to save the boy and smash the car into a metal pole thus
damaging the car as well as injuring the person sitting in it.
With the help of this scenario, we need to understand that the developer of the car
goes through all such dilemmas while developing the car‟s algorithm. Thus, here the
morality of the developer gets transferred into the machine as what according to
him/her is right would have a higher priority and hence would be the selection made
by the machine.
If you were in the place of this developer and if there was no other alternative to the
situation, which one of the two would you prioritise and why?
Smart Home
A smart home is a flexible house setup in which appliances and devices may be managed
remotely using a mobile or other networked device from anywhere with an internet
connection.
Smart City
The Smart Cities Mission‟s goal is to promote economic growth and improve people‟s
quality of life by facilitating local area development and utilizing technology, particularly
technology that leads to Smart results.
1. Improved Infrastructure
2. Safer Communication
3. It improves economic growth opportunities.
4. Decrease of Crime
Purpose
Role of AI in Sustainable Development
Sustainable Development
1. Zero Hunger
2. No Poverty
3. Good Health and Well-Being
4. Quality Education
5. Climate action
6. Industry Innovation and Infrastructure
7. Gender Equality
8. Clean Water and Sanitation
9. Affordable and clean energy
10. Sustainable cities and communities
11. Decent work and economic growth
12. Reduce Inequalities
13. Responsible consumption and production
14. Life on land
15. Life below water
16. Partnerships for the goals.
17. Peace, Justice and strong institutions
Social Challenges of Artificial Intelligence
“AI has the potential to assist in the solution of some of the most complex social and
environmental issues, such as healthcare, disaster prediction, agriculture, environmental
conservation, and cultural preservation.”
Wildlife conservation
AI-powered tools can track animal movements and analyze massive volumes of data to
help us better understand where they go and what habitats we need to protect.
Agriculture
Smart farming entails using artificial intelligence to increase overall harvest quality and
accuracy. AI technology aids in the detection of plant disease, pests, and poor agricultural
nutrition. AI sensors can detect and target plants, then determine the best pesticide to use
in the area.
Possibilities
1. Data Analytics
2. Natural Language Processing
3. Robotic Scientist
4. Research Scientist
5. Researcher
6. Software Engineer
7. AI Engineer
8. Data Mining and Analysis
9. Data Scientist
10. Machine Learning Engineer
11. Business Intelligence Developer
11. Big Data Engineer/ Architect
12. Business Intelligence Developer
UNIT 2: AI PROJECT CYCLE
The AI Project Cycle is a step-by-step process that a company must follow in order to
derive value from an AI project and to solve the problem.
Problem Scoping
To understand a problem, determine the different aspects that affect the problem, and
define the project‟s goal are problem scoping.
Follow the following steps to identify the problem scoping from the project –
The 4 W‟s of Problem Scoping are Who, What, Where, and Why. This 4 W‟s helps
to identify and understand the problem in a better manner.
a. Who – The “Who” element helps us to understand and categorize who is directly and
indirectly affected by the problem, and who are known as Stakeholders.
b. What – The “What” section aids us in analyzing and recognizing the nature of the
problem, and you may also gather evidence to establish that the problem you‟ve chosen
exists under this block.
c. Where – What is the situation, and where does the problem arise.
d. Why – Refers to why we need to address the problem and what the advantages will be
for the stakeholders once the problem is solved.
After you‟ve completed the above 4Ws, make a summary of what you‟ve learned. The
problem statement template is the name for this summary. This template summarizes all
of the important points in one place. So, if the same problem comes again, this statement
will make it much easier to fix.
Data Acquisition
The method of collecting correct and dependable data to work with is known as data
acquisition. Data can be in the form of text, video, photos, audio, and so on, and it can be
gathered from a variety of places such as websites, journals, and newspapers.
What is Data
a. Structured Data
When data is in a standardized format, has a well-defined structure, follows a consistent
order, and is easily accessible by humans and program. This data is in the form of
numbers, characters, special characters etc.
b. Unstructured Data
Unstructured data is information that doesn‟t follow traditional data models and is
therefore difficult to store and manage. Video, audio, and image files, as well as log files,
are all examples of unstructured data.
Dataset
Dataset is a collection of data in tabular format. Dataset contains numbers or values that
are related to a specific subject. For example, students‟ test scores in a class is a dataset.
a. Training dataset – Training dataset is a large dataset that teaches a machine learning
model. Machine learning algorithms are trained to make judgments or perform a task
through training datasets. Maximum part of the dataset comes under training data
(Usually 80%)
b. Test dataset – Data that has been clearly identified for use in tests, usually of a
computer program, is known as test data. 20% of data used in test data
Acquiring Data from Reliable Sources
a. Surveys
A research method for gathering data from a predetermined sample of respondents in
order to get knowledge and insights into a variety of issues.
b. Cameras
We can collect visual data with the help of cameras, this data is unstructured data that can
be analyzed via Machine learning.
c. Web Scripting
Web scribing is a technique for collecting structured data from the internet, such as news
monitoring, market research, and price tracking.
d. Observation
Some of the information we can gather through attentive observation and monitoring.
e. Sensors
With the help of sensors also we can collect the data. A device that detects or measures a
physical property are called sensors, such as biomatrix.
Data Exploration
In order to better understand the nature of the data, data analysts utilize data visualization
and statistical tools to convey dataset characterizations, such as size, amount, and
accuracy.
Data exploration is a technique used to visualize data in the form of statistical methods or
using graphs.
Exploration helps you gain a better understanding of a dataset, making it easier to explore
and use it later. It also helps to quickly understand the data‟s trends, and patterns.
Data visualization charts are graphical representations of data that use symbols to convey
a story and help people understand large volumes of information.
The following are some of the most frequent data visualization chart and graph
formats:
a. Column Chart – A column chart is a basic Visualization chart that uses
vertical columns to represent data series. Because column lengths are easy
to compare, column charts are an effective approach to demonstrate the
changes in the data.
AL, ML & DL
Venn Diagram of AI
Artificial Intelligence
Artificial intelligence (AI) is the simulation of human intelligence in robots that have
been trained to think and act like humans. The term can also refer to any machine that
demonstrates, like humans, the ability to learn and solve the problem is Artificial
Intelligence.
Machine Learning
Deep Learning
Deep learning is a part of Artificial Intelligence that uses neural networks with
multilayer. Deep learning analyzes the data, learns the data and solves the problem the
same as a human. Deep learning requires the machine to be educated with a large
quantity of data in order to train itself.
Rule Based
The rule-based approach to AI modeling is when the developer defines the relationship or
patterns in data. The machine follows the developer‟s rules or instructions and completes
its job properly.
What is Modeling
An AI model is a program that has been trained to recognize patterns using a set of data.
AI modeling is the process of creating algorithms, also known as models, that may be
educated to produce intelligent results. This is the process of programming code to create
a machine artificially.
Refers to AI modeling in which the developer hasn‟t specified the relationship or patterns
in the data. Random data is provided to the computer in this method, and the system is
left to figure out patterns and trends from it. When the data is unlabeled and too random
for a human to make sense of, this method is usually used.
Decision Tree in AI
The concept of Decision Trees is similar to that of Story Speaker. It‟s a rule-based AI
model that uses numerous judgments (or rules) to assist the machine in determining what
an element is. The following is the basic structure of a decision tree:
Evaluation
After a model has been created and trained, it must be thoroughly tested in order to
determine its efficiency and performance; this is known as evaluation.
UNIT 3: NEURAL NETWORK
Algorithm
a. Supervised Learning
You obtain a set of photographs with descriptions of what‟s on them, and then you train a
model to detect fresh photos.
b. Unsupervised Learning
The use of artificial intelligence (AI) systems to find patterns in data sets including data
points that are neither categorized nor labeled is known as unsupervised learning.
c. Reinforcement Learning
“An intelligent agent interacts with the environment and learns to operate within that
environment through reinforcement learning.”
Neural Network
Warren McCulloch and Walter Pitts proposed neural networks for the first time in 1944.
In the subject of Neural Network research, the biological brain and Artificial Neural
Networks are two of the most challenging areas of study.
a. SIZE: The human brain contains 86 billion neurons and over 100 trillion connections
that transmit electrical information throughout the body. The number of neurons in the
artificial neural network is far lower.
b. MEMORY: The primary distinction is that humans forget, whereas neural networks
do not. A neural network that has been properly trained.
c. ENERGY CONSUMPTION: The biological brain uses roughly 20% of the total
energy consumed by the human body. Artificial constructions can‟t even come close to
matching the efficiency level of a biological brain, which operates on roughly 20 watts.