arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.05237cs.LGcs.AI
收藏

基于LSTM网络的代码失效预测和模式提取

Code Failure Prediction and Pattern Extraction using LSTM Networks

Microsoft Corporation(微软公司)

Mahdi Hajiaghayi, Ehsan Vahedi

摘要:

在本文中,我们使用一种名为长短期记忆(LSTM)的循环神经网络的知名深度学习技术,来查找依赖遥测数据进行系统健康监控的应用程序中容易发生代码故障的会话。我们还使用LSTM网络来提取导致特定代码失败的遥测模式。对于代码故障预测,我们将遥测事件、遥测事件序列和每个序列的结果分别视为情感分析上下文中的单词、句子和情感。我们提出的方法能够处理大量的数据,并能自动处理代码故障预测中的边缘情况。我们利用贝叶斯优化技术来找到最佳超参数以及导致最佳预测性能的LSTM单元类型。然后我们介绍贡献者和阻塞者的概念。在本文中,贡献者是导致代码失败的事件集,而阻塞者是事件集,即使存在一个或多个贡献者,它们中的每一个也可以单独防止代码失败的发生。一旦提出的LSTM模型被训练好,我们就使用贪婪的方法来找到贡献者和阻塞者。为了开发和测试我们提出的方法,我们在第一步中使用合成(模拟)数据。合成数据使用用于代码故障的多个规则以及用于防止代码故障发生的多个规则来生成。经过训练的LSTM模型在检测合成数据中的代码故障时显示出超过99%的准确率。所提出的方法的结果优于经典的学习模型,如决策树和随机森林。使用所提出的贪婪方法,我们能够找到贡献者和阻塞的合成数据在90%以上的情况下,与顺序规则和模式挖掘算法的性能更好。

英文摘要:

In this paper, we use a well-known Deep Learning technique called Long Short Term Memory (LSTM) recurrent neural networks to find sessions that are prone to code failure in applications that rely on telemetry data for system health monitoring. We also use LSTM networks to extract telemetry patterns that lead to a specific code failure. For code failure prediction, we treat the telemetry events, sequence of telemetry events and the outcome of each sequence as words, sentence and sentiment in the context of sentiment analysis, respectively. Our proposed method is able to process a large set of data and can automatically handle edge cases in code failure prediction. We take advantage of Bayesian optimization technique to find the optimal hyper parameters as well as the type of LSTM cells that leads to the best prediction performance. We then introduce the Contributors and Blockers concepts. In this paper, contributors are the set of events that cause a code failure, while blockers are the set of events that each of them individually prevents a code failure from happening, even in presence of one or multiple contributor(s). Once the proposed LSTM model is trained, we use a greedy approach to find the contributors and blockers. To develop and test our proposed method, we use synthetic (simulated) data in the first step. The synthetic data is generated using a number of rules for code failures, as well as a number of rules for preventing a code failure from happening. The trained LSTM model shows over 99% accuracy for detecting code failures in the synthetic data. The results from the proposed method outperform the classical learning models such as Decision Tree and Random Forest. Using the proposed greedy method, we are able to find the contributors and blockers in the synthetic data in more than 90% of the cases, with a performance better than sequential rule and pattern mining algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