< How AI Works

Lesson 7: Our AI Code of Ethics

45 minutes

Overview

This lesson centers around the How AI Works: Privacy and the Future of Work video from the How AI Works video series. Watch this video first before exploring the lesson plan.

In small groups, students conduct research using articles and videos that expose ethical pitfalls in an Artificial Intelligence (AI) area of their choice. Afterward, there are options for how students synthesize what they've learned to make recommendations for how AI can be used in society: creating an AI Code of Ethics, or creating an AI Manifesto, or designing an "Imagine your World" artistic representation.

This lesson can be taught on its own, or as part of a 7-lesson sequence on How AI Works - click here to view all lessons in this sequence.

CSTA K-12 Computer Science Standards (2017)
    • 2-IC-20 - Compare tradeoffs associated with computing technologies that affect people's everyday activities and career options.
    • 2-IC-21 - Discuss issues of bias and accessibility in the design of existing technologies.
Common Core English Language Arts Standards
    • 9-10.RI.1 - Cite strong and thorough textual evidence to support analysis of what the text says explicitly as well as inferences drawn from the text.
    • 9-10.RI.8 - Delineate and evaluate the argument and specific claims in a text, assessing whether the reasoning is valid and the evidence is relevant and sufficient; identify false statements and fallacious reasoning.

Agenda

Objectives

Students will be able to:
  • Define artificial intelligence (AI) in their own words, using technologies they encounter in their daily lives as examples.
  • Describe at least one example of an ethical issue pertaining to AI, along with its impact on society.

Preparation

  • Review the slide deck and student resources
  • Review the research topics and decide if you would like to remove / add any topics
  • Decide which final activity to complete with the class (there are 3 options)

Links

Heads Up! Please make a copy of any documents you plan to share with students.

For the teachers
For the students

Vocabulary

  • Artificial Intelligence - A technology that mimics human intelligence, performing tasks such as understanding language, recognizing patterns, and making decisions.

Teaching Guide

Before the Lesson

Preparing to Teach a Code.org Lesson

Getting Started with Code.org: Consider watching our Getting Started with Code.org video series for an overview of how to navigate lesson plans, setup a classroom section, and other important features of the Code.org platform. Each video also has a support article if you'd prefer to read or print instructions - click here to learn more.

View the Resources: This lesson plan comes with a slide deck and additional resources, found in the Links section of the lesson plan. Each bolded line in the lesson plan usually corresponds to a slide in the slide deck. It can be helpful to have the slides and student resources open while reading the lesson plan, as there are visuals and additional information not always represented in the lesson plan.

Supports for Teachers: You can learn more about bringing AI lessons to your classroom through our AI 101 for Teachers series. AI 101 for Teachers is a free, foundational online professional learning series for any teacher and educator interested in the groundbreaking world of artificial intelligence (AI) and its transformative potential in education.

Preparing to Teach a Lesson on AI Impact & Bias

Checking Resources: Students will be researching different topics related to Artificial Intelligence. Research areas are included in this handout: [r airesearchareas/ai-ethics/2023]. We haven't provided these directly to students because sometimes these sites are blocked by district filtering programs, or the latest news-worthy innovation may not be middle-school appropriate. We strongly suggest you check each site for appropriateness of content and to make sure it will load on classroom computers before sharing it with students. You are also welcome to curate your own news sources based on current events or issues in your state or community.

LEADERS Framework: This lesson allows students to explore the societal impacts of artificial intelligence on society, both the intentional solutions that can be beneficial to society and the unintended consequences that may be harmful to society. Issues of bias in artificial intelligence may come up in research material and class discussion.

To help prepare for these moments, we recommend reviewing the [r leaders_framework/ai-ethics/2023] for facilitating lessons and discussions involving the societal effects of AI, including bias and ethical considerations. Not all of the tenets are applicable to every lesson, but many of the teaching tips and discussion goals in this lesson follow the principles outlined in this framework.

Warm Up (5 minutes)

Display: On a whiteboard, draw a T-chart that says "Helpful" and "Harmful".

Prompt: The Internet has been one of the greatest technological innovations in the last century. What are ways it has been helpful towards society? What are ways it has been harmful?

Teaching Tip

Differentiating the Topic: You could decide to change this prompt to use a different technology that is more relevant to your students and their interests, as long as there are clear examples of how it has been helpful or harmful in society. For example, you could ask the class for examples of a technology that's had a big impact on their lives (such as social media, maps, voice assistants, or self-driving cars) and then continue the warm-up using the class idea as the prompt.

You could also change the topic entirely to a relevant issue in your community - for example, if a new mining quarry might be opening near a community, this could be used as a topic to discuss ways it can be helpful or harmful (ie: boosts the economy, but may decrease the air quality in the community).

