黑料专区

黑料专区

K-12 Curricular Modules

These five modules provide K-12 educators with a comprehensive, project-based curriculum on AI and Machine Learning, specifically designed from a high school perspective. The content progresses from foundational AI concepts like predictive modeling (Regression vs. Classification) and practical tool usage to a deeper exploration of Neural Networks and specialized architectures like Convolutional Neural Networks. The curriculum then delves into the workings and societal implications of Natural Language Processing, Large Language Models, and generative AI art, including the technical mechanics of Diffusion Models and Generative Adversarial Networks. Throughout all modules, there is a central focus on the ethical, rhetorical, and sociological consequences of AI across real-world applications such as public policy, autonomous vehicles, and disaster response.

These modules are presented in more depth during our annual high school educator workshop, and build on a high school class on AI & Society taught by the lead instructors.

Foundations of AIabstract representation of foundational AI concepts

This module provides educators with an accessible entry point into the world of Artificial Intelligence, establishing the basic framework for understanding how machines "think." Participants explore the core terminology of AI through relatable metaphors to define inputs (features), outputs, and the "black box" of algorithmic processing. The session covers the history of AI and challenges educators to define the shifting boundary between human intuition and machine capability. By examining the economics of efficiency, participants begin to see AI not just as a tool, but as a system of choices with inherent social consequences.

 

Module Content
Driving Questions:
  • What is AI?
  • What are the concepts needed to understand how AI works?
  • How does AI shape societal decision making?
  • What are constraints to its use?
Goals:
  • Provide teachers with a foundational understanding of how artificial intelligence models work, function, and shape human relationships.
  • How to communicate the information to students in effective hands-on ways.
Learning Outcomes:
  • Understanding the core concepts and terms associated with machine learning and artificial intelligence.
  • Understanding how AI models work using specific case studies to help teachers create informed digital citizens.
light bulb iconWhat is AI?

AI stands for artificial intelligence. The words “Artificial Intelligence” are used a lot. As a result, it can be difficult to determine what AI is (and what it isn’t).  One definition that works well is this:

"AI is a computer doing something that we believe humans can do better."

What people deem as AI today, may not be what we describe as AI tomorrow. As such, AI is a moving goalpost. In other words, some people may describe a certain technology as AI, while others may choose not to describe the same technology as AI. Moreover, what people deemed as AI twenty years ago, may no longer be considered AI. However, there are some things that most people currently universally consider to be AI: “Computers drawing images from a description,” “Computers writing music given a prompt,” “Computers writing an essay,” and even “Computers driving a car.”

light bulb iconWhat is Machine Learning?

Note: This explanation was inspired by . For a deeper exploration of this topic, please see .

So far we know that AI is a moving goalpost, and AI encapsulates all those things that a computer does that we believe a human can do better.

Machine Learning (ML) describes one category (and a large one!) of artificial intelligence. In order to define ML, it is helpful to consider two possible approaches to getting computers to do human-like tasks. We will call these approaches (1) knowledge-based AI, and (2) example-based AI. For the sake of an example, let’s consider one task that humans complete fairly well: looking at X-ray images of bones and determining whether there is a fracture present (whether the bone is broken).

Consider Approach 1: Knowledge-Based AI

With this approach, computer-scientists provide all of the rules associated with what a fracture might look like. After speaking with many radiologists, orthopedic surgeons, and X-ray technicians, a computer scientist determines exactly what will warrant a fracture on an X-ray image. They then painstakingly program all the details of what to look for when given an image, and hope for the results of their program to produce accurate results.

The approach sounds like it should work. The thought goes, in order to learn how to do something well, talk to the experts, the people with the knowledge, and learn from them. This approach was taken by early computer scientists in the 1960s, 1970s and 1980s.

Unfortunately, this approach did not work very well. Every time computer scientists thought they had a system that could accomplish a task such as the bone-fracture classification problem, their system would make a mistake. They would speak to the experts about the mistake, and they would learn that there was something that the experts forgot to mention during interviews. The computer scientists would learn that there was an exception to the rule. There was something that they had not explicitly told the computer to look for, and, as a result, the computer would classify an item incorrectly. Artificial intelligence seemed to be impossible. Knowledge-based AI, the leading approach to making intelligent machines, had failed.

Then, in the late 1980s and early 1990s, computer scientists tried a different approach. They tried approach 2. They tried example-based AI.

Consider Approach 2: Example-Based AI

