Systems and techniques for constructing sequences of manufacturing events and

The event sequence is converted into a fixed-length representation through the ESE-E and ESE-L embedding methods, which solves the problem of cluster analysis of event sequences, achieves fast and accurate cluster analysis, improves the reliability and efficiency of decision-making, and helps engineers understand Event patterns in manufacturing plants.

CN118733983APending Publication Date: 2024-10-01ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410374404.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

It is difficult for existing technologies to quickly and accurately perform cluster analysis on event sequences in manufacturing plants, especially when event sequences have variable lengths and are misaligned, resulting in difficulty in capturing implicit information and patterns in real-time decision-making, which affects Decision-making reliability and efficiency.

Method used

Efficient Euclidean Space Sequence Embedding (ESE-E) and Efficient Latent Space Sequence Embedding (ESE-L) methods are used to convert event sequences into fixed-length numerical representations. Through k-mer counting and kernel matrix operations, free Aligned embedding pipelines for cluster analysis preserve the order of values ​​within sequences and improve clustering performance.

Benefits of technology

It achieves effective clustering of event sequences, improves the speed and reliability of cluster analysis, and can capture event patterns in a timely manner in manufacturing plants, assisting engineers in understanding causal relationships and preventing the occurrence of unexpected events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733983A_ABST
    Figure CN118733983A_ABST
Patent Text Reader

Abstract

A system and method for event analysis are disclosed. The systems and methods may be employed to analyze at least one event data stream from a monitored system. The systems and methods advantageously utilize two novel embedding pipelines to enable event sequences extracted from the event data stream to be more efficiently clustered and mined for patterns, thereby achieving better understanding of the event sequences. Thus, the systems and methods better assist operators and engineers in studying causal relationships between events so that they can prevent undesired events from occurring in the monitored system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The apparatus and methods disclosed herein relate to system event analysis, and more particularly to constructing event sequences and embeddings thereof for cluster analysis. Background Art

[0002] Unless otherwise indicated herein, the materials described in this section are not admitted to be prior art by virtue of their inclusion in this section.

[0003] Modern manufacturing plants often generate many different types of data as streams, such as event logs from their lines. By collecting and analyzing such event logs, on-site engineers hope to understand the impact and patterns of events in the logs, and further minimize any critical events that may cause interruptions to their manufacturing lines. Due to the large number of events in the stream, analyzing the sequence of events is a challenging problem. Engineers may be able to review the sequence manually, but it will be extremely time-consuming for them to determine whether there are any frequent common patterns or significant anomalies within the sequence. Moreover, it is often necessary to quickly analyze such data and make rapid runtime decisions.

[0004] A common approach to meet this need is to use pattern mining techniques that collect event patterns from logs. However, the number of patterns is often still huge; therefore, analyzing these patterns still requires a lot of effort. For this reason, other methods that can quickly summarize event patterns are also used, such as applying clustering techniques to event sequences represented in event logs. However, the original sequences are not in numerical form. They also have variable lengths, and events between different sequences are misaligned, making clustering of such data very challenging because clustering methods require fixed-length numerical vectors as input. In the past few years, several efforts have been made to design fixed-length feature vector representations for sequence-based data. Some of those methods involve expensive training processes, while other methods cannot capture all implicit information from sequences. Therefore, this method has not generally been used to make runtime decisions.

[0005] Recent studies have proposed methods for classifying and / or clustering unstructured data using feature engineering and deep learning. Feature engineering-based methods (such as unique hot encoding) have been shown to be computationally efficient. However, they cannot capture all (hidden) information and patterns from the data. Similarly, deep learning-based models (such as DeepCluster) are computationally expensive because they require expensive training processes, but they have been shown to perform better than traditional feature engineering models. In general, in the case of tabular data, feature engineering models have been shown to perform better than deep learning models, along with less computational complexity, reliability, and interpretability characteristics. Moreover, most feature engineering deep learning methods are not alignment-free, that is, there is no one-to-one mapping of values ​​in different sequences based on time or any other factor. Similarly, most feature engineering methods cannot retain the order of values ​​within a sequence, thus affecting the performance of the underlying clustering / classification algorithm. Some recent studies have attempted to perform sequence analysis in different geometric spaces (such as Euclidean space, latent space, and hyperbolic space). However, it is not clear whether any geometric space can be generalized to different (other) types of sequence-based data.

[0006] These techniques are generally not suitable for systems such as real-world manufacturing plants, where engineers often need to make decisions on the fly. Therefore, decision making needs to be both fast and accurate (which is often lacking in most feature engineering models). Moreover, the base model is expected to give reliable and interpretable results, which is expensive (if possible) in most deep learning models. If the predictive results are unreliable, difficult to interpret, or require too much computational time, engineers may not be able to use them within a valid period of time. Summary of the invention

[0007] A method for analyzing events in a system is disclosed. The method includes: receiving, using a processor, event data from the system. The event data indicates events that occurred in the system and times when the events occurred. The method further includes: determining, using the processor, a plurality of event sequences from the event data. The plurality of event sequences have variable lengths. The method further includes: determining, using the processor, a plurality of fixed-length embeddings of the plurality of event sequences. The method further includes: performing, using the processor, a cluster analysis of the fixed-length embeddings to determine a plurality of event sequence clusters in the plurality of event sequences. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The foregoing aspects and other features of the method are explained in the following description taken in conjunction with the accompanying drawings.

[0009] Figure 1Exemplary components of an event analysis system are shown.

[0010] Figure 2 A method for performing cluster analysis of event sequences in a system is shown.

[0011] Figure 3 Depicts the sequence of events on a partial timeline.

[0012] Figure 4 The preprocessing of event and parameter sequences in fixed-length k-mers is summarized.

[0013] Figure 5 Summarizes the processing of the ESE-E embedding pipeline.

[0014] Figure 6 Summarizes the processing of the ESE-L embedding pipeline.

