Skip to content
Computer Science · 9th Grade

Active learning ideas

Machine Learning vs. Traditional Programming

Active learning works for this topic because students need to physically and cognitively experience the difference between rule-based systems and pattern-based learning. By moving from abstract explanations to hands-on simulations and collaborative problem-solving, students directly confront where traditional programming ends and machine learning begins.

Common Core State StandardsCSTA: 3A-AP-13
20–40 minPairs → Whole Class3 activities

Activity 01

Simulation Game40 min · Whole Class

Simulation Game: Human Neural Network

Students act as 'neurons' in a simple network. They are given 'weights' (rules) for when to pass a signal. They try to 'classify' an image by passing signals through the layers, adjusting their rules when they get it wrong.

Explain how machine learning is different from traditional rule-based programming.

Facilitation TipDuring the Human Neural Network, assign each student a distinct rule to follow, then observe how varying these rules changes the system's output.

What to look forPresent students with two short code snippets or descriptions of systems. One should represent traditional programming (e.g., a simple calculator function) and the other a machine learning task (e.g., image classification). Ask students to identify which is which and write one sentence explaining their reasoning.

ApplyAnalyzeEvaluateCreateSocial AwarenessDecision-Making
Generate Complete Lesson

Activity 02

Inquiry Circle30 min · Small Groups

Inquiry Circle: Training Data Challenge

Groups are given a set of 'training' photos of cats and dogs. They must identify the features (ears, nose, tail) the computer might use to tell them apart, then find 'trick' photos that might confuse the AI.

Compare the problem-solving approaches of machine learning and traditional programming.

Facilitation TipFor the Training Data Challenge, provide intentionally messy datasets and guide students to identify which features help or hinder the model's accuracy.

What to look forPose the question: 'Imagine you are building a system to detect if a picture contains a cat. Would you use traditional programming or machine learning? Explain your choice, referencing the concepts of rules versus patterns and the role of data.'

AnalyzeEvaluateCreateSelf-ManagementSelf-Awareness
Generate Complete Lesson

Activity 03

Think-Pair-Share20 min · Pairs

Think-Pair-Share: AI in the Wild

Students list three places they encounter AI daily (e.g., Netflix recs, Siri, spam filters). They discuss in pairs whether each one is likely using supervised or unsupervised learning.

Analyze scenarios where machine learning offers a superior solution to traditional programming.

Facilitation TipIn the Think-Pair-Share, assign pairs one AI success story and one failure story to analyze before sharing with the class.

What to look forAsk students to write down one scenario where machine learning would be a better solution than traditional programming, and one scenario where traditional programming would be sufficient or preferable. They should briefly justify each choice.

UnderstandApplyAnalyzeSelf-AwarenessRelationship Skills
Generate Complete Lesson

A few notes on teaching this unit

Experienced teachers approach this topic by first grounding abstract ideas in concrete actions. Start with a simulation that mimics neural behavior before introducing mathematical concepts. Avoid rushing into code—let students feel the tension between fixed rules and adaptive patterns. Research suggests students grasp probabilistic reasoning better when they see models fail on edge cases, so design activities that expose these breakdowns intentionally.

Students will demonstrate understanding by accurately distinguishing between rule-based and pattern-based approaches, explaining how data quality affects outcomes, and justifying their choices in real-world scenarios. Successful learning appears when students reference specific activities to correct misconceptions or support their reasoning.


Watch Out for These Misconceptions

  • During the Human Neural Network activity, watch for students who describe the system as 'thinking' or 'learning' like humans. Redirect by asking them to trace the exact steps each student follows and note that the output depends entirely on the rules assigned, not on any inner process.

    During the Human Neural Network activity, have students calculate a simple weighted sum of inputs and outputs, then adjust the weights to see how the final output changes. Emphasize that the system is just following instructions and does not 'understand' anything beyond the rules it is given.

  • During the Training Data Challenge, watch for students who assume any dataset will produce a perfect model. Redirect by having them test their model on intentionally ambiguous or poorly labeled data and observe the drop in accuracy.

    During the Training Data Challenge, provide a dataset with conflicting labels or missing values. Ask students to explain why the model struggles in these cases and how cleaning or expanding the dataset might help.


Methods used in this brief