p.t 3 a.i
p.t 3 a.i
p.t 3 a.i
Unit - I
Introduction to Artificial Intelligence
1.1 Introduction
Artificial Intelligence is one of the buzzwords today. It has established itself as a popular
technology in the modern world. From digital virtual assistants like Siri, Alexa and Cortana to self
–driving cars, it appears to have taken over every aspect of life that we can think of. The words
‘Artificial’ and ‘Intelligence’, when put together, make up the term Artificial Intelligence.
As you know, Artificial is anything which is man–made.
Now, let us first understand the meaning of intelligence before we dig into the concept of Artificial
Intelligence.
1.2 What is Intelligence?
Intelligence refers to the ability to acquire and apply knowledge and skills in various domains.
Humans gain intelligence from past experiences and actions influenced by different situations and
environments. In other words, intelligence is the:
ability to interact with the real world
capacity of learning, reasoning and understanding e.g., recognizing speech, recognizing
objects and images
using mental alertness and knowledge for decisions, such as :
Solving new problems, planning and making decisions
Ability to deal with unexpected problems, uncertainties
Whosoever has the above mentioned qualities, would be termed intelligent– be it a human, an
animal or a machine.
1.5 Basics of AI
The term “Artificial Intelligence” was coined by John McCarthy in an academic conference
organized at Dartmouth College in 1956. He is considered as the father of Artificial Intelligence
for his prominent role within the field as one of its founders.
In this increasingly technology–driven world, companies and developers around the globe are
talking about embracing Artificial Intelligence (AI), Machine Learning (ML) and Deep Learning
(DL).
Let us discuss each of these terms in detail
1.8 AI Ethics
The dictionary defines ethics as, ”the moral principles that govern a person or a group’s behavior
or actions” Or “the moral correctness of a conduct or action”. In short, Ethics are the moral
responsibility of anyone or anything that can impact others.
Practice Session
To address each type of complaint, different departments are there. Customers often send
emails or contact them on their website. In order to find the type of complaint and redirect
them to right department, no proper mechanism is in place.
So, the problem would be solved if there is an automatic, online text-based solution that can
interact with the customers, find out about the type of their complaint and redirect them to the
right department. An online text-based solution that can analyse and can process chats too
would be a Chatbot.
3.1 Chatbots
A Chatbot (also called bot sometimes) is a computer program which mimics conversation
between users, which can be either textual or verbal, by using various chat mediums such as
mobile apps, website chat windows and social messaging services across platforms like
Facebook and Twitter. A chatbot is also known as an artificial conversational entity (ACE), chat
robot, talk bot, chatterbot or chatterbox.
The first chatbot was made in the year 1966 at the MIT AI Laboratory, named Eliza whose
purpose was to give an accurate simulation of a human conversation.
Script-bot Smart-bot
Easy to make & less interactive Flexible & more interactive
Limited Functionality Wide Functionality
Free & easy to integrate to a messaging Learn with more data by itself as the
platform mechanism of AI is in built
'You are absolutely right, we have to take the right turn from here.'
Now, here we can see that 'right' is used twice but its meaning is different. The former 'right'
signifies accuracy and the latter 'right' refers to direction.
b) Tokenization: After segmenting the sentences, each sentence is then further divided
into tokens. Token is a term used for any word or number or special character
occurring in a sentence. Under tokenization, every word, number and special
character is considered separately and each of them is now a separate token.
Example:
c)
Removing Stop Words, Special Characters & Numbers: In this step, the tokens
which are not important or which do not add any meaning are removed from the token
list. Stopwords like a, an, the, are, and, for, it, or, is, to etc., are the words which occur
very frequently in the Corpus. But does not have any meaning or has no value in the
Corpus.
booK Book
Stemming: In stemming, the word
is reduced to its BOOK BOok original form like if
book
the word is "enjoyed", then it
can be converted to "enjoy".
Stemming is the process in which the affixes of words are removed and the words are
converted to their base form. The root form of the word is known as stem. Example:
Stemming does not take into account if the stemmed word is meaningful or not. It just
removes the affixes hence it is faster.
Lemmatization makes sure that lemma is a word with meaning and hence it
takes a longer time to execute than stemming.
Example:
Here in the above example, the output for dried after affix removal has become dried
instead of "dri".
With this we have normalised our text to tokens which are the simplest form of words
present in the corpus. Now it’s time to convert the tokens into numbers. For this,
we would use the Bag of Words algorithm.
Page 6 Mayoor School, Ajmer
CLASS X Natural Language Processing
5.1.2 Bag of Words
Bag of Words is an important feature of NLP for representing text in a numerical form. It is a
Natural Language Processing model which helps in extracting features out of the text which
can be helpful in machine learning algorithms. In bag of words, we get the occurrences of
each word and construct the vocabulary for the corpus. An example is shown below:
Depending on the occurrence of the words, we put the text into the bag of words algorithm,
the algorithm returns to us the unique words out of the corpus and the number of times they
occur in it. A list of words appearing in the corpus is created and the numbers
corresponding to it shows how many times the word has occurred in the text body, so we
can say that the bag of words has two important things:
2. The frequency of these words (number of times it has occurred in the whole corpus).
b) Create Dictionary: Make a list of all the unique words occuring in the corpus
(Vocabulary).
c) Create Document Vectors: For each document in the corpus, find out how many
times the word from the unique list of words has occured.
To understand the bag of words algorithm, we can take an example to understand it.
Step 1: Let us take two sentences. In this step, we will collect the data and pre-process it.
Sentence 1: "Sheetal and Mitali are friends. Mitali likes singing songs".
Sentence 1: [‘Sheetal', 'and', 'Mitali, 'are’, ‘friends’, 'Mitali’, ‘likes’, ‘singing’, ‘songs’]
Here, we have not removed the stop words as the sentences have very less data.
In this step, we will create a dictionary of all the words, i.e, list down all the words which
occur in all two sentences. In case a word has occurred more than once then also we write it
only once but mention its occurrence the number of times it occur in the document.
Dictionary of Words
In this step, the words of the sentence are written in the top row. Now, for each word in the
sentence, if it matches with the words mentioned, mention 1 under it. If the same word
appears again, increment the previous value by 1. And if the word does not occur in that
sentence, put a 0 under it.
Sheeta and Mitali are friend likes singin songs listenin to music
l s g g
1 1 1 1 1 1 1 1 0 0 0
In the first sentence, we have words Sheetal, and, Mitali, are, friends, Mitali, likes, singing,
Songs. So, all these words get a value of 1 and rest of the words get a 0 value.
Step 4: Repeat the above step for the other sentence in the document
Sheeta and mitali are friends likes singin songs listening to music
l g
1 1 1 1 1 1 1 1 0 0 0
1 0 0 0 0 1 0 0 1 1 1
The above table gives us document vector table for our corpus. In this table the tokens are
not converted to numbers yet. Now we need to perform a step where we can convert the
tokens into meaningful numbers, so we will go on the next/final step of our algorithm which is
TFIDF (Term Frequency and Inverse Document Frequency).
In the above graph, we have plotted the occurrence of words versus their value.
Further, when we move towards frequent words occurring in the document, then we observe
that they have some amount of value and are termed as frequent words.
Going further in the graph, we observe that when the occurrence of words drops down have
higher value. These words are termed as rare or valuable words. These words occur the
least but add the most value to the corpus.
To identify the value of each word, we use Term Frequency and Inverse Document
Frequency (TF-IDF).
Term Frequency
Term frequency refers to the frequency of a word in one document. Term frequency can
easily be found from the document vector table as in that table we mention the frequency of
each word that occur in each document.
Sheetal And Mitali Are Friends Likes Singing Songs Listening To Music
1 1 1 1 1 1 1 1 0 0 0
1 0 0 0 0 1 0 0 1 1 1
These numbers are the Term Frequencies.
Sheeta And Mitali Are Friend likes singin songs Listenin To music
l s g g
2 1 1 1 1 2 1 1 1 1 1
In Inverse Document Frequency, we need to put the document frequency in the denominator
while the total number of documents i.e., 2 is written in the numerator.
Here, the total number of documents are 2, hence inverse document frequency becomes:
Sheeta And Mitali Are Friend likes Singin songs Listenin To music
l s g g
2/2 2/1 2/1 2/1 2/1 2/2 2/1 2/1 2/1 2/1 2/1
Finally, the formula of TFIDF for any word W becomes:
Here, log is to the base of 10. We can check the value of log in log table. Now, we will
multiply the IDF values to the 17 values. The TF values are for each document while the IDF
values are for the whole corpus so, we need to multiply the IDF values to each row of the
document vector table.
Sheetal And Mitali Are Friends Likes Singing Songs Listenin To music
g
1*log(1) 1*log(2) 1*log(2) 1*log(2) 1*log(2) 1*log(1) 1*log(2) 1*log(2) 0*log(2) 0*log(2) 0*log(2)
1*log(1) 0*log(2) 0*log(2) 0*log(2) 0*log(2) 1*log(1) 0*log(2) 0*log(2) 1*log(2) 1*log(2) 1*log(2)
The IDF values for some words in each row is the same and similar pattern is followed for all
the words. After calculating all the values, we get.
Sheetal And Mitali Are Friends Likes Singing Songs Listenin To music
g
0 0.3010 0.3010 0.3010 0.3010 0 0.3010 0.3010 0 0 0
0 0 0 0 0 0 0 0 0.3010 0.3010 0.3010
Finally, the words have been converted to numbers. These numbers are the values of each
for each document. Here, you can see that since we have less amount of data, words like
'are and "and" also have a high value. But as the IDF value increases, the value of that word
decreases. That is, For example:
which means: log (1.6666) = 0.2218, which shows that the word water has
considerable value in the corpus.
2. Topic Modeling: TF-IDF helps in predicting the topic for a corpus based on the
occurrence of the words.
3. Information Retrieval System: TF-IDF was performs document search and can be used
to deliver results that are most relevant to the words we are searching for.
4. Stop Word Filtering: TF-IDE helps in removing the unnecessary words out of a text body
in case the document is very big, then we remove the stop words as for computer the
stop words are of no value.
5. Keyword Extraction: TF-IDF is also useful for extracting keywords from text. The highest
scoring words of a document are the most relevant to that document, and therefore they
can be considered keywords for that document.
[1]
CLASS X COMMUNICATION SKILLS
Disadvantages
1. It can lead to emotional problems.
2. It has no legal validity.
3. It lacks any means of permanent storage of record.
4. Difficulty in communicating with distant people.
Disadvantages
1. Not suitable for lengthy messages.
2. An incomplete form of communication.
3. Chances of misinterpretation.
Disadvantages
1. Comparatively expansive.
2. Time-consuming.
3. Not a complete form of communication.
Disadvantages
1. Costly
2. Time consuming
3. A barrier of qualification/languages
1.5.1BARRIERS IN COMMUNICATION
1. Linguistic Barriers: The language barrier is one of the main barriers that limit effective
communication .The fact that each major region has its own language is one of the barriers
to effective communication.
[2]
CLASS X COMMUNICATION SKILLS
2. Psychological Barriers: There are various mental and psychological issues that may be
barriers to effective communication. Some people have stage fear, speech disorders,
phobia, depression, etc.
3. Emotional Barriers: The emotional IQ of a person determines the ease and comfort with
which they can communicate. A person who is emotionally mature will be able to
communicate effectively.
4. Physical Barriers: They are one of the most important barriers to effective communication.
They include barriers like noise, closed doors, faulty equipment used for communication,
closed cabins, etc.
5. Cultural Barriers: Different cultures have a different meaning for several basic values of
society. Dressing, religions or lack of them, food, drinks, pets, and the general behaviour
will change from one culture to another.
6. Organisational Barriers: If in an organisation, there is no clarity about the roles,
structures, responsibilities, it will hinder effective communication among the members of the
organisation.
7. Attitude Barriers: Certain people like to be left alone. They are the introverts or who are
not very social. Others Like to be social or are extroverts. Both these cases could become a
barrier to communication.
8. Perception Barriers: Different people perceive the same things differently. This is a fact
which we must consider during the communication process.
9. Technological Barriers: Technology is developing fast and as a result, it becomes difficult
to keep up with the newest developments. Hence sometimes the technological
advancement may become a barrier.
[3]
CLASS X COMMUNICATION SKILLS
6. Listen to the speaker attentively.
7. Nod while listening to the speaker.
3.1 FEEDBACK
The receiver’s response or reply to the sender’s message is called feedback. Feedback ensures a
proper understanding between sender and receiver. Feedback provides information about the
success of the communication.
3. Specific & Non-Specific Feedback : Specific feedback usually gives the main points of
the feedback instead of giving a general review. Non-specific feedback gives a general
overview instead of talking about the main points or specific points.
Examples:
Non-Specific feedback: “I like your story. It’s good.”
Specific feedback: “I like the way you described your grandpa’s character. It makes me feel
like I know him too.”
[4]
CLASS X COMMUNICATION SKILLS
4.1 WRITING SKILLS
Writing skills is an important part of communication.
4.2 PHRASES
A phrase is a group (or pairing) of words in English. Some examples of phrases are :
In the air, Beside the bed, Along the road, To live and breathe
All the above examples make a sense but do not convey the full meaning.
1. The subject of a sentence is the person, place or thing that is performing the action of the
sentence.
2. The predicate expresses action related to that person, place or thing
[5]
CLASS X COMMUNICATION SKILLS
4.6 ARTICLE WRITING
Article writing is the process of creating a non-fiction text about current or recent news, items of
General interest or specific topics.
4.7 PARAGRAPH
A paragraph is a set of sentences grouped together. It all begins with one idea and everything
familiar that is related to the idea fits into one paragraph. These ideas should not be random
rather they are arranged into a logical chronological order that flows in one direction making it
easier to read.
1. The first step is the introduction. It is an introduction about the main topic that you are writing
about in that paragraph. It should not be in detail.
2. The second step is the body of the paragraph which has the information or ideas you wish to
convey. They need to follow your introduction and make it logical in sequence.
3. The third and last step is to use your concluding sentence, or series of sentences, to finish
off this particular fragment of subject matter.
[6]
CLASS X Self- Management Skills
Unit – 2 Self-Management Skills
INTRODUCTION
Self-management skills are those abilities that allow an employee to feel more productive while
doing daily routine tasks regardless of the working environment. Well-developed self-management
skills will help you efficiently communicate with co-workers, senior management, and customers,
make right decisions, maintain a work-life balance, and keep your body and mind healthy.
The skills that are needed for self-management:
Self-awareness: You should be self aware of your positive and negative traits. Look at
your personality insight and work proficiencies.
Responsibility: Taking responsibility of what we do is very important. Taking responsibility
is a way to move towards self-development.
Time management: Make priorities of the task list we have to do. Remove unnecessary
and duplicate work. Make a time table and follow it diligently.
Adaptability: Always stay updated with the current changes and practices and read only
new information available.
SESSION 1: STRESS MANAGEMENT
1.1 STRESS
A famous psychologist and professor Richard Lazarus explained ‘Stress’ as a condition or feeling
experienced “when a person perceives that demands exceed the personal and social resources
the individual is able to mobilize.” This means that we experience stress if we believe that we don’t
have the time, resources, or knowledge to handle a situation.
[1]
CLASS X Self- Management Skills
Taking Breaks and Good Sleep: Taking break from your regular routine is a useful
technique of lowering stress, especially if the stress is being caused by your work or
routine.
Positive Thinking and Outlook: Positive outlook and thinking refers to looking for the
good and opportunities in a situation, rather than the bad.
Organising Life: For you students, one major cause of stress is your mismanaged studies.
For keeping yourself stress free, make sure that you are always organized in terms of your
belongings (books, notebooks, other material) and never delay your work and learning.
[2]
CLASS X Self- Management Skills
3.1 TYPES OF MOTIVATION
There are multiple reasons, which motivate people. The reasons could come from within or from
outside. So, motivation can be External or Internal.
If an external factor, such as a reward, is responsible for motivation, it is called External or
Extrinsic Motivation. Some other factors responsible for external motivation are incentives,
promotion, punishment, criticism, failure etc.
If an internal factor, such as having peace of mind, is responsible for motivation, it is called
Internal or Intrinsic Motivation. Some other factors responsible for internal motivation are
love, joy, belonging, fear etc.
[3]
CLASS X Self- Management Skills
4.2 SMART GOALS
SMART is an acronym used for goal setting. To make sure that the chosen goals are clear and
reachable, they should be SMART, i.e.,
Specific (simple and sensible)
Measurable (meaningful)
Achievable (attainable)
Relevant (reasonable, realistic)
Time bound (timely)
[4]
CLASS X Self- Management Skills
Brings more efficiency
Reduces Stress
PRACTICE SESSION
1. _________ refers to ‘self-control’ means the ability to control one’s emotions, thoughts, and
behavior effectively in different situations. (Ans. Self-Management)
2. Which of the following is one of the self-management skills?
a) Motivating Oneself
b) Setting Goals
c) Work Independently
d) All of the above
3. Asking about honest feedback, gathering personality traits, think about daily interactions are
related to which of the following skills?
a) Responsibility
b) Adaptability
c) Time management
d) Self-awareness
4. If an employer has assigned a task to an employee with a specific timeline. But due to a few
reasons, the employee couldn’t complete his work. The employee must
a) Ignore to report
b) Must report it
c) Remains absent for that day
d) Ask for additional time without a report
5. When an individual is prioritizing the work, it is considered as ___________ (Ans. Time-
management)
6. Staying with the current situation with new updated information and preparing yourself for new
challenges is called _________.
a) Responsibility
b) Adaptability
c) Time management
d) Self-awareness
7. _________ can be defined as our emotional, mental, physical, and social reaction to any
perceived demands or threats. (Ans. Stress)
8. Stress can be impacted positively also in our life. (True/False)
[5]
CLASS X Self- Management Skills
9. Which of the following is the most effective technique of stress management?
a) Healthy Diet
b) Exercises and Yoga
c) Positivity
d) Time Management
10. Which of the following technique help you to become more active physically?
a) Exercises and Yoga
b) Sleep
c) Healthy Diet
d) Sleep
11. Which of the following technique provide you with the strength to do your daily work
efficiently?
a) Healthy Diet
b) Sleep
c) Holiday with family or friends
d) Completing work on time
12. Which of the following help to recharge your brain and your body to function better?
a) Healthy Diet
b) Sleep
c) Holiday with family or friends
d) Completing work on time
13. Becoming self-aware, self-monitoring, and self-correcting, knowing what you do, taking
initiative rather than being told, recognizing your own mistakes, not blaming others, and the
ability to learn continuously referred to as ____________.
a) Self Dependent
b) Ego
c) Self Controlled
d) Emotional Intelligence
14. The ability to understand and identify their own emotions and other emotions as well is known
as emotional intelligence. (True/False)
15. The ability to identify and name our emotions is called ____________
a) Emotional Awareness
b) Harnessing Emotions
c) Managing Emotions
d) All of the
16. The ability to apply emotions to tasks like thinking and problem-solving is referred to as
harnessing emotions. (True/False)
17. Managing emotions refers to the ability to regulate our own emotions when necessary and
help others to do the same. (True/False)
18. Being emotionally intelligent enhances your chances of failure and an imbalanced life.
(True/False)
19. Which of the following technique help you to keep calm?
a) Meditation and Yoga
b) Watching TV and Web Series
c) Playing mobile games
d) All of these
[6]
CLASS X GREEN SKILLS
UNIT- V GREEN SKILLS
Sustainable development is a development that meets the needs of the present without
compromising the ability of future generations to meet their own needs.
In our daily life we can contribute to create a Sustainable Society by following 4Rs' and 1U of
Sustainability.
1. Refuse: We must first REFUSE to use products that may harm the environment. This will
help in creating sustainable environment.
2. Reduce: REDUCE comes after REFUSE. In this step, we minimize the use of the products
that may cause harm to environment.
3. Reuse: Next Step is REUSE. In reusing we can use that resources in another way and
keeps them out of the trash.
4. Recycle: Next step after REUSE is RECYCLE. After reusing the product, we must try to
recycle it, so that the leftover resource is used properly again.
5. Upcycle: UPCYCLING of products could be done manually as well as with the help of
machines, giving a new look to the old product and making it look desirable.
Sustainability is meeting the needs of the present without compromising the ability of future
generations to meet their needs. It has three main pillars: economic, environmental, and social
These three pillars are informally referred to as people, planet and profits.
1. The Environmental Pillar: The Environmental pillar is one of the most important pillars among
all three. The environmental pillar refers to the laws, regulations, and other policy mechanisms
concerning environmental issues These issues include air and water pollution, solid waste
management, ecosystem management. maintenance of biodiversity, and protection of natural
resources, wildlife and endangered species.
[1]
CLASS X GREEN SKILLS
2. The Social Pillar: Social Sustainability is the ability of a social system, such as a country,
family, or organization, to function at a defined level of social well-being and harmony. Problems
like war, endemic poverty, widespread injustice, and low education rate are symptoms of a system
that is socially unsustainable. Social pillar involves development of the workers or weaker section
of the economy, welfare of the local communities of the society.
3. The Economic Pillar: The economic pillar of sustainability is where most businesses feel they
are on firm ground. To be sustainable, a business must be profitable. Activities that fit under the
economic pillar include proper governance and risk management. This pillar is also referred to as
the governance pillar, referring to good corporate governance.
Many programmes were introduced by the government of India like Swachh Bharat, Make in India,
Digital India and Skill India for promoting the SDGs.
1. The ministry of statistics and programme Implementation (MOSPI) has been made, which is
engaged in the process of making national indicators for the SDGs.
2. State Governments have been asked to pay keen attention on visioning, planning,
budgeting and developing monitoring system for SDGs.
3. States have been directed to implement and ensure the action, implementation and
monitoring of centrally sponsored schemes for implementing SDGs.
2. Society to be included as a part and parcel of development: Societies at the state level
should be included in the proper execution of the SDGs.
4. Indicators should be clearly stated: Clear indicators should be mentioned in the policy
planning.
5. Collection of correct and huge data to be made: Progress can be monitored only when
the large data collected is correct.
[2]
CLASS X UNIT-II AI PROJECT CYCLE
UNIT-II AI PROJECT CYCLE
1.1 INTRODUCTION
A Project refers to set of operations carried out with given resources within a specific schedule
to achieve defined objectives. A project cycle refers to the life cycle of any project that
describes different project stages, with each stage being separate from one another and
delivering or meeting a certain objective.
1.2 AI PROJECT CYCLE
An AI Project Cycle refers to clearly defined different stages from initiation to closure of an AI
Project to achieve defined project objectives in specified time schedule.
The Artificial Intelligence project cycle is all about how to convert a real life problem or a
challenge into a computer based AI model. The AI model works on the problem solving area
and collects the data required for solving the problem. The data collected is then arranged in
systematic order and then based on this data a Modeling technique is decided and later
evaluated for the successful implementation of the AI model. Once the successful model is
made then it is implemented in the real world.
1.3 STAGES OF AI PROJECT CYCLE
An Artificial Intelligence based project undergoes broadly five(below given) stages. The stages
of an AI Project Cycle are:
(i) Problem Scoping
(ii) Data Acquisition
(iii) Data Exploration
(iv) Modeling
(v) Evaluation
a) Problem Scoping:
In this stage, broadly the aim and scope of the project undertaken are decided.
b) Data Acquisition:
This stage is a crucial stage of AI project cycle. In this stage, the data are acquired keeping
in mind the scope and parameters of the previous stage.
Standardized forms of data are extracted from dissimilar sources of data (bulk of sources)
and produced in the most appropriate input form, most suitable form to produce the desired
form of outcome.
c) Data Exploration:
The purpose of the third stage is to explore data and its patterns so as to:
Choose the types of models for the project that can solve the problem.
Clean and normalize the data to standardized and correlate the data.
Data from multiple sources is aggregated into a format suitable for the AI project’s
model.
d) Modeling:
The next phase of an AI project cycle is to model the data that will be used for the
prediction.
The most suitable AI-model is chosen that matches the requirements of the project.
Once the most efficient model is chosen, AI algorithm(s) is developed around it.
During this stage only, the training data and testing data are decided.
e) Evaluation:
In this final phase, now the developed model is actually evaluated for accuracy and
performance using new data. Then the results are evaluated to determine if the model
can be deployed or requires some improvement prior to the final deployment.
[1]
CLASS X UNIT-II AI PROJECT CYCLE
1.4 PROBLEM SCOPING
Problem Scoping is the initial stage of the AI project cycle. It refers to the process of
identifying or framing a problem in such a way that it can be visualized in order for it to be
solved.
1.4.1 Define Problem Statement And Set Actions
Setting goals for aproject is not enough. In order to solve a problem, the problem statement
must be clearly defined. It is very important to know how this problem is affecting whom;
what is the cause and why should it be solved? For this purpose, a useful tool- 4Ws
Canvas is used.
1.4.2 4Ws Canvas
The 4Ws Canvas tool is a problem framing method that helps in describing and interpreting
a problem to arrive at a problem statement. Framing a problem is all about identifying the
right problem to solve and to understand it perfectly. The 4Ws Canvas is a useful tool that
helps us critically explore a problem from various angles and bring clarity about the problem
to be solved.
The 4Ws Canvas tool (also known as problem statement template) explores four W-
based questions – WHO, WHAT, WHERE and WHY- in the context of problem to be solved
to clearly understand various aspects of the problem.
a) Who Block
The “WHO” block helps in finding the people who are getting affected directly or
indirectly due to the problem under analysis. Under this, we need to find out who are the
‘Stakeholders’ to this problem. We also need to find what we know about these
stakeholders. Stakeholders are the people who are currently facing the problem and
later they would be benefitted with the solution as well.
b) What Block
The “WHAT” block is used for finding the kind of problem we are facing. At this stage we
need to find the nature of the problem. Under this block, we also gather various
evidence to show that the problem we have found does actually exists. Newspaper
articles, Media, announcements, etc., are some examples through which we can get the
information regarding the problem.
c) Where Block
This block will help us to look into the situation in which the problem arises or the
context of the problem and the area where the problem is prominent.
d) Why Block
In this “Why” canvas, we think about the benefits which the stakeholders would get from
the solution and how would it benefit them as well as the society.
[4]
CLASS X UNIT-II AI PROJECT CYCLE
c) Sensors:Sensors, often called Transducers, convert real-world phenomenon like
temperature, force, and movement to voltage or current signals that can be used as
inputs.
d) Cameras:Camera is an important part of data collection in the form of images. Live data
can be acquired using the web-camera, CCTV, chat-bot interface, etc.
e) Observation:Observation means the careful and systematic viewing of facts as they
occur. Observation requires movement of the eyes and carefully listening through ears.
Observation serves the purpose of: (i) studying collective behavior and complex social
situations; (ii) following up of individual elements of the situations; (iii) understanding the
situation in their interrelation; (iv) getting the details of the situation.
f) API(Application Program Interface):Application programming interfaces are the piece
of codes which help one application to connect to another. API are used to collect data
from other application.
We should keep in mind that the data which we collect is open-source and it should not
belong to anybody. On internet the most reliable and authentic sources of information, are
the open-source websites hosted by the government. Some of the open-sourced
government portals are: data.gov.in, india.gov.in
1.5.5 Primary Data & Secondary Data
There are two terms associated based on who collects the data:
a) Primary Data is the type that you gather by yourself. It means you are actively involved
in the sourcing of information.
b) Secondary Data is all around us. It is easily accessible on the internet and requires
fewer resources to gather, unlike Primary Data. In this case, the collection of primary
data has been done by someone else before getting uploaded to the internet.
Secondary Data comes in the form of search results.
1.5.6System Maps
System Maps help us to find relationships between different elements of the problem which
we have scoped. It helps us in strategizing the solution for achieving the goal of our project.
A system map shows the components and boundaries of a system at a specific point in time.
With the help of System Maps, one can easily define a relationship amongst different
elements which come under a system. The use of ‘+’ signs and ‘-‘ signs in the loops indicate
the nature of the relationship between elements. The arrow-head depicts the direction of the
effect and the sign (+ or -) shows their relationship. If the arrow goes from X to Y with a +
sign, it means that both are directly related to each other. That is, If X increases, Y also
increases and vice versa. On the other hand, If the arrow goes from X to Y with a – sign, it
means that both the elements are inversely related to each other which means if X
increases, Y would decrease and vice-versa.
1.6DATA EXPLORATION
Data exploration is the phase after data acquisition wherein the collected data is cleaned by
removing redundant data and handling missing values and then analysed using data
visualization and statistical techniques to understand the nature of data before it can be
converted into AI models.
1.6.1Data Visualization
Data visualization refers to the process of representing data visually or graphically, by using
visual elements like charts, graphs, diagrams and maps etc.
The importance of data visualization is summarized as follows:
Data visualization is a powerful way to represent a bulk of data in a collective visual form.
It is a way to explore data with presentable results.
[5]
CLASS X UNIT-II AI PROJECT CYCLE
It becomes easier to see the trends, relationships and trends of data through data
visualization.
1.6.2Visualisation Tools
Some of the Data Visualisation Tools are:
a) Scatter Chart (Used with numeric type of data):
An XY (scatter) chart either shows the relationships among the numeric values in several
data series or plots two groups of numbers as one series of XY coordinates.
How to draw?
The scatter chart is drawn by plotting the independent variable on the horizontal axis X,
the dependent variable on the vertical axis Y and then by marking data points as per their
XY values.
b) Bubble Chart (Used with numeric type of data):
A bubble chart is primarily used to depict and show relationships between numeric
variables with marker size as additional dimension. Bigger marker means bigger value.
How to draw?
The bubble chart is drawn by plotting the independent variable on the horizontal axis (X),
the dependent variable on the vertical axis(Y) and then by marking bubbles at their XY
values. The Y values will determine the bubble size.
c) Line Graph(Used with numeric type data):
A line chart shows trends in data at equal intervals. Line charts are useful for depicting
the change in a value over a period of time.
How to draw?
The line chart is drawn by plotting the independent variable on the horizontal axis (X), the
dependent variable on the vertical axis(Y) and then by marking data points as per their
XY values. Then a line is drawn by joining the marked data points.
d) Pie Graph(Used with numeric type of data):
A pie chart shows the proportional size of items that make up a single data series to the
sum of the items.
How to draw?
The pie chart represents single data series, whole of which represents full circle (360).
Each data value is calculated as a percentage of whole and drawn as a pie of the circle.
e) Bar Graph (Used with numeric type of data):
A bar chart illustrates comparisons among individual items, mainly of number types.
How to draw?
The bar chart is drawn by plotting the independent variable on the horizontal axis(X), the
dependent variable(s) on the vertical axis (Y) and then by marking bars for their Y values.
f) Histogram (Used with numeric type of data):
A histogram is used to summarize discrete or continuous data by showing the number of
data points that fall within a specified range of values (called “bins”). Unlike a bar chart,
there are no gaps in between in a histogram.
How to draw?
Like bar chart, rectangles of varying height are used to represent the frequency of
different values of the continuous variable (Y values). There are no spaces between the
rectangles.
1.7 MODELLING
Modelling is a process in which AI-Enabled algorithms are being designed as per the
requirements of the system and later the model is implemented.
Modeling is the stage where we select the technique required for building the model using
prepared data. The model built is can be trained using various learning algorithms. To build an
[6]
CLASS X UNIT-II AI PROJECT CYCLE
AI based project, we need to work around Artificially Intelligent models or algorithms.Training a
model is required so that it can understand the various pattern, rules and features.
1.7.1Modelling Approaches
AI Modelling refers to developing algorithms, also called models which can be trained to
getintelligent outputs. That is, writing codes to make a machine artificially intelligent.In
Modeling, there are two approaches taken by researchers while building AImodels. Now let
us understand this modeling technique.
Rule Based
Decision Tree
Approach
Classification
Supervised
Modeling Learning
Regression
Reinforcement Dimensionality
Learning Reduction
1.7.2Categories of AI Models
The AI models can either be data driven or model driven. The model driven AI models are
mainly rule based while data driven AI models are mainly learning based.
a) Rule-based Approach:
A Rule based Approach is generally based on the data and rules fed into the machine,
where the machine reacts accordingly to deliver the desired output. Rule Based Approach
refers to the AI modeling where the relationship or patterns in data are defined by the
programmer or the model developer. The machine is trained using the rules laid down by
the developer. The machine has to follows the rules or instructionsmentioned and then
performs its task accordingly.
Decision Tree is an example of a Rule based approach.
It is a tree-structured classifier, where internal nodes represent the features of a
dataset, branches represent the decision rules and each leaf node represents the
outcome.
In a Decision tree, there are two nodes, which are the Decision Node and Leaf
Node. Decision nodes are used to make
any decision and have multiple branches,
whereas Leaf nodes are the output of
those decisions and do not contain any
further branches.
The decisions or the test are performed on
the basis of features of the given dataset.
It is a graphical representation for getting
all the possible solutions to a
problem/decision based on given
conditions.
[7]
CLASS X UNIT-II AI PROJECT CYCLE
It is called a decision tree because, similar to a tree, it starts with the root node, which
expands on further branches and constructs a tree-like structure.
A decision tree simply asks a question, and based on the answer (Yes/No), it further
split the tree into subtree.
We can understand decision tree with the help of the example given below:
We can draw the decision tree for those people who are interested in buying a new house
based on income. The decision of the house type whether 1BHK, 2BHK, 3BHK or 4BHK is
taken.
Drawbacks of Rule Based AI Models
Although the rule based AI models are comparatively easier to maintain and implement, they
also suffer from the following drawbacks:
(i) Lot of manual work. The rule based system requires a lot of manual work as all the
rules governing the decisions must be pre-coded and made available to the system.
(ii) Consumes a lot of time. Creating all possible rules for a system requires a lot of time.
(iii) Suitableonly for less complex domains.Complex systems would require large
number of rules.
b) Learning-based Approach:
A Learning based approach is that the machine is fed with data and the desired output is
achieved when the machine designs its own algorithm (or set of rules)to match the data to
the desired output fed into the machine. Learning based approach refers to the AI modeling
where the relationship or patterns in data are not defined by the programmer or model
developer. In this approach, random data is fed to the machine and it is left on the machine
to figure out patterns and trends out of it.
Generally this approach is followed when the data is unlabelled and too random for a
human to make sense out of it. Thus, the machine looks at the data, tries to extract similar
features out of it and clusters same data sets together. In the end as output, the machine
tells us about the trends which it observed in the training data.
Why Machine Learning (ML) fall under the category of Learning-Based AI?
Machine Learning (ML) is a branch of AI that enables machines to automatically learn and
improve at tasks with experience and by the use of data.ML based machines undergo lots
of repetitions of taking data and testing it; these then keep track of when things went wrong
or right, and keep improving their results.
The ML systems can automatically learn and improve without explicitly being programmed.
The recommendation systems on music and video streaming services are example of
ML.Machine learning finds patterns in data and uses them to make predictions.
1.7.3 Unlabelled and Labelled Data
Before we proceed to the discussion of different learning based approaches, it is important
to talk about labelled and unlabelled data first.
a) Unlabelled Data:Unlabelled data is a description for pieces of data that have not been
tagged with labels identifying characteristics, properties or classifications of data. Some
examples of unlabelled data might include photos, audio recordings, videos, news
articles, tweets, x-rays (in case of some medical application), etc. There is no
“explanation” for each piece of unlabelled data – it just contains the data, and nothing
else.
b) Labelled Data: Labelled data is a group of samples that have been marked with one or
more labels. Labelling puts meaningful tags to data so that it gives some information or
[8]
CLASS X UNIT-II AI PROJECT CYCLE
explanation about the data, e.g., if some X-ray images are labeled as “tumour” then
those X-ray images are not unlabelled any more, rather, now they belong to a category
of images that show tumors of some type.
1.7.4 Supervised Learning
Supervised learning is a machine learning approach in which a machine, with the help of an
algorithm(called the model), learns from a labeled dataset and desired outputs. Using this
dataset, it learns to identify the type or class of the data given to it. Later some data is
shown to it to test if it can clearly identify the
data or not. It applies the same concept as a
student learns in the supervision of the
teacher.
For example, a labelled dataset of shapes
would contain photos of triangle tagged as
triangle, photos of square tagged as square
and so on for other shapes. When showna
new image, the model compares it to the
training examples to predict the correct label. The model gets feedback about its result as
per the desired outputs and this way, it learns to classify correctly and that is why it is
supervised learning.
1.7.4.1 Types of Supervised Learning
a) Classification: This is type of Supervised Learning. In
general, classification refers to the process of classifying
something according to its features. Similarly, in AI models,
classification algorithms are used to classify the given
dataset on the basis of rules assigned to it.
Let us understand with the help of a simple example.
Suppose you have a dataset consisting of 100 images of
pears and pomegranates. Now, you want to train a model
to recognize whether an image is of a pear or a
pomegranate. To do this, you must train the model with
discrete datasets along with their labels. After training with
a particular dataset, your model will be ready to classify the images on the basis of the
labels and predict the correct label for test data.
A classification problem is when the output variable is a category, such as “Red”
or “blue”, “disease” and “no disease”, spam or no
spam in email.
[10]
CLASS X UNIT-II AI PROJECT CYCLE
Data visualization applications
Video & satellite observation compression
1.7.9 Association
Association is another unsupervised learning
technique that finds important relations between
variables or features in a data set.
For example, if you pick some home decor items
such as lamps or shelves in an online shopping cart,
it will start suggesting the related items such as
furniture, rugs and even interior designing firms.
This is an example of association, where certain
features of a data sample correlate with other features. By looking at a couple key attributes
of a data point, and unsupervised learning model can predict the other attributes with which
they’re commonly associated.
Some examples of association problems/applications are:
As Recommendation Systems, based on people’s own personality/habits.
People that buy a new home are most likely to buy new furniture and thussuggesting
furniture items and stores
1.7.10Reinforcement Learning
Reinforcement Learning is a feedback-based Machine learning technique in which an agent
learns to behave in an environment by performing
the actions and seeing the results of actions. For
each good action, the agent gets positive
feedback, and for each bad action, the agent gets
negative feedback or penalty.
In Reinforcement Learning, the agent learns
automatically using feedbacks without any labeled
data. Since there is no labeled data, so the agent is
bound to learn by its experience only.
Example:
The problem is as follows: We have an agent and a reward, with many hurdles in
between. The agent is supposed to find the best possible path to reach the reward.
The following problem explains the problem more easily.
The image shows the robot, diamond, and fire. The goal of the robot is to get the
reward that is the diamond and avoid the hurdles that are fired. The robot learns by
trying all the possible paths and then choosing the path which gives him the reward
with the least hurdles. Each right step will give the robot a reward and each wrong
step will subtract the reward of the robot. The total reward will be calculated when it
reaches the final reward that is the diamond.
Neural Networks
Biological Neural Network
In living organisms, the brain is the control unit of the neural network, and it has different
subunits that take care of vision, senses, movement, and hearing.
The brain is connected with a dense network of nerves to the rest of the body’s sensors and
actors.
[11]
CLASS X UNIT-II AI PROJECT CYCLE
There are approximately 10¹¹ neurons in the
brain, and these are the building blocks of the
complete central nervous system of the living
body.
Working of Biological Neural Network
The neuron is the fundamental building block of
neural networks.
A neuron comprises three major parts: the
synapse, the dendrites, and the axon.
Dendrites: It receive signals from surrounding
neurons.
Axon: It transmits the signal as electric impulses along its length to the other neurons. Each
neuron has one axon.
Synapse: At the ending terminal of the axon, the contact with the dendrite is made through
a synapse.
Artificial Neural Network or Neural Network
The term "Artificial Neural Network" is
derived from Biological 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.
A neural network is essentially a system of organizing machine learning algorithms
to perform certain tasks.
The key advantage of neural networks, are that they are able to extract data features
automatically without needing the input of the programmer.
It is a fast and efficient way to solve problems for which the dataset is very large, such as in
images.
Working of Artificial Neural Network (ANN)
A Neural Network is divided into multiple layers and each layer is further divided into
several blocks called nodes.
Each node has its own task to accomplish which is then passed to the next layer.
The first layer of a Neural Network is known as the input layer. The job of an input layer is
to acquire data and feed it to the Neural Network. No processing occurs at the input layer.
Next to it, are the hidden layers. Hidden layers are the layers in which the whole processing
occurs. Their name essentially means that these layers are hidden and are not visible to the
user. Each node of these hidden layers has its own machine learning algorithm which it
executes on the data received from the input layer.
The processed output is then fed to the subsequent hidden layer of the network. There can
be multiple hidden layers in a neural network system and their number depends upon the
complexity of the function for which the network has been configured.
Also, the number of nodes in each layer can vary accordingly. The last hidden layer passes
the final processed data to the output layer which then gives it to the user as the final
output.
Similar to the input layer, output layer too does not process the data which it acquires. It is
meant for user-interface.
[12]