EVENT DETECTION FROM TIME SERIES DATA SEQUENCES
Patent Information
- Application Number
- DE602015092286
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2015-06-26
- Publication Date
- 2025-09-03
- Estimated Expiration
- 2035-06-26
AI Technical Summary
Existing methods for detecting events from time-series data sequences, particularly in vehicular contexts, face challenges in accurately identifying variable duration patterns and require subjective parameter settings, leading to inconsistent results.
A system and method utilizing a 2D shape histogram generation and concatenation technique, combined with a Support Vector Machine classifier, to analyze time-series data from multiple sensors, enabling accurate event detection by representing global distribution of sample points and employing a linear concatenation method to enhance feature discrimination.
Enhances the accuracy of event detection by effectively handling variable duration patterns and improving feature discrimination, resulting in robust event recognition across diverse scenarios.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS AND PRIORITY
[0001] The present application claims priority from Indian patent application 2074 / MUM / 2014 filed on 26th June 2014.TECHNICAL FIELD
[0002] The present subject matter described herein, in general, relates to detecting an event from time-series data sequences.BACKGROUND
[0003] An event can be detected from time-series data sequences using several techniques known in the art. Generally the time-series data sequences extracted using a sensor comprise unique signal patterns corresponding to the event. For example, the event in case of a vehicle may be an abrupt braking of the vehicle, rapid rise / fall in acceleration / deceleration of the vehicle, change in direction of the vehicle and the like. The time series data sequences may be processed using techniques known in the art, for recognizing the unique signal patterns and further identifying the event based on the unique signal patterns.
[0004] Referring to figure 1a and figure 1b, the time-series data sequences captured using the sensor are illustrated, wherein x-axis represents time in seconds and y-axis represents values of speed. The figure 1a shows a time-series data sequence representing speed of the vehicle. A window 102 of the time-series data sequence highlights an event related to the vehicle. The event may be a hard-stop event related to the vehicle. During the hard-stop event while brakes are applied to the vehicle running at high speeds, the speed of the vehicle may reduce drastically. The unique signal pattern present in the time-series data sequence, as illustrated in the window 102, may be identified and thus the hard-stop event related to the vehicle may be determined. Figure 1b shows a time-series data sequence representing speed of the vehicle in another case. Further, windows 104 highlight the unique signal patterns indicating the hard-stop events related to the vehicle, where speed of the vehicle reduces drastically. US 2014 / 111647 A1 discloses a system and method for analyzing and wirelessly transmitting information in real-time, comprising capturing snapshots and videos, by utilizing for example a smartphone. The images are analyzed in conjunction with other system data to provide the user: 3 dimensional images, GPS coordinates, safety alerts, etc. In particular, the system is mountable within a vehicle interior to provide: road conditions, dangerous driving situations, the make / model / manufacturer of surrounding cars, GPS coordinates, and the identity of local businesses. The user may also share the information via wireless transmissions with surrounding users possessing the same system, such as for real-time video gaming systems. And the system may also be detached from the vehicle for use in other scenarios, such as searching a merchant database for matching items and wirelessly sending the information to other system users (Abstract). L.S. Ribeiro: "Object recognition for semantic robot vision" discloses recognizing objects in an everyday scene is a major step in unsupervised image understanding. An intelligent agent needs to first identify each object in an environment scene, so it could eventually understand all the dynamics of the semantic content. However, unsupervised learning and unsupervised object recognition remains a great challenge in the vision research area. Our work is a transverse approach in unsupervised object learning and object recognition. We built an agent capable of locating, in a complex scene, an instance of a requested category. The name of a category is uploaded to the agent's system and it autonomously learns the category appearance, by searching the Internet and looking for category examples. Then it explores a static picture of the surrounding environment, looking for an instance of the previously learned category. This dissertation focus on the object detection and object recognition in a complex picture scene. We use Scale Invariant Feature Transform (SIFT) and Roy's Shape Representation (RSR) to represent an object, and an ensemble of several classification techniques to recognize an object. To obtain the object's location on the complex scene we used scene segmentation, based on image colour saliencies, and object extraction based on contour analysis (Abstract). Rui Pereira "Learning Visual Object Categories with Global Descriptors and Local Features" discloses Different types of visual object categories can be found in real-world applications. Some categories are very heterogeneous in terms of local features (broad categories) while others are consistently characterized by some highly distinctive local features (narrow categories). The work described in this paper was motivated by the need to develop representations and categorization mechanisms that can be applied to domains involving different types of categories. A second concern of the paper is that these representations and mechanisms have potential for scaling up to large numbers of categories. The approach is based on combinining global shape descriptors with local features. A new shape representation is proposed. Two additional representations are used, one also capturing the object's shape and another based on sets of highly distinctive local features. Basic classifiers following the nearest-neighbor rule were implemented for each representation. A meta-level classifier, based on a voting strategy, was also implemented. The relevance of each representation and classifier to both broad and narrow categories is evaluated on two datasets with a combined total of 114 categories (Abstract). Kumar Roy: "Learning words from sights and sounds: a computational model" discloses an implemented computational model of word acquisition which learns directly from raw multimodal sensory input. Set in an information theoretic framework, the model acquires a lexicon by finding and statistically modeling consistent cross-modal structure. The model has been implemented in a system using novel speech processing, computer vision, and machine learning algorithms. In evaluations the model successfully performed speech segmentation, word discovery and visual categorization from spontaneous infant-directed speech paired with video images of single objects. These results demonstrate the possibility of using state-of-the-art techniques from sensory pattern recognition and machine learning to implement cognitive models which can process raw sensor data without the need for human transcription or labeling (Abstract). Ehtesham Hassan: "Multi-Sensor Event Detection using Shape Histograms" discloses vehicular sensor data consists of multiple time-series arising from a number of sensors. Using such multi-sensor data we would like to detect occurrences of specific events that vehicles encounter, e.g., corresponding to particular maneuvers that a vehicle makes or conditions that it encounters. Events are characterized by similar waveform patterns re-appearing within one or more sensors. Further such patterns can be of variable duration. In this work, we propose a method for detecting such events in time-series data using a novel feature descriptor motivated by similar ideas in image processing. We define the shape histogram: a constant dimension descriptor that nevertheless captures patterns of variable duration. We demonstrate the efficacy of using shape histograms as features to detect events in an SVM-based, multi-sensor, supervised learning scenario, i.e., multiple time-series are used to detect an event. We present results on real-life vehicular sensor data and show that our technique performs better than available pattern detection implementations on our data, and that it can also be used to combine features from multiple sensors resulting in better accuracy than using any single sensor. Since previous work on pattern detection in time-series has been in the single series context, we also present results using our technique on multiple standard time-series datasets and show that it is the most versatile in terms of how it ranks compared to other published results (Abstract). Jason Lines: "A shapelet transform for time series classification" discloses that the problem of time series classification (TSC), where we consider any real-valued ordered data a time series, presents a specific machine learning challenge as the ordering of variables is often crucial in finding the best discriminating features. One of the most promising recent approaches is to find shapelets within a data set. A shapelet is a time series subsequence that is identified as being representative of class membership. The original research in this field embedded the procedure of finding shapelets within a decision tree. We propose disconnecting the process of finding shapelets from the classification algorithm by proposing a shapelet transformation. We describe a means of extracting the k best shapelets from a data set in a single pass, and then use these shapelets to transform data by calculating the distances from a series to each shapelet. We demonstrate that transformation into this new data space can improve classification accuracy, whilst retaining the explanatory power provided by shapelets (Abstract). Navin Madicar: "Parameter-free subsequences time series clustering with various-width clusters" discloses that in time series mining, one of the interesting tasks that attract many researchers is time series clustering which is classified into two main categories. Whole time series clustering considers how to cluster multiple time series, and the other one is Subsequence Time Series (STS) clustering, a clustering of subparts or subsequences within a single time series. Deplorably, STS clustering is not preferable even though it had widely been used as a subroutine in various mining tasks, e.g., rule discovery, anomaly detection, or classification, due to the recent finding a decade ago that STS clustering problem can produce meaningless results. There have been numerous attempts to resolve this problem but seemed to be unsuccessful. Until the two most recent attempts, they seem to accomplish in producing meaningful results; however, their approaches do need some predefined constraint values, such as the width of the subsequences that are in fact quite subjective and sensitive. Thus, we propose a novel parameter-free clustering technique to eliminate this problem by utilizing a motif discovery algorithm and some statistical principles to properly determine these parameters. Our experimental results from well-known datasets demonstrate the effectiveness of the proposed algorithm in selecting the proper subsequence width, and in turn leading to meaningful and highly accurate results (Abstract). Thanawin Rakthanmanon: "Time Series Epenthesis: Clustering Time Series Streams Requires Ignoring Some Data" discloses given the pervasiveness of time series data in all human endeavors, and the ubiquity of clustering as a data mining application, it is somewhat surprising that the problem of time series clustering from a single stream remains largely unsolved. Most work on time series clustering considers the clustering of individual time series, e.g., gene expression profiles, individual heartbeats or individual gait cycles. The few attempts at clustering time series streams have been shown to be objectively incorrect in some cases, and in other cases shown to work only on the most contrived datasets by carefully adjusting a large set of parameters. In this work, we make two fundamental contributions. First, we show that the problem definition for time series clustering from streams currently used is inherently flawed, and a new definition is necessary. Second, we show that the Minimum Description Length (MDL) framework offers an efficient, effective and essentially parameter-free method for time series clustering. We show that our method produces objectively correct results on a wide variety of datasets from medicine, zoology and industrial process analyses (Abstract). SUMMARY
[0005] This summary is provided to introduce aspects related to systems and methods for detecting an event from time-series data sequences and the aspects are further described below in the detailed description. This summary is not intended to identify essential features of subject matter nor is it intended for use in determining or limiting the scope of the subject matter.
[0006] In one implementation, a system for detecting an event relating to a vehicle from time-series data sequences is as claimed in claim 2.
[0007] In another implementation, a method for detecting an event relating to a vehicle from time-series data sequences is as claimed in claim 1.
[0008] Yet in another implementation, a non-transitory computer readable medium embodying a program executable in a computing device for detecting an event relating to a vehicle from time-series data sequences is disclosed. The program comprises a program code for receiving the time-series data sequences of variable lengths generated by a plurality of sensors, wherein the time-series data sequences comprise timestamp information. The program comprises a program code for sampling the time-series data sequences at a uniform sampling rate, wherein the time-series data sequences are sampled for generating sample points. The program further comprises a program code for generating a plurality of pairs of sample points using the sample points such that each sample point is paired with one another. The program further comprises a program code for computing a distance matrix (D) and an angle matrix (A) for one or more pairs of the sample points of the plurality of pairs of sample points. The program further comprises a program code for generating a two-dimensional (2D) shape histogram for the time-series data sequence using the distance matrix (D) and the angle matrix (A). The 2D shape histogramis having a constant dimension andrepresents global distribution of the plurality of pairs of sample points, and wherein the global distribution of the plurality of pairs of sample points is computed using the distance matrix (D) and the angle matrix (A). The program further comprises a program code for concatenating 2D shape histograms for the time-series data sequences based on the timestamp information to generate a concatenated shape histogram. The program further comprises a program code for matching the concatenated shape histogram with a pre-stored set of shape histograms to detect an event.BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The same numbers are used throughout the drawings to refer like features and components. Figure 2 illustrates a network implementation of a system for detecting an event from time-series data sequences, in accordance with an embodiment of the present subject matter. Figure 3 illustrates the system of Figure 2, in accordance with an embodiment of the present subject matter. Figure 4a illustrates a time-series data sequence S1 captured using a sensor 1 (pressure sensor), in accordance with an embodiment of the present subject matter. Figure 4b illustrates a time-series data sequence S2 captured using a sensor 2 (speed sensor), in accordance with an embodiment of the present subject matter. Figure 4c illustrates a time-series data sequence S3 captured using a sensor 3 (gear sensor), in accordance with an embodiment of the present subject matter. Figure 5 illustrates a time-series data sequence S4 represented in two-dimensional (2D) Euclidean space. Figure 6a illustrates a time-series data sequence S5 captured using a sensor. Figure 6b illustrates the 2D shape histogram corresponding to the time-series data sequence S5. Figure 7a illustrates a time-series data sequence S6 captured using a sensor. Figure 7b illustrates the 2D shape histogram corresponding to the time-series data sequence S6. Figure 8 shows a flowchart illustrating a method for detecting an event from time-series data sequences, in accordance with an embodiment of the present subject matter. DETAILED DESCRIPTION
[0010] Systems and methods for detecting an event from time-series data sequences are described. The event may be detected from the time-series data sequences upon processing the time-series data sequences. In order to generate the time-series data sequences related to the event, a plurality of sensors may be used. The time-series data sequences generated by the sensors may comprise different waveform characteristics corresponding to the event. Further, the time-series data sequences may be of variable lengths and may also comprise timestamp information.
[0011] The time-series data sequences may be sampled at a uniform sampling rate. Further, the time-series data sequences may be sampled for generating sample points. Further, the sample points may be paired with one another to generate a plurality of pairs of sample points.
[0012] The time-series data sequences may be represented in a two-dimensional (2D) Euclidean space. The 2D Euclidean space may be used for computing Euclidean distances between the sample points of the plurality of pairs of sample points. The Euclidean distances may be used further for determining a distance matrix. The 2D Euclidean space may further be used for computing angles between the sample points of the plurality of pairs of sample points. The angles between the sample points may be used for determining an angle matrix.
[0013] The distance matrix and the angle matrix may be used for determining a global distribution of the plurality of pairs of sample points. The global distribution of the plurality of pairs of sample points may represent a 2D shape histogram, wherein the 2D shape histogram may be of constant dimension. The 2D shape histogram for the time-series data sequences may be concatenated using a linear concatenation technique for generating a concatenated shape histogram. Further, the timestamp information may be used for concatenating the 2D shape histograms.
[0014] The concatenated shape histogram may further be matched with a pre-stored set of shape histograms, using a Support Vector Machine (SVM) classifier, for recognizing the event. The pre-stored set of shape histograms may comprise 2D shape histograms associated with an identified category of the event.
[0015] While aspects of described system and method for detecting an event from time-series data sequences may be implemented in any number of different computing systems, environments, and / or configurations, the embodiments are described in the context of the following exemplary system.
[0016] Referring to Figure 2, a network implementation 200 of a system 202 for detecting an event from time-series data sequences is illustrated, in accordance with an embodiment of the present subject matter. In one embodiment, the system 202 may facilitate the detection of an event from time-series data sequences. At first, the system 202 may employ sensors to capture the time-series data sequences. The time-series data sequences may be of variable lengths. The time-series data sequences may be sampled at a uniform sampling rate, wherein the time-series data sequences may be sampled for generating sample points. The system 202 may compute a global distribution of the plurality of pairs of sample points. The global distribution of the plurality of pairs of sample points may represent a 2D shape histogram for a time-series data sequence, wherein the 2D shape histogram may be of constant dimension. The system 202 may generate a concatenated shape histogram using the 2D shape histogram for each time-series data sequence. The system 202 may generate the concatenated shape histogram using the linear concatenation technique. Finally, the system 202 may detect the event by matching the concatenated shape histogram with the pre-stored set of shape histograms. The pre-stored set of shape histograms may comprise 2D shape histograms corresponding to relevant events.
[0017] Although the present subject matter is explained considering that the system 202 is implemented for detecting the event from the time-series data sequences, it may be understood that the system 202 may also be implemented in a variety of computing systems, such as a laptop computer, a desktop computer, a notebook, a workstation, a mainframe computer, a server, a network server, a tablet, a mobile phone, and the like. In one embodiment, the system 202 may be implemented in a cloud-based environment. It will be understood that the system 202 may be accessed by multiple users through one or more user devices 204-1, 204-2...204-N, collectively referred to as user device 204 hereinafter, or applications residing on the user device 204. Examples of the user device 204 may include, but are not limited to, a portable computer with a webcam, a personal digital assistant with a camera, a handheld device with a camera, and a digital camera. The user device 204 is communicatively coupled to the system 202 through a network 206.
[0018] In one implementation, the network 206 may be a wireless network, a wired network or a combination thereof. The network 206 can be implemented as one of the different types of networks, such as intranet, local area network (LAN), wide area network (WAN), the internet, and the like. The network 206 may either be a dedicated network or a shared network. The shared network represents an association of the different types of networks that use a variety of protocols, for example, Hypertext Transfer Protocol (HTTP), Transmission Control Protocol / Internet Protocol (TCP / IP), Wireless Application Protocol (WAP), and the like, to communicate with one another. Further the network 206 may include a variety of network devices, including routers, bridges, servers, computing devices, storage devices, and the like.
[0019] Referring now to Figure 3, the system 202 is illustrated in accordance with an embodiment of the present subject matter. In one embodiment, the system 202 may include at least one processor 302, an input / output (I / O) interface 304, and a memory 306. The at least one processor 302 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuitries, and / or any devices that manipulate signals based on operational instructions. Further, the at least one processor 302 may comprise a multi-core architecture. Among other capabilities, the at least one processor 302 is configured to fetch and execute computer-readable instructions or modules stored in the memory 306.
[0020] The I / O interface 304 may include a variety of software and hardware interfaces, for example, a web interface, a graphical user interface, and the like. The I / O interface 304 may allow the system 202 to interact with a user directly or through the user devices 204. Further, the I / O interface 304 may enable the system 202 to communicate with other computing devices, such as web servers and external data servers (not shown). The I / O interface 304 can facilitate multiple communications within a wide variety of networks and protocol types, including wired networks, for example, LAN, cable, etc., and wireless networks, such as WLAN, cellular, or satellite. The I / O interface 304 may include one or more ports for connecting a number of devices to one another or to another server.
[0021] The memory 306 may include any computer-readable medium or computer program product known in the art including, for example, volatile memory, such as static random access memory (SRAM) and dynamic random access memory (DRAM), and / or non-volatile memory, such as read only memory (ROM), erasable programmable ROM, flash memories, hard disks, optical disks, a compact disks (CDs), digital versatile disc or digital video disc (DVDs) and magnetic tapes. The memory 306 may include modules 308 and data 318.
[0022] The modules 308 include routines, programs, objects, components, data structures, etc., which perform particular tasks or implement particular abstract data types. In one implementation, the modules 308 may include a pairing module 310, a matrix computing module 312, a histogram generating and event determining (HGED) module 314, and other modules 316. The other modules 316 may include programs or coded instructions that supplement applications and functions of the system 202.
[0023] The data 318, amongst other things, serves as a repository for storing data processed, received, and generated by one or more of the modules 308. The data 318 may also include a system database 320, and other data 322. The other data 322 may include data generated as a result of the execution of one or more modules in the other modules 316.
[0024] In one implementation, at first, the sensors may be positioned across an environment for detecting events related to the environment. For example, the sensors may be positioned across a vehicle for determining the events related to the vehicle. The events related to the vehicle may comprise an abrupt braking of the vehicle (hard-stop event), rapid rise / fall in acceleration / deceleration of the vehicle, change in direction of the vehicle, and the like. The sensors may capture data related to the event. The data captured by the sensors may be represented as time series data sequences. The time-series data sequences may comprise timestamp information.
[0025] Further, the time-series data sequences may be sampled at a uniform sampling rate wherein the time-series data sequences may be sampled for generating sample points. The time-series data sequences captured by the sensors may be of variable lengths such that the time duration of the time-series data sequences may vary. Thus, the time-series data sequences captured by the sensors (more than one sensor) may be used for determining the event related to the vehicle. The event may be determined accurately as the time-series data sequences from multiple sensors may be used.
[0026] In an example, a time-series data sequence S1 captured using a sensor 1 (pressure sensor) for a hard-stop event related to the vehicle is shown in figure 4a. In figure 4a, x-axis represents time (seconds) and y-axis represents brake cylinder pressure (Pounds per Square Inch, PSI). The time-series data sequence S1 represents a brake cylinder pressure of the vehicle during the hard-stop event. Further, the time-series data sequence S1 may include missing signal values during certain time intervals.
[0027] In an example, a time-series data sequence S2 captured using a sensor 2 (speed sensor) for the hard-stop event related to the vehicle is shown in figure 4b. In figure 4b, x-axis represents time (seconds) and y-axis represents speed (Miles per Hour, MPH). The time-series data sequence S2 represents a wheel speed of the vehicle, during the hard-stop event. Further, the time-series data sequence S2 may include missing signal values during certain time intervals.
[0028] In an example, a time-series data sequence S3 captured using a sensor 3 (gear sensor) for a hard-stop event related to the vehicle is shown in figure 4c. In figure 4c, x-axis represents time (seconds) and y-axis represents a gear number (numbers, N). The time-series data sequence S3 represents a gear number related to the vehicle, during the hard-stop event. Further, the time-series data sequence S3 may include missing signal values during certain time intervals.
[0029] In an example, a signal pattern representing the hard-stop event of the vehicle may be determined using the sensor 1, the sensor 2, and the sensor 3 upon applying a predefined rule 1, as mentioned below, Rule 1 = Sensor 1 is greater than s 1 ∩ Sensor 2 is greater than s 2 ∩ Sensor 3 is in s 31 , … . . , s 3 m ∩ drop in sensor 2 is greater than s 2 ∗
[0030] Here, s 1 denotes a positive pressure threshold value, s 2 denotes a positive speed threshold value, [s 31 ,.....,s 3m ] denotes the gear numbers, and s 2 * denotes a negative speed threshold. The positive pressure threshold value may refer to a maximum threshold value of the sensors and the negative speed threshold may refer to a minimum threshold value of the sensors.
[0031] In another example, extreme boundaries (left boundary and right boundary) of the signal pattern indicative of the event may be defined by a rule 2, as mentioned below, Rule 2 = Left boundary : Sensor 1 is less than s 1 for consecutive t 1 time ∪ c seconds before a critical point Right boundary : Sensor 1 is less than d for consecutive e seconds ∩ sensor 2 is greater than f for consecutive g seconds ∪ 35 sample points before the critical point
[0032] Post capturing the time-series data sequences of variable lengths by the sensors, the system 202 may employ the pairing module 310 to receive the time-series data sequences of variable lengths. The pairing module 310 may further pair the sample points for generating the plurality of pairs of sample points. Each sample point may be paired with one another to generate the plurality of pairs of sample points. The number of pairs (P) of sample points generated for a time-series data sequence 'S' comprising 'L' number of sample points may be calculated using an below mentioned equation 1, P = C 2 <none / > <mprescripts / > <none / > L
[0033] After determining the pairs of sample points, the matrix computing module 312 may represent the time-series data sequences in a two-dimensional (2D) Euclidean space, as shown in figure 5. According to figure 5 an x-axis represents a time (t) of a time-series data sequence S4 and y-axis denotes value (w) of the time-series data sequence S4. The time-series data sequence S4 may comprise a pair of sample points generated between sample points 'q i ' and 'q j '. The sample point 'q i ' may be located at (w i , t i ) and the sample point 'q j ' may be located at (w j , t j ) in the 2D Euclidean space. The matrix computing module 312 may compute the Euclidean distance (d) between the sample points 'q i ' and 'q j ' present in the pair of sample points 'q i - q j ', in the 2D Euclidean space using a below mentioned equation 2, d = w i − w j 2 + t i − t j 2
[0034] Similarly, the matrix computing module 312 may compute the Euclidean distances for each pair of the plurality of pairs of the sample points. The Euclidean distances for each pair of the plurality of pairs of the sample points may be represented as a distance matrix.
[0035] Post computing the distance matrix, the matrix computing module 312 may normalize the distance matrix by dividing the Euclidean distances present in one or more rows of the distance matrix with a maximum Euclidean distance present in the one or more rows. The normalization of the distance matrix may convert the distance matrix into [0, 1] scale.
[0036] Further, the matrix computing module 312 may compute angles between the sample points of the pairs of sample points. For example, an angle 'θ' between the sample points 'q i ' (origin point) and 'q j ' may be computed, as shown in figure 5. Similarly, the angles between the sample points of each pair of the plurality of pairs may be computed. The angles between the sample points of each pair of the plurality of pairs may be represented as an angle matrix.
[0037] Post determining the distance matrix and the angle matrix, the matrix computing module 312 may quantize the Euclidean distances and the angles. The Euclidean distances and the angles may be quantized for splitting the Euclidean distances and the angles into bins. Thus, in an example, upon quantizing the Euclidean distances into 'm' levels, the Euclidean distances may be represented as [d 0 , d 1 ] U [d 1 , d 2 ] ... U [d m-1 , d m ]. Here [d 0 , d 1 ], [d 1 , d 2 ], and [d m-1 , d m ] may represent distance bins. Similarly, in an example, upon quantizing the angles into 'n' levels the angles may be represented as [α 0 , α 1 ] U [α 1 , α 2 ] ... U [α n-1 , α n ]. Here [α 0 , α 1 ] U [α 1 , α 2 ] ... U [α n-1 , α n ] may represent angle bins.
[0038] After employing the matrix computing module 312, the system 202 may employ the histogram generating and event determining (HGED) module 314. The HGED module 314 may generate a two-dimensional (2D) shape histogram for the time-series data sequence. The 2D shape histogram may represent a global distribution of the plurality of pairs of sample points. The global distribution of the plurality of pairs of sample points may be computed using the distance matrix (D) and the angle matrix (A). The HGED module 314 may compute the global distribution of the plurality of pairs of sample points by computing a shape context of each sample point. The shape context may be defined by a distance-angle based distribution of each sample point with respect to other sample points. In an example, the HGED module 314 may compute the bin (p, q) of the shape context (h i ) of a sample point 'q i ' using a below mentioned equation 3, h i p q = ∑ j = 1 , j ≠ i l δ D i , j , A i , j , d p − 1 , d p , α q − 1 , α q , Here, δ D ij A i , j d p − 1 d p α q − 1 α q = 1 if D i , j ∈ d p − 1 d p , A i , j ∈ α q − 1 α q 0 otherwise
[0039] The HGED module 314 may add the shape contexts of the sample points of the plurality of pairs of sample points for computing a cumulative shape histogram (h sum ). The cumulative shape histogram may define the global distribution of the plurality of pairs of sample points. The bins of the cumulative shape histograms (h sum ) may represent the count of the plurality of pairs of sample points. In one example, the bin (p, q) may represent the count of the plurality of pairs of sample points arranged within the Euclidean distance [d p-1 , d p ] and within the angle [α q-1 , α q ]. Further, the HGED module 314 may divide cumulative histogram (h sum ) by a maximum entry for generating the 2D shape histogram. Further, the HGED module 314 may generate the 2D shape histogram corresponding to the each time-series data sequence generated by the plurality of sensors, wherein the 2D shape histogram may be of constant dimension.
[0040] Figure 6a illustrates an example of the time-series data sequence S5 and Figure 6b illustrates the 2D shape histogram corresponding to the time-series data sequence S5 generated by the system 202. Here, the number of distance bins (m) is considered as 40 and number of angle bins (n) is considered as 36.
[0041] Figure 7a illustrates an example of the time-series data sequence S6 and Figure 7b illustrates the 2D shape histogram corresponding to the time-series data sequence S6 generated by the system 202. Here, the number of distance bins (m) is considered as 40 and number of angle bins (n) is considered as 36.
[0042] Post generating the 2D shape histogram for the time-series data sequence generated by the plurality of sensors, the HGED module 314 may concatenate the 2D shape histogram for each time-series data sequence based on the timestamp information for generating a concatenated shape histogram. Further, the 2D shape histograms for the time-series data sequences comprising proximate timestamp information may be concatenated for generating the concatenated shape histogram. The HGED module 314 may employ a linear concatenation technique for generating the concatenated shape histogram. The HGED module 314 may bring together the bins of the shape histograms and may increase the number of dimensions of the feature vector. In an example, the HGED module 314 may convert the distance matrix and the angle matrix of the 2D shape histogram corresponding to the time-series data sequence S5 into one-dimensional (1D) vectors. The HGED module 314 may also convert the distance matrix and the angle matrix of the 2D shape histogram corresponding to the time-series data sequence S6 into one-dimensional (1D) vectors. Further, the HGED module 314 may adjoin the 1D vectors of the time-series data sequence S5 with the 1D vectors of the time-series data sequence S6. The HGED module 314 may adjoin the 1D vectors for employing a linear concatenation technique. Upon employing the linear concatenation technique by the HGED module 314, a concatenated shape histogram may be generated by the HGED module 314.
[0043] Thus, the 2D shape histogram for the time-series data sequences derived from sensors employed in the vehicle / environment, may be concatenated by the HGED module 314. Concatenating the 2D shape histogram for the time-series data sequences may bring together the discriminating features of the 2D shape histogram for the time-series data sequences. Thus, concatenating the 2D shape histogram for the time-series data sequences may improve the accuracy of detecting the event related to the vehicle / environment.
[0044] Further, the HGED module 314 may match the concatenated shape histogram with a pre-stored set of shape histograms for detecting the event. The pre-stored set of shape histograms may comprise shape histograms corresponding to relevant events. In an example, the HGED module 314 may match the concatenated shape histogram with the pre-stored set of shape histograms using a Support Vector Machine (SVM) classifier. However, in a case, the HGED module 314 may use Radial Basis Function (RBF) kernel with the SVM classifier for matching the concatenated shape histogram with the pre-stored set of shape histograms. Upon determining a successful match of the concatenated shape histogram, the HGED module 314 may determine the event.
[0045] Referring now to Figure 8, the method for detecting an event from time-series data sequences, in accordance with an embodiment of the present subject matter. The method 800 may be described in the general context of computer executable instructions. Generally, computer executable instructions can include routines, programs, objects, components, data structures, procedures, modules, functions, etc., that perform particular functions or implement particular abstract data types. The method 800 may also be practiced in a distributed computing environment where functions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, computer executable instructions may be located in both local and remote computer storage media, including memory storage devices.
[0046] The order in which the method 800 is described is not intended to be construed as a limitation, and any number of the described method blocks can be combined in any order to implement the method 800 or alternate methods. Additionally, individual blocks may be deleted from the method 800 without departing from scope of the subject matter described herein. Furthermore, the method 800 can be implemented in any suitable hardware, software, firmware, or combination thereof. However, for ease of explanation, in the embodiments described below, the method 800 may be considered to be implemented in the above described system 202.
[0047] At block 802, the time-series data sequences related to an event are received. Further, the step of receiving time-series data sequences related to the event may be performed by a processor.
[0048] At block 804, the time-series data sequences are sampled. The time-series data sequences are sampled for generating sample points. Further, the step of sampling the time-series data sequences may be performed by a processor.
[0049] At block 806, the pairs of sample points are generated. Further, each of the sample point may be paired with one another. Further, the step of generating pairs of sample points is performed by the processor.
[0050] At block 808, the distance matrix and the angle matrix are computed. Further the distance matrix and the angle matrix are computed in a 2D Euclidean space. Further, the step of computing the distance matrix and the angle matrix is performed by the processor.
[0051] At block 810, the 2D shape histogram for the time-series data sequences are generated, wherein the 2D shape histogram for the time-series data sequences represent global distribution of the plurality of pairs of sample points. The global distribution of the plurality of pairs of sample points is computed using the distance matrix (D) and the angle matrix (A). Further, the step of generating the 2D shape histograms is performed by the processor.
[0052] At block 812, the 2D shape histogram for the time-series data sequences are concatenated. Further, the 2D shape histogram for the time-series data sequences are concatenated using a linear concatenation technique for generating a concatenated shape histogram. Further, the step of concatenating the 2D shape histogram for the time-series data sequences is performed by the processor.
[0053] At block 814, the concatenated shape histogram is matched with a pre-stored set of histograms for determining the event. Further, the step of matching the concatenated shape histogram with the pre-stored shape histograms, for determining the event, is performed by the processor.
[0054] Although implementations for detecting an event from time-series data sequences have been described in language specific to structural features and / or methods, it is to be understood that the appended claims are not necessarily limited to the specific features or methods described. Rather, the specific features and methods are disclosed as examples of implementations for monitoring the user activities on the software application external to an organization.
Claims
1. A method for detecting an event relating to a vehicle from time-series data sequences, the method comprising: receiving, by a processor, the time-series data sequences of variable lengths, generated by a plurality of sensors positioned across a vehicle for determining the event related to the vehicle, wherein the time-series data sequences comprise timestamp information, wherein the sensors includes a pressure sensor, a speed sensor, a gear sensor for capturing the time-series data sequences for an abrupt braking of the vehicle, wherein the event related to the vehicle includes one of the abrupt braking of the vehicle, a rapid rise or fall in acceleration or deceleration of the vehicle, and a change in direction of the vehicle; sampling the time-series data sequences at a uniform sampling rate for generating sample points, wherein a time-series data sequence S1 is captured from the pressure sensor measuring a brake cylinder pressure during the abrupt braking, wherein a time-series data sequence S2 is captured from the speed sensor measuring wheel speed during the abrupt braking, wherein a time-series data sequence S3 is captured from the gear sensor measuring gear number during the abrupt braking, wherein a signal pattern representing the abrupt braking of the vehicle is determined by applying rule comprising a positive pressure threshold value compared against the S1, a positive speed threshold value compared against S2, a negative speed threshold value compared against S2, gear numbers compared against S3, wherein the positive pressure threshold value corresponds to a maximum threshold value of the pressure sensor, and the negative speed threshold value corresponds to a minimum threshold value of the speed sensor; generating, by the processor, for each time-series data sequences a plurality of pairs of sample points using the sample points generated for said sequence, wherein the plurality of pairs of sample points are generated by pairing each sample point with one another; computing, by the processor, a distance matrix (D) and an angle matrix (A) for one or more pairs of the sample points of the plurality of pairs of sample points, wherein the distance matrix (D) is computed by calculating Euclidean distances between the sample points present in the pairs of the sample points, and wherein the Euclidean distances are computed in a two-dimensional Euclidean space, wherein the angle matrix (A) is computed by calculating angles between the sample points present in the pairs of the sample points, and wherein the angles are computed in a two-dimensional Euclidean space, and further normalizing the distance matrix (D) by dividing the Euclidean distances of one or more rows with a maximum Euclidean distance of the one or more rows; generating, by the processor, a two-dimensional (2D) shape histogram for the time-series data sequences using the distance matrix (D) and the angle matrix (A), wherein the 2D shape histogram have a constant dimension and the 2D shape histogram represents a global distribution of the plurality of pairs of sample points, wherein the 2D shape histograms for the one or more time-series data sequences comprising proximate timestamp information are concatenated to generate the concatenated shape histogram, and wherein the global distribution of the plurality of pairs of sample points is obtained by computing a shape context of each sample point, wherein the shape context is defined by a distance-angle based distribution of each sample point with respect to other sample points, and also to add the shape contexts of the sample points of the plurality of pairs of sample points for computing a cumulative shape histogram, wherein bins of the cumulative shape histogram represents a count of the plurality of pairs of sample points; concatenating, by the processor, the 2D shape histograms for one or more time-series data sequences, derived from the plurality of sensors positioned across the vehicle, based on the timestamp information to generate a concatenated shape histogram, wherein the concatenated shape histogram is generated by converting the distance matrix (D) and the angle matrix (A) into one-dimensional vectors and merging the one-dimensional (1D) vectors, wherein the concatenated shape histogram for the one or more time-series data sequences includes discriminating features of the 2D shape histograms for the one or more time-series data sequences and improves the accuracy of detecting the event related to the vehicle; and matching, by the processor, the concatenated shape histogram with a pre-stored set of shape histograms to detect the event using a Radial Basis Function (RBF) kernel with a Support Vector Machine (SVM) classifier, wherein the pre-stored set of shape histograms comprise shape histograms corresponding to a relevant event.
2. A system (202) for detecting an event relating to a vehicle from time-series data sequences, the system (202) comprising: a processor (302); a memory (306) coupled to the processor (302), wherein the processor (302) is capable for executing a plurality of modules (308) stored in the memory (306), and wherein the plurality of modules (308) comprising: a pairing module (310), to receive the time-series data sequences of variable lengths generated by a plurality of sensors positioned across a vehicle for determining the event related to the vehicle, wherein the time-series data sequences comprise timestamp information, wherein the sensors includes a pressure sensor, a speed sensor, a gear sensor for capturing the time-series data sequences for an abrupt braking of the vehicle, wherein the event related to the vehicle includes one of the abrupt braking of the vehicle, a rapid rise or fall in acceleration or deceleration of the vehicle, and a change in direction of the vehicle; to sample the time-series data sequences at a uniform sampling rate for generating sample points, wherein a time-series data sequence S1 is captured from the pressure sensor measuring a brake cylinder pressure during the abrupt braking, wherein a time-series data sequence S2 is captured from the speed sensor measuring wheel speed during the abrupt braking, wherein a time-series data sequence S3 is captured from the gear sensor measuring gear number during the abrupt braking, wherein a signal pattern representing the abrupt braking of the vehicle is determined by applying rule comprising a positive pressure threshold value compared against the S1, a positive speed threshold value compared against S2, a negative speed threshold value compared against S2, gear numbers compared against S3, wherein the positive pressure threshold value corresponds to a maximum threshold value of the pressure sensor, and the negative speed threshold value corresponds to a minimum threshold value of the speed sensor; to generate, for each time-series data sequences a plurality of pairs of sample points using the sample points generated for said sequence such that each sample point is paired with one another; a matrix computing module (312), to compute a distance matrix (D) and an angle matrix (A) for one or more pairs of the sample points of the plurality of pairs of sample points, wherein the distance matrix (D) is computed by calculating Euclidean distances between the sample points present in the pairs of the sample points, and wherein the Euclidean distances are computed in a two-dimensional Euclidean space, wherein the angle matrix (A) is computed by calculating angles between the sample points present in the pairs of the sample points, and wherein the angles are computed in a two-dimensional Euclidean space, wherein the matrix computing module (312) further normalizes the distance matrix (D) by dividing the Euclidean distances of one or more rows with a maximum Euclidean distance of the one or more rows; a histogram generating and event determining (HGED) module (314), to generate a two-dimensional (2D) shape histogram for the time-series data sequences using the distance matrix (D) and the angle matrix (A), wherein the time-series data sequences comprising proximate timestamp information are concatenated to generate the concatenated shape histogram, wherein the 2D shape histogram have a constant dimension, and the 2D shape histogram represents global distribution of the plurality of pairs of sample points, and wherein the global distribution of the plurality of pairs of sample points is obtained by computing a shape context of each sample point, wherein the shape context is defined by a distance-angle based distribution of each sample point with respect to other sample points, and also to add the shape contexts of the sample points of the plurality of pairs of sample points for computing a cumulative shape histogram, wherein bins of the cumulative shape histogram represents a count of the plurality of pairs of sample points; to concatenate the 2D shape histograms for one or more time-series data sequences, derived from the plurality of sensors positioned across the vehicle, based on the timestamp information to generate a concatenated shape histogram, wherein the concatenated shape histogram is generated by converting the distance matrix (D) and the angle matrix (A) into one-dimensional vectors and merging the one-dimensional (1D) vectors, wherein the concatenated shape histogram for the one or more time-series data sequences includes discriminating features of the 2D shape histograms for the one or more time-series data sequences and improves the accuracy of detecting the event related to the vehicle; and to match the concatenated shape histogram with a pre-stored set of shape histograms to detect the event using a Radial Basis Function (RBF) kernel with a Support Vector Machine (SVM) classifier, wherein the pre-stored set of shape histograms comprise shape histograms corresponding to a relevant event.