University of Victoria (Canada)
Automated classification of pull requests in scientific software using LLMs
Abstract
dc:description.abstractScientific software relies on contributions that combine domain-specific expertise with software engineering skills, but identifying which contributions require deep scientific knowledge remains a persistent challenge in project maintenance. We analyzed 1,074 pull requests from three established scientific repositories, Trilinos, Mantid, and AMReX, and developed a binary classification framework that distinguishes contributions requiring scientific knowledge from those focused on software concerns. To contextualize model performance, we compare LLM-based classification against simple baseline approaches, demonstrating that shallow statistical methods are insufficient for capturing domain-specific distinctions. Our approach achieves near-human reliability, with DeepSeek-R1 demonstrating a Krippendorff’s α of 0.789 through iterative prompt refinement and human validation. The analysis reveals different review characteristics: scientific contributions require 67% longer review times, involve 64% more unique reviewers, generate twice the discussion comments, and undergo over 300% more revision cycles than software-focused changes. These patterns persist after controlling for the size of the pull request and the effects of the repository. A validation study on 75 PlasmaPy issues achieves 89.33% accuracy, indicating the framework applies to other contribution types. These findings establish that LLM-based classification can effectively support automated triage in interdisciplinary software teams. This enables more efficient allocation of scarce domain expertise while empirically confirming that scientific contributions require different review processes.
Degree
thesis:*- Level thesis:degree_level
- Master of Science MSc
- Department thesis:degree_department
- Department of Computer Science
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Zeng, Shiyu
- Advisor dc:contributor.supervisor
-
- Ernst, Neil
Subjects
dc:subject × 8Rights
dc:rights- Statement dc:rights
-
- Available to the World Wide Web
- Language dc:language.iso
- en, English
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/1828/23775