适度强大:内部软件度量在应用发布时能在多大程度上预测其流行度?
Moderately Mighty: To What Extent Can Internal Software Metrics Predict App Popularity at Launch?
AI总结:
本研究利用446个开源Android应用,探索内部软件度量在发布时预测应用流行度的能力,发现回归模型效果差,但二分类模型(多层感知器)F1分数达0.72,表明内部度量在分类任务中有价值。
摘要:
在移动应用首次发布之前预测其流行度,可以为开发者在竞争激烈的市场中提供战略优势,然而这仍然是一个具有挑战性的问题。本研究探讨了内部软件度量(可在部署前从源代码中测量)在应用诞生时能在多大程度上预测其流行度(即评分和每年下载量)。为了进行分析,我们构建了一个经过严格筛选的数据集,包含446个基于Java的开源Android应用,这些应用同时可在F-Droid和Google Play商店中获取。利用来自F-Droid的应用源代码,我们提取了广泛的内部度量,包括系统级、类级和方法级代码度量、代码异味以及应用元数据。与流行度相关的信息(包括评论和下载数量)则从Play商店收集。\n 我们评估了跨三个特征集的回归和分类模型:一个最小的仅基于大小的基线集、一个基于领域知识的手工选择集,以及一个通过特征选择算法得出的投票集。我们的结果表明,对于应用评分和下载数量,由于数据集中评分分布偏斜和下载数量高度分散,回归模型表现不佳。然而,当将其重新定义为二分类问题(流行与不流行)时,性能显著提升——最佳模型为多层感知器,其F1分数达到0.72。\n 我们得出结论,尽管仅凭内部代码度量不足以准确预测应用的未来流行度,但它们确实与其表现出有意义的关联。因此,我们的发现挑战了先前完全否定内部度量作为软件质量有效指标的研究。相反,我们的结果与表明内部代码度量在适当情境下评估时具有价值的研究一致——具体而言,我们发现它们对分类任务有用。
英文摘要:
Predicting a mobile app's popularity before its first release can provide developers with a strategic advantage in a competitive marketplace, yet it remains a challenging problem. This study explores the extent to which internal software metrics, measurable from source code before deployment, can predict an app's popularity (i.e., ratings and downloads per year) at inception. For our analysis, we constructed a rigorously filtered dataset of 446 open-source Java-based Android apps that are available on both F-Droid and Google Play Store. Using app source code from F-Droid, we extracted a wide array of internal metrics, including system-, class-, and method-level code metrics, code smells, and app metadata. Popularity-related information, including reviews and download counts, was collected from the Play Store. We evaluate regression and classification models across three feature sets: a minimal Size-only baseline, a domain-informed Handpicked set, and a Voting set derived via feature selection algorithms. Our results show that, for both app ratings and number of downloads, regression models perform poorly due to skewed rating distributions and a highly scattered range of download counts in our dataset. However, when reframed as a binary classification (Popular vs. Unpopular), performance improves significantly-the best model, a Multilayer Perceptron, achieves an F1-score of 0.72. We conclude that, although internal code metrics alone are insufficient for accurately predicting an app's future popularity, they do exhibit meaningful correlations with it. Thus, our findings challenge prior studies that have entirely dismissed internal metrics as valid indicators of software quality. Instead, our results align with research suggesting that internal code metrics can be valuable when evaluated within the appropriate context-specifically, we found them useful for classification tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。