A Lightweight Blockchain-based Framework for Ensuring Training Data Integrity in Machine Learning Pipelines
Achraf AIT BENAALI, Anas ABOU EL KALAM, Wissam ABBASS
Pages 170–176 · Cadi Ayyad University, National School of Applied Sciences, Research Laboratory for Smart and Sustainable Technologies, Marrakesh, Morocco
Abstract
Machine learning (ML) is based on a core concept in artificial intelligence (AI) which is data training that makes ML models understand patterns and relationships. Since ML systems heavily rely on the integrity of training data, it's essential to protect the datasets from tampering and data poisoning attacks, which can significantly degrade model performance. In this paper, we propose a lightweight and practical framework that leverages blockchain technology to ensure the integrity of training datasets. The proposed approach computes a cryptographic hash of the dataset and stores it on a blockchain-like structure, enabling verification prior to model training. We implement a prototype using Python and evaluate the system under normal and tampered data scenarios. Experimental results demonstrate that the proposed method effectively detects dataset modifications with negligible overhead. This work provides a simple yet effective solution for enhancing trust in ML pipelines.
Keywords: Machine Learning Security, Blockchain, Data Integrity, Data Poisoning, Dataset Verification, Cybersecurity