10th Part B-Unit 2 AI Project Cycle-1
10th Part B-Unit 2 AI Project Cycle-1
10th Part B-Unit 2 AI Project Cycle-1
2 Raipur
Vocational SkillPart B
UNIT II (AI Project Cycle)
In this Unit :
1
A.I Part B - Unit 2 of class10 AI Project Cycle
Why do we need AI Project Cycle?
The AI project cycle is all about how to convert a real life problem or a challenges into a computer based
AI model. The AI model works on the problem solving area & collects the data required for solving the
problem. The data collected is then arranged in systematic order & then based on the collected data
modeling technique is decided & later evaluation is done.
To place a Multiple sensor on the road side at a certain distance & AI camera at top of the road
to get exact data, so that we can manipulate the time of the signal according to the traffic.
Setting a goal is not enough, in order to solve the problem, the problem statement must be clearly defined.
How this problem is affecting & to whom, What is the cause &why should it be solved. For this we have to be clearly
about 4W’s Canvas
4W’s Canvas is a tool for problem framing method that helps in describing & interpreting a problem to arrive at a
problem statement. 4W’s Canvas tool is also known as “Problem statement template”.
2
A.I Part B - Unit 2 of class10 AI Project Cycle
Who: This block help in finding the people who are getting affected directly or indirectly due to the problem, they are
also known as stakeholders.
What:This block is used for finding the kind of problem we are facing, i.e. nature of the problem.
Where: This block help in to look into the situation in which the problem or context or location of the problem.
Why: This block thinks about the benefit of the stakeholders as well as the society from the solution.
Stakeholders are the people who face the problem & would be benefited with the solution.
To build AI system, you need to source a large amount of data & create data set for training, testing &
evaluation.
What is data?
Data can be defined as a reprenstation of facts or instruction about some entity. Data is collection of facts,
numbers, words, picture, audio, video, map etc. Data can be numeric & alpha-numeric.
3
A.I Part B - Unit 2 of class10 AI Project Cycle
DATA: A single entity, information or fact is known as data.
DATA SET: A set of collection of data, in a tabular form is known as data set.
1. Unstructured Data: It is a data that is not organized to any pre-existing data model. Unstructured data is
unprocessed data. Example, The data we got from social media post.
2. Structured Data:It is a data that has purposely designed, pre-defined structure as per some existing data
model. Example, the above table, students detail datable is known as structured data.
1. ACCURATE:Correct & accurate data i.e. real data (dummy data will not be entertained)should be collected.
2. RELEVANCE: It means, the relevant data. Data that is necessary for the AI project.
3. RELIABLE:Is the data collected from reliable source & authentic source.
4. TIMELINESS:Up-to-data the data should be collected means latest data should be used in AI project.
5. VALIDITY:Data should relate & correct data should be used for the goal of the project.
6. COMPLETENESS:Comprehensive, valid & complete data should be used.
DATA ACQUISITION:
Data Acquisition begins, when you acquire data in quality form
For acquiring the data, we need a reliable data source, they can:
1. Interview: Refers to one-to-one conversation between an analyst and the user & client to find out about the
system, its functions & flaws.
2. Survey:Refers to a study of the opinion, response, etc. of a group of stakeholders.
3. Observation:Method refers to human or mechanical watching, noticing or perceiving of what people actually
do or what event take place in a specific working environment.
4. API (Application Programming Interface):It refers to interface that work behind the popular software
program or game to collect specific type of data of user.
5. Web Scraping:Web data extraction is data scraping used for extracting data from website. It refers to data
collection technique using a tool called web scraping that extract data from websites.
6. Sensors:They are mini devices that can collect data bout an environment or a body of a specific task.
4
A.I Part B - Unit 2 of class10 AI Project Cycle
7. Camera’s:It is a way to collect data graphically or in video form about the look, design o action as per the
requirement.
8. Internet:We can get data directly from government web site from internet that data what we collect from the
government website will be authentic &genuine data for the goal of our project. (Government website can be
in the form of data.gov.in, india-gov.in, censusindia.gov.in).
The data we acquired from the different sources is to visualized with the help of graph so that, the data can be
understood easily in short period of time.
Data Visualization refers to the process of representing data visually or graphically by using visual
element like charts, graphs, diagram, & maps etc.
Data Visualization is a power full technique to represent the big data in the form of graphics.
5
A.I Part B - Unit 2 of class10 AI Project Cycle
Let us now see different visual technique in detail with respect to above table:
1. Bubble Chart:It is primarily used to depict & show relationship between numeric variables with size as
additional dimension, bigger marker means bigger value.
50
40
Series1
30
Series2
20
Series3
10
Series4
-5 10 15
-10
2. Line Graph:It shows trend in data at equal interval. Line charts are useful for predicting the changes in a value
over a period of time. 45
40
35
30
25
20
15 Maths
10
AI
MALE
MALE
MALE
MALE
MALE
MALE
FEMALE
MALE
FEMALE
FEMALE
English
Hindi
Science
XA XB XC XA XD XD XA XB XC XB
9 10
3. Pie Graph:It shows the proportional size of item that make up a single data series o the sum of the item.
6
A.I Part B - Unit 2 of class10 AI Project Cycle
4. Bar Graph:A bar cart illustrate comparison among individual items mainly of number type. This is use in
a single dataset to compare the values.
XA XB XC XA XD XD XA XB XC XB
10
FEMALE
m n ul hu u t mi m ali j
Ana ma Rah Ans Bha Bali Bhu Bhi Dip Anu
FEMALE
9
MALE
8
FEMALE
7
MALE
6
MALE Series1
5
MALE
4
MALE
3
Na
MALE
2
MALE
1
10 20 30 40 50
5. Histogram:It is used to summarize discrete or continuous data by showing the number of data point that
fall within a specified range of values (called Bins)
The only difference between bar graph & histogram is there is gap between every data in bar graph but in
histogram continuous graph is used.
7
A.I Part B - Unit 2 of class10 AI Project Cycle
7. Node Link Diagram:It shows how thing is interconnected through the use of nodes/vertices an lines to
represent their connection & the type of relationship between the group of entity.
8. Word Cloud:Data visualization technique represents the frequency of a word within a body of the text
with its relative size in the cloud. It is used on unstructured data as a way to display high-or-low frequency
word.
1. Better Analysis
2. Identifying patterns
3. Exploring business insights.
8
A.I Part B - Unit 2 of class10 AI Project Cycle
Modeling
Modeling a phase during which the AI model for the desires outcome is trained using the collected data
repeatedly until it starts producing the desired result.
Modeling (developing & training an AI) refers to mathematically analyzing the data & its
insider relationship & with the parameter passed, & finding way through algorithm &repeted training to
reach the desired result or outcome.
The ability to mathematically describe the relationship between data & parameter from the core of every AI
model.
There are mainly two types of AI model or there are two category of AI model, they are:
1. Learning Based AI Model
2. Rule Based AI Model
Machine Learning
Learning Based AI
Model
Rule Base AI Model :Also known as “Model driven AI Model” refers to branch of AI where models
are developed using the algorithm having pre-defined labels, rules, pattern & relationship.
Rule based model are often preferred for limited scale project that require limited effort, cost & update.
In other words the rule based systems are not largely scalable.
Although Rule base AI model are easier to maintain & implement, they suffer from the following
drawback:
9
A.I Part B - Unit 2 of class10 AI Project Cycle
Learning Base AI Model
Also known as data-driven AI model, it is a system in which a lots of data is shown & question / Answer
are asked in order to train the system about the right answer.
The learning based AI model refers to branch of AI where models are trained to learn byinputting them lots of
data. Here, there are no patterns, rules & relationships predefined by the developer, rather machine learns
which each input & comes up with own algorithm.
Under Learning Based AI model, “Machine Learning & Deep Learning” falls.
Machine Learning: It is a branch of AI that enables machine to automatically learn & improves at
tasks with experience & by the use of data.
ML can automatically learn & improve without explicit being programmed.
The recommendation system on music & video streaming services are example of ML
Deep Learning:It is a subset of ML where learning takes place through example. Deep learning
computer-nodes filter the input data using the layer & rue-based algorithm to predict & classify
information.
Task like speech & Image recognition are performed through deep learning system. Self-Driving
car isdevelop using deep learning.
10
A.I Part B - Unit 2 of class10 AI Project Cycle
Disadvantage of Supervised Learning:
a) Computation time is very high for supervised learning.
b) Pre-labeled data set is to be feed in the AI model of desired result.
c) Continuous updating is required in it.
11
A.I Part B - Unit 2 of class10 AI Project Cycle
3. Reinforcement Learning: Means something that strengthens or encourage something.
The reinforcement learning approach is exactly the same, that we use to teach the small baby or
kids, such that is they do good thins then they are appreciated & if they do anything wrong they are
scolded or the same work is to be done again until got the desired result.
In reinforcement Learning approach, AI model (the algorithm, is also known as agent),
continuously doing the same task until & unless get the desired output or result.
In reinforcement learning algorithm relies on:
1. The learning from past feedback
2. Long term strategy keeping in mind the final goal & best possible reward.
12
A.I Part B - Unit 2 of class10 AI Project Cycle
Evaluation
Evaluation in general term, refers to evaluating a system or device in a systematic way to check its merit,
correctness & performance as per a set of standards.
Evaluation refers to systematically checking & analyzing the merit, correctness & reliability of
AI model based on the output produces by it.
Once a model has been made & trained, it needs to go through proper testing so that one can calculate the
efficiency & performance of the model. Each & every model is tested with the help of testing data
(Which is separated out of acquired dataset) & the efficiency of model is evaluated on different parameters.
Evaluation is done with the help of testing data not with training data.
13
A.I Part B - Unit 2 of class10 AI Project Cycle
1. Confusion Metrics: It is a technique using a chart of table for summarizing the performance of a classification
based AI model by listing the predicted values of an AI model & the actual/correct outcome values.
A confusion table incudes both predictive & actual values in context of AI model.
Actual Value represents actual result (observed or measured)
Actual Value
True False
Predictive Values represent the value of the outcome/result of the AI model, produced on the basis of
algorithm & learning.
Predictive Values
Positive Negative
Before we proceed to how to create & use confusion metrics, it is important to know some keyword, they are:
1. True Positive (TP): True Positive refers to an instance for which bot predicted value for the AI model &
actual value are positive. Ex. Lady Finger is vegetable.
2. True Negative (TN): True Negative refers to an instance for which both predicted value of AI model &
actual value are negative. Ex. Lady’s Finger is not vegetable.
3. False Positive (FP): (Also called Type I error) It refers to an instance for which predictive value ao an AI
model is positive but actual value is negative.
4. False Negative (FN): (Also called Type II error) It refers to an instance for which predicted value of AI
model is negative but the actual value is positive.
Reality (True/False)
Actual Value
N=TP+FP+FN+TN True (Positive) False (Negative)
Using the confusion metrics, you need to computer the following value to evaluate an AI model:
1) Accuracy Rate: This is the percentage of times the prediction out of all the observation are correct.
Correct prediction
Accuracy = X 100 %
Total cases
14
A.I Part B - Unit 2 of class10 AI Project Cycle
2) Precision Rate:This is the rate at which the desirable prediction turn out to be correct. (True Positive
out of all positives)
TP
Precision= ----------------------- X 100%
(TP+FP)
3) Recall:It is a rate of correct positive prediction to the overall number of positive instance in the dataset.
4) F1 Score: (F-Measure)It is measure of balance between precision & recall. When Avoiding both false
positive & false negative, is equally important for our problem.
TP
F1 Score = -------------------------------
TP+ (FP+FN) / 2
Que. For an AI model developed to check if a painting is authentic or not its confusion matrix is
given below (0 means False & 1 means True)
15
A.I Part B - Unit 2 of class10 AI Project Cycle
Neural Network:
It is same as ML in which AI machine learn anything by itself with the help of CV or data feed in it.
A major contribution to this AI is through Artificial Neural Network (ANN), which can learn on their own&
increase & update their knowledge with time & experience.
Structure of ANN
A neural network is divided into multiple layers. Each layer of an ANN consists of several artificial neurons
Called nodes. Each node has to perform a specific task & pass the information to next layer.
16
A.I Part B - Unit 2 of class10 AI Project Cycle
1) Input Layer: This is the first layer of a neural network is called the input layer, whose role is to acquire data &
fee it to neural network. It just takes the input data & passes it on the next connected layer.
2) Hidden Layer: Input layer is connected with hidden layer 1, which further connected to another hidden layer 2
or to an outer layer.
The role of hidden layer is to process the input data & carry out the task.
3) Output Layer: After processed data travel through multiple hidden layer, it finally fed to the final layer
known as output layer.
Application of ANN:
1) Character recognition:It is a process of recognizing the text inside image & converting it into an
electronic form. These image could be of handwritten text, printed text like documents, receipts etc.
2) Speech Recognition:Siri, Alexa & google Assistance are example of it.
3) Computer Vision:AI can accurately understand & process visual data effectively like videos & images.
4) Image compression:Neural Network can receive & process vast amount of information at once,
making them useful in image compression. It means storing & processing the data with less amount of
data.
5) Pattern Recognition:Neural Network also very useful in recognizing of patterns. Patterns are basically
repeated trends in various forms of data.
17
A.I Part B - Unit 2 of class10 AI Project Cycle