TS2IMG is a project that uses Gramian Angular Field method to transform time series data into images, which are then classified using Convolutional Neural Networks (CNNs) and other deep learning approaches.
This project explores the use of deep learning techniques for time series classification using images. The Gramian Angular Field method was used to convert time series data to images, allowing the application of image-based techniques to time series data. The UCI Human Activity Recognition Dataset was used for experimentation, which includes both raw signal data and statistical data extracted from the raw signal data.
Two methods were employed to combine the images generated from the time series data. The first method involved arranging the images in a 3x3 grid, while the second method involved stacking the images in the third axis. After all preprocessing steps were completed, Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks were trained on the dataset. Using more than one deep learning method allowed for comparison of the results.
This project aims to demonstrate the effectiveness of image-based techniques for time series classification and provides insight into the performance of different deep learning models.
- Python
numpy pandas pyts matplotlib tqdm tensorflow yaml attrdict
Dataset | Model | Average Accuracy (%) | Std. Dev. (pp*) |
---|---|---|---|
Signal Data |
LSTM | 90.36 | 1.48 |
BiLSTM | 89.65 | 2.57 | |
ConvLSTM | 90.38 | 1.19 | |
Statistical Data | BiLSTM | 85.37 | 2.14 |
Image Data (3X3 Grid) | CNN | 79.02 | 1.56 |
Image Data (Stacked) | CNN | 80.48 | 1.12 |
pp: Percentage Point
Metin Usta - metin.usta01@hotmail.com
Mehmet Yiğit - mehmet.yigit@std.yildiz.edu.tr
Project Link: https://github.com/MetinUsta/Time-Series-To-Image-Classification