Back to search

University of Saskatchewan

Federated Learning in Software Engineering: A Comprehensive Study on Commit Prediction and Name-based Bug Detection

Abstract

dc:description.abstract

In the domain of software development, where bugs are a persistent challenge, there is an ever-growing need for advanced predictive techniques to enhance software robustness. This thesis addresses this need by investigating the efficacy of Federated Learning (FL) in predicting and detecting bugs, specifically focusing on Just-In-Time (JIT) and Real-Time (RT) bug-inducing commits and name-based bug detection. The research begins by identifying the challenges in current bug prediction methods, including the limitations in data sharing due to privacy concerns and the inadequacies of traditional tools in identifying certain types of bugs. To address these issues, the thesis is structured into three comprehensive studies. The first study surveys the perceptions of twenty-three developers in micro and small-scale enterprises across the globe, focusing on JIT and RT bug-inducing commit predictions. This survey highlights a notable gap in the awareness and application of JIT and RT bug prediction tools and identifies an interest in FL as a promising collaborative and privacy-conscious approach. The second study advances this exploration by applying FL in the prediction of JIT and RT bug-inducing commits. It compares traditional machine learning models, such as Logistic Regression and Deep Learning, with their federated counterparts across 126,103 commits spanning over three benchmarks. The results demonstrate that FL models outperform their standalone counterparts in cross-project consistency, effectively manage imbalanced datasets, and reduce training time, with certain aggregation strategies like FedAvgM improving accuracy. In the third study, FL's application is extended to multiclass name-based bug detection. Datasets encompassing 131 projects are used to develop models that identify errors in variable and function names. The comparison between FL and centralized learning models reveals FL's superior capability in generalizing across domains, reducing resource commitments, and improving cross-project outcomes, although some within-project evaluations showed a slight degradation in performance. Overall, this thesis presents FL as a viable and effective solution for enhancing bug prediction and detection in software development. It contributes significantly to the understanding of FL's application in software engineering, offering a blend of theoretical and practical insights. The findings advocate for the integration of FL in software development practices, highlighting its potential in addressing the dual challenges of privacy and efficiency in bug prediction and detection.

Degree

thesis:*
Name thesis:degree_name
Master of Science (M.Sc.)
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor
University of Saskatchewan
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Islam, Md Rayhan
Advisor dc:contributor.advisor
  • Roy, Banani
Committee members dc:contributor.committeemember
  • Rochan, Mrigank
  • Deters, Ralph
ORCID person:identifier.orcid

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10388/15473

Chain of custody

source
Harvested from
University of Saskatchewan
Base URL
harvest.usask.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Islam, Md Rayhan. Federated Learning in Software Engineering: A Comprehensive Study on Commit Prediction and Name-based Bug Detection. Masters thesis, University of Saskatchewan, 2024. https://hdl.handle.net/10388/15473