1 of 74

GOAL

To develop a model that answers a question

2025-08-18_v1.0

Algorithms & Machine Learning

Applied Machine Learning with Catapults

2 of 74

Breakout Development Team

2

GIGI BRUSCO

College: University of Notre Dame

Major: Computer Science / Engineering

JAMES VENDITTO

College: University of Notre Dame

Major: Electrical Engineering

JOANNA CAUDLE

College: Georgia Institute of Technology

Major: Mechanical Engineering

Industry Experience: Bechtel Power Corporation

3 of 74

3

ANSWER ME!

Machine learning is like the human brain because…

Type your answer here

Watch Me

4 of 74

Experiment with this simple machine learning by clicking here.

  • In the left hand box, draw a digit from 0 to 9 and see if the program can recognize it.

Experiment and Reflect

Reflect: Can you think of 3 examples of machine learning in your everyday life?

ANSWER ME

5 of 74

The Machine Learning algorithm creates a mathematical model that can answer questions like “Is that a dog or a cat?”, and “What number is that?”.

The mathematical model is created using data and becomes more accurate as it collects more data.

How Does the Computer Do That?

6 of 74

6

The Essential Question

How can I predict the settings on a catapult needed to hit a specific target?

In the rest of this lesson, you will create a mathematical model of a simple machine (the catapult).

You will do this by building a catapult model and collecting data in order to answer the question:

7 of 74

7

Catapults are Found in:

Although they are all the same thing with different designs,

they were all made with the same process:

ANCIENT WEAPONS

GAMES

TOYS

THE ENGINEERING DESIGN PROCESS

8 of 74

8

Catapult Terms

LEVER

A simple machine used to easily lift or move objects

FULCRUM

The support that a lever rests on and pivots about

PROJECTILE (WEIGHT/PAYLOAD)

The object that a catapult launches

ARM (LEVER)

The lever that a catapult uses to launch a projectile

STRUCTURE

Includes the BASE, FRAME, and STOP

POTENTIAL ENERGY

Energy that is stored to be used later

KINETIC ENERGY

Energy of a moving object

BASE

9 of 74

9

Think

Imagine you are a mechanical engineer building a catapult. How would you use the Engineering Design Process to create a catapult that can accurately hit a given distance?

What action would you take with each step of the process?

10 of 74

10

Step One:

Define the Problem

ANSWER ME! What problem or challenge are you trying to solve?

Type your answer here

11 of 74

Type your answer here

Step Two: Research

WHAT MATERIALS WILL YOU NEED? WHAT DESIGN COULD YOU USE?

IDEAS:

12 of 74

Design Constraints

  • Using materials provided in your kit, create a design for a catapult
  • You can also use materials found around your house such as plastic spoons, rubber bands, and even pencils

Testing Restrictions

  • Your catapult should be freestanding (the catapult should be able to support itself without you holding it up)
  • You can support your catapult while testing - this means that if you need to put your hand on the base while pulling the lever back, that’s okay

Design & Testing Restrictions

SOME DESIGN IDEAS:

Be creative!

Try to come up with your own design ideas.

13 of 74

TEACHER’S KIT

Materials will be distributed throughout the class.

Item/Link

Quantity

Photo

1

1

1

STUDENT KIT ITEMS

1 kit: 3 students

Item/Link

Quantity

Photo

1

5

5

Rubber Bands (Size 19)

10

10

13

Lab Materials

CLASSROOM EXTRAS

Item/Link

Distribution

Photo

1 for Every Other Lab Group

~2 Sticks per Lab Group

14 of 74

14

Step Three:

Design Solution

ANSWER ME! Draw a diagram of your design. Insert photos here.

Insert images here.

15 of 74

15

Step Four:

Build

ANSWER ME! Create your first prototype of your catapult. Insert photos here.

Insert images here.

HINT: If you are struggling with

your catapult design, check out

this video.

16 of 74

16

Step Five: Test

You are almost ready to test your catapult!

But first, we need to go through a few concepts:

  • Factors and Responses
  • Example Data Charts

The next 4 slides will review these ideas.

17 of 74

17

Factor vs. Response

FACTOR: “Cause”

RESPONSE: “Effect”

  • An outcome
  • Dependent variable
  • Examples:
    • Distance ball travelled
    • Max height of ball
  • Something you control
  • Independent variable
  • Examples:
    • Height of catapult
    • Catapult angle
    • # of rubber bands

18 of 74

Answer the Following

INSTRUCTIONS: Drag the items on the right to the correct category. Use the slide prior to help you.

Drag your answers here

