Just-in-Time crash prediction for mobile apps

被引:0
|
作者
Wimalasooriya, Chathrie [1 ]
Licorish, Sherlock A. [1 ]
da Costa, Daniel Alencar [1 ]
MacDonell, Stephen G. [1 ]
机构
[1] Univ Otago, Dept Informat Sci, Dunedin, New Zealand
关键词
Android apps; Reliability; Crash; Just-in-Time prediction; DEFECT PREDICTION; LOGISTIC-REGRESSION; SOFTWARE; METRICS; AGREEMENT;
D O I
10.1007/s10664-024-10455-7
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Just-In-Time (JIT) defect prediction aims to identify defects early, at commit time. Hence, developers can take precautions to avoid defects when the code changes are still fresh in their minds. However, the utility of JIT defect prediction has not been investigated in relation to crashes of mobile apps. We therefore conducted a multi-case study employing both quantitative and qualitative analysis. In the quantitative analysis, we used machine learning techniques for prediction. We collected 113 reliability-related metrics for about 30,000 commits from 14 Android apps and selected 14 important metrics for prediction. We found that both standard JIT metrics and static analysis warnings are important for JIT prediction of mobile app crashes. We further optimized prediction performance, comparing seven state-of-the-art defect prediction techniques with hyperparameter optimization. Our results showed that Random Forest is the best performing model with an AUC-ROC of 0.83. In our qualitative analysis, we manually analysed a sample of 642 commits and identified different types of changes that are common in crash-inducing commits. We explored whether different aspects of changes can be used as metrics in JIT models to improve prediction performance. We found these metrics improve the prediction performance significantly. Hence, we suggest considering static analysis warnings and Android-specific metrics to adapt standard JIT defect prediction models for a mobile context to predict crashes. Finally, we provide recommendations to bridge the gap between research and practice and point to opportunities for future research.
引用
收藏
页数:62
相关论文
共 50 条
  • [1] Cross-Project Just-in-Time Bug Prediction for Mobile Apps: An Empirical Assessment
    Catolino, Gemma
    Di Nucci, Dario
    Ferrucci, Filomena
    [J]. 2019 IEEE/ACM 6TH INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2019), 2019, : 99 - 110
  • [2] Simplified Deep Forest Model Based Just-in-Time Defect Prediction for Android Mobile Apps
    Zhao, Kunsong
    Xu, Zhou
    Zhang, Tao
    Tang, Yutian
    Yan, Meng
    [J]. IEEE TRANSACTIONS ON RELIABILITY, 2021, 70 (02) : 848 - 859
  • [3] Simplified Deep Forest Model based Just-In-Time Defect Prediction for Android Mobile Apps
    Zhao, Kunsong
    Xu, Zhou
    Zhang, Tao
    Tang, Yutian
    [J]. 2020 IEEE 20TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY, AND SECURITY (QRS 2020), 2020, : 222 - 222
  • [4] Effort-aware cross-project just-in-time defect prediction framework for mobile apps
    Tian Cheng
    Kunsong Zhao
    Song Sun
    Muhammad Mateen
    Junhao Wen
    [J]. Frontiers of Computer Science, 2022, 16
  • [5] Effort-aware cross-project just-in-time defect prediction framework for mobile apps
    Tian CHENG
    Kunsong ZHAO
    Song SUN
    Muhammad MATEEN
    Junhao WEN
    [J]. Frontiers of Computer Science, 2022, 16 (06) : 19 - 33
  • [6] Multi-task deep neural networks for just-in-time software defect prediction on mobile apps
    Huang, Qiguo
    Li, Zhengliang
    Gu, Qing
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2024, 36 (10):
  • [7] Effort-aware cross-project just-in-time defect prediction framework for mobile apps
    Cheng, Tian
    Zhao, Kunsong
    Sun, Song
    Mateen, Muhammad
    Wen, Junhao
    [J]. FRONTIERS OF COMPUTER SCIENCE, 2022, 16 (06)
  • [8] Just-in-Time Defect Prediction for Android Apps via Imbalanced Deep Learning Model
    Zhao, Kunsong
    Xu, Zhou
    Yan, Meng
    Tang, Yutian
    Fan, Ming
    Catolino, Gemma
    [J]. 36TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2021, 2021, : 1447 - 1454
  • [9] A compositional model for effort-aware Just-In-Time defect prediction on android apps
    Zhao, Kunsong
    Xu, Zhou
    Yan, Meng
    Xue, Lei
    Li, Wei
    Catolino, Gemma
    [J]. IET SOFTWARE, 2022, 16 (03) : 259 - 278
  • [10] Cheetah: Just-in-Time Taint Analysis for Android Apps
    Do, Lisa Nguyen Quang
    Ali, Karim
    Livshits, Benjamin
    Bodden, Eric
    Smith, Justin
    Murphy-Hill, Emerson
    [J]. PROCEEDINGS OF THE 2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING COMPANION (ICSE-C 2017), 2017, : 39 - 42