Predicting software developer sentiment on self-admitted technical debt
Technical debt is a metaphor for sacrificing long-term code quality in order to achieve short-term project goals. The technical debt that developers intentionally introduce into project is called self-admitted technical debt (SATD), which usually exists in the form of code comments in software projects. The existence of SATD poses a huge challenge to software quality and robustness. Analyzing the sentiments of SATD helps to understand the behavioral habits of developers when annotating SATD. In order to explore the performance of generative pre-trained models in SATD sentiment prediction, a SATD sentiment prediction method based on the GPT-3.5-turbo fine-tuning model is proposed, and research is carried out on 18 open source projects. Empirical results show that, compared with a set of traditional machine learning and deep learning techniques, the fine-tuning GPT-3.5-turbo model improves the evaluation indicators precision, recall and F1-score by 14.2%, 11.5%, and 17.3%, respectively. The effectiveness of the SATD sentiment prediction method based on GPT-3.5-turbo is verified, indicating the potential of generative pre-trained models to capture nuanced complex sentiment— i.e ., developer comments that combine neutral technical observations with subtle negative cues such as hesitation or frustration. However, our comparison does not include recent large language model (LLM)-based approaches, which are reserved for future investigation.
Authors
- Zijie Huang (ORCID: https://orcid.org/0000-0002-8911-9889)
- Xingguang Yang (ORCID: https://orcid.org/0000-0001-7489-2265)
- Gang Wang (ORCID: https://orcid.org/0000-0001-6500-5863)
- Shuicheng Yan (ORCID: https://orcid.org/0000-0001-8906-3777)
- Zhenyu Shu (ORCID: https://orcid.org/0000-0003-0764-1778)
- Haichuan Zhang (ORCID: https://orcid.org/0009-0008-6961-2941)
- Yuzhao Yang
Institutions
- Ningbo University (CN)
- Ningbo University of Technology (CN)
Publication Details
- Journal
- PeerJ Computer Science
- Published
- 2025-10-20
- DOI
- https://doi.org/10.7717/peerj-cs.3227
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00