Lesson plan

AI-5: Water Quality

Collect river water samples in Minecraft and use supervised machine learning to identify and stop sources of water contamination.

AI-5: Water Quality
Ages
Ages 8-18
Duration
45 min
Essential question

How can supervised machine learning analyze environmental data to detect and eliminate water pollution sources?

Overview

When residents in a Minecraft village begin suffering from identical symptoms, medical providers suspect their drinking water has been contaminated. To solve this public health issue, students collect environmental samples to build a dataset, which is then evaluated using artificial intelligence to pinpoint where pollutants enter the water supply.

Students work directly in the Minecraft world to gather water samples along local rivers, run a supervised machine learning algorithm to analyze pollutant concentrations, and travel to the flagged coordinates to stop the pollution at its source.

Learning objectives

By the end of this lesson students will be able to:

  • Collect and organize water samples into a functional dataset
  • Apply supervised machine learning to detect sources of environmental contamination
  • Explain how artificial intelligence supports water quality testing and conservation efforts

Blocks and items used in this lesson

Key vocabulary

Supervised Machine Learning
An artificial intelligence process that uses existing labeled data to discover patterns and identify outcomes.
Dataset
A collection of gathered data points, such as water samples, organized for analysis.
Pollutant
A harmful substance that contaminates natural resources like water and can cause disease.
Water Quality
A measure of how clean or safe water is for humans, animals, and the environment.

Before class

Lesson sequence

Suggested timing: about 45 minutes in total.

  1. Activity 1: Widespread Illness10 min

    Introduce the village scenario where multiple residents have fallen sick with similar symptoms. Discuss the doctor's suspicion of tainted water and review why clean water supplies are critical for preventing disease.

  2. Activity 2: Straight from the Tap10 min

    Direct students into the rivers surrounding the village to collect water samples. Explain how these individual samples are organized into a structured dataset for computational analysis.

  3. Activity 3: Pollutants Here, Pollutants There10 min

    Introduce supervised machine learning concepts. Students process their water sample dataset through the AI algorithm to discover where pollutant levels are most heavily concentrated.

  4. Activity 4: Cleaning Up10 min

    Using the locations identified by the machine learning algorithm, students navigate to the exact pollution sites in the world and take action to shut down the sources of contamination.

  5. Lesson Conclusion5 min

    Convene as a whole group to review how AI assisted the environmental response. Reinforce that AI analyzed multiple water samples to pinpoint the highest concentrations of pollutants, allowing for targeted remediation.

Assessment: success criteria

  • Water samples are successfully gathered from river locations to assemble a complete dataset.
  • The supervised machine learning algorithm runs to detect high-concentration pollution areas.
  • Students locate and remediate the pollution sources within the Minecraft world.
  • Students verbally explain how unpolluted water prevents disease and how AI helped find the contamination.

Differentiation

Support

Display the step-by-step classroom presentation during sampling to help students locate waterways and manage data.

Stretch

Have students begin the performance-based AI for Good Project summative assessment using a world template of their choice.

Knowledge check

5 questions to check understanding after the lesson. Tap an answer to see if it is right; the score appears at the end.

  1. 1What do medical workers suspect is making the villagers sick?

  2. 2What kind of artificial intelligence algorithm is applied in this lesson?

  3. 3What must students gather before running the AI algorithm?

  4. 4How does the AI algorithm pinpoint where the water contamination is coming from?

  5. 5What is the final objective after the AI identifies the pollution coordinates?

Resources

Part of the AI Foundations curriculum

This is lesson 5 of 18 in AI Foundations.

  1. AI-1: Who Is That Ocelot?
  2. AI-2: Mapping Terrain
  3. AI-3: Sustainable Farming
  4. AI-4: Ocean Observations
  5. AI-5: Water Quality
  6. Unit 9: AI
  7. AI Adventurers
  8. AI Wildlife Park
  9. CyberSafe AI: Dig Deeper
  10. Fantastic Fairgrounds
  11. Hour of AI: Field Agent
  12. Hour of AI: Generation AI
  13. Hour of AI: The First Night
  14. Hour of Code: AI for Good
  15. Hour of Code: Generation AI
  16. Mini Agent Mission
  17. Peter Is Here: AI for Cultural Heritage
  18. Reed Smart: AI Detective

Frequently Asked Questions

Does this activity teach technical AI coding?

No. The AI workflow presented in the lesson is simplified and conceptual in nature, designed to explain how supervised machine learning works rather than mirror a full professional engineering pipeline.

Where does this lesson fit within the broader curriculum?

This is Lesson 5 and the final lesson of the Artificial Intelligence computer science unit, preparing students for an optional summative AI for Good Project.

Adapted from AI-5: Water Quality by Minecraft Education on Minecraft Education, last updated Oct 4, 2024. This classroom version, the timings and the quiz were written by 9Minecraft Education.

You May Also Like

9Minecraft Education is an independent teaching resource and is not affiliated with Mojang or Microsoft. Lesson plans here are our own classroom-ready adaptations; each one links to the original resource and credits its author. © 2026 9minecraft.net