StoryQ—an Online Environment for Machine Learning of Text Classification

William Finzer, Jie Chao, Carolyn P. Rosé, Shiyan JiangAAAI 2022

Abstract

StoryQ is a web-based, interactive learning environment designed to demystify machine learning for middle and high school students. By providing a "glass-box" interface for text classification, it allows students to manually engineer features, step through logistic regression iterations, and perform visual error analysis without writing a single line of code. This paper details the design of the StoryQ environment and its pedagogical approach to fostering AI literacy through hands-on model development.

Introduction

As machine learning (ML) becomes increasingly integrated into daily life, the need for foundational AI literacy grows. However, ML is often taught as a "black box" where data enters and predictions emerge, leaving the underlying mechanics—such as feature weighting and optimization—shrouded in mystery. For younger students, the barrier to entry is further heightened by requirements for programming skills or advanced statistics. StoryQ addresses these challenges by focusing on the ML workflow, moving students from passive consumers to active developers who understand feature engineering, model bias, and error analysis.

The StoryQ Environment

StoryQ is built as an extension of the Common Online Data Analysis Platform (CODAP), a web-based data science tool for schools. Its methodology centers on three core pillars designed to make the ML process transparent and interactive:

  1. Interactive Feature Engineering: Instead of relying on automated embedding layers, students manually identify n-grams or parts of speech they believe are predictive. These features are displayed in a table alongside their frequency across different classes, making the data's structure visible.
  2. Transparent Optimization: The tool utilizes logistic regression for its high level of interpretability. Students can "step" through the optimization process, watching in real-time as feature weights are adjusted and probabilities are recalculated for each text entry.
  3. Linked Selection for Error Analysis: A central innovation of StoryQ is the interactive link between the model and the raw data. If a student selects a specific feature, the interface highlights every instance of that word in the dataset and sorts results based on whether the model’s prediction matched the original label.
Figure 1: Visual error analysis in StoryQ, highlighting how the word "celebrity" appears in both clickbait and non-clickbait headlines to help students refine their models.

Case Study: Clickbait Detection

To demonstrate the tool's utility, the authors utilize a dataset of news headlines labeled as either "clickbait" or "not clickbait." This task is intuitive for students and highlights the nuances of language. For example, as shown in Figure 1, a student might notice that while the word "celebrity" often appears in clickbait, it also appears in legitimate news (e.g., "celebrity priest"). This "aha moment" during error analysis encourages students to refine their features to account for context, moving beyond simple keyword matching.

Pedagogical Insights

StoryQ's design philosophy emphasizes several key educational strategies:

  • Interpretability as a Learning Tool: By using logistic regression rather than deep learning, the relationship between a feature (a word) and its impact (a weight) is made explicit.
  • Human-in-the-Loop Analysis: Visualizing where a model fails allows students to learn the iterative nature of data science.
  • Low Floor, High Ceiling: The tool requires no installation and no programming, lowering the technical "floor." However, by including concepts like Kappa scores, confusion matrices, and cross-validation, it maintains a high conceptual "ceiling" for advanced learners.

Conclusion and Future Work

StoryQ successfully integrates complex ML concepts into a GUI that supports a progressive learning workflow. It provides immediate visual feedback, allowing students to see the tangible effects of their engineering choices. While the software provides the mechanics for learning, future work focuses on developing a structured curriculum to accompany the tool and conducting longitudinal studies to measure its impact on students' long-term understanding of AI ethics and development.

Summary updated

BibTeX
@inproceedings{finzer2022storyqan,
  author = {William Finzer and Jie Chao and Carolyn P. Rosé and Shiyan Jiang},
  title = {{StoryQ—an Online Environment for Machine Learning of Text Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i11.21567},
}
Figure