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

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 developm...

Full description

Bibliographic Details
Main Authors: Chenyang Zhu, Zhengwei Zhu, Yunxin Xie, Wei Jiang, Guiling Zhang
Format: Article
Language:English
Published: IEEE 2019-01-01
Series:IEEE Access
Subjects:
Online Access:https://ieeexplore.ieee.org/document/8747004/
id doaj-1ed6003fd6814b418195da7af6ec5119
record_format Article
spelling doaj-1ed6003fd6814b418195da7af6ec51192021-03-29T23:21:58ZengIEEEIEEE Access2169-35362019-01-017852418525210.1109/ACCESS.2019.29253508747004Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision CommitsChenyang Zhu0https://orcid.org/0000-0002-2145-0559Zhengwei Zhu1Yunxin Xie2Wei Jiang3https://orcid.org/0000-0002-2750-6891Guiling Zhang4School of Information Science and Engineering, Changzhou University, Changzhou, ChinaSchool of Information Science and Engineering, Changzhou University, Changzhou, ChinaSchool of Petroleum Engineering, Changzhou University, Changzhou, ChinaSchool of Information Science and Engineering, Changzhou University, Changzhou, ChinaSchool of Information Science and Engineering, Changzhou University, Changzhou, ChinaPerformances 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.https://ieeexplore.ieee.org/document/8747004/Energy modelingfeature selectionmachine learningcode optimization
collection DOAJ
language English
format Article
sources DOAJ
author Chenyang Zhu
Zhengwei Zhu
Yunxin Xie
Wei Jiang
Guiling Zhang
spellingShingle Chenyang Zhu
Zhengwei Zhu
Yunxin Xie
Wei Jiang
Guiling Zhang
Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision Commits
IEEE Access
Energy modeling
feature selection
machine learning
code optimization
author_facet Chenyang Zhu
Zhengwei Zhu
Yunxin Xie
Wei Jiang
Guiling Zhang
author_sort Chenyang Zhu
title Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision Commits
title_short Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision Commits
title_full Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision Commits
title_fullStr Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision Commits
title_full_unstemmed Evaluation of Machine Learning Approaches for Android Energy Bugs Detection With Revision Commits
title_sort evaluation of machine learning approaches for android energy bugs detection with revision commits
publisher IEEE
series IEEE Access
issn 2169-3536
publishDate 2019-01-01
description 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.
topic Energy modeling
feature selection
machine learning
code optimization
url https://ieeexplore.ieee.org/document/8747004/
work_keys_str_mv AT chenyangzhu evaluationofmachinelearningapproachesforandroidenergybugsdetectionwithrevisioncommits
AT zhengweizhu evaluationofmachinelearningapproachesforandroidenergybugsdetectionwithrevisioncommits
AT yunxinxie evaluationofmachinelearningapproachesforandroidenergybugsdetectionwithrevisioncommits
AT weijiang evaluationofmachinelearningapproachesforandroidenergybugsdetectionwithrevisioncommits
AT guilingzhang evaluationofmachinelearningapproachesforandroidenergybugsdetectionwithrevisioncommits
_version_ 1724189622882271232