Abstract
In this paper, for the purpose of data centre energy consumption monitoring and analysis, we propose to detect the running programs in a server by classifying the observed power consumption series. Time series classification problem has been extensively studied with various distance measurements developed; also recently the deep learning based sequence models have been proved to be promising. In this paper, we propose a novel distance measurement and build a time series classification algorithm hybridizing nearest neighbour and long short term memory (LSTM) neural network. More specifically, first we propose a new distance measurement termed as Local Time Warping (LTW), which utilizes a user-specified set for local warping, and is designed to be non-commutative and non-dynamic programming. Second we hybridize the 1NN-LTW and LSTM together. In particular, we combine the prediction probability vector of 1NN-LTW and LSTM to determine the label of the test cases. Finally, using the power consumption data from a real data center, we show that the proposed LTW can improve the classification accuracy of DTW from about 84% to 90%. Our experimental results prove that the proposed LTW is competitive on our data set compared with existed DTW variants and its non-commutative feature is indeed beneficial. We also test a linear version of LTW and it can significantly outperform existed linear runtime lower bound methods like LB_Keogh. Furthermore, with the hybrid algorithm, for the power series classification task we achieve an accuracy up to about 93%. Our research can inspire more studies on time series distance measurement and the hybrid of the deep learning models with other traditional models.
Introduction
Data centers are massive energy consumers. To optimize for energy efficiency and maintain business continuity, operators need to know what their servers are actually doing. While "intrusive" monitoring (installing software on every server) works, it requires administrative access and raises privacy concerns. "Non-intrusive" monitoring—analyzing power consumption series—is more flexible but technically difficult. Power data is "noisy" and often incomplete; you might only have a small snippet of a program's execution. Furthermore, traditional time-series classification struggles because the same program might run slightly faster or slower at different times, shifting the patterns along the time axis.
Methodology
The proposed approach is a two-pronged hybrid model combining distance-based and model-based techniques.
Local Time Warping (LTW)
Traditional Dynamic Time Warping (DTW) is the "gold standard" for comparing time series because it can align sequences that are stretched or compressed. However, DTW is computationally expensive and commutative. The authors propose Local Time Warping (LTW), which uses a user-specified "warping index set" to compare points locally without complex dynamic programming. LTW is designed to be non-commutative, treating the test sample as the base and warping the training sample to match it, which the authors found beneficial for classification.
LSTM Neural Network
Long Short-Term Memory (LSTM) networks are utilized to capture long-term sequential patterns in the power data. Each input vector $x_t$ is encoded into an $m$-dimensional vector $h_t$, and the average over time steps is passed through a softmax layer for classification.
The Hybrid Model
The core innovation is combining the prediction probability vectors from a 1-Nearest Neighbor (1NN) classifier using the LTW metric and the LSTM network. By merging these probabilities, the model compensates for the individual weaknesses of each approach.
Experimental Setup
The researchers collected a real-world dataset from a data center, consisting of power sequences from 13 different types of programs, including Web server data and various MapReduce programs on Spark and Hadoop.
The raw data was processed into 3,200 overlapping sequences, each 200 time-slots long (representing 10 minutes of execution), to simulate "blind" testing where the start and end points of a program are unknown.
Results and Discussion
Experimental results demonstrate the superiority of the hybrid approach:
- LTW vs. DTW: The proposed LTW metric improved classification accuracy over standard DTW from approximately 84% to 90%.
- Hybrid Performance: The final LSTM/LTW hybrid model achieved an accuracy of approximately 93%.
- Baseline Comparison: Traditional classifiers like SVM, Random Forest, and Naive Bayes struggled, generally peaking at only around 60% accuracy.
- Complementary Strengths: The "union accuracy" (correct identification by either LSTM or LTW) reached 94-96%, confirming that the two models fail on different types of samples.
Conclusion
This study demonstrates that non-intrusive power series classification can be highly accurate when combining specialized distance metrics like LTW with deep learning models like LSTM. Future work will focus on multi-label classification to identify multiple programs running simultaneously in virtualized environments.
Summary updated