EAAI Journal 2026 Journal Article
A novel attention-based long short-term memory latency prediction model for stream processing applications
- Zheng Chu
- Dongwen Chen
- Xinfeng Zhang
- Baozhu Li
- Jiong Yu
- Xusheng Du
- Jian Zhou
- Weiyun Li
The proliferation of the Internet of Things has led to a significant increase in the number and types of smart devices, resulting in an exponential growth of streaming data volume and types. Consequently, many fields have adopted stream processing application (SPA) to handle real-time processing scenarios. Practitioners and scientists across various domains rely on latency prediction of these applications, which is essential for performance analysis and proactive optimization. However, predicting the latency of SPAs remains challenging due to their diverse types and internal complexity. To accurately predict the latency, this paper explores related work extensively and investigates the directed acyclic graph characteristics of such applications. Three kinds of features (i. e. , application features, data features, and system features) are identified and summarized as major factors influencing latency. Furthermore, we propose and implement a artificial intelligence-based real-time prediction framework in Apache Flink, a popular stream processing system, for application latency prediction. This framework collects three types of real-time metrics, constructs features, and utilizes an attention-based long short-term memory recurrent neural network model to accurately predict latency at run-time. Experimental results from six benchmarks show that the proposed model accurately predicts latency using the identified features. More importantly, our model outperforms the state-of-the-art model in terms of prediction error and accuracy due to the proposed real-time framework and attention mechanism. Furthermore, our model can achieve high prediction accuracy for newly developed applications in a short time.