Statuto, NahuelMantilla Carreño, Juan Pablo2025-10-282025-10-282025-06-10https://hdl.handle.net/2445/223909Treballs Finals de Grau d'Enginyeria Informàtica, Facultat de Matemàtiques, Universitat de Barcelona, Any: 2025, Director: Nahuel StatutoThe increasing use of machine learning poses significant privacy risks, especially when sensitive data is used, and conventional anonymization methods have proven insufficient. Differential privacy is a rigorous framework for data privacy providing strong mathematical guarantees. The possibility of applying this framework to machine learning solves the privacy problem. We will present the fundamental basis of these concepts to empirically investigate, implement, and analyse two techniques for integrating differential privacy into machine learning pipelines. The first technique, dataset perturbation, involves adding calibrated Gaussian noise directly to the training data and then using any standard machine learning pipeline. The second, gradient perturbation, centers on differentially private stochastic gradient descent, is an approach that injects noise into the gradients during the training phase. For the comparative study, we developed a multi-class classification architecture using a real-world, sensitive medical dataset derived from the MIMIC-IV database. Model performance was evaluated against a non-private baseline, using the appropriate metrics considering our class imbalance, such as Macro F1-score and Macro OVO AUC. The results confirm the trade-off between privacy and utility in the models developed, where higher privacy guarantees consistently result in reduced model utility. For the specific context of this study, gradient perturbation provided a slightly more advantageous model in overall balance of utility and privacy. Ultimately, the thesis provides strong evidence for the feasibility of training useful and formally private machine learning models on real-world medical data, successfully demonstrating a practical "sweet spot" between privacy and performance can be found.49 p.application/pdfengmemòria: cc-nc-nd (c) Juan Pablo Mantilla Carreño, 2025codi: GPL (c) Juan Pablo Mantilla Carreño, 2025http://creativecommons.org/licenses/by-nc-nd/3.0/es/http://www.gnu.org/licenses/gpl-3.0.ca.htmlAprenentatge automàticProtecció de dadesDades massivesProgramariTreballs de fi de grauProcessos gaussiansMachine learningData protectionBig dataComputer softwareBachelor's thesesGaussian processesDifferentially Private Machine Learning: Implementation and Analysis of Gradient and Dataset Perturbation Techniquesinfo:eu-repo/semantics/bachelorThesisinfo:eu-repo/semantics/openAccess