With this approach, computer scientists provided machines with lots and lots of data and hoped the machine could use mathematical feedback systems, similar to how neuroscientists believed our brains learned, to find a pattern.

Let us return to our X-ray example. Imagine thousands of X-ray images of bones were given to the computer along with the diagnosis that had been provided by physicians. It would look like this: “Here is picture 1. It is a fracture.” “Here is picture 2. It is a fracture.” “Here is picture 3. It is not a fracture.” And so on. No rules were given to the computers on how to accomplish a task. Instead many, many examples of the task being done correctly were given to the computer, and it was asked to determine the pattern itself.

Did the new approach work? Simply put, the results were astounding. The system worked; it worked really well. This new type of AI, example-based AI, seemed to be the ticket to success! In fact, it was so successful it was given a new name: Machine Learning. Machine Learning is example-based AI, the approach to building intelligent computer systems simply by giving the system data and letting it mathematically determine the patterns that exist.
light bulb iconWhat is a Model?

Computer scientists like to use this word a lot in the world of machine learning. For example, you might hear something about the designers of ChatGPT, Claude, or Gemini having developed a new model that is more powerful than their last model, and wonder, “what even is a machine learning model?”  Simply put, a “model” is a system that has been created to take input values and produce an output prediction.

Consider the following prediction-system that may be created to help a realtor determine a house price, given the number of bedrooms that a house has. Here, the input value for the system is “number of bedrooms” and the output prediction is “house value.”

To build such a system, a realtor may collect some data and put it on a simple two-dimensional graph, with the horizontal axis representing the number of bedrooms, and the vertical axis showing the house values for houses that have sold in the past in a given market. The data might look like this:

Prediction model 1

From this data, a realtor could create the prediction system by trying to match the pattern seen in the data. One such system might look like this:

Prediction model 2

Now, this particular prediction-system is one you may be familiar with: it’s a line of best fit. This prediction-system is a model. In fact, it is one of the simplest machine learning models we can make. 

What makes a model like this useful, is that we can make predictions about new data, simply by using our previous data and pattern, and a new input variable. In this case, a realtor may want to sell a house in the market that is represented by this model, and by providing the number of bedrooms, they can predict the selling price of the house. This might look like this:

Prediction model 3

Notice that there was no previous data on the cost of house for the input number of bedrooms, but the model was still able to make a prediction. This is a simple example of a machine-learning model making a prediction. A more complex model could use two variables as inputs, say, number of bedrooms and number of bathrooms, to make a prediction about house price. An even more complex example could have ten input variables to make a prediction. Very complex models may have thousands or even millions of input variables to help make a prediction. Even though we can’t visualize this easily on a graph, we hopefully can understand how input variables, accompanied by a model, can help us make predictions.

icon of an open bookHow is AI Useful for Societal Decision Making?

AI and Machine Learning is used everywhere to help humans make decisions. Because computer scientists have helped computers learn patterns from large amounts of data, they can provide large amounts of data on any problem and build models to help make predictions. Below are some of the areas where AI helps inform societal decision making.

Disaster Relief and Resource Allocation

Humans can provide computers with drone footage of flood areas, where humans have labeled pictures of building structures as completely destroyed, partially destroyed, or undamaged. AI models can be built to be used after a storm hits, and feed unlabeled pictures of structures taken from drones. Models can easily predict which pictures represent the most damaged homes and prioritize sending more aid to these regions, even without humans asking for help. Click here to learn about how AI can assist with resource allocation during disasters.

Medical/Public Health

Humans can provide computers with information about patients along with diagnoses and create models that can predict a correct diagnosis for a patient simply given their presenting symptoms. Another model could be used to predict the way that diseases spread in a population given information about past diseases and the patterns that are learned. . 

Transportation

Humans can provide information from vehicles with sensors that record how cars successfully drive on a road given a set of conditions and create a driving model. This model can be used for a car to predict how to drive itself. . 

icon of an open bookDefinition of Key Terms

