The present application relates generally to the field of data cleansing. In particular, the present disclosure relates to a data processing framework for data cleansing.
Oil production facilities are large scale operations, often including hundreds or even thousands of sensors used to measure pressures, temperatures, flow rates, levels, compositions, and various other characteristics. The sensors included in such facilities may provide a wrong signal, and sensors may fail. Accordingly, process measurements are inevitably corrupted by errors during the measurement, processing and transmission of the measured signal. These errors can take a variety of forms. These can include duplicate values, null/unknown values, values that exceed data range limits, outlier values, propagation of suspect or poor quality data, and time ranges of missing data due to field telemetry failures. Other errors may exist as well.
The quality of the oil field data significantly affects the oil production performance and the profit gained from using various data and/or analysis systems for process monitoring, online optimization, and control. Unfortunately, based on the various errors that can occur, oil field data often contain errors and missing values that invalidate the information used for production optimization.
To improve the accuracy of process data, fault detection techniques have been developed to determine when and how such sensors fail. For example, data driven models including principal component analysis (PCA) or partial least squares (PLS) have been developed to monitor process statistics to detect such failures. Furthermore, a Kalman filter can be used to develop interpolation methods for detecting outliers and reconstructing missing data streams.
However, the above existing solutions have drawbacks. For the estimation of a data point at a particular time, Kalman prediction only uses the past data, while Kalman smoothing only uses the future data. Accordingly, if only partial data is available at a particular time, the Kalman prediction arrangement is unavailable. Conversely, a Kalman filter cannot make use of partial information for purposes of data reconstruction. Accordingly, data reconstruction may not be available in cases where data changes over time, and where all data is not available for analysis (e.g., in dynamic systems where data changes rapidly).
Still further challenges exist with respect to data cleansing. For example, existing systems do not provide a system that is configurable for each possible problem in data to be cleansed, or particular types of data, and do not provide a system that is readily scalable to large-scale data collection systems. Additionally, existing systems are implemented within a shell monitoring application program, which limits the scalability of such systems. Additionally, existing commercial efforts do not address temporal and spatial considerations when considering possible sensor failure detection issues.
Still further drawbacks exist with respect to current data cleansing systems. For example, there may be field instruments in a facility that are somewhat isolated and do not have any significant correlation with any other field instrument. For such field instruments, an approach which depends on correlation between input variables to a model to detect data errors cannot be applied.
Still further, once a fault is detected, more analysis is often required to determine which input variable is faulty. One approach to doing so uses reconstruction-based contribution which determines which input to the PCA model contributes most to exceeding the statistical threshold. The input with the largest contribution is deemed to be faulty. Once the faulty input is identified, the PCA model can then be used to calculate a corrected value for that input, given values of the other inputs and the model itself. When the fault is reconstructed, the statistical indices fall back within their thresholds. However, because PCA is a steady-state modeling technique, it tends to generate alarms when dynamic behavior occurs, e.g., in industrial processes. These alarms upon dynamic behavior can lead to false detection, identification and reconstruction of data that is actually not erroneous.
For the above and other reasons, improvements in detection and addressing errors in dynamic systems are desirable.
In accordance with the present disclosure, the above and other issues are addressed by the following:
In a first aspect, a method for detecting faulty data in a data stream is disclosed. The method includes receiving an input data stream at a data processing framework and performing a wavelet transform on the data stream to generate a set of coefficients defining the data stream, the set of coefficients including one or more coefficients representing a high frequency portion of data included in the data stream. The method further includes determining, based on the high frequency portion of data, existence of a fault in the input data stream.
In a second aspect, a system includes a communication interface configured to receive a data stream, a processing unit, and a memory communicatively connected to the processing unit. The memory stores instructions which, when executed by the processing unit, cause the system to perform a method of detecting faulty data in the data stream. The method includes performing a wavelet transform on the data stream to generate a set of coefficients defining the data stream, the set of coefficients including one or more coefficients representing a high frequency portion of data included in the data stream, and determining, based on the high frequency portion of data, existence of a fault in the input data stream.
In a third aspect, a computer-readable medium having computer-executable instructions stored thereon which, when executed by a computing system, cause the computing system to perform a method for reconstructing data for a dynamic data set having a plurality of data points. The method includes receiving an input data stream at a data processing framework and performing a wavelet transform on the data stream to generate a set of coefficients defining the data stream, the set of coefficients including one or more coefficients representing a high frequency portion of data included in the data stream. The method also includes determining, based on the high frequency portion of data, existence of a fault in the input data stream, and reconstructing data at the fault using a recursive least squares process. The recursive least squares process has a forgetting factor defining relative weighting of previous data received in the input data stream.
In a fourth aspect, a computer-implemented method for reconstructing data is disclosed. The method includes receiving a selection of one or more input data streams at a data processing framework, and receiving a definition of one or more analytics components at the data processing framework. The method includes applying a dynamic principal component analysis to the one or more input data streams and detecting a fault in the one or more input data streams based on at least one of a prediction error or a variation in principal component subspace generated based on the dynamic principal component analysis. The method further includes identifying at least one of the one or more input data streams as a contributor to the fault based at least in part on a determination of a reconstruction-based contribution of the at least one input data stream to the fault, and reconstructing data at the fault within the one or more input data streams.
As briefly described above, embodiments of the present invention are directed to data cleansing systems and methods, for example to provide dynamic data reconstruction based on dynamic data. The systems and methods of the present disclosure provide for data reconstruction that has improved flexibility as compared to the traditional Kalman filter in that they can optionally use partial data available at a particular time. Therefore, the methods discussed herein provide for reconstruction of missing or faulty sensor values irrespective of the number of sensors that are missing or faulty. In some embodiments discussed here, both forward data reconstruction (FDR) and backward data reconstruction (BDR) are used to provide for data reconstruction. Additionally, contributions of specific inputs to a fault or error can be determined, thereby isolating the likely cause, or greatest contributor, to a fault occurring, thereby allowing a faulty sensor to be identified.
Concepts of the present disclosure are further described in “Missing Value Replacement in Multivariate Data Modeling, Part II: Dynamic PCA Models” by Yining Dong, Yingying Zheng, S. Joe Qin, and Lisa Brenskelle; and “Advanced Streaming Data Cleansing” by Alisha Deshpande, Yining Dong, Gang Li, Yingying Zheng, Si-Zhao Qin, and Lisa A. Brenskelle, the contents of both of which are incorporated herein by reference in their entireties.
In still further aspects, the present disclosure relates to cleansing of individual data streams, for example by using wavelet transforms to isolate a high frequency portion of the data stream. Based on observations relating to that high frequency portion (e.g., whether it is unchanging, monotonically increasing/decreasing, or otherwise represents a signal unlikely to be accurate), a fault can be detected in a single input data stream. A recursive least squares method can be used to reconstruct data determined to be faulty, in some cases by also applying a forgetting factor to past data. Such single data stream fault detection and reconstruction mechanisms can be used on either batches of data from a data stream or in realtime, according to some implementations.
In accordance with the following disclosure, the systems and methods herein provide a number of advantages over existing systems. In some embodiments, the systems and methods described herein provide for real-time monitoring and decision making regarding dynamic data, allowing for “on the fly” data cleansing while data is being collected. Additionally, based on the pipelined, modular architecture described in further detail below, the methods and systems described herein are highly scalable to a large number (e.g., hundreds of thousands) of data streams. The systems and methods described herein also are configurable by non-expert users, and can be reused in various contexts and applications. Additionally, as data cleansing operators are developed, they can be integrated into the framework described herein, ensuring that the systems are extensible and comprehensive of various data cleansing issues.
Referring now to
The oil production facility 104 can be any of a variety of types of oil production facilities, such as a land-based or offshore drilling system. In the embodiment shown, the subsystems of the oil production facility 104 each are associated with a variety of different types of data, and have sensors that can measure and report that data in the form of data streams. For example, the separation system 106a may include pressure and temperature sensors and associated sensors that test backpressure as well as inlet and outlet temperatures. In such a system, various errors may occur, for example valve stiction or other types of error conditions. The compression system 106b can include a pressure control for monitoring suction, as well as a variety of stage discharge temperature controllers and associated sensors. In addition, the oil treating system 106c, water treating system 106d, and HP/LP Flare system 106e can each have a variety of types of sensors, including pressure and temperature sensors, that can be periodically sampled to generate a data stream to be monitored by the computing system 102. It is recognized that the various system 106a-e are intended as exemplary, and that various other systems could have sensors that are be incorporated into data streams provided to the computing system 102 as well.
In the embodiment shown, the computing system 102 includes a processor 110 and a memory 112. The processor 110 can be any of a variety of types of programmable circuits capable of executing computer-readable instructions to perform various tasks, such as mathematical and communication tasks.
The memory 112 can include any of a variety of memory devices, such as using various types of computer-readable or computer storage media. A computer storage medium or computer-readable medium may be any medium that can contain or store the program for use by or in connection with the instruction execution system, apparatus, or device. In example embodiments, the computer storage medium is embodied as a computer storage device, such as a memory or mass storage device. In particular embodiments, the computer-readable media and computer storage media of the present disclosure comprise at least some tangible devices, and in specific embodiments such computer-readable media and computer storage media include exclusively non-transitory media.
In the embodiment shown, the memory 112 stores a data processing framework 114. The data processing framework 114 performs analysis of dynamic data, such as is received in data streams (e.g., from an oil production facility 104), for detecting and reconstructing faults in data.
In the embodiment shown, the data processing framework 114 includes a DPCA modeling component 116, an error detection component 118, a user interface definition component 120, and a data reconstruction component 122.
The DPCA modeling component 116 receives dynamic data, for example from a data stream, and performs a principal component analysis on that data, as discussed in further detail below. For example, the DPCA modeling component 116 can perform a principal component analysis using measured variables that are not characterized as input and output variables, but rather are related to a number of latent variables to represent their respective correlations. An example of such analysis is discussed below in connection with
The error detection component 118 detects errors in the received one or more data streams. In some cases, the error detection component can be based at least in part on the analysis performed by the DPCA modeling component 116. In some embodiments, the error detection component 118 receives a threshold from a user, for example as entered into user interface component 120 that defines a threshold at which a fault would likely be occurring. In other embodiments, the error detection component 118 implements a single tag fault detection operation, such as is discussed below in connection with
The user interface definition component 120 presents to a user a configurable arrangement with which the scalable data framework can be configured to receive input streams and arrange analyses of those input streams, thereby allowing a user to define various analyses to be performed on the input data streams. This can include, for example, a configurable analysis of multiple data streams based on DPCA modeling and fault detection, as well as data reconstruction, as further discussed below. The steps for DPCA-based data cleansing method are: error detection, faulty sensor/input identification, and reconstruction of the faulty sensor data. It can also include, for example, configurable individual analysis of data streams, based on wavelet transform for fault detection and use of recursive least squares for reconstruction of data, as is also discussed below. In conjunction with the user interface definition component 120, the data reconstruction component 122 can be used to reconstruct faulty data according to a selected type of operation. Example operations may include forward data reconstruction 124 and backward data reconstruction 126, as are further discussed below. In other examples, such as the single sensor data cleansing methods and systems discussed herein, a recursive least squares data reconstruction operation 128 may be used, such as the auto-regressive recursive least squares process discussed below in connection with
The computing system 102 can also include a communication interface 130 configured to receive data streams from the oil production facility 104, and transmit notifications as generated by the data processing framework 114, as well as a display 132 for presenting a user interface associated with the data processing framework 114. In various embodiments, the computing system 102 can include additional components, such as peripheral I/O devices, for example to allow a user to interact with the user interfaces generated by the data processing framework 114.
Referring now to
In the embodiment shown, the process 200 generally includes monitoring performance of a particular set of dynamic data that can be included in one or more data streams (step 202). Those data streams can be monitored for performance, for example based on a principal component model. The model, for purposes of illustration, can represent a series of N samples for each of a vector of m sensors. Accordingly, a data matrix of samples can be depicted as:
XεR
N×m
In this arrangement, each row represents a sample xT.
The matrix X is scaled to a zero-mean, and unit variance, for use in principal component analysis (PCA) modeling. The matrix X is then decomposed into a score matrix T and a loading matrix P by singular value decomposition (SVD), as follows:
X=TP
T+{tilde over (X)}
In this notation, T=XP contains l leading left singular vectors and the singular values, P contains l leading right singular vectors, and {tilde over (X)} is the residual matrix. As such, the columns of T are orthogonal and the columns of P are orthonormal. The sample covariance can therefore be depicted as:
In the alternative, an eigen-decomposition can be performed on S to obtain P as the l leading eigenvectors of S and all eigenvalues are denoted as:
Λ=diag{λ1,λ2, . . . ,λm}
In this arrangement, the ith eigenvalue can be related to the ith column of the score matrix T as follows:
This represents the sample variance of the ith score vector. Additionally, the principal component subspace (PCS) is Sp=span {P} and the residual subspace (RS) Sr is the orthogonal complement. The partition of the measurement space into PCS and RS is performed such that the residual space contains only tiny singular values corresponding to a subspace with little variability, i.e., is primarily noise.
In performing principal component analysis as discussed in further detail herein, a sample vector xεRm can be projected on the PCS and RS, respectively, as {circumflex over (x)}k=Ptk, where tk=PTxk is a vector of the scores of l latent variables, with the residual vector being {tilde over (x)}k=xk−{circumflex over (x)}k=(I−PPT)xk.
In conjunction with the present disclosure, it is noted that a dynamic principal component analysis can be employed similarly to the arrangement discussed above, but with the measurements used to represent dynamic data from processes such as oil wells, or oil production facilities. In such cases, lagged variables may be used to represent the dynamic behavior of inputs to the model, thereby adjusting the method by which the model is built. Furthermore, in such cases, the measurement vector can be related to a score vector of fewer latent variables through a transfer function matrix. In this case, the measured variables are not characterized as input and output variables, but rather are related to a number of latent variables to represent their respective correlations. Assuming that zk is a collection of all variables of interest at time k, an extended variable vector can be defined as follows:
x
k
T
=[z
k
T
,z
k-1
T
. . . z
k-d
T]
The principal component analysis scores can then be calculated as above, as follows:
t
k
=P
T
[z
k
T
,z
k-1
T
. . . z
k-d
T]T
As a transfer function, this can be represented as tk=A(q−1)zk. In this representation, A(q−1) is a matrix polynomial formed by the corresponding blocks in P. The latent variables are linear combinations of past data with largest variances in descending order, analogous to a Kalman filter vector.
It is noted that monitored data can, in multivariate process monitoring generally include fault detection (step 204). Typically, squared prediction error (SPE) and/or the Hotelling's T2 indices are used to control normal variability in RS and PCS, respectively. With respect to squared prediction error, an index can be used to measure the projection of a particular sample vector on the residual subspace, noted as SPE≡∥{tilde over (x)}k∥2=∥(I−PPT)xk∥2. In this illustration of SPE, {tilde over (X)}k=(I−PPT)xk, and the process is considered normal if SPE is less than a confidence limit δ2. When a fault occurs, the faulty sample vector includes a normal portion superimposed with the fault portion, with the fault making SPE larger than the confidence limit (and hence leading to detection of the fault).
Hotelling's T2 index measures variations in PCS, namely T2=xTPΛ−1PTx. When normal data follows a normal distribution, the T2 statistic is related to an F-distribution, such that for a given confidence level β, the T2 statistic can be considered as:
If there is a sufficiently large number of data points N, the T2 index can be approximated under normal conditions with a distribution with 1 degrees of freedom, or T2≦χl2.
In the context of the present disclosure, a detectable fault will have an impact on the measurement variable that will cause it to deviate from a normal case. While the source of the fault may not be known, its impact on the measurement may be isolable from other faults. As noted herein the measurement vector of the fault free portion can be denoted as z*k which is unknown when a fault has occurred. However, the sampled vector zk, corresponding to the received sample measurement, is illustrates as zk=z*k+ξifk. In this arrangement, ∥fk∥ corresponds to a magnitude of the fault, and can change over time depending on the development of the fault over time. The fault direction matrix ξi can be derived from modeling the fault case as deviation from normal operation, or can alternatively be extracted from historical data.
Once a fault is detected, it can be the case that a particular sensor or incoming data stream contributes to the fault more than others, even though it may not be apparent from values received from that data stream. As such, a fault identification operation (step 206) can be performed to identify a particular sensor or data input that presents the greatest contribution to the fault. In example embodiments, a reconstruction-based contribution (RBC) of each variable can be determined to detect the source of a particular fault. This is the case for either forward or backward data reconstruction, as are explained herein. Although limited by a confidence limit of the reconstruction, use of the RBC-based contribution and fault identification analysis allows for multiple input values to be detected as a source of faults, or only one such input value.
In example embodiments, the fault identification of step 206 can be performed by using an amount of reconstruction along a variable direction as an amount of contribution of the variable to the fault detection index that is reconstructed. For example, when a fault in a data input i (e.g., a sensor) is detected at time k and no fault is detected prior to time k, a fault detection index violates a control limit because the sample at time k contains the fault. As such, reconstruction is performed for each sensor, as noted in step 208 of
x
k
=x*
k+Ξi
Furthermore, the reconstruction-based contribution can be defined as an amount of reconstruction along the direction of the faulty sensor, as follows:
RBCiSPE=∥{tilde over (Ξ)}ifk,iT∥2=xkT{tilde over (Ξ)}i{tilde over (Ξ)}i+xk
Accordingly, to identify which sensor is faulty, a comparison of fault contributions is made for each input i, and those fault contributions are compared. The reconstructed SPE index along the true fault direction therefore has a relation as follows:
SPE(xk,i
When the true fault direction is used for reconstruction, a reconstructed SPE is therefore brought within a normal control limit.
Accordingly, in a general fault identification process using the RBC-based fault identification as discussed herein, at a time where the SPE is outside of a control limit, the RBC is determined for each input data stream (e.g., sensor), and the sensor is identified having the largest RBC. A calculated replacement value is then formulated and used to replace the data value for the input for which an error is detected (e.g., as in step 208).
In alternative embodiments, a general fault detection index can be used for fault reconstruction and identification. Furthermore, other types of fault isolation could be used, such as use of fault detection statistics, reconstructed indices, discrimination by angles, pattern matching to existing fault data, or other faulty input isolation techniques.
Once a fault is detected, the faulty data can be reconstructed using a variety of techniques, including, as discussed further herein, forward and/or backward data reconstruction based on the squared prediction error (step 208). This can be performed, for example, using the forward or backward data reconstruction operations 124, 126, respectively, of
In particular, a reconstructed sample vector can be expressed as the actual sample minus the erroneous component, or zkr=zk+ξi fkr, with fkr representing an estimate of the actual fault magnitude. Correspondingly, the fault free portion of the signal corresponds to zka=(ξiperp)zk=(ξiperp)Tz*k, and the fault portion of the vector corresponds to zkf=εiTzk.
In an example of the above arrangement, assuming there is an array of 5 sensors, with sensors 2 and 4 having missing values, includes ξi columns of an identity matrix, namely:
Accordingly, the fault vector is represented as zkf=[z2,k, z4,k]T, and the non fault vector is represented as zka=[z1,k, z3,k, z5,k]T; reconstruction is therefore generating zkf from zka.
To reconstruct faulty data from non-faulty data (i.e., reconstructing zkf from zka), a fault ξi at time k0 and a number of subsequent time intervals, a dynamic PCA process is performed using fault direction ξi such that the effect of the fault is eliminated. In particular, in some embodiments, a forward data reconstruction technique can be used.
To perform the forward data reconstruction technique, it is assumed that a first entry zk0 in xk0 includes a fault in the direction ξi. Accordingly, an optimal reconstruction from complete data up to time k0−1 and partial data at k0 is made.
Assuming a start variable j that is initialized at 0, j can be incremented, and at time k0+j, an optimal reconstruction of zk0+jr from complete or previously reconstructed data up to k0+j−1 and partial data at k0+j. This process is repeated, including incrementing j, until all faulty samples are reconstructed.
As applied to the vector xk, the fault model can be represented as xk=x*k+Ξifk, where Ξi=|ξiT 0 . . . 0|T. Based on this, it is only the first entry zk of xk that contains a fault and requires reconstruction, using reconstructed sample vector xkr as follows:
x
k
r
=x
k−Ξifkr
To perform reconstruction, fkr is found, such that the reconstructed squared prediction error (SPE(xkr)=∥{tilde over (x)}kr∥2=∥{tilde over (x)}k−Ξkfkr∥2) is minimized, where {tilde over (Ξ)}i=(I−PPT)Ξi. This can be performed, for example, based on a least squares estimate of the fault magnitude as follows:
f
k
r={tilde over (Ξ)}i+{tilde over (x)}k={tilde over (Ξ)}i+xk
This leads to a reconstructed measurement vector:
x
k
r
=x
k−ΞiΞi+xk=(I−ΞiΞi+)xk
Residual data space is illustrated as: {tilde over (x)}kr=(I−{tilde over (Ξ)}i{tilde over (Ξ)}i+)xk. Accordingly, the reconstructed squared prediction error corresponds to ∥{tilde over (x)}kr∥2=∥{tilde over (x)}*k∥2 which results in entire removal of the fault following reconstruction. For the missing entries in zk, these entries are replaced with zeroes; accordingly, the reconstructed missing entries are calculated from:
z
k
f,r=ξiTzkr=zkf−Ξi+xk=−Ξi+xk
The above squared prediction error eliminates the effect of the error in residual space, while leaving principal component variations unchanged. Accordingly, in some embodiments, the magnitude of the T2 index is penalized while minimizing the SPE, leading to a global index based reconstruction:
Φ(xkr)=SPE(xkr)+μT2(xkr)=(xkr)TΦxkr
In the above, Φ=I−PPT+μPΛ−1PT. Furthermore, the least-squares reproduction of this, based on the global index, is provided by:
f
k
r=(ΞiTΦΞi)−1ΞiTΦxk
The forward data reconstruction based on the global index follows the same procedure as discussed above, based on SPE.
It is noted that, in eliminating the fault along the fault direction, normal variations along the fault direction are also eliminated. If normal variations are very large in the PCS, in some embodiments the T2 index may be excluded.
In the case of forward data reconstruction, it is generally required that the initial portion of the data sequence are normal for at least d consecutive time intervals so that only zk in xk is missing or faulty. If this is not the case, one can reconstruct the missing or faulty data backward in time.
In the case of backward data reconstruction, the sequence of data that can contain faults, zk, can have faults ξi with a direction occurring at time k0 and a number of previous time intervals. The DPCA model can in this case again be used along the fault direction ξi such that the effect of the fault is eliminated. This backward data reconstruction reconstructs zk0−jr (a time from which a fault occurs, backwards in time) based on actual data from zk0−j+dr to zk0−j+1, and any available data at zk0−jr. In particular, backward data reconstruction includes obtaining an optimal reconstruction zk0r from complete data from k0+1 and partial data at k0. Index j is incremented, and at time k0−j, zk0−jr is reconstructed from actual or previously reconstructed data at k0−j+1, and available partial data at k0−j. This process is repeated until all faulty samples are reconstructed.
Based on the above,
In the embodiment shown, the method 300 includes receiving a selection of one or more input data streams at a data processing framework (step 302). This can include, for example, receiving a definition, from a user at a user interface, of one or more input data streams from an oil production facility. The method 300 can also include receiving a definition of one or more analytics components at the data processing framework (step 304). This definition can include selection of one or more analytics components, and definition of analytics component features to be used, as selected from a pipelined analysis arrangement (e.g., as illustrated in
The method 300 generally includes applying a principal component analysis to the one or more input data streams that were selected in step 302, and in particular, applying a dynamic principal component analysis (step 306). In such embodiments, measured variables (e.g., measurements included in the defined input data streams) are not characterized as input and output variables, but rather are related to a number of latent variables that represent their respective correlations, and are correlated to a window of previous observations of the same features. The method 300 also includes detecting a fault in the one or more input data streams (step 308). This fault detection can be, for example, based on a comparison between a predetermined threshold and a squared prediction error. It can also be based on a variation in principal component subspace generated based on the dynamic principal component analysis.
Optionally, the method 300 can further involve identifying and determining an input that contributes most to the fault (step 310), for example by using the RBC method discussed above in connection with
The method 300 can additionally involve reconstructing the fault that occurs in the data of the data streams (step 312). This can include reconstructing the fault based on data collected prior to occurrence of the fault and optionally partial data at the time of the fault, such as may be the case in forward data reconstruction as discussed above. In alternative embodiments, a backward data reconstruction could be used. Furthermore, in some embodiments, the fault can be removed from the measured value, leaving a corrected or “reconstructed” measurement. In still other embodiments, a single input data cleansing operation can employ such data reconstruction techniques.
Referring now to
In example embodiments, one or more of the data cleansing modules 402-410 can be arranged to provide the fault detection, identification, and reconstruction features discussed above. In an example embodiment, the fault detection, identification, and reconstruction features discussed above are included in one or both of the Temporal Group Analytics (TGA) module 404 and the Spatial Group Analytics (SGA) module 406.
It is noted that, in some embodiments of the architecture 400, the order/sequence of applying modules 402-410 is fixed; however, in other embodiments, the modules 402-410 can be executed in parallel. Furthermore, in some embodiments, the combination of modules applied to a particular data stream is configurable. Moreover, the operators applied within each module are also configurable/programmable. The operators can also be implemented in a number of ways; for example, declarative continuous queries, or user-defined functions or aggregates could be used. In comparison, the declarative continuous queries have less functionality, but more flexibility, than the user-defined functions.
In some embodiments, the Individual Analytics (IA) module 402 includes operators that operate on single data values in input data streams. These operators can be used to clean and/or filter individual data items only based on the value of the item itself. Example IA operators can include simple outlier detection (e.g., exceeding thresholds), or raw data conversion (e.g., heat sensors output data into voltages, which must be converted to temperature by considering calibration of that sensor). Other operators could also be included in the IA module 402 as well. For example, operators could be included that provide for single input data cleansing, as discussed below.
In example embodiments, the Temporal Group Analytics (TGA) module 404 includes operators that operate on data segments in input data streams. These operators can be configured to clean individual data values as part of a temporal group of values by considering their temporal correlation. The TGA operators can be implemented using window-based queries. Example TGA operators include generic temporal outlier detection operators and temporal interpolation for data reconstruction, as is discussed in detail above. Although the term module is used herein, this disclosure is not limited to the use of modules, however may be implemented as necessary by one of ordinary skill in the art.
In example embodiments, the Spatial Group Analytics (SGA) module 406 includes operators that operate on data values from multiple data streams. These operators clean individual data values as part of a spatial group of values by considering their spatial correlation, and can be implemented, in some embodiments, using window join queries. One example SGA operator is a generic spatial outlier detection (e.g., within a spatial granule this operator can compute the average of the readings from different sensors and omit individual readings that are outside of two deviations from the mean).
In example embodiments, the Arbitration Analytics (AA) module 408 includes operators that operate on data values from multiple spatial granules to arbitrate the conflicting cleansing decisions. Example AA operators include conflict resolution and de-duplication operators.
In example embodiments, the Field Analytics (FA) module 410 includes operators that operate on data values from multiple stream sources of different modalities (e.g., heat and pressure). These operators can be used to consider correlation between data values of distinct modality and leverage this correlation to enhance data cleansing results. An example FA operator provides outlier detection by cross-correlation of data streams.
The data cleansing modules 402-410 operate on the data in sequence, with disjoint and covering functionality; i.e., they each focus on a specific set of data cleansing problems, and are complementary. In sequence, the modules 402-410 focus on finest data resolution (single readings) to coarsest data resolution (multiple sensors and various modalities). In turn, each module implements one or more data cleansing “operators”, all focusing on the type of functionality supported by the corresponding module.
Referring now to
In the embodiment shown, the system 500 includes four stages, including a planning stage 502, an optimization stage 504, an execution stage 506, and a management stage 508. In the planning stage 502, the system includes source selection 510, generation of data streams 512, and building one or more stage modules 514. To accomplish these tasks, the system 500 guides the user to interactively plan a data cleansing task by configuring the operators and modules, resulting in a directed acyclic graph of operators and tuned parameters that defines the flow of the raw data among the operators.
In the optimization stage 504, the graph of operators is reconfigured such that the functionality of the graph stays invariant, while the performance is optimized for scalability. This involves addressing a number of data streams and the rate of the data in each stream, relative to both inter-plan optimization 516 and intra-plan optimization 518, based on the available computing resources on computing system 102.
In the execution stage 506, the optimized plan is enacted by binding the corresponding operators 520, binding the associated stages 522, and executing the plan 524 using the pipelined modules. Finally, in the management stage 508, the system 500 allows a user to manage the executed tasks, for example to monitor the pipeline modules 526, modify the pipeline as needed 528, and re-run the pipeline 530, for example based on the modifications that are made.
Referring now to
In the user interface 700, an input definition region 702 and output definition region 704 allow a user to define input and output tags for the plan to be developed. A user can select the desired input tags by searching and filtering the tags based on the tag attributes (e.g., location). For each input added to the plan, a corresponding output tag can be automatically added; however, the list of the output tags is editable (tags can be added or deleted by the user on demand).
Once the desired lists of inputs and outputs are specified for the plan, a user can add as many different operators as needed from any of the five modules, illustrated in
Referring now to
In the example embodiment shown in
As shown in design alternatives illustrated in
Referring to
Referring now to
In
In the illustration shown, although the complexity of the algorithms/operators applied to the data items affects the processing time of the data item, throughout this experiment the same data cleansing operators were applied to all data items to isolate the scalability feature as the only standing variable. As seen, when up to 5,000 tags are used, process time remains below 250 ms. Furthermore, with fewer than 500 tags, the process time for data items remains negligible.
In
Referring now to
In
Referring to
In running the experiments illustrated in
In performing the testing arrangement illustrated in
For the three-sensor case, the T2 indices are calculated on:
After a training process, it was determined that the optimal number of principal components for this experiment was 29, with a corresponding averaged mean squared error of 0.2745.
In the experiments shown, the mean squared error for the corresponding experiments, in which individual sensors 1, 2, and 3 were missing, are 0.1465, 0.1477, and 0.4912, respectively.
Referring now to
Sensors 1, 2 Missing: 1.0998
Sensors 1, 3 Missing: 0.6334
Sensors 2, 3 Missing: 0.5941
Referring to
In the example embodiments of
Sensor 1 Missing: 0.1428
Sensor 2 Missing: 0.1351
Sensor 3 Missing: 0.2944
After a training process, a set of 28 principal components was selected, with an average mean squared error of 0.2754.
Sensors 1, 2 Missing: 1.0507
Sensors 1, 3 Missing: 0.3911
Sensors 2, 3 Missing: 0.4680
Referring now to
Referring now to
Referring specifically to
In the embodiment shown, the method 4200 for reconstructing data includes receiving a data stream (at step 4202), for example at a data processing framework such as data processing framework 114 of
Specifically, in some embodiments, with respect to a single data stream, a wavelet transform can be performed based on either a continuous or discrete wavelet transform definition. The continuous wavelet transform can be defined using the following equation:
In this case, there are two parameters that are set: “a” is the scale or dilation parameter which corresponds to the frequency information and “b” relates to the location of the wavelet function as it is shifted through the signal, and thus corresponds to the time information.
The discrete wavelet transform can be defined in a variety of ways. In example embodiments, a Haar wavelet is used, defined as follows:
The discrete wavelet transform converts discrete signals into coefficients using differences and sums instead of defining parameters.
In a particular embodiment, data received in an incoming data stream is transformed using the Haar wavelet and decomposed into wavelet coefficients and a threshold is set on the detail coefficient. The detail coefficient represents, in such embodiments, the high frequency portion of the data, and can correspond to a first order detail coefficient. Because outliers and spikes in data will be visible in the high frequency portion of the data, faults will likely be detectable in that portion of data.
In the embodiment shown, the method 4200 includes identifying errors based on first-order coefficients of the transformed data (step 4206). For example, in the outlier detection case, thresholds, such as, for example, four times the standard deviation of detail coefficients can be set so that most of the detail coefficients occur within them (e.g., outside of a standard deviation, or multiple thereof, of expected data variations). In this way, only the outliers, which should appear as very large detail coefficients, will be highlighted. In the case that there is a frozen value, that is, a data stream remains for a short period of time at exactly the same value, and the detail coefficients become zero. If there are more than 3 zero magnitude detail coefficients in a row, and unless the process is stationary, the data stream (and associated sensor) is assumed to have frozen. In the case of a linear drift (or other similar drift types), successive detail coefficients remain exactly the same (e.g., resulting in monotonically increasing or decreasing values). Accordingly, various other types of drift can be identified from the differences between the first level detail coefficients.
In the embodiment shown, after faults in data are detected, the method 4200 can include reconstructing data (step 4208). In example embodiments, faulty data can be reconstructed using a recursive least squares process. In particular embodiments, an auto-regressive recursive least squares process can be performed. In further embodiments, a forgetting factor can be applied to the recursive least squares process. Details regarding such data reconstruction techniques are described in further detail below in connection with
In the example embodiment shown, an aggregated collection of data from a single data stream is used at a particular window size, set in a window setting operation (step 4302). Additionally, a threshold is set for detail coefficients, for example based on a known standard deviation (step 4304). In example embodiments, the window size can be large enough such that detail coefficients represent noise in data (typically 14-128 data points). Model parameters are then performed on the collection of data within the selected window (step 4306). First order coefficients are then compared (step 4308) to determine if such coefficients are zero (e.g., indicating a stuck value), constant (e.g., indicating drift), very large (e.g., outside of a standard deviation or a multiple thereof, indicating a spiked value or other malfunction), or otherwise indicate a fault.
Once a fault is detected, data reflecting that fault can be corrected using a data reconstruction process. In some embodiments discussed herein, reconstruction of data can be performed using a recursive least squares method. For example,
The method 4400 includes calculating an output based on prior coefficients (step 4402). For example, an output y can be calculated using a previous set of model parameters, as follows:
y(i)=xT(i)param(i−1)
The method 4400 further includes calculating an error term for a desired signal (step 4404). This can be performed based on the following:
e(i)=y(i)−xTparam(i−1)
The method 4400 also includes calculating a gain vector (step 4406). The gain vector, in some embodiments, can be calculated from k, as follows:
The method 4400 includes updating an inverse covariance matrix (step 4408). In example embodiments, the inverse covariance matrix update is presented as:
P(i)=λ−1[P(i−1)−k(i)xT(i)P(i−1)]
The method 4400 also includes updating coefficients for a next iteration on a next fault (step 4410), and updating data in a data stream with the corrected data (step 4412). Updating coefficients can be illustrated, in example embodiments, by the following equation:
param(i)=param(i−1)+k(i)e(i)
The updated data is provided by replacing output y(1) in the above calculation with a new version of that value, based on the updated coefficients. It is noted that the method 4400 can be performed iteratively, for example on a next window or next fault that is observed.
In some embodiments, the above recursive least squares methodology can use a model order and a forgetting factor. The model order determines the number of points to be used in the RLS process, and the forgetting factor is a user-defined parameter between zero and one that determines the importance given to previous data (i.e. data prior to that specified by the model order). The smaller the forgetting factor, the smaller the contribution of previous values. In other words, a forgetting factor of zero means that just the points specified by the model order are used. In addition, the recursive least squares algorithm is typically initialized before being applied, so errors detected during the initialization of the algorithm cannot be reconstructed. It is noted that model order is relevant to the batched version of the methods discussed herein, but is not a concern relative to a realtime implementation, since only current parameters are typically buffered.
In order to permit the reconstruction of erroneous data as it is detected by the detection algorithm in an online or realtime implementation (e.g., as used in conjunction with the realtime wavelet transform of
In the recursive least squares methodology, initial parameter coefficients can be set as zero if there is no prior knowledge. Additionally, the initial value of the covariance matrix used should be set as a large number multiplied by the identity matrix. The exact value of this “large number” matters less and less as more data points are considered; as noted below, in some cases up to 1000 data points are used. Further, in example embodiments the system is started one data point ahead of the model order, p (essentially the number of coefficients). As a result, a fault within the first p data points may not be correctly reconstructed in this application.
It is noted that the recursive least squares reconstruction algorithm can work in tandem with any fault detection algorithm, because its main requirement is the prior knowledge of fault locations. Aside from the user-defined model order and forgetting factor, only the fault location is necessary for the reconstruction algorithm to occur.
Further, given that the reconstruction method employs an autoregressive algorithm, its performance can be expected to degrade if there are multiple consecutive erroneous data points, such as may occur during a loss of communication. In this case, the algorithm would continue using the last model calculated prior to the fault, and continue in a trend that eventually departs from the direction of the actual data.
Generally, the system 4500 receives a data stream, illustrated as sequential input x(i). That input data point enters a delay period 5402, and is received at a recursive least squares block 4504 as the next previous input, x(i−1). The recursive least squares block 4504 outputs a corrected value, which is compared to the value from the immediate previous iteration. The result (e.g., the error amount, is fed back to the least squares block 4504 for use in updating coefficients and maintaining corrected data.
It is noted that, in alternative embodiments, and in particular those in which a realtime implementation is provided, rather than loading data and reading that data until reaching a fault location, steps 4602-4604 can be replaced by simply receiving an indication of a fault from a fault detection system, such as the wavelet transform fault detection systems described above. Accordingly, the remaining steps discussed herein can be performed in either a batch mode (offline) or realtime implementation of the fault detection and data cleansing systems described herein.
At that location, the auto-regressive recursive least squares operation described in connection with
Referring to
Regarding the forgetting factor applied, it is noted that as the forgetting factor approaches 0, the result of applying recursive lest squares approaches that of the linear regression (since the model order is 2). The closer the forgetting factor gets to 1, the better the estimate. In some embodiments, it is optimal to use a forgetting factor between 0.95 and 1. However, where the data set is relatively stationary a high forgetting factor is reasonable. For highly non-stationary data, a low forgetting factor should be chosen so that previous data does not affect future predictions.
Regarding model order, it is observed that using a higher model order results in a more accurate estimate. In the case of non-stationary data, a lower model order might be used such that only the most recent values are useful in making a future prediction. Forgetting factor and model order parameters could potentially be optimized by cross comparing and determining the ideal combination, a process that could be automated so that the best combination of model order and forgetting factor can be determined.
Regarding an initial value of a P-matrix useable in the recursive least squares data reconstruction, a large number (e.g., over about 1000 data points) can be used to ensure that any effect of changing an initial value of the P-matrix has little effect on the prediction accuracy of the methodology.
Referring now to
Overall, when a low forgetting factor is used in non-stationary data sets and a high forgetting factor is used in relatively stationary data sets, average reconstruction error over various data sets, types of faults and initial conditions was found to be approximately 0.1% for artificially created faults.
Referring generally to
Furthermore, and as noted above, example methods exist for identifying particular fault sources by performing a fault identification process, or by applying single tag cleansing systems to each tag or input stream that is received from an input stream not otherwise easily interrelated to other data streams. The single tag data cleansing process described herein can be used in conjunction with a data reconstruction process, such as an auto-regressive recursive least squares process, to provide either batch or realtime data cleansing on a single input stream, which may be isolated or otherwise inappropriate for DPCA analysis.
Referring generally to the systems and methods of
Embodiments of the present disclosure can be implemented as a computer process (method), a computing system, or as an article of manufacture, such as a computer program product or computer readable media. The computer program product may be a computer storage media readable by a computer system and encoding a computer program of instructions for executing a computer process. Accordingly, embodiments of the present disclosure may be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). In other words, embodiments of the present disclosure may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system.
Embodiments of the present disclosure, for example, are described above with reference to block diagrams and/or operational illustrations of methods, systems, and computer program products according to embodiments of the disclosure. The functions/acts noted in the blocks may occur out of the order as shown in any flowchart. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
While certain embodiments of the disclosure have been described, other embodiments may exist. Furthermore, although embodiments of the present disclosure have been described as being associated with data stored in memory and other storage mediums, data can also be stored on or read from other types of computer-readable media. Further, the disclosed methods' stages may be modified in any manner, including by reordering stages and/or inserting or deleting stages, without departing from the overall concept of the present disclosure.
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.
The present application claims priority from U.S. Provisional Patent Application No. 62/077,861, filed on Nov. 10, 2014, the disclosure of which is incorporated by reference in its entirety. The present application further claims priority as a continuation-in-part application from U.S. application Ser. No. 13/781,623, filed on Feb. 28, 2013, which claims priority from U.S. Provisional Patent Application No. 61/712,592, filed on Oct. 11, 2012, the disclosures of both of which are also hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
62077861 | Nov 2014 | US | |
61712592 | Oct 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13781623 | Feb 2013 | US |
Child | 14937701 | US |