Skip to content

Teaching Data Cleaning in Machine Learning: A Misconception-Driven Pedagogical Framework for Explainable and Ethical Data Preprocessing

Dec 2026 · International Journal of Technology in Education Science · 0 citations
Teaching and Learning Programming

Abstract

Data cleaning — the process of detecting and remedying missing, erroneous, and inconsistent records in raw datasets — is widely recognized as the most time-consuming and consequential stage of the machine learning preprocessing pipeline. Yet despite its operational centrality, how data cleaning should be taught to undergraduate computer science students has received remarkably little systematic attention in the machine learning education literature. This paper addresses that gap by developing a theoretically grounded pedagogical framework for instructors teaching data cleaning in higher education contexts. Drawing on threshold concept theory, constructivist learning principles, and the documented landscape of machine learning education challenges, we identify three pervasive misconceptions: the deletion reflex, the imputation neutrality fallacy, and the outlier criminalization fallacy. We propose a four-phase instructional sequence — Motivational Grounding, Mechanism Diagnosis, Algorithm-Context Mapping, and Explainability and Ethical Reflection — operationalized through a multi-dimensional Instructor Cleaning Strategy Matrix. The framework is empirically grounded through a case study applying the full technique repertoire to a real-world academic email dataset of over 10,000 records spanning eleven years. A cross-method comparison demonstrates that imputation methods produced NRMSE values ranging from 0.08 to 0.45, and anomaly detection methods flagged between 185 and 412 records on identical data. Implications for machine learning curriculum design, assessment, and data ethics literacy are discussed. By embedding explainability and ethical reflection as a mandatory fourth phase of instruction — grounded in GDPR, the EU AI Act, and ISO 8000 requirements — the framework equips learners to navigate the data governance demands of contemporary technology-enhanced professional environments.

Read PDF

Similar papers

#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Trajectory Balance: Improved Credit Assignment in GFlowNets

It is proved that any global minimizer of the trajectory balance objective can define a policy that samples exactly from the target distribution, and empirically demonstrate the benefits of the trajectories balance objective for GFlowNet convergence, diversity of generated samples, and robustness to long action sequenc...

Esmeralda S. Whitammer, Moksh Jain, Emmanuel Bengio et al. · 302 citations · ⚡60

Related blog posts

Microsoft Research Blog Oct 6, 2026

What AI gets wrong and what failure teaches us

Jennifer Neville did not want to go into computer science—but that’s exactly where she landed. Neville discusses the starts and stops that led to her professional sweet spot and her work identifying “surprising failures” making it hard for AI to handle complexity.  The post What AI gets wrong and what failure teaches us appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.