To better understand AI, it is helpful to understand the terminology used. Here are some key terms to get you started:

  • Big Data: Complex datasets that exceed the processing capacity of traditional data management tools. Big data is characterized by volume (a lot of data), velocity (the high speed of data creation and processing), and variety (diverse data types like text, images, and video).
  • Input: What goes into our model to help us predict, often called the features (ex. number of bedrooms in a house)
  • Black box: In engineering, the term is used to describe any device whose inner workings are hidden from the user. In ML, this may be a particular algorithm or set of steps, whose inner workings are mysterious to the user. A black box allows us to hide unimportant details and is very important for human problem solving.
  • Output: The prediction from our model, often called the label (ex. the price of the house)
  • Model: The “machine” associating the input to a predicted output by finding the pattern in the data.
  • Training: When a model is being built, and data is provided to help it learn the pattern, we say the model is being “trained”. 
  • Inference: When a model is being used to make a prediction about data it has not yet seen (or has not been trained on), we say the model is making an “inference”.
For a more comprehensive list of industry terms, please refer to .
icon of an open bookReadings

Note: While many of these are available to the general public, some of the links below require subscription accounts.

The Fourth Industrial Revolution and Internet of Things (IOT)
  • The Washington Post
  • WIRED
  • The New York Times
Case Study: AI in the Film Industry
  • Los Angeles Times
  • Los Angeles Times
  • Los Angeles Times
Human Decision Making and Sports
  • FiveThirtyEight
  • Sports Illustrated

Regression/Classificationabstract representation of regression and classification

Building on foundational concepts, this module dives into the mechanics of how AI models make predictions. Educators explore the distinction between Regression (predicting continuous values, such as life expectancy) and Classification (categorizing data into discrete labels). Using hands-on tools like Teachable Machine, participants build their own models to see these concepts in action. The module emphasizes the importance of evaluation, moving beyond simple Accuracy to master the Confusion Matrix. Finally, the module contextualizes these technical foundations by examining the social consequences of AI in real-world applications, including public policy, disaster management, and economic disruption.

 

Module Content
Driving Questions:
  • How do regression and classification models take an input and produce a prediction (output)?
  • What are the social implications of the results (labels) of these types of models?

Goals:
  • Provide teachers with a better understanding of these basic model techniques used in machine learning.
  • Based on this understanding, consider how AI classification/regression models can enhance human decision making.
Learning Outcomes:
  • Fully understand how predictive models using classification/regression shape in political culture, public policy and the criminal justice system.
icon representing activities Learning in Action
Accuracy Demo (using playing cards)

Below is a simple activity you can do using a standard deck of playing cards (jokers removed) to demonstrate the issues with an often-used metric for machine learning algorithms: accuracy.

Materials Needed: A standard deck of playing cards

Learning Objective: Understand the concept of accuracy as it pertains to model predictions

Google's Teachable Machine

Link
Cost: Free

Learning Objectives:

  • Key Concept: Understand classification and how AI models use data to classify images, sounds, or body poses
  • Real-World Application: Help students visualize the capabilities of AI and practical use-cases
  • Critical Thinking: Identify the inherent limitations and "fail points" of recognition models.
💡 Activity Idea: Getting Started
  • Live Demo: Use webcams to classify classroom objects (e.g., pencils vs. pens, papers vs. folders)
  • Dataset Upload: Use a to show where computer vision systems struggle.
  • Discussion: Ask students why the model might confuse a book cover with a movie poster.

Formula Bot

Link
Cost: Free to start with paid plans for additional capabilities

Learning Objectives:

  • Key Concept: Explore regression by using natural language to generate complex formulas that analyze data and predict outcomes
  • Interact with Large Datasets: Query complex datasets to find specific insights without needing to write manual code.
  • Evaluate Data Predictors: Interpret which variables (like GDP or schooling) most heavily influence a prediction, such as life expectancy.
💡 Activity Idea: Getting Started
  • DatasetUse the
  • Discussion: Have students ask FormulaBot: “Which features are the best predictors of life expectancy?”
icon of an open boxOpening the Black Box

Regression and Classification techniques are easy ways to teach students about basic supervised learning machine learning models. Students will learn that these predictive models have two main phases:

  1. Training Phaselabeled data is given to the machine so that patterns can be recognized.
    1. Example 1: A dataset with prices of houses and number of bedrooms in a house is given to a computer. It learns the pattern between number of bedrooms and the house price.
    2. Example 2: Spam emails are labeled by a human over several months (“This email is important” or “This email is spam”). Computer recognizes patterns in emails.
  2. Inference Phase: Unlabeled data is given to the trained machine, and it will attempt to make predictions about the data it is seeing.
    1. Example 1: A new house is going up for sale with a certain number of bedrooms, the machine automatically determines the price of the house based on prior labeled data it was trained on.
    2. Example 2: Emails come into the inbox that have not been labeled, and the computer automatically sorts them into "spam" or "important".
