Classification & Color
In this lesson, you will learn about and apply ideas around image classification, neural nets, color, as well as how they can be used to monitor water quality.
Materials Needed:
Last workshop we learned:
Last workshop we learned:
Last workshop we learned:
len()min()max()Last workshop we learned:
Later this semester, we will be deploying these Smokey Buoys!
Start with the same test strips
Remove the pads and adhere onto a long strip of material
Roll up strip inside canister
Strip dispenses out of the canister to be fed through the roller

The canister stores the rolled-up test strip and feeds it out as the motor and rollers advances it.

There is an opening in a chamber of the canister, allowing the strip to contact the water.

The test strip feeds up from the canister and through the rollers.

The reactive pad on the strip changes color when exposed to nitrates in water.

The rollers grip the test strip and advance it.

The motor drives the rollers, which grip and advance the test strip.

The camera acts like the “eyes” of the buoy. It watches for a pad to come into frame and, when it does, also takes a photo.
Thinking back to the nitrates activity from last week…
- What are the benefits to using a computerized buoy to conduct water quality tests?
- What are the drawbacks?
🎯 Checkpoint 2. a: Which banana(s) would you eat?
Source: US Department of Agriculture

🎯 Checkpoint 2. b: Review the figure below. In image (b), what do you think the yellow represents? The green?
| Not Ripe | Ripe |
Classification of Strawberries
| Underripe | Ripe | Molded |
Pros:
Cons:
🎯 Checkpoint 2. c:
If farmers use a certain company to train and decide when to pluck or harvest fruits/veggies, who gets to own that data?
Why?
🎯 Checkpoint 2. d:
Let’s say the company becomes better at identifying ripe fruits because they used data from your farm. Now, they want to up their subscription fees for farmers (including you) to use their model.
Is that fair?
Do you have any suggestions or solutions?
💻 Go to Teachable Machine at:
*** We’ll walk through this together!
Use the “Preview” pane on the right side of the Teachable Machine screen

📝 Now test your model!
Prioritize understanding big picture over math
🎯 Checkpoint 5. a
Contrast how each layer type works in a neural net:
- the input layer
- the hidden layers, and
- the output layer
What might each layer do if your model is trying to classify whether or not an image is a cow? 🐮
An image is a combination of millions of little squares called pixels
![]()
Each pixel has a color
![]()
Each color is a combination of three values:
![]()
🎯 Checkpoint 6. a: Exploring color and RGB Values
Materials Needed:
🎯 Checkpoint 7. a: Using RGB Values to Create Color
Materials Needed:
🎯 Checkpoint 7. b: Use the slider tool!
What color does this RGB value represent? (110, 164, 212)
Just like the computer, predict what fruit this could be from!
🎉 Great job! You’ve learned so much!
Share what you’ve learned on the Exit Ticket.
Want to practice what we’ve learned?
Try the Exercises.
(Ask Your Teacher For the Link.)
AAIC — Water Quality