[0015] Figure 7 An exemplary graphical representation of event sequence clusters is shown. DETAILED DESCRIPTION

[0016] To facilitate an understanding of the principles of the present disclosure, reference will now be made to the embodiments illustrated in the accompanying drawings and described in the following written specification. It is to be understood that no limitation of the scope of the present disclosure is intended thereby. It is to be further understood that the present disclosure includes any changes and modifications to the illustrated embodiments, and includes further applications of the principles of the present disclosure, which will occur normally to those skilled in the art to which the present disclosure belongs.

[0017] Overview Figure 1 An event analysis system 10 according to the present disclosure is shown. The event analysis system 10 is configured to analyze at least one event data stream 106 from a monitored system 104. As will be discussed in more detail below, the event analysis system 10 advantageously utilizes two novel embedding pipelines to enable event sequences extracted from the event data stream to be more effectively clustered and mined for patterns, thereby achieving a better understanding of the event sequences. Therefore, the event analysis system 10 better assists operators and engineers in studying causal relationships between events so that they can prevent undesirable events from occurring in the monitored system 104.

[0018] Throughout this disclosure, the monitored system 104 will be described primarily using an illustrative example of a manufacturing plant with multiple machines, with respect to which various events may occur, and which are monitored to generate event data. However, it should be appreciated that the event analysis system 10 can be applied to any system that generates event data, either by self-monitoring or by some other monitoring mechanism.

[0019] In the illustrative example, the monitored system 104 is a manufacturing plant including a plurality of machines. The machines of the manufacturing plant may include, for example, welding stations, storage tanks, blenders, compressors, centrifuges, etc. Each of these machines is installed at a specific location in the manufacturing plant and is installed in a specific configuration. These machines may be interconnected to form a line of machines. In each machine line, the output of the machine may be automatically fed as the input of the next machine in the line, so that the manufacturing process may be fully automated. As used herein, the term "location" of the machine is not limited to its literal meaning, but instead represents a "machine" that runs or operates at a specific physical location using a specific configuration (e.g., functional unit, work location, and tool location). Therefore, each location may be identified using a unique identifier so that it may be identified and selected in a database or other software system. Each location continuously emits different types of event data, such as abnormalities, interruptions, and other types of event data, over time via one or more monitoring systems in the manufacturing plant when it is operating. The data provided from each location or machine is provided to the computing device 100 of the event analysis system 10 as an event data stream 106.

[0020] Therefore, the event data stream 106 includes at least data indicating an event that occurred in the monitored system 104 and a timestamp indicating the time when the event occurred. As used herein, an "event" represents any single discrete moment that occurs about a system at a specific time. Depending on the nature of the system (i.e., the monitored system 104), events can be classified into any number of different event types. In the illustrative example of a manufacturing plant, an event refers to any single discrete moment that occurs at a specific location, machine, and / or component at a manufacturing plant at a specific time. For example, it is assumed that the manufacturing plant includes a welding machine w located at a manufacturing line m. Assume that event e1 occurs about welding machine w at a specific time (e.g., 2018-06-12 09:55:22). Event e1 can be, for example, a sensor of welding machine w indicating that a certain measured parameter has an abnormal value. Subsequently, another event e2 occurs about welding machine w at a specific time (e.g., 2018-06-12 10:51:02). Event e2 may be, for example, that the operation of the machine w is interrupted, ie, its operation stops suddenly. By this example, events e1 and e2 can be logically classified into two event types: "abnormal" (ie, event e1) and "interruption" (ie, event e2).

[0021] As used herein, an "anomaly" is an event that represents a moment when any measurable or observable parameter from any location or any component of a system behaves abnormally (e.g., has an irregular value outside a predetermined or expected range or tends to become a value outside a predetermined or expected range). The predetermined or expected range may be fixed or based on an observed trend of the parameter. In the manufacturing plant example, the temperature of some chambers of some machines exceeding a predetermined allowable range or the speed of a rotating shaft in some other machine being lower than its average speed may be reported as an anomaly in the event data stream 106.

[0022] As used herein, an "interruption" is an event that represents a moment when the process of a system is stopped, such as due to the failure of a component of the system or due to intervention by a human operator or an automated intervention system. In the manufacturing plant example, interruptions may cause delays in the production line / process. In addition to requiring intervention by an expert (e.g., a line operator) to resolve the cause of the interruption, these delays may also result in the stoppage of manufacturing parts and have a quantifiable monetary impact.

[0023] It should be appreciated that exceptions and interruptions are merely exemplary event types, and although the classification scheme is used herein to describe the events of event data stream 106, it should be appreciated that events can be categorized into any number of different event types. In a broad manner, combinations of other event types may also be used similarly with other scenarios, settings, configurations, or domains. For example, instead of using an exception from an anomaly detection engine, any other event type (such as a warning or precursor event) may be used as an alternative. This event type may also be a component change event (i.e., some components in the machine are often worn out when it operates over time, and they need to be replaced) or any other alarm from any other monitoring system installed in a location or factory. Similarly, instead of using an interruption, other key event types may be used here, such as a scrap detection event (i.e., components or products built from the machine are not manufactured correctly, and they need to be discarded) or any other failure of a workstation that needs to be prevented in advance.

[0024] In at least some embodiments, in addition to data indicating an event that occurred in the monitored system 104 and a timestamp indicating the time when the event occurred, the event data stream 106 may further include certain metadata, such as where the event occurred, what caused the event, what sensor detected the event, a manually entered text description of the event, an indication of whether the event was a planned or unplanned outage, the duration of the event, and other parameters or contextual information. The event analysis system 10 is configured to analyze the data of the event data stream 106 and store it in the database 102.

