TrainYourSnakeAI: A Novel Tool to Teach Reinforcement Learning to Middle School StudentsK12
Artificial intelligence (AI) is growing rapidly in our society and is now apparent in our day-to-day lives. With the recent burst of interest in AI, many individuals and children, especially, may view AI as something mystic and magical. It is important to demystify and introduce to them how AI is made and works. To address this need, we developed a software application that allows children to specify the parameters used by a Reinforcement Learning (RL) algorithm. Then students experience how RL is used to train an AI model to play the game “Snake”. This software tool was tested with 71 middle school age students. Here, we describe the design of the TrainYourSnakeAI application, the approach we used to introduce the associated ideas to middle school children, and how we assessed student learning. Qualitative data collected from students are presented and discussed. We surveyed their knowledge of AI before and after using the application. In this work, our research questions were: (RQ1) How can we create an effective tool to teach reinforcement learning?; (RQ2) Does using our application foster a stronger understanding of reinforcement learning in children?; and (RQ3) How can K-12 schools integrate RL into their AI education? Our findings indicate that students were able to understand the functionality of reward functions and how agents can learn from the environment using the concept of RL. We found that of the 50 students not previously familiar with RL, 30 were able to provide adequate descriptions of RL after using TrainYourSnakeAI.