Skip to main content

Facilitator’s Guide:
Classification and Color

AAIC Water Quality Modules · Lesson 2

Learn and apply ideas around image classification, neural networks, and color, as well as how they can be used to monitor water quality.

⏱

90 minutes

Class time

👥

3-4

Group size

💻

Tech needed

Lesson Objectives and Standards

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

  • CS Train and evaluate an image classification model using Teachable Machine
  • CS Explain, at a high level, how a Convolutional Neural Net (CNN) works
  • CS Explain how computers represent images as pixels and colors as R, G, B values
  • CS Distinguish between binary and multiclass classification and provide examples of each
  • DS Discuss ethical considerations around data ownership and fairness in AI-assisted agriculture
  • AgScience Describe the components of the Smokey Buoy and explain how it uses classification to monitor water quality
  • 2.1 Overview: Articulate important historical and current events impacting the agricultural industry and agricultural youth development. Include landmark laws, theories, and practices such as, but not limited to, the Morrill Act, the Smith-Lever Act, the Smith-Hughes Act, and influential figures such as John Deere, Henry Groseclose, Booker T. Washington, and important government agencies in the promotion of knowledge and technology of agricultural science, biotechnology, and key technological developments.
  • 3.3 Biodiversity: Evaluate the impact of habitat fragmentation, destruction, and other environmental pressures, such as invasive species, overharvesting, pollution, and climate change on local and global biodiversity (genetic, species, and ecosystems.) Distinguish between types of pollution (point and not-point sources) and their sources to predict the effects on environmental conditions (e.g., water, soil, and air), animal populations, and plant populations from various kinds of human activity.
  • 9-10.C.4.1a: Tool Application Identify relationships and patterns using a digital tool.
  • CS.DA.1: Data Analysis: Create computational models that represent the relationships among different elements of data collected from a phenomenon or process.
  • CS.DA.2: Data Analysis: Utilize data to answer a question using a variety of computing and data visualization methods.
  • CS.DA.3: Data Analysis: Use data analysis tools and techniques to identify patterns in data representing complex systems.

This lesson assumes that students have already had an introduction to:

  • Water Quality: Water quality can be affected by natural processes and human activities.
  • Nitrogen Cycle: Nitrogen moves through the environment and is essential for living organisms.
  • Pollution: Human activities, such as farming and fertilizer use, can affect water quality.
  • Data Literacy: Basic experience reading tables, interpreting graphs, and identifying patterns in data.
  • Math Skills: Basic addition, subtraction, division, and comparing numbers.
  • Computer Skills: Basic computer navigation and entering information.
Term Student-friendly definition
Neural network A type of artificial intelligence that learns to recognize patterns in data, such as pictures, sounds, or numbers, to make predictions or decisions.
Classification Sorting items into groups based on appearance or behavior. Binary Classification: Two possible outcomes; Multiclass Classification: More than two possible outcomes
Convolutional Neural Net (CNN) A type of artificial intelligence that learns to recognize patterns in images so it can identify and classify things, such as animals, plants, or objects.
Buoy Tool for measuring nitrates in water.

Additional Resources on These Topics

Lesson Materials

🖥️ Slide Deck

The slides you’ll present during the lesson.

Open slides

📄 Student Handout

Opens a “Make a copy” prompt so you get your own editable version.

Make a copy

📝 Note-Taking Slides

A printable version of the slides with space for student notes.

Download PDF

✅ Exit Ticket

The exit ticket asks students to define classification, give an example of how classification might be used in Ag, and reflect on what is exciting and cocerning about this tech. Additionally, it asks student to predict the RGB values for “banana yellow”. If you do not get to the Computers & Color Activity, Pt. I, throw out this last question.

Copy Google Form

💻 Practice Exercise

{{PRACTICE_DESCRIPTION}}

Open in Colab

🛒 Walmart Cart

Share-A-Cart link for the apples, mandarins, and a distractor ball (goal is a ball that looks similar to fruit in some respects.)

Share-A-Cart

Facilitation Notes