Discussion Goal: Have students brainstorm individually, then share with a neighbor before regrouping. Call on students to share, keeping track of responses on the T-chart.

Students should be able to pull from news sources or lived experiences to populate the chart. If students struggle generating ideas, continue to the next slide which includes a few examples.

Teaching Tip

Context Matters: What helps one student may harm another, and vice versa. If students have conflicting ideas around “helpful” and “harmful”, try not to open for direct debate, as this may result in the majority outweighing a vulnerable student. Instead, encourage students to think about future technologies, research, or policies that could protect people from being harmed. This will help segue into later activities encouraging students to be a part of the solution!

Display: Show the slide with various news articles about the impact of the Internet on society. If you changed the prompt to a different technology, also update these slides.

Remarks

Even though the Internet is a grand technological innovation, its legacy is complicated - in some cases, it's been incredibly helpful and beneficial to society. And in others, it's been harmful and detrimental to society. Technology can have a wide-range of impacts, sometimes beyond what was intended. Today, we're going to example another piece of technology and explore the impacts its having on society: Artificial Intelligence.

Activity (35 minutes)

Introduction to Artificial Intelligence (5 minutes)

Teaching Tip

Skip to the Research: This section starts with a brief introduction of artificial intelligence. If you have already introduced artificial intelligence to students in previous lessons, consider skipping this section.

Connecting to your Subject: In order to expand on the definition of AI, you may want to bring up other examples to help students think about AI in their daily lives. You can even specifically discuss AI and your subject area. For example, English teachers can discuss AI-written essays. Math teachers can discuss how AI assists computation. Economics teachers can discuss how AI is used for financial prediction. History teachers can discuss the past decade of innovation in AI and how it has impacted society. You can simply think about the apps you use on a daily basis, as these are all opportunities to discuss AI.

Vocabulary: Show students the definition of artificial intelligence.

  • Artificial Intelligence: A technology that mimics human intelligence, performing tasks such as understanding language, recognizing patterns, and making decisions.

Prompt: What are some examples of artificial intelligence you are already familiar with?

Discussion Goal: Responses may include examples from movies and television, such as robots like WALL-E or R2D2. They may also include personal examples, like Siri on a phone or TikTok filters that can detect facial features. Try to surface examples that may not be immediately apparent but still govern ways we interact with the world, such as recommendation algorithms on social media, facial recognition, or times when a computer makes a decision.

Remarks

Today we're going to explore several specific areas of artificial intelligence. Our goal is to uncover how these technologies have influenced society, both in positive and negative ways. We'll read several recent news articles on these technologies and fill out a reflection sheet, then have an opportunity to decide our own opinions about these technologies as a whole.

Student Research & Reflection (15 minutes)

Distribute: Digitally share the AI Research Areas. This activity guide is designed to be used digitally so students can click the links and explore the online resources.

Do This: Read over the introduction on the activity guide. Have students choose an area of specialization.

Teaching Tip

Groups: You could decide to have students work in groups for their research, with all students in the same group researching the same topic but reading different articles. This allows students to see a broader picture of the impact of their technology, especially when filling in the Research Reflection handout later.

Distribute: Provide each student with one copy of the [r researchreflectionguide/ai-ethics/2023] handout.

Do This: Have students research their area, answering questions on the handout along the way. Make sure students only answer questions on the front of their reflection guide for now.

Encourage students to look over 3-4 articles from their list, making sure at least one article comes from the "Societal Impact" section and at least one article comes from the "Ethical Considerations" section. Students can also do their own research, for example: looking up the "Spotlight Person" listed in each section.

Students can skim the longer articles for key ideas, take notes, pose additional questions, and use a search engine to investigate further if time permits.

Teaching Tip

Empathize with Student Experience: Students may be personally impacted when learning about how AI can be biased. For example, students may be worried about how facial recognition bias affects them and their communities, or may have family members undergoing medical treatment and are concerned about AI in medicine. This follows advice from the A in the LEADERS framework - assume someone in the room is your datapoint.

Acknowledge that AI may impact each of us differently, and encourage students to find the proposed solutions in each of the articles, or ideate on solutions themselves. Many scholars, technologists, and policymakers are working hard to combat bias in AI.

Circulate: Monitor students as they perform their research. Consider prompting students for their reactions as they read certain articles, especially on unexpected impacts of technology on society.

Regroup: Regroup the class for a class shareout

Prompt: What is one thing that surprised you in your research? This could be about a positive use of this technology, or something concerning you didn't know about.

Discussion Goal: This is an opportunity for students to share their thoughts and reflections from the articles, processing their thoughts and emotions. Some students may have strong reactions to the way AI is being used in society, both positively and negatively. Try to avoid open debate, but acknowledge that the pros and cons of these technologies must be weighed against the potential benefits and consequences to society. Consider reminding students that there are entire career paths dedicated towards addressing these issues in AI Ethics – policy writers, software engineers, AI ethicists, researchers, stakeholder advocates, and more.