FACTOR

Drag your answers here

RESPONSE

CAUSE

EFFECT

INDEPENDENT VARIABLE

DEPENDENT VARIABLE

WHAT YOU CONTROL

THE OUTCOME

19 of 74

19

ANSWER ME!

What do you notice about the data? What do you wonder about it?

Type your answer here

Analyze Data in the Table

Look at the Example Data:

Height�(cm)

Angle Pulled�(degrees)

Distance�(cm)

10

20

2

10

30

4

10

40

6

10

50

8

10

60

10

10

70

12

10

80

14

10

90

16

20 of 74

20

Look at the

Example Data:

Notice the height does not change.

If you do not have the ability to measure the exact angle, you can use approximations.

For example, “½ way pulled” or “⅓ way pulled”

Height�(cm)

Angle Pulled�(degrees)

Distance�(cm)

10

20

2

10

30

4

10

40

6

10

50

8

10

60

10

10

70

12

10

80

14

10

90

16

It is important to only change ONE variable at a time.

This way, you can identify which change to your catapult causes which outcome.

21 of 74

21

Step Five: Test

Fill out the chart in order to collect and organize your data.

Height (cm)

Angle Pulled (degrees)

Distance (cm)

22 of 74

22

Step Six: Analyze Data

USE EXCEL IN ORDER TO PUT YOUR DATA INTO A PLOT AND GRAPH.

INSERT;

SCATTER PLOT

HIGHLIGHT COLUMNS

YOUR GRAPH SHOULD LOOK LIKE THIS, ADD CHART ELEMENTS FOR BETTER PRESENTATION

23 of 74

23

ADD A TRENDLINE ON YOUR MODEL

  • Click “Add chart element”, trendline, then linear)
  • Add all of the chart elements you want to make your graph look presentable, including titles, colors, etc.

Step Six: Analyze Data

24 of 74

24

Step Six: Analyze Data

Take a screenshot of your final graph and insert it here.

25 of 74

25

Your Catapult is Machine Learning

CATAPULT INPUT

Pull back angle, height, number of rubber bands, etc.

CATAPULT OUTPUT

Distance ball predicted to travel shown by trendline on Excel graph

Student Analyzes:

26 of 74

Step Six: Analyze Data

Answer the following questions with the data you collected.

Write your answer here

According to your model, at what settings will your projectile land 60 cm away from the

base of your catapult?

Write your answer here

What is the max distance your catapult can launch the ball?

27 of 74

27

Reflect on Your Design and Results

ANSWER ME!

Write your answer here

What do you think went well when completing this activity?

Write your answer here

What is something you would do differently if you were to do this again?

Complete the mandatory 5-minute Exit Ticket by clicking here!

28 of 74

28

Optional Extensions:

  • Create a Virtual AI Sorter with Google’s Teachable Machine
  • Play with a Neural Network Simulator in TensorFlow

This section will provide an overview of the extension lab(s) and/or optional activity(s).

  • These activities are opportunities for students to dive deeper and ideate.
  • The materials associated with the extension labs may not provide as many detailed instructions as the main lab activity.

29 of 74

Create a Virtual AI Sorter with Google’s Teachable Machine

What you’ll be doing:

  • Designing a AI sorter using pictures of various materials that you find

Ideal option if you:

  • Want to use the engineering design process to test technology.

Play with a Neural Network Simulator in TensorFlow

What you’ll be doing:

  • Tinker with a simple neural network in TensorFlow Playground

Ideal option if you:

  • Want a better understanding of how a neural network is constructed.

29

Optional Extension Activities

Any text here?

Teachable Machine Sorter

Neural Networks

30 of 74

Teachable Machine Sorter

31 of 74

31

The Essential Question

How can we create a machine that sorts through different recyclable material effectively?

In this extension activity, you will create a sorter using machine learning.

You will do this by building an AI sorter model and collecting data in order to answer the question:

32 of 74

  • Agriculture and Farming.
  • Autonomous Flying
  • Retail, Shopping and Fashion
  • Security and Surveillance
  • Sports Analytics and Activities
  • Manufacturing and Production
  • Live Stock and Inventory Management

Artificial Intelligence (AI) is used in:

Although they are all the same thing with different designs, they were all made with

the same process:

THE ENGINEERING DESIGN PROCESS

33 of 74

  • In 2018, the total generation of municipal solid waste (MSW) was 292.4 million tons.
  • Approximately 69 million tons were recycled and 25 million tons were composted, which is equivalent to a 32.1% recycling and composting rate.
  • Nearly 35 million tons of MSW were combusted and more than 146 million tons of MSW were landfill.