Note the distinction between regression and classification; this distinction comes from the values of the predictions.
Slide that shows the differences between regression and classification
caution iconRisks and Considerations

Bias

A model’s ability to make successful predictions hinges on the data that was used to train the model. If the data used to train a model is not varied enough, it can be biased toward a certain result. 

Consider a model that is used to predict a person's favorite musical artists.  Such a model would require input from locations across the nation.  If pollsters asked only those living along the East Coast, the collected data would be skewed or biased; it would amplify the preferences of those living along the eastern seaboard and miss the preferred artists of those living anywhere else.  If AI models make predictions using this East-Coast-heavy data set, its predictions would reflect the same bias found in the original data.

Overfitting and Underfitting

To understand overfitting and underfitting it is useful to think about an analogy first. Consider the following three scenarios for T-shirts a person might wear:

  1. Generic-Sized T-shirt: A person looking to get a new T-shirt might go to a department store and choose one out of three sizes: small, medium and large. The T-shirt may not be a perfect fit, but a person might choose a given size, say, medium, and be happy with the way it looks. If they no longer want the T-shirt, they could give it to a similar-sized friend who could use the T-shirt as well. Stores like to carry these generic sized shirts because they fit a large group of people pretty well.
  2. Custom-Tailored T-shirt: Now consider a custom-tailored tee shirt. This type of T-shirt might be created after a particular person gets their body measured by a tailor, and a T-shirt is designed to perfectly fit the wearer. The person may be very satisfied with the way it looks and fits them. However, there is a drawback: this T-shirt only works for the wearer or someone with the exact same body shape as them. A store would not like to keep a custom-tailored T-shirt in their inventory because so few people would fit into the shirt.
  3. XXL Free T-shirt: Lastly consider the scenario of a free T-shirt being provided to everyone at a sports stadium for a special fan appreciation event. Since the stadium has no idea what size shirt a person might fit, they place an XXL T-shirt on the back of every seat, knowing that most people can fit into it, even if it is a bit big. 

These three T-shirt examples are analogous to issues we see in machine learning models. Consider the analogous machine learning models making predictions on X-ray images.

  1. The model fits most data pretty well: This model has been trained on X-ray images so that it understands the pattern in what is deemed an image of a fractured vs. a non-fractured bone and can generalize well to images it has not yet seen. It may not fit every image perfectly, but it fits most images pretty well.
  2. Model is overfit: This model has been trained on certain X-ray images, but does not generalize well to X-ray images it has not seen. Perhaps the model was built based on X-ray images taken in a specific hospital. Each one of the images from this hospital was slightly brighter than those found at other hospitals due to the exposure of the film. It might get perfect results for the X-ray images in the training set, but when images taken in a different hospital were put into the model, it was not very successful at determining whether an image represented a bone fracture or not. The model was overfit.
  3. Model is underfit: This type of model may not have been trained enough. It does not do a good job at fitting the data at all, and will not yield good results with any X-ray images. Perhaps only three images were used to train the model, one of a broken finger, one of a broken rib, and one of a broken wrist. Since the model did not have enough data to learn the pattern of fractured vs non-fractured images, it does not predict well.

In summary:

  • If a model is overfit: it will not be good at making predictions outside of the data it has been trained on.
  • If a model is underfit: it will not be good at making predictions at all.
  • If a model fits data well: it can make good predictions on data it has been trained on, but also generalize well to new data.

When we consider a model’s performance, we should ask whether they fit data well, or if they are overfitting/underfitting data.

Over-reliance on AI

When making decisions with AI, it is important to always remember the role of a human with these systems. In limited cases, AI systems can be used to make decisions independent of humans, once they are sufficiently trained, deemed to be sufficiently unbiased, and deemed to generalize well to new data. However, in most cases, AI systems are best used in conjunction with humans. AI systems can make predictions or suggestions, and humans can use their powers for taste and discernment to determine if the prediction or suggestion is one worth utilizing.

In summary: AI systems are best used alongside humans to aid their decision making, not replace a human's decision-making.

icon of an open bookReadings

Note: While many of these are available to the general public, some of the links below require subscription accounts.

Background and Context
  •  –The New York Times
Case Study: Flint, MI
  • Los Angeles Times
  • Los Angeles Times
  • Los Angeles Times
  • Los Angeles Times
  • POLITICO
