The present invention relates to a technique for analyzing time-series data.
A control system for controlling a plant process is introduced in a power plant such as a thermal power plant, a hydropower plant, or a nuclear power plant, a chemical plant, an iron and steel plant, or a water supply and sewerage plant. A control system for controlling air conditioning, electricity, lighting, water supply and drainage, etc. is also introduced in facilities such as buildings and factories. In these control systems, various kinds of time-series data observed over time by a sensor attached to a device are accumulated.
Similarly, in an information system relating to economy or management, time-series data in which values such as stock prices or sales are recorded over time is accumulated.
Conventionally, there is a technique for analyzing the state of a plant, equipment, or management by analyzing changes in values of the time-series data. As one method for analyzing the state of plant, equipment, or management, time-series data is divided into, for example, subsequences (hereinafter referred to as segments) by operating modes of plant or equipment, and through comparison of segments of the same operating mode, the degree of deviation of data or the tendency of data is assessed to determine an anomaly or deterioration of equipment.
For example, Patent Literature 1 discloses a data analysis device that analyzes data in each manufacturing process relating to a plurality of products. In a case where the data in each manufacturing process is time-series data that varies or may vary along the time axis, the device divides the time-series data along the time axis on the basis of an event occurrence timing in a schedule of the manufacturing process in which the time-series data is generated, and calculates a feature value for the divided segment.
Patent Literature 1: JP 2004-318273 A
In order to extract a segment for each of events generated by subdividing the manufacturing process, the data analysis device disclosed in Patent Literature 1 described above needs to acquire event information indicating the timing at which the event occurs in the schedule of the manufacturing process. Therefore, the data analysis device disclosed in Patent Literature 1 has a problem that, if there is no event information, the segment of the event section cannot be extracted.
The present invention has been accomplished to address the above problems, and an object of the present invention is to accurately extract a segment for each operating mode even when there is no event information indicating an event occurrence timing.
The data processing device according to the present invention includes: processing circuitry to receive inputting of waveform data including a change point of a state of a device, parameter information about the waveform data, and transition information of the device; to calculate similarity between time-series data of the device and the waveform data; to set the state of the device on the basis of the transition information of the device; to detect the change point from the time-series data of the device on the basis of the similarity and the state of the device, and to set a start time of a segment which is a subsequence of the time-series data and an end time of the segment; and to output, as segment information, the state of the device, the start time of the segment, and the end time of the segment.
According to the present invention, it is possible to accurately extract a segment for each operating mode even when there is no event information indicating an event occurrence timing.
In order to describe the present invention in more detail, modes for carrying out the present invention will now be described with reference to the accompanying drawings.
The data processing device 100 includes an extraction condition input unit 101, an extraction condition storage unit 102, a time-series data input unit 103, a segment extraction unit 104, a determination unit 109, and a determination result output unit 110. Further, the segment extraction unit 104 includes a similarity calculation unit 105, a change point detection unit 106, an operating mode determination unit 107, and an information output unit 108.
In
The extraction condition input unit 101 receives inputting of a segment extraction condition. The extraction condition input unit 101 stores the received segment extraction condition in the extraction condition storage unit 102. The segment extraction condition includes waveform data at change point (waveform data), parameter list (parameter information), and operating mode transition information (transition information of the device). The segment extraction condition described above will be described later in detail. The extraction condition storage unit 102 is a storage area that stores the segment extraction condition.
The time-series data input unit 103 receives inputting of time-series data of the device to be analyzed. The time-series data input unit 103 outputs the received time-series data to the similarity calculation unit 105 of the segment extraction unit 104.
The time-series data is a sequence of values obtained by sequentially observing the device to be analyzed over time. Here, the time-series data of the device to be analyzed will be described as an example, but the time-series data may be any data. For example, it may be time-series data accumulated in a control system for controlling a process of a power plant such as a thermal power plant, a hydropower plant, or a nuclear power plant, a chemical plant, an iron and steel plant, or a water supply and sewerage plant. In addition, it may be, for example, time-series data accumulated in a control system for controlling air conditioning, electricity, lighting, water supply and drainage, etc. in facilities (for example, buildings and factories). Further, it may be, for example, time-series data accumulated in a device on a factory line, a device mounted on an automobile, a device mounted on a railway car, or the like. Further, it may be time-series data accumulated in an information system relating to economy or management. A specific example of the time-series data will be described later.
The segment extraction unit 104 extracts a segment from the time-series data received by the time-series data input unit 103 in accordance with the segment extraction condition stored in the extraction condition storage unit 102.
Specifically, the similarity calculation unit 105 calculates the similarity at each time between the input time-series data and waveform data at each change point stored in the extraction condition storage unit 102. The similarity calculation unit 105 outputs the time-series data and the calculated similarity to the change point detection unit 106. The change point detection unit 106 detects the change point of the state of the time-series data on the basis the input similarity. The change point detection unit 106 outputs information about the detected change point and information about the operating mode of the device to the information output unit 108.
The operating mode determination unit 107 refers to the operating mode transition information stored in the extraction condition storage unit 102, and sets the current operating mode of the device and the next operating mode to which the current operating mode can be transited. Note that the operating mode determination unit 107 may set a plurality of next operating modes. The change point detection unit 106 detects a change point on the basis of the current operating mode of the device and the next operating mode of the device set by the operating mode determination unit 107.
When receiving the information about the change point and the information about the operating mode of the device from the change point detection unit 106, the information output unit 108 outputs, to the determination unit 109, the current operating mode, the segment start time, and the segment end time as segment information. The determination unit 109 analyzes the input segment information, and determines an anomaly of the device, deterioration of the device, or the like on the basis of the degree of deviation of data, the tendency of data, or the like. The determination unit 109 outputs the determination result to the determination result output unit 110. The determination result output unit 110 outputs the input determination result to the outside.
Next, a hardware configuration example of the data processing device 100 will be described.
The functions of the extraction condition input unit 101, the time-series data input unit 103, the similarity calculation unit 105, the change point detection unit 106, the operating mode determination unit 107, the information output unit 108, the determination unit 109, and the determination result output unit 110 in the data processing device 100 are implemented by a processing circuit. That is, the data processing device 100 includes a processing circuit for implementing the above functions. The processing circuit may be a processing circuit 100a that is dedicated hardware as shown in
In a case where the extraction condition input unit 101, the time-series data input unit 103, the similarity calculation unit 105, the change point detection unit 106, the operating mode determination unit 107, the information output unit 108, the determination unit 109, and the determination result output unit 110 are implemented by dedicated hardware as shown in
In a case where the extraction condition input unit 101, the time-series data input unit 103, the similarity calculation unit 105, the change point detection unit 106, the operating mode determination unit 107, the information output unit 108, the determination unit 109, and the determination result output unit 110 are implemented by the processor 100b as shown in
Here, the processor 100b is, for example, a central processing unit (CPU), a processing device, a computing device, a processor, a microprocessor, a microcomputer, or a digital signal processor (DSP).
The memory 100c is, for example, a nonvolatile or volatile semiconductor memory such as random access memory (RAM), read only memory (ROM), flash memory, erasable programmable ROM (EPROM), or electrically EPROM (EEPROM), a magnetic disk such as a hard disk or a flexible disk, or an optical disk such as a mini disk, a compact disk (CD), or a digital versatile disc (DVD).
Note that part of the functions of the extraction condition input unit 101, the time-series data input unit 103, the similarity calculation unit 105, the change point detection unit 106, the operating mode determination unit 107, the information output unit 108, the determination unit 109, and the determination result output unit 110 may be implemented by dedicated hardware, and another portion may be implemented by software or firmware. As described above, the processing circuit of the data processing device 100 can implement the abovementioned functions by hardware, software, firmware, or a combination thereof.
Next, an example of the time-series data input to the time-series data input unit 103 will be described with reference to
In a production line of high-mix low-volume production, multiple types of products with different specifications are produced on the same production line. The manufacturing procedure of products includes a plurality of processes, and a device for manufacturing products switches the operation according to a recipe. The data measured by a sensor installed in the device used in the production line shows a characteristic waveform for each process. When the manufacturing procedure changes, the waveform itself, the duration and the order of appearance of the waveform for each process, and the like change. The time-series data of the data measured by the sensor mounted on the device has the following two-layer structure.
First layer: Product pattern corresponding to each lot of products (first lot 301, second lot 302, third lot 303 in
Second layer: Process pattern corresponding to process (first process 311 to eleventh process 321 in
There are an idling period 331 between the first lot 301 and the second lot 302, and an idling period 332 between the second lot 302 and the third lot 303. In
Each process described above corresponds to each operating mode. In order that the determination unit 109 accurately detects an anomaly of the device, deterioration of the device, or the like from, for example, the time-series data shown in
Next, the segment extraction condition stored in the extraction condition storage unit 102 will be described with reference to
The segment extraction condition includes waveform data at change point (
The basic idea of segment extraction is that the waveform at a change point of a segment is registered as a condition, and when a pattern similar to that of the change point appears on the time-series data, it is determined that the operating mode has been switched. Due to the determination of the switching of the operating mode using the waveform at a change point as the condition, it is possible to focus on only the change point and extract a segment even in the operating mode in which the duration is variable. In addition, even if a pattern different from a normal pattern temporarily appears in the segment due to a factor such as an anomaly of the device, the segment can be determined only on the basis of the change point, whereby the segment can be extracted without being affected by an anomaly of the device, or the like.
The waveform data at change point is selected from data at the time when the device is in a healthy state immediately after maintenance and the device starts to operate stably. In the example of
The parameter list contains the following elements.
The details of the normalization method 506 will be described later.
The operating mode transition information is information in which the dependence relationship between operating modes is recorded in the form of an adjacency matrix. The first row of the table shown in
Further, the mark “*” in the table means that it is the initial operating mode. The initial operating mode is, for example, the initial operating mode immediately after the idling periods 331 and 332 in the time-series data shown in
Next, a method for calculating the similarity between the time-series data and the waveform data at change point by the similarity calculation unit 105 will be described.
First, the time-series data is a sequence of ordered real numbers expressed by the following Equation (1).
T=t1, t2, . . . , ti (1)
In Equation (1), “ti” (1≤i≤n) is the observed value at time “i”. “n” is the length of the time-series data.
A subsequence obtained by extracting a part of the time-series data is expressed by the following Equation (2).
T
i,w
=t
i
, t
i+1
, . . . , t
i+w−1 (2)
In Equation (2), 1≤i≤(n−w+1). “w” represents the length of the subsequence.
Although various types of similarity index of the distance measure 504 shown in
In a case where the Euclidean distance is applied as an index of similarity, two waveforms are more similar (have higher similarity) when the value is closer to “0”, and the two waveforms deviate (have lower similarity) as the value is larger.
In addition to the Euclidean distance, Manhattan distance can be applied, and if expansion and contraction in the time direction are allowed, dynamic time warping (DTW) is also applicable as an index of similarity. Further, in a case where similarity in change tendency is used for the determination, a correlation coefficient may be used as an index of the similarity. In the following, a case where the Euclidean distance is applied as an index of similarity will be described as an example.
When a change in the operating mode is detected on the basis of the similarity between the time-series data and the waveform at the change point, it is desirable that the similarity is higher around the change point and lower in other periods. Therefore, selection of the waveform data at change point and other parameters is the key point.
It is desirable to select the waveform data at the change point so that the feature before and after the change point can be captured. For example, in the waveform data at the change point of the first operating mode in the waveform data at change point shown in
The next key point for detecting a change in the operating mode is the normalization method 506 shown in
In the calculation of similarity between the time-series data and the waveform data at the change point, it may be desirable to apply some kind of normalization. Examples of normalization are expressed in the following Equations (5) to (7). Equation (5) indicates min-max normalization for converting the range of the subsequence to a range from 0 to 1.
Equation (6) indicates z-normalization for performing conversion such that the range of the subsequence has a mean of 0 and a standard deviation of 1.
Equation (7) indicates level normalization for performing conversion such that the subsequence has a mean of 0.
T
i
N
=t
i−mean(Ti,w) (7)
In Equations (5) to (7) described above, time-series data obtained by normalizing time-series data T is expressed as TN. Further, the function “min”, the function “max”, the function “mean”, and the function “std” represent the minimum value, the maximum value, the mean value, and the standard deviation of Ti,w, respectively.
Empirically, if the waveform is simple like the waveform of the ninth operating mode, the ability to detect the change point is higher without normalization. On the other hand, if the waveform repeatedly varies vertically, and the amplitude has variability, like the waveform of the fifth operating mode, the ability to detect the change point is increased by applying min-max normalization expressed by Equation (5) or z-normalization expressed by Equation (6). If the time-series data is affected by external factors such as the outside temperature, and if there is no change in the waveform but there are fluctuations in the range, the ability to detect the change point is increased by applying the level normalization expressed by Equation (7).
Next, the operation of the operational processing out of the preparation processing and the operational processing of the data processing device 100 will be described.
The time-series data input unit 103 receives inputting of time-series data (length: n) from which a segment is to be extracted (step ST1). The time-series data input unit 103 outputs the received time-series data to the similarity calculation unit 105. The subsequent steps are executed in accordance with the conditions stored in the extraction condition storage unit 102.
The similarity calculation unit 105 refers to the input time-series data and the waveform data at each change point stored in the extraction condition storage unit 102, and calculates the similarity at each time between the time-series data and the waveform data at the change point (step ST2). When the current operating mode is known to the user, the operating mode determination unit 107 also receives inputting of the current operating mode together with the inputting from the extraction condition input unit 101 or the time-series data input unit 103, and sets an initial value (step ST3). For example, if the time-series data from which a segment is to be extracted starts from an idle state of the device, the eleventh operating mode shown in
Next, the operating mode determination unit 107 refers to the operating mode transition information stored in the extraction condition storage unit 102, and sets, as the next operating mode, an operating mode to which the current operating mode can be transited (step ST4).
In the example of the operating mode transition information shown in
The change point detection unit 106 searches for a change point of the input next operating mode (step ST5). The change point detection unit 106 determines whether or not a change point is detected (step ST6). When not detecting the change point (step ST6; NO), the change point detection unit 106 ends the processing. Depending on a target device, an unusual behavior may appear in the time-series data due to predetermined maintenance even during stable operation. Therefore, when a change point cannot be detected, the operating mode determination unit 107 may set the next operating mode as the first operating mode (first operating mode in the example of
On the other hand, when detecting a change point (step ST6; YES), the change point detection unit 106 outputs the current operating mode, the segment start time, and the segment end time to the information output unit 108 (step ST7), and notifies the operating mode determination unit 107 of information indicating that the change point has been detected (step ST8).
The information output unit 108 outputs, as segment information, a set of the current operating mode, the segment start time, and the segment end time to the determination unit 109 (step ST9). The operating mode determination unit 107 sets the next operating mode set in step ST4 as the current operating mode on the basis of the notification indicating that the change point has been detected (step ST10). Then, the flowchart returns to the process of step ST4 and repeats the above processing.
The process of each step shown in the flowchart of
First, the process of step ST2 described above will be described in detail.
The similarity calculation unit 105 acquires, from the extraction condition storage unit 102, waveform data Qk at a change point of each operating mode “k”, the length wk of the waveform data at the change point (length of waveform at change point 503 shown in
S
k
i=dist (Ti,wk, Qk) (8)
In a case where the normalization method 506 is specified, the similarity needs to be calculated by normalizing Ti,wk and Qk in advance. In a case where waveform data pieces at multiple change points are selected for one operating mode, similarity time series Sk1 to Skm are calculated from waveform data pieces Qk1 to Qkm at the respective change points and lengths wk1 to wkm of the waveform data pieces. Next, as shown in the following Equation (9), the minimum value of the calculated similarity time series Sk1 to Skm at each time “i” is set as the final value of the similarity time series Sk.
S
k
i=min (Sk1i′ . . . , Skmi) (9)
Further, if dist (Ti,w,Q) is Euclidean distance, Manhattan distance, or DTW, the similarity depends on the length w of the waveform data Q at the change point. Therefore, if the lengths are different, they cannot be simply compared. In that case, Ski is divided by the square root of the length w (Euclidean distance, DTW) or the length w (Manhattan distance), and then the minimum value is obtained.
Next, the process of step ST5 described above will be described in detail.
The change point detection unit 106 searches from the start time start of the similarity time series Sk of the next operating mode “k”, and sets, as the end time end of the current segment, the first change point, that is, a time “j” at which Sk assumes a minimum value and is equal to or less than the similarity threshold (similarity threshold 505 shown in
When the time “j” is set as the end time end of the current segment as described above, a set of [eleventh operating mode, start time start “1”, end time end “j”] is output as the segment information in the process of step ST6. Further, in the process of step ST8, the current operating mode is set to the first operating mode, and “j+1” is set to the segment start time so that the search is restarted from the time next to the time “j”.
When the time-series data input unit 103 receives inputting of time-series data 901, the segment extraction unit 104 extracts segment information 902. Note that
In anomaly determination processing 903, an anomaly is determined on the basis of a degree of deviation of data from the normal range of data in the corresponding operating mode. First, the determination unit 109 sets the value of the segment or the range of the feature value of the segment during a period in which the device is normally operating stably (for example, one week after maintenance, or until 100 lots of products are produced), as a normal range 903a of the corresponding operating mode. Thereafter, if the segment value or the segment feature value of the segment information 902 extracted by the segment extraction unit 104 is outside the normal range 903a, the determination unit 109 determines that the device has an anomaly.
In the deterioration determination processing 904, deterioration of the device is determined from the tendency of the segment data. The determination unit 109 plots the values of the segments or the feature values of the segments for each product lot in chronological order, and determines that the device is deteriorated when the deviation increases over time.
The anomaly determination result and the deterioration determination result by the determination unit 109 are output to the outside via the determination result output unit 110.
When extracting a segment from the time-series data of an anomaly determination target and a deterioration determination target, the segment extraction unit 104 may not be able to correctly extract the segment due to the influence of signs of anomaly and deterioration included in the time-series data. In that case, the segment extraction unit 104 extracts a segment from time-series data that has a dependence relationship with the time-series data of the anomaly determination target and the deterioration determination target and is not affected by the anomaly and deterioration of the device. Further, the segment extraction unit 104 may be configured to extract a segment by applying the extracted segment information to the time-series data of the anomaly determination target and the deterioration determination target. For example, in a case where it is known that, when a torque of a motor changes depending on a pressure applied to the device from the outside, signs of anomaly and deterioration appear in the time-series data of the torque, the segment extraction unit 104 extracts a segment from the time-series data of the pressure applied from the outside. The segment extraction unit 104 cuts out a segment of torque using the extracted segment information, and determines anomaly of the device and deterioration of the device.
In addition, a segment value or a segment feature value may vary even during the execution of the anomaly determination processing and deterioration determination processing because of inspection or cleaning of the device, and therefore, a segment may not be extracted under the segment extraction condition so far. However, even in such a case, segment extraction is enabled only by newly selecting waveform data at change point of an operating mode while the device is stably operating after maintenance, updating the parameters shown in
In the above description, the time-series data is collectively processed in a preset period, but time-series data can be sequentially processed using the same structure.
For example, it is assumed that time-series data is input to the time-series data input unit 103 every observation sampling period. When the data at time “j” is input, the similarity calculation unit 105 adds the similarity between Tj−wk+1,wk and Qk to the similarity time series Sk. The change point detection unit 106 only needs to search the time corresponding to the change point between the segment start time start and the time “j−wk+1”.
As described above, in the first embodiment, the data processing device 100 includes: the extraction condition input unit 101 that receives inputting of waveform data including a change point of a state of the device, parameter information about the waveform data, and transition information of the device; the similarity calculation unit 105 that calculates similarity between time-series data of the device and the waveform data; the operating mode determination unit 107 that sets the state of the device on the basis of the transition information of the device; the change point detection unit 106 that detects the change point from the time-series data of the device on the basis of the calculated similarity and the determined state of the device, and sets a start time of a segment which is a subsequence of the time-series data and an end time of the segment; and the information output unit 108 that outputs, as segment information, the state of the device, the start time of the segment, and the end time of the segment.
As a result, even when there is no event information indicating an event occurrence timing, a segment of each operating mode of the device can be accurately extracted. In addition, the operating mode can be accurately identified on the basis of the waveform data of the segment. Moreover, by extracting the segment on the basis of the change point, it is possible to extract a variable-length segment in the time direction.
Further, according to the first embodiment, the similarity calculation unit 105 is configured to calculate the similarity using the Euclidean distance between a subsequence cut out from the time-series data and the time-series data having the same length as the subsequence. Thus, highly accurate segment information can be generated, and an anomaly of the device, deterioration of the device, or the like can be accurately determined.
Further, according to the first embodiment, the change point detection unit 106 is configured to detect, as the change point, a time at which the similarity assumes a minimum value and the similarity is less than or equal to a predetermined threshold from a similarity time series including similarities calculated by the similarity calculation unit 105 for each time of the time-series data. Therefore, the similarity can be accurately determined.
The second embodiment describes a configuration including a graphical user interface (GUI).
The data processing device 100A according to the second embodiment is configured so that a segment extraction unit 104a of the data processing device 100 in the first embodiment is further provided with a GUI 111, and includes an extraction condition input unit 101a in place of the extraction condition input unit 101. In the following, the same or corresponding parts as those of the data processing device 100 according to the first embodiment will be denoted by the same reference numerals as those used in the first embodiment, and the description thereof will be omitted or simplified.
The segment extraction unit 104a includes the GUI 111 described below to reduce a load of the preparation processing before the detection processing is started. The GUI 111 receives inputting of time-series data from the time-series data input unit 103, and performs control so that time-series data 1001 during a period in which the device is normally and stably operating is displayed on a display device (not shown) such as a display. The GUI 111 performs control for enlarging time-series data in the time-series range specified by the user with respect to the displayed time-series data and displaying the data on the display device. The extraction condition input unit 101a causes the extraction condition storage unit 102 to store the waveform data at change point selected by the user and the segment extraction condition of the waveform data.
Next, a hardware configuration example of the data processing device 100A will be described. The description of the same configuration as that of the first embodiment is omitted.
The GUI 111 and the extraction condition input unit 101a in the data processing device 100A correspond to the processing circuit 100a shown in
Next, a specific processing operation of the GUI 111 will be described with reference to
The GUI 111 displays the time-series data 1001 during the period in which the device is normally and stably operating on the display device such as a display. The user selects a range 1002 of time-series data corresponding to one lot of products from a pattern of waveforms appearing in the displayed time-series data 1001 using an input device (not shown) such as a mouse. The GUI 111 performs control so that time-series data 1003 within the range 1002 selected by the user is enlarged and displayed on the display device.
Further, the user specifies the change point of the operating mode from the enlarged and displayed time-series data 1003, and selects a range 1004 including the change point using the input device. The GUI 111 performs control so that waveform data 1005 within the selected range 1004 including the change point is enlarged and displayed. The user confirms the enlarged and displayed waveform data 1005, and if there is no problem in the waveform data 1005, performs an operation for labeling the waveform data 1005 as any operating mode and registering the resultant waveform data as an extraction condition. Upon receiving the operation, the extraction condition input unit 101a stores the segment extraction condition in the extraction condition storage unit 102.
Next, a process in which the extraction condition input unit 101a stores the segment extraction condition in the extraction condition storage unit 102 will be described with reference to
When receiving the operation of registering the extraction condition labeled with the operating mode (step ST21), the extraction condition input unit 101a stores the selected waveform data at change point (waveform data 1005 in
Next, the extraction condition input unit 101a refers to the parameter list (for example,
On the other hand, when there is an entry of the operating mode corresponding to the operating mode 501 (step ST23; YES), the extraction condition input unit 101a adds “1” to the number of waveforms at change point 502 of the corresponding operating mode 501, and adds the data length of the selected waveform data at change point to the length of waveform at change point 503 (step ST26). When the process of step ST25 or step ST26 ends, the processing returns to the process of step ST21 and the above processing is repeated.
In step ST26 described above, when the data length of the selected waveform data at change point is added to the length of waveform at change point 503, a plurality of data lengths, for example, are stored as the length of waveform at change point 503 shown in
As described above, in the second embodiment, the data processing device 100A includes the GUI 111 that receives selection of a display range with respect to the time-series data of the device, and enlarges and displays a subsequence within the selected display range, wherein the extraction condition input unit 101 sets the waveform data and the parameter information of the subsequence within the selected range. Thus, a load of the preparation processing before the data processing device starts the detection processing can be reduced.
Besides the above, two or more of the above embodiments can be freely combined, or arbitrary components in the embodiments can be modified or omitted, within the scope of the present invention.
The data processing device according to the present invention is preferably applied to a control system for controlling a process using time-series data of a device.
This application is a Continuation of PCT International Application No. PCT/JP2018/025252 filed on Jul. 3, 2018, which is hereby expressly incorporated by reference into the present application.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2018/025252 | Jul 2018 | US |
Child | 17119222 | US |