Research on the Problem

HOWEVER, if there was better technology available to sort through this waste, the recycling and composting rate could be increased!

34 of 74

  • AI-Powered Recycling Robots could help solve the plastic crisis!
  • Engineering researchers are developing a unique method to increase the recycling of soft plastics by creating a smart robot that can identify, sort, and separate different types of recyclable waste.
  • However, they are currently able to only identify a limited amount of materials, are expensive, and not able to process the significant amount of waste recycling plants receive.

Current Solutions

35 of 74

  • Glass
  • Wood
  • Metal
  • Paper
  • Plastic
  • Rubber
  • Cardboard

Design Considerations: Materials

What kind of materials/products can be identified to make recycling more efficient?

  • E-Waste (electronics, batteries, etc.)
  • Compost (Food, garden trimmings, etc.)
  • Hazardous waste (paint cans, pesticides, etc.)
  • Construction waste (concrete, roof shingles, etc.)

36 of 74

36

Think

Imagine you are a team of computer engineers building an AI sorter. How would you use the Engineering Design Process to create a sorter that can accurately and reliably identify a material?

What action would you take with each step of the process?

37 of 74

37

Step Six: Analyze Data

  1. Define the Problem: What problem or challenge are you trying to solve?
  2. Research: What materials will you need?
  3. Design Solution: Draw out a diagram of your machine.
  4. Build Prototype: Provide samples to your teachable machine.
  5. Test: Show your machine the different materials you taught it and record the material it identifies.
  6. Analyze Your Results: Use your observations and data from step 5 to answer the questions in your student workbook.

38 of 74

How to use Teachable Machine:

LINK: https://teachablemachine.withgoogle.com

GATHER: Gather and group your example into classes, or categories, that you want the computer to learn.

TRAIN: Train your model, then instantly test it out to see whether it can correctly classify new examples.

Testing: Using Teachable Machine

39 of 74

Create an AI sorter that sorts between one of the following options:

  • Plastic vs Metal
  • Paper vs Compost
  • Cardboard vs Plastic

NOTE: Think about the variety of materials you have in your class to use as samples (ex. Plastic→bottle, container, grocery bag)

Testing: Option 1

40 of 74

Create an AI sorter that sorts between at least two materials.

Be creative, and think about what would make recycling more efficient now!

If you need help thinking of materials, look back at slides 33 & 37.

You can also conduct research on what materials are commonly found at landfills/recycling plants and create an AI sorter that identifies materials that concern you most.

Testing: Option 2

41 of 74

41

Testing Efficiency

What is a sample?

A sample is how many examples the machine has been given of a specific category during the “train” portion (material in this lab).

You will then compare the efficiencies of these trials.

Users can hold down the train button instead of clicking it to get a stream of photos (similar to a video).

Whether you choose to do Option 1 or 2, try two separate trials where Trial 1 has less samples than Trial 2.

TRIAL 1:

TRIAL 2:

42 of 74

42

Define the Problem

ANSWER ME! What problem or challenge are you trying to solve?

Type your answer here

43 of 74

43

Research

Write your answer here.

ANSWER ME! What are the most common recycled materials. What categories do facilities sort materials into?

How is most recycling sorting done?

44 of 74

44

Build

Insert screenshots of your samples here.

ANSWER ME! Find samples to teach your machine. Create your categories to store images in. Feed your images into the AI and build the model.

45 of 74

45

Actual Object

AI Predicted Object

Was it correct? (Y/N)

Trial 1

46 of 74

46

Actual Object

AI Predicted Object

Was it correct? (Y/N)

Trial 2

47 of 74

47

Analyze Data

ANSWER THE FOLLOWING QUESTIONS WITH THE DATA YOU COLLECTED.

Write your answer here

Trial 1:

Write your answer here

Trial 2:

According to your results on the previous slides, what was the efficiency of your machine?

Efficiency = # of correct identifications *100

# of trials

(

)

48 of 74

48

Reflection

Add your responses here.

ANSWER ME! Take a moment to reflect on what you have learned from this project with a partner: what materials did you use, how many samples were collected in each trial, how did your efficiencies in different trials compare to each other, and what percentage of the time did it guess correctly? Is there a correlation between the number of samples taken and the accuracy? Take note of what went well and learn from what went wrong.

49 of 74

Create a Virtual AI Sorter with Google’s Teachable Machine

What you’ll be doing:

  • Designing a AI sorter using pictures of various materials that you find

Ideal option if you:

  • Want to use the engineering design process to test technology.