Remarks

Any new technology can be complicated, as we've heard so far. One of the challenges is figuring out how to weigh the benefits with the harms - what potential downsides are we willing to accept in order to reap the benefits of a new technology? Or do we need to make changes so the harms are minimized? Or rethink things entirely?

This line of thinking is related to ethics, or guidelines on how a person or society should behave. After reading the articles, you may have an opinion on what ethical uses of this technology are. We're going to imagine what these ethical uses might be on the back of your activity guide.

Do This: Have students flip to the back of their handout and read the introduction.

Display: Display the slide with the ethical frameworks on them as well as the hypothetical scenario

Teaching Tip

Why Introduce Ethical Frameworks? This lesson introduces 5 ethical frameworks: Utilitarianism, Rights-Based Ethics, Care-Based Ethics, Equality-based, Values-Based. The goal of this lesson is not to become an expert on each framework, nor is it to become an expert on ethical thinking in general. Instead, the hope is students start to recognize that anytime they make a choice, that choice is influenced by covert factors on how they see and value the world and those values have names. For example:

  • Deciding to do something because "it's what most of us want" has a name - Utilitarianism.
  • Or, deciding not to do something because "first, do no harm" has a name - Care-Based Ethics.

By introducing students to these frameworks, we give them the language to talk about these values so they can see how they are informing the decisions they (and others) are making. And, they can also start to see other ways of thinking that might lead to different decisions that they may not have previously considered.

These are examples of ethical frameworks, which are different viewpoints on how to make ethical decisions. Take some consider which viewpoint resonates with your own on how to address some of the issues with the technology that you researched

Do This: Have students fill in the back of their reflection guide

Circulate: Monitor students as they complete the task, connecting their own ideas with different ethical frameworks. The frameworks are meant to help students shape their thoughts and potentially make them more coherent, and introduce them to other viewpoints on how to solve a particular problem. For example, students may default to a Utilitarian point of view where as long as the most people get the benefits everything is fine, but may shift their thinking when considering an Ethics of Care perspective and reconsider how technology impacts different groups.

Regroup: Regroup students to introduce the culminating activity of the lesson.

Teaching Tip

Final Product Options: Below are several choices for how students synthesize what they've learned in these articles and create an artifact to reflect their learning. We recommend choosing one of the options below and definitely not doing all of them. Or, combine or rearrange or reimagine the way you would like students to show their understanding at the end of the lesson.

Option 1: AI Code of Ethics

This section guides students towards creating a class-wide AI Code of Ethics, synthesizing what they've learned from the articles.

Display: Share an example of an AI code of ethics, such as those by Microsoft and Google.

Prompt: Based on what you’ve read and discussed, what are the most important ethical principles (rules) you believe all current and future AI must follow?

Have students discuss in their groups to brainstorm some initial ideas before regrouping to give a more specific task

Do This: Students will write at least one principle for the class code of ethics. Ideally, their principles should be written as a sentence followed by a short paragraph that provides more context to the reader (see Google’s page).

Circulate: Check in with students as they complete this activity. You might ask which ethical framework most influenced their final Code of Ethics, or if they combined multiple frameworks to come up with their best practices.

Remind students that creating a code of ethics means having empathy for multiple stakeholders – the people who benefit most and benefit least from these technologies. A Code of Ethics can also include protocols for speaking to the most impacted people, or setting up ways to respond if bias occurs. The entirety of AI ethics is too large a problem to solve, but a Code of Ethics gives us some best practices.

Teaching Tip

Displaying a Class Code of Ethics: The format of your class Code of Ethics is completely up to you and your students. For example, you might ask groups to create a poster, or for each take a single slide from a shared presentation (such as the one from our [r templateaicodeof_ethics/ai-ethics/2023]), or a page from a shared document. You might even ask students to use their webcams to record short video clips that you can compile and publish as a single video. Be as creative as you wish!

Option 2: Create a Manifesto

This section guides students towards creating a personal AI Manifesto, synthesizing what they've learned from the articles.

Display: Share the slide with the Holstee Manifesto on it

Prompt: This is a document called the Holstee Manifesto. What do you notice about how it's structured? What is one line that stands out to you?

Give students a chance to discuss with partners before regrouping

Remarks

This is an example of a Manifesto - it's a special document created to clearly and concisely describe a set of values or beliefs. Sometimes people create manifestos as a reaction to how they see the world so it inspires change, and sometimes people create them to build community and inspire like-minded individuals. Now that we've read more about the impacts of AI on society, we're going to write our own personal manifestos about AI technologies.

