Full text
Doutoramento em Gestão de Informação D octorate Program in Information Management NOVA Information Management School I nstituto Superior de Estatística e Gestão de Infor mação Uni versidade Nova de Lisboa DOCTORATE PROGRAM Information Management Applications of high-frequency telematics for driving behavior analysis Maria Inês Pastor Pereira da Silva A thesis submitted in partial fulfillment of the requirements for the degree of Doctor in Information Management November, 2021 Information Management School NOVA University Lisbon
Applications of high-frequency telematics for driving behavior analysis Copyright © Maria Inês Pastor Pereira da Silva, Information Management School, NOVA University Lisbon. The Information Management School and the NOVA University Lisbon have the right, perpetual and without geographical boundaries, to file and publish this dissertation through printed copies reproduced on paper or on digital form, or by any other means known or that may be invented, and to disseminate through scientific repositories and admit its copying and distribution for non-commercial, educational or research purposes, as long as credit is given to the author and editor. This document was created using the (pdf)L A T EX processor, based on the “novathesis” template[1], developed at the Dep. Informática of FCT-NOVA [2]. [1] https://github.com/joaomlourenco/novathesis [2] http://www.di.fct.unl.pt
To Fátima and Carlos.
Acknowledgements This dissertation was only made possible with the help and support of many people. I am grateful for all the guidance and constructive feedback my supervisor, Professor Roberto Henriques, gave me during the Ph.D. Program. Without his help, I would not have completed this work. Our discussions gave me important milestones and helped me keep my work on track. I also want to thank Professor Fernando Bação, Professor Paulo Rita, and Professor Marco Painho for the insightful seminars they provided. I learned a lot about how to do proper research and how to write and publish articles from them. In addition, I want to highlight how important the feedback and critique I received during these seminars was to me, not only from the teachers but also from my colleagues. Furthermore, I need to mention the comments I got from the anonymous researchers that reviewed my article and provided me with insightful suggestions. Last but not least, I want to thank my family. My parents were a constant support throughout my life. Their belief in me and their enthusiasm for my success made my life so much easier. My final acknowledgment goes to my partner, Paulo. He was always there throughout this journey, cheering me on, discussing ideas, and staying with me while I worked long hours in random coffee shops. He never complained about the time I had to dedicate to this thesis and was a constant source of motivation and support. ix
CONTENTS 3.5 Conclusion and future work ........................ 34 4 Article no. 2 - Exploring time-series motifs through DTW-SOM 39 4.1 Introduction ................................. 40 4.2 Related work ................................. 41 4.2.1 Motif Discovery ........................... 41 4.2.2 Self-organizing map ......................... 42 4.3 DTW-SOM .................................. 44 4.4 Evaluation .................................. 46 4.4.1 Experiment with the synthetic motif dataset ........... 46 4.4.2 Experiment with the GunPoint dataset .............. 48 4.4.3 Experiment with the UWaveGesture dataset ........... 50 4.5 Conclusion .................................. 54 5 Article no. 3 - TripMD: Driving patterns investigation via Motif Analysis 55 5.1 Introduction ................................. 56 5.2 Preliminaries ................................. 57 5.3 TripMD .................................... 60 5.3.1 Motif extraction ........................... 60 5.3.2 Motif summarization ........................ 65 5.3.3 Parameter analysis ......................... 67 5.4 Evaluation and discussion ......................... 71 5.4.1 Analyzing a single driver with TripMD .............. 72 5.4.2 Identifying driving behavior with TripMD ............ 75 5.5 Conclusion .................................. 78 6 Conclusion 79 6.1 Goals and motivation ............................ 80 6.2 Work overview ................................ 81 6.3 Limitations and future work ........................ 84 Bibliography 87 xvi
List of Figures 3.1 Three example motifs found in the motorway aggressive trip. They correspond to the first, second and fifth most relevant motifs, after pruning. Red and green points represent the original labels (computed using a threshold method) present in the UAH-DriveSet, where red marks indicate the beginning of a brake and green the beginning of an acceleration. ..... 32 3.2 Zoom-in on a motif extracted from the drowsy trip in the motorway route. The second subsequence was marked as a brake in the UAH-DriveSet and the Extended Motif Discovery (EMD) algorithm extracted it as a member of a motif. The first, although not being marked, could be also recognized as a brake by belonging to the same motif as the first subsequence. . . . . 33 3.3 Two example motifs found in the motorway aggressive trip (1st and 4th motif) and one example found in the motorway drowsy trip (2nd motif). Orange points represent the original labels present in the UAH-DriveSet (and computed using a threshold method), where the marks indicate the beginning of a turn. ............................... 35 4.1 Toy example of two different motifs, each with two highly conserved subsequences. .................................... 40 4.2 Example of the time-alignment between an input pattern and an unit computed by the Dynamic Time Warping (DTW) algorithm. The black points are the actual time-series observations while the red and dashed lines represent the alignment matching returned by the DTW algorithm. ..... 46 4.3 Plot with three examples of generated motif centers, one for each cluster. The orange belongs to the low-middle-high cluster, the blue to the highmiddle-low cluster and the red to the middle-middle-middle cluster . . . 47 4.4 U-matrix and Winner Matrix obtained from the Dynamic Time Warping Self-Organizing Map (DTW-SOM) trained on the synthetic motifs and using an anchor initialization. ............................. 48 4.5 Sequence values of the units after training the DTW-SOM with synthetic motifs. The position of each unit’s plot in the grid is consistent with its position in the network. Thus, the U-Matrix and the Winner matrix plots are consistent with this grid plot. ....................... 49 xvii
LIST OF FIGURES 4.6 Right plot: original sequences from GunPoint’s train set. The colors indicate the different labels, "Gun"and "Point". Left plot: first 500 observations of the time-series built as a concatenation of the fixed-size sequences from GunPoint’s train set. ............................... 49 4.7 U-matrix and Winner Matrix obtained from the DTW-SOM trained on the motifs computed from the concatenated time-series of GunPoint sequences. 50 4.8 Sequence values of the units after training the DTW-SOM with motifs from the GunPoint dataset. The position of each unit’s plot in the grid is consistent with its position in the network. Thus, the U-Matrix and the Winner matrix plots are consistent with this grid plot. ................ 51 4.9 Right plot: Gesture vocabulary and related labels used in the UWaveGesture dataset, as presented in [96]. Left plot: Positioning of the accelerometer axis in the Wii remote. ............................. 51 4.10 Blue plots: Original sequences sampled from UWaveGesture’s train set, split by the gesture class. Orange plot: First 1600 observations of the time-series built as a concatenation of the fixed-size sequences from UWaveGesture’s train set ...................................... 52 4.11 U-matrix and Winner Matrix obtained from the DTW-SOM trained on the motifs computed from the concatenated time-series of UWaveGesture sequences. ..................................... 53 4.12 Sequence values of the units after training the DTW-SOM with motifs from the UWaveGesture dataset. The position of each unit’s plot in the grid is consistent with its position in the network. Thus, the U-Matrix and the Winner matrix plots are consistent with this grid plot. ........... 53 5.1 Simple example of the Variable SAX representation process. ........ 62 5.2 Simple example of the motif search process for a single pattern word BC.65 5.3 Motif extracted from the toy example using the default parameters. It includes the lateral and longitudinal acceleration values of the entire toy example. The two subsequences that belong to the motif are identified by the shaded area. ................................. 68 5.4 Motifs extracted from the toy example with varying default letter sizes. The subsequences that belong to the motifs are identified by the shaded area. 69 5.5 Motifs extracted from the toy example using a minimum pattern size 1. One of the motifs corresponds to a pattern size of 1 and the other corresponds to a pattern size of 2. The subsequences that belong to the motifs are identified by the shaded area. ............................... 70 5.6 Motif extracted from the toy example using a motif radius of 0.1. The subsequences that belong to the motif are identified by the shaded area. . 70 xviii
LIST OF FIGURES 5.7 Lateral and longitudinal acceleration of the DTW-SOM’s units. They were obtained by applying TripMD to the trips of a single driver from the UAH- DriveSet. Units are placed in the DTW-SOM two-dimensional grid. . . . 73 5.8 U-matrix and Winner Matrix of the DTW-SOM. The model was trained on the motifs extracted from the trips of a single driver from the UAH-DriveSet. 74 5.9 Driving behavior rates for each DTW-SOM unit. For each unit, it shows the percentage of motif subsequences that come from each driving behavior. 74 5.10 Behavior rates for the DTW-SOM units. For each unit, it shows the percentage of motif subsequences that come from each driving behavior. The three plots at the top contain the rates of the training trips while the three plots at the bottom contain the rates of the testing trips. ............. 76 5.11 Summary statistics of the each testing trip’s behavior scores obtained with 1000 samples with replacement. The points encode the average scores while the errors bars encode the standard deviation. ............ 77 xix
List of Tables 2.1 Examples of specific driving styles, underlying motives and relations with accident risk ................................... 11 2.2 Overview of maneuver detection methods .................. 15 2.3 Summary of main representation methods for time series ......... 18 2.4 Summary of similarly measures tested by Wang et al. [43] and Serrà and Arcos [52] ..................................... 19 3.1 Summary results of the analysis in the longitudinal acceleration ..... 31 3.2 Summary results of the analysis in the lateral acceleration ......... 34 5.1 Behavior scores for each testing trip. The score of the predicted behavior for each trip is highlighted in bold. The column named Behavior contains the real behavior of the trip. .......................... 76 xxi
List of Algorithms 1 Self-Organizing Map (SOM) Sequential Training ............. 43 2 Motif extraction ................................ 61 3 Variable SAX (Variable SAX (VSAX)) .................... 62 4 Variable SAX break-points computation .................. 63 5 Motif discovery from a word pattern .................... 64 6 Motif pruning ................................. 66 xxiii
Acronyms ACC Adaptive Cruise Control ADAS Advanced Driver Assistance Systems APCA Adaptive Piecewise Constant Approximation BMU best-matching unit CA Chebyshev approximation DFT Discrete Fourier Transformation DTW Dynamic Time Warping DTW-SOM Dynamic Time Warping Self-Organizing Map DWT Discrete Wavelet Transformation ECG electrocardiography EMD Extended Motif Discovery IPLA Indexable Piecewise Linear Approximation LARFDSSOM Local Adaptive Receptive Field Dimension Selective Self-organizing Map MDL Minimum Description Length NDS Naturalistic Driving Studies OBD On-Board Diagnostics PAA Piecewise Aggregate Approximation PAYD pay-as-you-drive PHYD pay-how-you-drive SAE Society of Automotive Engineers SAX Symbolic Aggregate approXimation xxv
CHAPTER 1. INTRODUCTION • How can we summarize the extracted maneuvers in a space-efficient visualization for further analysis? • Can we use the extracted maneuvers to get insights into the driving behavior of a single driver? 1.5 Contributions The times-series data mining community is a large area of research and contains numerous tools to analyze time-series data. When researching this field, one tool seemed to fit particularly well the maneuver detection task, namely motif detection. In short, a motif is a subsequence of a time series that repeats itself throughout that same time series. For instance, a single heartbeat in an electrocardiography (ECG) recording would be a motif since the same temporal pattern is repeated throughout the entire ECG time series. Even though this was not yet fully tested, we hypothesize that a specific maneuver would be a motif in a collection of trips of the same driver. The core idea is that a driver would be consistent in how he performs recurrent maneuvers such as turning or overtaking and, thus, one can detect these maneuvers from the time series of acceleration recordings using motif detection approaches. Before going into detail about the direction taken, it is important to note that throughout this work, we use a naturalistic driving dataset published by a group of researchers from Spain. It is called the UAH-DriveSet [26] and it contains trip recordings from six different drivers in two specific routes in Madrid, Spain. The authors asked each driver to repeat two predefined routes simulating three different behaviors, namely, normal, aggressive and drowsy. During the trips, they collected both raw and processed signals using the DriveSafe app [27,28]. The dataset also contains video recordings taken from the smartphone, which can be used to validate results. In our path to explore motif detection approaches to tackle the problem of maneuver extraction from telematics data, we start by investigating whether motif detection is indeed capable of extracting meaningful maneuvers from acceleration data (Chapter 3). In particular, we implement a modified version of a classical motif detection algorithm, apply it to the UAH-DriveSet and perform a systematic exploration of the resulting motifs. Here we conclude that the motif detection algorithm is capable of extracting simple maneuvers such as accelerations, brakes, and curves, but also more complex maneuvers, such as lane changes and overtaking maneuvers. In turn, these results validate our claim that motif discovery can indeed be used to extract maneuvers. In this initial work, we also note that the number of motifs extracted from the UAH-DriveSet trips is too large to explore manually. Thus, in Chapter 4, we propose a 6
1.5. CONTRIBUTIONS summarization algorithm, DTW-SOM, to cluster the motifs extracted by any desired motif discovery algorithm. DTW-SOM is an adaptation the SOM algorithm, a wellknown feature reduction and visualization algorithm). In order to work for time-series subsequences, with possibly variable lengths and multiple dimensions, the original SOM algorithm was changed to use the DTW distance as its similarity metric and two specific initialization routines for the SOM network were proposed. We apply DTWSOM to three different datasets (not related to telematic data) and conclude that our method is capable of extracting relevant information from a set of motifs and display it in a visualization that is space-efficient. Finally, in Chapter 5, we put the work done in the previous two chapters together and propose TripMD, a system that extracts the most relevant driving patterns from sensor recordings (such as acceleration) and provides a visualization that allows for an easy investigation. We test our system using the UAH-DriveSet dataset and show that it can extract a rich number of driving patterns from a single driver that are meaningful to understand driving behaviors. Interestingly, we also note that TripMD can be used to identify the driving behavior of an unknown driver from a set of drivers whose behavior we know. 7
Chapter 2 Literature Review 9
CHAPTER 2. LITERATURE REVIEW 2.1 Driving behavior and styles 2.1.1 Human driving What exactly is driving behavior? Ever since cars became ubiquitous, driving and road safety have been widely researched and, in the last decades, many advances have been made towards a clear understanding of the factors and behaviors that explain road accidents. Even though there is a common belief that the actions a driver takes have an impact on his accident risk, literature is still fragmented between different fields (e.g. transportation and actuarial sciences). Therefore, it is very difficult to find generally accepted concepts and frameworks across the literature. After an in-depth review of the literature related with driving behaviors and road safety, Sagberg et al. [29] tried to address this issue by proposing a high-level framework aimed at conceptualizing and understanding what they called driving styles. In particular, they defined driving style as "a habitual way of driving, which is characteristic for a driver or a group of drivers". Although seeming somewhat straightforward, this definition raises an interesting point. The term habitual way of driving suggests that a driving style is a set of behaviors a driver shows consistently across varied situations and thus we can look at the issue of driving styles from two perspectives. On one hand, it is important to rate driving styles according to accident risk since we are identifying which groups of drivers are consistently riskier. On the other hand, it could be also interesting to recognize when a driver with a low-risk driving style presents irregular behaviors that are outside of his driving style as it could lead to an increased risk in respect to the low-risk driving style. Sagberg et al. [29] further synthesized previous research by categorizing driving styles and presenting examples of indicators and measures that were used in the literature. They began by differentiating between specific and global driving styles. The first comprehends single behaviors, such as speeding or jerky driving, and can be measured by few indicators. Alternately, global driving styles correspond to general styles manifested by more than one specific driving style and which can only be understood by a variety of indicators. As an example, the most common global driving style is aggressive driving, which can be perceived by specific behaviors such as speeding, tailgating and excessive honking. In relation to specific driving behaviors, which tend to be easier to define, Sagberg et al. [29] divided them into six categories, namely, longitudinal control, lateral control, gap acceptance, errors and violations, visual behavior and, finally, other. Table 2.1 presents the most common examples of specific driving styles for each category, provides a summary of potential motives behind each style (as presented by Sagberg et al. [29]) and summarizes the main conclusions found in the literature relating those styles and accident risk. 10
2.1. DRIVING BEHAVIOR AND STYLES Table 2.1: Examples of specific driving styles, underlying motives and relations with accident risk Category Specific driving styles Possible motives Relation with accident risk Longitudinal control Speeding and hash acceleration Expediency, group pressure, sensation seeking and inattention Good base of research confirming that, in general, high speeds are associated with high accident risk. Alternately, Waard et al. [30] concluded that, when merging at lower speed, elderly drivers would experience higher risk. Jerky driving Expediency, aggression and inattention Based on jerk, Desai and Haque [31] built the “spikiness index” to quantify alertness. Murphey et al. [18] used information from the jerk profile to classify drivers. Tailgating Expediency and aggression Sagberg et al. [29] reported a finding by Bukasa and Risser (1985) where “too short distance to car ahead” was positively correlated with recorded accidents. According to MacAdam et al. [32], tailgating can be also used as an indicator of aggressiveness. Lateral control Variable lateral position Expediency and inattention This style is mainly used to complement speeding behaviors. Speeding in curves Expediency, group pressure, sensation seeking and inattention This style is mainly used to complement speeding behaviors. Additionally, it is a theoretically good indicator of accident risk, mainly for low-friction roads. Gap acceptance Short gaps in crossings or over-takings Expediency Literature focuses on this style’s relation with age and aggressiveness. Visual behavior Narrow eye fixating Inexperience and impairment Literature focuses on this style’s relation with age and experience Engagement in secondary tasks Group pressure Dingus et al. [33] reported that the risk of engaging in distracting activities was two times higher than the baseline. Errors and violations Violating traffic lights, stop signs, etc. Expediency, group pressure and inattention Based on policy reports, Junger et al. [34] reported a strong association between accident risk and involvement in traffic crime. Other Inappropriate honking Aggression Literature focuses on this style’s relation with aggressiveness Until now, driving styles related with speeding are the most researched, which is not surprising. In fact, many papers point a clear relationship between this style and accident risk, with high speed profiles usually associated with high accident risk. Nevertheless, as Sagberg et al. [29] pointed out, speed alone cannot explain all aspects of accident risk and the relationships between other driving styles and accident risk need to be further researched. Early works by Robertson et al. [35] suggested that longitudinal and lateral acceleration could be used to build an "acceleration signature"aimed at characterizing driving styles and identifying drivers. The main hypothesis here was that safe and skilled 11
CHAPTER 2. LITERATURE REVIEW drivers are not prone to show extreme acceleration, in other words, high acceleration signatures could detect both sensation seeking and unskilled drivers. On a similar trend, Wåhlberg [36] built on past research by proposing the concept of driving celeration behavior as an overall predictor of accident risk. The author defined it as "the sum or average of all (absolute) accelerations and decelerations (changes in speed) made by a vehicle, in any direction on a two-dimensional plane"and suggested that all behaviors which result in speed variations (namely speed, close following, braking and steering control actions) contribute to the overall driving celeration. Both approaches are quite interesting because instead of measuring specific driving styles separately, the authors propose general indicators which incorporate many styles. It is interesting to note that most categories proposed by Sagberg et al. [29] can be detected using acceleration and velocity data. This means that a simple high-frequency telematics device that only collects these data can already provide meaningful insights into driving behavior. Recent studies have looked more closely at inattentive behaviors. According to Dingus et al. [33], crash causation has experienced a shift, with distraction being a fundamental factor for road safety. On a similar note, Dozza [37] concluded that some behaviors associated distraction, namely attendance to secondary tasks and eyes-off- road, reduced significantly drivers’ response time in near-crash settings. 2.1.2 Autonomous systems Another exciting area in driving behavior research is the analysis of how self-driving cars operate (both in real and simulated conditions) and how human drivers interact with automated driving systems. Even though the idea of autonomous cars has existed for a long time, the switch from a fully human-operated road to a fully machine-operated road is a gradual process. One of the most used taxonomies for describing this gradual change is one published by the Society of Automotive Engineers (SAE). In their report [38], the SAE sets six levels of driving automation, namely: • Level 0 - No Driving Automation • Level 1 - Driver Assistance • Level 2 - Partial Driving Automation • Level 3 - Conditional Driving Automation • Level 4 - High Driving Automation • Level 5 - Full Driving Automation 12
2.1. DRIVING BEHAVIOR AND STYLES In level 0, cars are controlled at all times by the human driver. Although there may be some auxiliary systems, such as an emergency braking system, the driving is always done by the driver since these systems do not technically perform driving functions. In levels 1 and 2, we start seeing some automation, however, the driver is still in charge of monitoring the road and making most decisions. A classical level 1 system is the Adaptive Cruise Control (ACC), which was introduced in the 1990s. These systems are designed to maintain road safety by automatically keeping a safe distance from the car in front and ensuring that the car travels within the speed limits. In other words, the system would change the car’s speed without the driver’s intervention. On the other hand, a level 2 system is capable of performing multiple automation tasks, such as controlling both the steering and the speed of the car. Here the automation falls short of self-driving since the driver is still in the seat and must take control of the car in response to changes to the environment. A common example of level 2 are the Advanced Driver Assistance Systems (ADAS). ADAS were introduced to address some of the road accidents caused by human error. Even though not all of the systems include the full list, ADAS include a wide range of safety applications, including, pedestrian detection and avoidance, automatic emergency braking, blind spot detection, traffic sign recognition, and lane departure warning/correction. With driver inattention being an ever-increasing source of road accidents (as we discussed in the previous subsection), these systems had the potential of improving road safety by automating some important safety mechanisms. However, previous work investigating how human drivers interact with level 1 and 2 systems leads to the conclusion that more automation in cars may cause a reduction in drivers’ attention, which in turn contributes to an impaired driver performance during system failures [39,40]. Interestingly, this finding highlights that driving automation does lead to unintended (and sometimes unexpected) effects. And this is one way that driving behavior analysis can help with the shift to a road with fully autonomous cars. In the cases where humans still need to make driving decisions and interact with autonomous systems, understanding driving behavior will help manufacturers and policy makers improve the systems to avoid the pitfalls of driver inattention. What about vehicles with higher levels of automation that do not require as much driver intervention? From level 3 onwards, the automation systems start to make some of the driving decisions based on the environment they are experiencing. However, in level 3, the system cannot intervene in unexpected circumstances or the case of system failures. Thus, in level 3, even though the car will drive most of the time, the driver still needs to be in the seat and maintain awareness of the environment to act in unexpected situations. Using a simulation environment, Jamson et al. [41] analyzed how drivers responded in a highly automated system versus a manual system. They concluded that 13
CHAPTER 2. LITERATURE REVIEW participants experiencing high automation were less prone to retake control of the car for certain tasks such as overtaking. They also observed that safety margins in car following were improved in light traffic conditions. However, in the scenario of high automation, drivers were more distracted by in-vehicle entertainment tasks than the drivers in manual driving, which led to a decreased attention to the road. On a similar note, Merat et al. [42] states that level 3 automation systems do lead to a decrease in drivers’ attention and slower response times to retake control of the car, which could be an issue in the case of a system failure. Finally, in levels 4 and 5, the system is capable of intervening if anything unexpected happens or if there is a system failure. The difference between the two is that in level 4 the drive still has the option of overriding the system’s decisions, while in level 5 humans are merely passengers and cannot overriding decisions. At these levels, understanding the driving behavior of a human driver is not as important since the car will do all the driving. However, analyzing the driving performance of these systems will still be relevant as a means of diagnosing problems and improving them. 2.1.3 Maneuver detection In the previous two subsections, we looked into driving behavior in general terms, either in the case when a human driver is fully in control or when there is some sort of automation. However, we have not yet discussed how to identify driving behavior from telematics data. From the available research, many authors have proposed solutions for the task of identifying maneuvers from high-frequency trip recordings. In general terms, all methods can be split into two main strategies. Table 2.2 contains a summary of previous work on this topic and maps each article to the respective strategy. The first strategy, which we refer to as fixed thresholds, involves the use of predefined thresholds set on the acceleration and/or other inertial measurements to define when each maneuver begins and ends. For instance, Paefgen et al. [13] defined thresholds on the lateral acceleration to identify left and right turns, and used threshold on the longitudinal acceleration to detect acceleration and braking maneuvers. On a slightly different approach, Johnson and Trivedi [12] computed a simple moving average of the rotational energy of smartphone sensors and utilized thresholds on this metric to identify a general maneuver. The fixed thresholds strategy has the benefit of being easy to implement, easy to interpret, and fast. However, since the choice of the thresholds is fundamental to the detection, these methods require fine-tuning for each specific dataset and are inflexible to changes in the data. In the second strategy, the authors use rolling windows to split the trip recordings. More specifically, each trip is divided into fixed-sized time sequences that can 14
2.1. DRIVING BEHAVIOR AND STYLES Table 2.2: Overview of maneuver detection methods Strategy Method specifics Reference Fixed Use of rotational energy to detect different maneuvers [12] thresholds Use of lateral acceleration to detect turns and longitudinal acceleration to detect braking and acceleration [13] Use of rotational energy to detect different maneuver [15] Combination of acceleration and other signals to detect different maneuvers [14] Rolling Window sizes of 15, 9, 6 and 3 seconds [18] windows Window sizes from 0.5 to 5 seconds [21] Window sizes of 20, 50 and 100 time steps [22] Window sizes of 0.2 seconds [23] Small size (5-30 seconds) and medium size (1-30min) windows with no overlap [17] Window sizes from 2 to 7 seconds [24] Windows with 64 time steps and with 50% overlap [16] Windows with 7 time steps [20] Window sizes from 0.5 to 5 seconds, with no overlap [19] have some level of overlap, and then each sequence is fed into a supervised learning algorithm that predicts which maneuver is being performed if any. It is important to note that some authors do the prediction directly on the rolling windows while other introduce feature extraction step before the prediction. Xie et al. [19] test different variations of this second strategy. Particularly, the authors evaluate various feature extraction methods in the task of detecting maneuvers such as brakes, turns, and accelerations. In the definition of the rolling windows, they used several window sizes, but always without overlap. The conclusion there was that the window size is very important for the overall detection performance and that different maneuvers are better detected using different window sizes. In addition, they suggest the use of an "adaptive window sizing method"to address this. This work highlights one of the main disadvantages of the rolling windows strategy, namely, the inflexibility of the window size. The degree of window overlap is another relevant parameter that authors treat differently. For instance, Saleh et al. [16] built windows from inertial sensors and classified them as aggressive, normal, or drowsy using a stacked-LSTM model. Here they used windows of 64 time-steps and a 50% overlap. In contrast, Weidner et al. [17] used windows of acceleration and velocity with no overlap, computed features from those windows, and fed them to a classifier. The reason why there are very different approaches to the overlap parameter in the literature is that there is no obvious setting that works best. If no overlap is used, there is no guarantee that each maneuver will be contained a single window. In other words, the windows will likely split some maneuvers and information will be lost as a consequence. However, increasing the level of overlap comes with its issues. 15
CHAPTER 2. LITERATURE REVIEW trivial matches. There are a few efficient implementations of the MP, either approximate or exact, and, once the MP is computed, extracting similarity-based motifs is trivial. In addition to the speed-up strategy, the other essential component of any motif detection algorithm is the choice of the distance function. In other words, how does the algorithm measures the distance between two subsequences? Most authors use the Euclidean distance [53] or the DTW distance [55], which were discussed in subsection 2.2.2. Finally, motif detection algorithms can be further divided into two groups, depending on the dimensionality of the time-series. The simplest case is to find motifs in one-dimensional time-series. However, for some use-cases, the time-series contain more dimensions, which requires algorithms that can find multidimensional motifs. To solve the multi-dimensionality problem, different authors proposed varied approaches, ranging from using dimensionality reduction techniques coupled with a one-dimensional motif detection algorithm [66] to applying a motif detection algorithm to every dimension independently and looking for co-occurrences to extract the multidimensional motifs [70,71,72,73]. 22
Chapter 3 Article no. 1 - Finding maneuver motifs in vehicle telematics This chapter contains the first article of the thesis. This article was published in the journal Accident Analysis & Prevention and can be accessed at https://doi.org/10. 1016/j.aap.2020.105467. The main contribution of the article is to validate our hypothesis that motif detection cab be used to detect maneuvers and other driving patterns from high-frequency telematic data. In particular, • We review the main algorithms to detect time-series motifs and do a critical analysis on their feasibility for detecting maneuvers. • We make our own implementation of one of the motif detection algorithms. • We explore the relationship between the motifs from the UAH-DriveSet dataset and the respective maneuvers being performed. 23
CHAPTER 3. ARTICLE NO. 1 - FINDING MANEUVER MOTIFS IN VEHICLE TELEMATICS 3.1 Introduction Driving behavior has a great impact on road safety. According to Dingus et al. [33], accident causation has experienced a shift, with driver-related factors being a fundamental factor for road safety. On a similar study, Dozza [37] found that some behaviors associated with distraction, such as attendance to secondary tasks and eyes-on-road, reduce significantly drivers’ response time in near-accident settings and, therefore, distraction and inattention are a major factor in traffic accidents. On the other hand, because data acquisition systems such as smartphones or OBD devices are easier to access and data is cheaper to store and process, researchers have the opportunity of using vehicle telematics to better understand driving behaviors and the factors contributing to car accidents [11]. Driving behavior analysis also has impact for practitioners. In the insurance market, driving behavior has been used through the implementation of UBI [9]. These schemes rely on collecting continuous streams of cars’ sensor data on single customers and using that data to assess their driving behavior and provide discounts on the premiums. Other applications include fuel consumption optimization, fleet management and evaluation of self-driving cars’ performance. When tackling the driving behavior problem, it is common to focus on maneuvers. The exact maneuvers being performed during a trip and the way they are being performed is very informative of the driving behavior of the driver. In this context, the question of how to use telematics to correctly identify and compare maneuvers needs to be addressed. Previous research has dealt this issue through two main strategies, namely, 1) using fixed thresholds in inertial measurements (e.g. acceleration or rotational energy) to define the start and end of specific maneuvers or 2) using features extracted from rolling windows of sensor data (e.g. velocity and acceleration) in a supervised learning model to detect maneuvers. While the first method cannot adapt to small fluctuations in the signal and requires fine-tuning, the second requires a dataset with labels indicating where the maneuvers appear and cannot identify maneuvers with different lengths in time. Having in mind the need for an adaptable method that can detect maneuvers without the need of labels, we sought to investigate a type of methods created in the timeseries data mining community that can bring insights into the maneuver detection use-case, namely, the algorithms for detecting time-series motifs. Particularly, after a review of the available algorithms for motif detection, we made our own implementation of a specific algorithm, applied it to a publicly available naturalistic driving dataset and explored the relationship between the extracted motifs and maneuvers. The rest of the paper is organized as follows - Section 2 includes a review on the methods for identifying driving behavior with telematic data and explores the field of time-series motif detection algorithms, Section 3 presents the specific algorithm used for this paper and explains the modifications added to better fit this use-case, Section 24
3.2. STATE OF THE ART 4 summarizes the main results and the fifth and final section concludes the paper and opens the path for future research. 3.2 State of the art 3.2.1 Driving behavior in telematic data Identifying driving behavior or detecting maneuvers high-frequency trip recordings is not a straightforward task and many authors proposed some ways of tackling this problem. Nevertheless, most papers can be aggregated into two main strategies - fixed thresholds [12,13,14,15] on inertial variables and rolling windows [16,17,18,19,20, 21,22,23,24]. In the fixed thresholds strategy, authors set specific thresholds on acceleration or other inertial measurements in order to define the beginning and end of maneuvers. These maneuvers are then used as input to the driving performance algorithm. As an example, Paefgen et al. [13] defined four types of maneuvers by specifying thresholds on lateral acceleration (for the left turn and the right turn) and on longitudinal acceleration (for forward acceleration and for braking). In another paper, Johnson and Trivedi [12] applied a simple moving average on the rotational energy derived from smartphone’s sensors and defined a specific interval to set the beginning and end of a maneuver, independently of its type. These types of approaches have the advantage of being easy to implement, lightweight and interpretable. However, since the choice of the thresholds is essential to the detection of maneuvers, these methods require fine-tuning for each specific dataset and are inflexible to changes in the data. The second type of strategies involves the use of rolling windows, in which the trip is divided into fixed-sized time windows that can have some level of overlap. Then, each window is used as input to a supervised model that classifies it as a specific maneuver. In this strategy, the window size and the percentage of overlap are important parameters that need to be set beforehand. Saleh et al. [16] built windows from inertial sensors and classified them as aggressive, normal or drowsy using a stacked-LSTM model. Each window had 64 time steps and had a 50% overlap. On a different direction, Xie et al. [19] compared three feature extraction methods for identifying various maneuvers such as braking, turning and acceleration. They also used rolling windows for splitting the trips and they tested different window sizes with no overlap. The authors state that the window size is very relevant to the classification performance and that the optimal size can vary depending on the type of maneuver, which leads to the conclusion that an "adaptive window sizing method"would be better suited. Thus, again, the inflexibility of the window size is a disadvantage in this method as well. Another issue with the rolling windows method is the overlap parameter. If no overlap is used, then the way a trip is split may not be optimal since a window can also split a single maneuver and information may be lost. On the other hand, using 25
CHAPTER 3. ARTICLE NO. 1 - FINDING MANEUVER MOTIFS IN VEHICLE TELEMATICS the maximal overlap (i.e., moving the window a single time step) comes with its own problems. In their paper, Keogh and Lin [25] argued that clustering time-series subsequences is meaningless when rolling windows are used to build the subsequences. In particular, they state that "clusters extracted from these time series are forced to obey a certain constraint that is pathologically unlikely to be satisfied by any dataset, and because of this, the clusters extracted by any clustering algorithm are essentially random". It is important to note that Saleh et al. [16] used an 50% overlap with great success, which seems to validate the use of rolling windows. However, the authors used a supervised approach and Keogh and Lin [25] only argues against using rolling windows in unsupervised methods. Nevertheless, building high-frequency labeled datasets for driving behavior is quite laborious and requires a lot of resources, which is evident in the extremely low number of labeled datasets available to researchers. Thus, and since the possibility of using unsupervised or semi-supervised methods is quite desirable, for this specific problem, using rolling windows is not the optimal approach. The paper from Keogh and Lin [25] not only proves the point of the meaninglessness of clustering rolling windows but also proposes a solution, motif-based clustering. According to the authors, time-series motifs are over-represented subsequences in a time-series. The concept of motifs was first introduced in the genetics research as sequences of amino-acids in the DNA with biological significance [67] and, since then, the field of motif discovery for time-series has been receiving a lot of attention from the data mining community. Keogh and Lin [25] proposes to use a motif detection algorithm to find the set of motifs with the highest representation in the original time-series and then to apply the clustering algorithm directly to the motifs. Therefore, in this paper, we propose to use a motif detection algorithm in inertial measurements to extract maneuvers from a trip. In other words, our main hypothesis is that over-represented segments of inertial time-series are highly connected to maneuvers and, by looking at the most relevant motifs for a trip, we will be able to get insights on the maneuvers performed during that trip. In the next subsection, we will explore the motif discovery task, taking into consideration the specific requirements of the maneuver detection use-case. The method needs to be flexible enough to detect maneuvers with variable sizes, which implies that the motif detection algorithm needs to be able to extract variable-length motifs. 3.2.2 Motif discovery overview Even though the concept of motifs relates to over-represented time-series segments, the exact definition of the most relevant motifs varies slightly among authors and areas of application. Mueen [68] states that there are two main definitions, namely a similarity-based and a support-based. In the first, the motifs can be ordered based on the similarity of the segments that belong to the motif, while the second orders motifs based on the number of repetitions of the motif throughout the time-series. Thus, 26
3.2. STATE OF THE ART the similarity-based definition results in highly similar motifs and the support-based definition results in highly frequent motifs. Additionally, there is some constrains which the time-series segments belonging to a motif must meet [66]. The behavior constrain introduces the idea that segments in a motif should present the same general behavior. Note that, depending on the application, distortions such as noise or time and amplitude shifts may be accepted [67]. The distance constrain goes a bit beyond by stating that all motif’s segments need to have a distance smaller than a predefined radius R to the center of the motif (i.e., the segment that represents that motif). This radius is a very important parameter in any motif detection algorithm and it needs to set beforehand. Finally, the non-overlapping constrain sets that motif segments cannot overlap in time, which avoids what Lin et al. [65] refers to as trivial matchings. There are also some motif detection use-cases in which one is not interested in finding the single most important motif, but instead the k most important motifs or, as referred in the literature, the k -motifs [65]. Put simply, based on the desired motif definition, one can order the entire set of motifs found with a certain algorithm and then extract the first k ordered motifs. However, in order to avoid extracting motifs with overlapping members, these motifs have to meet a distance constrain, namely, all the pairs of motif’s representative (or the centers) need to have a distance higher than 2R, where Ris the radius discussed in the previous paragraph. Independently of the exact definition, motif discovery is a computational intensive task as it involves comparing all possible pairs of time-series subsequences. The most prevailing strategy to speed this search is to use a low dimensional representation of the original time-series in which the distance of subsequences in the original representation is approximately maintained [68]. This way, one is able to extract motif candidates in the low-dimensional representation (which is more efficient than use the original representation) and simply filter the candidates based on the real distance in the original representation. The most used representation for motif detection is the SAX, which transforms sliding windows of the original time-series into discrete sequences of characters [44]. Since each sliding window is encoded with a predefined number of characters, the continuous time-series is broken into a list of fixed-sized sequences of characters (or words). Another common approach is to used spectral representations such as the DFT, the classical representation of a time-series in the frequency domain [45]. Another important component of motif discovery is the distance used to compare time-series segments. Most papers use either the Euclidean distance [53] or the DTW [55]. While the first is very efficient and thus allows for a fast comparison of segments, the second has the advantage of allowing to compare segments with different lengths and with time distortions by computing the optimal alignment in time of the two time-series that are being compared. Motif discovery in time-series started with the fixed-length motif problem, where 27
CHAPTER 3. ARTICLE NO. 1 - FINDING MANEUVER MOTIFS IN VEHICLE TELEMATICS the goal was to find motifs with a predefined length. However, as stated in the introduction, we are interested in finding motifs with no predefined length and even allowing segments from the same motif to have different lengths. Therefore, because the fixed-length motif discovery is too restrictive for this use-case, we will need to use variable-length motifs. According to Torkamani and Lohweg [67], there is a considerable set of papers that address the variable-length problem by applying a fixed-length algorithm to a range of window sizes and then choosing the most representative motifs based on their motif definition and motif ranking schemes [74,75]. However, this strategy does not allow to have segments with different lengths in the same motif. On the other hand, Tanaka et al. [66] introduced a strategy that allows a more flexible comparison of motifs with different lengths. In particular, they proposed to use the SAX representation for building a discrete list of words and to aggregate repeating words in the same word. 3.3 Implementation of the motif detection algorithm The motif discovery algorithm chosen for this paper is the EMD algorithm by Tanaka et al. [66]. The main advantage of this algorithm, and the reason why we chose it, is the possibility of having subsequences with different lengths in the same motif. The EMD algorithm has three main components: • Discretization of the 1-dimensional time-series via an adaptation of SAX representation [44]. This adaptation is what allows the method to find segments with different lengths in the same motif. Put simply, the algorithm starts by applying the SAX representation to sliding windows of the same length, which produces a sequence of SAX words, each representing a specific window in the original time-series. Then, the algorithm looks for consecutive sets of equal SAX words. If consecutive repeating words are found, the algorithm aggregates them into the same modified SAX word and joins the windows that were represented by those repeated words. For instance, given the SAX sequence CSAX = [ abc,abc,cde,f de,f de,f de ] representing 6 sliding windows of size n , the adaptation returns the modified sequence ˜ CSAX = [ abc,cde,f de ] that represents 3 windows of size n+1, nand n+2, respectively. • Extraction of all the variable-length motif candidates with an iterative pattern matching routine. This process iterates over all the sets of consecutive modified SAX words (or patterns) and looks for repeating patterns that meet the distance constrain discussed in previous section. • Computation of the description length of each motif candidate, which is based on the Minimum Description Length (MDL) principle [76]. The description 28
3.3. IMPLEMENTATION OF THE MOTIF DETECTION ALGORITHM length (or MDL cost) can be then used to select the most relevant motifs from the extracted candidates. Since, to the best of our knowledge, there was not a publicly available implementation of the EMD algorithm, we did our own implementation of the algorithm 1 . In addition, implementing the algorithm gave us the the flexibility to add two simple features that were not discussed in the original paper and a major change that we will argue benefits the use-case of finding maneuvers from inertial measurements. The first addition is related to the avoidance of the trivial matchings discussed in the previous section. In their paper, Tanaka et al. [66] did not give any details on how to prune overlapping subsequences that belong to the same motif. Therefore, we implemented it with a simple heuristic. Given a motif, its center subsequence and its members subsequences, when two members overlap, we exclude the member with the largest distance to the motif’s center and keep the member with the lowest distance. The second addition involves the extraction of k -motifs. Since we are interested in finding different maneuvers, we had to implement a routine that pruned the entire set of motifs found by the EMD algorithm in order to avoid overlaps between different motifs. Tanaka et al. [66] had already defined a method for ordering motifs using the MDL cost. However, they did not discuss the issue of overlapping motifs and thus we used the heuristic proposed by Lin et al. [65]. Namely, we defined the k -motif as the motif with the lowest MDL cost and whose center has a distance higher than 2 R to the the center of each the j-motifs, for 1 ≤j≤k−1. We named this step motif pruning. The major change we introduced to the EMD algorithm concerns the SAX representation. In the original method, each sliding window is transformed into a sequence of n numbers, which is defined by dividing the window into n equal-size segments and by computing the mean of each segment. Then, each of the n numbers is mapped to a unique character based a set of computed break-points. These break-points are defined separately for each window so that the characters’ frequency in that window exhibit a Gaussian distribution. With this adaptive break-points method, windows that have the same behavior but are shifted in amplitude are mapped to the same SAX word and consequently will be compared as candidates for the same motif. Although useful in some cases, because amplitude is extremely important for identifying different maneuvers, this adaptive feature is not desirable in our use-case. As an example, if we used adaptive thresholds, acceleration increases from 0G to 0.2G would have the same SAX word as acceleration increases from 0G and 0.8G and thus, we wouldn’t be able to have these two subsequences as distinct motifs. In other words, we would not observe smooth maneuvers and aggressive maneuvers as different motifs. Finally, after some investigation of the results, we observed that the motif punning reduced significantly the number of motifs detected. In order to better investigate all 1https://github.com/misilva73/manueverMotifs 29
CHAPTER 3. ARTICLE NO. 1 - FINDING MANEUVER MOTIFS IN VEHICLE TELEMATICS the original motifs found by the EMD algorithm, we applied a clustering method to the centers of each motif and grouped them based on their DTW distance. For this purpose, we used the DBSCAN algorithm [77]. This is a density-based algorithm that defines core points of high-density (points with many close neighbors) and expands clusters from these points. The algorithm has two main parameters, namely, the maximum distance to consider two points neighbors and the minimum number of neighbors a points must have to be considered a core points. Based on this two parameters, the algorithms finds both outliers and the clusters in the data. This is a main advantage as we do not need to give a predefined number of clusters and can discover outlier motifs, which can be also interesting to analyze. 3.4 Results and discussion In order to investigate whether the EMD algorithm is able to extract meaningful motifs for detecting maneuvers, we applied the algorithm to the UAH-DriveSet, a publicly available naturalistic driving dataset with trip recordings from six different drivers and two specific routes in Madrid, Spain. Romera et al. [26] asked each driver to repeat two predefined routes simulating three different behaviors, namely, normal, aggressive and drowsy. During the trips, they collected both raw and processed signals using an app designed by them and called DriveSafe [27,28]. We run two experiments 2 . In the first, we aimed to identify brakes and accelerations, while in the second we focused on curves and other lateral maneuvers. For each experiments, we run the algorithm in four different trips - one representing a normal trip in a secondary road and three related to trips in a motorway and exhibiting the three behaviors present in the dataset (normal, aggressive and drowsy). In the experiments, we used the accelerometer’s measurements in the y and z axis with a frequency of 10Hz, which were already aligned with the three car axis and denoised with a Kalman filter. Since the y -axis represents the lateral acceleration of the car and the z -axis represents the longitudinal acceleration of the car, we used the first to detect curves and the second to detect accelerations and brakes. This dataset also included a record of the start of acceleration events captured by the DriveSafe app, such as turns, brakes and accelerations. These events were marked with a fixedthresholds strategy and thus, we used these labels to help in the motif visualization. The EMD algorithm has four main parameters, namely, the window size used to build each individual SAX word, the Piecewise Aggregate Approximation (PAA) size, which corresponds to the number of characters in each SAX word, the SAX alphabet size, which is the maximum number of characters used in the SAX representation, and the radius R , discussed in the definition of a motif. We tested a range of values for each parameter and, based on an exploration of the resulting motifs, the final parameters 2https://github.com/misilva73/manueverMotifs 30
3.4. RESULTS AND DISCUSSION used in all the experiments were window_size = 20 , paa_size = 2 , alphabet_size = 5 and R = 0.1. In order to validate the results, we used the video recordings of the trips and the measurements of car’s velocity. The videos were mostly useful in the lateral experiment, while the velocity was used to validate the longitudinal maneuvers. Note that we did this in-depth analysis on the smaller set of pruned motifs as the full set of extracted motifs was too big for such manual analysis. Therefore, we applied the clustering algorithm DBSCAN [77] as an exploratory tool. 3.4.1 Identifying brakes and accelerations in the longitudinal acceleration Table 3.1 summarizes the main results obtained with the EMD method and the DBSCAN clustering. For each trip, it displays 1) the number of motifs extracted by the EMD algorithm, 2) the number of motifs remaining after the motif pruning, 3) the types of maneuvers detected after punning, 4) the number of clusters obtained with the DBSCAN algorithm, excluding the outliers cluster, and 5) the number of motifs in the outlier cluster. Table 3.1: Summary results of the analysis in the longitudinal acceleration Trip Motifs Motifs after pruning maneuvers[∗]DBSCAN clusters DBSCAN outliers Motorway Normal 1849 3 B, B-A 5 383 Aggressive 1272 8 B, B-A 8 771 Drowsy 2039 5 B, B-A 5 477 Secondary Normal 1591 3 A, B-A 2 162 [∗] A = Acceleration ; B = Brake ; B-A = Brake followed by acceleration From these results, we were able to observe that the motif pruning step reduces the number of motifs by three orders of magnitude, which is a very significant reduction. This indicates that most of motifs detected by the EMD algorithm are in fact very close to each other and therefore represent either the same maneuver or very similar maneuvers. Additionally, after the motif pruning step, the remaining motifs in all trips contained relevant maneuvers, which indicates that motif detection algorithms can help in the task of discovering maneuvers in a signal of longitudinal acceleration. Figure 3.1 displays three motifs extracted with the EMD algorithm and they all have an easily identifiable maneuver. In all the trips explored, the most relevant motif found by the EMD algorithm contained the absence of a maneuver. In other words, this motif corresponded to the action of driving at a constant speed without changes in longitudinal acceleration, which is consistent with routes where these trips where recorded. In motorways and secondary roads, driving is done in a constant speed at most times and thus we expect to have this behavior as the most significant motif of these trips. 31
Chapter 4 Article no. 2 - Exploring time-series motifs through DTW-SOM This chapter contains the second article that composes this thesis. The article was accepted for presentation at the International Joint Conference on Neural Networks (IJCNN) 2020 and published in the conference proceedings. The published version can be accessed at https://doi.org/10.1109/IJCNN48605.2020.9207614. In the previous chapter, we notice that the motif pruning step from the EMD algorithm is too restrictive and thus excludes relevant maneuvers from the trip. On the other hand, the number of motifs extracted by the algorithm is too large to allow a human to explore it manually. In other words, we need a summarization and visualization tool to get the full benefit to motif detection algorithm for the use-case of maneuver detection. With this in mind, in our second article, we proposed the use of the SOM clustering algorithm to explore the motifs extracted by any desired motif discovery method. This new algorithm is called DTW-SOM and it receives the centers of a set of motifs, groups them into a predefined set of clusters and provides a space-efficient visualization that aids the investigation of the main extracted patterns. 39
CHAPTER 4. ARTICLE NO. 2 - EXPLORING TIME-SERIES MOTIFS THROUGH DTW-SOM 4.1 Introduction In the last decade, motif discovery has become a fundamental step in many data mining tasks for time-series data, such as clustering, classification or anomaly detection. In general, a time-series motif corresponds to a over-represented segment of a timeseries and thus motif discovery involves extracting all (or a specific subset) of these over-represented segments [68]. Figure 4.1 illustrates an example of two motifs built from dummy data. Figure 4.1: Toy example of two different motifs, each with two highly conserved subsequences. Due to its relevance, many methods and strategies have been proposed to tackle motif discovery. However, the step of exploring and visualizing motifs, which can be useful to understand results of downward tasks, has not received as much attention. To the best of our knowledge, papers that address this question focus only on visualizing the actual time-series subsequences that belong to each individual motif [78,79, 80]. We argue that, even though exploring individual motifs can help to understand the individual patterns, these methods cannot provide information about the overall relationships between the extracted motifs. In other words, they are not ideal to answer questions such as: Are motifs similar to each other? Can we define clusters of motifs? Additionally, exploring individual clusters is not tractable in the cases where a high number of motifs is extracted. In this paper, we propose the use of a widely-studied method for feature reduction and visualization, the SOM [81], to explore the centers of motifs extracted by any desired motif discovery algorithm. Taking into account that these centers are time-series subsequences, with possibly variable lengths and multiple dimensions, we adapted the original SOM algorithm to apply the DTW distance [55] as its similarity metric and added two specific initialization routines for the SOM network. The rest of the paper is organized as follows: Section 2 introduces academic work related to (1) motif discovery and (2) Self-Organizing Maps, Section 3 describes our own implementation of the DTW-SOM, Section 4 presents the experimental setup and reports the results obtained on three different datasets and, finally, Section 5 concludes this paper and discusses future work. 40
4.2. RELATED WORK 4.2 Related work In this section, we’ll cover two areas which, although seemingly unrelated, serve as basis for this paper - motif discovery and self-organizing maps. 4.2.1 Motif Discovery Despite, in general, the concept of motifs being associated with significant time-series segments, there are two main definitions of motifs that vary on the way they set the concept of "significance"[68]. Similarity-based motifs focus on the similarity of the time-series segments and thus this definition results in highly similar motifs. On the other hand, support-based motifs focus on the repetition of the segments throughout the time-series and thus this definition leads to highly frequent motifs. In addition to the concept of significance, there are additional constraints a group of time-series segments must meet to be considered a motif [66]. The first is a behavior constraint, which determines that segments in a motif should have the same general behavior, even if some level of noise or time and amplitude shifts are allowed [67]. The second, the non-overlapping constraint, aims to avoid trivial matchings [65] by setting that motif segments cannot overlap in time. The third is a distance constraint, which restricts all motif’s segments to have a distance smaller than a radius R to the center of the motif (i.e., the segment that represents that motif). Note that in most motif discovery methods, the radius is a parameter that needs to be set by the user. Finally, when the task is to extract a set of motifs instead of the most significant motif, there is an additional constraint with the goal of avoiding the extraction of motifs with overlapping members. This last constraint states that all the motifs’ centers must have a distance higher than 2 radius, 2R. Independently of the exact definition, motif discovery is a computationally intensive task as it involves computing distances between all possible pairs of time-series subsequences. Therefore, much of the work related to motif discovery algorithms has aimed at making the search more efficient. One of the most common techniques to reduce the search space is to convert the original time-series into a lower-dimensional representation where the distance between subsequences in the original representation is approximately maintained [68]. With this strategy, motif candidates can be extracted in the low-dimensional representation (which is more efficient) and the final set of motifs can be computed with the real distance on the smaller set of candidates. In motif discovery, the SAX representation [44] is the most used. This representation first extracts sliding windows from the original time-series and then converts each sliding window into a fixed-sized sequence of characters. Thus, the time-series is split into a list of "words". An important part of any motif discovery is the choice of distance. Most authors use the Euclidean distance [53] or the DTW [55] for comparing subsequences. The 41
CHAPTER 4. ARTICLE NO. 2 - EXPLORING TIME-SERIES MOTIFS THROUGH DTW-SOM advantage of the Euclidean is its efficiency, which allows a faster comparison of motif candidates. However, this efficiency comes with a loss of flexibility as it is not robust to time-shifts, distortions, differences in phase and variable-length sequences. On the other hand, the DTW distance finds the optimal time alignment between the subsequences that are being compared. Thus, it is much less efficient but it can adapt to the shifts discussed before. In terms of the algorithms for motif discovery, there are two main types, namely fixed-length and variable-length. In the fixed-length algorithms, users need to provide the length of window and that parameter is used to extract all the possible subsequences. Thus, all motifs contain subsequences of the same size. The MK exact algorithm [82], the motif extraction from the Matrix Profile [69] and the EMMA-SAX algorithm [65] are all examples of methods that extract fixed-length motifs. The variable-length algorithms are a bit more flexible and don’t required the user to set the window size beforehand. However, this is a much harder problem as the search space is bigger and more complex. Most variable-length algorithms solve this problem by applying a fixed-length algorithm to a range of window sizes and then choosing the most representative motifs based on their motif definition and motif ranking schemes [67]. The work of [74] and [75] are two examples of this approach. On the other hand, Lin’s grammar-based approach [83] and Tanaka’s EMD algorithm [66] already take into consideration variable-length motif during the search process by adapting the way subsequences are represented in the low-dimensional representation. 4.2.2 Self-organizing map SOM were proposed by Tuevo Kohonen at the beginning of the 1980s [81], and constitute the product of his work on associative memory and vector quantization. The SOM’s basic idea is to map high-dimensional data onto a low-dimensional discrete feature map, maintaining the relations between data patterns [84]. Its main objective is to "extract and illustrate"the essential structures from a dataset through a map resulting from an unsupervised learning process [85,86] and thus it can be used at the same time for visualization and exploration of data and for clustering. SOM is also considered a good method for extracting data patterns and associations when the extraction of information becomes a challenging task due to the number of parameters or the use of a multidimensional dataset. Usually, SOM maps the original high-dimensional data to a discrete feature map with one, two, or three-dimensions, although 2-dimensions are the most common. The grid formed by the units or neurons is usually referred to as output space, as opposed to input space, which is the original space [87]. When the output space is 2-dimensional, it is usually formed by a rectangular or hexagonal grid of units [81]. Each unit of the SOM, is represented by a vector mi = [ mi1...,min ] of dimension n , where n equals the dimension of the input space. In the training phase, a given 42
4.2. RELATED WORK training pattern x is presented to the network, and the closest unit is selected. This unit is called the best-matching unit (BMU). The unit’s vector values and those of its neighbors are then modified in order to get closer to the data pattern x: mi=mi+α(t)hci(t)kx−mik(4.1) where α ( t ) is the learning rate at time t , and hci ( t ) is the neighborhood function centered in unit c , and i identifies each unit. To allow SOM to converge to a stable solution, both the learning rate α ( t ) and the neighborhood radius hci ( t ) should decrease to zero during training. Usually these parameters decrease in a linear fashion but other functions can be used. Additionally, the update of both parameters can be done after each individual data pattern is presented to the network (iteration) or after all the data patterns have been presented (epoch). The former case is known as sequential training and the latter is usually known as batch training. The sequential algorithm pseudo-code is presented bellow, in Algorithm 1. Algorithm 1: SOM Sequential Training Input: X={x1,x2,...xn}: training patterns W=wij∈Rp×q: SOM network’s units α∈]0,1[: initial learning rate r∈R: initial neighborhood radius 1Let h(wij,wmn,r) be the neighborhood function repeat 2for k= 1 to n)do 3forall wij ∈Wdo 4dij =kxk−xijk 5Select the unit that minimizes dij as the winner wwin 6Update wij ∈W:wij =wij +αh(wwin,wij,r)kxk−wij k 7Decrease the value of αand r 8until α= 0; For each randomly selected training pattern presented to the network, the BMU (i.e. its closest unit) is found. The BMU is then updated according to the weights of the training pattern and the learning rate. Initially this learning rate is high allowing bigger adjustments of the units. The unit’s mobility will decrease proportionality with the decrease of the learning rate. Based on the neighborhood rate, a group of surrounding units is also moved closer to the training pattern. There are several ways to visualize the SOM and improve the understanding of the data patterns [88]. Two of the most important visualization tools are the component planes [81] and the U-matrix [89]. In a component plane, each unit is colored according to the weight of each variable in the SOM. Through the analysis of the component planes, data distribution can be evaluated. For instance, it is quite simple to identify variables which are correlated 43
CHAPTER 4. ARTICLE NO. 2 - EXPLORING TIME-SERIES MOTIFS THROUGH DTW-SOM (their component planes will have the same shape), and it is also possible to have an improved understanding of the contributions of each variable to the SOM. By comparing two or more component planes, one can visually identify correlations between variables, both globally and at a local scale. The U-matrix is one of the most used methods to visualize SOM [89]. U-matrices are computed by finding the distances in the input space of neighboring units in the output space. There are two ways to visualize a U-matrix. The most common is to use a color code to depict distances, corresponding to the values of the U-matrix. Usually a grey-scale is used, with the highest value being represented with black and the lowest with white. Another possibility is to plot these distances in the form of a 3D landscape with mountains and valleys. A mountain region indicates large distances between units, while low distances between the units form valleys. Some of the challenges in applying SOM to motif discovery in time-series are related to the fact that not all dimensions are equally relevant and the different size of motifs. Some work has been developed to overcame these problems [90,91,92]. One example is the Local Adaptive Receptive Field Dimension Selective Self-organizing Map (LARFDSSOM), proposed in [91], where the application of different weights for each input dimension and for each cluster is proposed, as well as the use of a Time- Varying Structure of the SOM. In [92] the authors propose VILMAP to allow the use of different sizes of samples and consequently the discovery of Motifs with different lengths. SOM can, as shown in the previous references, be used to identify and extract timeseries motifs. In this paper, we propose the use of this technique not to perform such tasks but to analyze the motifs extracted by others motif discovery algorithms. 4.3 DTW-SOM As explained in previous sections, the goal of the DTW-SOM method is to serve as an auxiliary tool in motif discovery and, as such, it needs to be flexible enough to deal with a different range of motif discovery methods and definitions. Particularly, it should: 1. Be able to compare time-series segments. 2. Receive all types of motifs, meaning fixed-length and variable-length motifs. 3. Represent multi-dimensional motifs (i.e., motifs extracted from a multi-dimensional time-series). 4. Take into account an given order of significance in the motifs of a provided set of "most significant"motifs. 44
4.3. DTW-SOM 5. Provide a visualization from which a user can get insights into the general relationships between the motifs and their shapes. To achieve these goals, we extended the vanilla batch-training SOM algorithm that was implemented in the PyClustering python package [93] to process variablelength multidimensional time-series subsequences. The idea is that when someone wishes to investigate a set of motifs previously extracted, he just needs to collect the center subsequences of each motif and feed that list of centers to the DTW-SOM. For readability, from now on, we’ll refer to these center subsequences that are the input to the DTW-SOM as patterns. Firstly, we added two network initialization routines, namely a random sample initialization and an anchor initialization. In the random sample initialization, each unit is randomly assigned to one input pattern in such a way that no two units are exactly the same. In other words, a random sample is taken from the input patterns to initialize the network. In the anchor initialization, a list of patterns must be provided by the users (the anchors) and each anchor will be set to a single unit. Note that the provided list cannot have more anchors than units and, in the case of an input with less anchors then units, a random sample will be taken from all the input patterns to initialize the remaining units. In the case of having less anchors than units, we tried to spread out the first anchors (as we are assuming that they are ordered by significance) by first filling the diagonals of the network and just after that filling the rest of the network. Note that the anchor initialization was designed to address the fourth requirement presented above. If the motif discovery method provides an ordering of the motifs or a subset of most significant motifs, one can use these motifs as the anchors and thus the DTW-SOM will more easily focus on these more important motifs. The second adjustment we implemented to the vanilla SOM was the swap of the distance function from the Euclidean distance to the DTW distance, which allows us to process patterns with different lengths and with multiple dimensions. Finally, the last big change implemented was in the Adaptation phase of the training. Since we are comparing patterns and units with variable lengths, we had to adapt the way each unit’s values are updated. When computing the distance between two segments, the DTW distance finds an optimal alignment in time between the segments and uses this optimal match to compute the distance between individual points along the segments. Thus during the adaptation phase of training we leverage this matching to guide the update of the BMU’s vector values. As an example, Figure 4.2 shows the DTW alignment between an input pattern and its BMU. In the DTW-SOM, the vector values of an unit are simply the sequence of time-series observations as presented in figure. During Adaptation, every vector value needs to move slightly closer to the pattern as defined by equation 4.1. In this case, the 45
CHAPTER 4. ARTICLE NO. 2 - EXPLORING TIME-SERIES MOTIFS THROUGH DTW-SOM Figure 4.2: Example of the time-alignment between an input pattern and an unit computed by the DTW algorithm. The black points are the actual time-series observations while the red and dashed lines represent the alignment matching returned by the DTW algorithm. first BMU’s value, which is the point marked as A , will move closer to the its matching point in the pattern, which is the point A0. Due to warping, we can have cases where one point in the BMU can be matched to more than one point in the pattern, as is the case with points B , B0 and B00 . In these cases, equation 4.1 needs to be changed to equation 4.2: wi=wi+α(t)hcw(t) 1 nX j≤n xj−wi (4.2) where i is the index of the unit’s sequence, t is the training epoch, α ( t ) is the learning rate at epoch t , hcw ( t ) is the neighborhood function, n is the number of pattern points that where matched to the BMU’s vector value wi and the xj are the pattern point’s values. 4.4 Evaluation To test DTW-SOM, we did three experiments. In the first, we generated synthetic motif data and explored visually the results. In the second, we used a widely used classification dataset from the UCR Time Series Classification Archive [94], the Gun- Point dataset [95]. Particularly, we adapted the dataset to be suitable for the motif discovery task, we used the Matrix Profile [69] to efficiently extract all the motifs and we explored the resulting motifs with our method. Finally, in the third experiments, we used the same approach as in the second experiments, but used a dataset from the UCR Time Series Classification Archive with more classes and more extracted motifs, namely the UWaveGesture dataset [96]. 4.4.1 Experiment with the synthetic motif dataset To build this synthetic dataset, the idea was to create a dataset of motifs centers that formed 3 clear clusters. If we were able to detect these clusters in the final visualization, 46
4.4. EVALUATION then the DTW-SOM was working as expected. The synthetic dataset included 180 motif centers which were generated using the following heuristic: 1. We chose three general behaviors sequences for the clusters, namely, low-middle- high, high-middle-low and middle-middle-middle. 2. For each behavior (low, middle and high), we defined intervals from which we could sample points exhibiting that behavior. Particularly, the low interval was [−3,−1.5], the middle interval was [−0.5,0.5] and the high interval was [1.5,3]. 3. For each motif center, we set the length of which behavior by randomly selecting an integer between 5 and 10. In other words, for each motif center, we’ll sample three integers that define the lengths of each of its behavior subsequences and the sum of those integers will be the total length of that motif center. 4. For each motif center, we create its time-series sequence by sampling values from the predefined behavior intervals. As an example, if we were creating a motif center for the low-middle-high cluster and if we had previously sampled the behavior lengths (3 , 7 , 4), then we would sample three values from the interval [ − 3 ,− 1 . 5], seven values from the interval [ − 0 . 5 , 0 . 5] and four values from the interval [1.5,3]. Figure 4.3: Plot with three examples of generated motif centers, one for each cluster. The orange belongs to the low-middle-high cluster, the blue to the high-middle-low cluster and the red to the middle-middle-middle cluster Figure 4.3 shows some examples of the generated sequences. After generating the dataset, we build a DTW-SOM network with a 3 X 3 layout and default parameters and we trained it during 30 epochs. We also tested the random sample initialization and the anchor initialization (using one motif from each cluster as the anchors). We noted that even though the random sample initialization was able to obtain the desired clusters, the results among different training runs were much more unstable. On the other hand, the anchor initialization converged to the desired clusters much more consistently and different runs did not change too much the results. 47
CHAPTER 4. ARTICLE NO. 2 - EXPLORING TIME-SERIES MOTIFS THROUGH DTW-SOM The visually biggest cluster in the U-matrix is centered at units 6 and 7. These units have a shape similar to the first and eighth gestures. These gestures are made of a right lateral movement followed by a left lateral movement. And so we can see that the motif detection algorithm is being capable of extracting more complex shapes. Even though they don’t form a visually striking cluster in the U-matrix, units 1, 2 and 5 have very similar shapes and are the only units with a shape consistent with the left-right lateral movement present in the seventh gesture. Interestingly, unit 15 forms its own cluster in the lower-right corner of the DTWSOM network, but it has a shape consistent with the third gesture. In other words, we have two clusters in the network, one in unit 0 and another in unit 15, with the same shape. This is due to the random initialization. Because these two similar motifs were randomly assigned to far away places in the network, they had no option but to form two independent clusters. 4.5 Conclusion In this paper, we argue that visually exploring the time-series motifs computed by motif discovery algorithms can be useful to understand and debug results. To the best of our knowledge, no other papers investigate the problem of exploring relationships between motifs and answering questions such as: Are motifs similar to each other? Can we define clusters of motifs? To conduct these investigations, we propose the use of an adapted Self-Organizing Map on the list of motif’s centers. We called the adapted method DTW-SOM and the main changes are (1) the use the Dynamic Time Warping distance to compute distances between the units and the input patterns, (2) the introduction of two new network initialization routines and (3) the adjustment of the Adaptation phase of the training to work with variable-length time-series sequences. We tested DTW-SOM in a synthetic motif dataset and two real time-series datasets called GunPoint and UWaveGesture, respectively. From an exploration of results, we can conclude that DTW-SOM is capable of extracting relevant information from a set of motifs and display it in a space-efficient way. During the experiment with the synthetic dataset, we observed that the random sample initialization was not as robust as the anchors initialization. Additionally, this random initialization can also lead to the creation of distinct clusters that have the same shapes, which is not optimal. Thus, as future work, we propose an investigation on more robust initialization schemes to cover the case when the user does not wish to provide anchors. 54
Chapter 5 Article no. 3 - TripMD: Driving patterns investigation via Motif Analysis This chapter is made of the third and final article published for this thesis. The article was published in the journal Expert Systems with Applications and can be accessed at https://doi.org/10.1016/j.eswa.2021.115527. the last article, brings together the work done in the previous two articles, which are located in Chapters The main contribution here is the new system TripMD. This is the first that extracts the main driving patterns using motif detection and provides a summary of these patterns in a space-efficient visualization. With this, TripMD allows for an easy investigation of the main driving patterns obtained from high-frequency telematics data. In addition, to make TripMD work better for maneuver detection, we also propose a new representation method for variable-length time-series called VSAX. 55
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS 5.1 Introduction In the last two decades, there has been a growing interest in analyzing driving data and understanding driving behavior, with researchers and practitioners finding new applications for this type of data. In the car insurance sector, measuring how a client drives is a cornerstone of the UBI schemes, which provide more custom pricing by taking into account driving behavior instead of external proxies such as sex and years of driving experience. In fleet management and fuel consumption optimization, studying the relationship between driving behavior and fuel consumption can improve driving performance and reduce costs. Regulators and policymakers can also leverage driving data to understand which factors are associated with accidents and improve road safety with better regulation. Analyzing how self-driving cars perform can help developers understand what is working correctly with the autonomous system and which areas need to be improved. A common approach to get insights about driving performance from driving data is to analyze maneuvers. In fact, more and more authors use this type of analysis in their work [12,13,16,19,97,98]. The rationale is that the set and frequency of the maneuvers performed during a trip and the way they are executed can provide relevant information about the driving behavior of the driver during the trip. So far, the driving data normally used in this task is high-frequency telematics (also called automobile sensor data), such as GPS location, velocity and acceleration, and video recordings. In a previous article [99], we argued that using time-series motifs detection algorithms to extract maneuvers from high-frequency telematics had two main benefits. First, it was more adaptable to small fluctuations in the data than previous methods. And second, it had the advantage of not requiring labels, which is extremely time-consuming to collect. We also noted that analyzing maneuvers through motif detection in telematics data is a promising area of research that is yet to be fully explored. Recently, Jain et al. [100] proposed a general method to discover motifs in noisy time-series and, in one of their case studies, they concluded that their method was capable of identifying turn maneuvers from automobile sensor data. This work further validates our claim that motifs extracted from driving sensor data are highly related to the actual maneuvers performed. In this paper, we expand the work done in [99] by proposing TripMD, a complete motif extraction and exploration system that is tailored for the task of analyzing maneuvers and driving behaviors. Other authors have looked into the task of maneuver detection using time-series motifs [100,101]. However, none of these works propose a full system that extracts motifs from automobile sensor data and summarizes the information in a space-efficient visualization. Particularly, our main contributions are the following: 56
5.2. PRELIMINARIES • We present TripMD, motif detection and summarization system that was designed to extract relevant driving patterns from a set of trips. It is the first system that not only extracts but also summarizes the main motifs of the provided trips, which allows for an easy investigation of the maneuvers being performed. TripMD expands our previous work by combining the motif extraction step with a motif clustering and summarization step. • We present a novel representation method called VSAX, which adapts the classical SAX representation from [44] to work with variable-length patterns. This new representation is what allows TripMD to capture maneuvers of variable lengths. To evaluate the applicability of TripMD to real tasks, we use the UAH-DriveSet naturalistic driving dataset [26] in two experiments. Firstly, we apply our system to the trips performed by a single driver and show that it is capable of extracting a rich set of driving patterns. We also show that these patterns can be used to distinguish between three different driving behaviors of the driver. Secondly, we demonstrate that, using the patterns extracted by TripMD, we are capable of identifying the driving behavior of an unknown driver from a group of drivers whose behavior we know. In other words, the association between driving patterns and driving behavior achieved with TripMD can generalize to unclassified drivers. The rest of the paper is organized as follows. In Section 5.2, we provide an overview of time-series motifs and motif detection algorithms, which will be helpful to understand TripMD. In Section 5.3, we describe TripMD in detail. Section 5.4 is reserved for two experiments where we showcase our system and demonstrate its usefulness. And Section 5.5 concludes this work and introduces some ideas for future work. 5.2 Preliminaries In simple terms, a time-series motif is a repeated pattern in the time-series that carries information about the underlying process that generated the time-series. Based on this general definition, there are two main ways of defining how relevant a repeated pattern is, namely based on support or based on similarity [68]. In the support-based definition, the most relevant pattern is the one with the highest number of repetitions, while, in the similarity-based definition, the most relevant pattern is the one with the most identical repetitions. Therefore, the support-based definition extracts more frequent patterns and the support-based definition extracts more similar patterns. There are two additional constrains that a pattern needs to meet to be considered a time-series motif [65]. Firstly, two subsequences that belong to the same motif cannot overlap in time. This non-overlapping constraint is set to avoid trivial matchings. Secondly, two subsequences need to be at a distance smaller than a predefined radius Rto be considered a match (and thus to belong to the same pattern). 57
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS Note that this second constraint is highly tailored to the use-case. On the one-hand, in most motif detection algorithms, the radius is a parameter that needs to be defined by the user. On the other hand, there are many distances that can be used to compute similarity between subsequences [43,52] and the user must decide which distance is the most suitable to the specific use-case. The final constrain appears when the task is not to look for a single motif but to more than one motif. In this case, based on the motif definition, it is possible to order motifs based on their relevance and to extract the topk most important motifs, which are named the k -motifs. However, any two motifs can only coexist in the list of k -motifs if their centers (the subsequence that better represents the motif) have a distance higher than 2 R [65], where R is the radius used to define the motif’s matches. In terms of the distance functions, the most used are the Euclidean distance [53] and the DTW distance [55]. The Euclidean distance performs an one-to-one comparison of single points from the same time location and, because of this, it is very efficient. However, the sequences being compared need to have the same size (or being padded at the end) and the distance is not robust to time-shifts, distortions or differences in phase. On the contrary, the DTW distance is capable of dealing with variable-length sequences and other misalignments by finding an optimal time mapping between the sequences that are being compared. However, this flexibility comes at the cost of efficiency, which is a major concern when analyzing time-series data. Independently of the distance used, because motif discovery is a task that involves comparing all possible pairs of time-series subsequences, it is very computationally expensive. Thus, a lot of work in motif detection has been focused on making this search more efficient. The most used technique is to reduce the search space by converting the time-series into a low-dimensional representation where the true distance is approximately maintained. Then, we can prune motif candidates in this reduced space and search for the final motifs in the reduce group of candidates. The SAX [44] is the standard example of the this technique. It starts by braking the original time-series into fixed-sized sliding windows and then converting each window into a sequence of letters. Using the Matrix Profile [69] is another commonly used strategy to speed-up the search for the motifs. The Matrix Profile is a meta time-series that annotates the original time-series by providing the distance and the index of each fixed-size sequence’s nearest neighbors, excluding trivial matches. Note that the size of the sequence is the only parameter of the method and the distance used is the Euclidean distance. There are many efficient and fast implementations of the Matrix Profile, either approximate or exact, and after the Matrix Profile is computed, extracting similarity-based motifs is trivial. When working with telematic data, it is common to have data from several sensors such as the accelerometer and the velocimeter. Even in the case of the accelerometer, 58
5.2. PRELIMINARIES one still has two distinct time-series, namely the lateral and the longitudinal acceleration. Therefore, finding maneuvers in telematic data is a multidimensional problem and as such, we need to apply techniques for detecting multidimensional motifs. In their work, Tanaka et al. [66] suggested to apply a dimensionality reduction technique in order to reduce the multidimensional time-series into a single dimension, which would simplify the problem back to the one-dimensional case. This is a smart approach as it can easily leverage all the existing motif detection algorithms. However, it has the drawback of information loss. If the time-series data contains relevant information in more than one dimension at the same time (which is our case when using acceleration data), then we won’t be able to capture all the relevant motifs with this approach. Another technique widely used in the multidimensional setting is to apply an onedimensional motif detection algorithm in each dimension independently and then look for co-occurrences to extract the multidimensional motifs [70,71,72,73]. This setup is much more accurate (since there is no information loss) and it is more flexible (since the search for co-occurrences can be done with an allowance for asynchronous motifs and the rejection of uninformative dimensions). However, this setup is more computationally expensive. Instead of working on a two step approach, other authors search for the multidimensional motifs directly by concatenating all the dimensions. For instance, Minnen et al. [70] compute the SAX representation for each dimension and concatenate their strings, while in [102] the authors define a new Matrix Profile, the k-dimensional Matrix Profile, that encodes the distance to each sequence’s closest neighbor, taking into account k dimensions. When the goal is to analyze maneuvers, one needs to be able to extract variablelength motifs. In other words, because the same maneuver does not always take the exact same time, it is important to have flexible methods that can extract motifs of different lengths. Even though fixed-length motifs have been the most explored so far, there are some algorithms for the variable-length case. Most authors propose to apply a fixed-length algorithm in a range of window sizes and then choose the most representative motifs based on their ranking scheme. The work of Nunthanid et al. [74] and Gao and Lin [75] are two examples of this approach. Note, however, that this approach does not work for maneuvers since all the subsequences that belong to a given motif have the same size. If we have a trip with three right-turn maneuvers that have slightly different durations, these algorithms would not be able to identify these three maneuvers as a motif. Lin’s grammar-based method [83] and Tanaka’s EMD algorithm [66] take a different approach. They adapt the sequences’ representation in the low-dimensional space in order to take into consideration variable-length patterns. However, this adaption leads to algorithms that are not exact, which means that there is no guarantee that the method can find all the variable-length motifs in a given time-series. 59
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS 5.3 TripMD TripMD is a system for extracting and analyzing maneuvers from trips performed by a single driver. To achieve this, we needed algorithms that worked on multi-dimensional time-series and, at the same time, were able to extract and analyze variable-length patterns. Having this in mind, our solution has the following two components: 1. A motif extraction algorithm inspired by the algorithm created by Tanaka et al. [66], which was tailored and tuned for the maneuver detection use-case. It includes a discrete variable-length representation (VSAX) based on the widely used SAX [44] and an iterative pattern matching process that extracts motifs in multiple dimensions. 2. A motif clustering and visualization tool based on the Self-Organizing Map model that extracts the most relevant motif patterns and permits the user to quickly analyze them. In our motif extraction algorithm, we use the support-based definition. In other words, for a certain VSAX pattern, its motif is the largest group of non-overlapping variable-length subsequences with that VSAX representation and in which all the subsequences have a distance lower than a predefined radius R to the motif’s center. Because we are working with variable-length motifs, we use the DTW distance [55] to measure similarity between two multi-dimensional subsequences. In the following subsections, we’ll go through each component in more detail. 5.3.1 Motif extraction The motif extraction step of TripMD receives a list of trip recordings T and some parameters and returns the list M of all the motifs in those trips that meet our supportbased definition. Algorithm 2presents the motif extraction algorithm. First, we compute the list of sequences V that contains the VSAX representation of T . This step is further described in Section 5.3.1.1, but in short, each element of T is a sequence of symbols that summarize a particular time-series of T. Next, for each pattern size w , we extract a list of all words in V for that size ( Ww ). A word in Ww is a sequence of w VSAX symbols that correspond to a variable-length subsequence in T. Then, for each unique word in Ww , if it exists, we extract its corresponding motif using the algorithm described in Section 5.3.1.2. We add all the motifs found to the list Mand the loop ends when no more motifs of a certain pattern size exist. 60
5.3. TRIPMD Algorithm 2: Motif extraction Input: T: List of multidimensional time-series representing the trips’ recordings lsize ∈Z+: Default letter size wmin ∈Z+: Minimum pattern size R∈R+: Motif radius Output: M: List of all motifs. 1V←GetVsaxSequence(T ,lsize) 2M← ∅ 3w←wmin 4repeat 5Ww←sequence of VSAX words of size w 6Ww unique ←list of unique word patterns 7forall pattern ∈Ww unique do 8m←GetMotif(pattern,R,W w,T ) 9if number of motif members of m > 1then 10 M←M∪ {m} 11 w←w+1 12 until |Ww unique|=|Ww|(i.e., no more repeating patterns) 5.3.1.1 Variable SAX VSAX is a time-series discretization method that transforms a time-series into a sequence of symbols that captures the general behavior of the original time-series. It serves two main purposes. Firstly, by providing a discretization of the time-series, it allows for a more efficient motif search and, at the same time, reduces the impact of small levels of noise. Secondly, it is capable of splitting the time-series into subsequences of variable lengths depending on the underlying behavior of the time-series, which allows a simple pattern matching algorithm to find variable-length motifs. Algorithm 3lists the main steps of the VSAX algorithm. For simplicity, we present the case where the trips are represented as an one-dimensional time-series. The application of the algorithm to the multi-dimensional case is discussed in the last paragraph of the subsection. To better explain how the algorithm works, we provide a example in Figure 5.1 with a single one-dimensional time-series. Initially, the time-series is split into fixed-length sliding windows ( tssk ). The length of the window is one of the parameters of VSAX, the defaultletter size. Then, the values in each sliding window are averaged to obtain a discrete value for that window ( paak ), which in turn is converted to a symbol ( ck ) based on a predefined segmentation of the time-series domain. After obtaining the symbol ck , the pruning phase checks whether tssk should be concatenated to the previous window tssk−1 (line 14 in Algorithm 3). The rationale is that if two consecutive windows have similar behaviors (which translates into being transformed into the same symbol), then they should be a single window and be considered together when searching for motifs. Thus, in the end, we have a sequence 61
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS Algorithm 3: Variable SAX (VSAX) Input: T: List of one-dimensional time-series lsize ∈Z+: Default letter size Output: V: list of VSAX letter sequences, one sequence per trip Let αi , be the symbol that represents the time-series domain [ bi,bi+1 [, where 1 ≤i≤ 5. 1Function GetVsaxSequence(T ,lsize): 2V← ∅ 3{bi}1≤i≤6←ComputeVsaxBreakpoints(T) 4foreach time-series ts of Tdo 5Vts ← ∅ 6tssize ←size of the trip’s time-series ts 7for k←1to tssize −lsize do 8tssk←ts[k:k+lsize] 9paak←1 lsize Ptssk[i] 10 ck←αis.t. paak∈[bi,bi+1[ 11 if |Vts|= 0 or ck,ck−1then 12 letterk←(ck,tssk) 13 Vts ←Vts ∪ {letterk} 14 else 15 tssk=tssk−1∪tssk 16 letterk←(ck,tssk) 17 Vts ←(Vts \ {letterk−1})∪ {letterk} 18 V←V∪ {Vts} 19 return V Figure 5.1: Simple example of the Variable SAX representation process. of symbols V that map to variable-length subsequences of the original time-series and that encode information about the general behavior of the subsequences. The segmentation of the time-series domain is similar to the way it is done in SAX [44]. Break-points are determined based on the time-series’ values and these 62
5.3. TRIPMD break-points define regions in the time-series domain that map to specific symbols. Algorithm 4details how these break-points are computed in TripMD, assuming the input is an one-dimensional time-series of trips recordings. Algorithm 4: Variable SAX break-points computation Input: T: List of one-dimensional time-series Output: {bi}1≤i≤6: VSAX break-points for T 1Function ComputeVsaxBreakpoints(T): 2joinedT ← ∅ 3foreach time-series ts of Tdo joinedT ←joinedT ∪ts 4b1← −∞ 5b2←Percentile(T ,5) 6b3←Percentile(T ,15) 7b4←Percentile(T ,85) 8b5←Percentile(T ,95) 9b6←+∞ 10 return {b1,b2,b3,b4,b5,b6} In the original SAX representation [44], break-points are defined so that all regions have equal probability under a Gaussian distribution. However, VSAX uses specific percentiles of the time-series’ values to define five regions, namely the 5th, 15th, 85th and 95th percentiles. In general, a driver spends less time performing maneuvers than he does not performing any maneuver and, thus, defining break-points that evenly distribute time-series’ values among the regions does not lead to good results in the maneuver detection task. Additionally, since the percentiles are computed over all the trips, any two windows with the same symbol will be guaranteed to be in the same domain region. This is another change compared to SAX, where the break-points are computed independently for each window. Finally, for multi-dimensional time-series, VSAX can be applied separately to each one-dimensional time-series and then concatenate the resulting symbols in a tuple. For instance, a subsequence of a two-dimensional time-series would be mapped to a tuple of two symbols, one for each dimension. Note however that in the multi-dimensional case, the pruning phase is applied in all the dimensions at the same time. In other words, two consecutive subsequences are only merged if they have the same symbols in all the dimensions. Thus, in this case, each VSAX symbol corresponds to a single variable-length multi-dimensional subsequence of the original time-series. 5.3.1.2 Motif search The motif search is an iterative process that extracts the motifs of all possible sizes from a VSAX sequence. It was inspired by the motif detection algorithm proposed by Tanaka et al. [66]. At each iteration, it discovers all the motifs with a certain number of VSAX symbols (the pattern size) and then moves to next iteration by increasing the pattern size by one. The minimum pattern size is a parameter of the method and 63
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS Figure 5.5: Motifs extracted from the toy example using a minimum pattern size 1. One of the motifs corresponds to a pattern size of 1 and the other corresponds to a pattern size of 2. The subsequences that belong to the motifs are identified by the shaded area. Figure 5.6: Motif extracted from the toy example using a motif radius of 0.1. The subsequences that belong to the motif are identified by the shaded area. epochs sets the number of training iterations for the SOM. The higher the number of epochs, the longer the model will train (and the longer the full run of TripMD will be). However, if the number of epochs is too small, the final summary of the motifs will be poor. Since we are using the anchor initialization, we don’t need as many epochs for the SOM training to converge. From our experiments, the default of 20 epochs is 70
5.4. EVALUATION AND DISCUSSION sufficient for a proper summarization. As for the maximum warping, it limits the time-warping allowed in the DTW distance computation. If we decrease this parameter, the maximum warping window is small, and the distance between the two subsequences will be closer to their Euclidean distance. Alternatively, if we allow for more warping, the clustering of the motifs will be more flexible and allow more misaligned sequences to be grouped in the same SOM unit. There are two reasons for limiting the warping window. Firstly, since we are reducing the search for an optimal mapping, the computation is faster. Secondly, if the warping window is not constrained, motifs with a higher degree of time misalignment will be grouped in the same SOM unit, and the final motif summarization will be distorted. 5.4 Evaluation and discussion To evaluate TripMD, we use the UAH-DriveSet [26], a publicly available naturalistic driving dataset including recorded trips from six different drivers that traveled in two specific routes in Madrid, Spain. The authors asked the volunteers to drive in these two routes mimicking three different driving behaviors - normal, aggressive and drowsy. Using their DriveSafe app [27,28], the authors collected raw data from the accelerometer, GPS and camera of a smartphone mounted in the car and processed these signals to enrich the final dataset. In the first experiment, we pick a single driver and explore in detail the outputs obtained from TripMD. Particularly, we do an exploratory analysis of the motifs extracted by TripMD and showcase the visualizations provided by our system. In the second experiment, we focus on the task of identifying driving behaviors. We apply TripMD to the entire UAH-DriveSet. Then, using the known driving behaviors of all but one driver, we assign behavior scores to each motif cluster. Finally, we use those cluster behavior scores and the motifs extracted from the left-out driver to predict the behavior of each of that driver’s trip. In both experiments, we use the two-dimensional time-series of the lateral and longitudinal acceleration recordings. The recordings are already aligned with the correct car axis and denoised with a Kalman filter, which means we can use them directly. The data has a frequency of 10Hz, however, in order to speed computation and further reduce noise, we down-sample the time-series to a 5HZ frequency. Additionally, we use all the default parameters for TripMD as we found that they work well for this dataset. The code to reproduce all the experiments can be consulted in our repository 1. 1https://github.com/misilva73/tripMD 71
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS 5.4.1 Analyzing a single driver with TripMD To showcase how our system can be used to explore the driving behavior of a single person, we run TripMD on the seven trips performed by one of the drivers in the UAH- DriveSet. This driver completed four trips in the secondary road route (two normal, one aggressive and one drowsy) and three trips in the motorway route (one for each driving behavior). The motif detection component found 281 motifs and, from these, 17 motifs were used to initialized the DTW-SOM model. These 17 motifs were the result of the pruning step presented in Section 5.3. The DTW-SOM model was initialized with a 5X5 grid since it is the smallest square grid that can contain the 17 pruned motifs. Then the 281 motifs were assigned to each DTW-SOM unit in the grid. DTW-SOM builds an optimal assignment by reducing the DTW distance between the units and their motif’s centers. DTW-SOM also provides a visualization of the clusters in a two-dimensional grid (or network) that conserves the local similarity of the data. This means that two neighboring clusters in the two-dimensional network are similar. Figure 5.7 shows the first visualizations provided by TripMD for the driver. It contains the lateral and longitudinal acceleration of each DTW-SOM unit, placed in the two-dimensional network. A unit here is a multi-dimensional subsequence that represents the cluster in a particular part of the DTW-SOM grid and thus this plot provides a summary of the main driving patterns extracted from the driver. From this first chart, we can already see that TripMD is able of identifying a rich set of driving patterns, with lengths ranging from 1.5 to 3 seconds. It includes simple maneuvers, such as unit 22 that relates with a simple left turn without changes in longitudinal acceleration, and more complex maneuvers, for instance, unit 0 that corresponds to a right turn with acceleration. Additionally, the grid maintains some local similarity, with adjacent units showing more similar acceleration patterns than units that are not adjacent. As an example, the neighboring units 15, 16, 20, and 21 all have similar driving patterns, with a clear brake maneuver and a slightly positive lateral acceleration. Figure 5.8 contains two additional visualizations providedby TripMD for the driver. These plots are classical ways of visualizing a SOM network and represent different information about each of the clusters arranged in the two-dimensional network. In both charts, the arrangement of the units in the two-dimensional grid is consistent to Figure 5.7. The first chart is called U-Matrix and it shows how similar each unit is to its direct neighbors in the two-dimensional network, where the brighter the color, the closer a unit is to its neighbor. This visualization is helpful to understand where are the major groups of clusters within the network. For instance, the upper-right corner has a clearly defined groups of four cluster that are very similar, which corresponds to the units 15, 16, 20 and 21 with the brake maneuver discussed above. 72
5.4. EVALUATION AND DISCUSSION Figure 5.7: Lateral and longitudinal acceleration of the DTW-SOM’s units. They were obtained by applying TripMD to the trips of a single driver from the UAH-DriveSet. Units are placed in the DTW-SOM two-dimensional grid. The second chart is called Winner Matrix and it provides information about the cluster size of each unit. Particularly, it displays the exact number of motifs in each cluster on top of corresponding unit. This plot can be used to gauge how relevant each driving pattern is. For instance, unit 24 in the lower right corner contains no motifs, which means that this pattern is not needed to summarize the driver’s behavior. Besides these default TripMD plots, Figure 5.9 contains information about the distribution of each driving behavior in the clusters extracted by our system. For each driving behavior, we compute the number of motif subsequences from the trips with that behavior that belong to each DTW-SOM cluster. Then, we divide each cluster count by the total number of motif subsequences for all the driver’s trips that belong to that cluster to achieve the rate presented in the plots. So, for instance, 80% of the motif subsequences associated to motifs that belong to the cluster 4 come from trips with a drowsy behavior. 73
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS Figure 5.8: U-matrix and Winner Matrix of the DTW-SOM. The model was trained on the motifs extracted from the trips of a single driver from the UAH-DriveSet. Figure 5.9: Driving behavior rates for each DTW-SOM unit. For each unit, it shows the percentage of motif subsequences that come from each driving behavior. Interestingly, we can see that the three driving behaviors have very different distributions of their motif subsequences among the clusters. Clusters 11 and 17 have a clear majority of subsequences from normal trips and these clusters relate to a "no maneuver"pattern and a soft brake, respectively. The aggressive trips cover a higher variety of patterns, with 7 clusters showing a clear majority of subsequences from these trips. This increase in representation is expected as more motif subsequences will be extracted from trips where the driver performs more maneuvers. Most of these 7 clusters contain sharp acceleration patterns, which is usually associated with aggressive driving. Examples are the right turn with a pronounced brake in unit 20, the brake-acceleration pattern in unit 6 and the quick acceleration in unit 1. These sharp acceleration maneuvers without lateral movements are specially telling as they are associated with tailgating behavior, which in turn is a classical aggressive driving behavior. 74
5.4. EVALUATION AND DISCUSSION Finally, the clusters with higher rates of subsequences coming from drowsy trips are located in the lower row of the DTW-SOM grid, excluding unit 24. Units 14 and 18 contain a drift pattern, which is made of two consecutive lateral movements in opposing sides. It is very interesting to see these patterns here as they are usually present in cases where a tired driver lets the car deviate from a lane and then quickly recovers with a sharp turn. 5.4.2 Identifying driving behavior with TripMD From the first experiment, we see that TripMD can summarize the trips from a single driver so that different driving behaviors can be identified. However, to further test our system, we focus on a harder task, namely, identifying the driving behavior of an unknown driver from a set of drivers whose behavior we know. To accomplish this, we apply TripMD to the entire UAH-DriveSet and retrieve the main driving patterns of all those trips. Then, using the known driving behavior of five drivers (the training drivers), we derive scores for all the trips of the remaining driver (the testing driver). This testing driver was the same used in the first experiment. For each trip of the testing driver, a single score is computed for each of the three behaviors - normal, aggressive and drowsy. To compute the score for a specific testing trip and a given behavior b, we use the following process: 1. For each DWT-SOM cluster ci: a) Compute the rate rb i = nb i ni , where nb i is the number of subsequences in cluster ci that belong to training trips of the behavior b and ni is the total number of subsequences in cluster cithat belong to training trips. b) Compute ˆ ni , which is the number of motif subsequences in cluster ci that belong to testing trip. c) Derive the behavior score of cluster cias sb i=rb i׈ ni. 2. Compute the trip’s behavior score as sb = Pk i=1 sb i , where k is the number of DWTSOM clusters. After computing the three behavior scores for a testing trip, its predicted behavior is simply the behavior with the highest score. Finally, we compare the predicted behavior of each testing driver’s trips with the real behavior performed in those trips. Table 5.1 summarizes the results. The testing driver contains seven trips and, from these, TripMD assigns the correct behavior to all but one trip. The trip where the predicted behavior does not match the real behavior is the drowsy trip of the secondary road. To further illustrate these results, Figure 5.10 shows the behavior rates of the DTWSOM clusters for the training drivers and the testing driver. Here we can observe that 75
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS Table 5.1: Behavior scores for each testing trip. The score of the predicted behavior for each trip is highlighted in bold. The column named Behavior contains the real behavior of the trip. Route Behavior Aggressive score Drowsy score Normal score Motorway Normal 94.1 78.3 95.5 Secondary Normal 35.5 41.1 43.3 Secondary Normal 47.0 35.9 48.1 Motorway Aggressive 103.1 72.6 96.3 Secondary Aggressive 91.0 52.2 77.8 Motorway Drowsy 97.5 137.9 120.6 Secondary Drowsy 69.7 81.9 82.4 Figure 5.10: Behavior rates for the DTW-SOM units. For each unit, it shows the percentage of motif subsequences that come from each driving behavior. The three plots at the top contain the rates of the training trips while the three plots at the bottom contain the rates of the testing trips. the behavior distributions of the training drivers are close to behavior distributions of the testing driver. For instance, units 14 has a high normal behavior rate in both sets 76
5.4. EVALUATION AND DISCUSSION of trips, units 13, 25 and 32 have similarly high aggressive behavior rates and units 2, 8 and 21 have high drowsy behavior rates for both the testing and training drivers. Going back to the scores in Table 5.1, we note that the trips with the normal behaviorand the drowsy trip on the secondary road route have two predicted behaviors with very close scores, which may indicate that TripMD is not consistently catching these particular behaviors well. To further explore this issue, we use a resampling method to measure the stability of the computed scores. Concretely, we apply random sampling with replacement to the list of motifs extracted by TripMD and update the DTW-SOM clusters. The DTW-SOM is not retrained, and thus its units do not change. Instead, only the group of motifs assigned to each cluster are sampled. Since we take a sample of the same size as the original list of motifs, some motifs are repeated multiple times while others are never sampled. With the new sampled motifs, we then apply the same procedure to compute the behavior score of all the trips performed by the testing driver. This sampling method can be repeated many times and, for each sample, we get a new estimation of each trip’s behavior scores. Figure 5.11 shows the average behavior scores and their standard deviations for the testing driver’s trips obtained after 1000 samples. Figure 5.11: Summary statistics of the each testing trip’s behavior scores obtained with 1000 samples with replacement. The points encode the average scores while the errors bars encode the standard deviation. As expected, in the drowsy trip of the secondary road, the distribution of the scores for the normal and drowsy behavior are very close. Similarly, some scores for the normal trips in both the secondary and motorway routes overlap, which agrees with the initial assessment that TripMD is not strong at identifying the trips with the 77
CHAPTER 5. ARTICLE NO. 3 - TRIPMD: DRIVING PATTERNS INVESTIGATION VIA MOTIF ANALYSIS normal behaviors and the drowsy trip on the secondary road. On the other hand, the aggressive trips and the drowsy trip on the motorway have the correct behavior score more consistently higher than the remaining behavior scores. Thus, in these cases, TripMD is identifying successfully the underlying behavior of the driver. 5.5 Conclusion In this paper, we propose a system called TripMD, which identifies the main driving patterns from sensor recordings such as acceleration and velocity. Compared to previous work, our system not only extracts the time-series patterns present in trips recordings but is also capable of summarizing those patterns in a space-efficient visualization. This feature is highlighted in our first experiment, where we demonstrate that TripMD can discover a wide range of driving patterns from the trips performed by a single driver of the UAH-DriveSet dataset. We also conclude that the three driving behaviors marked in the dataset (normal, aggressive and drowsy) have distinct distributions among the extracted driving patterns, which can be used to determine the driving behavior of a driver from the behaviors of other drivers. Even though the results seem promising, there are still areas of improvement. Firstly, because of the Variable SAX discretization, the motif detection algorithm used in TripMD is not an exact algorithm. This means that we cannot guarantee to extract all the variable-length motifs. There are some new motif detection algorithms that claim to be exact, however, we could not find one that was capable of extracting motifs with member’s subsequences of difference sizes. Thus, investigating exact motif detection algorithms that work with variable-length motifs could be an interesting line for improvement. Additionally, we should further test TripMD with more datasets and different tasks, such as understanding whether TripMD can be used to distinguish between drivers with prior accidents from drivers without accidents and to inform car insurance pricing models. Testing TripMD with different datasets would also be helpful to further validate and fine-tune the default parameters of the system such as the default letter size. Another part that could be further tested with other datasets is the choice of percentiles for the VSAX representation. 78
Chapter 6 Conclusion 79
Bibliography [1] S. Nora and A. Minc. L’Informatisation de la Societé. fr. Paris: La Documentation française, 1978. isbn: 2-02-004974-0. [2] B. C. Burrows. “Book Reviews : Simon MORA and Alain MINC, The computerisation of society. A report to the President of France (MIT Press, Massachusetts and London, 1980). ISBN 0-262-14031-4. Cabinet Office, Advisory Council for Applied Re search and Development. Information Technology (HMSO, London, 1980), ISBN 0-11-6308184.” In: Journal of Information Science 3.1 (1981). _eprint: https://doi.org/10.1177/016555158100300110, pp. 49– 51. doi: 10.1177/016555158100300110 .url: https://doi.org/10.1177/ 016555158100300110. [3] S. Husnjak, D. Peraković, I. Forenbacher, and M. Mumdziev. “Telematics System in Usage Based Motor Insurance.” en. In: Procedia Engineering. 25th DAAAM International Symposium on Intelligent Manufacturing and Automation, 2014 100 (Jan. 2015), pp. 816–825. issn: 1877-7058. doi: 10.1016/ j.proeng.2015.01.436 .url: http://www.sciencedirect.com/science/ article/pii/S1877705815004634 (visited on 07/13/2020). [4] J. Wahlström, I. Skog, and P. Händel. “Smartphone-Based Vehicle Telematics: A Ten-Year Anniversary.” In: IEEE Transactions on Intelligent Transportation Systems 18.10 (Oct. 2017). Conference Name: IEEE Transactions on Intelligent Transportation Systems, pp. 2802–2825. issn: 1558-0016. doi: 10.1109/TITS. 2017.2680468. [5] S. Iwan, K. Małecki, and D. Stalmach. “Utilization of Mobile Applications for the Improvement of Traffic Management Systems.” en. In: Telematics - Support for Transport. Ed. by J. Mikulski. Communications in Computer and Information Science. Berlin, Heidelberg: Springer, 2014, pp. 48–58. isbn: 978-3-662-45317-9. doi:10.1007/978-3-662-45317-9_6. [6] J. Mikulski. “Using Telematics in Transport.” en. In: Transport Systems Telematics. Ed. by J. Mikulski. Communications in Computer and Information Science. Berlin, Heidelberg: Springer, 2010, pp. 175–182. isbn: 978-3-642-16472-9. doi:10.1007/978-3-642-16472-9_19. 87
BIBLIOGRAPHY [7] S. A. Shaheen and A. P. Cohen. “Carsharing and Personal Vehicle Services: Worldwide Market Developments and Emerging Trends.” In: International Journal of Sustainable Transportation 7.1 (Jan. 2013). Publisher: Taylor & Francis _eprint: https://doi.org/10.1080/15568318.2012.660103, pp. 5–34. issn: 1556-8318. doi: 10.1080/15568318.2012.660103 .url: https://doi.org/ 10.1080/15568318.2012.660103 (visited on 07/27/2020). [8] A. Fotouhi, R. Yusof, R. Rahmani, S. Mekhilef, and N. Shateri. “A review on the applications of driving data and traffic information for vehicles’ energy conservation.” en. In: Renewable and Sustainable Energy Reviews 37 (Sept. 2014), pp. 822–833. issn: 1364-0321. doi: 10.1016/j.rser.2014.05.077 .url: http://www.sciencedirect.com/science/article/pii/S136403211400402X (visited on 07/27/2020). [9] D. I. Tselentis, G. Yannis, and E. I. Vlahogianni. “Innovative motor insurance schemes: A review of current practices and emerging challenges.” In: Accident Analysis & Prevention 98 (Jan. 2017), pp. 139–148. issn: 0001-4575. doi: 10.1016/j.aap.2016.10.006 .url: http://www.sciencedirect.com/ science/article/pii/S0001457516303670 (visited on 01/27/2018). [10] T. A. Dingus, S. G. Klauer, V. L. Neale, A. Petersen, S. E. Lee, J. D. Sudweeks, M. A. Perez, J. Hankey, D. J. Ramsey, S. Gupta, C. Bucher, Z. R. Doerzaph, J. Jermeland, and R. R. Knipling. “The 100-Car Naturalistic Driving Study, Phase II - Results of the 100-Car Field Experiment.” In: (Apr. 2006). url: https://trid.trb.org/view/783477 (visited on 05/16/2018). [11] O. Carsten, K. Kircher, and S. Jamson. “Vehicle-based studies of driving in the real world: The hard truth?” In: Accident Analysis & Prevention 58 (Sept. 2013), pp. 162–174. issn: 0001-4575. doi: 10.1016/j.aap.2013.06.006 .url: http://www.sciencedirect.com/science/article/pii/S0001457513002340 (visited on 05/14/2018). [12] D. A. Johnson and M. M. Trivedi. “Driving style recognition using a smartphone as a sensor platform.” In: 2011 14th International IEEE Conference on Intelligent Transportation Systems (ITSC). Oct. 2011, pp. 1609–1615. doi: 10.1109/ITSC.2011.6083078. [13] J. Paefgen, F. Kehr, Y. Zhai, and F. Michahelles. “Driving Behavior Analysis with Smartphones: Insights from a Controlled Field Study.” In: Proceedings of the 11th International Conference on Mobile and Ubiquitous Multimedia. MUM ’12. New York, NY, USA: ACM, 2012, 36:1–36:8. isbn: 978-1-4503-1815-0. doi: 10.1145/2406367.2406412 .url: http://doi.acm.org/10.1145/ 2406367.2406412 (visited on 01/25/2018). 88
BIBLIOGRAPHY [14] S. Kantor and T. Stárek. “Design of Algorithms for Payment Telematics Systems Evaluating Driver’s Driving Style.” en. In: Transactions on Transport Sciences 7.1 (Mar. 2014), pp. 9–16. issn: 1802971X, 18029876. doi:10.2478/v10158- 012-0049-5 .url: http://tots.upol.cz/doi/10.2478/v10158-012-0049- 5.html (visited on 01/17/2018). [15] H. Eren, S. Makinist, E. Akin, and A. Yilmaz. “Estimating driving behavior by a smartphone.” In: 2012 IEEE Intelligent Vehicles Symposium. June 2012, pp. 234–239. doi:10.1109/IVS.2012.6232298. [16] K. Saleh, M. Hossny, and S. Nahavandi. “Driving behavior classification based on sensor data fusion using LSTM recurrent neural networks.” In: 2017 IEEE 20th International Conference on Intelligent Transportation Systems (ITSC). Oct. 2017, pp. 1–6. doi:10.1109/ITSC.2017.8317835. [17] W. Weidner, F. W. G. Transchel, and R. Weidner. “Classification of scalesensitive telematic observables for riskindividual pricing.” en. In: European Actuarial Journal 6.1 (July 2016), pp. 3–24. issn: 2190-9733, 2190-9741. doi: 10.1007/s13385-016-0127-x .url: https://link.springer.com/article/ 10.1007/s13385-016-0127-x (visited on 12/06/2017). [18] Y. L. Murphey, R. Milton, and L. Kiliaris. “Driver’s style classification using jerk analysis.” In: 2009 IEEE Workshop on Computational Intelligence in Vehicles and Vehicular Systems. Mar. 2009, pp. 23–28. doi:10.1109/CIVVS.2009.4938719. [19] J. Xie, A. R. Hilal, and D. Kulić. “Driving Maneuver Classification: A Comparison of Feature Extraction Methods.” In: IEEE Sensors Journal 18.12 (June 2018), pp. 4777–4784. issn: 1530-437X. doi:10.1109/JSEN.2017.2780089. [20] G. Singh, D. Bansal, and S. Sofat. “A smartphone based technique to monitor driving behavior using DTW and crowdsensing.” In: Pervasive and Mobile Computing 40 (Sept. 2017), pp. 56–70. issn: 1574-1192. doi: 10.1016/j.pmcj. 2017.06.003 .url: http://www.sciencedirect.com/science/article/ pii/S1574119216301250 (visited on 01/16/2019). [21] C. Woo and D. Kulić. “Manoeuvre segmentation using smartphone sensors.” In: 2016 IEEE Intelligent Vehicles Symposium (IV). June 2016, pp. 572–577. doi: 10.1109/IVS.2016.7535444. [22] Z. Camlica, A. Hilal, and D. Kulić. “Feature abstraction for driver behaviour detection with stacked sparse auto-encoders.” In: 2016 IEEE International Conference on Systems, Man, and Cybernetics (SMC). Oct. 2016, pp. 003299–003304. doi:10.1109/SMC.2016.7844743. [23] M. Wu, S. Zhang, and Y. Dong. “A Novel Model-Based Driving Behavior Recognition System Using Motion Sensors.” en. In: Sensors 16.10 (Oct. 2016), p. 1746. doi: 10.3390/s16101746 .url: https://www.mdpi.com/1424-8220/16/10/ 1746 (visited on 01/16/2019). 89
BIBLIOGRAPHY [24] J. F. Júnior, E. Carvalho, B. V. Ferreira, C. d. Souza, Y. Suhara, A. Pentland, and G. Pessin. “Driver behavior profiling: An investigation with different smartphone sensors and machine learning.” en. In: PLOS ONE 12.4 (2017), e0174959. issn: 1932-6203. doi: 10.1371/journal.pone.0174959 .url: https://journals.plos.org/plosone/article?id=10.1371/journal. pone.0174959 (visited on 01/16/2019). [25] E. Keogh and J. Lin. “Clustering of time-series subsequences is meaningless: implications for previous and future research.” en. In: Knowledge and Information Systems 8.2 (Aug. 2005), pp. 154–177. issn: 0219-3116. doi: 10.1007/ s10115-004-0172-7 .url: https://doi.org/10.1007/s10115-004-0172-7 (visited on 12/08/2018). [26] E. Romera, L. M. Bergasa, and R. Arroyo. “Need data for driver behaviour analysis? Presenting the public UAH-DriveSet.” In: 2016 IEEE 19th International Conference on Intelligent Transportation Systems (ITSC). Nov. 2016, pp. 387–392. doi:10.1109/ITSC.2016.7795584. [27] L. M. Bergasa, D. Almería, J. Almazán, J. J. Yebes, and R. Arroyo. “DriveSafe: An app for alerting inattentive drivers and scoring driving behaviors.” In: 2014 IEEE Intelligent Vehicles Symposium Proceedings. June 2014, pp. 240–245. doi: 10.1109/IVS.2014.6856461. [28] E. Romera, L. M. Bergasa, and R. Arroyo. “A Real-Time Multi-scale Vehicle Detection and Tracking Approach for Smartphones.” In: 2015 IEEE 18th International Conference on Intelligent Transportation Systems. Sept. 2015, pp. 1298– 1303. doi:10.1109/ITSC.2015.213. [29] F. Sagberg, S., G. Bianchi Piccinini, and J. Engström. “A Review of Research on Driving Styles and Road Safety.” In: Human factors 57 (June 2015). doi: 10.1177/0018720815591313. [30] D. de Waard, C. Dijksterhuis, and K. A. Brookhuis. “Merging into heavy motorway traffic by young and elderly drivers.” In: Accident Analysis & Prevention 41.3 (May 2009), pp. 588–597. issn: 0001-4575. doi: 10.1016/j.aap.2009. 02.011 .url: http://www.sciencedirect.com/science/article/pii/ S0001457509000414 (visited on 05/13/2018). [31] A. V. Desai and M. A. Haque. “Vigilance monitoring for operator safety: A simulation study on highway driving.” In: Journal of Safety Research 37.2 (Jan. 2006), pp. 139–147. issn: 0022-4375. doi: 10.1016/j.jsr.2005.11.003 . url: http://www.sciencedirect.com/science/article/pii/S0022437506000235 (visited on 05/13/2018). 90
BIBLIOGRAPHY [32] C. MacAdam, Z. Bareket, P. Fancher, and R. Ervin. “Using Neural Networks to Identify Driving Style and Headway Control Behavior of Drivers.” In: Vehicle System Dynamics 29.sup1 (Jan. 1998), pp. 143–160. issn: 0042-3114. doi: 10 . 1080 / 00423119808969557 .url: https : / / doi . org / 10 . 1080 / 00423119808969557 (visited on 05/13/2018). [33] T. A. Dingus, F. Guo, S. Lee, J. F. Antin, M. Perez, M. Buchanan-King, and J. Hankey. “Driver crash risk factors and prevalence evaluation using naturalistic driving data.” en. In: Proceedings of the National Academy of Sciences 113.10 (Mar. 2016), pp. 2636–2641. issn: 0027-8424, 1091-6490. doi: 10.1073/ pnas. 1513271113 .url: http: / /www . pnas.org /content/ 113/10 /2636 (visited on 05/19/2018). [34] M. Junger, R. West, and R. Timman. “Crime and Risky Behavior in Traffic: An Example of Cross-Situational Consistency.” en. In: Journal of Research in Crime and Delinquency 38.4 (Nov. 2001), pp. 439–459. issn: 0022-4278. doi: 10.1177/0022427801038004005 .url: https://doi.org/10.1177/ 0022427801038004005 (visited on 05/13/2018). [35] D. Robertson, M. Winnett, and R. Herrod. “Acceleration signatures.” In: Traffic engineering and control 33.9 (1992), pp. 485–491. issn: 0041-0683. url: https: / / www . safetylit . org / citations / index . php ? fuseaction = citations . viewdetails & citationIds[] = citjournalarticle _ 63339 _ 19 (visited on 05/13/2018). [36] A. E. A. Wåhlberg. “Driver celeration behaviour and accidents – an analysis.” In: Theoretical Issues in Ergonomics Science 9.5 (Sept. 2008), pp. 383–403. issn: 1463-922X. doi: 10.1080/14639220701596722 .url: https://doi.org/10. 1080/14639220701596722 (visited on 05/13/2018). [37] M. Dozza. “What factors influence drivers’ response time for evasive maneuvers in real traffic?” In: Accident Analysis & Prevention 58 (Sept. 2013), pp. 299– 308. issn: 0001-4575. doi: 10 . 1016 / j . aap . 2012 . 06 . 003 .url: http : / / www . sciencedirect . com / science / article / pii / S0001457512002254 (visited on 05/19/2018). [38] S. international. “Taxonomy and definitions for terms related to driving automation systems for on-road motor vehicles.” In: SAE (2018). [39] M. R. Endsley and D. B. Kaber. “Level of automation effects on performance, situation awareness and workload in a dynamic control task.” In: Ergonomics 42.3 (Mar. 1999). Publisher: Taylor & Francis _eprint: https://doi.org/10.1080/001401399185595, pp. 462–492. issn: 0014-0139. doi: 10.1080/001401399185595 .url: https: //doi.org/10.1080/001401399185595 (visited on 10/12/2021). 91
BIBLIOGRAPHY [40] N. Merat and A. H. Jamson. “Is Drivers’ Situation Awareness Influenced by a Fully Automated Driving Scenario?” In: Human factors, security and safety. Shaker Publishing. 2009. [41] A. H. Jamson, N. Merat, O. M. Carsten, and F. C. Lai. “Behavioural changes in drivers experiencing highly-automated vehicle control in varying traffic conditions.” In: Transportation research part C: emerging technologies 30 (2013), pp. 116–125. [42] N. Merat, A. H. Jamson, F. C. Lai, M. Daly, and O. M. Carsten. “Transition to manual: Driver behaviour when resuming control from a highly automated vehicle.” In: Transportation research part F: traffic psychology and behaviour 27 (2014), pp. 274–282. [43] X. Wang, A. Mueen, H. Ding, G. Trajcevski, P. Scheuermann, and E. Keogh. “Experimental comparison of representation methods and distance measures for time series data.” en. In: Data Mining and Knowledge Discovery 26.2 (Mar. 2013), pp. 275–309. issn: 1384-5810, 1573-756X. doi: 10.1007/s10618-012- 0250-5 .url: https://link.springer.com/article/10.1007/s10618-012- 0250-5 (visited on 05/05/2018). [44] J. Lin, E. Keogh, L. Wei, and S. Lonardi. “Experiencing SAX: a novel symbolic representation of time series.” en. In: Data Mining and Knowledge Discovery 15.2 (Oct. 2007), pp. 107–144. issn: 1384-5810, 1573-756X. doi: 10.1007/ s10618-007-0064-z .url: https://link.springer.com/article/10.1007/ s10618-007-0064-z (visited on 05/15/2018). [45] R. Agrawal, C. Faloutsos, and A. Swami. “Efficient similarity search in sequence databases.” en. In: Foundations of Data Organization and Algorithms. Lecture Notes in Computer Science. Springer, Berlin, Heidelberg, Oct. 1993, pp. 69–84. isbn: 978-3-540-57301-2 978-3-540-48047-1. doi: 10.1007/3-540-57301- 1_5 .url: https://link.springer.com/chapter/10.1007/3-540-57301- 1_5 (visited on 05/15/2018). [46] Y. Cai and R. Ng. “Indexing Spatio-temporal Trajectories with Chebyshev Polynomials.” In: Proceedings of the 2004 ACM SIGMOD International Conference on Management of Data. SIGMOD ’04. New York, NY, USA: ACM, 2004, pp. 599– 610. isbn: 978-1-58113-859-7. doi: 10.1145/1007568.1007636 .url: http: //doi.acm.org/10.1145/1007568.1007636 (visited on 05/15/2018). [47] K. - P. Chan and A. W. - C. Fu. “Efficient time series matching by wavelets.” In: Proceedings 15th International Conference on Data Engineering (Cat. No.99CB36337). Mar. 1999, pp. 126–133. doi:10.1109/ICDE.1999.754915. 92
BIBLIOGRAPHY [48] E. Keogh, K. Chakrabarti, M. Pazzani, and S. Mehrotra. “Dimensionality Reduction for Fast Similarity Search in Large Time Series Databases.” en. In: Knowledge and Information Systems 3.3 (Aug. 2001), pp. 263–286. issn: 0219-1377. doi: 10.1007/PL00011669 .url: https://link.springer.com/article/10. 1007/PL00011669 (visited on 05/15/2018). [49] K. Chakrabarti, E. Keogh, S. Mehrotra, and M. Pazzani. “Locally Adaptive Dimensionality Reduction for Indexing Large Time Series Databases.” In: ACM Trans. Database Syst. 27.2 (June 2002), pp. 188–228. issn: 0362-5915. doi: 10. 1145/568518.568520 .url: http://doi.acm.org/10.1145/568518.568520 (visited on 05/15/2018). [50] F. Korn, H. V. Jagadish, and C. Faloutsos. “Efficiently Supporting Ad Hoc Queries in Large Datasets of Time Sequences.” In: Proceedings of the 1997 ACM SIGMOD International Conference on Management of Data. SIGMOD ’97. New York, NY, USA: ACM, 1997, pp. 289–300. isbn: 978-0-89791-911-1. doi: 10. 1145/253260.253332 .url: http://doi.acm.org/10.1145/253260.253332 (visited on 05/15/2018). [51] Q. Chen, L. Chen, X. Lian, Y. Liu, and J. X. Yu. “Indexable PLA for Efficient Similarity Search.” In: Proceedings of the 33rd International Conference on Very Large Data Bases. VLDB ’07. Vienna, Austria: VLDB Endowment, 2007, pp. 435–446. isbn: 978-1-59593-649-3. url: http://dl.acm.org/citation.cfm?id= 1325851.1325903 (visited on 05/15/2018). [52] J. Serrà and J. L. Arcos. “An empirical evaluation of similarity measures for time series classification.” In: Knowledge-Based Systems 67 (Sept. 2014), pp. 305–314. issn: 0950-7051. doi: 10.1016/j.knosys.2014.04.035 .url: http://www.sciencedirect.com/science/article/pii/S0950705114001658 (visited on 05/05/2018). [53] G. Das, K. - I. Lin, H. Mannila, G. Renganathan, and P. Smyth. “Rule Discovery from Time Series.” In: Proceedings of the Fourth International Conference on Knowledge Discovery and Data Mining. KDD’98. New York, NY: AAAI Press, 1998, pp. 16–22. url: http://dl.acm.org/citation.cfm?id=3000292. 3000296 (visited on 05/16/2018). [54] E. Frentzos, K. Gratsias, and Y. Theodoridis. “Index-based Most Similar Trajectory Search.” In: 2007 IEEE 23rd International Conference on Data Engineering. Apr. 2007, pp. 816–825. doi:10.1109/ICDE.2007.367927. [55] D. J. Berndt and J. Clifford. “Using Dynamic Time Warping to Find Patterns in Time Series.” In: Proceedings of the AAAI Workshop on Knowledge Discovery in Databases. 1994, pp. 359–370. 93
BIBLIOGRAPHY [56] M. Vlachos, G. Kollios, and D. Gunopulos. “Discovering similar multidimensional trajectories.” In: Proceedings 18th International Conference on Data Engineering. 2002, pp. 673–684. doi:10.1109/ICDE.2002.994784. [57] L. Chen and R. Ng. “On the Marriage of Lp-norms and Edit Distance.” In: Proceedings of the Thirtieth International Conference on Very Large Data Bases - Volume 30. VLDB ’04. Toronto, Canada: VLDB Endowment, 2004, pp. 792– 803. isbn: 978-0-12-088469-8. url: http://dl.acm.org/citation.cfm?id= 1316689.1316758 (visited on 05/16/2018). [58] L. Chen, M. T. Özsu, and V. Oria. “Robust and Fast Similarity Search for Moving Object Trajectories.” In: Proceedings of the 2005 ACM SIGMOD International Conference on Management of Data. SIGMOD ’05. New York, NY, USA: ACM, 2005, pp. 491–502. isbn: 978-1-59593-060-6. doi: 10.1145/1066157. 1066213 .url: http://doi.acm.org/10.1145/1066157.1066213 (visited on 05/16/2018). [59] M. D. Morse and J. M. Patel. “An Efficient and Accurate Method for Evaluating Time Series Similarity.” In: Proceedings of the 2007 ACM SIGMOD International Conference on Management of Data. SIGMOD ’07. New York, NY, USA: ACM, 2007, pp. 569–580. isbn: 978-1-59593-686-8. doi: 10.1145/1247480. 1247544 .url: http://doi.acm.org/10.1145/1247480.1247544 (visited on 05/16/2018). [60] P. F. Marteau. “Time Warp Edit Distance with Stiffness Adjustment for Time Series Matching.” In: IEEE Transactions on Pattern Analysis and Machine Intelligence 31.2 (Feb. 2009), pp. 306–318. issn: 0162-8828. doi: 10.1109/TPAMI. 2008.76. [61] J. Serrà and J. L. Arcos. “A Competitive Measure to Assess the Similarity between Two Time Series.” en. In: Case-Based Reasoning Research and Development. Lecture Notes in Computer Science. Springer, Berlin, Heidelberg, Sept. 2012, pp. 414–427. isbn: 978-3-642-32985-2 978-3-642-32986-9. doi: 10.1007/978- 3- 642- 32986- 9_31 .url: https://link.springer.com/ chapter/10.1007/978-3-642-32986-9_31 (visited on 05/16/2018). [62] Y. Chen, M. A. Nascimento, B. C. Ooi, and A. K. H. Tung. “SpADe: On Shape-based Pattern Detection in Streaming Time Series.” In: 2007 IEEE 23rd International Conference on Data Engineering. Apr. 2007, pp. 786–795. doi: 10.1109/ICDE.2007.367924. [63] J. Aßfalg, H. - P. Kriegel, P. Kröger, P. Kunath, A. Pryakhin, and M. Renz. “Similarity Search on Time Series Based on Threshold Queries.” en. In: Advances in Database Technology - EDBT 2006. Lecture Notes in Computer Science. 94
BIBLIOGRAPHY Springer, Berlin, Heidelberg, Mar. 2006, pp. 276–294. isbn: 978-3-540-32960- 2 978-3-540-32961-9. doi: 10 . 1007 / 11687238 _ 19 .url: https : / / link . springer.com/chapter/10.1007/11687238_19 (visited on 05/16/2018). [64] V. I. Levenshtein. “Binary Codes Capable of Correcting Deletions, Insertions and Reversals.” In: Soviet Physics Doklady 10 (Feb. 1966), p. 707. url: http: //adsabs.harvard.edu/abs/1966SPhD...10..707L (visited on 05/16/2018). [65] J. Lin, E. Keogh, S. Lonardi, and P. Patel. “Finding Motifs in Time Series.” In: Proceedings of the Second Workshop on Temporal Data Mining. July 2002, pp. 53– 68. url: http://citeseer.ist.psu.edu/lin02finding.html (visited on 02/03/2019). [66] Y. Tanaka, K. Iwamoto, and K. Uehara. “Discovery of Time-Series Motif from Multi-Dimensional Data Based on MDL Principle.” en. In: Machine Learning 58.2 (Feb. 2005), pp. 269–300. issn: 1573-0565. doi: 10.1007/s10994-005- 5829-2 .url: https://doi.org/10.1007/s10994-005-5829-2 (visited on 01/22/2019). [67] S. Torkamani and V. Lohweg. “Survey on time series motif discovery.” en. In: Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery 7.2 (2017), e1199. issn: 1942-4795. doi: 10 . 1002 / widm . 1199 .url: https : //onlinelibrary .wiley.com/doi/abs/ 10.1002/widm.1199 (visited on 01/22/2019). [68] A. Mueen. “Time series motif discovery: dimensions and applications.” en. In: Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery 4.2 (2014), pp. 152–159. issn: 1942-4795. doi: 10.1002/widm.1119 .url: https: //onlinelibrary .wiley.com/doi/abs/ 10.1002/widm.1119 (visited on 01/22/2019). [69] C. - C. M. Yeh, Y. Zhu, L. Ulanova, N. Begum, Y. Ding, H. A. Dau, D. F. Silva, A. Mueen, and E. Keogh. “Matrix Profile I: All Pairs Similarity Joins for Time Series: A Unifying View That Includes Motifs, Discords and Shapelets.” In: 2016 IEEE 16th International Conference on Data Mining (ICDM). ISSN: 2374- 8486. Dec. 2016, pp. 1317–1322. doi:10.1109/ICDM.2016.0179. [70] D. Minnen, C. Isbell, I. Essa, and T. Starner. “Detecting Subdimensional Motifs: An Efficient Algorithm for Generalized Multivariate Pattern Discovery.” In: Seventh IEEE International Conference on Data Mining (ICDM 2007). Oct. 2007, pp. 601–606. doi:10.1109/ICDM.2007.52. [71] A. Vahdatpour, N. Amini, and M. Sarrafzadeh. “Toward Unsupervised Activity Discovery Using Multi-dimensional Motif Detection in Time Series.” In: Proceedings of the 21st International Jont Conference on Artifical Intelligence. IJCAI’09. San Francisco, CA, USA: Morgan Kaufmann Publishers Inc., 2009, 95