Play with a Neural Network Simulator in TensorFlow

What you’ll be doing:

  • Tinker with a simple neural network in TensorFlow Playground

Ideal option if you:

  • Want a better understanding of how a neural network is constructed.

49

Optional Extension Activities

Any text here?

Teachable Machine Sorter

Neural Networks

50 of 74

Build a Neural Network

Extension

51 of 74

51

Extension Development Team

ANNIE ZHAO

College: University of Notre Dame ‘25

Major: Computer Science & Engineering

MARY BRUSCO

College: University of Notre Dame ‘26

Major: Computer Science & Engineering

MARY JARRATT

College: Virginia Tech, Ph.D. student ‘24

Major: Engineering & Robotics Education

JOANNA CAUDLE

College: Georgia Institute of Technology

Major: Mechanical Engineering

Industry Experience: Bechtel Power Corporation

JASUN BURDICK

College: University of Central Florida

Major: Industrial Engineering

Industry Experience: Building Automation, Robotics

JOSHUA FELICIANO

College: MIT ‘24

Major: Electrical Engineering & Computer Science

52 of 74

In the last activity, you used the Engineering Design Process (EDP) to build a catapult and model its behavior. You learned about the problem using data, developed a model for your catapult, and iteratively tested your design to make your catapult more accurate and precise, all without step-by-step instructions!

We mentioned that machine learning is a way for computers to do the same: learn from data, build a model for solving a problem, and then iteratively test that model to make it more accurate and precise.

There’s just one problem: How do we program a computer to build a model on its own?

Introduction

53 of 74

There’s something about your brain and the way it’s structured that allows it to analyze data, come up with solutions to problems, and learn from its mistakes to build even better solutions. Your brain is an example of a powerful computer that can use EDP to solve problems on its own!

So, since your brain can do what we want our computer to do, let’s give our computer a brain.

Specifically, instead of writing step-by-step programs for each problem we want our computer to solve, we’ll make a program that mimics the structure of your brain to hopefully give our machine the ability to “learn.” This “machine brain” is what we call a neural network.

NEURAL NETWORK

  • A type of computer program modeled after the human brain that allows computers to make decisions about data on their own, without step-by-step instructions.

Solution: Your Brain!

IN THIS EXTENSION…

You will explore neural networks by building one in a virtual playground called TensorFlow. By the end, you’ll have built a neural network that can classify points in a data set all by itself!

54 of 74

54

What You’ll Do In This Extension

  1. Introduction to Neural Networks with TensorFlow
  2. Connection to the Catapult Activity
  3. Tinker with the TensorFlow Playground
  4. Learn How the Model Works
    1. Data Input
    2. Neurons and Weighting
    3. Error Reduction
  5. The Challenge - Build a Simple Model

55 of 74

55

Part I: TensorFlow

TensorFlow is a free and open-source software library for machine learning and artificial intelligence. It can be used across a range of tasks but has a particular focus on training and inference using neural networks.

TensorFlow has a playground that lets you expand your understanding of neural networks by developing a simple model to sort a collection of data points.

56 of 74

56

Part I: TensorFlow Playground

  • The playground simulation attempts to build a neural network model consisting of Features and layers of Neurons that predicts where the colored dots are
  • Features are inputs to the model. Neurons that have particular shapes are what the computer program uses to build a model for classifying the data.
  • By weighting and summing connections into neurons you can build more advanced detection

57 of 74

Part II: Connection to our Catapult Activity

Think of the student as the machine/computer

The more input data you give it the more accurate the model is getting.

58 of 74

58

Your Catapult is Machine Learning

CATAPULT INPUT

Pull back angle, height, number of rubber bands, etc.

CATAPULT OUTPUT

Distance ball predicted to travel shown by trendline on Excel graph

59 of 74

Think of the features of the neural network the same way you think of the different features of your catapult.

Catapult:

Neural Network:

Model:

Linear regression line of your performance data

A mathematical equation that weights different neurons by varying amounts to minimize error

Features:

(ways to get you what you want)

Characteristics of the catapult that affect the output (lever, pull back angle, etc)

Different ways to characterize the data set; i.e., x value, y value, (x value)2, (sin x value), etc

Data:

(what your model is using to learn from)

Performance data of catapult you collected

Predetermined data set in the Playground: bimodal, spiral, circle, etc

Output:

Distance traveled

Classification of colored dots

Error Loss:

Difference between predicted distance and actual distance traveled

Difference between predicted color vs actual color of dots

60 of 74

