Interactive Learning in Computer Science Education Supported by a Discord Chatbot

Santiago Berrezueta-Guzman, Ivan Parmacli, Stephan Krusche, Stefan Wagner

TL;DR

Researchers at the Technical University of Munich developed and integrated a custom Discord chatbot into an introductory computer science course to bridge the "feedback gap." By using interactive surveys and automated attendance tracking, the bot allowed instructors to adjust course difficulty in real-time, resulting in high student engagement and a 97.8% usability approval rating.

What Problem Does This Paper Address?

In large, first-semester Computer Science (CS1) courses, instructors often struggle to gauge student engagement and comprehension until it's too late. Traditional end-of-semester evaluations provide "post-mortem" data that helps future cohorts but does nothing for current students struggling with a specific lecture or assignment.

The authors identify a need for continuous, low-friction feedback. If a lecture is too dense or a quiz is unexpectedly difficult, instructors need to know immediately to adjust their teaching strategy or provide supplementary resources. However, getting students to fill out constant surveys is difficult. This paper explores whether meeting students where they already hang out—on Discord—via an automated chatbot can solve this communication bottleneck.

Methods

The authors developed DiscordBot, a command-based tool integrated into the course's Discord server.

  • Tech Stack: The bot is written in Python using the Pycord API (an asynchronous wrapper for the Discord API) and hosted on a Raspberry Pi 4 running Debian.
  • Architecture: It consists of a Data Manager (handling CSV/JSON storage), a Command Processor (handling user-triggered events), and Automated Processes (triggering surveys or attendance checks at specific times).
  • Interaction Design: Instead of simple text prompts, the bot uses Discord’s "Embed" messages and UI elements like buttons and selection menus. This makes providing feedback a "one-click" experience rather than a chore.
  • Features:
    • Attendance Tracking: Instructors provide a unique keyword; students message the bot the keyword to be logged.
  • Feedback Loops: Automated surveys sent after lectures, quizzes, and exams asking about perceived difficulty and expected grades.
  • Lecture Intros: The bot automatically shares materials and topics before a session starts.

Datasets

The study was conducted with a cohort of 137 students registered for an introductory programming course. The primary data analyzed included:

  • Interaction Logs: Quantitative data on how many students responded to bot prompts.
  • Performance Data: Actual grades from quizzes and intermediate exams.
  • User Satisfaction Survey: A comprehensive paper-based survey completed by 116 students at the end of the course to evaluate the bot’s usability and impact.

Key Insights and Ideas

  • Students are Accurate Self-Assessors: One of the most interesting findings was that student perception of difficulty closely mirrored their actual performance. 69.6% of students reported that their actual grade was very close to the "expected grade" they told the bot.
  • The "Mirroring" Effect: The data showed a direct correlation between perceived lecture difficulty and the difficulty of the corresponding quiz. This validates that the bot is capturing real pedagogical friction points.
  • Platform Familiarity Breeds Engagement: By using Discord—a platform students already use for social and study groups—the researchers achieved a 65.2% regular response rate, which is significantly higher than typical voluntary academic surveys.
  • Reducing "Media Breaks": By integrating attendance and feedback into the chat app, the "cost" of participation (in terms of time and effort) was minimized, making it "stress-free."

Key Results

  • High Usability: 97.8% of students found the interaction with the bot to be "easy" or "normal."
  • Student Approval: 71.7% of students expressed a desire to continue using the DiscordBot in future semesters.
  • Instructional Agility: Instructors were able to use the "Medium/Easy" perception of the intermediate exam (confirmed by the bot) to validate their assessment methods and adjust the difficulty of subsequent tutor sessions.
  • Efficiency: The attendance check process was reduced to taking less than one minute of class time.

Limitations and Future Work

  • Manual Data Handling: Currently, instructors must manually run Python scripts to process the CSV files and generate visualizations. The authors plan to develop a Graphical User Interface (GUI) to automate this.
  • Privacy Concerns: Using a third-party platform like Discord raises data privacy and ethics questions regarding student data, which the authors acknowledge as a critical consideration for future deployments.
  • Integration: The next step is to integrate the bot's backend directly with Learning Management Systems (LMS) like Artemis to prevent "media breaks" for the instructors.
  • Autonomy: The authors aim to make the bot more autonomous, reducing the need for manual monitoring of its performance.

Summary updated

BibTeX
@inproceedings{berrezuetaguzman2024interactive,
  author = {Santiago Berrezueta-Guzman and Ivan Parmacli and Stephan Krusche and Stefan Wagner},
  title = {{Interactive Learning in Computer Science Education Supported by a Discord Chatbot}},
  booktitle = {Gecon},
  year = {2024},
  doi = {10.1109/gecon62014.2024.10734012},
}
Figure