arrow
Return

Mining user reviews for method-level bug localization using transformers in java-based applications

delete2025-09-30
delete0
PRE
AI
M
Makram Soui
M
Marouane Kessentini
DOI:10.1007/s00521-025-11611-wdelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Users frequently post hundreds of reviews on mobile applications, often expressing dissatisfaction, reporting bugs, or suggesting new features. These reviews represent a valuable feedback channel that can be leveraged to improve software quality and user satisfaction. In this study, we propose an enhanced transformer-driven approach to automatically link user reviews to relevant method-level code elements in mobile apps. Rather than stopping at the file or class level, our method identifies specific Java methods that are most likely responsible for the issues described in user feedback. Our pipeline begins by filtering reviews through a combined sentiment and intent-aware layer, where reviews are retained if they either exhibit strong negative sentiment or are classified as complaints or feature requests using a zero-shot intent classification model. To group related reviews, we employ BERTopic. This transformer-based topic modeling technique uses Sentence-BERT embeddings and HDBSCAN clustering to form coherent semantic clusters without predefining the number of topics. Each topic is then represented as a dense vector by averaging the embeddings of the clustered reviews. On the code side, we extract and preprocess Java methods using JavaParser and generate contextual embeddings using Sentence-BERT. Cosine similarity is computed between topic vectors and code vectors to identify the Java methods most closely aligned with the concerns in each cluster. We validate our approach on a dataset of 44,683 user reviews spanning 10 open-source Android applications. The results demonstrate the effectiveness of the method in accurately identifying method-level code elements related to user-reported issues, making it a valuable tool for software maintenance and evolution.
Keywords:
BERTopic
Intent classification
BART
Reviews
Mobile apps
Sentence-BERT
Similarity

Journal

Neural Computing and Applications cover
Neural Computing and Applications
IF:
4.5
Papers:
914
Citations:
3.2W

Organization

G
grand valley university
Scholars:
1
Papers: 1
Citations: 0
S
School of Innovation and Technology
Scholars:
3
Papers: 2
Citations: 0
Cited Papers

Cited Papers

How Should I Improve the UI of My App?: A Study of User Reviews of Popular Apps in the Google Play
err2021-04-23
err11
PREAI
errChen, Qiuyuan; Chen, Chunyang; Hassan, Safwat; Xing, Zhengchang; Xia, Xin; Hassan, Ahmed E.
errShare
errSave
errShare
errSave
A study of the relation of mobile device attributes with the user-perceived quality of Android apps
err2017-03-13
err38
PREAI
errNoei, Ehsan; Syer, Mark D.; Zou, Ying; Hassan, Ahmed E.; Keivanloo, Iman
errShare
errSave
A Review on the Mobile Applications Developed for COVID-19: An Exploratory Analysis
err2020-01-01
err40
errOAAI
errIslam, Muhammad Nazrul; Islam, Iyolita; Munim, Kazi Md; Islam, A. K. M. Najmul
errShare
errSave
Feature location in source code: a taxonomy and survey
err2011-11-28
err0
errOAAI
errBogdan Dit; Meghan Revelle; Malcom Gethers; Denys Poshyvanyk
errShare
errSave
Crowdsourcing user reviews to support the evolution of mobile apps
err2018-03-01
err69
errOAAI
errPalomba, Fabio; Linares-Vasquez, Mario; Bavota, Gabriele; Oliveto, Rocco; Di Penta, Massimiliano; Poshyvanyk, Denys; De Lucia, Andrea
errShare
errSave
errShare
errSave
researcher View more