[论文解读] Predicting Open Source Software Sustainability with Deep Temporal Neural Hierarchical Architectures and Explainable AI
该论文提出一个分层时序管道,通过 Transformer 基于时序建模、表格特征和可解释性 AI 从 24 个月的活动中预测 OSS 可持续性生命周期阶段,达到 state-of-the-art 的准确性,并提供归因分析以识别主导信号。
Open Source Software (OSS) projects follow diverse lifecycle trajectories shaped by evolving patterns of contribution, coordination, and community engagement. Understanding these trajectories is essential for stakeholders seeking to assess project organization and health at scale. However, prior work has largely relied on static or aggregated metrics, such as project age or cumulative activity, providing limited insight into how OSS sustainability unfolds over time. In this paper, we propose a hierarchical predictive framework that models OSS projects as belonging to distinct lifecycle stages grounded in established socio-technical categorizations of OSS development. Rather than treating sustainability solely as project longevity, these lifecycle stages operationalize sustainability as a multidimensional construct integrating contribution activity, community participation, and maintenance dynamics. The framework combines engineered tabular indicators with 24-month temporal activity sequences and employs a multi-stage classification pipeline to distinguish lifecycle stages associated with different coordination and participation regimes. To support transparency, we incorporate explainable AI techniques to examine the relative contribution of feature categories to model predictions. Evaluated on a large corpus of OSS repositories, the proposed approach achieves over 94\% overall accuracy in lifecycle stage classification. Attribution analyses consistently identify contribution activity and community-related features as dominant signals, highlighting the central role of collective participation dynamics.
研究动机与目标
- 将建模 OSS 可持续性视为多维、基于生命周期的结构,而非二元结果的动机。
- 开发一个分层、多阶段的预测管道,将时序 OSS 活动与工程化的表格特征整合。
- 应对严重的类别不平衡并提供对模型决策的可解释说明。
- 在大型 OSS 仓库语料库上评估该方法,并发布开源工具以提高可重复性。
提出的方法
- 构建 24 个月的月度 OSS 活动序列(20 个基础特征)以及一阶差分,并与来自最近 6 个月的表格特征拼接。
- 采用四阶段分层分类器:Stage-1 二元门控用于 contribMid,Stage-2 Heavy(Transformer + MLP)与 Light(MLP)模型,以及少数类的 Club-Fed Expert。
- 使用分层分组感知分割、焦点损失、类别权重、SMOTE 和标定进行训练;通过网格搜索优化超参数,并使用加权 Adam 优化器。
- 应用 SHAP 和 Integrated Gradients 进行可解释性分析;在类别层面聚合(贡献活动、问题与维护响应、社区动态、PR 质量控制、发布与演化)并进行时序归因分析。
实验结果
研究问题
- RQ1RQ1:是否可以从固定的 24 个月仓库活动窗口中,通过时序序列和工程化特征,准确预测 OSS 可持续性阶段?
- RQ2RQ2:哪些仓库活动类别对预测影响最大,且在不同建模组件中的归因如何变化?
主要发现
- 分层管道在测试集上达到 94.08% 的准确率和 79.42% 的平衡准确率。
- 各类别 F1:contribMid 0.9971,toy 0.9787,club 0.6440,federation 0.5387(宏平均 0.7896)。
- 混淆模式显示大多数错误发生在 club 与 federation 之间,而不是在彼此不相似的阶段之间。
- 贡献活动和社区相关特征在所有模型中主导预测。
- 时序信号与时序特征和表格特征的联合建模优于线性基线。
- 发布了全管道的开源实现以提高可重复性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。