Case Study: Pittsburgh, PA
  • The Guardian
  • PublicSource
  • 90.5 WESA
  • – 90.5 WESA
  • – NRDC
  •  – Pittsburgh's Public Source
  • – Pittsburgh Post Gazette
Case Study: Newark, NJ
  • The New York Times
Classification: The Criminal Justice System and Decision Making
  • TEDx (Video)
  • NBC News (Video)
  • Wall Street Journal (Video)
  • WIRED (Video)
  • TEDx (Video)
  • The Atlantic (Video)

Neural Networks, CNNs, and Visionabstract representation of regression and classification

Neural Networks are used everywhere to allow machines to make sophisticated predictions using data. Computer Scientists modeled the biological neural with an artificial neuron, creating a mathematical structure that can take inputs and produce outputs based on patterns in the data that are observed.

This module will allow students to better understand the mathematical structure of a single artificial neuron and how these neurons are pieced together to create a network of neurons (called a neural network) which are capable of handling more complex datasets.

Module Content

A rudimentary neural network would look like this:

neural network diagram

Notice how each neuron (represented by a circle in the figure) is connected to other neurons in a large network. Generally, the more neurons in a neural network, the more capable it becomes.

Convolutional Neural networks are a specialized neural network used in vision systems. Using specialized layers, information about a photo, for instance, can be filtered out or enhanced to better help the neural network identify salient features of an image. Having students consider how they too filter out aspects of images they see can help them better understand the way that vision systems in computing function and the limitations of these systems. Real world examples that consider vision systems of autonomous vehicles and the use of disaster relief imagery can be considered more holistically with a better understanding of the mechanics of these machine learning systems.

Driving Questions:
  • How have computer scientists mimicked human brain structures to make machines learn?
  • What is needed for AI systems to see the world, and how do they see it?

  • To what extent and in what ways do they aid decision-making in medical fields and disaster relief efforts?

Goals:
  • Provide teachers with an understanding of how modern AI algorithms approach learning.

  • Allow teachers to recognize the power of neural networks to enhance computer vision and understand how these models can be used to approach and solve new problems.

Learning Outcomes:
  • Understand the basic architecture of a neural network and how it learns from data.

  • See how neural networks are used to allow machines to “see” the world around them.

  • Recognize how neural networks’ vision of the world is distinct from humans, and identify these differences.

  • See how neural networks are used in many applications, including medical fields and disaster relief efforts.

icon representing activities Learning in Action
Understanding an Artificial Neuron

A single artificial neuron is the building block of a neural network. Having students understand how a single neuron can take in inputs and produce outputs is the foundation for understanding how these neurons can be composed and work in concert for more sophisticated tasks.

This activity explains how inputs, weights, activation functions, and outputs can be used to make a simple prediction about whether a new song will be a viral hit. The activity ends with a “plot twist” requiring students to consider how the parameters of the neuron must be altered to account for new data about what makes a song popular.

Materials Needed: Printed out copies of the first six pages of this document. (Teacher guide is on the final pages).

Learning Objective: Understand how an artificial neuron functions to predict an output given an input.

TensorFlow Playground

Link
Cost: Free

Learning Objectives:

  • Key Concept: Students will understand how different constructions of artificial neurons in a neural network help create better predictors. Students will see visually how neural networks are constructed and work
  • Real-World Application: Neural networks are used everywhere, from vision systems in autonomous vehicles to large language models. Understanding how these systems are built and scale
  • Critical Thinking: See how more complex datasets require more neurons and layers within a network to allow the neural network to find patterns. See the limitations of smaller architectures for neural networks as well.
💡 Activity Idea: TensorFlow Activity
  • Time: 40-60 minutes
  • Activity: The TensorFlow Activity requires students to engage with the TensorFlow Playground to better understand how neural network architectures influence a neural network’s capabilities.

Understanding Neural Network Optimization

Neural Networks continually update to make better predictions given new information from the data. Playing a “hotter, colder” game with students can help students understand the basic terms involved in neural network learning: loss function, optimizer, epochs, and learning rate.

Learning Objectives:

  • Key Concept: Understand the basic terms involved in neural network learning, including loss function, optimizer, epochs, and learning rate.

  • Continual Updates: Explore how neural networks continually update to make better predictions given new information from data.

  • Algorithmic Analogy: Visualize how human optimization strategies mirror machine learning optimization processes.