Distribute: Pass out a copy of the [r createamanifesto/ai-ethics/2023]. Have students read through the top section while displaying the slides on the board.

Display: Display the slides describing the three reasons to create a manifesto, along with the links.

As students finish reading, open up each of the manifestos so students can see what they look like and skim some of the principles. Don't spend time deeply reading each one, but instead let students get a sense of the length of the manifesto, how it's designed visually, and the structure of each of the statements in the manifesto.

Do This: Have students create their own personal manifesto centered on AI technology. Encourage them to be creative in how they design their manifesto.

Circulate: Check in with students as they complete this activity. Consider prompting students to tell you why they are including certain statements in their manifesto, listening for connections back to the articles from earlier in the class.

Manifestos can draw on deep emotion. Encourage students to use their passion to advocate strongly for themselves and others. They might use their manifesto as a protest sign, a call to action, a poetic description of AI failures. If a student does get particularly passionate, remind them of the work being done to combat AI bias, and encourage them to continue learning more. You may direct them to resources of different groups researching AI bias, such as the Algorithmic Justice League

(Optional) Display the Result: Consider if/how you would like to offer students the chance to share their manifestos. Some students may want to display them publicly as a call to action, while others may wish to keep theirs private and only share with you. Be sure to consider the potentially personal nature of these manifestos when deciding if/how students should share.

Option 3: Imagine Your World Art Display

This section guides students towards creating an artistic expression displaying an idealized world that uses artificial intelligence. Students also create a smaller artist-card to go along with their artistic work.

AI mistakes can be particularly harmful, and give us a pessimistic view of technology. One way to approach fear of AI is to also envision the possible benefits of responsible and fair AI systems. We want to encourage students to feel part of the solution, and to channel their creativity into imagining a better world.

Display: Show the following quote from Dr. Ruha Benjamin

"Remember to imagine and craft the worlds you cannot live without, just as you dismantle the ones you cannot live within"

Prompt: How do you think this quote could apply to some of the scenarios we've read about today?

Have students reflect on their own and share with a partner before returning as a full group

Remarks

This quote invites us to reimagine our circumstances and see the world as we wish it was. Based on the articles we've explored today, we're going to do exactly that - imagine a world where AI technology has been developed and implemented justly - what would that look and sound like? We're going to create a piece of artwork that imagines that world, then we'll hang it up on the walls along with a short artist card describing the world you've imagined.

Distribute: Hand out the [r imagineyourworld/ai-ethics/2023] activity guide.

Do This: Read the top two paragraphs and answer any questions about the directions.

Give students directions on how they should complete their artwork, for example:

  • Using physical materials, such as drawing paper and paint
  • Using three-dimensional materials, such as sculpting with clay or molding with cardboard
  • Using a digital representation by designing using digital tools.

You may also decide to give students choice in the materials or format that they use. If teaching this in a single day, consider something on a smaller scale such as just a pencil and paper or a digital photo collage.

Circulate: Monitor students as they complete their artwork. Also ensure they are completing the Artist Card to explain the artwork they are creating.

Some students may simply imagine a world where the AI problems they read about are fixed. For example, facial recognition that works on everyone’s faces. Encourage students to use ‘moonshot thinking’ – “an approach of choosing a huge, seemingly insurmountable problem and proposing a radical solution to that problem using technology”. An imagined world can be as outlandish as they want. Think big!

Display the Results: Consider how you would like to display the results in your classroom, either physically or digitally. Consider having students take a Gallery Walk to explore the artwork their peers created.

Wrap Up (5 minutes)

Video: Watch the [r ethicsandaiprivacythefutureof_work/ai-ethics/2023] video as a class

Prompt: How would you describe "AI ethics" to a family member or friend who didn’t participate in today’s lesson?

Teaching Tip

Future Thinking: Following the lesson, students may still feel apprehensive about the impacts of AI technology on their future. They may be concerned about medical AI, college admissions, or even their own social media algorithms. If you feel comfortable, allow for students to approach you with their concerns. Remind them that more and more experts are interested in creating responsible AI, and that students can research more advocacy groups who fight against AI injustice. You may even encourage students to write letters to local representatives about these issues.

After the Lesson

Teacher Survey

We'd love to learn more about the folks teaching these lessons and the classroom experience. Please let us know in this How AI Works Teacher Survey.

Additional Lessons

If you'd like to teach additional lessons from the How AI Works video series, click here to explore additional resources

AI and Machine Learning Unit

If you'd like to dive even deeper into AI and Machine Learning, consider exploring our 5-week unit on AI and Machine Learning. Click here to view the unit and learn more

Creative Commons License (CC BY-NC-SA 4.0).

This work is available under a Creative Commons License (CC BY-NC-SA 4.0).

If you are interested in licensing Code.org materials for commercial purposes contact us.