Intuitively, the student learns that an important feature of the catapult is the force you push down on it to make it go farther. Similarly, the computer model learns by guessing and checking which features to emphasize more. The model shows which features are more important to the output by assigning a heavier weight (we see this through the thickness of the line coming from a feature or neuron).

Think of the importance you give each feature in the catapult as the weight of importance the computer program gives each feature in the network.

61 of 74

61

Part III: Introduction to the Playground

WATCH ME

62 of 74

62

Part III: Tinker in the Playground

  • Go to the playground and try running the model a few times by pressing the play and reset buttons
  • Watch the model learn to reduce error
  • Change between data sets and see how it changes.
  • Look at the Training Loss Graph after each data set. With the sample setup, the model is only about 50% correct on some of the data sets, which is just like guessing or flipping a coin.

63 of 74

63

Part IV: How does the model work?

The TensorFlow Playground has 4 data sets comprising the shapes on the left.

    • Circle - Top left
    • Exclusive OR - Top right
    • Gaussian - Bottom left
    • Spiral - Bottom right

Data is broken up into training and testing (validation)

These data sets are similar to the written number data set you saw in the handwriting example in the Machine Learning introductory video.

64 of 74

64

Neural Network: Data features

Some datasets have easier features to define. (simpler shape)

ANSWER ME!

What data set has the simplest shape in your opinion? The most complex?

65 of 74

65

Neural Network: How does it work?

How do you write code that classifies whether a data point is orange or blue? Perhaps you could draw an arbitrary diagonal line between the two groups like that shown on the next slide. You could define a threshold to determine in which group each data point belongs.

Let's look at a simple classification problem. Imagine you have a dataset such as the one below. There are two groups of data (blue and orange) that the model is searching for. Each data point has two values X1 (horizontal axis) and X2 (vertical axis).

66 of 74

66

Neural Network: How does the program work?

If x1 + x2 > some threshold value → Then the dot is blue

But the thing is, a programmer has to find appropriate values for variables and instruct the computer how to classify the data points. That’s A LOT of steps of code!

A neural network computer program uses artificial neurons and trains itself to classify the data.

67 of 74

67

Neural Network: Neurons and Weights

  • Neurons

Neurons are formed by combining the weighted inputs of features.

In a simple neural network model, the mathematical equation might look something like this:

If w1x1 + w2x2 > some threshold value, ��Then the dot is blue, where w1 and w2 are the weights given to each feature

  • Layers

Adding layers allows the program to combine previous neurons to make a more complex model to classify data

68 of 74

68

Part V: Challenge: Build Your Own Neural Network

Requirements: Build the simplest model that has the lowest error rate.

Plan: Try selecting data sets, features, layers, and neurons

Run the model for short bursts (< 1,000 epoch)

Note: an epoch is one training cycle for the model

Record the testing loss (error rate)

Improve: Change an input and rerun

69 of 74

69

Challenge

As you gain understanding of how the model is working try this challenge:

  1. Build a model with 5 items: features + neurons. (below has 4)
  2. Test your model against the 4 data sets without altering it
  3. Record your testing loss for each at < 1,000 epoch in the table below.
  4. Sum your total error

Data

Error

Circle

Exclusive OR

Gaussian

Spiral

Total Error =

Link to the: Playground

70 of 74

70

Challenge: It's in the details

Repeat now with a larger model and you get more control options.

Use this link now: Neural Network with More Options

  1. Build a model with 10 items: features + neurons.
  2. Record your testing loss for each at ~1,000 epoch.

Data

Error

Circle

Exclusive OR

Gaussian

Spiral

Total Error =

71 of 74

71

Next Steps: How is machine learning used in business?

Machine learning is being used in the banking, healthcare and music and entertainment industries to name a few.

Check out this case �study from Netflix �about how machine �learning is used �in their organization.

72 of 74

72

Next Steps: Want to learn more?

Here are some concepts you may be interested in and also a great video that further explains neural networks:

  • Neural Networks
  • Linear Algebra
  • Calculus

73 of 74

73

Continue to Explore

If you liked today’s breakout, you may be interested in these topics:

  • Mechanics - Projectile Motion
  • 2D Physics Modelling
  • Machine Learning
  • Computer Algorithms
  • Statistics - Regression

Types of engineering relevant to the Catapult Building:

  • Mechanical Engineering
  • Civil Engineering
  • Mechatronics

Types of engineering relevant to Iteration and Machine Learning:

  • Computer Science
  • Computer Engineering
  • Systems Engineering

74 of 74

Thank you!

Any text here?

Follow up info here?