💡 Activity Idea: Hotter-Colder Game
  • Time: 5-10 minutes
  • Activity: The Hotter-Colder game will require a single student to leave the classroom while an object within the room is hidden. They will perform the task of finding the object after entering the room three times, with different rules each time about the number of steps they can take, and the size of the steps they can take as they journey around the room. Other students must say “hotter” or “colder” to the searching student and the student is said to have “found” the object when they are within some teacher-specified distance of the object and can visualize it plainly. Slides for the activity can be found here, which not only detail the process, but also explain how the game process is analogous to key terminology.
Understanding Convolutional Neural Networks (CNNs)

Neural Networks continually update to make better predictions given new information from the data. Playing a “hotter, colder” game with students can help students understand the basic terms involved in neural network learning: loss function, optimizer, epochs, and learning rate.

Learning Objectives:

  • Key Concept: Understand that Convolutional Neural Networks (CNNs) are specialized neural networks used chiefly in vision systems.

  • Image Interpretation: Compare how images that computers see in vision systems are different from the images humans see.

  • Strengths & Limitations: Evaluate the functional strengths and inherent limitations of machine vision compared to human vision.

💡 Activity Idea: Three-Part Lesson on the Basics of CNNs
  • Time: 5 minutes for part 1, 10 minutes for part 2, 50-60 minutes for part 3
  • Activity: This three-part educational activity guides students through the complexities of how both humans and machines interpret visual data.

    Part 1: Understanding Human Vision Systems – Explores the biological and cognitive processes of human sight, using "I-Spy" style activities to demonstrate how we identify objects in complex environments.


    Part 2: Understanding Operations – Breaks down the logic of vision, likely focusing on the step-by-step operations required to process images.


    Part 3: Taking it to the Streets – Applies these concepts to real-world scenarios, examining how vision systems function in practical, everyday settings like autonomous navigation.

icon of an open boxOpening the Black Box

Neural Networks used in machine learning work by connecting many artificial neurons together. As shown in the diagram, neurons are organized into layers with the first layer being called the “input layer”, the last layer being the “output layer”, and the layers in the middle being called “hidden layers”. The input layer is where the data is input into the neural network (say a picture of a dog), and the output layer represents the result of the input (say, a classification of the picture as “dog”). Each neuron in the hidden layers has parameters that can be altered with names like “weights” and “bias” that change whether a given neuron will produce an output signal based on a given input signal. If all of the parameters are set correctly, input data should produce the correct output result.

Consider the neural network depiction below:

neural network diagram

If you consider that each of the neurons in the hidden layers is like an adjustable knob that controls whether the output signal based on an input signal you could imagine a picture like this:
neural network diagram

Each neuron in the depiction of the neural network has been replaced by a turnable knob (in this analogy, turning a knob is akin to adjusting parameters of weights and bias of the neuron). With a given input, and the knobs adjusted in their starting positions, the output result may not match what is expected. For example, data for a picture of a dog could render a result of “cat” with the knobs in the current positions. 

However, one could imagine that for a given input (like a picture of a dog), these knobs could be adjusted until the correct output results (the result at the output layer says, “dog”). This might look like this:

neural network diagram

Once the neural network parameters have been set by taking many inputs and adjusting the “knobs” until the correct output appears, it can be used on data that has not been seen before to predict the output based on the input. 

The process neural networks use to adjust these parameters requires feeding data forward through the network (in a process called “feed-forward”), and then calculating the error (or loss) to update/adjust the parameters of the neurons in the network by moving backwards (in a process called “back-propagation”). The network learns by minimizing this loss. Each time the network feeds forward data and backpropagates it is called an epoch. Generally, the more epochs a neural network has to learn, the better the results will be. The amount that the parameters are adjusted at each pass is called the learning rate, and higher learning rates mean that a neural network may learn faster, but not necessarily converge to the correct result. The hotter/colder activity above in the Learning in Action section of this module helps explain this phenomenon.

The analogy of the “turning knob” neural network helps us understand how the neurons are individually adjusted to tune into the correct result, but it is important to recognize that neural networks do this work of adjusting the parameters automatically using sophisticated mathematics (involving the multi-variable chain rule quantities like the gradient which can be learned about in more detail in an advanced calculus course).

Neural networks in applications today are massive in size. The number of neurons is on the order of billions or more, making them capable of handling complex tasks like image recognition or sophisticated classification tasks.

caution iconRisks and Considerations

Explainability

