Teaching Machine Learning Fundamentals with LEGO Robotics
Pith reviewed 2026-05-16 10:59 UTC · model grok-4.3
The pith
A web-based platform pairs LEGO robots with visualizations so students aged 12-17 can learn KNN, linear regression, and Q-learning by collecting data and training models without writing code.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The platform enables students to learn the fundamentals of KNN, linear regression, and Q-learning by physically collecting data with LEGO robots and interacting with training visualizations in a web browser, producing measurable gains in self-reported algorithm comprehension and motivation after a two-day course.
What carries the argument
The web interface that links real-time data collection from LEGO robots to side-by-side visualizations for training and testing KNN classification, linear regression, and Q-learning agents.
If this is right
- Students acquire hands-on experience mapping real sensor data to model parameters without first learning a programming language.
- The two-day format can be replicated in schools or after-school programs using only standard LEGO kits and a browser.
- Open release of the platform and video tutorials supports adoption by educators who lack ML expertise.
- Increased motivation reported by participants suggests the approach may encourage continued study of AI topics.
Where Pith is reading between the lines
- Physical robot feedback may strengthen intuition about model errors more effectively than screen-only simulations for this age group.
- The same data-collection loop could be extended to additional algorithms such as decision trees or neural networks by adding new visualization modules.
- Longer-term studies could check whether early exposure through robots improves later performance in formal programming-based ML courses.
Load-bearing premise
Self-reported survey answers from the fourteen students accurately reflect genuine understanding of the algorithms and that any observed changes result from the platform rather than novelty, social pressure, or other unmeasured factors.
What would settle it
A controlled experiment that gives the same students an objective test of algorithm mechanics before and after the course and compares gains against a matched group taught the same material through lectures or simulations only.
Figures
read the original abstract
This paper presents the web-based platform Machine Learning with Bricks and an accompanying two-day course designed to teach machine learning concepts to students aged 12 to 17 through programming-free robotics activities. Machine Learning with Bricks is an open source platform and combines interactive visualizations with LEGO robotics to teach three core algorithms: KNN, linear regression, and Q-learning. Students learn by collecting data, training models, and interacting with robots via a web-based interface. Pre- and post-surveys with 14 students indicate statistically significant improvements in self-reported understanding of machine learning algorithms, changes in AI-related terminology toward more technical language, high platform usability, and increased motivation for continued learning. This work suggests that tangible, visualization-based approaches can make machine learning concepts accessible and engaging for young learners while maintaining technical depth. The platform is freely available at https://learning-and-dynamics.github.io/ml-with-bricks/, with video tutorials guiding students through the experiments at https://youtube.com/playlist?list=PLx1grFu4zAcwfKKJZ1Ux4LwRqaePCOA2J.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper presents the open-source 'Machine Learning with Bricks' web platform that combines interactive visualizations with LEGO robotics to teach KNN, linear regression, and Q-learning to students aged 12-17 without programming. It describes a two-day course structure and evaluates effectiveness via pre- and post-surveys of 14 students, reporting statistically significant gains in self-reported understanding, shifts to more technical AI terminology, high usability scores, and increased motivation for further learning.
Significance. If the platform produces genuine learning gains, the work would demonstrate a promising tangible-visual approach for making core machine-learning algorithms accessible to young learners while preserving technical content. The open-source release and accompanying video tutorials strengthen potential for adoption and replication in educational settings.
major comments (2)
- [Results] Results section: The pre-post survey design with n=14 reports statistically significant self-reported gains but includes no control group, so changes cannot be attributed to the platform rather than novelty effects, repeated testing, or social desirability.
- [Evaluation] Evaluation section: All outcome measures are subjective self-reports of understanding and motivation; no objective performance metrics (e.g., students correctly training models on held-out data or debugging robot policies) are provided to validate that perceived gains reflect actual algorithmic competence.
minor comments (1)
- [Abstract] Abstract: The phrase 'statistically significant improvements' should specify the exact tests, effect sizes, and p-values for transparency.
Simulated Author's Rebuttal
We thank the referee for the constructive feedback on our manuscript. We address each major comment below and have made partial revisions to the text to strengthen the discussion of limitations and future directions.
read point-by-point responses
-
Referee: [Results] Results section: The pre-post survey design with n=14 reports statistically significant self-reported gains but includes no control group, so changes cannot be attributed to the platform rather than novelty effects, repeated testing, or social desirability.
Authors: We agree that the lack of a control group prevents strong causal attribution of the observed gains. Our study was an initial pilot evaluation of platform feasibility in a real classroom setting with a small cohort, where a controlled design was not practical. We have added a dedicated Limitations subsection that explicitly discusses potential confounds including novelty effects, repeated testing, and social desirability bias, and we outline plans for future controlled experiments with larger samples. revision: partial
-
Referee: [Evaluation] Evaluation section: All outcome measures are subjective self-reports of understanding and motivation; no objective performance metrics (e.g., students correctly training models on held-out data or debugging robot policies) are provided to validate that perceived gains reflect actual algorithmic competence.
Authors: We acknowledge that objective performance metrics would provide stronger validation of actual learning. The current evaluation prioritizes self-reported understanding and motivation as key indicators for an accessible, non-programming platform aimed at young learners. We have revised the Discussion and Future Work sections to propose concrete objective measures for follow-up studies, such as task-based assessments of model training and policy debugging, while noting that the combination of significant self-report gains and shifts toward technical terminology offers preliminary support for the approach. revision: partial
Circularity Check
No circularity: claims rest on independent external surveys
full rationale
The paper presents an educational platform and evaluates its effectiveness solely through pre- and post-survey responses from 14 students. These survey measures (self-reported understanding, terminology shifts, usability, motivation) are collected externally and do not depend on any fitted parameters, internal definitions, or equations within the platform. No derivation chain, ansatz, or self-citation reduces the reported outcomes to the inputs by construction. The evaluation design is self-contained against external benchmarks and contains no load-bearing self-referential steps.
Axiom & Free-Parameter Ledger
axioms (1)
- domain assumption Pre- and post-surveys reliably measure changes in students' understanding of machine learning concepts
Reference graph
Works this paper leans on
-
[1]
Three Interviews About K-12 AI Education in America, Europe, and Singapore,
F. Heintz, “Three Interviews About K-12 AI Education in America, Europe, and Singapore,”KI - K ¨unstliche Intelligenz, vol. 35, no. 2, pp. 233–237, 2021. [Online]. Available: https://doi.org/10.1007/s13218-021-00730-w
-
[2]
AI literacy in K-12: a systematic literature review,
L. Casal-Otero, A. Catala, C. Fern ´andez-Morante, M. Taboada, B. Cebreiro, and S. Barro, “AI literacy in K-12: a systematic literature review,”International Journal of STEM Education, vol. 10, no. 29, pp. 1–17, 2023. [Online]. Available: https://doi.org/10.1186/ s40594-023-00418-7
work page 2023
-
[3]
A systematic review of teaching and learning machine learning in K-12 education,
I. T. Sanusi, S. S. Oyelere, H. Vartiainen, J. Suhonen, and M. Tukiainen, “A systematic review of teaching and learning machine learning in K-12 education,” Education and Information Technologies, vol. 28, no. 5, pp. 5967–5997, 2023. [Online]. Available: https://doi.org/10.1007/s10639-022-11416-7
-
[4]
Principles of Explanatory Debugging to Personalize Interactive Machine Learning,
T. Kulesza, M. Burnett, W.-K. Wong, and S. Stumpf, “Principles of Explanatory Debugging to Personalize Interactive Machine Learning,”International Conference on Intelligent User Interfaces, p. 126–137, 2015. [Online]. Available: https://doi.org/10.1145/2678025. 2701399
-
[5]
AI Programming by Children using Snap! Block Programming in a Developing Country,
K. Kahn, R. Megasari, E. Piantari, and E. Junaeti, “AI Programming by Children using Snap! Block Programming in a Developing Country,”European Conference on Technology Enhanced Learning, vol. 2193, pp. 1–14, 2018. [Online]. Available: https: //ceur-ws.org/V ol-2193/paper1.pdf
work page 2018
-
[6]
J. Van Brummelen, T. Heng, and V . Tabunshchyk, “Teaching Tech to Talk: K-12 Conversational Artificial Intelligence Literacy Curriculum and Development Tools,”AAAI Conference on Artificial Intelligence, vol. 35, no. 17, pp. 15 655–15 663, 2021. [Online]. Available: https://doi.org/10.1609/aaai.v35i17.17844
-
[7]
Why Are We Not Teaching Machine Learning at High School? A Proposal,
I. Evangelista, G. Blesio, and E. Benatti, “Why Are We Not Teaching Machine Learning at High School? A Proposal,”World Engineering Education Forum - Global Engineering Deans Council, pp. 1– 6, 2018. [Online]. Available: https://doi.org/10.1109/ WEEF-GEDC.2018.8629750
-
[8]
B. Broll, S. Grover, and D. Babb, “Beyond Black- Boxing: Building Intuitions of Complex Machine Learning Ideas Through Interactives and Levels of Abstraction,”ACM Conference on International Com- puting Education Research, p. 21–23, 2022. [Online]. Available: https://doi.org/10.1145/3501709.3544273
-
[9]
Text Classifi- cation for AI Education,
T. Reddy, R. Williams, and C. Breazeal, “Text Classifi- cation for AI Education,”ACM Technical Symposium on Computer Science Education, p. 1381, 2021. [Online]. Available: https://doi.org/10.1145/3408877.3439689
-
[10]
SmileyCluster: supporting accessible machine learning in K-12 scientific discovery,
X. Wan, X. Zhou, Z. Ye, C. K. Mortensen, and Z. Bai, “SmileyCluster: supporting accessible machine learning in K-12 scientific discovery,”Interaction Design and Children Conference, p. 23–35, 2020. [Online]. Available: https://doi.org/10.1145/3392063.3394440
-
[11]
Introducing Reinforcement Learning to K-12 Students with Robots and Augmented Reality,
Z. Zhang, K. Lavigne, W. Church, J. Sinapov, and C. Rogers, “Introducing Reinforcement Learning to K-12 Students with Robots and Augmented Reality,”Robotics in Education, pp. 351–365, 2023. [Online]. Available: https://doi.org/10.1007/978-3-031-38454-7 29
-
[12]
Calypso for Cozmo: Robotic AI for Everyone (Abstract Only),
D. S. Touretzky and C. Gardner-McCune, “Calypso for Cozmo: Robotic AI for Everyone (Abstract Only),” ACM Technical Symposium on Computer Science Education, p. 1110, 2018. [Online]. Available: https: //doi.org/10.1145/3159450.3162200
-
[13]
PopBots: Designing an Artificial Intelligence Curriculum for Early Childhood Education,
R. Williams, H. W. Park, L. Oh, and C. Breazeal, “PopBots: Designing an Artificial Intelligence Curriculum for Early Childhood Education,”AAAI Conference on Artificial Intelligence, vol. 33, no. 1, pp. 9729–9736, 2019. [Online]. Available: https://doi.org/10.1609/aaai.v33i01.33019729
-
[14]
Zhorai: Designing a Conversational Agent for Children to Explore Machine Learning Concepts,
P. Lin, J. Van Brummelen, G. Lukin, R. Williams, and C. Breazeal, “Zhorai: Designing a Conversational Agent for Children to Explore Machine Learning Concepts,” AAAI Conference on Artificial Intelligence, vol. 34, no. 9, pp. 13 381–13 388, 2020. [Online]. Available: https://doi.org/10.1609/aaai.v34i09.7061
-
[15]
“AlphAI”: Teaching AI Algorithms to K12 by Training Learning Robots and Visualizing How It Works,
M. Absalon and T. Deneux, ““AlphAI”: Teaching AI Algorithms to K12 by Training Learning Robots and Visualizing How It Works,”AAAI Conference on Artificial Intelligence, vol. 39, no. 28, pp. 29 096–29 103,
-
[17]
Intro- ducing children to machine learning concepts through hands-on experience,
T. Hitron, I. Wald, H. Erel, and O. Zuckerman, “Intro- ducing children to machine learning concepts through hands-on experience,”ACM Conference on Interaction Design and Children, p. 563–568, 2018. [Online]. Available: https://doi.org/10.1145/3202185.3210776
-
[18]
Artificial intelligence and computer science in education: From kindergarten to university,
M. Kandlhofer, G. Steinbauer, S. Hirschmugl-Gaisch, and P. Huber, “Artificial intelligence and computer science in education: From kindergarten to university,” IEEE Frontiers in Education Conference, pp. 1–9,
-
[19]
Available: https://doi.org/10.1109/FIE
[Online]. Available: https://doi.org/10.1109/FIE. 2016.7757570
work page doi:10.1109/fie 2016
-
[20]
Envisioning AI for K-12: What Should Every Child Know about AI?
D. Touretzky, C. Gardner-McCune, F. Martin, and D. Seehorn, “Envisioning AI for K-12: What Should Every Child Know about AI?”AAAI Conference on Artificial Intelligence, vol. 33, no. 1, pp. 9795–9799,
-
[21]
[Online]. Available: https://doi.org/10.1609/aaai. v33i01.33019795
-
[22]
What is AI Literacy? Competencies and Design Considerations,
D. Long and B. Magerko, “What is AI Literacy? Competencies and Design Considerations,”CHI Conference on Human Factors in Computing Systems, p. 1–16, 2020. [Online]. Available: https://doi.org/10.1145/3313831.3376727
-
[23]
Conceptualizing AI literacy: An exploratory review,
D. T. K. Ng, J. K. L. Leung, S. K. W. Chu, and M. S. Qiao, “Conceptualizing AI literacy: An exploratory review,”Computers and Education: Artificial Intelligence, vol. 2, p. 100041, 2021. [Online]. Available: https://doi.org/10.1016/j.caeai.2021.100041
-
[24]
PhET: Simulations That Enhance Learning,
C. E. Wieman, W. K. Adams, and K. K. Perkins, “PhET: Simulations That Enhance Learning,”Science, vol. 322, no. 5902, pp. 682–683, 2008. [Online]. Available: https://doi.org/10.1126/science.1161948
-
[25]
S. Papert, “Situating Constructionism,” inConstruction- ism: Research Reports and Essays. Ablex, 1991, pp. 1–11
work page 1991
-
[26]
——,Mindstorms: Children, Computers, and Powerful Ideas. USA: Basic Books, Inc., 1980
work page 1980
-
[27]
Youth making machine learning models for gesture-controlled interactive media,
A. Zimmermann-Niefield, S. Polson, C. Moreno, and R. B. Shapiro, “Youth making machine learning models for gesture-controlled interactive media,”Interaction De- sign and Children Conference, p. 63–74, 2020. [Online]. Available: https://doi.org/10.1145/3392063.3394438
-
[28]
Can Children Understand Machine Learning Concepts?: The Effect of Uncovering Black Boxes,
T. Hitron, Y . Orlev, I. Wald, A. Shamir, H. Erel, and O. Zuckerman, “Can Children Understand Machine Learning Concepts?: The Effect of Uncovering Black Boxes,”CHI Conference on Human Factors in Computing Systems, no. 415, pp. 1–11, 2019. [Online]. Available: https://doi.org/10.1145/3290605.3300645
-
[29]
Youth Learning Machine Learning through Building Models of Athletic Moves,
A. Zimmermann-Niefield, M. Turner, B. Murphy, S. K. Kane, and R. B. Shapiro, “Youth Learning Machine Learning through Building Models of Athletic Moves,” ACM International Conference on Interaction Design and Children, p. 121–132, 2019. [Online]. Available: https://doi.org/10.1145/3311927.3323139
-
[30]
The Machine Learning Machine: A Tangible User Interface for Teaching Machine Learning,
M. H. Kaspersen, K.-E. K. Bilstrup, and M. G. Petersen, “The Machine Learning Machine: A Tangible User Interface for Teaching Machine Learning,”International Conference on Tangible, Embedded, and Embodied Interaction, no. 19, pp. 1–12, 2021. [Online]. Available: https://doi.org/10.1145/3430524.3440638
-
[31]
Teacher Perspectives on How To Train Your Robot: A Middle School AI and Ethics Curriculum,
R. Williams, S. P. Kaputsos, and C. Breazeal, “Teacher Perspectives on How To Train Your Robot: A Middle School AI and Ethics Curriculum,”AAAI Conference on Artificial Intelligence, vol. 35, no. 17, pp. 15 678–15 686, 2021. [Online]. Available: https: //doi.org/10.1609/aaai.v35i17.17847
-
[32]
IRobot: Teaching the Basics of Artificial Intelligence in High Schools,
H. Burgsteiner, M. Kandlhofer, and G. Steinbauer, “IRobot: Teaching the Basics of Artificial Intelligence in High Schools,”AAAI Conference on Artificial Intelligence, vol. 30, no. 1, pp. 4126–4127, 2016. [Online]. Available: https://doi.org/10.1609/aaai.v30i1. 9864
-
[33]
Teaching AI using LEGO Mindstorms,
S. Parsons and E. Sklar, “Teaching AI using LEGO Mindstorms,”AAAI Spring Symposium,
-
[34]
Available: https://aaai.org/papers/ 0003-ss04-01-003-teaching-ai-using-lego-mindstorms/
[Online]. Available: https://aaai.org/papers/ 0003-ss04-01-003-teaching-ai-using-lego-mindstorms/
-
[35]
The ICAP Framework: Linking Cognitive Engagement to Active Learning Outcomes,
M. T. H. Chi and R. Wylie, “The ICAP Framework: Linking Cognitive Engagement to Active Learning Outcomes,”Educational Psychologist, vol. 49, no. 4, pp. 219–243, 2014. [Online]. Available: https://doi.org/ 10.1080/00461520.2014.965823
-
[36]
Likert,The Method of Constructing an Attitude Scale
R. Likert,The Method of Constructing an Attitude Scale. Wiley, 1967. [Online]. Available: https://www.sfu.ca/ ∼palys/ Likert-1933-TheMethodOfConstructingAnAttitudeScale. pdf
work page 1967
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.