Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision Commits

被引:12
作者
Zhu, Chenyang [1 ]
Zhu, Zhengwei [1 ]
Xie, Yunxin [2 ]
Jiang, Wei [1 ]
Zhang, Guiling [1 ]
机构
[1] Changzhou Univ, Sch Informat Sci & Engn, Changzhou 213164, Peoples R China
[2] Changzhou Univ, Sch Petr Engn, Changzhou 213164, Peoples R China
关键词
Energy modeling; feature selection; machine learning; code optimization; CONSUMPTION; SELECTION;
D O I
10.1109/ACCESS.2019.2925350
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Performances of smartphones are profoundly affected by battery life. Maximizing the amount of usage of energy is essential to extend battery life. However, developers might concentrate more on the functionality of applications while ignoring the energy bugs that drain the battery during the development process. There are no quantitative approaches to detect these energy bugs introduced in this fast-paced development process. In this paper, we employ a system-call-based approach to develop a power consumption model for Android devices. Data that measure the energy consumption of mobile devices under different testing scenarios with the number of triggered system calls are utilized in the model training process. A balanced recursive feature elimination with cross-validation approach is proposed to select and rank the importance of the different system calls. Seven machine learning models are trained over the selected features with cross-validation and hyper-parameter tuning technique, where linear regression with the Lasso regularization outperforms all the other models. Then, the model is evaluated on the data set that measures the energy consumption on different revision history of the selected apps. The results show that the optimized Lasso model could detect energy bugs in the revision history of various applications. Optimization strategies are provided based on the selected features.
引用
收藏
页码:85241 / 85252
页数:12
相关论文
共 43 条
  • [1] Banerjee A, 2016, 2016 IEEE/ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2016), P139, DOI [10.1145/2897073.2897086, 10.1109/MobileSoft.2016.038]
  • [2] Detecting Energy Bugs and Hotspots in Mobile Apps
    Banerjee, Abhijeet
    Chong, Lee Kee
    Chattopadhyay, Sudipta
    Roychoudhury, Abhik
    [J]. 22ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (FSE 2014), 2014, : 588 - 598
  • [3] Random forests
    Breiman, L
    [J]. MACHINE LEARNING, 2001, 45 (01) : 5 - 32
  • [4] Carpenter R., 1960, The Eugenics Review, V52, P172, DOI DOI 10.1002/BIMJ.19620040313
  • [5] Chang Yin-Wen, 2010, J. Mach. Learn. Res., V11
  • [6] GreenScaler: training software energy models with automatic test generation
    Chowdhury, Shaiful
    Borle, Stephanie
    Romansky, Stephen
    Hindle, Abram
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2019, 24 (04) : 1649 - 1692
  • [7] Chowdhury SA, 2016, 13TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2016), P49, DOI [10.1109/MSR.2016.015, 10.1145/2901739.2901763]
  • [8] Client-side Energy Efficiency of HTTP/2 for Web and Mobile App Developers
    Chowdhury, Shaiful Alam
    Sapra, Varun
    Hindle, Abram
    [J]. 2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), VOL 1, 2016, : 529 - 540
  • [9] Claesen M., 2015, Hyperparameter Search in Machine Learning
  • [10] SUPPORT-VECTOR NETWORKS
    CORTES, C
    VAPNIK, V
    [J]. MACHINE LEARNING, 1995, 20 (03) : 273 - 297