Because of the massive size of neural networks used for tasks today, and the automated way in which they learn to correct the weights and biases to produce an output, it can be very difficult to understand why a neural network produces a result given a particular input. While the values for parameters can be determined, the practicality of understanding how billions of numbers work in concert is not just daunting, but untenable. As a result, so long as the correct results are obtained, the inner workings for how a result is obtained is often unclear.

Since it is not reasonable to directly alter a neural network parameters or even understand the precise impact of the parameters on the outputs, it is extremely important that neural networks are tested on a variety of inputs to verify the results of the outputs. Ensuring that unique cases are included in training neural networks so that they perform well for a variety of scenarios or inputs is critical. This is especially true in high-stakes situations like autonomous vehicle travel. As just one example, training a neural network for a self-driving car on country roads alone would not mean that this neural network would do well at predicting how to drive a car well in an urban environment. The power of neural networks allows them to accomplish amazing feats, but their predictive power always relies on the quality and breadth of the data used to build them.

In summary:

  • If a model's inner workings are unclear: we cannot rely on logic alone to predict how it will behave in the real world.

  • If a model is only trained on limited scenarios: it cannot be trusted to handle unique, high-stakes environments safely.

  • If a model is thoroughly tested on diverse data: we can gain confidence in its outputs, even if we cannot map out every single internal calculation.

When we deploy complex neural networks, we must always implement rigorous, varied testing to verify the outputs of a system we cannot completely see inside.

icon of an open bookReadings

Note: While many of these are available to the general public, some of the links below require subscription accounts.

Autonomous Cars
  • TED

  • Global News

  • The New York Times

  • The Philadelphia Inquirer
  • Stanford News

  • The Atlantic

  • Scientific American

  • The Philadelphia Inquirer

  • The Philadelphia Inquirer

  • The New York Times

  • The Denver Post

  • Los Angeles Times

AI for Medical Screening
  • The New York Times

  • Stanford Medicine News

  • The New York Times

  • Medium

  • 90.5 WESA

  • National Geographic

  • Berkeley News

Natural Language Processing (NLP)abstract representation of natural language processing

Natural Language Processing (NLP) briefly defined is using a computer to understand or process human-language. Examples of this are ubiquitous, and include: SPAM detection in email (reading emails), Voice assistants (Siri, Amazon Alexa, Hey Google), Autocorrect in text messaging, Auto-completing for Google searches and even large language models. We will delve into large language models as its own module later, due to its influence on this field, but this module serves as an opportunity to expose students to the foundational material one must consider to solve problems in machine learning where human language is the input data. In addition, this module is a wonderful opportunity to investigate artificial intelligence concepts from a humanities perspective, proving to be fertile ground for interdisciplinary discussions.

Module Content

 Driving Questions:

  • How do AI systems understand written and spoken language?
  • How is NLP used to enhance human decision-making and to reshape social and economic relationships?

Goals:
  • Teachers understand how written and spoken language is understood by machines, and how they can use simple techniques to explore written language themselves.

  • Have educators consider how NLP has changed the landscape for human-decision making, with particular focus on medicine, government, and law.

Learning Outcomes:
  • Using freely available tools to parse language, teachers will understand how computer science can be used to better understand the way humans communicate.

  • Understand how humans shape technology, but also how technology begins to shape humans and the way we interact with the world.
icon representing activities Learning in Action
Investigating Ambiguity in Language (words)

A continued problem in NLP is having computer systems grapple with ambiguity that exists in human language. In order to help students better appreciate the problems inherent to parsing human language, a prompt can be provided to students with a sentence that can be interpreted many ways, and require students to determine the multiple meanings.

Materials Needed: This slideshow representing all of the interpretations of the simple phrase “I made her duck.”

Learning Objective: Students can better understand how a simple phrase can be interpreted in many different ways, laying groundwork for discussions on enhancements to early NLP techniques that has led to technological advances such as large language models.

💡 Activity Idea: Classroom challenge to find multiple interpretations of the phrase “I made her duck”
  • Time: 5-10 minutes
  • Activity: Present students with this slideshow, stopping on the first slide. Have students in small groups discover all the ways this phrase could be interpreted.
Investigating Ambiguity in Language (sounds)

Link
Cost: Free

In addition to ambiguity in parsing words, NLP problems exist in correctly interpreting sounds. NLP applications like voice-assistants have to solve the problem of correctly interpreting the combinations of sound units called phonemes, to parse human language. A popular game produced by Mattel, , can provide a fun opportunity to explore this ambiguity with students. 

