discrete time series such as human sleep sequences:
global weighted dynamic time warping (gwDTW)
and stepwise deviation-based dynamic time warping
(sdDTW). Both versions penalize deviations from the
path of constant slope in the warping space, yielding
the efficiency advantages of DTW approaches based
on global constraints such as the Itakura parallelo-
gram or the Sakoe-Chiba band, while better account-
ing for local deviations. gwDTW adds a deviation-
based term to the standard DTW distance metric.
sDTW adds a deviation term into the local cost func-
tion that drives the DTW dynamic programming op-
timization itself, yielding an improved warping path
together with a similarity metric. Both gwDTW and
sdDTW lead to significantly better clustering results
than DTW in a classification task over labeled syn-
thetic semi-Markov data, as well as in unsupervised
clustering of human sleep data. The authors learned
of an interesting “salient feature” approach to con-
strained DTW (Candan et al., 2012) after completing
the work reported in the present paper. The salient
feature approach extracts features of the input se-
quences that are then used to define locally adaptive
constraints on the warping path. In future work, it
would be desirable to pursue a performance compar-
ison of the salient feature approach of (Candan et al.,
2012) with that of the present paper.
ACKNOWLEDGEMENTS
The authors thank the anonymous referees for com-
ments that helped improve the legibility of the paper,
and for making us aware of (Candan et al., 2012).
REFERENCES
Alvarez, S. A. and Ruiz, C. (2013). Collective probabilis-
tic dynamical modeling of sleep stage transitions. In
Proc. Sixth International Conference on Bio-inspired
Systems and Signal Processing (BIOSIGNALS 2013),
Barcelona, Spain.
Bianchi, M. T., Cash, S. S., Mietus, J., Peng, C.-K.,
and Thomas, R. (2010). Obstructive sleep apnea al-
ters sleep stage transition dynamics. PLoS ONE,
5(6):e11356.
Candan, K. S., Rossini, R., Wang, X., and Sapino, M.
L. (2012). sDTW: computing DTW distances using
locally relevant constraints based on salient feature
alignments. Proceedings of the VLDB Endowment,
5(11):15191530.
Chu-Shore, J., Westover, M. B., and Bianchi, M. T. (2010).
Power law versus exponential state transition dynam-
ics: application to sleep-wake architecture. PLoS
ONE, 5(12):e14204.
Clifford, D., Stone, G., Montoliu, I., Rezzi, S., Martin, F.-P.,
Guy, P., Bruce, S., and Kochhar, S. (2009). Alignment
using variable penalty dynamic time warping. Analyt-
ical Chemistry, 81(3):1000–1007.
Dijk, D. J. and Lockley, S. W. (2002). Invited review:
Integration of human sleep-wake regulation and cir-
cadian rhythmicity. Journal of Applied Physiology,
92(2):852–862.
Itakura, F. (1975). Minimum prediction residual principle
applied to speech recognition. IEEE Transactions on
Acoustics, Speech, and Signal Processing, 23(1):67–
72.
Jeong, Y.-S., Jeong, M. K., and Omitaomu, O. A. (2011).
Weighted dynamic time warping for time series clas-
sification. Pattern Recognition, 44(9):2231–2240.
Kishi, A., Struzik, Z. R., Natelson, B. H., Togo, F., and
Yamamoto, Y. (2008). Dynamics of sleep stage tran-
sitions in healthy humans and patients with chronic
fatigue syndrome. American Journal of Physiology-
Regulatory, Integrative and Comparative Physiology,
294(6):R1980–R1987.
M
¨
uller, M. (2007). Dynamic time warping. Information
retrieval for music and motion, pages 69–84.
Oates, T., Firoiu, L., and Cohen, P. R. (2001). Using dy-
namic time warping to bootstrap HMM-based cluster-
ing of time series. In Sequence learning: Paradigms,
algorithms, and applications, pages 35–52. Springer-
Verlag.
Ratanamahatana, C. A. and Keogh, E. (2004). Making time-
series classification more accurate using learned con-
straints. In Proceedings of SIAM International Con-
ference on Data Mining (SDM ’04), pages 11–22.
Sakoe, H. and Chiba, S. (1978). Dynamic programming
algorithm optimization for spoken word recognition.
IEEE Transactions on Acoustics, Speech and Signal
Processing, 26(1):43–49.
Wang, C., Alvarez, S. A., Ruiz, C., and Moonis, M.
(2014). Semi-Markov modeling-clustering of hu-
man sleep with efficient initialization and stopping.
In Proc. Seventh International Conference on Bio-
Inspired Systems and Signal Processing (BIOSIG-
NALS 2014), Barcelona, Spain.
Deviation-based Dynamic Time Warping for Clustering Human Sleep
95