[0025] Exemplary Hardware Embodiment Continue to refer Figure 1 , describes an exemplary embodiment of a computing device 100 that can be used to analyze event data streams 106 from monitored systems 104. The computing device 100 includes a processor 110, a memory 120, a display screen 130, a user interface 140, and at least one network communication module 150. It will be appreciated that the illustrated embodiment of the computing device 100 is only one exemplary embodiment, which represents only any of various ways or configurations of a server, desktop computer, laptop computer, mobile phone, tablet computer, or any other computing device operating in the manner set forth herein. The computing device 100 communicates with a database 102, which can be hosted by another device or stored in the computing device 100's own memory 120.

[0026] The processor 110 is configured to execute instructions to operate the computing device 100, thereby implementing the features, functionality, characteristics, etc. described herein. To this end, the processor 110 is operably connected to the memory 120, the display screen 130, and the network communication module 150. The processor 110 generally includes one or more processors, which can operate in parallel or otherwise in conjunction with each other. Those skilled in the art will recognize that a "processor" includes any hardware system, hardware mechanism, or hardware component that processes data, signals, or other information. Therefore, the processor 110 may include a system having a central processing unit, a graphics processing unit, a plurality of processing units, a dedicated circuit system for implementing functionality, a programmable logic, or other processing system.

[0027] The memory 120 is configured to store data and program instructions that, when executed by the processor 110, enable the computing device 100 to perform the various operations described herein. The memory 120 may be any type of device capable of storing information accessible by the processor 110, such as a memory card, ROM, RAM, hard drive, magnetic disk, flash memory, or any of a variety of other computer-readable media used as data storage devices, as will be appreciated by those skilled in the art.

[0028] Display screen 130 may include any of various known types of displays configured to display a graphical user interface, such as an LCD or OLED screen. User interface 140 may include various interfaces for operating computing device 100, such as buttons, switches, a keyboard or other keypad, a speaker, and a microphone. Alternatively or additionally, display screen 130 may include a touch screen configured to receive touch input from a user.

[0029] The network communication module 150 may include one or more transceivers, modems, processors, memories, oscillators, antennas, or other hardware conventionally included in communication modules to enable communication with various other devices. In particular, the network communication module 150 typically includes an Ethernet adapter or module, the Ethernet adapter or The module is configured to enable communication with a wired or wireless network and / or a router (not shown) that is configured to enable communication with various other devices. Additionally, the network communication module 150 may include module (not shown) and one or more cellular modems configured to communicate with a wireless telephone network.

[0030] In at least some embodiments, the memory 120 stores program instructions for an event analysis program 122 that can be used to analyze the event data stream 106 from the monitored system 104. In at least some embodiments, the database 102 stores a plurality of event data 160 that includes raw data indicating events that occurred in the monitored system 104, timestamps indicating the time when the events occurred, and the various metadata discussed above. Additionally, the database 102 stores one or more event sequence clusters 170 that the event analysis program 122 utilizes to analyze the event data stream 106, including displaying the event sequence clusters to a user for review and study.

[0031] Methods for embedding and clustering event sequences Various operations and processes for operating the computing device 100 to analyze the event data stream 106 are described below, including performing cluster analysis of event sequences in the monitored system 104 and displaying the event sequence clusters to a user for review and study. In these descriptions, the statement that the method, processor, and / or system is performing a task or function refers to the execution of programming instructions stored in a non-transitory computer-readable storage medium (e.g., memory 120 of the computing device 100) operably connected to the controller or processor to manipulate data or operate one or more components of the database 102 or the computing device 100 to perform the task or function. Additionally, the steps of the method may be performed in any feasible chronological order, regardless of the order shown in the figures or the order in which the steps are described.

[0032] To better understand the problems that may be solved using event sequence embedding and clustering, these methods are described with respect to an illustrative example, where the monitored system 104 is a manufacturing plant with multiple machines, various events may occur with respect to the multiple machines, and the multiple machines are monitored to generate event data. In the illustrative example, the method embeds and clusters event sequences formed by two exemplary event types (anomalies and interruptions) so that a user of event sequence clustering (an operator in a manufacturing plant) analyzes the event sequence. However, it should be appreciated that the systems and methods described herein can be applied to any field, and references to the manufacturing field and its terms herein should be understood to be exemplary only.

[0033] It should be appreciated that using clustering to analyze raw event sequences to determine their similarities is not trivial. In particular, in the illustrative embodiment of a manufacturing plant, the raw event sequences consist of two different event types: interruptions and exceptions. Additionally, these events have many metadata and / or parameters associated with them that are not directly represented in the raw event sequences, such that directly processing the raw event sequences will not correctly incorporate the information in the associated metadata and / or parameters. Furthermore, the raw event sequences may all be of variable length, and the clustering algorithm cannot draw any conclusions from the data without first embedding the raw event sequences into a standard fixed-length representation.

[0034] Figure 2A method 200 for cluster analysis of event sequences in an execution system is shown. The method 200 advantageously employs a novel event sequence extraction scheme. The event sequence extraction scheme extracts event sequences from an event data stream 106 from a manufacturing plant by dividing the event stream into event sequences ending with interruptions, so that engineers can understand which anomalies are associated with the occurrence of interruptions. Additionally, in order to more effectively cluster the extracted event sequences, the method 200 advantageously employs two different novel embedding pipelines, referred to herein as efficient Euclidean space sequence embedding (ESE-E) and efficient latent space sequence embedding (ESE-L), to provide a fixed-length numerical representation of the event sequence extracted from the event data stream 106. Given an event sequence, ESE-E counts the occurrence of k-mers (subsequences of length k), while ESE-L operates by calculating a kernel (similarity) matrix. The representations from both ESE-E and ESE-L are used as inputs to clustering algorithms (such as K-means). The ESE-E and ESE-L embedding pipelines are advantageously alignment-free, requiring no one-to-one mapping of sequence values, and can therefore be applied to a variety of data. The ESE-E and ESE-L embedding pipelines also preserve the order of values ​​within an event sequence, which can capture implicit patterns, thereby improving clustering performance. The computations required for the ESE-E and ESE-L embedding pipelines are also sufficiently fast, reliable, and efficient in terms of clustering quality.

