This project evaluates the use of Support Vector Machine (SVM) with different kernel functions combined with Dynamic Time Warping (DTW) for classifying time series data.
We assess performance on datasets such as ECG, FordA, and HAR.
- Support Vector Machine (SVM)
- Dynamic Time Warping (DTW)
- Kernel Functions
- Time Series Classification
Evaluate the effectiveness of various DTW-based SVM kernels on different time series datasets.
Past research explored DTW-SVM combinations. Kernels like Gaussian, Polynomial, and custom DTW-based ones have shown varying success.
- Preprocessing – Normalize and balance data
- DTW Distance Calculation
- Kernel Application – Replace Euclidean distance with DTW in kernel
- SVM Training – With cross-validation
- Evaluation – Accuracy and confusion matrix
- Cauchy
- Gaussian
- Inverse Multiquadric
- Laplacian
- Logarithmic
- Rational Quadratic
- ECG – Heartbeat signal classification
- FordA – Engine fault detection
- HAR – Human activity recognition via smartphone sensors
- Accuracy
- Confusion Matrix
| Kernel | Hyperparameter | Time (s) |
|---|---|---|
| Cauchy | sigma=500000 | 213.1 |
| Gaussian | sigma=1 | 310.7 |
| Inverse MQ | c=0.4 | 346.7 |
| Kernel | ECG (%) | FordA (%) | HAR (%) |
|---|---|---|---|
| Cauchy | 89.0 | 60.5 | 70.0 |
| Gaussian | 76.0 | 45.0 | 57.1 |
| Inverse MQ | 85.0 | 60.0 | 80.3 |
| Laplacian | 83.0 | 53.5 | 82.7 |
| Logarithmic | 38.0 | 53.0 | 85.6 |
| Rational Quadratic | 84.0 | 54.0 | 87.0 |
- Inverse Multiquadric performs best across datasets.
- DTW improves SVM accuracy but increases computation time.
- FordA is harder due to signal variance.
- DTW is effective but slow; use FastDTW or parallelism for scalability.
- DTW kernels help with noisy, irregular-length time series.
Combining DTW with flexible SVM kernels significantly improves time series classification.
Rational Quadratic and Inverse Multiquadric performed best overall.
- Lei & Sun, Dynamic Time Warping in Kernel Machines
- Hofmann et al., Kernel Methods in ML
- Zhang, List of SVM Kernels
- Reyes-Ortiz, HAR Dataset
- Bagnall, FordA Dataset
- Kachuee et al., ECG Classification
- NCBI DTW Paper