AI and Machine Learning
Machine learning is a cutting-edge topic in industry and academia. This module is guided by the emergent AI4K12 framework, which includes ideas for how to teach machine learning. Early activities include exploring and classifying real Twitter data using the already-familiar block-based programming environment. Students examine data features from several demo Twitter accounts and use this information to develop their own classification rules. As a class, students can group by certain data features (tweets, vs retweets, etc.) to see how that affects the presence of bots in clusters. Once familiar with classification, students build simple classifiers using datasets of 100s of Twitter accounts. An important component of this module is ethics in ML and biases perpetuated from the pre-existing datasets on which algorithms are trained. Articles and stories from the news are incorporated into these discussions. The second machine learning unit takes a deeper look at classifiers. Students work with ML services, such as IBM Watson, classifying text to detect sentiment such as bullying or not bullying. Students are able to modify the training sets to see how that influences the effectiveness of the algorithm. Students then make modifications to the ML algorithm parameters, and eventually design their own learning systems.
Table of Contents
- Unit 0: Intro to AI/ML Module and NetsBlox
- Unit 1: Introduction to Artificial Intelligence – AI and Drawing
- Unit 2: Algorithms and Search
- Unit 3: Machine Learning
- Unit 4: Intro to Natural Language Processing and Sentiment Analysis
- Unit 5: Music Sentiment Analysis
- Unit 6: Bias in Datasets and Ethics in AI/ML
- Unit 7: Other ML Techniques
- Unit 8: Deep Neural Networks
- Unit 9 Real World Applications of AI/ML
Unit 0: Intro to AI/ML Module and NetsBlox
Estimated Duration |
|
Activities |
Unit 1: Introduction to Artificial Intelligence – AI and Drawing
Estimate Duration |
|
Lesson Summary | Students will:
|
Learning Objectives | Students will learn that:
|
Vocabulary | Bias, Data, Model, Machine Learning, Algorithm, Artificial Intelligence (AI) |
Activities | |
Resources |
|
Unit 2: Algorithms and Search
Estimated Duration |
|
Lesson Summary | Students will learn about graph traversal methods and navigate through graphs that are representative of geographic maps and contact tracing through social networks. |
Learning Objectives | Students will be able to:
|
Vocabulary | Breadth First Search, Nodes, Paths, Branches, Graph, Tree, Traversal, Weights, Neighbors, Pruning, Algorithm, Shortest Path, Intelligence, Artificial Intelligence (AI) |
Activities |
|
Resources |
|
Unit 3: Machine Learning
Estimated Duration |
|
Lesson Summary | Following an introduction to the main three areas of machine learning (supervised, unsupervised, and reinforcement), students will have a more in-depth activity on a supervised learning technique: classification. Understanding that classification uses labeled data, students will learn how models classify humans and bots. |
Learning Objectives | Students will:
|
Vocabulary | Classification, Binary, Bot |
Activities |
|
Student Resources |
|
Teacher Resources |
|
Unit 4: Intro to Natural Language Processing and Sentiment Analysis
Estimated Duration |
|
Lesson Summary | In this lesson, students will learn about natural language programming as an AI application. Then they will apply sentiment analysis to two different forms of media (tweets and song lyrics). |
Learning Objectives | Students will:
|
Vocabulary | Natural language; sentiment analysis; polarity; API |
Activities | Introduction to NLP and Sentiment Analysis. |
Student Resources | |
Teacher Resources |
Unit 5: Music Sentiment Analysis
Estimated Duration | 120 minutes Project (Netsblox or Python) (up to 5 hours) |
Lesson Summary | The project teaches students about list comparisons, and they are tasked with finding “groups” of musicians (music sentiment) to compare to the sentiment analysis. Note: This is also an opportunity to transition into talking about small datasets and how, although the results are interesting, they are NOT statistically significant. |
Learning Objectives | Students will:
|
Vocabulary | List comparisons |
Activities | Comparison of sentiments across groups (Netsblox/Python – user choice) |
Teacher Resources |
Unit 6: Bias in Datasets and Ethics in AI/ML
Estimated Duration |
|
Lesson Summary | Fairness, Accountability, and Transparency is a rising areas in machine learning. Since ML models are trained on real-life (or synthetic) data, any real-life biases will be inputted into models’ learning. For example, if you want to create a model to automate reading resumes and you give the model the kind of resume that the company typically accepts. However, all of these resumes have common white American male names (like Paul, Harry, George, and William). Then the model you train on these resumes may be biased toward women or names not included in the training set. Students will learn about how research has accounted for these kinds of biases and the steps that can be taken to prevent bias in machine learning. |
Learning Objectives | Students will:
|
Vocabulary | Fairness; Accountability; Transparency; Bias; Discrimination; Underrepresentation; Overrepresentation; bias mitigation; data augmentation |
Activities |
|
Teacher Resources |
Unit 7: Other ML Techniques
Estimated Duration |
|
Lesson Summary | Students will learn about the internal structure of neural networks. |
Learning Objectives | Students will:
|
Vocabulary | Neural networks; node layers; optimization function; sequential decision making; combinatorial search; heuristic search; adversarial search; logical deduction; statistical inference |
Activities |
|
Teacher Resources |
Unit 8: Deep Neural Networks
Estimated Duration |
|
Lesson Summary | Students will learn about features and neural networks by working with the Tensorflow Playground. They will learn about how neural networks mimic the human mind. They will train a multilayer neural network using the backpropagation learning algorithm and describe how the weights of the neurons and the outputs of the hidden units change as a result of learning. |
Learning Objectives | Students will:
|
Vocabulary | Features; weights; deep learning; backpropagation |
Activities |
|
Student Resources | |
Teacher Resources |
|
Unit 9 Real World Applications of AI/ML
Estimated Duration |
|
Lesson Summary | Students will learn about real-world application of AI and ML in three domains: the arts, environment, and criminal justice system. |
Learning Objectives | Students will:
|
Vocabulary | Computer vision, pixel, metadata, processor, GPU |
Activities | |
Resources |
|