AI UNIT 1 - Copy
AI UNIT 1 - Copy
Frameworks for AI
Learning Objectives:
Students are:
Learning Outcomes:
Pre-requisites:
1. Basic knowledge of AI.
2. Basic understanding of ethics and ethics in AI.
Key-concepts:
1. Introduction to ethical frameworks for AI
2. Types of ethical frameworks
3. Application of ethical frameworks for AI
4. Principles of bioethics
1.1: AI Project Cycle
Introduction
Let us assume that you have to make a greeting card for your mother as it is her birthday. You
are very excited about it and have thought of many ideas to execute the same. Let us look at
some of the steps which you might take to accomplish this task:
1. Look for some cool greeting card ideas from different sources. You might go online and
check out some videos or you may ask someone who knows about it.
2. After finalising the design, you would make a list of things that are required to make this
card.
3. You will check if you have the material with you or not. If not, you could go and get all the
items required, ready for use.
4. Once you have everything with you, you will start making the card.
5. If you make a mistake in the card somewhere which cannot be rectified, you will discard it
and start remaking it.
6. Once the greeting card is made, you will gift it to your mother.
These steps show how we plan to execute the tasks around us. Consciously or subconsciously
our mind makes up plans for every task which we have to accomplish which is why things
become clearer in our mind. Similarly, if we have to develop an AI project, the AI Project Cycle
provides us with an appropriate framework which can lead us towards the goal. The AI project
cycle is the cyclical process followed to complete an AI project. The AI Project Cycle mainly has
6 stages:
Starting with Problem Scoping, you set the goal for your AI project by stating the problem
which you wish to solve with it. Under problem scoping, we look at various parameters which
affect the problem we wish to solve so that the picture becomes clearer.
To proceed,
● You need to acquire data which will become the base of your project as it will help you
understand what the parameters that are related to problem scoping are.
● You go for data acquisition by collecting data from various reliable and authentic sources.
Since the data you collect would be in large quantities, you can try to give it a visual image of
different types of representations like graphs, databases, flow charts, maps, etc. This makes it
easier for you to interpret the patterns which your acquired data follows.
● After exploring the patterns, you can decide upon the type of model you would build to
achieve the goal. For this, you can research online and select various models which give a
suitable output.
● You can test the selected models and figure out which is the most efficient one.
● The most efficient model is now the base of your AI project and you can develop your
algorithm around it.
● Once the modelling is complete, you now need to test your model on some newly fetched
data. The results will help you in evaluating your model and improving it.
● Finally, after evaluation, the deployment stage is crucial for ensuring the successful
integration and operation of AI solutions in real-world environments, enabling them to deliver
value and impact to users and stakeholders.
Artificial Intelligence becomes intelligent according to the training it gets. For training, the
machine is fed with datasets. According to the applications for which the AI algorithm is being
developed, the data fed into it changes. With respect to the type of data fed in the AI model, AI
models can be broadly categorized into three domains:
Statistical Data
Statistical Data 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 statistical data can be used to make a decision about it.
Computer Vision
Computer Vision, abbreviated as CV, is a domain of AI that depicts the capability of a machine
to get and analyse visual information and afterwards predict some decisions about it. The
entire process involves image acquiring, screening, analysing, identifying and extracting
information. This extensive processing helps computers to understand any visual content and
act on it accordingly. In computer vision, Input to machines can be photographs, videos and
pictures from thermal or infrared sensors, indicators and different sources.
Computer vision-related projects translate digital visual data into descriptions. This data is then
turned into computer-readable language to aid the decision-making process. The main objective
of this domain of AI is to teach machines to collect information from pixels.
Agricultural Monitoring
Natural Language Processing, abbreviated as NLP, is a branch of artificial intelligence that deals
with the interaction between computers and humans using the natural language. Natural
language refers to language that is spoken and written by people, and natural language
processing (NLP) attempts to extract information from the spoken and written word using
algorithms.
The ultimate objective of NLP is to read, decipher, understand, and make sense of human
languages in a valuable manner.
Email filters
Machine Translation
Frameworks
Frameworks are a set of steps that help us in solving problems. It provides a step-by-step guide
for solving problems in an organized manner. Moreover, frameworks offer a structured
approach to problem-solving, ensuring that all relevant factors and considerations are taken into
account. Additionally, they serve as a common language for communication and collaboration,
facilitating the sharing of best practices and promoting consistency in problem- solving
methodologies.
You may have used frameworks without knowing it! Can you think of one framework you have
come across during your AI journey?
Ethical Frameworks
As we have seen how bias could result in unwanted outcomes in AI solutions. Think of thehiring
algorithm which was biased against women applicants!
AI is essentially being used as a decision-making/ influencing tool. As such we need to ensure
that AI makes morally acceptable recommendations
Ethical frameworks ensure that AI makes morally acceptable choices. If we use ethical
frameworks while building our AI solutions, we can avoid unintended outcomes, even before
they take place!
Activity: 1 My Goodness
Purpose: To understand how our decisions get influenced by our personal morals, values
and ethics!
Say: “Carefully read the descriptions provided that help you decide on donating. Explore your
decision-making ability.”
Players must make 10 decisions on how they would like to make a charitable donation. In most
cases, players will receive details about the recipients. They will also be given information on
the intended use of the money they are donating. In a few instances, this may be hidden from
them, however they can choose to reveal it.
This activity aims to understand an individual’s judgment. We are looking to discover potential
biases within us!
Data is collected anonymously and with your consent.
If you wish to delve deeper and explore your own decision-making, click on “yes.”
After clicking on “yes” you will be taken to a short survey.
After the survey has been filled, you will see interesting insights about your decisions
This is just an exercise to uncover our biases and thought processes behind making certain
decisions. This will help us in producing a framework which can aid in making decisions which
are ethically sounder.
Let’s list at least 3 factors which knowingly or unknowingly influence our decision-making.
Value of humans
Culture
Value of non-humans
Is the decision I am
taking aligned with Religion
my religious views?
Bioethics
Bioethics is an ethical framework used in healthcare and life sciences. It deals with ethical
issues related to health, medicine, and biological sciences, ensuring that AI applications in
healthcare adhere to ethical standards and considerations.
Principles of bioethics:
• Respect for Autonomy.
• Do not harm.
• Give justice.
• “Beneficence" refers to the ethical principle of promoting and maximizing the well-being and
welfare of individuals and society. It emphasizes taking actions that produce positive outcomes
and contribute to the overall good, ensuring that the greatest benefit is achieved for all
stakeholders involved.
Let’s look at a case study and see the impact of the application of an AI ethical framework on
the end outcome.
Case Study
A company aimed to support hospitals in optimizing patient care by
creating an AI algorithm designed to identify individuals at high risk.
The objective was to provide healthcare providers with valuable
insights to allocate resources effectively and ensure those most in
need receive appropriate attention. However, potential unintended
consequences lead to some problems in the model, such as the
algorithm inadvertently exacerbating existing biases or inaccuracies in
the data, potentially leading to misclassification of patients or
overlooking critical cases. Addressing concerns about the algorithm's
accuracy and reliability becomes paramount, as any flaws in its designor
training data could compromise patient care and outcomes
• This algorithm was created in the United States where less money is spent on western
region patient healthcare than other ethnic patient healthcare.
This meant the algorithm
We can use principles of the Bioethics framework to ensure an ethical AI solution.
The four principles of bioethics can be used to ensure an ethical AI solution for the healthcare
problem.
i. Respect for autonomy: Enabling users to be fully aware of decision-making. E.g., users of an
AI algorithm should know how it functions.
• The data that models were trained on, and used to make
decisions, should be reproducible and accessible to the
patients.
iii. Maximum benefit: Not only should we avoid harm our actions must focus on providing the
maximum benefit possible.
We saw that abiding by bioethical principles could have helped us to avoid the unintended
consequences of the AI solution.
Test Yourself:
1. What is the purpose of defining the problem statement during the Problem Scoping stage in
an AI project cycle?
A) To collect data
B) To understand the aim and objective of the project
C) To train the model
D) To process data
2. In what ways can AI models be categorized based on the type of data fed into them?
A) Two domains
B) Four domains
C) Three domains
D) Five domains
3. In Statistical Data, what is the primary function of the system in relation to data?
A) Generating large datasets
B) Analyzing data to extract insights
C) Converting data into images
D) Distributing data across networks
A) Both Assertion and Reasoning are true, and Reasoning is the correct explanation of the
Assertion.
B) Assertion is true, but Reasoning is false.
C) Both Assertion and Reasoning are true, but Reasoning is not the correct explanation of the
Assertion.
D) Assertion is false, but Reasoning is true.
12. Assertion: Value-based frameworks in ethics provide guidance by focusing on fundamental
ethical principles and values.
Reasoning: These frameworks reflect different moral philosophies guiding ethical reasoningand
are concerned with assessing the moral worth of actions.
A) Both Assertion and Reasoning are true, and Reasoning is the correct explanation of the
Assertion.
B) Assertion is true, but Reasoning is false.
C) Both Assertion and Reasoning are true, but Reasoning is not the correct explanation of the
Assertion.
D) Assertion is false, but Reasoning is true.
Reflection Time:
1. Outline the main steps in the AI Project Cycle briefly.
2. What roles does computer vision play in agricultural monitoring systems?
3. Mention the factors which knowingly or unknowingly influence our decision-making.
4. What is the necessity for Ethical Frameworks in AI development?
5. Mention the key characteristics of sector-based frameworks.
Case-Based Questions
1. Case Scenario:
Question:
Drawing from the case presented, analyze the ethical considerations surrounding the
company's environmental practices through the lens of value-based frameworks in ethics.
2. Case Scenario:
In a rural farming community, a group of small-scale farmers is faced with a dilemma regarding
the use of pesticides on their crops. The farmers have traditionally relied on chemical
pesticides to control pests and maximize crop yields. However, concerns have been raised
about the potential environmental and health impacts of pesticide use, including soil
contamination, water pollution, and adverse effects on human health. Additionally,
neighboring communities and environmental advocacy groups have expressed opposition to
the widespread use of pesticides, citing ecological damage and risks to biodiversity.
Question:
Using the case provided, examine the ethical considerations surrounding pesticide use in the
agricultural sector, applying ethical frameworks to analyze the competing interests and values
at stake.