For an in-depth walkthrough, see the slides with visible facilitator notes.

  1. [Pose after groups test their Teachable Machine model] Compare your model’s results with another group’s. Did both models classify each object the same way, with the same confidence? Why do you think that is?
  2. [Pose after Q1, before Neural Networks] Hold up something your model was never trained on, like a pencil or your hand. What does your model say? Why do you think it does that? What might happen if Smokey Buoy’s camera saw something that wasn’t a test pad, like a leaf or algae?
  3. [Pose after Computers & Color Pt. 1, once fruit RGB values are recorded] Look at the RGB values for your fruits. Which value (R, G or B) would best help a computer tell the red apple from the green apple? From the orange? Why?
  4. [Pose near end of lesson] Today, we trained a classification model to sort objects into groups from images. What else in AgriScience could we classify? What groups would we sort them into, and what would the computer need to “see”?

Extra support: Binary vs multiclass Classification- provide physical cards or objects for students to classify in small groups. Teachable Machine- provide students with this hand out as a reference

Extension: Binary vs multiclass Classification- Have students create their own classification categories in small groups. Teachable machine- allow students to design their own training process, select categories, and determine how many examples to collect. RBG Values- allow students to design investigations where they determine how light and shadow can affect RGB values in the water quality test strips.

If you’re short on time: Move the Computers & Color, Pt. 1 lesson to another day. If students consume the fruits before you get to the activity, bring 1 red apple, 1 green apple, and 1 orange to school and model the process in front of the class, providing the RGB values to the students so they can do the second part of the activity during Lesson 3.

Issue Accessing Applet

  • Students must grant permission for the applet to access their webcam. If they decline, reload the applet.

Lesson Prep

TipPrep checklist

Ensure Student Access to Webcam

This lesson is reliant on the student use of their device’s webcam. Please double check that the webcam on their device is enabled and works with both Teachable Machine and the AAIC Applet used in this lesson.

Test Teachable Machine

Test AAIC RGB V1 Applet

Purchase Fruit and Distractor

For this lesson, we recommend one red apple per child, and at least one Granny Smith and mandarin orange per small group. If you want to lengthen this lesson, you could vary the types of red apples purchased and have discussion about the importance of training classification models for different varieties of apples and fruits. We also purchased an orange rubber ball, similarly sized to the mandarin oranges. We provide one option in the share-a-cart, but you may find better “distractor” objects in your home or classroom.

Materials needed:

  • 🛒🍎 Red Apples
  • 🛒🍏 Green Apples
  • 🛒🍊 Mandarin Oranges
  • 🛒🔴🟢🟠 Distractor Objects

Make Copies of the Student Handout

Each student will need one copy of the student handout. You can make a copy of the handout above.

Create copy of exit ticket for end-of-lesson implementation.

We have drafted an exit ticket that aligns with this lesson. We are providing the Google Form here if you would like to use it or modify it for your own needs.

Create copy of the exercise for after-lesson practice.

We have also created an exercise that you can use with students to practice the concepts covered in this lesson. It is available here.

Estimated Time Per Lesson Component

Introduction to the Buoy Facilitate a discussion of each of the buoy components, with students completing handout about different part names.

Introduction to Classification Facilitate initial discussion around classification, determining ripeness, and data ownership.

Training a Classifier Use apples and oranges to train a fruit classifier using Google’s Teachable Machine.

Evaluate Classification Model Using the student handout, collect data concerning model performance against a variety of specified tests.

Understanding Convolutional Neural Nets Show two selected PBS clips and facilitate a discussion where students think through the different layers and features a CNN might consider to classify a cow. Students will complete portion of handout.

Classification & Color, Pt. 1 Using the applet, ask students to record the RGB values of their items (red apple, green apple, and mandarin orange) on their handout. Students will finish the rest of this activity during the next lesson, but it is important to record these values before the fruits are consumed/disappear.

Exit Ticket Use the final 5 minutes of class for students to complete the exit ticket. Additionally, if you’d like to assign the practice exercise for homework, do so now.

Reference Materials


Questions or feedback on this lesson? Contact aaic [at] utk [dot] edu