Please enable JavaScript to use CodeHS

Introduction to AI for Middle School

Description

In this project, students will gain an overview of AI and its various applications and abilities to generate new content. Note: Students will need to create logins to interact with certain sites used in the project and will need webcam access.

Objective

Students will be able to:

  • discuss various applications of AI
  • explore generative capabilities of AI in multiple media forms
Description

In this project, students will explore communication with an AI by using different machine learning models. They will then train their own machine learning model using TeachableMachine.

Objective

Students will be able to:

  • practice using previously trained machine learning models
  • train their own machine learning model
  • explore how training data affects the effectiveness of a machine learning model
Description

In this project, students build a machine learning model that analyzes and classifies music using Teachable Machine. Students also reflect on the impact training data has on a model’s accuracy.

Objective

Students will be able to:

  • Create a training dataset to build a machine learning model to classify songs based on genre
  • Test their model and evaluate the model’s effectiveness
  • Explain how a model’s dataset impacts its performance
Description

In this project, students will evaluate the programming knowledge of a large language model AI such as ChatGPT or Gemini by prompting it to write programs in various languages and testing out the programs on CodeHS.

Objective

Students will be able to:

  • evaluate the programming knowledge of an AI
  • explore various types of programs written by an AI
  • describe their view on why programming should or should not be learned in the rise of AI
Description

In this project, students will explore the concept of generative AI by having Google’s generative AI chatbot Gemini create a new animal by combining features of 3 others. Note: Gemini is used in this activity because it is a free way to generate both images and text. If you have access to another chatbot that can do this, such as certain versions of ChatGPT, these can be used in place of Gemini.

Objective

Students will be able to:

  • explore image and text generation
  • critique the creative capability of an AI
Description

In this project, students will explore the concept of AI Hallucinations and experience firsthand how AI platforms can produce inaccurate information by having a conversation with a large language model AI such as ChatGPT or Gemini.

Objective

Students will be able to:

  • define hallucination in the context of AI
  • explore how to converse with a large language model AI
  • describe why hallucinations could be troublesome or dangerous
Description

In this project, students will practice prompt engineering or crafting prompts to guide an AI Chatbot to produce the most accurate, relevant, and useful responses. They will explore this technique by prompting an AI Chatbot to answer as Albert Einstein or Martin Luther King.

Objective

Students will be able to:

  • Craft effective prompts to communicate with an AI Chatbot
  • Evaluate AI Chatbot responses with respect to accuracy and relevance
Description

In this lesson, students will explore how AI can increase the accessibility of digital content by writing alt text. Students will learn about alt text best practices, write their own alt text, and then compare their alt text to alt text generated by an AI.

Objective

Students will be able to:

  • Define accessibility
  • Explain the importance of alt text in making digital content accessible
  • Explain alt text best practices and write quality alt text
  • Use AI to generate alt text
  • Reflect on the effectiveness of AI’s ability to generate quality alt text
Description

In this project, students will delve into the intersection of artificial intelligence and music. They will explore various AI tools used in music generation, consider the ethical implications of using AI to generate music, and engage in a hands-on project to create music using AI technology.

Objective

Students will be able to:

  • Understand the concept of artificial intelligence and its application in music generation
  • Explore different AI tools used in music creation
  • Create music using AI tools and evaluate the output
  • Reflect on the implications of AI in the music industry
Description

In this project, students will explore how images can be used to override the prompt instructions in an AI language model. They will learn about “Prompt Injections” and how they can trick AI language models into doing things they shouldn’t, like leaking data or performing unauthorized actions. Students will discuss ways to make AI interactions safer, such as checking inputs carefully and keeping AI models up-to-date to recognize harmful prompts.

Objective

Students will be able to:

  • Identify prompt injections
  • Analyze AI vulnerabilities
  • Discuss and develop safety strategies