Change detection device and change detection method
The change detection device enhances the accuracy of detecting characteristic changes in time-series data by normalizing difference vectors to account for outliers, enabling effective change detection with reduced data requirements.
Patent Information
- Application Number
- JP2023046097
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2043-03-23
AI Technical Summary
Conventional methods for detecting characteristic changes in time series data, such as RuLSIF, are affected by outliers, leading to decreased accuracy in change detection.
A change detection device and method that acquires difference vectors from time-series data, normalizes them to suppress outlier influence, and detects changes based on the directional bias of these vectors.
Improves the accuracy of detecting characteristic changes in time-series data by mitigating the impact of outliers and allows detection with a smaller number of data points.
Smart Images

Figure 0007961168000006 
Figure 0007961168000007 
Figure 0007961168000008
Abstract
Description
[Technical Field]
[0001] This disclosure relates to a change detection device and a change detection method. [Background technology]
[0002] Conventionally, the RuLSIF method has been disclosed as a method for detecting characteristic changes in time series data (see Non-Patent Document 1). The method described in Non-Patent Document 1 involves acquiring time series data for a predetermined period and time series data for a period later than the predetermined period, and determining whether or not a characteristic change in the time series data has occurred based on the density ratio of the probability distributions of the time series data for each period. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] S. Liu, M. Yamada, N. Collier, and M. Sugiyama, Change-point detection in time-series data by relative density-ratio estimation, Neural Networks, 43(2013), pp.72-83. [Overview of the Initiative] [Problems that the invention aims to solve]
[0004] In general, time series data may contain outliers that differ significantly from other data values due to various factors. However, the method described in Non-Patent Document 1 has the problem that the calculation of the density ratio is affected by the outliers contained in the time series data, and therefore, depending on the outliers contained in the time series data, the accuracy of detecting characteristic changes may decrease.
[0005] The present disclosure has been made to solve the above problems, and aims to provide a change detection device and a change detection method that can improve the accuracy of detecting characteristic changes in time-series data compared to conventional approaches. [Means for Solving the Problems]
[0006] A change detection device according to the present disclosure includes: a time-series data acquisition unit that acquires time-series data for a period including a first period and a second period that comes after the first period; a vector acquisition unit that acquires, based on the time-series data acquired by the time-series data acquisition unit, a plurality of first vectors that are a plurality of partial time-series data items in the first period, and a plurality of second vectors that are a plurality of partial time-series data items in the second period; a difference vector acquisition unit that acquires, for each of a plurality of combinations, a difference vector corresponding to a combination of a specific first vector among the plurality of first vectors and a specific second vector among the plurality of second vectors; and a change detection unit that detects a characteristic change in the time-series data based on a bias in the directional distribution of the plurality of difference vectors acquired by the difference vector acquisition unit. [[Effects of the Invention]]
[0007] According to the present disclosure, characteristic changes in time-series data are detected based on the directional bias of a plurality of difference vectors obtained from first vectors that are partial time-series data in a first period of the time-series data and second vectors that are partial time-series data in a second period. This makes it possible to suppress the influence of outliers contained in the time-series data, and improve the accuracy of detecting characteristic changes in the time-series data compared to conventional approaches. [[Brief Description of the Drawings]]
[0008] [Figure 1] A block diagram showing a schematic configuration of a change detection device according to Embodiment 1. [Figure 2] A block diagram showing an example of a hardware configuration of the change detection device according to Embodiment 1. [Figure 3]A block diagram showing an example of the hardware configuration of the change detection device according to Embodiment 1. [Figure 4] A flowchart illustrating the process performed by the change detection device according to Embodiment 1. [Figure 5] A graph showing an example of time-series data acquired by the change detection device according to Embodiment 1. [Figure 6] A conceptual diagram showing an example of the vector acquisition process performed by the change detection device according to Embodiment 1. [Figure 7] This figure shows a plurality of first vectors and a plurality of second vectors obtained by the vector acquisition process performed by the change detection device according to Embodiment 1. [Figure 8] Figure 8A is a conceptual diagram showing the first difference vector acquisition process performed by the change detection device according to Embodiment 1, Figure 8B is a diagram showing an example of a plurality of first difference vectors obtained by the first difference vector acquisition process performed by the change detection device according to Embodiment 1, and Figure 8C is a diagram showing an example of a plurality of first normal vectors obtained by the first normalization process performed by the change detection device according to Embodiment 1. [Figure 9] Figure 9A is a conceptual diagram showing the first difference vector acquisition process performed by the change detection device according to Embodiment 1, Figure 9B is a diagram showing an example of a plurality of first difference vectors obtained by the first difference vector acquisition process performed by the change detection device according to Embodiment 1, and Figure 9C is a diagram showing an example of a plurality of first normal vectors obtained by the first normalization process performed by the change detection device according to Embodiment 1. [Figure 10] Figure 10A is a conceptual diagram showing the first difference vector acquisition process performed by the change detection device according to Embodiment 1, Figure 10B is a diagram showing an example of a plurality of first difference vectors obtained by the first difference vector acquisition process performed by the change detection device according to Embodiment 1, and Figure 10C is a diagram showing an example of a plurality of first normal vectors obtained by the first normalization process performed by the change detection device according to Embodiment 1. [Figure 11]Figure 11A is a conceptual diagram showing the second difference vector acquisition process performed by the change detection device according to Embodiment 1, Figure 11B is a diagram showing an example of multiple second difference vectors obtained by the second difference vector acquisition process performed by the change detection device according to Embodiment 1, and Figure 11C is a diagram showing an example of multiple second normal vectors obtained by the second normalization process performed by the change detection device according to Embodiment 1. [Figure 12] A conceptual diagram showing the vector acquisition process performed by the change detection device according to Embodiment 1. [Figure 13] A schematic diagram showing a timing gear that detects changes in vibration using the change detection device according to Embodiment 1. [Figure 14] Figure 14A is a graph showing the vibration data of the timing gear as time-series data acquired by the change detection device according to Embodiment 1, and Figure 14B is a graph showing the change score calculated by the change detection device according to Embodiment 1 based on the vibration data of the timing gear. [Figure 15] A graph showing gas consumption data as time-series data acquired by the change detection device according to Embodiment 1, and a change score calculated based on the gas consumption data. [Figure 16] Figure 16A is a graph showing the daily closing price trend of the Tokyo Stock Price Index as time-series data acquired by the change detection device according to Embodiment 1, and Figure 16B is a graph showing the change score calculated by the change detection device according to Embodiment 1 based on the Tokyo Stock Price Index data. [Modes for carrying out the invention]
[0009] The embodiments relating to this disclosure will be described in detail below with reference to the drawings. Embodiment 1. First, with reference to Figure 1, the schematic configuration of the change detection device 100 according to Embodiment 1 will be described. Figure 1 is a block diagram showing the schematic configuration of the change detection device 100 according to Embodiment 1. As shown in Figure 1, the change detection device 100 according to Embodiment 1 includes a time-series data acquisition unit 10 that acquires time-series data, a calculation unit 20 that performs calculations based on the time-series data acquired by the time-series data acquisition unit 10, and an output unit 30 that outputs the results of the calculations performed by the calculation unit 20.
[0010] The time-series data acquisition unit 10 acquires time-series data that allows the change detection device 100 to determine the presence or absence of characteristic changes. For example, the time-series data acquisition unit 10 acquires time-series data from an input device (not shown) that accepts user input operations, a storage device (not shown) provided by the change detection device 100, an external device (not shown) such as a sensor or computer that is communicatively connected to the change detection device 100, or an external storage medium read by an information reading device (not shown) provided by the change detection device 100. Note that the time-series data acquired by the time-series data acquisition unit 10 is not limited to time-series data that includes values indicating time. The time-series data acquired by the time-series data acquisition unit 10 may be time-series data that includes values related to time, for example, time-series data that includes values indicating elapsed time starting from a specific time, or time-series data that includes values other than values that directly indicate time, such as a count that increases as time progresses.
[0011] The calculation unit 20 includes a vector acquisition unit 21, a difference vector acquisition unit 22, a vector transformation unit 23, a change score calculation unit 24, a change detection unit 25, and a parameter setting unit 26, and detects characteristic changes in the time series data based on the time series data acquired by the time series data acquisition unit 10.
[0012] The vector acquisition unit 21 acquires multiple first vectors, which are multiple partial time series data for the first period, based on the time series data acquired by the time series data acquisition unit 10. In other words, the vector acquisition unit 21 extracts multiple partial time series data as multiple first vectors from the time series data for the first period acquired by the time series data acquisition unit 10. Partial time series data refers to a series of data obtained by combining multiple consecutive data values from the time series data into a single data set.
[0013] Furthermore, the vector acquisition unit 21 acquires multiple second vectors, which are multiple partial time series data from the second period, which is a period later than the first period, based on the time series data acquired by the time series data acquisition unit 10. In other words, the vector acquisition unit 21 extracts multiple partial time series data as multiple second vectors from the time series data of the second period, which is a period later than the first period, among the time series data acquired by the time series data acquisition unit 10. Note that the start point of the second period may be temporally separated from the end point of the first period, but it is preferable that it is not earlier than the end point of the first period.
[0014] The difference vector acquisition unit 22 acquires the difference vector between a specific first vector from among a plurality of first vectors and a specific second vector from among a plurality of second vectors. Furthermore, the difference vector acquisition unit 22 acquires multiple difference vectors by acquiring the difference vectors for multiple combinations of the first vector and the second vector.
[0015] The vector transformation unit 23 normalizes each of the multiple difference vectors obtained by the difference vector acquisition unit 22. In other words, the vector transformation unit 23 converts each of the multiple difference vectors obtained by the difference vector acquisition unit 22 into a normal vector with a magnitude of 1. The vector transformation unit 23 only needs to be configured to obtain a vector that unifies the magnitude of each of the multiple difference vectors obtained by the difference vector acquisition unit 22 without changing their orientation. For example, the vector transformation unit may be configured to convert each of the multiple difference vectors obtained by the difference vector acquisition unit 22 into a vector with a magnitude other than 1.
[0016] The change score calculation unit 24 calculates a change score based on multiple normal vectors obtained by the transformation of the vector transformation unit 23. The change score is a value that indicates the bias in the directional distribution of the multiple normal vectors obtained by the transformation of the vector transformation unit 23. For example, when the trend of time series data changes, the multiple difference vectors obtained by the difference vector acquisition unit 22 tend to have a bias in direction. Therefore, it is possible to detect characteristic changes in time series data based on the bias in the directional distribution of the multiple difference vectors obtained by the difference vector acquisition unit 22.
[0017] However, such multiple difference vectors may include outlier difference vectors calculated based on outliers in the time series data. Since outlier difference vectors are calculated as larger vectors than other difference vectors, this can affect the detection accuracy depending on the detection method used to detect characteristic changes in the time series data. For this reason, the change detection device 100 according to Embodiment 1 focuses only on the direction of the multiple difference vectors acquired by the difference vector acquisition unit 22. Therefore, it is configured to convert these multiple difference vectors into normal vectors with a magnitude of 1, and then detect characteristic changes in the time series data based on the bias in the distribution of these normal vectors.
[0018] The change detection unit 25 detects characteristic changes in time series data by determining whether or not there has been a characteristic change between the time series data of the first period and the time series data of the second period, based on the calculation results by the change score calculation unit 24. For example, the change detection unit 25 determines whether or not there has been a characteristic change in the time series data by comparing the change score calculated by the change score calculation unit 24 with a preset threshold. In this way, the change detection unit 25 detects characteristic changes in time series data based on the bias in the directional distribution of multiple difference vectors acquired by the difference vector acquisition unit 22.
[0019] The parameter setting unit 26 sets various parameters that the calculation unit 20 performs. For example, the parameter setting unit 26 sets various parameters based on information from an input device (not shown) that accepts user input operations, a storage device (not shown) provided by the change detection device 100, an external device (not shown) that is communicably connected to the change detection device 100, and an external storage medium read by an information reading device (not shown) provided by the change detection device 100. The parameter setting unit 26 also sets various parameters based on the time-series data acquired by the time-series data acquisition unit 10. For example, the parameter setting unit 26 sets parameters such as the size of the partial time-series data acquired by the vector acquisition unit 21 (number of dimensions of the vector), the time difference between the partial time-series data acquired by the vector acquisition unit 21, and the threshold used for determination by the change detection unit 25.
[0020] The output unit 30 outputs the detection results from the change detection unit 25. In other words, the output unit 30 outputs information indicating whether or not there has been a characteristic change in the time-series data, as detected by the change detection unit 25. For example, the output unit 30 outputs the detection results from the change detection unit 25 to a display device (not shown) that displays information, a storage device (not shown) provided by the change detection device 100, an external device (not shown) that is communicatively connected to the change detection device 100, or an external storage medium to which information is written by an information reading device (not shown) provided by the change detection device 100.
[0021] Next, the hardware configuration of the change detection device 100 will be described with reference to Figures 2 and 3. Figure 2 is a diagram showing an example of the hardware configuration of the change detection device 100 in Embodiment 1, and Figure 3 is a diagram showing another example of the hardware configuration of the change detection device 100 in Embodiment 1. For example, as shown in Figure 2, the change detection device 100 has a processor 100a, a memory 100b, and an I / O port 100c, and is configured so that the processor 100a reads and executes a program stored in the memory 100b.
[0022] Furthermore, as shown in Figure 3, for example, the change detection device 100 has dedicated hardware, namely a processing circuit 100d and an I / O port 100c. The processing circuit 100d is composed of, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a system LSI (Large-Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination thereof. Each function of the change detection device 100 is realized by these processors 100a or the dedicated hardware, namely the processing circuit 100d, executing a program, which is software. Note that the change detection device 100 may also include hardware not shown above.
[0023] Next, the processing performed by the change detection device 100 according to Embodiment 1 will be described with reference to Figures 4 to 12. Figure 4 is a flowchart showing the processing performed by the change detection device 100 according to Embodiment 1. First, when the change detection device 100 starts processing, it performs a parameter setting process to set various parameters (step ST1). In this process, the change detection device 100 sets various parameters for the calculation unit 20 to perform calculations using the parameter setting unit 26. After performing the processing in step ST1, the change detection device 100 performs a time-series data acquisition process to acquire time-series data (step ST2). In this process, the change detection device 100 acquires time-series data using the time-series data acquisition unit 10.
[0024] Figure 5 is a graph showing an example of time-series data acquired by the change detection device 100 according to Embodiment 1. The time-series data shown in Figure 5 is a time-series data with two variables: time t and data value ξ. For example, when the change detection device 100 determines whether there has been a characteristic change before or after time t=100 in the time-series data shown in Figure 5, it acquires the first time-series data of the first period, which is the period before time t=100, and the second time-series data of the second period, which is the period after time t=100. In other words, the change detection device 100 acquires the time-series data before point P, which is the data at time t=100, as the first time-series data, and the data after point P as the second time-series data.
[0025] After performing the process in step ST2, the change detection device 100 performs a vector acquisition process in which it acquires multiple first vectors based on the first time series data and multiple second vectors based on the second time series data (step ST3). In this process, the change detection device 100 acquires multiple first vectors, which are partial time series data of the first time series data, and multiple second vectors, which are partial time series data of the second time series data, using the vector acquisition unit 21.
[0026] Figure 6 is a conceptual diagram showing an example of the vector acquisition process performed by the change detection device according to Embodiment 1. For example, the change detection device 100 extracts partial time series data consisting of a specific data value ξ(1) and a data value ξ(2) adjacent to ξ(1) at a later time, as a first vector [ξ(1), ξ(2)]. The exponent of ξ indicates the time. Similarly, the change detection device 100 extracts partial time series data consisting of a specific data value ξ(2) and a data value ξ(3) adjacent to ξ(2) at a later time, as a first vector [ξ(2), ξ(3)]. Subsequently, adjacent data values are sequentially extracted as first vectors, which are partial time series data, to acquire multiple first vectors.
[0027] In other words, in step ST3, the change detection device 100 extracts M adjacent data values from the first time series data as an M-dimensional first vector, and sequentially slides the time of the extracted data values by the number of slides of the slide window, thereby converting the first time series data into a set of multiple first vectors. In the example in Figure 6, the change detection device 100 processes with the window size (the number of dimensions M of the first vector) being 2 and the number of slides of the data values being 1.
[0028] Next, the change detection device 100 extracts M adjacent data values from the second time series data as M-dimensional second vectors, and sequentially slides the time of the extracted data values by the number of slides of the slide window, thereby converting the second time series data into a set of multiple second vectors. The value of the number of dimensions M of the first and second vectors set as parameters can be any integer of 2 or more, and the value of the number of slides of the data values can be set to any value, but it is desirable that the value of M and the value of the number of slides of the data values are the same for the process of converting the first time series data into multiple first vectors and the process of converting the second time series data into multiple second vectors.
[0029] FIG. 7 is a diagram showing a plurality of first vectors and a plurality of second vectors obtained by vector acquisition processing performed by change detection apparatus 100 according to the first embodiment. In FIG. 7, circles indicate the first vectors, and crosses indicate the second vectors. In the vector acquisition processing of step ST3, the number of dimensions M of each of the first vectors and the second vectors is 2, and hence the first vectors and the second vectors are represented on a two-dimensional plane as shown in FIG. 7.
[0030] After the processing of step ST3, change detection apparatus 100 performs first difference vector acquisition processing of calculating a difference vector between the first vector and the second vector acquired in the vector acquisition processing of step ST3 (step ST4). In the first difference vector acquisition processing as difference vector acquisition processing, change detection apparatus 100 uses difference vector acquisition section 22 to calculate, from a specific first vector v i out of the plurality of first vectors, a specific second vector v’ i out of the plurality of second vectors, and subtracts the specific second vector v’ from the specific first vector v to calculate a first difference vector r i .
[0031] FIG. 8A is a conceptual diagram illustrating the first difference vector acquisition processing performed by change detection apparatus 100 according to the first embodiment. In FIG. 8A, circles indicate the first vectors, and crosses indicate the second vectors. For example, in the first difference vector acquisition processing, change detection apparatus 100 extracts, by a k-nearest neighbor algorithm (knn), which is a known algorithm, a first vector v i nearest to a specific second vector v’ i , and performs, for each of the second vectors, processing of subtracting the corresponding second vector v’ i from the extracted first vector v as shown in the following expression (1), to calculate a first difference vector r i , thereby acquiring a plurality of first difference vectors. When k is equal to or larger than 2 in the k-nearest neighbor algorithm, the difference vector r i is calculated using v’ i which is an average vector of k nearest neighbor vectors. i (knn) r i =v i -v' i (knn) (i=1, 2,..., n)...(1) TIFF0007961168000001.tif16166
[0032] Figure 8B shows an example of multiple first difference vectors obtained by the first difference vector acquisition process performed by the change detection device 100 according to Embodiment 1. Naturally, the multiple first difference vectors obtained by the first difference vector acquisition process in step ST4 have different orientations and magnitudes from each other.
[0033] When the process of step ST4 is performed, the change detection device 100 receives each first difference vector r calculated in the first difference vector acquisition process of step ST4. i A first normalization process is performed to normalize the first difference vector r (step ST5). In the first normalization process as a normalization process, the change detection device 100 converts each first difference vector r by the vector transformation unit 23 as shown in equation (2). i The first normal vector z i By converting to this, the first normal vector is obtained as multiple normal vectors. In other words, the change detection device 100 transforms each first difference vector so that the magnitude of each first difference vector becomes 1 through the first normalization process. In other words, the change detection device 100 unifies the magnitude of each first difference vector through the first normalization process. z i =r i / ||r i || (i=1, 2,..., n)...(2)
[0034] Figure 8C shows an example of a plurality of first normal vectors obtained by the first normalization process performed by the change detection device 100 according to Embodiment 1. The change detection device 100 converts a plurality of first difference vectors with dimension M of 2 into a plurality of first normal vectors with dimension M of 2 through the first normalization process. These plurality of first normal vectors are distributed on the circumference of a circle with radius 1. If the dimension M is 3, the plurality of first normal vectors are distributed on a sphere, and if the dimension M is 4 or more, the plurality of first normal vectors are distributed on a hypersphere.
[0035] After completing the process in step ST5, the change detection device 100 performs a first change score calculation process, which calculates a first change score based on a plurality of first normal vectors (step ST6). In the first change score calculation process, the change detection device 100 uses a change score calculation unit 24 to calculate and obtain a first change score, which is a value indicating the bias in the distribution of the plurality of first normal vectors.
[0036] For example, the change detection device 100 calculates the Rayleigh score R as the first change score using a known algorithm, as shown in equation (3). TIFF0007961168000002.tif24166
[0037] The Rayleigh score R is obtained by multiple first normal vectors z i The Rayleigh score will be close to zero if the distribution is uniform on a circle, sphere, or hypersphere, and will be large if the distribution is biased. Therefore, by evaluating the magnitude of the Rayleigh score, it becomes possible to determine whether or not there has been a characteristic change in the time series data. The change score calculated by the change score calculation unit 24 only needs to be a value corresponding to the bias (uniformity) of the distribution of the multiple first normal vectors, and may be, for example, a Gine score or an Ajne score obtained by a known algorithm.
[0038] Let i and j be indices of the first normal vector, and z i and z j Let be the two first normal vectors. Then the Gine score F n and Ajne score A n This is shown by the following equations (4) and (5). TIFF0007961168000003.tif46166
[0039] When interpreting the terms defined by the Σ symbol for the Gine score and Ajne score, if two first normal vectors are pointing in the same direction, the angle between the two first normal vectors is ψ. ij Since the value is close to 0, the value of the term defined by the Σ symbol in the Gine score and Ajne score will be close to 0. On the other hand, if the two first normal vectors are pointing in different directions, the angle between the two first normal vectors ψ ij Since this value is greater than 0, the values of the terms defined by the Σ symbol in the Gine and Ajne scores will be greater than 0. Based on the above, considering that the Σ symbol is preceded by a minus sign, the Gine score and Ajne score will be large when the distribution of the first normal vector is uniform on a circle, sphere, or hypersphere, and small when the distribution is biased.
[0040] Figure 9A is a conceptual diagram showing the first difference vector acquisition process performed by the change detection device 100 according to Embodiment 1, Figure 9B is a diagram showing an example of a plurality of first difference vectors obtained by the first difference vector acquisition process performed by the change detection device 100 according to Embodiment 1, and Figure 9C is a diagram showing an example of a plurality of first normal vectors obtained by the first normalization process performed by the change detection device 100 according to Embodiment 1. Figures 9A, 9B, and 9C differ from Figures 8A, 8B, and 8C in that the time series data acquired by the change detection device 100 in the process of step ST2 is data in which there is no characteristic change between the first time series data and the second time series data.
[0041] As shown in Figures 9A, 9B, and 9C, when the change detection device 100 processes such time-series data, the directions of the multiple acquired first difference vectors are not significantly biased, and the multiple acquired first normal vectors are distributed nearly uniformly on the circumference.
[0042] Figure 10A is a conceptual diagram showing the first difference vector acquisition process performed by the change detection device 100 according to Embodiment 1, Figure 10B is a diagram showing an example of a plurality of first difference vectors obtained by the first difference vector acquisition process performed by the change detection device 100 according to Embodiment 1, and Figure 10C is a diagram showing an example of a plurality of first normal vectors obtained by the first normalization process performed by the change detection device 100 according to Embodiment 1. Figures 10A, 10B, and 10C differ from Figures 8A, 8B, and 8C in that the time-series data acquired by the change detection device 100 in the process of step ST2 includes data values that are outliers (singular values). In this disclosure, an outlier simply means a data value whose difference when compared with other data values is larger than the difference between other data values, and includes abnormal values due to human error when acquiring data values, and malfunctions of measuring instruments that acquire data values.
[0043] As shown in Figures 10A and 10B, for example, if the second time-series data acquired by the change detection device 100 contains an outlier data value, the multiple first vectors will include an outlier vector v acquired based on that outlier. x It includes, and multiple first difference vectors include the outlier vector v x The outlier difference vector r obtained based on x This includes. However, as shown in Figure 10C, the change detection device 100 according to Embodiment 1 uses each first difference vector r i By performing a first normalization process to normalize the outlier difference vector r, x Since it is converted to a normal vector with a magnitude of 1, the outlier difference vector r x This can suppress the impact on the calculation results.
[0044] As shown in Figure 4, after the processing in step ST6, the change detection device 100 performs a second difference vector acquisition process to calculate the difference vector between the first vector and the second vector acquired in the vector acquisition process in step ST3 (step ST8). In the second difference vector acquisition process, which is the difference vector acquisition process, the change detection device 100 uses the difference vector acquisition unit 22 to select a specific second vector v' from among the multiple second vectors. i From this, a specific first vector v among multiple first vectors i Subtracting this, we obtain the second difference vector r' i Calculate.
[0045] Figure 11A is a conceptual diagram showing the second difference vector acquisition process performed by the change detection device 100 according to Embodiment 1. In Figure 11A, circles represent the first vector and X represents the second vector. For example, in the second difference vector acquisition process, the change detection device 100, similar to the process in step ST4, uses the k-nearest neighbor method to acquire a specific first vector v i The second vector v' is closest to it. i Extract the second vector v' as shown in equation (6). i The corresponding first vector v i The process of subtracting is performed for each first vector, and the second difference vector r' i By calculating this, multiple second difference vectors are obtained. Note that when k in the k-nearest neighbors method is 2 or greater, the difference vector r' i This is the first vector v, which is the mean vector of the k-neighboring vectors. i (knn) It is calculated using [this method]. r' i =v' i -v i (knn) (i=1, 2,..., n)...(6) TIFF0007961168000004.tif16166
[0046] Figure 11B shows a plurality of second difference vectors r' obtained by the second difference vector acquisition process performed by the change detection device 100 according to Embodiment 1. i This figure shows an example. Multiple first difference vectors r obtained by the first difference vector acquisition process in step ST4. i Similarly, multiple second difference vectors r' obtained by the second difference vector acquisition process in step ST8 i They differ in their orientation and size.
[0047] When the process in step ST8 is completed, the change detection device 100 will process each second difference vector r' calculated in the second difference vector acquisition process of step ST8. i A second normalization process is performed to normalize the second difference vector r' as shown in equation (7). In the second normalization process, the change detection device 100 uses the vector transformation unit 23 to convert each second difference vector r' i The second normal vector z' i By converting to this, the system obtains a second normal vector as multiple normal vectors. In other words, the change detection device 100 unifies the magnitude of each second difference vector by the vector transformation unit 23. z' i =r' i / ||r' i || (i=1, 2,..., n)...(7)
[0048] Figure 11C shows a plurality of second normal vectors z' obtained by the second normalization process performed by the change detection device 100 according to Embodiment 1. i This figure shows an example. The change detection device 100 uses a second normalization process to obtain multiple second difference vectors r' with dimension M of 2. i This is a set of multiple second normal vectors z' with dimension M being 2. i This converts them to a multiple second normal vector. These multiple second normal vectors are distributed on the circumference of a circle with radius 1. Similar to first normal vectors, if the dimension M is 3, the multiple second normal vectors are distributed on a sphere, and if the dimension M is 4 or greater, the multiple second normal vectors are distributed on a hypersphere.
[0049] After the processing in step ST9, the change detection device 100 performs a second change score calculation process to calculate a second change score based on a plurality of second normal vectors (step ST10). In the second change score calculation process, which is a change score calculation process, the change detection device 100 obtains the second change score by calculating the second change score as a change score, which is a value that indicates the bias of the distribution of the plurality of second normal vectors, using the change score calculation unit 24. For example, the change detection device 100 calculates the Rayleigh score R' as the second change score using a known algorithm shown in equation (8), similar to the first change score calculation process. TIFF0007961168000005.tif20166
[0050] After performing the process in step ST10, the change detection device 100 performs a maximum change score calculation process (step ST10) to calculate the maximum value between the first change score calculated in step ST6 and the second change score calculated in step ST10. In this process, the change detection device 100 compares the calculated first change score and the second change score and selects the change score with the larger value. In other words, the change detection device 100 selects the change score that indicates the largest change in the time series data from among the multiple change scores that have been calculated.
[0051] When the process in step ST11 is completed, the change detection device 100 performs a change detection process to detect changes in time series data by comparing the change score value calculated in step ST11 with a preset threshold (step ST12). In this process, the change detection device 100 uses the change detection unit 25 to compare the change score value calculated in step ST11 with a preset threshold set by the parameter setting unit 26, and determines that there has been a characteristic change in time series data between the first time series data and the second time series data if the change score value exceeds the threshold. In addition, in this process, the change detection device 100 uses the change detection unit 25 to compare the change score value calculated in step ST11 with a preset threshold set by the parameter setting unit 26, and determines that there has been no characteristic change in time series data between the first time series data and the second time series data if the change score value is within the threshold.
[0052] For example, the change detection device 100 may acquire time-series data from normal times when there are no characteristic changes in advance, and set a threshold value based on a normal change score calculated based on that normal time-series data. Specifically, the change detection device 100 may be configured to acquire time-series data from normal times when there are no characteristic changes in advance, and set a threshold value by adding a predetermined value to the normal change score calculated based on that normal time-series data. In other words, the change detection device 100 is configured such that the time series data acquisition unit 10 acquires time series data for a period including a third period which is a period prior to the first period and a fourth period which is a period between the third period and the first period; the vector acquisition unit 21 acquires a plurality of third vectors (first vectors) which are a plurality of partial time series data in the third period and a plurality of fourth vectors (second vectors) which are a plurality of partial time series data in the fourth period, based on the time series data acquired by the time series data acquisition unit 10; the difference vector acquisition unit 22 acquires difference vectors relating to a combination of a specific third vector among the plurality of third vectors and a specific fourth vector among the plurality of fourth vectors for a plurality of combinations; and the parameter setting unit 26, which acts as a threshold setting unit, sets a threshold based on the bias in the directional distribution of the plurality of difference vectors acquired by the difference vector acquisition unit 22. Furthermore, the third vector in the third period corresponds to the first vector in the first period, the fourth vector in the fourth period corresponds to the second vector in the second period, and the difference between the first and third vectors, and the difference between the second and fourth vectors, differs only in the period in which they were obtained.
[0053] The change detection device 100 may be configured to calculate multiple change scores in advance for multiple periods prior to the first period, and to set a threshold based on the calculated multiple change scores. For example, the change detection device 100 may be configured to set a threshold value obtained by adding a predetermined value to representative values such as the average, median, and maximum value of the multiple change scores calculated in advance.
[0054] After completing step ST12, the change detection device 100 outputs a determination result of whether or not there is a characteristic change in the time-series data as a comparison result by the change detection unit 25 (step ST13). For example, in this process, the change detection device 100 displays information corresponding to the determination result on a display device (not shown) using the output unit 30. Also, for example, in this process, the change detection device 100 transmits information corresponding to the determination result to an external device (not shown) using the output unit 30. After completing step ST13, the change detection device 100 terminates its processing.
[0055] As described above, the change detection device 100 in Embodiment 1 includes: a time series data acquisition unit 10 that acquires time series data for a period including a first period and a second period which is a period later than the first period; a vector acquisition unit 21 that acquires a plurality of first vectors which are a plurality of partial time series data in the first period and a plurality of second vectors which are a plurality of partial time series data in the second period, based on the time series data acquired by the time series data acquisition unit 10; a difference vector acquisition unit 22 that acquires difference vectors relating to a combination of a specific first vector from the plurality of first vectors and a specific second vector from the plurality of second vectors for a plurality of combinations; and a change detection unit 25 that detects characteristic changes in the time series data based on the bias in the directional distribution of the plurality of difference vectors acquired by the difference vector acquisition unit 22.
[0056] Thus, the change detection device 100 according to Embodiment 1 detects characteristic changes in time-series data based on the directional bias of multiple difference vectors, without considering the magnitude of multiple difference vectors acquired based on time-series data. This makes it possible to suppress the influence of outliers included in the time-series data, and improves the accuracy of detecting characteristic changes in time-series data, i.e., changes in the trend of time-series data, compared to conventional methods.
[0057] Furthermore, the change detection device 100 according to Embodiment 1 has fewer constraints on the length and number of time series data required to detect characteristic changes in time series data. Therefore, compared to other change detection algorithms, such as the KL-CPD method, which may not be able to find the kernel function necessary for detecting the change if the number of data points after the change is small, it is possible to detect characteristic changes in time series data with a small number of data points.
[0058] Furthermore, the change detection device 100 according to Embodiment 1 includes a vector transformation unit 23 that acquires a vector obtained by transforming each of the multiple difference vectors acquired by the difference vector acquisition unit 22 so as to unify the magnitude without changing the direction, and the change detection unit 25 detects characteristic changes in the time series data based on the bias in the distribution of the direction of the vectors acquired by the vector transformation unit 23.
[0059] The vector acquisition unit 21 according to Embodiment 1 acquires multiple first vectors by sliding a slide window in the time-series data of the first period, and acquires multiple second vectors by sliding a slide window in the time-series data of the second period.
[0060] The difference vector acquisition unit 22 according to Embodiment 1 extracts the closest second vector from among a plurality of second vectors for each of a plurality of first vectors, and acquires a plurality of difference vectors based on the difference between each of the plurality of first vectors and the extracted second vector.
[0061] In the change detection device 100 according to Embodiment 1, the plurality of difference vectors are a plurality of first difference vectors, and the difference vector acquisition unit 22 extracts the closest first vector from the plurality of first vectors for each of the plurality of second vectors, and acquires a plurality of second difference vectors based on the difference between each of the plurality of second vectors and the extracted first vector, and the change detection unit 25 uses the plurality of first difference vectors and the plurality of second difference vectors acquired by the difference vector acquisition unit 22 2The characteristic changes in time-series data are detected based on the bias in the distribution of the difference vector, specifically in the direction where the bias is greater.
[0062] The change detection device 100 according to Embodiment 1 includes a change score calculation unit 24 that calculates a change score according to the bias in the directional distribution of multiple difference vectors, and the change detection unit 25 detects characteristic changes in time series data based on whether or not the change score calculated by the change score calculation unit 24 exceeds a preset threshold.
[0063] The change detection device 100 according to Embodiment 1 includes a parameter setting unit 26 for setting a threshold. The time series data includes a third period which is a period prior to the first period, and a fourth period which is a period between the third period and the first period. The vector acquisition unit acquires a plurality of third vectors which are a plurality of partial time series data in the third period, and a plurality of fourth vectors which are a plurality of partial time series data in the fourth period, based on the time series data acquired by the time series data acquisition unit. The difference vector acquisition unit 22 acquires difference vectors relating to a combination of a specific third vector from the plurality of third vectors and a specific fourth vector from the plurality of fourth vectors, for a plurality of combinations. The parameter setting unit 26 sets a threshold based on the bias in the directional distribution of the plurality of difference vectors acquired by the difference vector acquisition unit 22.
[0064] In Embodiment 1, the change detection device 100 is configured to detect characteristic changes in time-series data by comparing the change score calculated by the change score calculation unit 24 with a preset threshold, but it is not limited to this configuration. The change detection device only needs to be configured to detect characteristic changes in time-series data based on the change score, and for example, it may be configured to detect characteristic changes in time-series data based on the amount of change in the change score over time, or the rate of change in the change score over time.
[0065] Furthermore, in Embodiment 1, the change detection device 100 acquires a plurality of first vectors and a plurality of second vectors in the vector acquisition process with the number of dimensions M of the acquired vectors being 2 and the number of slides being 1, but is not limited to this. The change detection device 100 may be configured to appropriately set the number of dimensions M of the vectors and the number of slides by the parameter setting unit 26.
[0066] Figure 12 is a conceptual diagram showing the vector acquisition process performed by the change detection device 100 according to Embodiment 1. As shown in Figure 12, the change detection device 100 acquires N sets of vectors of dimension M from time series data of a predetermined length. Although Figure 12 shows an example where the number of slides is 1 when the change detection device 100 acquires N sets of vectors of dimension M, as mentioned above, the number of slides may be other than 1. For example, the parameter setting unit 26 may be configured to set the number of slides based on the time series data acquired by the time series data acquisition unit 10. Specifically, the parameter setting unit 26 may be configured to set a relatively small number of slides when the time series data acquired by the time series data acquisition unit 10 is time series data with relatively large fluctuations in a short period of time. Also, the parameter setting unit 26 may be configured to set a relatively large number of slides when the time series data acquired by the time series data acquisition unit 10 is time series data with relatively small fluctuations in a short period of time. Furthermore, the parameter setting unit 26 may be configured to dynamically change the number of slides by observing changes in the time series data.
[0067] The parameter setting unit 26 may also be configured to appropriately set the slide window length, which is the number of dimensions M of the first and second vectors acquired by the vector acquisition unit 21. However, when the difference vector acquisition unit 22 calculates the difference vector, it is required that the number of dimensions of the first and second vectors match. Furthermore, if the length of the time series data acquired by the time series data acquisition unit 10 is longer than the sum of the first and second periods, the change detection device 100 may, after performing the processing from step ST2 to step ST13 shown in Figure 4, set various parameters to new values and perform the processing from step ST2 to step ST13 again.
[0068] Next, with reference to Figures 13 to 16, a specific example of detecting characteristic changes in time-series data using the change detection device 100 according to Embodiment 1 will be described. First, with reference to Figures 13 and 14, an example of detecting characteristic changes in timing gear vibration data using the change detection device 100 according to Embodiment 1 will be described. Figure 13 is a schematic diagram showing timing gears G1 and G2 whose vibration changes are detected by the change detection device 100 according to Embodiment 1, Figure 14A is a graph showing the vibration data of timing gears G1 and G2 as time-series data acquired by the change detection device 100 according to Embodiment 1, and Figure 14B is a graph showing the change score calculated by the change detection device 100 according to Embodiment 1 based on the vibration data of timing gears G1 and G2.
[0069] Generally, the vibration of a timing gear changes due to wear, scratches, chips, and the adhesion of foreign matter. Therefore, by detecting characteristic changes in the timing gear's vibration data, it becomes possible to detect these changes related to the timing gear.
[0070] The graph in Figure 14A shows vibration data, for example, indicating the vibration level acquired by vibration sensors from timing gears G1 and G2 with a 1-second period. The graph in Figure 14B shows the change in the change score calculated using the vibration data from timing gears G1 and G2, with the dimension M of the first and second vectors set to 10. In Figure 14B, it can be seen that the value of the change score increases at the time when the vibration data changes.
[0071] Next, with reference to Figure 15, an example of detecting characteristic changes in the gas consumption of a specific customer using the change detection device 100 according to Embodiment 1 will be described. Figure 15 is a graph showing gas consumption data as time-series data acquired by the change detection device 100 according to Embodiment 1, and a change score calculated based on the gas consumption data. The graph of the change score shown in Figure 15 shows the trend of the change score calculated with the number of dimensions M of the first and second vectors set to 10. In Figure 15, the vertical axis represents the gas consumption value expressed in cubic meters, and the change score is a dimensionless number expressed from 0 to 1, with a common scale.
[0072] Generally, gas consumption changes in response to changes in the composition of consumers (family structure), changes in gas consumption equipment such as the introduction of new gas appliances, changes in lifestyle, and changes in temperature. As shown in Figure 15, when the change detection device 100 acquires data on the gas consumption of consumers over a predetermined period as time-series data, it can be seen that gas consumption changes during the Golden Week and Obon holiday periods, and that the change score increases during the same period.
[0073] Next, with reference to Figure 16, an example of detecting characteristic changes in a stock index using the change detection device 100 according to Embodiment 1 will be described. Figure 16A is a graph showing the daily closing price trend of the Tokyo Stock Price Index (TOPIX) as time-series data acquired by the change detection device 100 according to Embodiment 1, and Figure 16B is a graph showing the change score calculated by the change detection device 100 according to Embodiment 1 based on the TOPIX data. Furthermore, the graph of the change score shown in Figure 16 shows the trend of the change score calculated with the number of dimensions M of the first and second vectors set to 10.
[0074] Generally, the period known as the bubble economy is said to be from December 1986 to February 1991. In conventional stock price research, fluctuations (volatility, magnitude of difference) are often the focus, but as shown in Figures 16A and 16B, it can be seen that the magnitude of fluctuations and the change score do not necessarily coincide. According to the change detection device 100 of Embodiment 1, as shown in Figure 16B, the change score changes to become larger on November 5, 1986 and December 20, 1990, and it is possible to detect changes in the stock index earlier than the timing generally considered to be the start of the bubble economy, and to detect changes in the stock index earlier than the timing generally considered to be the end of the bubble economy.
[0075] Furthermore, this disclosure allows for modifications of any component of the embodiment, or the omission of any component. [Explanation of Symbols]
[0076] 10: Time-series data acquisition unit 20: Arithmetic section 21: Vector acquisition unit 22: Difference vector acquisition unit 23: Vector transformation section 24: Change Score Calculation Unit 25: Change detection unit 26: Parameter setting section (threshold setting section) 30: Output section 100: Change detection device
Claims
1. A time-series data acquisition unit acquires time-series data for a period including a first period and a second period which is a period later than the first period. A vector acquisition unit acquires, based on the time series data acquired by the time series data acquisition unit, a plurality of first vectors which are a plurality of partial time series data in the first period, and a plurality of second vectors which are a plurality of partial time series data in the second period. A difference vector acquisition unit acquires a difference vector relating to a combination of a specific first vector from among the plurality of first vectors and a specific second vector from among the plurality of second vectors for multiple combinations. The system includes a change detection unit that detects characteristic changes in the time-series data based on the bias in the directional distribution of a plurality of difference vectors acquired by the difference vector acquisition unit. A change detection device characterized by the following features.
2. The vector transformation unit acquires a vector obtained by transforming each of the multiple difference vectors acquired by the difference vector acquisition unit so as to unify their magnitude without changing their direction. The change detection unit detects characteristic changes in the time series data based on the bias in the distribution of the vector directions obtained by the vector transformation unit. The change detection device according to claim 1, characterized in that it is a change detection device.
3. The vector acquisition unit acquires the plurality of first vectors by sliding a slide window in the time series data for the first period, and acquires the plurality of second vectors by sliding a slide window in the time series data for the second period. The change detection device according to claim 1, characterized in that it is a change detection device.
4. The difference vector acquisition unit extracts the closest second vector from the plurality of second vectors for each of the plurality of first vectors, and acquires the plurality of difference vectors based on the difference between each of the plurality of first vectors and the extracted second vector. The change detection device according to claim 1, characterized in that it is a change detection device.
5. The aforementioned multiple difference vectors are multiple first difference vectors, The difference vector acquisition unit extracts the closest first vector from the plurality of first vectors for each of the plurality of second vectors, and acquires a plurality of second difference vectors based on the difference between each of the plurality of second vectors and the extracted first vector. The change detection unit detects characteristic changes in the time series data based on the distribution bias in the direction in which the distribution bias is greater among the plurality of first difference vectors and plurality of second difference vectors acquired by the difference vector acquisition unit. The change detection device according to claim 4, characterized in that it is a change detection device.
6. The system includes a change score calculation unit that calculates a change score corresponding to the bias in the directional distribution of the plurality of difference vectors. The change detection unit detects characteristic changes in the time-series data based on whether the change score calculated by the change score calculation unit exceeds a preset threshold. The change detection device according to claim 1, characterized in that it is a change detection device.
7. The system includes a threshold setting unit for setting the aforementioned threshold, The aforementioned time series data includes a third period which is a period prior to the first period, and a fourth period which is a period between the third period and the first period. The vector acquisition unit acquires, based on the time series data acquired by the time series data acquisition unit, a plurality of third vectors which are a plurality of partial time series data in the third period, and a plurality of fourth vectors which are a plurality of partial time series data in the fourth period. The difference vector acquisition unit acquires difference vectors relating to combinations of a specific third vector from among the plurality of third vectors and a specific fourth vector from among the plurality of fourth vectors for multiple combinations. The threshold setting unit sets the threshold based on the bias in the directional distribution of the multiple difference vectors acquired by the difference vector acquisition unit. The change detection device according to claim 6, characterized in that it is a change detection device.
8. The time-series data acquisition unit acquires data on gas consumption over a predetermined period as the time-series data, The change detection unit detects characteristic time changes in the gas consumption based on the directional bias of the difference vector acquired by the difference vector acquisition unit. A change detection device according to any one of claims 1 to 7, characterized in that it is a change detection device.
9. A change detection method performed by an apparatus comprising a time-series data acquisition unit, a vector acquisition unit, a difference vector acquisition unit, and a change detection unit, The time-series data acquisition unit acquires time-series data for a period including a first period and a second period which is a period later than the first period. The vector acquisition unit acquires, based on the time series data acquired by the time series data acquisition unit, a plurality of first vectors which are a plurality of partial time series data in the first period, and a plurality of second vectors which are a plurality of partial time series data in the second period. The difference vector acquisition unit acquires a difference vector relating to a combination of a specific first vector from among the plurality of first vectors and a specific second vector from among the plurality of second vectors for a plurality of combinations. The change detection unit includes the step of detecting characteristic changes in the time series data based on the bias in the directional distribution of a plurality of difference vectors acquired by the difference vector acquisition unit. A change detection method characterized by the present invention.
Citation Information
Patent Citations
Device, method and program for detecting anomaly, and recording medium
JP2006048253A
Change Detection Using Directional Statistics
US20170322114A1