[0035] The method 200 begins by receiving event data from a system (block 210). In particular, the processor 110 receives event data stream(s) 106 from the monitored system 104. As discussed above, the event data stream(s) 106 include at least data indicating events that occurred in the monitored system 104 and a timestamp indicating the time at which the event occurred. Additionally, the event data stream(s) 106 may further include certain metadata, as discussed above. In at least some embodiments, the processor 110 stores the events from the event data stream(s) 106 in the database 102 (i.e., event data 160).

[0036] With respect to the illustrative embodiment of a manufacturing plant, different events (i.e., exceptions and interruptions) are distinguished from each other by a unique code (for interruptions) or by the rules and affected components (for exceptions) that define the event. Interruptions are assigned codes (e.g., "i114," "i212," etc.) based on the line operator's or engineer's diagnosis of the interruption. An exception will have an affected component and a rule. An affected component is a machine component that has experienced an exception. A rule is how an affected component behaves abnormally (e.g., exceeding a threshold) or how data behaves. These affected components or rules associated with an exception can also be represented as codes (e.g., "a1768," "a2097," etc.). Interruptions can be distinguished based on their codes, and exceptions can be distinguished based on what type of rule is detected at what machine component. There may be a situation where two different rules are detected at the same machine component, in which case two exceptions will occur.

[0037] The method 200 continues with determining an event time series (series) from the event data (block 220). In particular, the processor 110 determines a chronological event time series from the event data stream (s) 106. The events in the event data stream (s) 106 may or may not be provided in a chronological order, and may be provided in the form of multiple different event data streams 106 from multiple different event data sources in the monitored system 104. In addition to ordering these events in chronological order, the processor 110 also categorizes these events into standard type patterns. In particular, the events in the event data stream (s) 106 can be logically categorized into a certain number of predetermined event types suitable for the domain of the monitored system 104. The event data stream (s) 106 can be received in a tagged or untagged form. Therefore, in some embodiments, the processor 110 categorizes the events into multiple categories based on a predetermined rule set. In the illustrative example of a manufacturing plant, the processor 110 categorizes and labels events from the event data stream(s) 106 into two event types: “Exception” and “Interruption.” In this way, the processor 110 combines and homogenizes all event data received from the monitored systems 104 into a single chronological event time series (i.e., timeline) so that event sequences and event patterns can be extracted and mined from the event data 160.

[0038] Method 200 continues by extracting multiple event sequences from the event time series (block 230). In particular, once the chronological event time series (i.e., timeline) is constructed, the processor 110 extracts multiple event sequences. Each event sequence includes a subset of sequential events from the chronological event time series. In at least some embodiments, the processor 110 extracts the sequences according to a predefined set of rules that are applied depending on the event type of the events in the chronological event time series. In some embodiments, the processor 110 extracts the multiple event sequences such that each event sequence begins with at least one sequential event of a first event type (e.g., an anomaly) and ends with at least one sequential event of a second event type (e.g., an interruption). In some embodiments, the processor 110 extracts the multiple event sequences such that the time between the last event and the first event in the corresponding event sequence is less than a predefined maximum time range (e.g., one week).

[0039] Before clustering analysis can be performed on the event data 160, the system 10 first needs to extract event sequences from the event data 160. An event sequence is a structured sequence of ordered events. Event E v can be defined as any anomaly or interruption that occurs at any location. As discussed above, the timestamps of these events can be used to temporally organize these events on the timeline. However, it is necessary to understand how to organize the events into event sequences such that these sequences provide significant results.

[0040] In an illustrative example of a manufacturing plant, there are two types of events: anomalies and interruptions. This is a situation where an anomaly may be related to the following set of interruptions. Thus, an event sequence can be defined such that it starts with an anomaly within a given time range and includes events up to (multiple) interruptions. Thus, in the illustrative example of a manufacturing plant, the event sequences can be defined and extracted as follows. In particular, let I = i1, i2,..., i n be the set of all interruptions, and A = a1, a2,..., a n be the set of all anomalies. An event sequence is defined as S = <s1, s2,..., s n >, where there exists some index k < n such that for all i ≤ k, and for all j > k, In other words, these sequences are formed by an unbroken sequence of one or more anomalies, followed by an unbroken sequence of one or more interruptions, all within a maximum time range (e.g., one week).

