Notes pT2
Notes pT2
Applications of AI:
Understanding AI Domains:
• Natural Language Processing (NLP): Deals with textual data, enabling machines to
understand and interact using human language.
• Computer Vision (CV): Focuses on interpreting and processing visual data from images
and videos.
• Data for AI: Utilizes statistical data analysis to draw insights and make decisions.
• These games provide hands-on experience in understanding the principles of AI, showing
its application in real-world scenarios.
• AI integrates multiple domains to achieve complex tasks that simulate human
intelligence.
• Quiz questions covering AI applications, languages, domains, and their practical uses.
• Activities include teamwork, brainstorming applications of AI, and exploring how AI can
solve current societal issues, like mask detection during pandemics.
Purpose of AI Activities:
• To make students aware of the various domains of AI (NLP, CV, and Data) and
understand their practical implications.
• Encouraging collaborative learning through interactive games and challenges.
Lesson Title: AI Project Cycle
Let Us Think!
Modeling means
Modeling refers to selecting and applying appropriate algorithms and techniques to develop
predictive or analytical models based on the explored data. It involves training the AI to
recognize patterns and make decisions.
Evaluation means
Evaluation is the stage where the developed models are tested and assessed for their accuracy,
reliability, and effectiveness. This involves comparing the model's predictions or outputs against
actual data to measure performance.
Deployment means
Deployment involves implementing the developed AI model into a real-world application,
making it accessible for end-users. It means putting the solution into practice to address the
identified problem.
Let Us Understand!
• The cotton industry in India is crucial, with 6 million local farmers relying on it.
• Cotton crops are frequently infected with Pink Bollworm, which is difficult to detect with
the naked eye.
• Small farmers lack advanced tools to protect their crops effectively.
Can AI help?
AI can potentially be used to detect pest infestations early, allowing farmers to take timely
action. An AI system could analyze images of crops to detect pests, recommend appropriate
pesticides, and guide farmers on the correct application timing.
Task:
Data to Collect:
• Images of pests
• Farmer names
• Village names
• Farm sizes
• Pesticide usage records
Data Cleaning:
Data Exploration:
Modeling:
• Testing the AI model's accuracy by comparing its predictions against actual cases.
• Evaluating different AI models to find the most accurate and efficient one.
Deployment:
1. Efficiency: Breaking down the project into stages ensures that each aspect is thoroughly
considered and executed, leading to faster and more effective solutions.
2. Modularity: Complex problems can be broken into manageable parts, making it easier to
develop and implement solutions.
The AI Project Cycle is a structured, cyclical process that guides the development of AI projects.
It includes multiple stages:
1. Problem Scoping: Defining the problem and setting the project's goals.
2. Data Acquisition: Gathering relevant data to address the problem.
3. Data Exploration: Analyzing the data to uncover insights.
4. Modeling: Building and training AI models using the data.
5. Evaluation: Testing the models to ensure accuracy and reliability.
6. Deployment: Implementing the solution in a real-world environment.
Learning Outcomes:
Steps:
2.
3. Narrow down to specific topics under the theme (e.g., pest management in agriculture).
4. Identify problems within the selected topic.
5.
6. Define the goal of the project using a structured template.
•
Example Problem Statement:
Farmers are experiencing significant crop losses due to undetected pest infestations. An AI-
enabled mobile app could help by providing early detection of pests through image recognition,
advising on pesticide use, and optimizing crop management practices.
1. What are the various stages of the AI Project Cycle? Can you explain each with an
example?
2. How is an AI project different from an IT project?
3. Explain the 4Ws problem canvas in problem scoping.
4. Why is there a need to use a Problem Statement Template during problem scoping?
5. What is Problem Scoping? What are the steps of Problem Scoping?
6. Who are the stakeholders in the problem scoping stage?
Conclusion
The AI Project Cycle provides a systematic approach to solving complex problems using AI. It
allows for greater efficiency and effectiveness by breaking down tasks into manageable stages,
ensuring that all aspects of the project are thoroughly considered and addressed.
Data Acquisition
Learning Objectives:
Learning Outcomes:
1. Students will be able to identify the data required for a given problem.
2. Students will be able to draw System Maps.
Pre-requisites:
Key Concepts:
o
1. Who? Identifying stakeholders and what is known about them.
2. What? Understanding the problem and providing evidence.
3. Where? Analyzing the context and location of the problem.
4. Why? Determining value for stakeholders and how solutions can improve
their situation.
o Crafting a problem statement using identified details.
• Introduction to Data Acquisition:
o Data Acquisition is the process of gathering information or facts to support AI
projects.
o Example: Using past salary data to predict future salaries—training data vs.
testing data.
o Importance: Ensures the AI model is trained with relevant and authentic data for
accurate predictions.
• Concept of Data Features:
o Data features are specific types of data needed to address the problem.
o Example: For salary prediction, features might include salary amount, increment
percentage, increment period, bonuses, etc.
• Acquiring Data from Reliable Sources:
o Emphasis on acquiring data that is reliable, authentic, and relevant.
o Sources of data should be checked for authenticity to avoid incorrect training of
AI models.
o Use government portals for open-sourced data:
▪ Examples: data.gov.in, india.gov.in
1. Surveys
2. Web Scraping
3. Sensors
4. Cameras
5. Observations
6. APIs (Application Program Interface)
7.
Session Preparation:
Resources:
Revision Questions:
Data Exploration
Approach:
• Activity-Based Learning
Summary:
• Students will explore different types of graphs used in data visualization. They will learn
to find trends and patterns within datasets.
Learning Objectives:
Learning Outcomes:
Pre-requisites:
Key Concepts:
• Data Visualization.
Let us Recap!
• Quiz Questions:
1. What is the second stage of the AI project cycle? (Answer: a. Data Exploration)
2. What comes under Problem Scoping? (Answer: b. 4Ws Canvas)
3. Which is not valid for Data Acquisition? (Answer: d. Announcements)
4. What does an arrow with a minus sign between X and Y mean? (Answer: a. If X
increases, Y decreases)
5. Which is not part of the 4Ws Problem Canvas? (Answer: d. Which?)
Session Preparation
Logistics:
Materials Required:
• Computers (10)
Resources:
Purpose:
Instructional Approach:
• Relate data exploration to skimming a book before reading, to understand its suitability.
• Visualization helps to quickly comprehend trends, relationships, and patterns, guiding
model selection.
Activity Brief:
• Task: Explore various types of graphs using an online resource. Learn new visualization
techniques.
• Intervention: Guide students to choose suitable graphs for their specific data features.
Steps:
Purpose:
• Learn different visualization techniques and use the appropriate graph to represent data.
Instructions:
1. Students sketch graphs based on the data features they have identified.
2. Select two data features, plot their graphs on chart paper, and relate them to the project
goal.
3. Present the graphs, describing observed trends or patterns.
Materials Required:
• Chart Paper (10), Sketch-pens (10), Ruler (10), Basic Stationary (10 sets)
• Post-Activity Reflection:
o What data feature are you representing?
o Why did you choose this representation?
o List down trends or patterns observed.
Revision Questions:
These notes capture the essence of the "Data Exploration" activity and guide students through the
process of understanding and applying data visualization techniques.
Overview
• Previous Module: Data Exploration involved analyzing data acquired during the Data Acquisition
stage.
• Current Objective: Using insights from data exploration to develop a strategy for AI-based
projects.
• AI Project Development: Involves building or utilizing AI models/algorithms.
• Clarification: Understanding the distinctions between Artificial Intelligence (AI), Machine
Learning (ML), and Deep Learning (DL).
o
Relationship Between AI, ML, and DL
• AI: The broad umbrella term covering all intelligent machine systems.
• ML: A subset of AI, focusing on learning from data.
• DL: A more specific form of ML, dealing with large-scale data and complex models.
Modelling Approaches
• Rule-Based Approach:
o The machine operates based on predefined rules.
o Example: A dataset predicting whether a child can play golf based on weather
conditions.
o
• Learning-Based Approach:
o The machine learns from data without predefined rules.
o Adapts to changes and improves over time.
o Example: Distinguishing between images of apples and bananas by training on labeled
images.
o
Purpose of AI Modelling
Real-Life AI Examples
• Rule-Based:
o Static learning.
o Suitable for situations with clear, predefined rules.
• Learning-Based:
o Dynamic learning and adaptation.
o Suitable for complex scenarios with varying data patterns.
Classification of AI Tasks
These notes summarize the essential concepts regarding AI, ML, and DL, highlighting their
definitions, interrelationships, and approaches to modeling, which are foundational for building
AI-driven solutions.
AI Model Evaluation
Overview
Learning Outcomes
• By the end of the lesson, students should be able to apply evaluation techniques in their AI
projects.
Pre-requisites
Key Concepts
1. Importance of Evaluation: It ensures reliability, helps improve models, and confirms that the AI
solution is solving the intended problem effectively.
2. Definition of Evaluation:
o The process of understanding the reliability and performance of an AI model.
o Involves feeding a test dataset into the model and comparing outputs with actual
answers.
o Avoid using training data for evaluation to prevent overfitting (where the model simply
memorizes the data).
Evaluation Process
• Testing Models:
•
o Use testing data to check model performance.
o Evaluate how well the model addresses the AI problem.
o Performance is calculated based on specific parameters.
• Evaluation involves different techniques depending on the model type and purpose.
• Example: Testing a forest fire prediction model:
o True Positive (TP): The model correctly predicts a fire when there is one.
o
o False Positive (FP): The model incorrectly predicts a fire when there isn't one.
o
o False Negative (FN): The model fails to predict a fire when there is one.
o
o True Negative (TN): The model correctly predicts no fire when there isn't one.
o
•
Chapter Review Questions
1. What is Evaluation?: It’s the process of testing a model’s performance using test data to check
its reliability and accuracy.
2. What are various model evaluation techniques?: Techniques include checking metrics like True
Positive, False Positive, ROC, and others depending on the model type.
3. Why is model evaluation important in AI projects?: Evaluation helps in verifying the
effectiveness of the model, identifying errors, and ensuring the model is suitable for real-world
application.
4. What do you understand by the terms True Positive and False Positive?
o True Positive (TP): Correct prediction when the actual condition is true.
o False Positive (FP): Incorrect prediction when the actual condition is false.
These notes highlight the significance of model evaluation in AI projects, focusing on assessing
model reliability, understanding various evaluation terminologies, and emphasizing the need for
data-driven decision-making.
Summary:
• In this module, students will learn about the term "deployment" in the context of AI projects
and understand why it is a crucial step.
• Students will connect the concept of deployment to real-world examples, such as deploying a
chatbot on a website or a predictive model in a mobile app.
Learning Objectives:
Learning Outcomes:
Pre-requisites:
Key Concepts:
Activity Time!
• Activity Introduction:
In this activity, students will use the AI project cycle to conceptualize a solution for the
given problem.
o The AI project cycle is a 6-step process that helps in problem-solving using Artificial
Intelligence.
• Description:
All individuals have different cognitive levels and personalities, necessitating a
personalized education approach. A generalized education system does not cater to these
individual needs.
• Activity Guidelines:
o Understand the problem: Personalized education for each student.
o Learn the various aspects and developments in the field of AI in education.
o Fill in the AI Project Cycle mapping template for the problem.
o The solution will involve an AI algorithm that learns from student behavior and
preferences to provide tailored educational content.
Problem:
• Preventing vision loss and reducing delays in report generation for diabetic retinopathy.
• Millions of adults live with diabetes, which can lead to diabetic retinopathy, a condition that can
cause blindness.
Solution:
• AI models are used to detect diabetic retinopathy by analyzing images of the eye.
• At Aravind Eye Hospital in India, an AI screening solution, developed with Google, has achieved
high accuracy in detecting the condition.
• This AI solution allows for quick detection, even in rural areas, without the need for specialized
doctors.
Revision Time
Conclusion
• Emphasize the role of deployment as a crucial final stage in the AI project cycle.
• Encourage students to think about how they can use AI deployment techniques in future
projects and the challenges they might face.
Summary:
Students will learn about the differences between morals and ethics, understand ethical issues
related to personal data, and learn ethical principles for creating safer AI systems.
Objectives:
Pre-requisites:
Key Concepts:
1. Familiarization with the AI project cycle, its need, and how it maps to different projects.
2. Understanding AI ethics and the issues around AI ethics.
3. Ethical principles for creating safer AI solutions.
Ethical Scenario I
Imagine you're a high school teacher with many essays to grade. You discover an AI tool that
can automatically grade essays and assign them grades.
Discussion Questions:
1. Would you use the AI tool to grade the essays? Why or why not?
2. What are the advantages and disadvantages of using the AI tool?
3. Can you think of any challenges or potential biases the AI tool might face?
Ethical Scenario II
You're overseeing a busy fast-food restaurant. During a rush, you drop a burger on the dirty
floor. Your boss sees this and tells you to pick it up and serve it.
Discussion Questions:
Morals
Ethics
Key Difference:
• Morals are subjective and can vary based on cultural or societal norms.
• Ethics are more universal principles of right and wrong, often used to guide professional
behavior.
Purpose:
• Use the Moral Machine platform to explore moral decisions made by AI, such as in self-driving
cars.
Guidelines:
Discussion Points:
Scenario: Jack, a student, spends a lot of time online for research, social media, gaming, and
shopping. This means a lot of his personal information is stored on the internet.
Discussion Questions:
1. What types of personal data might be stored online?
2. How could this data be used to influence Jack’s decisions?
3. Is it ethical for governments or companies to access personal data without consent?
Jack is concerned about an AI-based essay grading system at his school that gave him a bad
grade, even though he wrote a good essay.
Principles of AI Ethics
1. Human Rights:
o AI should respect and protect human rights.
o AI must not take away freedom, discriminate, or deprive people of jobs.
o
2. Bias:
o AI should avoid biases stemming from skewed training data.
o AI must be trained on diverse datasets to represent all populations fairly.
o
3. Privacy:
o AI must ensure data privacy and safety.
o AI should be transparent about the data it collects and its purpose.
o
4. Inclusion:
o AI must be inclusive, ensuring it benefits everyone equally.
o AI solutions should be accessible and usable by diverse groups.
1. Ethics are guiding principles that help decide what is good or bad.
2. AI solutions should follow ethical guidelines to ensure safety, fairness, and inclusivity.
3. Moral Questions: What society considers right or wrong.
4. Ethical Questions: Whether actions are justifiable based on universal principles.
Understanding ethics and morality is essential for developing AI that is fair, inclusive, and
respects human rights. Students must learn to critically evaluate the impact of AI on society and
adhere to ethical principles in its development and deployment.
Learning Objectives:
• Define data literacy and explain its significance using real-world examples.
• Understand the impact of data literacy on daily life.
• Develop awareness of personal data, data privacy, and data security.
Learning Outcomes:
Key Concepts:
Data literacy involves understanding, working with, and communicating data. It encompasses the
ability to collect, analyze, and present data meaningfully.
Data Pyramid Stages:
Example: Rahul rated three films as bad, best, and average. The data is qualitative and
categorical. Filtering this data involves interpreting subjective opinions into categories.
Task: Rank news sources from most accurate to least, providing reasons for your choices.
Purpose: This activity aims to help participants practice evaluating and validating data sources
to develop critical data literacy skills.
Purpose of the Activity: To engage participants in understanding the importance of reliable data
sources and the impact of data literacy on decision-making.
Data Literacy Process Framework: An iterative process guiding effective data use and
awareness.
2.1.4 What are Data Security and Privacy? How are They Related to AI?
Data Privacy:
• Concerned with proper handling and protection of sensitive and personal data.
• Examples: Data breaches at government agencies, hospitals, or corporations.
• Rising cyber threats and technological advancements make data security crucial.
Do’s:
Don’ts:
• Avoid sharing personal info, opening suspicious emails, and engaging in cyberbullying.
Reference Links:
Revision Questions:
Learning Objectives:
Learning Outcomes:
Key Concepts:
• Made up of numbers.
• Used for statistical analysis.
• Example: Cricket scores, restaurant bills.
small changes
The image given here does not change, but we get data on the image by changing different
parameters like color and brightness
New data is added by slightly changing the existing data
1. Data Discovery: Searching for relevant datasets (e.g., images for a self-driving car model).
2. Data Augmentation: Increasing data by making slight changes (e.g., altering image color and
brightness).
3. Data Generation: Using sensors to record data (e.g., temperature readings).
Sources of Data:
•
• Secondary Data: External sources.
•
• While gathering data and choosing datasets, certain ethical issues can be addressed before
they occur
•
Usability of Data:
2.
3. Cleanliness: Data should be free from duplicates and anomalies.
4.
5. Accuracy: Data should match real-world values.
6.
Features of Data:
• Independent Features: Input for predictions.
• Dependent Features: Output of predictions.
•
Questions for Consideration:
Overview
Data processing and interpretation have become essential in today’s data-driven world, enabling
us to derive meaningful insights and make informed decisions.
• Definition: Data processing involves using computers to transform raw data into a readable and
interpretable format. It is essential for making sense of the data collected.
• Purpose: Helps in converting unorganized raw data into structured information that can be
utilized for various operations.
• Example: Calculating the total number of candies owned by Niki (7) and Ruchi (4) can be done
through data processing.
Data Interpretation
• Definition: Data interpretation is the process of making sense of processed data. It allows us to
answer specific questions by deriving meaning from the data.
• Purpose: Enables the understanding of trends, patterns, and answers to critical questions.
• Example: Determining how many more candies Ruchi needs to have an equal number with Niki
is an example of data interpretation.
6.
• Qualitative Data Methods: Record keeping, observation, case studies, focus groups, longitudinal
studies, and interviews.
• Quantitative Data Methods: Surveys, polls, observations, and longitudinal studies.
•
1. Textual Data Interpretation (DI): Presenting data in written form. Suitable for small datasets.
2.
3. Tabular DI: Representing data using tables with rows and columns. Suitable for structured data.
4.
5. Graphical DI: Using visual elements like bar graphs, pie charts, and line graphs for better data
comprehension.
6. a Bar Graph, data is represented using vertical and horizontal bars.
7.
8.
Pie Charts
Pie Charts have the shape of a pie and each slice of the pie represents the portion of the entire pie
allocated to each category
It is a circular chart divided into various sections (think of a cake cut into slices)
Each section of the pie chart is proportional to the corresponding value
Line Graphs
A line graph is created by connecting various data points.
It shows the change in quantity over time.
1. Trend Analysis: Using tools like Google Trends to analyze trending topics over time.
2. Visualizing Student Performance: Creating bar graphs and pie charts to display student scores
across different subjects.
Importance of Data Interpretation
These notes outline the fundamental aspects of data processing and interpretation, the methods
used, and the significance of these processes in real-world scenarios.