System control based on time series data analysis
The controller optimizes system maintenance by rotating test signals, forming a matrix data structure, and using a sliding three-dimensional window method to efficiently analyze time series data, addressing inefficiencies in predictive maintenance strategies.
Patent Information
- Application Number
- JP2021196075
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-07
- Filing Date
- 2021-12-02
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-02
AI Technical Summary
Existing predictive maintenance strategies for systems are time-consuming, require extensive training data, and struggle with adapting to diverse system conditions, leading to inefficient and economically suboptimal maintenance practices.
A controller that generates statistics of time series data by rotating test signals, forming a matrix data structure, and applying a sliding three-dimensional window method to efficiently compare input signals with test signals, optimizing system operation through statistical analysis.
Enables efficient and feasible system control by reducing computational time and adapting to varying system conditions, allowing for optimal maintenance decisions based on real-time data analysis.
Smart Images

Figure 0007539362000019 
Figure 0007539362000025 
Figure 0007539362000028
Abstract
Description
[Technical field]
[0001] The present disclosure relates generally to system control, and more particularly to an apparatus for controlling the operation of a system based on time series data analysis. [Background technology]
[0002] Modern computer systems collect a large amount of information from various physical systems and / or machines. Maintaining such physical systems (hereafter referred to as systems) in good working order is a key issue for their operation, and how and when maintenance is performed has a significant impact on the economics of their operation. One maintenance strategy is to repair the system only after it has failed (also known as corrective maintenance). This strategy is not optimal, since repairing the entire failed system can be more expensive than replacing only one part before the system fails, and the failure of the system can lead to material waste or unacceptable product quality, as well as putting personnel operating the system at risk. In situations where corrective maintenance is not a feasible or economical option, a different strategy is adopted, such as regular maintenance of the system at regular intervals, for example annually. Examples of such safety-critical systems are elevators and cars. Typically, their maintenance is performed once a year and a corresponding inspection certificate is issued. Such a strategy is commonly known as preventive maintenance.
[0003] Preventive maintenance addresses the safety issues associated with system maintenance, but is often not economically optimal. For example, in preventive maintenance, the length of the maintenance cycle is often arbitrary (e.g., one year or one month) and is longer than the system actually needs, depending on the convenience of the inspection authorities and the logistics of the inspection process (e.g., issuing inspection labels for cars). Furthermore, a single maintenance cycle may not be optimal for all systems in the group, since if some of the systems are new, these new systems may require maintenance less frequently, whereas older systems may require maintenance much more frequently. In this situation, a time-based preventive maintenance strategy is used. Time-based preventive maintenance is also called predictive maintenance.
[0004] A predictive maintenance strategy allows the use of sensors to measure system parameters. As system operations become more instrumented, a large amount of data is collected from sensors monitoring the operation of the system. Data from some sensors may be generated at a relatively high frequency, resulting in a large amount of data. Data from sensors associated with a system may be analyzed to determine the state of the system. For example, in some cases, data streams from sensors associated with a system may be analyzed to determine whether the system is not performing as expected (referred to as equipment failure). However, predictive maintenance strategies are time-consuming and require training data. For example, when predictive maintenance is adapted to a real environment, it requires a certain amount of training data to analyze data streams from sensors, and it takes a long time to obtain a highly accurate learning model. For example, for a group of systems including older and newer systems, training data for all systems in the group needs to be collected, and models for each system in the group need to be designed and trained. Furthermore, models for different systems need to be designed differently, which makes rapid adaptation of the predictive maintenance strategy impossible.
[0005] Therefore, there is a need for an efficient apparatus for controlling the operation of the system in an optimal and feasible manner. Summary of the Invention
[0006] It is an object of some embodiments to provide a controller for generating statistics of time series data indicative of the operation of a system, and it is also an object of some embodiments to control the operation of the system according to the generated statistics on the time series data.
[0007] Some embodiments are based on the recognition that an input signal needs to be compared to a test signal to control the operation of a system. As used herein, the system may include, but is not limited to, a Heating, Ventilating, and Air-Conditioning (HVAC) system, a robotic assembly, an elevator door system, a vehicle, and a motor. Examples of the operation of a system may include, but are not limited to, operating an HVAC system according to a particular parameter, operating a robotic arm according to a particular task, and opening and closing an elevator door. In some embodiments, the test signal and the input signal may be time-series data indicative of the operation of the system. In other embodiments, the test signal and the input signal may be two different signals. In this case, the test signal is indicative of the normal operation of the system, and the input signal is indicative of the real-time operation of the system. As used herein, time-series data is a series of values measured and / or determined successively in time.
[0008] Some embodiments are based on the realization that generating statistics of an input signal for different rotations of a test signal is similar to comparing the input signal against the test signal. To this end, an objective of some embodiments is to rotate the test signal multiple times with different circular shifts to cause different rotations of the test signal. In some embodiments, the test signal is rotated with a circular shift by moving the last entry of the test signal to the first position and shifting all other entries to the next position. In some other embodiments, the test signal is rotated with a circular shift by moving the first entry of the test signal to the last position and shifting all other entries to the previous position. The value of the circular shift determines the number of samples of the test signal that form an entry. It is also an objective of some embodiments to form a matrix data structure with different rotations of at least the test signal and the input signal.
[0009] Some embodiments are based on the recognition that the statistics of the input signal for different rotations of the test signal are generated by applying a sliding three-dimensional (3D) window method to a matrix data structure. The "sliding" part of the sliding three-dimensional (3D) window method may refer to a sliding three-dimensional (3D) window method that iteratively moves a window across a matrix data structure to determine the statistics of the input signal. The "three-dimensional (3D) window" part of the sliding three-dimensional (3D) window method may refer to a sliding three-dimensional (3D) window method that determines statistics for the input signal within the window for all other segments defined within the same window (which may be different rotations of the test signal or may be the complete test signal).
[0010] Thus, the sliding 3D window method iteratively moves a window across a matrix data structure to determine the value of a statistic for a segment of an input signal in the matrix data structure within the window. Furthermore, the sliding three-dimensional (3D) window method is used to determine statistics for a segment of an input signal for various rotations of a test signal or a complete test signal using a single window. Thus, the sliding three-dimensional (3D) window method disclosed herein determines the statistics of an input signal in a feasible manner compared to currently available sliding methods that use multiple windows to compare a segment of an input signal to a test signal. For example, when the test signal and the input signal are the same, currently available sliding methods compare a segment of an input signal defined within a window with multiple other segments of the input signal defined within multiple other windows. However, in the case of the sliding three-dimensional (3D) window method, a segment of an input signal defined within a window is compared with multiple other segments of the input signal defined within the same window.
[0011] To determine the current value of the statistics of the input signal for the window at the current position, the sliding 3D window method calculates statistical observations of the current segment of the input signal in the window at the current position for the current segment of each revolution of the test signal in the window at the current position. It is an objective of some embodiments to use at least some corresponding statistical observations determined for the window at the previous position while calculating the statistical observations of the current segment of the input signal in the window at the current position. Due to this, the calculations to be performed to generate the statistics of the input signal can be reduced. Thus, the statistics of the input signal can be determined in a more optimal and / or efficient manner.
[0012] Some embodiments are based on the recognition that statistical observations for a current segment of an input signal may include valid statistical observations and invalid statistical observations. A valid statistical observation may include a difference between values of a current segment of an input signal that includes a value of each valid test signal segment. A difference between values of a current segment of an input signal that includes a value of each valid test signal segment defines a non-normalized Euclidean distance. An invalid statistical observation may include a difference between values of a current segment of an input signal that includes a value of each invalid test signal segment. As used herein, an invalid test signal segment may correspond to a current segment of a rotation of a test signal defined by a window that violates the monotonicity of a time index defined in the test signal. A valid test signal segment may correspond to a current segment of a rotation of a test signal defined by a window that does not violate the monotonicity of a time index defined in the test signal.
[0013] An objective of some embodiments is to calculate a current value of a statistic of the input signal for a window at a current position from the statistical observations for the current segment of the input signal by filtering out invalid statistical observations calculated for the current segment of the revolution of the test signal that disturb the monotonicity of the test signal. For example, the current value may be at least one of a maximum or a minimum of valid statistical observations.
[0014] Further, in some embodiments, in the sliding 3D window method, the window is moved from a current position to a next position across the matrix data structure after determining the current value of the statistics of the input signal. Some embodiments determine a shift value for moving the window in the sliding 3D window method. In some embodiments, the shift value for moving the window in the sliding 3D window method is equal to the difference between adjacent values of the circular shift for rotating the test signal. In this way, in the sliding 3D window method, the window is moved iteratively across the matrix data structure to generate the statistics of the input signal.
[0015] Some embodiments are based on the understanding that the statistics of the input signal are determined by a subroutine that calculates the maximum value of a window applied by a sliding three-dimensional window for a given time series data (e.g., the input signal) and a given window size m. For this, some embodiments apply a brute-force method configured to search for the maximum value for each window of window size m, resulting in a time complexity of the order of 0(m(n-m+1))=0(mn), depending on the window size m. Since the time complexity of the brute-force method depends on the window size m, the time required to calculate the statistics (using the brute-force method) will increase linearly with the window size m. For this, it is an objective of some embodiments to calculate the statistics of the input signal using at least one of a double-ended queue method or a segment tree method, such that the time complexity does not depend on the window size m and allows to calculate the statistics of the input signal in less time compared to the brute-force method.
[0016] Some embodiments are based on the understanding that the exact window size m of the window for capturing the "true essence" of the input signal or for capturing the "essence" of the input signal relative to the test signal is unknown. To this end, an objective of some embodiments is to apply a sliding three-dimensional (3D) window method to generate multi-dimensional statistics of the input signal by applying multiple windows of various window sizes at each position of the input signal in a matrix data structure. In some embodiments, while calculating a first dimension of the current value of the statistics of the input signal for the window at the current position, the sliding 3D window method reuses at least some statistical observations determined for overlapping windows of a size different from the size of the window at the current position. Moreover, such flexibility of applying multiple windows with various window sizes allows the generated multi-dimensional statistics of the input signal to control the operation of the system in various applications.
[0017] Some embodiments are based on the realization that the statistics (or multi-dimensional statistics) of the input signals, which are generated in an optimal and feasible way, are used to control the operation of the system in an optimal and feasible way. To this end, some embodiments stop the operation of the system or determine control commands for actuators of the system upon detecting an anomaly in the statistics of the input signals. Some other embodiments determine constraints for the operation of the system based on the statistics of the input signals and determine control commands for actuators of the system subject to the determined constraints. Still other embodiments determine the statistics of the input signals at the end of one operation cycle of the system to adjust the operation of the system for the next operation cycle.
[0018] According to one embodiment, a controller for controlling operation of a system is provided. The controller controls the operation of the system based on a comparison of an input signal and a test signal. The input signal and the test signal are time series data having values measured monotonically over time. The controller comprises at least one processor and a memory having instructions stored thereon, which when executed by the at least one processor, cause the controller to receive the input signal indicative of the operation of the system, rotate the test signal a number of times with different circular shifts to cause different rotations of the test signal forming a matrix data structure including the input signal, apply a sliding three-dimensional (3D) window technique to the matrix data structure to generate statistics of the input signal for the rotations of the test signal, the sliding 3D window technique iteratively moving a window across the matrix data structure to calculate values of the statistics for segments of the matrix data structure within the window, and the sliding 3D window technique iteratively moving a window across the matrix data structure to calculate values of the statistics for segments of the matrix data structure within the window, and the sliding 3D window technique iteratively moving a window across the matrix data structure at a previous position to calculate a current value of the statistics of the input signal for the window at a current position. calculate statistical observations of a current segment of the input signal within the window at the current position for a plurality of current segments for each of a plurality of revolutions of the test signal within the window at the current position using at least some corresponding statistical observations determined for (c), determine the current value of the statistics of the input signal from the statistical observations of the current segment of the input signal, excluding invalid statistical observations determined for a plurality of current segments of the plurality of revolutions of the test signal that disrupt monotonicity of the time series data, and move the window from the current position to a next position across the matrix data structure, wherein the instructions, when executed by the at least one processor, cause the controller to control the operation of the system in accordance with the statistics of the input signal. [Brief description of the drawings]
[0019] [Figure 1A] FIG. 2 is a block diagram illustrating a controller for controlling operation of a system according to some embodiments of the present disclosure. [Figure 1B] FIG. 2 illustrates a schematic for producing various rotated versions of a test signal, according to some embodiments of the present disclosure. [Figure 1C] FIG. 2 illustrates a schematic for forming a matrix data structure in accordance with some embodiments of the present disclosure. [Figure 1D] FIG. 2 illustrates a window applied to a matrix data structure in accordance with some embodiments of the present disclosure. [Figure 1E] FIG. 2 illustrates a sliding three-dimensional (3D) window method for determining statistics of an input signal, according to some embodiments of the present disclosure. [Figure 1F] FIG. 1 is a schematic diagram illustrating an iterative process of a sliding three-dimensional (3D) window method, according to some embodiments of the present disclosure. [Diagram 2] FIG. 1 is a schematic diagram illustrating multiple windows of various window sizes applied by a sliding three-dimensional (3D) window method, according to some embodiments of the present disclosure. [Diagram 3] FIG. 2 is a schematic diagram illustrating time series data according to some embodiments of the present disclosure. [Figure 4A] FIG. 2 illustrates an overview of an algorithm for computing statistics of an input signal, according to some embodiments of the present disclosure. [Figure 4B] FIG. 1 illustrates an algorithm for calculating distances between elements of an input signal and various rotated versions of a test signal, according to some embodiments of the present disclosure. [Figure 4C] FIG. 1 illustrates an algorithm for determining the maximum value of a window applied by a sliding 3D window method using a double-ended queue method, according to some embodiments of the present disclosure. [Figure 4D] FIG. 1 illustrates an algorithm for constructing a segment tree according to some embodiments of the present disclosure. [Figure 4E]FIG. 1 illustrates an algorithm for determining the maximum value of a window applied by a sliding 3D window method using a segment tree method, according to some embodiments of the present disclosure. [Figure 4F] FIG. 1 illustrates an algorithm for calculating a range maximum value based on a segment tree and a window size, according to some embodiments of the present disclosure. [Diagram 5] FIG. 1 illustrates an environment for controlling a system using a controller, according to some embodiments of the present disclosure. [Figure 6] FIG. 1 illustrates an environment for controlling a system using a controller according to some other embodiments of the present disclosure. [Figure 7] FIG. 1 illustrates an environment for controlling the operation of a system using a controller, according to still other embodiments of the present disclosure. [Figure 8] FIG. 1 illustrates an environment for controlling the operation of a system using a controller, according to still other embodiments of the present disclosure. [Figure 9] FIG. 2 is a general block diagram illustrating a controller for controlling a system according to some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be apparent to those skilled in the art that the present disclosure may be practiced without these specific details. In other instances, the devices and methods are shown only in block diagram form in order to avoid obscuring the present disclosure.
[0021] As used in the specification and claims, the words "for example," "for example," and "such as," as well as "comprising," "having," "including," and other verb forms thereof, when used in conjunction with a list of one or more components or other items, should be construed as open ended. This means that the list should not be considered to exclude additional components or items. The term "based on" means based at least in part on. Furthermore, it should be understood that the terms and terminology used herein are for purposes of description and should not be considered as limiting. Any headings used herein are for convenience only and should not be considered as having any legal or limiting effect.
[0022] FIG. 1A is a block diagram illustrating a controller 100 for controlling the operation of a system 102 according to some embodiments of the present disclosure. Examples of the system 102 may include, but are not limited to, an HVAC (heating, ventilation, and air conditioning) system, a robotic assembly, an elevator door system, a vehicle, and a motor (e.g., induction motor, servo motor, etc.). Examples of the operation of the system 102 may include, but are not limited to, operating an HVAC system according to a specific parameter, operating a robotic arm according to a specific task, opening and closing an elevator door, and moving a mass by a servo motor according to a specific trajectory. The controller 100 may be associated with the system 102 to control the operation of the system 102. According to one embodiment, the controller 100 is configured to receive an input signal (Y) 104 from the system 102 and compare the input signal 104 to a test signal (X) 106 to control the operation of the system 102. The input signal 104 and the test signal 106 are time series data having values measured monotonically over time. In other words, the input signal 104 and the test signal 106 are time series of values. A time series is a sequence of values measured and / or determined successively in time. Each value in the time series corresponds to an instance of time, which may be defined by a time stamp associated with each value. The values of the time series are ordered according to their time stamps. The time instances may be indicated by absolute time and / or relative time, e.g., time from the start of operation of the system 102. Relative time instances are advantageous because they may facilitate alignment of measurements of various signals representing various executions of the operation of the system 102. Furthermore, the time series data includes a time series of values of measurements of physical variables of the operation of the system 102. Examples of such physical variables include torque and / or voltage of a motor moving a mass, position, velocity and / or acceleration of the mass, etc. Each value of the time series data may be single dimensional, including measurements of a physical quantity of the operation of the system 102, or may be multi-dimensional, including measurements of various physical quantities of the operation of the system 102.
[0023] The input signal 104 is Y=[y0, y1, ..., y n-1 ], where “n” denotes the length of the input signal 104,
[0024]
number
[0025] is the value sampled at time instance l (or position l), where l=0, 1, n-1. For example, if the input signal 104 has a length of 10 (e.g., n=10), then the input signal 104 may be represented as Y=[y0, y1, ..., y9]. The test signal 106 and the input signal 104 may have the same length n. The test signal 106 may be represented as X=[x0, x1, ..., x n-1 , x9]. For example, if the length of the test signal 106 is 10, then the test signal 106 may be represented as X=[x0, x1, ..., x9]. According to some embodiments, the controller 100 forms a matrix data structure by generating various rotated versions of the test signal 106 to compare the input signal 104 with the test signal 106. For example, the controller 100 is configured to generate various rotated versions of the test signal 106 as described in the detailed description of FIG. 1B.
[0026] FIG. 1B illustrates a schematic diagram for generating various rotated versions 108 of a test signal 106 according to some embodiments of the present disclosure. According to one embodiment, the controller 100 is configured to rotate the test signal 106 multiple times with various cyclic shifts to generate various rotated versions 108 of the test signal 106. The various rotated versions 108 of the test signal 106 include a plurality of rotated test signals, each rotated test signal of the plurality of rotated test signals being rotated with a different cyclic shift than the test signal 106. In some embodiments, the cyclic shift used to rotate the test signal 106 may be a function having a cyclic shift value (also referred to as the value of the cyclic shift) that follows a natural number sequence (e.g., 1, 2, 3, ..., n-1). For example, if the cyclic shift is a function that follows a natural number sequence, the controller 100 rotates the test signal 106 n-1 times using the cyclic shift to generate various rotated versions 108 including n-1 rotated test signals, as shown in FIG. 1B. In other words, where the circular shift is a function following a natural number sequence, the controller 100 rotates the test signal 106 with a circular shift value (e.g., 1, 2, 3, ..., n-1) to generate various rotated versions 108. Here, a first rotated test signal of the various rotated versions 108 is rotated with a circular shift value of 1, a second rotated test signal of the various rotated versions 108 is rotated with a circular shift value of 2, and similarly, an "n-1" rotated test signal of the various rotated versions 108 is rotated with a circular shift value of n-1. Thus, the circular shift value (e.g., 1, 2, 3, ..., n-1) determines the number of samples of the test signal 106 to be shifted to form a corresponding rotated test signal (first rotated test signal, second rotated test signal, ..., "n-1" rotated test signal). Furthermore, when the cyclic shift is a function following a natural number sequence, the controller 100 generates the n-1 rotated test signals such that the difference in cyclic shift values between any two adjacent rotated test signals among the n-1 rotated test signals is equal to 1.In some other embodiments, the circular shift used to rotate the test signal 106 may be a function having a circular shift value that follows an even natural number sequence (e.g., 2, 4, ..., n-2). In still other embodiments, the circular shift used to rotate the test signal 106 may be a function having a circular shift value that follows an odd natural number sequence (e.g., 1, 3, ..., n-1).
[0027] Furthermore, in some embodiments, the circular shift used to rotate the test signal 106 may be a left circular shift. If the circular shift corresponds to a left circular shift, the controller 100 generates the first rotated test signal of the various rotated versions 108 by moving the first entry 106a (e.g., value x0) of the test signal 106 to the last position 108n while shifting all other entries to the previous position, as shown in FIG. 1B. In some other embodiments, the circular shift used to rotate the test signal 106 may be a right circular shift. If the circular shift corresponds to a right circular shift, the controller 100 generates the first rotated test signal of the various rotated versions 108 by moving the last entry 106n (e.g., value x9) of the test signal 106 to the first position 108a while shifting all other entries to the next position.
[0028] For example, if the circular shift is a function that follows a natural number sequence and corresponds to a left circular shift, the controller 100 generates n-1 rotated test signals, which can be mathematically expressed as: (i) =[x i+1 ,x i+2 ,…,x n-1 ,x0,x1,…,x i ] where i = 0, 1, ..., n-2. In particular, the x i A portion may include one or more samples of the signal.
[0029] In this manner, the controller 100 rotates the test signal 106 multiple times with different circular shifts to generate different rotated versions 108 of the test signal 106. Additionally, the controller 100 is configured to form a matrix data structure using the different rotated versions 108 of the test signal 106, as described in the detailed description of FIG. 1C.
[0030] FIG. 1C illustrates a schematic for forming a matrix data structure based on the input signal 104 and various rotated versions 108 of the test signal 106 according to some embodiments of the present disclosure. In some embodiments, the test signal 106 and the input signal 104 can be two different time series data. For example, the test signal 106 can be time series data indicative of normal operation of the system 102, and the input signal 104 can be time series data indicative of the operation of the system 102. As used herein, the normal operation of the system 102 can correspond to operations performed by the system 102 during a first past period when the system 102 is configured for a particular requirement and does not include anomalies or failures. As used herein, the operation of the system 102 can correspond to operations performed by the system 102 in real time or during a second past period when the system 102 is configured for a particular requirement and may or may not include anomalies or failures. The second past period is different from the first past period. To this end, the controller 100 is configured to form a matrix data structure 110 including the input signal 104 using the test signal 106 and various rotated versions 108 of the test signal 106. For example, the controller 100 forms a matrix data structure 110 with a number of columns "a" (e.g., a=n) and a number of rows "b", where a first row in the matrix data structure 110 is the input signal 104, a second row in the matrix data structure 110 is the test signal 106, and the remaining b-2 rows are various rotated versions 108 of the test signal 106. In this manner, the controller 100 may form a matrix data structure 110 including the input signal 104 using the test signal 106 and various rotated versions 108 of the test signal 106 when the test signal 106 and the input signal 104 are two different time series data.
[0031] In some other embodiments, the test signal 106 may be a copy of the input signal 104. For example, the test signal 106 is equal to the input signal 104 (i.e., X=Y). For example, the test signal 106 and the input signal 104 may be real-time operations of the system 102. To this end, the controller 100 is configured to use various rotated versions 108 of the test signal 106 to form a matrix data structure 110′ that includes the test signal 106. For example, the controller 100 forms a matrix data structure 110′ with a number of columns “a” (e.g., a=n) and a number of rows “b”, where the first row in the matrix data structure 110′ is the test signal 106 and the remaining b−1 rows are various rotated versions 108 of the test signal 106.
[0032] In this manner, the controller 100 may form a matrix data structure 110' containing the test signal 106 using various rotated versions 108 of the test signal 106, where the test signal 106 is a copy of the input signal 104. Some embodiments are based on the recognition that statistics of the input signal 104 against the test signal 106 and various rotated versions 108 of the test signal 106 in the matrix data structure 110 are generated to represent a comparison between the input signal 104 and the test signal 106. To that end, it is an objective of some embodiments to apply a sliding three-dimensional (3D) window method to the matrix data structure 110 to generate statistics of the input signal 104. For example, as described in the detailed description of Figures 1D-1F, the controller 100 is further configured to apply a sliding three-dimensional (3D) window technique to the matrix data structure 110 (or the matrix data structure 110') to generate statistics of the input signal 104 (or the test signal 106) for various rotated versions 108 (i.e., rotated test signals).
[0033] In this disclosure, the 3D portion of the name of the sliding three-dimensional (3D) window technique refers to the ability of the window to simultaneously cover a two-dimensional input signal and a rotation of the test signal along the third dimension of the window, and this name is used for clarity and not as a limitation.
[0034] 1D illustrates a window 112 applied to the matrix data structure 110 according to some embodiments of the present disclosure. According to one embodiment, the sliding three-dimensional (3D) window determines the value of the statistic of the input signal 104 at a position (e.g., position 114) in the input signal 104 by applying the window 112 (i.e., the shaded portion) at a position in the input signal 104 of the matrix data structure 110. The window 112 may be of a configurable window size m. Furthermore, the sliding three-dimensional (3D) window method moves the window 112 to the next position to determine the value of the statistic of the input signal 104 at the next position in the input signal 104 of the matrix data structure 110. In this manner, the sliding three-dimensional window method iteratively moves the window 112 from the current position (e.g., position 114) to the next position in the matrix data structure 110 across the matrix data structure 110 after determining the current value of the statistic of the input signal 104 at the current position. In other words, the sliding three-dimensional (3D) window method iteratively moves the window 112 across the matrix data structure 110 to determine, within the window 112, the value of a statistic for a segment 116 of the input signal 104 in the matrix data structure 110. The segment 116 may be a subsequence of the input signal 104 defined by a configurable window size m of the window 112.
[0035] As used herein, a current position may correspond to a time instance in the input signal 104 of the matrix data structure 110 to which the window 112 is applied. As used herein, a next position may correspond to any subsequent position up to the current position. The "sliding" part of the sliding three-dimensional (3D) window method may refer to the sliding three-dimensional (3D) window method iteratively moving the window 112 across the matrix data structure 110 to determine statistics of the input signal 104. The "three-dimensional (3D) window" part of the sliding three-dimensional (3D) window method may refer to the sliding three-dimensional (3D) window method determining statistics for the time series data (e.g., input signal 104) within a window (e.g., window 112) relative to all other segments (e.g., the entire test signal 106) defined within the window. Thus, the sliding three-dimensional (3D) window method allows for determining statistics for a segment of the input signal 104 relative to the test signal 106 (ie, the entire test signal) using a single window (ie, window 112).
[0036] As used herein, the statistics of the input signal 104 may correspond to a “matrix profile” of the input signal 104. The “matrix profile” may be time series data. Furthermore, the “matrix profile” can be mathematically expressed as Z=[z0, z1, ..., z n-m ], where Z[j]=z j is the value of the statistic of the input signal 104 determined at position j (or the jth segment of the input signal 104), where j=0, 1, ..., nm. The jth segment of the input signal 104 is mathematically denoted by Y j,…,j+m-1 ≡[y j ,y j+1 ,…,y j+m-1 ] may also be represented as
[0037] For purposes of illustration, consider a window 112 with a window size m=4. However, the window size may be any configurable size within or equal to the length of the input signal 104. For example, the window size of the window 112 may be mathematically defined as 1≦m≦n. For purposes of illustration, consider a window 112 starting from a position 114 (e.g., an initial value y0) of the input signal 104 to determine a value (e.g., z0) of a statistic of the input signal 104. However, the window 112 may be a window starting from a position 114 (e.g., an initial value y0) of the input signal 104 to determine a corresponding value (e.g., z0) of a statistic of the input signal 104. 0, z 1, … , z n-m ), any value of the input signal 104 (e.g., y 0, y 1, … , y n-m ) randomly. For example, the controller 100 determines the value (e.g., z) of the statistic of the input signal 104 at the location 114 by applying a sliding three-dimensional (3D) window method, as described in the detailed description of FIG. 1E.
[0038] 1E illustrates a sliding three-dimensional (3D) window method for determining statistics of an input signal 104, according to some embodiments of the present disclosure. FIG. 1E is described in relation to FIG. 1D. Some embodiments are based on the understanding that the various rotated versions 108 of a test signal 106 within a window 112 include invalid test signal segments 118 and valid test signal segments. As used herein, an invalid test signal segment 118 may correspond to a rotated test signal segment that violates the monotonicity of time indices in the test signal 106. For example, a rotated test signal X defined within a window 112 may include a valid test signal segment 118 that is invalid. (6) , X (7) , and X (8) is considered an invalid test signal segment 118 for the window 112 at the position 114 because after the three rotations, the test signal X (6) , X(7) , and X (8) all indicate that the test signal 106 value x0 follows the test signal 106 value x9 over time within the window 112, which violates the monotonicity of the time indexes defined in the test signal 106. The valid test signal segment may include the current segment of the test signal 106, excluding the invalid test signal segment 118.
[0039] To this end, in some embodiments, in step 120, the controller 100 applies a sliding three-dimensional (3D) window method to calculate statistical observations (also referred to as local statistics) for a current segment (e.g., segment 116) of the input signal 104 in the window 112 at a current position (e.g., position 114) relative to a current segment of the test signal 106 in the window 112 at a current position. For example, the current segment of the test signal 106 in the window 112 at a current position includes a current test signal segment (e.g., a segment including time series values of x0, x1, x2, and x3) defined by the window 112 and various rotated versions 108 of the test signal 106 defined within the window 112. In other words, the controller 100 is configured to calculate statistical observations of a current segment of the input signal 104 in the window 112 at a current position relative to all other segments in the window 112 at a current position. According to one embodiment, the statistical observation of the current segment of the input signal 104 at the current position includes a difference between values of the current segment of the input signal 104, including values of each current segment of the test signal 106 defined within the window 112. In other words, the statistical observation of the current segment of the input signal 104 at the current position may include an element-to-element difference between the current segment of the input signal 104 and each current segment of the test signal 106 defined within the window 112. For example, the statistical observation of the segment 116 of the input signal 104 within the window 112 at the position 114 relative to the current test signal segment (e.g., x0, x1, x2, x3) defined within the window 112 may be mathematically calculated as {|y0-x0|, |y1-x1|, |y2-x2|, |y3-x3|}. In this manner, the controller 100 is configured to calculate the absolute difference between the values of the current segment (e.g., segment 116) of the input signal 104, including the values of each current segment of the test signal 106 defined within the window 112, in order to calculate a statistical observation value for the current segment of the input signal 104.
[0040] To this end, the statistical observations of the current segment of the input signal 104 may include valid statistical observations and invalid statistical observations. The valid statistical observations for the window 112 at the current position include the differences between values of the current segment of the input signal 104, including the values of each current segment of the test signal 106 having a monotonic time index. In other words, the valid statistical observations for the window 112 at the current position include the differences between values of the current segment of the input signal 104, including the values of each valid test signal segment defined within the window 112. The invalid statistical observations for the window 112 at the current position include the differences between values of the current segment of the input signal 104, including the values of each invalid test signal segment defined within the window 112.
[0041] In some other embodiments, the controller 100 calculates valid statistical observations for a current segment (e.g., segment 116) of the input signal 104 within the window 112 at the current position (e.g., position 114) relative to valid test signal segments defined within the window 112 at the current position by applying a sliding three-dimensional (3D) window method to filter out invalid test signal segments defined within the window 112 at the current position, because the test signal 106 is time series data and has monotonic time dependence.
[0042] In step 122, the controller 100 applies a sliding three-dimensional (3D) window method to determine the current value (e.g., value z0) of the statistic of the input signal 104 from the statistical observations of the current segment (e.g., segment 116) of the input signal 104. According to one embodiment, the controller 100 is configured to determine the current value of the statistic of the input signal 104 from the statistical observations of the current segment (e.g., segment 116) of the input signal 104, excluding invalid statistical observations determined for the current segment of the test signal 106 that disturb the monotonicity of the test signal 106. In other words, the controller 100 is configured to determine the current value of the statistic of the input signal 104 from the valid statistical observations of the current segment (e.g., segment 116) of the input signal 104. For example, the current value of the statistic of the input signal 104 can be mathematically expressed as:
[0043]
number
[0044] where the notation
[0045]
number
[0046] may be calculated from the available statistical observations of the current segment (e.g., segment 116) of the input signal 104. For example, the notation
[0047]
number
[0048] Mathematically,
[0049]
number
[0050] The notation d(.,.) defines the unnormalized Euclidean distance (denoted as (l≦p1≦∞)). To this end, the statistics of the input signal 104 at position j is the distance between the jth subsequence of the input signal 104 and the nearest neighboring sequence in the test signal 106. In other words, the controller 100 calculates the distance between a current segment of the input signal 104 (e.g., segment 116) and each of the valid test signal segments defined within the window 112 to determine the current value of the statistics of the input signal 104 at position j. For example, the controller 100 may calculate the current value of the statistics of the input signal 104 at position j (e.g., value z j ) to determine
[0051]
number
[0052] The distances between the elements are calculated and the minimum distance is determined from among the calculated distances. The statistics of the input signal 104 may also be referred to as the global statistics of the input signal 104.
[0053] In step 124, the controller 100 applies a sliding three-dimensional (3D) window method to move the window 112 from a current position (e.g., position 114) to a next position across the matrix data structure 110. According to one embodiment, the controller 100 is configured to determine a shift value for moving the window 112 from a current position (e.g., position 114) to a next position in the matrix data structure 110. In some embodiments, the value for moving the window 112 from a current position (e.g., position 114) to a next position in the matrix data structure 110 may be equal to the difference in circular shift values between any two adjacent rotated test signals in the various rotated versions 108 of the test signal 106. In some other embodiments, the value for moving the window 112 from a current position (e.g., position 114) to a next position in the matrix data structure 110 may be a predefined value.
[0054] Further, the controller 100 is configured to move the window 112 from a current position (e.g., position 114) to a next position in the matrix data structure 110 based on the determined value of the shift. For example, moving the window 112 to a next position in the matrix data structure 110 results in the window 112 in the next position being as shown in FIG. 1F.
[0055] FIG. 1F is a schematic diagram illustrating an iterative process of a sliding three-dimensional (3D) window method according to some embodiments of the present disclosure. FIG. 1F is described in relation to FIG. 1E. After moving the window 112 to the next position (e.g., position 126) in the matrix data structure 110, the controller 100 loops back to step 120. In step 120, the controller 100 applies the sliding three-dimensional (3D) window method to calculate statistical observations of a current segment (e.g., segment 128) of the input signal 104 in the window 112 at a current position (e.g., position 126) relative to a current segment of the test signal 106 in the window 112 at a current position. Some embodiments are based on the recognition that the statistical observations of a current segment (e.g., segment 128) of the input signal 104 in the window 112 at a current position (e.g., position 126) include some pre-calculated statistical observations for the window 112 at a previous position (e.g., position 114). For example, the pre-calculated statistical observations for the current segment (e.g., segment 128) of the input signal 104 within the window 112 at the current position (e.g., position 126) include the statistical observations calculated for the column 130 at the previous position (e.g., position 114). The column 130 may be an overlapping area between the window 112 at the current position (e.g., position 126) and the window 112 at the previous position (e.g., position 114). To that end, it is an objective of some embodiments to use at least some corresponding statistical observations determined for the window 112 at the previous position (e.g., position 114) while calculating the statistical observations for the segment 128 of the input signal 104 within the window 112 at the position 126. Thus, the controller 100 optimizes the calculation of the statistical observations to determine the statistics of the input signal 104.
[0056] Some embodiments are based on the recognition that an invalid test signal segment for a window 112 at one location in the matrix data structure 110 may be different than a window 112 at another location in the matrix data structure 110. For example, an invalid segment 118 for a window 112 at location 114 may be different from the invalid test signal segment X (6) , X (7) , and X (8) , and the invalid segment 132 for the window 112 at the location 126 corresponds to the post-rotation test signal X (5) , X (6) , and X (7) Thus, to use at least some corresponding statistical observations determined for window 112 at a previous position, some embodiments calculate statistical observations in step 120 that include both valid and invalid statistical observations.
[0057] Further, in step 122, the controller 100 applies a sliding three-dimensional (3D) window technique to determine a current value (e.g., value z1) of the statistics of the input signal 104 from the statistical observations of the current segment of the input signal 104, excluding invalid statistical observations determined for the current segment of the test signal 106 that violate the monotonicity of the test signal 106. For the window 112 at position 126, the invalid test signal segment 132 is a variance of the rotated test signal X defined within the window 112. (5) , X (6) , and X (7) Because the post-rotation test signal X defined within the window 112 may include (5) , X (6) , and X (7) would violate the monotonicity of the time indexes defined in the test signal 106.
[0058] In step 124, the controller 100 applies a sliding three-dimensional (3D) window method to move the window 112 from a current position (e.g., position 126) to a next position in the matrix data structure 110, as described above in the detailed description of FIG. 1E.
[0059] In this manner, the controller 100 applies a sliding three-dimensional (3D) window technique to iteratively move the window 112 from a current position (e.g., position 126) to a next position across the matrix data structure 110 to generate statistics of the input signal 104 until a termination condition is reached. In some embodiments, the termination condition is when the window 112 reaches y y of the input signal 104. n-m In some other embodiments, the termination condition may be a condition that a window (e.g., a window with a window size m=1) is at a position (e.g., position 132) having a value of y n-1 For the window 112 at position 132, the invalid test signal segment 136 is in a position having a value of (0) , X (1) , and X (2) Because the post-rotation test signal X defined within the window 112 may include (0) , X (1) , and X (2) would disturb the monotonicity of the time indexes defined in the test signal 106. For the window 112 at position 132, the controller 100 may calculate the current value of the statistics of the input signal 104 (e.g., the value z n-m To this end, the controller 100 calculates the statistics of the input signal 104 with respect to the test signal 106 (e.g., Z=[z0, z1, ..., z n-m The statistics of the input signal 104 thus generated may be a time series signal having values of the statistics of the input signal 104.
[0060] Furthermore, the controller 100 is configured to control the operation of the system 102 according to the statistics of the input signal 104. For example, the controller 100 may compare the statistics of the input signal 104 to a threshold value, and may determine an anomaly in the operation of the system 102 if the statistics of the input signal are greater than the threshold value.
[0061] 1D-1F, consider a window 112 applied across a matrix data structure 110. However, the window 112 may also be applied across a matrix data structure 110′. In this case, the statistics (the “matrix profile”) of a test signal 106 that corresponds to an input signal 104 can be mathematically calculated as Z=[z0, z1, ..., z n-m ], where Z[j]=z j is the value of the statistic of the test signal 106 calculated for the j-th segment of the test signal 106, where j=0, 1, ..., nm. j ) is mathematically defined as
[0062]
number
[0063] To this end, the statistics of the test signal 106 at position j is the distance between the jth subsequence of the test signal 106 and its nearest neighbor sequence in the test signal 106. In other words, the controller 100 applies the sliding 3D window method such that the sliding 3D window method determines the statistics of the test signal 106 (i.e., the input signal 104) relative to itself by comparing various segments of the test signal 106 with other segments of the test signal 106.
[0064] For illustrative purposes, FIGS. 1D-1F consider the same window size (e.g., m=4) of the window 112 at various positions (e.g., positions 114 and 126). However, in some embodiments, the window size may vary from position to position in the matrix data structure 110. For example, the window 112 applied by a sliding three-dimensional (3D) window method at two different positions in the matrix data structure 110 may have two different window sizes. Some embodiments are based on the understanding that the exact window size m of the window 112 for capturing the “essence” of the input signal 104 or the “essence” of the input signal 104 relative to the test signal 106 is unknown. As used herein, the “essence” of the input signal 104 may be an inherent characteristic of one segment of the input signal 104 relative to another segment of the input signal 104. As used herein, the "essence" of the input signal 104 relative to the test signal 106 may be an exogenous characteristic of a certain segment of the input signal 104 relative to the test signal 106. To this end, an objective of some embodiments is to apply a sliding three-dimensional (3D) window method to generate multi-dimensional statistics of the input signal 104 by applying multiple windows of various window sizes at each position of the input signal 104 in the matrix data structure 110. For example, multiple windows of various window sizes at one particular position of the input signal 104 are as shown in FIG.
[0065] 2 is a schematic diagram illustrating multiple windows of various window sizes applied by a sliding three-dimensional (3D) window method according to some embodiments of the present disclosure. According to one embodiment, the controller 100 applies a sliding three-dimensional (3D) window method to apply multiple windows of various window sizes at each position in the input signal 104 of the matrix data structure 110. For example, the controller 100 applies a sliding three-dimensional (3D) window method to apply a first window 200 with a window size m=3, a second window 202 with a window size m=4, and a third window 204 with a window size m=5 at a position 206 in the input signal 104 of the matrix data structure 110. Since the window sizes of each window of the multiple windows 200, 202, and 204 are different, the values of the statistics of the input signal 104 determined by the controller 100 at each position of the input signal 104 using each window are different. In other words, the controller 100 determines multiple different values of the statistics of the input signal 104 for each location in the input signal 104 of the matrix data structure 110 by applying multiple windows 200, 202, and 204 at each location of the input signal 104. These multiple different values of the statistics of the input signal 104 determined for the entire input signal 104 may be referred to as multi-dimensional statistics of the input signal 104. According to an embodiment, while determining the value of the statistics of the input signal 104 at the location 206 using one of the windows 200, 202, and 204, the controller 100 may be configured to reuse at least some pre-computed statistical observations for the overlapping windows at the location 206. The overlapping windows for the window 200 at the location 206 may be the window 202 and the window 204 because the window 200 has an overlapping region 208 with the window 202 and the window 204. The overlapping windows for the window 202 may be the window 200 and the window 204.202 has an overlapping area 208 with window 200, and window 202 has an area that is equal to and overlaps with window 204. The overlapping windows for window 204 can be window 200 and window 202, because window 204 has an overlapping area 208 with window 200, and window 204 has an area that is equal to and overlaps with window 202.
[0066] 2, window 200 may be a different instance than windows 202 and 204 other than the window size m. For example, window 200 is used to determine the value of the statistics of input signal 104 for a center position in the first row of window 200. However, windows 202 and 204 are used to determine the value of the statistics of input signal 104 for start positions within windows 202 and 204.
[0067] 3 is a schematic diagram illustrating time series data 301 according to some embodiments of the present disclosure. The time series data 301 may correspond to at least one of the input signal 104 and the test signal 106. The time series data 301 includes a series of values x0, x1, ..., x2 measured sequentially over time. n-1 In some embodiments, the time series data 301 includes values (e.g., x0, x1, ..., x n-1 For example, the time series data 301 may be a one-dimensional signal having values x0, x1, ..., x2, which correspond to values 301a, 301b, ..., 301n, respectively. n-1 The values 301a, 301b, ..., and 301n may correspond to time instances t0, t1, ..., t n-13. The signal 301 may be a value of the signal 301 sampled at . The signal 301 may be a signal collected from the operation of an actuator of the system 102. In one embodiment, the controller 100 determines a value of the statistic of the time series data 301 for each location (having a single value) in the time series data 301. In this embodiment, the mapping between the values in the time series data 301 and the values of the statistic is a one-to-one mapping. In another embodiment, the controller 100 determines multiple different values of the statistic of the time series data 301 (i.e., a multi-dimensional statistic) for each location (having a single value) in the time series data 301. In this embodiment, the mapping between the values in the time series data 301 and the multiple different values of the statistic is a one-to-many mapping.
[0068] In some other embodiments, the time series data 301 may be values (e.g., x0, x1, ..., x2, ...) measured from the operation of various actuators of the system 102. n-1 For example, the time series data 301 may be a multi-dimensional signal having values x0, x1, ..., x2, including values 301a and 303a, values 301b and 303b, ..., values 301n and 303n, respectively. n-1 The values 301a, 301b, ..., and 301n may have the following values: n-1 The values 303a, 303b, ..., 303n may be values of the signal 301 sampled at time instances t0, t1, ..., t n-13. The signals 301 and 303 may be values of the signal 303 sampled at . The signals 301 and 303 may be signals collected from the operation of various actuators of the system 102. In one embodiment, the controller 100 determines a value of the statistic of the time series data 301 for each location (having multiple values) in the time series data 301. In this embodiment, the mapping between the multiple values in the time series data 301 and the multiple values of the statistic is a many-to-one mapping. In another embodiment, the controller 100 determines multiple different values of the statistic (i.e., a multi-dimensional statistic) of the time series data 301 for each location (having multiple values) in the time series data 301. In this embodiment, the mapping between the multiple values in the time series data 301 and the multiple different values of the statistic is a many-to-many mapping.
[0069] FIG. 4A shows an overview of an algorithm for computing statistics of an input signal 104 according to some embodiments of the present disclosure. Some embodiments are based on the understanding that the statistics are determined by a subroutine that computes the maximum value of a window applied by a sliding three-dimensional window for a given time series data (e.g., the input signal 104) and a given window size m. For this, some embodiments apply a brute force method. The brute force method is configured to search for a maximum value for every window of a window size m, which results in a time complexity of the order of 0(m(n-m+1))=0(mn), depending on the window size m. Since the time complexity of the brute force method depends on the window size m, the time required to compute the statistics (using the brute force method) will increase proportionally to the window size m. For this, the objective of some embodiments is to compute the statistics of the input signal using at least one of a double-ended queue method or a segment tree method, such that the time complexity does not depend on the window size m and allows computing the statistics of the input signal in less time compared to the brute force method. For example, an algorithm (ie, Algorithm 1) executed by the controller 100 to calculate statistics of an input signal using at least one of the double-ended queue method or the segment tree method is as shown in FIG. 4(A).
[0070] Algorithm 1 is executed on the controller 100 to perform a number of operations. Based on the execution of Algorithm 1, the controller 100 receives the time series data (X), the window size (m), and an argument ("options"). Algorithm 1 considers the input signal and the test signal to be equal to the time series data (X). The argument "options" is used to select at least one of the double-ended queue method ("deque") and the segment tree method ("segtree"). Furthermore, the controller 100 determines the length (n) of the time series data (hereinafter, the time series data is referred to as the input signal (X)) and initializes an array of length n-m+1 for calculating statistics of the input signal. The controller 100 calculates the inter-element distance ("eleDist") between the input signal and various rotated versions of the input signal. Furthermore, the algorithm for calculating the inter-element distance is as shown in FIG. 4B.
[0071] FIG. 4B illustrates an algorithm (Algorithm 1.1) for calculating the distance between elements according to some embodiments of the present disclosure. Algorithm 1.1 is executed on the controller 100 to perform multiple operations to calculate the distance between elements. In particular, after execution of Algorithm 1.1, the controller 100 first receives an input signal (X) and a variable i. The variable i represents the i-th rotated version of the input signal. Furthermore, the controller 100 determines the length of the input signal and generates the i-th rotated version of the input signal. The controller 100 calculates the distance between elements between the input signal and the i-th rotated version of the input signal. Furthermore, the controller 100 returns an array "eleDist" including the distance between elements between the input signal and the i-th rotated version of the input signal. The array "eleDist" may have a length similar to the length of the input signal.
[0072] Referring to FIG. 4A, algorithm 1 configures the controller 100 to check whether the option is equal to “deque”. If the option is equal to “deque”, algorithm 1 configures the controller 100 to apply a double-ended queue method to determine the maximum value of the window applied by the sliding 3D window method. Further, the algorithm for determining the maximum value of the window applied by the sliding 3D window method using the double-ended queue method is as shown in FIG. 4(C).
[0073] FIG. 4C illustrates an algorithm (Algorithm 1.2) for determining the maximum value of a window applied by the sliding three-dimensional window method using a double-ended queue method according to some embodiments of the present disclosure. Algorithm 1.2 is executed to perform a number of operations to determine the maximum value of a window. After execution of Algorithm 1.2, the controller 100 receives an input signal (X) and a window size (m) and determines the length of the input signal. Furthermore, the controller 100 checks whether the window size (m) is equal to 1, and returns the input signal (X) if the window size (m) is equal to 1. The controller 100 initializes an empty double-ended queue (Q) and initializes an empty vector ("slidMax"). Furthermore, the controller 100 removes the time indexes of values of the input signal that do not correspond to the window applied by the sliding three-dimensional window method at the current position. The controller 100 removes the time indexes of all values of the input signal that are smaller than the current value of the input signal (X[l]) from the double-ended queue (Q). Furthermore, the controller 100 adds a variable l to the right end of the double-ended queue (Q) and adds the value of the input signal X[Q[0]] to the right end of the vector ("slidMax"). In this way, each value of the input signal can be added to and removed from the double-ended queue (Q) once, resulting in a time complexity of 0(n) that is independent of the window size m. Furthermore, the controller 100 returns a vector ("slidMax") containing the maximum value of the window applied by the sliding 3D window method.
[0074] Referring to Figure 4A, algorithm 1 checks whether "options" is equal to "segtree". If "options" is equal to "segtree", the controller 100 builds a segment tree. For example, the algorithm for building a segment tree is as shown in Figure 4D.
[0075] FIG. 4D illustrates an algorithm (Algorithm 1.3.1) for constructing a segment tree according to some embodiments of the present disclosure. Algorithm 1.3.1 includes a set of instructions executed on the controller to construct a segment tree. After Algorithm 1.3.1 is executed, the controller 100 receives an input signal (X) and determines the length (n) of the input signal. In addition, the controller 100 initializes a new zero array ("ST") with a length equal to 2n, and copies the input signal to the second half of the array ("ST") to construct the segment tree ("ST").
[0076] Referring to Fig. 4A, algorithm 1 configures the controller 100 to apply the segment tree method to determine the maximum value of the window applied by the sliding 3D window method. Further, the algorithm for determining the maximum value of the window applied by the sliding 3D window method using the segment tree method is as shown in Fig. 4E.
[0077] FIG. 4E illustrates an algorithm (Algorithm 1.3.2) for determining the maximum value of a window applied by a sliding 3D window method using a segment tree method, according to some embodiments of the present disclosure. Algorithm 1.3.2 includes a set of instructions executed on the controller 100 to determine the maximum value of the window. When Algorithm 1.3.2 is executed on the controller 100, the controller 100 receives the constructed segment tree ("ST") and the window size (m). The controller 100 determines the length of the input signal by dividing the length of the segment tree ("ST") by a value of 2. The controller 100 initializes a new empty vector ("slidMax") and calculates the range maximum value ("rm") based on the segment tree ("ST") and the window size m. Furthermore, the controller 100 adds the range maximum value ("rm") to the vector ("slidMax"). In this manner, the range maximum value ("rm") may be calculated iteratively, and the range maximum value ("rm") is iteratively added to the vector ("slidMax"). In this case, j=0,1,...,nm. In addition, the controller 100 returns a vector ("slidMax") containing the maximum values of the windows applied by the sliding 3D window method. The algorithm for calculating the range maximum ("rm") based on the segment tree ("ST") and the window size m is shown in Figure 4F.
[0078] FIG. 4F illustrates an algorithm (Algorithm 1.3.3) for calculating a range maximum value ("rm") based on a segment tree ("ST") and a window size m, according to some embodiments of the present disclosure. Algorithm 1.3.3 is executed on the controller 100. After execution of Algorithm 1.3.3, the controller 100 receives the constructed segment tree ("ST"), a first variable ("left"="j"), and a second variable ("right"="j+m"). In addition, the controller 100 divides the length (n) of the segment tree ("ST") by a value of 2 to calculate the first variable.
[0079]
number
[0080] and the second variable is calculated as
[0081]
number
[0082] The controller 100 initializes a floating-point number ("max"). For example, the controller 100 initializes a floating-point number as "-1.0×10 6 ". Additionally, the controller 100 calculates a maximum value, updates the maximum value to a floating point number if one or more conditions are met, and returns the floating point number ("max").
[0083] Referring to FIG. 4A, Algorithm 1 calculates that the current value (MP[j]) is always the “up-till-now minimum” l for the window applied at position j. p If the distance is , the current value of the statistics of the input signal (i.e., MP[j] = z j Algorithm 1 also configures controller 100 to calculate current values of statistics for segments of the input signal for each of the rotated versions defined within the window and that do not violate the monotonicity of the time index of the input signal. Thus, Algorithm 1 configures controller 100 to return MP[j] for the window located at position j.
[0084] Thus, the controller 100 is configured to determine the statistics of the input signal using at least one of the double-ended queue method and the segment tree method. Based on experiments, the time complexity is 0(n 2 ) order. Based on experiments, the time complexity is determined to be on the order of 0(n2 log n). In either case, the time complexity does not depend on the window size m. Thus, the controller 100 using at least one of the sliding 3D window method or the segment tree method calculates the statistics of the input signal in less time compared to a controller using a brute force method to calculate the statistics of the input signal. Furthermore, the controller 100 is configured to control the operation of the system 102 using the calculated statistics of the input signal. For example, the controller 100 controls the operation of the system 102 using the calculated statistics of the input signal as described in the detailed description of FIGS. 5-8.
[0085] FIG. 5 illustrates an environment for controlling a system 102 using a controller 100 according to some embodiments of the present disclosure. In this example, the system 102 is a motor. The system 102 may include various sensors for monitoring the operation of the motor. According to one embodiment, the system 102 includes a sensor 500 (e.g., a temperature sensor) for measuring the temperature of the system 102. The sensor 500 records the temperature of the system 102 as time series data. According to one embodiment, the controller 100 receives the time series data indicative of the temperature of the system 102 as an input signal 502. In this exemplary embodiment, the test signal (e.g., the test signal 106) and the input signal 502 are the same. In other words, the test signal may be a copy of the input signal 502. To that end, the controller 100 determines statistics of the input signal 502 relative to itself by comparing various segments of the input signal 502 with other segments of the input signal 502, as described in the detailed description of FIGS. 1A-1F.
[0086] The controller 100 is further configured to compare the statistics of the input signal 502 to at least one threshold 504 to detect anomalies in the statistics of the input signal 502. In some embodiments, the at least one threshold 504 may be a temperature value (or a statistic of temperature values) indicative of a normal operating temperature of the system 102. To this end, the controller 100 determines whether the statistics of the input signal 502 are greater than the threshold to detect anomalies in the statistics of the input signal 502. In some other embodiments, the at least one threshold 504 may be a range of values indicative of a normal operating temperature range of the system 102. To this end, the controller 100 checks whether the statistics of the input signal 502 are within a range of values to detect anomalies in the statistics of the input signal 502. Furthermore, in some embodiments, the controller 100 may be configured to determine a control signal 506 to an actuator 508 to bring the motor to a normal operating temperature in response to detecting anomalies in the statistics of the input signal 502. For example, the controller 100 may generate a control signal to activate an external cooling system (e.g., a fan) associated with the motor to bring the motor to a normal operating temperature. In some other embodiments, the controller 100 may be configured to determine a control signal 506 for stopping operation of the motor in response to detecting an anomaly in the statistics of the input signal 502. To that end, the motor may stop operation or may operate at normal operating temperatures when an anomaly is detected.
[0087] FIG. 6 illustrates an environment for controlling a system 102 using a controller 100 according to some other embodiments of the present disclosure. In this example, the system 102 is a vehicle. As used herein, a vehicle may be any type of wheeled vehicle, such as a car, a bus, or a rover. Also, the vehicle may be an autonomous vehicle or a semi-autonomous vehicle. According to one embodiment, the controller 100 is configured to control the motion (i.e., operation) of the vehicle. An example of the operation includes the lateral movement of the vehicle controlled by a steering system 600 of the vehicle and a braking system 602 of the vehicle. In one embodiment, the steering system 600 and the braking system 602 are controlled by the controller 100. Additionally or alternatively, the steering system 600 and the braking system 602 may be controlled by a driver of the vehicle.
[0088] The vehicle may also include an engine 604 that may be controlled by the controller 100 or by other components of the vehicle. Additionally, the vehicle may include a transceiver 612 to enable communication functions of the controller 100 via wired or wireless communication channels. The vehicle may also include one or more sensors 610 for sensing the amount of motion and internal conditions of the vehicle. Examples of the sensors 610 include a global positioning system (GPS), an accelerometer, an inertial measurement unit, a gyroscope, a shaft rotation sensor, a torque sensor, a deflection sensor, a pressure sensor, and a flow sensor. The one or more sensors 610 may be associated with various actuators of the vehicle. For example, the actuators of the vehicle may include a steering wheel 606 associated with the steering system 600, a brake 608 associated with the braking system 602, etc. The one or more sensors 610 may measure at least one of a physical variable of the steering system 600, a physical variable of the braking system 602, or a combination thereof as time series data. For example, the physical variable of the steering system 600 may be a steering angle associated with, for example, a steering wheel 606. For example, the physical variable of the braking system 602 may be a braking torque associated with, for example, a brake 608. The physical variable of the steering system 600 may be used to control the rotation of the vehicle during operation of the vehicle, and the physical variable of the braking system 602 may be used to control the acceleration of the vehicle during operation of the vehicle.
[0089] According to one embodiment, the controller 100 is configured to receive time series data as an input signal (e.g., input signal 104). If the time series data corresponds to at least one of the physical variables of the steering system 600 or the physical variables of the braking system 602, the input signal is a one-dimensional signal (e.g., a Univariate Time Series (UTS) signal). If the time series data corresponds to a combination of the physical variables of the steering system 600 and the physical variables of the braking system 602, the input signal is a multidimensional signal (e.g., a Multivariate Time Series (MTS) signal). Furthermore, the controller 100 is configured to generate statistics of the input signal, as described in the detailed description of FIGS. 1A-1F.
[0090] Further, the controller 100 is configured to compare the statistics of the input signals with the statistics of the raw data. For example, the statistics of the raw data may include statistics for normal operation of the steering system 600 and the braking system 602 in a lane keeping application, etc. Furthermore, the controller 100 is configured to determine constraints (e.g., steering angle constraints, acceleration constraints, etc.) for lane keeping, etc., based on the comparison of the statistics of the input signals with the statistics of the raw data. Furthermore, the controller 100 is configured to determine control commands (e.g., steering angle, brake torque, etc.) for the vehicle actuators (e.g., steering wheel 606, brakes 608, etc.) subject to the determined constraints. Upon receiving the control commands from the controller 100, the vehicle actuators ensure that the vehicle maintains a lane on the road.
[0091] 7 illustrates an environment for controlling the operation of a system 102 using a controller 100 according to yet another embodiment of the present disclosure. In this example, the system 102 is an HVAC system. An "HVAC" system refers to any heating, ventilation and air conditioning (HVAC) system that implements a vapor compression cycle. HVAC systems span a very broad set of systems, ranging from systems that only provide outdoor air to building occupants, to systems that only control the temperature of a building, or systems that control temperature and humidity.
[0092] The HVAC system is configured to condition a room 700. The room 700 is occupied by occupants 702, 704, 706, and 708. Arrow 710 represents air supplied by the HVAC system to condition the room 700. The controller 100 is configured to receive an input signal (e.g., input signal 104) during a first time period (also referred to as a first operating cycle). For example, the input signal is indicative of an operating parameter of the HVAC system over the first time period (e.g., 24 hours). Examples of the operating parameters may include a position of an expansion valve of the HVAC system, a speed of a compressor of the HVAC system, a speed of an indoor fan of the HVAC system, a speed of an outdoor fan of the HVAC system, etc. The controller 100 is configured to generate statistics of the input signal received from the HVAC system, as described in the detailed description of FIGS. 1A-1F. The controller 100 is further configured to store statistics of the multi-dimensional time series data including the operating parameters corresponding to optimal power consumption of the HVAC system.
[0093] Furthermore, the controller 100 is configured to determine anomalies in the statistics of the input signal by comparing the statistics of the input signal with the statistics of the multi-dimensional time series data. In this example, the anomalies in the statistics of the input signal may be variations in the operating parameters that result in deviations from optimal power consumption. The controller 100 is further configured to control the system 102 over a second time period, e.g., the next 24 hours (also referred to as a second operating cycle), based on the determined anomalies, such that the system 102 operates with optimal power consumption during the second time period. To control the system 102 to operate with optimal power consumption, the controller 100 may determine a time instance or duration during the first time period during which an anomaly is determined, and may control the operating parameters at the determined time instance and duration during the second time period. In this manner, the controller 100 is configured to determine the statistics of the input signal over one time period and adjust the operation of the system 102 over another time period.
[0094] FIG. 8 illustrates an environment for controlling the system 102 using the controller 100 according to yet another embodiment of the present disclosure. In this example, the system 102 is a conveyor belt system. An operation of the conveyor belt system may include an operation of moving a mass 800 from a first position to a second position. The first position and the second position are two different positions. The conveyor belt system 102 may include a conveyor belt 802 and at least two pulleys 804. Furthermore, the conveyor belt system 102 may include a motor (e.g., a servo motor). At least one of the two pulleys 804 may be connected to the motor to perform an operation of the system 102. For example, the motor may be configured to rotate the pulley 804 at a predetermined speed to move the mass 800 from the first position to the second position. Additionally, the system 102 may include one or more sensors for measuring the speed of the pulley 804 (e.g., the speed of the motor), etc. The one or more sensors may record the speed of the pulley 804 as time series data. According to one embodiment, the controller 100 receives as an input signal time series data indicative of the speed of the pulley 804. Additionally, the controller 100 is configured to generate statistics on the input signal, as described in the detailed description of Figures 1A-1F.
[0095] According to some embodiments, the controller 100 may include a predictive model configured to relate the generated statistics of the input signals to an expected failure time (also referred to as Remaining Useful Life (RUL)) of the system 102. According to one embodiment, the predictive model may be a pre-trained machine learning model. Furthermore, in some embodiments, the predictive model may be configured to output a first notification based on the expected failure time of the system 102. The first notification may include a first message indicating to repair the system 102 or a second message indicating to enable the system 102 to run. Based on the first notification, the controller 101 may be configured to stop or enable operation of the system 102.
[0096] In some other embodiments, the predictive model may be configured to output a second notification based on a predicted downtime of the system 102. For example, the second notification may include a message indicating to limit the speed of the motor. The controller 101 may be configured to determine a constraint (e.g., a speed constraint) for limiting the speed of the motor based on the second notification. In this manner, the controller 100 is configured to control the system 102.
[0097] The overall block diagram of the controller 100 is shown in FIG.
[0098] 9 is an overall block diagram of a controller 100 for controlling a system 102 according to some embodiments of the present disclosure. The controller 100 may have several interfaces connecting the controller 100 to other systems and devices. For example, a network interface controller (NIC) 914 is adapted to connect the controller 100 to a network 916 via a bus 912. The controller 100 may receive an input signal 104 wirelessly or wired via the network 916. Additionally or alternatively, the input signal 104 may be received via an input interface 902.
[0099] The controller 100 includes a processor 904 configured to execute stored instructions and a memory 906 that stores instructions executable by the processor 904. The processor 904 may be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. The memory 906 may include random access memory (RAM), read only memory (ROM), flash memory, or any other suitable memory system. The processor 904 is connected to one or more input / output devices via a bus 912. Additionally, the controller 100 includes a storage device 908 adapted to store various modules that store executable instructions for the processor 904. The storage device 908 may be implemented using a hard drive, an optical drive, a thumb drive, an array of drives, or any combination thereof.
[0100] The storage device 908 is configured to store a system operation control module 910. The system operation control module 910 may correspond to an algorithm (Algorithm 1) described in the detailed description of FIG. 4A. In some exemplary embodiments, the processor 904 is configured to execute the system operation control module 910 to receive an input signal 104 indicative of an operation of the system 102 and to rotate a test signal (e.g., the test signal 106) multiple times with different circular shifts to cause different rotations of the test signal forming a matrix data structure 110 including the input signal 104. Furthermore, the processor 904 is configured to execute the system operation control module 910 to apply a sliding three-dimensional (3D) window method to the matrix data structure 110 to generate statistics of the input signal 104 with respect to the rotation of the test signal 106 and to control the operation of the system 102 according to the statistics of the input signal 104. The sliding 3D window method iteratively moves a window (e.g., the window 112) over the matrix data structure 110 to calculate values of the statistics for segments of the matrix data structure 110 within the window. To calculate the current values of the statistics of the input signal 104 for the window at the current position, the sliding 3D window method is configured to calculate the statistical observations of the current segment of the input signal within the window at the current position for the current segment of each revolution of the test signal within the window at the current position using at least some corresponding statistical observations determined for the window at the previous position, and determine the current values of the statistics of the input signal 104 from the statistical observations of the current segment of the input signal, excluding invalid statistical observations determined for the current segment of the revolution of the test signal that disturb the monotonicity of the time series data. Further, the sliding 3D window method is configured to move the window from the current position to the next position across the matrix data structure 110.
[0101] In addition, the controller 100 may include an output interface 918. In some implementations, the controller 100 is further configured to send control commands to actuators of the system 102 via the output interface 918. In some other implementations, the controller 100 is configured to send control commands, subject to constraints on the operation of the system 102, to actuators of the system 102 via the output interface 918. In still other implementations, the controller 100 is configured to send a control signal to the system 102 to stop the operation of the system 102 via the output interface 918.
[0102] The above description provides only exemplary embodiments and is not intended to limit the scope, applicability, or configuration of the present disclosure. Rather, the above description of exemplary embodiments will provide one skilled in the art with an enabling description for implementing one or more exemplary embodiments. It is contemplated that various changes may be made in the function and arrangement of elements without departing from the spirit and scope of the disclosed subject matter as set forth in the appended claims.
[0103] In the above description, specific details are given to provide a thorough understanding of the embodiments. However, those skilled in the art will understand that the embodiments may be practiced without these specific details. For example, systems, processes, and other elements in the disclosed subject matter may be shown as components in block diagram form so as not to obscure the embodiments with unnecessary detail. In other instances, well-known processes, structures, and techniques may be shown without unnecessary detail so as to avoid obscuring the embodiments. Additionally, like reference numbers and names in the various drawings indicate like elements.
[0104] Also, particular embodiments may be described as a process that is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. In addition, the order of operations may be rearranged. A process may be terminated when its operations are completed, but may include additional steps not described or included in the diagram. Moreover, not all operations in any process specifically described may be performed in all embodiments. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, or the like. When a process corresponds to a function, the end of the function may correspond to a return of the function to the calling function or to the main function.
[0105] Furthermore, embodiments of the disclosed subject matter may be implemented, at least in part, either manually or automatically. The manual or automated implementations may be performed or at least assisted by the use of machines, hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware, or microcode, the program code or code segments to perform the necessary tasks may be stored on a machine-readable medium. A processor may perform the necessary tasks.
[0106] The various methods or processes outlined herein may be coded as software executable on one or more processors employing any one of a variety of operating systems or platforms. In addition, such software may be written using any of a number of suitable programming languages and / or programming or scripting tools, and compiled as executable machine language code or intermediate code that runs on a framework or virtual machine. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.
[0107] The embodiments of the present disclosure may be embodied as a method, which is provided as an example. The operations performed as part of the method may be ordered in any suitable manner. Thus, while shown as sequential operations in the exemplary embodiments, embodiments may be constructed in which the operations are performed in a different order than that shown, including performing some operations simultaneously. Although the present disclosure has been described with reference to several preferred embodiments, it should be understood that various other adaptations and modifications may be made within the spirit and scope of the present disclosure. It is therefore an aspect of the appended claims to cover all such variations and modifications as fall within the true spirit and scope of the present disclosure.
Claims
1. 1. A controller for controlling operation of a system based on a comparison of an input signal and a test signal, the input signal and the test signal being time series data having values measured monotonically over time, the controller comprising at least one processor and a memory having instructions stored thereon, the instructions, when executed by the at least one processor, causing the controller to: receiving the input signal indicative of the operation of the system; rotating the test signal a plurality of times with different circular shifts to cause different rotations of the test signal to form a matrix data structure that includes the input signal; applying a sliding three-dimensional (3D) window technique to the matrix data structure to generate statistics of the input signal for a rotation of the test signal, the sliding 3D window technique iteratively moving a window across the matrix data structure to calculate values of the statistics for segments of the matrix data structure within the window, and to calculate a current value of the statistics of the input signal for the window at a current position, the sliding 3D window technique comprising: calculating statistical observations of a current segment of the input signal within the window at the current position for a plurality of current segments for each of a plurality of revolutions of the test signal within the window at the current position using at least some of the corresponding statistical observations determined for the window at a previous position; determining the current values of the statistics of the input signal from the statistical observations of the current segment of the input signal, excluding statistical observations determined for a plurality of current segments of the plurality of revolutions of the test signal that violate monotonicity of the time series data; and moving the window from the current position to a next position across the matrix data structure, the instructions, when executed by the at least one processor, causing the controller to: A controller adapted to detect anomalies in the statistics of the input signals and to control the operation of the system based on the detected anomalies.
2. 2. The controller of claim 1, wherein the sliding 3D window method calculates multi-dimensional statistics of the input signal having different dimensions determined for windows of different sizes, and wherein to calculate a first dimension of the current value of the statistics of the input signal for the window at the current position, the sliding 3D window method reuses at least some statistical observations determined for overlapping windows of a size different from the size of the window at the current position.
3. 2. The controller of claim 1, wherein the test signal is a copy of the input signal such that the sliding 3D window method determines the statistics of the input signal relative to itself by comparing various segments of the input signal with other segments of the input signal.
4. The controller of claim 1 , wherein the test signal is different from the input signal to represent normal operation of the system.
5. The controller of claim 1 , wherein the test signal is multi-dimensional and includes a plurality of different continuous sequences of data collected from operation of different actuators of the system.
6. 2. The controller of claim 1, wherein the statistical observation considered for the window at the current position comprises a difference between a value of the current segment of the input signal with a value of each current segment of the revolution of the test signal at a monotonic time index, and the current value of the statistics of the input signal is a maximum or minimum value of the considered statistical observations.
7. The controller of claim 6 , wherein the difference defines a non-normalized Euclidean distance.
8. 2. The controller of claim 1, wherein the controller rotates the test signal with a circular shift by moving a last entry of the test signal to a first position while shifting all other entries to a next position, or by moving a first entry of the test signal to a last position while shifting all other entries to a previous position, the value of the circular shift determining the number of samples of the test signal that form an entry.
9. The controller of claim 1 , wherein a shift value for moving the window in the sliding 3D window method is equal to a difference between adjacent values of the cyclic shift for rotating the test signal.
10. The controller of claim 1 , wherein the sliding 3D window method determines the statistics of the input signal using a double-ended queue method.
11. The controller of claim 1 , wherein the sliding 3D window method determines the statistics of the input signal using a segment tree method.
12. The controller of claim 1 , wherein the processor is configured to stop the operation of the system upon detecting the anomaly in the statistics of the input signal.
13. The controller of claim 1 , wherein the processor is configured to determine control commands for actuators of the system based on the statistics of the input signals.
14. The controller of claim 1 , wherein the processor is configured to determine constraints for the operation of the system based on the statistics of the input signals, and to determine control commands for actuators of the system subject to the determined constraints.
15. The controller of claim 1 , wherein the processor is configured to determine the statistics of the input signals at an end of an operating cycle of the system to adjust the operation of the system for a next operating cycle.
16. 1. A method for controlling operation of a system based on a comparison of an input signal and a test signal, the input signal and the test signal being time series data having values measured monotonically over time, a processor coupled to stored instructions for implementing the method, the instructions, when executed by the processor, performing steps of the method, the steps comprising: receiving the input signal indicative of the operation of the system; rotating the test signal a plurality of times with different circular shifts to produce different rotations of the test signal forming a matrix data structure that includes the input signal; and applying a sliding three-dimensional (3D) window technique to the matrix data structure to generate statistics of the input signal for a rotation of the test signal, the sliding 3D window technique iteratively moving a window across the matrix data structure to calculate values of the statistics for segments of the matrix data structure within the window, and to calculate a current value of the statistics of the input signal for the window at a current position, the sliding 3D window technique comprising: calculating statistical observations of a current segment of the input signal within the window at the current position for a number of current segments for each of a number of revolutions of the test signal within the window at the current position using at least some corresponding statistical observations determined for the window at a previous position; determining the current value of the statistic of the input signal from the statistical observations of the current segment of the input signal, excluding statistical observations determined for a number of current segments of the number of revolutions of the test signal that violate monotonicity of the time series data; and moving the window from the current position to a next position through the matrix data structure, the method steps further comprising: detecting anomalies in the statistics of the input signal and controlling the operation of the system based on the detected anomalies.
17. 1. A non-transitory computer-readable storage medium having embodied thereon a program executable by a processor for performing a method for controlling operation of a system based on a comparison of an input signal and a test signal, the input signal and the test signal being time series data having values measured monotonically over time, the method comprising: receiving the input signal indicative of the operation of the system; rotating the test signal a plurality of times with different circular shifts to produce different rotations of the test signal forming a matrix data structure that includes the input signal; and applying a sliding three-dimensional (3D) window technique to the matrix data structure to generate statistics of the input signal for a rotation of the test signal, the sliding 3D window technique iteratively moving a window across the matrix data structure to calculate values of the statistics for segments of the matrix data structure within the window, and to calculate a current value of the statistics of the input signal for the window at a current position, the sliding 3D window technique comprising: calculating statistical observations of a current segment of the input signal within the window at the current position for a number of current segments for each of a number of revolutions of the test signal within the window at the current position using at least some corresponding statistical observations determined for the window at a previous position; determining the current value of the statistic of the input signal from the statistical observations of the current segment of the input signal, excluding statistical observations determined for a number of current segments of the number of revolutions of the test signal that violate monotonicity of the time series data; and moving the window from the current position to a next position through the matrix data structure, the method further comprising: detecting anomalies in the statistics of the input signal; and controlling the operation of the system based on the detected anomalies.
Citation Information
Patent Citations
Method and apparatus for monitoring sensor noise
JP2010502966A
Vehicle inspection device
JP2016151471A
Vehicle inspection device
JP2019002938A