[0041] For all consecutive interruptions (s k+1 ... s nThe basic principle of the invention is that if multiple interruptions occur without an exception occurring between them, then all those interruptions may be related to the initial exception. Once a new exception occurs, the processor 110 starts to form a new sequence, and future interruptions belong to the new sequence instead. In an illustrative example, the predetermined maximum time range may be, for example, one week, based on the assumption that interruptions occurring outside this window are no longer related to the exception.

[0042] Figure 3 A sequence of events 302 on a partial timeline 300 is depicted. In the partial timeline 300, there are seven events occurring at respective times t0, t1, t2, t3, t4, t5, and t6. The events occurring at times t0, t1, t2, t3, and t6 are anomalies (indicated by the presence of “a i ”), and the events occurring at times t4 and t5 are interrupts (indicated by the square with “i i ” diamond). At time t0, the first anomaly occurs, followed by 3 more anomalies at times t1, t2, and t3. The first interruption occurs at time t4. At this point, the anomalies that occurred within a week at t4 are included in the event sequence 302. In this illustration, the events at times t1, t2, and t3 are all within a week, and therefore they are included in the event sequence 302 (represented by the box surrounding the subset of events). The event at t0, although occurring before the interruption, falls outside the one-week window and is therefore not included in the event sequence 302. After this, another interruption occurs at time t5. Since no anomaly has occurred to signal a new event sequence, the interruption is included in the current event sequence 302. Finally, at t6, a new anomaly occurs, which signals the end of the current event sequence 302 and the potential creation of a new event sequence.

[0043] In at least some embodiments, processor 110 further determines a plurality of parameter sequences. Each parameter sequence is formed by at least one parameter associated with each event in a corresponding event sequence from the plurality of event sequences. Thus, for each event sequence S= <s1,s2,...,s n >, the processor 110 also determines the corresponding parameter sequence S (param) = <p1,p2,...,p n >, where p i is the event s in the corresponding event sequence S iThe parameters included in the parameter sequence may include or be determined based on any data segment from the metadata associated with the event (discussed above). Using these parameters, the system can better characterize anomalies and interruptions within our sequence. In one embodiment, in order to preserve confidential information of the manufacturing line and related systems, the processor 110 stores the actual interruptions and anomalies in a given event sequence S and S (param) The associated parameters in are anonymized so that the event sequence S and parameter sequence S (param) Formed with anonymized values.

[0044] Return to Figure 2 , the method 200 continues by preprocessing the multiple event sequences into multiple k-mers (block 240). In particular, for each event sequence in the multiple event sequences, the processor 110 determines multiple fixed-length event subsequences from the corresponding event sequence, referred to herein as event k-mers (or n-grams). Additionally, for each parameter sequence in the multiple parameter sequences, the processor 110 determines multiple fixed-length event subsequences from the corresponding parameter sequence, referred to herein as parameter k-mers (or n-grams). The multiple event k-mers and the multiple parameter k-mers all have the same length k (e.g., 3). The length k of a k-mer is a learnable parameter, and any value may be considered and used if desired.

[0045] Figure 4 The preprocessing of event sequences and parameter sequences in fixed-length k-mers is summarized 400. As discussed above, for each event sequence S, there is a corresponding parameter sequence S (param) However, as noted above, the event sequence S and likewise the corresponding parameter sequence S (param) can have variable length. For this reason, the sequences S and S (param) First, it is transformed into a fixed-length k-mer. In this diagram, the event sequence S1 is formed by the abnormal event sequence a2, a3, a4, followed by the interruption event sequence i1, i2, that is, S1 =<a2,a3,a4,i1,i2> Each event has some parameter value p i , these parameter values ​​p i Form the corresponding parameter sequence S 1(param) =<p2,p3,p4,p5,p6> . S 1(param) The parameters of have a one-to-one association of events in event sequence S1 with corresponding events in event sequence S1, i.e., p2 is associated with a2 and so on.

[0046] In this example, the processor 110 combines the event sequence S1 and the corresponding parameter sequence S 1(param)They are preprocessed by dividing them into three k-mers, each with a length of k = 3. In particular, the event sequence S1 is decomposed into three event k-mers: (1) a2, a3, a4, (2) a3, a4, i1 and (3) a4, i1, i2. Similarly, the parameter sequence S 1(param) It is decomposed into three parameter k-mers: (1) p2, p3, p4, (2) p3, p4, p5 and (3) p4, p5, p6.

[0047] As can be seen from this example, in at least some embodiments, the processor 110 uses a sliding window method to determine k-mers from each event sequence and the corresponding parameter sequence, wherein each k-mer has a length corresponding to the window length (e.g., 3), and each k-mer is determined by sliding the window by a predetermined interval (e.g., 1). Therefore, the number of k-mers in a given sequence of length n is as follows: Total k-mers = n-k+1.

[0048] It should be appreciated that when the minimum length of a sequence is very small, i.e., less than the value of the optimal k, then such a very short sequence cannot be divided into multiple fixed-length k-mers. Instead, in some embodiments, when the length n of a sequence is less than the optimal k, the processor 110 generates a single k-mer for the sequence by adding a fill value (e.g., any default or dummy character in the sequence) to the sequence, so that k-mers can still be derived when the sequence length is too short.

[0049] Return to Figure 2 , the method 200 continues by determining a plurality of fixed-length embeddings of the plurality of event sequences based on the plurality of k-mers (block 250). In particular, the processor 110 determines a plurality of fixed-length embeddings representing the plurality of event sequences. More particularly, the processor 110 determines the plurality of fixed-length embeddings based on the plurality of event k-mers and the plurality of parameter k-mers, the plurality of event k-mers and the plurality of parameter k-mers being generated by preprocessing the plurality of event sequences and the plurality of parameter sequences.

[0050] While various embedding techniques may be employed to generate fixed-length embeddings representing the multiple event sequences, this article discusses in detail two different exemplary sequence embedding pipelines, referred to as Efficient Euclidean Space Sequence Embedding (ESE-E) and Efficient Latent Space Sequence Embedding (ESE-L).

[0051] In the exemplary ESE-E embedding pipeline, the processor 110 determines a plurality of fixed-length embeddings Φ representing the plurality of event sequences S. ESE-E-freq In summary, for each event sequence S, the processor 110 determines the event frequency vector Φ based on the k-mer of the event sequence S.seq , and based on the corresponding parameter sequence S (param) k-mer to determine the parameter frequency vector Φ param The processor 110 calculates the event frequency vector Φ based on the event frequency vector Φ. seq and parameter frequency vector Φ param (e.g., by cascading) to determine the final fixed-length embedding Φ of the event sequence S ESE-E-freq In this way, by adopting k-mer, the ESE-E embedding pipeline builds fixed-length embeddings while preserving the sequential ordering information of the values ​​in the sequence.

[0052] Figure 5 The processing of the ESE-E embedding pipeline 500 is summarized. The processor 110 calculates the event frequency vector Φ based on the k-mer of the event sequence S. seq The event frequency vector Φ seq With length |∑| k , where ∑ corresponds to the event alphabet (the set of all possible anomalies and interruptions in the data), and k is the length of the k-mer. The event frequency vector Φ seq consists of a value indicating the number of occurrences (or frequencies) of each possible k-mer, or in other words each possible event subsequence of length k, in the event sequence S. In this illustration, an event sequence S1 is shown.<a2,a3,a4,i1,i2> In part (c) of the illustration, the value in each bin indicates the count of the corresponding k-mer in the input event sequence S1, which together form the event frequency vector Φ seq It can be seen that the event frequency vector Φ seq has a value of "1" corresponding to the three event k-mers in the event sequence S - a2a3a4, a3a4i1, and a4i1i2, and has a value of "0" for every other possible event k-mer.

[0053] Similarly, the processor 110 calculates the value of the parameter sequence S based on the parameter sequence S. (param) k-mer to calculate the parameter frequency vector Φ param . Parameter frequency vector Φ seq With length |∑| k , where ∑ corresponds to the parameter alphabet (the set of all possible parameter values ​​in the data), and k is the length of the k-mer. The parameter frequency vector Φ param By indicating every possible k-mer or in other words every possible event subsequence of length k in the parameter sequence S (param) In this diagram, the parameter sequence S is shown. (param)=<p2,p3,p4,p5,p6> In part (d) of the diagram, the value in each bin indicates the input parameter sequence S (param) The corresponding k-mer counts in , which together form the parameter frequency vector Φ param It can be seen that the parameter frequency vector Φ param has a sequence of parameters corresponding to S (param) The three parameter k-mers in - p2p3p4, p3p4p5, and p4p5p6 - have a value of "1", and have a value of "0" for every other possible parameter k-mer.

[0054] Finally, after determining the event frequency vector Φ seq and parameter frequency vector Φ param Afterwards, the processor 110 transforms the event frequency vector Φ seq With parameter frequency vector Φ param Cascade to determine the final fixed-length embedding Φ ESE-E-freq The processor 110 repeats these processes for each event sequence in the plurality of event sequences to determine a plurality of final fixed-length embeddings Φ ESE-E-freq .

[0055] It should be appreciated that there are many clustering algorithms, such as K-means and K-modes, etc. The simplest and most common clustering algorithm is the K-means clustering algorithm. The K-means clustering algorithm is considered to be a linear clustering algorithm. However, the input event data may often be nonlinear. Therefore, if a linear clustering algorithm such as K-means is to be used, it may be important to transform the event sequence in such a way that the linear clustering algorithm can be appropriately applied to the nonlinear event data. Compared to the ESE-E embedding pipeline, the exemplary ESE-L embedding pipeline solves this problem by using a kernel matrix to transform the nonlinear decision surface into a linear equation in a higher numbered dimensional space. By using the kernel matrix, the ESE-L embedding pipeline allows the linear clustering algorithm to be easily applied to nonlinear event data.

[0056] In summary, in the exemplary ESE-L embedding pipeline, the processor 110 determines a k,m mismatch kernel matrix based on the k-mers of the plurality of event sequences S, the kernel matrix having a value indicating a similarity between each possible combination of two event sequences in the plurality of event sequences S. Next, for each event sequence S, the processor 110 determines a kernel vector Φ of the event sequence S based on the k,m mismatch kernel matrix. kernel And based on the corresponding parameter sequence S (param) k-mer to determine the parameter frequency vector Φ param The processor 110 is based on the kernel vector Φ kernel and parameter frequency vector Φ param(e.g., by cascading) to determine the final fixed-length embedding Φ of the event sequence S ESE-L-freq .

[0057] Figure 6 The processing of the ESE-L embedding pipeline 600 is summarized. First, the processor 110 calculates a k,m mismatch kernel matrix based on the k-mers of the plurality of event sequences S, the kernel matrix having values ​​indicating the similarity between each possible combination of two event sequences in the plurality of event sequences S. The k,m mismatch kernel matrix has dimensions n×n, where n is the total number of event sequences. The values ​​of the k,m mismatch kernel matrix are determined based on the approximate distance between each pair of event sequences. Since it is computationally very expensive to calculate the kernel values ​​one by one, in one embodiment, the processor 110 uses an approximate kernel calculation method to speed up the process, such as the approximate kernel calculation method described in the publication “Efficient Approximation Algorithms for String Kernel Based Sequence Classification” by Farhan et al. at the Conference on Neural Information Processing Systems (NIPS 2017). The kernel calculation algorithm works by calculating the distance (kernel value) between the sequences using the number of matches and mismatches between the characters from the k-mers (also called k,m mismatch spectra) in each pair of event sequences, and then taking the dot product. This process is repeated for each pair of event sequences in the plurality S of event sequences.

[0058] More specifically, in one embodiment, for each event sequence S, the processor 110 determines k,m mismatch spectrum vectors Φ k,m (S). k,m mismatch spectrum vector Φ k,m The value of (S) indicates the number of times each possible k-mer appears in the corresponding event sequence S with m mismatches or less. More formally, given an event sequence S over the alphabet ∑, the k,m mismatch spectrum vector Φ k,m (S) is determined as follows: where α is the k-mer from S and γ is the k-mer from ∑ k k-mers (all possible k-mers in the alphabet ∑), and if α is a k-mer that differs from γ by at most m mismatches, i.e., the Hamming distance between α and γ, d(α,γ)≤m, then the identity function I m (α,γ) = 1. Otherwise, if there are more than m mismatches, the identity function I m(α,γ)=0. In one example of the ESE-L embedding pipeline 600, adjustable / learnable parameters k=3 and m=0 are used for the k,m mismatch kernel matrix calculation. However, various values ​​may be used. Note that for m=0, Φ k,m (S) is called the k-spectrum of S and is related to the event frequency vector Φ formed in the above manner seq (S)Same.

[0059] To determine the k,m mismatch kernel value K (or mismatch spectrum similarity score) of the k,m mismatch kernel matrix, the processor 110 compares the k,m mismatch spectrum vectors of each combination of two event sequences in the plurality of event sequences. In particular, given a combination of two sequences S1 and S2, the processor 110 determines the k,m mismatch spectrum vector Φ k,m (S1) and Φ k,m (S2), and the k,m mismatch kernel value K(S1,S2|k,m) is determined as the k,m mismatch spectrum vector Φ k,m (S1) and Φ k,m (S2). It should be appreciated that using the above for Φ k,m (S), this two-step process can be equivalently collapsed into a single equation to determine K(S1,S2|k,m), as follows: where α is the k-mer from S1, β is the k-mer from S2, and γ is the k-mer from ∑ k In part (c) of the illustration, the value in each bin indicates the kernel value or similarity score of the corresponding combination of the two event sequences.

[0060] As an illustrative example, consider a k-mer common to both S1 and S2 - α1α2α3. If the count (occurrence) of α1α2α3 in S1 is 3, and the count (occurrence) in S2 is 4, then the contribution of α1α2α3 to the similarity value K(S1,S2|k,m) will be 3·4. This calculation is repeated for all k-mers common to both S1 and S2. It should be appreciated that the contribution of any k-mer that is not common to both S1 and S2 is 0. Therefore, the final kernel / similarity value K(S1,S2|k,m) is the sum of such contributions from all k-mers common to both S1 and S2.

[0061] Next, for each event sequence S, the processor 110 determines the kernel vector Φ of the corresponding event sequence S based on the k,m mismatch kernel matrix by applying kernel principal component analysis (PCA) to the k,m mismatch kernel matrix (obtaining the top principal component for the corresponding event sequence S).kernel Kernel PCA may be performed, for example, as described in the publication “Kernel PCA for novelty detection” by Hoffmann et al., Pattern recognition, vol. 40, no. 3, pp. 863–874 (2007). In part (e) of the illustration, the values ​​in the bins indicate the top principal components for the corresponding event sequence S.

[0062] Additionally, for each parameter sequence S corresponding to each event sequence S (param) , the processor 110 performs the processing based on the parameter sequence S in the same manner as discussed above with respect to the ESE-E embedding pipeline 500 (param) The k-mer determines the parameter frequency vector Φ param In part (d) of the illustration, the value in each bin indicates the input parameter sequence S (param) The corresponding k-mer counts in , which together form the parameter frequency vector Φ param .

[0063] Finally, after determining the kernel vector Φ kernel and parameter frequency vector Φ param Afterwards, processor 110 converts the kernel vector Φ kernel With parameter frequency vector Φ param Cascade to determine the final fixed-length embedding Φ ESE-L-freq The processor 110 repeats these processes for each event sequence in the plurality of event sequences to determine a plurality of final fixed-length embeddings Φ ESE-L-freq By adopting k-mer, the ESE-L embedding pipeline 600 constructs a fixed-length embedding while preserving the sequential ordering information of the values ​​in the sequence.

[0064] The method 200 continues by clustering the plurality of fixed-length embeddings into a plurality of clusters (block 260). In particular, once the plurality of final fixed-length embeddings (i.e., Φ ESE-E-freq or Φ ESE-L-freq ), the processor 110 performs a cluster analysis of the multiple final fixed-length embeddings to determine multiple event sequence clusters in the multiple event sequences. In at least one embodiment, the final fixed-length embeddings are clustered using K-means or K-modes. However, a variety of other linear and nonlinear clustering algorithms can be used to cluster the final fixed-length embeddings.

[0065] Those skilled in the art will appreciate that these event sequence clusters can be used for a variety of advantageous and useful purposes.In at least one embodiment, the processor 110 operates the display screen 130 to display a graphical user interface that includes a graphical representation of the plurality of event sequence clusters. Figure 7 Exemplary graphical representations 700A-F of event sequence clusters from six different machine stations in a manufacturing plant are shown. Each graphical representation 700A-F is a plot including dots or circles representing a single event sequence. In the plot, the dots or circles representing a single event sequence are clustered together according to the plurality of event sequence clusters. The clusters are labeled with corresponding numbers or symbols. Using these graphical representations of event sequence clusters, operators or engineers can understand important patterns and trends occurring in a manufacturing plant (or other monitored system 104) to better understand the cause-effect relationships between events so that they can prevent undesirable events from occurring in the manufacturing plant.

[0066] Additionally, in some embodiments, event sequence clusters can be used for pattern detection and predicting future behavior in a manufacturing plant (or other monitored system 104). In some embodiments, the processor 110 extracts common event patterns from the multiple event sequences based on multiple event sequence clusters. In another embodiment, the processor 110 predicts possible future events based on partial event sequences and using the multiple event sequence clusters. In particular, the processor 110 receives (multiple) event data streams 106 from the monitored system 104 and extracts at least one partial event sequence. The processor 110 predicts possible future events based on partial event sequences indicating events that have occurred and using event sequence clusters and / or patterns extracted from event sequence clusters.

[0067] Embodiments within the scope of the present disclosure may also include non-transitory computer-readable storage media or machine-readable media, for carrying or having a computer-executable instruction (also referred to as program instruction) or a data structure stored thereon. This non-transitory computer-readable storage medium or machine-readable medium may be any available medium that can be accessed by a general or special-purpose computer. By way of example and not limitation, this non-transitory computer-readable storage medium or machine-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store any other medium of the desired program code components in the form of computer-executable instructions or data structures. The combination of the above items should also be included in the scope of non-transitory computer-readable storage media or machine-readable media.

[0068] Computer executable instructions include, for example, instructions and data that cause a general-purpose computer, a special-purpose computer, or a special-purpose processing device to perform a certain function or group of functions. Computer executable instructions also include program modules that are executed by computers in a stand-alone or network environment. Typically, program modules include routines, programs, objects, components, and data structures that perform specific tasks or implement specific abstract data types. Computer executable instructions, associated data structures, and program modules represent examples of program code components for performing the steps of the methods disclosed herein. A specific sequence of such executable instructions or associated data structures represents an example of corresponding actions for implementing the functions described in such steps.

[0069] Although the present disclosure has been illustrated and described in detail in the drawings and foregoing description, it should be considered illustrative rather than restrictive in nature. It is to be understood that only preferred embodiments have been presented and all changes, modifications and further applications within the spirit of the present disclosure are intended to be protected.

Claims

1. A method for analyzing events in a system, the method include: receiving, with a processor, event data from the system, the event data indicating an event occurring in the system and a time when the event occurred; determining, with a processor, a plurality of event sequences from the event data, the plurality of event sequences having variable lengths; determining, with a processor, a plurality of fixed-length embeddings of the plurality of event sequences; as well as A cluster analysis of the fixed-length embeddings is performed, using a processor, to determine a plurality of event sequence clusters among the plurality of event sequences.

2. The method according to claim 1, further comprising: include: determining, using a processor, a chronologically ordered event time series from the event data, Wherein the plurality of event sequences are determined from the event time series.

3. The method according to claim 2, wherein the event data comprises a plurality of event data sets from a plurality of event data sources, the method further comprising: include: The plurality of event data sets are combined into the chronologically ordered event time series.

4. The method according to claim 1, further comprising: include: Each event from the event data is labeled, with a processor, with a corresponding event type from a predetermined set of event types.

5. The method of claim 1, wherein the events of the event data include the following types of events: a first event type indicating that a measurable parameter of the system has a value outside a predetermined or expected range; and A second event type indicates that a process executed by the system is stopped.

6. The method according to claim 1, further comprising: determining the plurality of event sequences include: Each respective one of the plurality of event sequences is formed as a subset of sequential events from the event data.

7. The method according to claim 6, further comprising: determining the plurality of event sequences include: Each respective event sequence of the plurality of event sequences is formed such that the respective event sequence begins with at least one sequential event of a first event type and ends with at least one sequential event of a second event type.

8. The method according to claim 6, further comprising: determining the plurality of event sequences include: Each respective one of the plurality of event sequences is formed such that a time between a last event and a first event in the respective event sequence is less than a predetermined maximum amount of time.

9. The method of claim 1, wherein the event data further comprises corresponding parameters associated with each event in the event data, the method further comprising: include: determining, with a processor, a plurality of parameter sequences, each parameter sequence being formed of respective parameters associated with an event in a respective event sequence from the plurality of event sequences, The plurality of fixed-length embeddings are determined based on the plurality of event sequences and the plurality of parameter sequences.

10. The method of claim 9, wherein determining the plurality of fixed-length embeddings comprises determining a respective fixed-length embedding for each respective event sequence in the plurality of event sequences by: determining a plurality of fixed-length event subsequences from the corresponding event sequence; determining a plurality of fixed-length parameter subsequences from respective parameter sequences from the plurality of parameter sequences, the respective parameter sequences being associated with respective event sequences; as well as A respective fixed-length embedding of a respective event sequence is determined based on the plurality of fixed-length event subsequences and the fixed-length parameter subsequence. The method of claim 10 , wherein the plurality of fixed-length event subsequences and the fixed-length parameter subsequence all have the same length.

12. The method of claim 10, further comprising: determining a corresponding fixed length embedding of a corresponding event sequence; include: determining a first frequency vector based on the plurality of fixed-length parameter subsequences, the first frequency vector comprising values ​​each indicating a number of occurrences of a corresponding possible parameter subsequence in the plurality of fixed-length parameter subsequences; determining a second frequency vector based on the plurality of fixed-length event subsequences, the second frequency vector comprising values ​​each indicating a number of occurrences of a corresponding possible event subsequence in the plurality of fixed-length event subsequences; and A respective fixed-length embedding of a respective event sequence is determined based on the first frequency vector and the second frequency vector.

13. The method of claim 12, further comprising: determining a corresponding fixed length embedding of a corresponding event sequence; include: A respective fixed-length embedding of a respective event sequence is determined as a concatenation of the first frequency vector and the second frequency vector.

14. The method according to claim 12, in: The length of the first frequency vector is equal to the total number of possible parameter subsequences; and The length of the second frequency vector is equal to the total number of possible event subsequences.

15. The method according to claim 10, determining the plurality of fixed-length embeddings include: determining a kernel matrix having values ​​indicating a similarity between each possible combination of two event sequences in the plurality of event sequences; as well as The corresponding fixed-length embedding of each corresponding event sequence in the plurality of event sequences is determined by: determining a first frequency vector based on the plurality of fixed-length parameter subsequences, the first frequency vector comprising values ​​each indicating a number of occurrences of a corresponding possible parameter subsequence in the plurality of fixed-length parameter subsequences; Determining a kernel vector of a corresponding event sequence based on the kernel matrix; and A respective fixed-length embedding of a respective event sequence is determined based on the kernel vector and the first frequency vector.

16. The method of claim 15, wherein determining the kernel matrix further comprises: include: For each corresponding combination of two event sequences in the plurality of event sequences, a corresponding value in the kernel matrix for the corresponding combination of two event sequences is determined by: determining respective second frequency vectors, the respective second frequency vectors comprising values ​​each indicating a number of occurrences of respective possible event subsequences of the respective plurality of fixed-length event subsequences of the first event sequence that mismatch by a predetermined amount or less in respective combinations of the two event sequences; determining respective third frequency vectors, the respective third frequency vectors comprising values ​​each indicating a number of occurrences of respective possible event subsequences of the respective plurality of fixed-length event subsequences of the second event sequence that mismatch by the predetermined amount or less in respective combinations of the two event sequences; as well as A respective value in the kernel matrix for a respective combination of two event sequences is determined as a dot product of a respective second frequency vector and a respective third frequency vector.

17. The method according to claim 15, wherein determining the kernel vector further comprises: include: A kernel vector for the corresponding event sequence is determined by applying kernel principal component analysis to the kernel matrix.

18. The method according to claim 1, further comprising: include: At least some of the plurality of event sequence clusters are displayed on a display screen.

19. The method according to claim 1, further comprising: include: Event patterns are extracted from the plurality of event sequences based on the plurality of event sequence clusters.

20. The method according to claim 1, further comprising: include: A possible future event is predicted, using a processor, based on the partial event sequence and the plurality of event sequence clusters.