Materials Needed: The Mad Gab game from Mattel, or an online version of the game such as the one found at this link:  

Learning Objective: Students can better understand how a set of phonemes can be interpreted as multiple different words, and the importance of context in understanding the correct words to correspond with sounds.

💡 Activity Idea: Play Mad Gab in Small Groups
  • Time: 5-10 minutes
  • Activity:

    Present students with cards from the game Mad Gab, or use the online game found . It can be fun to do this in one of two ways:

    1. Small groups: students work with other students and take turns trying to determine the answer to the clues
    2. Whole class: have students who volunteer try to determine the phrase they are hearing by reading it out loud. This version is especially effective, as the student reading the answer may find it is more difficult to parse the meaning than those students who are hearing the student read it.
Google's Colab (with Natural Language Tool Kit)

Links (Google Colab)
Starter Notebooks:  and
Cost
: Free

Google provides a freely available Python programming environment, called Google Colab. This can be accessed using gmail accounts at many schools. Check with your school district to see if privileges to use this platform are available to your school. A wonderful library to explore NLP problems using Python code is called NLTK which is short for Natural Language Took Kit. Two Colab notebooks can provide starting points for teachers who want to explore using Python to explore NLP problems.

Learning Objectives:

  • Key Concept: Students can begin to understand how programming can be used to help solve NLP problems
  • Real-World Application: Using computer science to grapple with human language provides students the opportunity to answer interesting questions from interesting bodies of text (commonly called corpora) such as US Inaugural Addresses, or Pride and Prejudice. This provides a real opportunity for students to see the interdisciplinary value of studying language through the lens of computer science and vice-versa.
  • Critical Thinking: See how students can uncover deeper understandings of historical documents (like presidential speeches) or contextual understandings of words used in various novels over time.
💡 Activity Idea: Coding Exercises
  • Time: 40-60 minutes
  • Activity: Using students can be guided by a teacher to understand how programming can help uncover meanings of words using context provided by the code.

     

    Using students can be guided by a teacher to understand how a simple metric like word frequency in a text can help answer a research question like “How has the use of the word ‘nation’ changed over time in presidential speeches?”

    A deeper understanding of how the NLTK library works can be found in the .

icon of an open boxOpening the Black Box

The field of Natural Language Processing shows that machine learning algorithms can work with non-numerical data. Understanding the intricacies of human language can provide key insights in the challenges that NLP researchers face. Knowledge of Language required to engage in complex language behavior can be broken down into six categories: 

  1. Phonetics and Phonology: knowledge about linguistic sounds
  2. Morphology: knowledge of the meaningful components of words
  3. Syntax: knowledge of structural relationship between words
  4. Semantics: knowledge of meaning
  5. Pragmatics: knowledge of the relationship of meaning to the goals and intentions of the speaker
  6. Discourse: knowledge about linguistic units larger than a single utterance

These six categories are broken down in this slideshow which can be shared with students after completing the activities described above. Understanding the complexities of human language provides a starting point for delving deeper into how it is processed by large language models in future modules.

caution iconRisks and Considerations

Managing Ambiguity

NLP techniques parse the manner in which humans communicate with each other.  Human linguistic tropes shape the data used to train NLP-based models; integrating these models into human relationships, in turn, promises to shape how people interact, connect, and speak.  As investigated within this module, ambiguities exist everywhere within language, and students need to understand the importance of potential misunderstandings rooted in the very operation of NLP systems. High-stakes scenarios abound.  Dictation software for physicians that performs medical charting necessitates maintaining a human-in-the-loop to catch errors rooted in misinterpretations. The speed with which computing systems can process large bodies of human language provides opportunities for industry and research to accomplish amazing feats, but NLP, and AI in general, will advance the public good only if its limitations are recognized. 

In summary:

  • If an NLP model relies solely on literal data: it will struggle to accurately interpret the fluid, ever-changing nature of human slang and culture.

  • If an NLP model is deployed in a high-stakes environment without oversight: minor linguistic errors can escalate into dangerous real-world misunderstandings.

  • If an NLP model is used alongside human verification: we can harness the incredible speed of automated language processing while ensuring accuracy and safety.

When we integrate language-based AI into society, we must always recognize its computational limitations and ensure human discernment remains the final judge of meaning.

icon of an open bookReadings

Note: While many of these are available to the general public, some of the links below require subscription accounts.

  • TED

  • YouTube

  • The Washington Post

  • MIT Technology Review

  • Slate

  • Slate