Some change detection and time-series forecasting...

27
CONTROL ENGINEERING LABORATORY Some change detection and time-series forecasting algorithms for an electronics manufacturing process Marko Paavola, Mika Ruusunen and Mika Pirttimaa Report A No 26, March 2005

Transcript of Some change detection and time-series forecasting...

Page 1: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

CONTROL ENGINEERING LABORATORY

Some change detection and time-series forecasting algorithms for an electronics

manufacturing process

Marko Paavola, Mika Ruusunen and Mika Pirttimaa

Report A No 26, March 2005

Page 2: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

University of Oulu Control Engineering Laboratory Report A No 26, March 2005

Some change detection and time-series forecasting algorithms for an electronics manufacturing process

Marko Paavola, Mika Ruusunen and Mika Pirttimaa

University of Oulu, Control Engineering Laboratory

In a sequential manufacturing process, a product unit proceeds through different manufacturing stages. At these stages, sensors monitor the features of the unit. In this work, the information produced by the sensors is employed to detect abrupt changes in process variables as well as to forecast their future behaviour. The developed algorithms were implemented as an on-line application to a manufacturing system. A literature survey was performed to study the most common methods utilised in change detection and time-series forecasting. The most promising methods were selected on the basis of their on-line applicability and transferability to new manufacturing lines. These methods were further evaluated with off-line data. Finally, the difference method was applied for change detection and linear regression-based method for forecasting in this case. During both on-line and off-line tests, some satisfactory results were attained. Real-time, on-line manufacturing environment set also its requirements for the applications. In the future, the possibility of combining expert knowledge with the aforementioned methods should be examined. The information thus received could be further utilised in the preventive maintenance and quality control. Keywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN 951-42-7662-0 University of Oulu ISBN 951-42-7663-9 (pdf) Department of Process and

Environmental Engineering ISSN 1238-9390 Control Engineering Laboratory P.O.Box 4300 FIN-90014 University of Oulu

Page 3: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

1 Introduction..................................................................................................................1

2 Methods .......................................................................................................................2

2.1 Literature Survey .................................................................................................2

2.2 Applied Methods .................................................................................................5

2.2.1 Change Detection.........................................................................................5

2.2.2 Forecasting...................................................................................................9

3 Results and Discussion ..............................................................................................12

3.1 Test Environment...............................................................................................12

3.2 Performance of Applied Methods......................................................................13

3.2.1 Change Detection.......................................................................................13

3.2.2 Forecasting.................................................................................................16

4 Conclusions................................................................................................................19

5 References..................................................................................................................20

Page 4: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

1

1 INTRODUCTION

Sequential manufacturing processes are usual in many areas of manufacturing industries /45/. A product unit proceeds through a sequence of manufacturing phases, in which features (for example holes, parts and materials) are added /45/. At each stage of the process, the sensors monitor the product and produce information about the process variables /45/. This information may be utilised to detect abrupt changes at different stages of the process as well as to forecast the behaviour of the variables. The detection of abrupt changes in signals is a classical problem in signal processing, which can be used for example for event detection /8/. However, the current change detection methods tend to be quite sophisticated in nature. Additionally, a priori knowledge about the possibilities of the changes and their distributions is often required. This may make the implementation of these methods difficult as an automatic, on-line change detection application. In this report, some approaches to overcome these difficulties in change detection in an electronics manufacturing process are presented. Although the need to forecast the behaviour of the process variables is obvious, examples of sequential, on-line applications are hard to find in the literature for the manufacturing processes. This is particularly true when the long-term trends are of concern. In this report, two examples of on-line, time-series approaches for forecasting are presented. The first one produces an estimate for a longer period, ranging from several days to even weeks. The other produces an accurate estimate of a process capability index for the next few hours. In the following section, some of the most common methods utilised in change detection and time-series forecasting are first briefly discussed. Then, the approaches applied to the change detection problem and time-series forecasting are introduced. Next sections report the test environment and results. The report ends with some conclusions.

Page 5: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

2

2 METHODS

2.1 Literature Survey

The generic problem of detecting abrupt changes in process parameters has been widely studied, see for example /31/ and /32/. These changes may be due to a shift in the mean value (edge detection) or to a variation in signal dynamics. Furthermore, research can concern with on-line (sequential) or off-line procedures /31/, /32/. In this report, the particular interest lies in detecting the alteration of the mean value sequentially. Figure 1 gives an example of such an abrupt change in a signal.

Figure 1. An abrupt change in a signal as a noisy unit step function /32/.

Reference /28/ presented an on-line change detection application for an artificial vision-based quality control system. Two popular edge detection methods, linear (differentiation) and a non-linear (see /24/) were tested. Although both methods performed satisfactory, the differentiation method was selected because of its flexibility and faster execution times. In /36/, the cumulative sum (CUSUM) –technique was modified and employed to detect the changes in the process mean on-line. The modifications enabled the identification of the instant and duration of the anomaly. The method performed well with both simulated and real data. An on-line Shiryayev Sequential Probability Ratio Test (SSPRT) was derived and implemented for a fault detection and isolation scheme of Advanced Vehicle Control Systems in /34/. The method used the Bayesian approach and therefore, required estimates of the a priori probabilities. The SSPRT was extremely sensitive to changes. Reference /7/ presented a change detection method with learning capabilities. The algorithm utilised thresholds, which are adapted on-line to attain a certain error performance. The algorithm was supposed to be applicable to numerous uses, including industrial quality control.

Page 6: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

3

In /42/, a neural network (NN) approach for on-line change detection was proposed. The anomaly detection utilised the changes in the autocorrelation (ACF) and partial autocorrelation functions (PACF) of certain time-series. A feedforward NN was first trained with a set of a typical ACF/PACF patterns. Then, for an on-line application, a moving window was utilised in defining the data set to be examined. If the examined data set reflected changes to the ACF and PACF, the network would detect them and suggest that a new parameter set should be estimated. In spite of successful results, the drawback of the approach was that the requirement for a stationary time-series had to be satisfied.

Time-series forecasting means making predictions on the basis of data consisting of one or more time-series. A time-series is a collection of observations collected sequentially in time /11/. Figure 2 gives an example of an actual and predicted time-series. Table 1 shows different approaches to forecasting with their objective /15/.

Figure 2. An original time-series (solid line) and a prediction made of it (dashed line) /18/.

Page 7: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

4

Table 1. Different approaches to forecasting /15/.

Approach Characteristics

Forecasting Series With No Trend Expect for random variation, time-series remain essentially constant over time.

Forecasting Series With Trend Time-series have long-term patterns of growth or decline.

Using Regression in Forecasting Statistical methodology of regression analysis is applied to time-series

forecasting.

Forecasting Seasonal Series The average levels of time-series are affected by seasonal influences arising at

regular intervals.

Forecasting Cyclical Series Other than seasonal forces causes the level of time-series to oscillate above and below

the trend.

The Box-Jenkins Approach to Forecasting The Box-Jenkins methodology is applied to the time-series forecasting.

Monitoring Forecasts The accuracy of forecasting activity is monitored in order to allow reaction and intervention when apparent faults occur.

Next section gives a brief review of books on time-series analysis and forecasting. Also some journals with articles on forecasting are presented. General introductory books on time-series analysis are, e.g. /4/, /10/, /11/, /13/, /15/, /21/, /23/, /29/, /43/. Reference /41/ is a more advanced book, which is particularly strong on spectral analysis, multivariate time-series and non-linear models. Other intermediate to advanced books are /5/, /17/, /30/. The revised edition of famous book by Box and

Page 8: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

5

Jenkins /6/ describes an approach to time-series analysis, forecasting and control which is based on a class of linear stochastic processes, called ARIMA models. /11/ The following books target more towards forecasting than general time-series analysis. /19/ is a general book on the topic, especially for applications in economics. Some other general texts on time-series forecasting can be found in /1/ and /35/. /3/, /12/, /16/, /33/ aim more to business and economics students. /11/ There is a useful collection of review articles in /2/. More specialized books include /20/ on structural models and /44/ on dynamic linear models, which is written from a Bayesian viewpoint. /40/ give some case studies using the latter approach together with a software package called BATS. The two main journals devoted to forecasting are the International Journal of Forecasting (published by North-Holland) and the Journal of Forecasting (published by Wiley). Papers on forecasting can also appear in many other statistical, management science, econometric and operational research journals, for example in Journal of Business and Economic Statistics, Management Science and in Journal of Econometrics. A brief review of recent developments in time-series forecasting is given in /9/. /11/

2.2 Applied Methods

2.2.1 Change Detection

As mentioned in Section 1, the change detection methods based on statistical or Bayesian approach are quite sophisticated in nature. Additionally, as discussed in Section 2, the Bayesian approach often requires a priori knowledge of the probabilities of the changes and their distributions. However, the applied method had to be flexible and easy-to-implement to new operating conditions. Therefore, detecting changes on the basis of the data without any a priori assumptions was an important issue. It would reduce the uncertainties involved with the a priori estimates as well as initial tuning requirement. On the basis of these criteria, three different change detection methods were chosen for further development, namely:

1. Difference Method 2. Possibilistic Approach 3. Model Based Approach

As mentioned in Section 2.1, the difference method is flexible and efficient according to /28/, where it was calculated on the basis of the sequential gray-scale values of image pixels. However, the changes to be detected were slower than those of consecutive parameter values in this case. Therefore, the difference method was modified as follows:

niiixx −−=∆ , (1)

Page 9: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

6

where ∆i is the difference, xi is the current value of the parameter and xi-n is the lagged value. An alarm is triggered if

ThVali ≥∆ , (2)

where ThVal is a threshold value.

The difference is calculated when a new measurement is received. For each variable, the lag n and the threshold value ThVal must be predefined. The absolute value in (1) enables the use of single threshold value for both positive and negative changes. The developed possibilistic approach for change detection starts from fuzzified distributions of parameter values from the longer and shorter periods. A change is detected if these two distributions differ significantly from each other. The difference is monitored utilising a certain index, which is defined from the intersection of the distributions. The index can receive values from interval [0,1], which present the degree of affinity. The similarity increases as the index value increases. In the extremes of the interval, index value “zero” suggests that the distributions are completely different and “one” that the distributions are perfectly similar. The distributions and the formation of the index value are presented in Figure 3. Motivation for the use of fuzzy approach can be found for example in /14/. As seen in Figure 3, triangular membership functions (MF) were utilised in fuzzification of distributions. The MF type was selected mainly because it produced more accurate index values. Also the interpretation is straightforward. For the vertices of the MFs, three mean values were calculated, that is:

1. Mean of the distribution (MCenter) 2. Mean of the values lower than Mcenter (MLower) 3. Mean of the values higher than Mcenter (MHigher)

Now, the vertices are defined at (0, MLower), (1, MCenter) and (0, MHigher) for both distributions. The updating happens in “a moving window” manner: When a new measurement comes, the oldest one is removed and the calculations are repeated. An alarm is triggered if the difference between the distributions is significant enough, i.e.:

ThValI ≤ , (3) where I is the index describing the similarity and

Thval is the threshold value.

Page 10: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

7

Note that the absolute distributions are not of concern in this approach. Instead, the proportional change of the short-term distribution compared to the long-term distribution is important for the change detection purpose.

Parameter Value

Inde

x

Parameter Value

Inde

x

Figure 3. The fuzzified distributions of the parameter values from long (solid line) and short (dashed line) periods. The index describing the similarity is defined from the intersection of the distributions (horizontal line).

As mentioned above, the model-based approach included both autoregressive and linear regression model structures. In general, deviations in the model accuracy, parameters, outputs or state variables can detect whether the process conditions have changed /22/. In this case, the change detection utilised the cumulative sum of the modelling error. It is defined as:

( )∑=

−−−=n

i

ijyijyjE0

)(ˆ)()( , (4)

where E(j) is the cumulative sum of the modelling error, y(j) is the actual process output and

)(ˆ jy is the modelled process output. The index i in (4) specifies how many previous modelling errors are included in the sum. An alarm is triggered if ThValjE ≥)( (5) The autocorrelation plot determines if a time-series model describes the data appropriately /37/. Typical examples of different cases of autocorrelation plots (data from

Page 11: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

8

random process, weak and strong autocorrelation, sinusoidal data) can be found in /37/. Compared to the autocorrelation plots of different parameters (Figure 4), it was concluded that the parameters 1-4 and have strong autocorrelation and parameters 5-6 moderate autocorrelations. Therefore, the autoregressive (AR) model structure could be used.

Figure 4. Autocorrelation coefficient plots

As the autocorrelation function indicated that the AR model was appropriate, the partial autocorrelation plot could be used to find out the order of the model (number of lags) /38/. The partial autocorrelation functions of the parameters are presented in Figure 5. It was concluded that, for parameters 1-4, the modelling could start with two lags. For parameters 5 and 6 a higher order model could be more suitable. To test the AR model-based change detection, an ARX-model was constructed for parameter 1. Several lags were tried out and, finally, lags 5 and 10 were selected as the inputs of the model. The model is of the following form:

)()()()(ˆ tetuqty += B , (6) where )(ˆ jy is the calculated output,

B(q) contains the coefficients for lagged variables and e(t) is an error term.

For the developed model, the B1(q) was identified as 0.01739 and B2(q) as 0.9813. The error term e(t) was defined as zero.

Page 12: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

9

Figure 5. Partial autocorrelation function plots of the parameters.

2.2.2 Forecasting

As mentioned in Section 2.2.1, one objective of the forecasts was to predict the parameter values in the long term. For this purpose, the linear regression model was used. Second, the process capability index (Cpk) was predicted utilising autoregressive linguistic equation-based model /25/.

Page 13: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

10

The linear regression model was employed because linear trends could be observed in the data, especially with the first four parameters. The linear model was as follows:

baty n +=ˆ , (7)

where )(ˆ jy is predicted output, a is the slope, tn is a future time instant and b is a constant.

The parameter a in (7) is calculated on the basis of the data utilising the Method of Semiaverages as presented in /15, 175-176/:

12

12

tt

xxa

−−

= , (8)

where 2x is the average in early half of the series,

1x is the average in the later half of the series

2t is the average time value in the early half of the series

1t is the average time value in the later half of the series. The constant b is calculated as a mean of the previous n data points:

n

x

b

n

iij∑

=−

= 1 , (9)

where x is the parameter value, n is the number of data points and j is an index referring to the current value of parameter.

As long as parameters remain unchanged, the future time instant is updated sequentially, i.e.:

11 += −nn tt , (10)

where tn is the updated future time instant and

tn-1 is the previous future time instant. For more information about the linear regression models refer to /15/. The parameters were recalculated if the cumulative sum of modelling error (4) exceeded the threshold value as presented in (5). Therefore, as mentioned above, the method was assumed to apply to the change detection purpose. On the other hand, the parameters were also

Page 14: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

11

recalculated if some other change detection method mentioned in Section 2.2.1 signalled an anomaly. As mentioned above, also the process capability index (Cpk) was predicted. The Cpk is a standard term used throughout the industry to represent the quality production ability of the process /39/. The AR model structure was utilised because it was supposed that if the autocorrelation exists in the parameter values it would also exist in the Cpk values. Additionally, linquistic equations were applied to the model structure because of its ability to take non-linearity into account. Applications of linguistic equations to process control and monitoring tasks can be found in /25/, /26/, /27/. Detailed information about the Cpk index is in /39/. The Cpk was calculated using distributions of 300 measurements. The lags of the model were defined utilising the knowledge about lags of the parameters (see Section 2.2.1) and trial-and-error –method. The identified model was:

0)5()3()( 321 =+−+−+ biastCatCatCa pkpkpk , (11)

where a1, a2 and a3 are model coefficients, Cpk is the capability index and bias is an error term.

The capability index can be predicted three steps forward by solving the equation as follows:

biastCa

atC

a

atC pkpkpk +−+=+ )2()()3(

1

3

1

2

Page 15: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

12

3 RESULTS AND DISCUSSION

3.1 Test Environment

At first, the tests were run off-line utilising a personal computer and Matlab R12.1 development environment. From the beginning, however, the structure of the program was designed according to the on-line requirements. Therefore, the system includes an automatic procedure for removal and replacement of invalid measurements. Before the change detection and forecasting, smoothening of the data had to be carried out employing moving average-technique. Figure 6 shows the flowchart of the programmed software.

Results

Change Detected?

Yes

No

Calculation of Forecasts

Smoothening

Change Detection

Removal of Invalid Measurements

Updating of Parameters

Results

Change Detected?

Yes

No

Calculation of Forecasts

Smoothening

Change Detection

Removal of Invalid Measurements

Updating of Parameters

Figure 6. The flowchart of the programmed software. The presented phases are executed when a new measurement is received.

As mentioned above the easy configurability of the system to other production lines was important. Therefore the software modules were designed to be as flexible and independent as possible. In the on-line application, the interface to measurement software was designed utilising Dynamic Data Exchange (DDE). It employed the hot link method, thus enabling the automatic execution of the programmed software each time a new measurement was received.

Page 16: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

13

3.2 Performance of Applied Methods

3.2.1 Change Detection

This Section shows test results for three different change detection methods. The test material included a data set of 113579 measurements. The first 60000 data points were for training and the rest for validation. Visual selection from the material revealed 14 significant changes. The data and the changes are in Figure 7.

1.

1.10.

9.

8.

7.

6.

5.4.

3.

2.

11.

14.

13.12.

1.

1.10.

9.

8.

7.

6.

5.4.

3.

2.

11.

14.

13.12.

Figure 7. Data for a process parameter. The changes to be detected (14 altogether) are denoted by numbers.

The difference method performed quite well, the number of detected anomalies was 13 and there was only one missed change and one false alarm. The lag n and the threshold value Thval (see Section 2.2.1) were defined as 100 and 0.055 respectively, utilising the trial-and-error method. The missed change was number 1 in Figure 7. Lower threshold would have revealed this anomaly, but this solution suffers from higher number of false alarms. The false alarm occurred near changes five and six, maybe because of increased variance in the data. The results attained with the difference method are presented graphically in Figure 8.

Page 17: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

14

Figure 8. The detected changes (marked with squares) with the difference method.

The results of the possibilistic approach are in Figure 9. The short-term distribution consisted of 300 measurements. The long-term distribution consisted of all the data points collected after last detected change.

Figure 9. The performance of the possibilistic approach. The threshold value is marked with a line at 0.01.

In this case, only four changes of 14 were correctly detected. The number of false alarms was three, higher than with the difference method. It was assumed that the fast changes did not affect the short-term distribution sufficiently, which may explain the weak

Page 18: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

15

performance of the method. The fact that the false alarms are caused by long term upward or downward trend in the measured parameter value seemed to support that viewpoint. Although several sizes of distributions were tested the performance of the method could not be notably improved. As mentioned in Section 2.2.1, the model-based approach was implemented utilising autoregressive (AR) model structure, and the lags were defined at 5 and 10. However, as the model was identified with data from completely different period than the test data, a constant deviation between the model output and measured values was observed. Therefore, a bias term was included to the AR model structure. The model-based change detection method produced slightly better results than the possibilistic approach. The number of correct detections was seven and only one false alarm was produced. The results are presented in Figure 10.

Figure 10. The detected changes with the autoregressive model and Cusum. The threshold value is marked with a line at 0.13.

It could be noticed that the model-based approach, opposite to the fuzzy distributions, performed satisfactory in the case of the fastest changes. This may be due to the model structure: as mentioned above, the prediction horizon was only five steps forward. Therefore, the modelled values followed the actual ones with the slower changes. In the future, the performance of the method may be improved by increasing the range of forecast. Also the adaptation of the model should be of concern because, as mentioned above, the parameters of the model may change in process with time. The results attained with different change detection methods are collected in Table 2. It is clear that the difference method performed significantly better than the other tested approaches. Additionally, utilising parameters n and ThVal, the method can be easily

Page 19: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

16

tuned to detect both the fast, stepwise changes as well as slightly slower ones. Therefore, it is recommended for the future use.

Table 2. The performance of the tested change detection methods.

3.2.2 Forecasting

As mentioned in Section 2.2.2, the long-term trends were predicted utilising linear regression model. A reliable forecast requires a sufficient amount of data points. After data collection, the forecast was made until a change was detected, either by the methods discussed in Section 2.2.1 or by the forecasted error (see Section 2.2.2. An example of the linear regression based forecasting is presented in Figure 11.

Forecasting Begins

Change Detected

Deviation between Forecast and True Value

Collection of Data

Forecasting Begins

Change Detected

Deviation between Forecast and True Value

Collection of Data

Figure 11. The values of forecasted and measured parameter. Forecast uses the linear regression method.

A deviation between forecasted and measured parameters can be observed in Figure 11. These deviations are due to the fact that it was not possible to tune the change detection of the linear regression model more sensitive, because it would have been resulted to constantly changing, unsteady forecasts. It should be noticed, however, that the deviations in Figure 11 are quite small. In general, the main problem with the off-line test set-up is the relatively high number of data points required (approximately 4000) to produce a reliable prediction.

Method Correct Detections Missed Detections False Alarms Difference method 13 1 1

Model-based approach 7 7 1 Possibilistic approach 4 10 3

Page 20: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

17

For on-line tests, the number of data points was only 200 and this enabled faster forecasting capability. The results are in Figure 12.

Figure 12. Predicted (straight line) and actual parameter values, on-line tests.

The on-line tests were carried inside a short period and, therefore, there were no major changes in the parameter values. The stepwise change in the prediction near 5000 demonstrates the use of cumulative sum (CUSUM) in prediction validation (see Section 2.2.2). As seen from Figure 12, the predicted values start to deviate from the actual ones near 3500 and therefore, the CUSUM increases until it finally exceeds the threshold and the trend is recalculated. In general, the requirements stated for on-line application in Section 3.1 were met. The implementation of the software to production line proceeded rapidly and it was not necessary to make any reconfigurations to the structure of the program. As mentioned in Section 2.2.2, the process capability index (Cpk) was predicted utilising linguistic autoregressive (AR) model. The results with the test data from the period of four weeks are presented in Figure 13. The model could be used to forecast the Cpk about 45-120 minutes forward. It was assumed that the model could be utilised in forecasting the near future of the process state because it could manage the relatively big changes in

Page 21: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

18

the Cpk quite well. For example, between data points 100 and 200 there is a long-term (about three days) decreasing trend in the capability index. The trend ends at Cpk of approximately 1.5 which is not satisfactory according to /39/. Control action may have stopped the weakening of Cpk.

Figure 13. The actual (blue line) and the predicted (red line) process capability indices.

Page 22: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

19

4 CONCLUSIONS

In this report, some algorithms for change detection and time-series forecasting were presented and applied to an electronics manufacturing process. The structure of the employed methods was relatively simple. This in turn, compared to more sophisticated methods, may allow faster implementation and easier reconfigurability to other production lines according to results. Also the requirements of real-time, on-line manufacturing environment were considered in the applications. Three different change detection methods were tested. Of the approaches, the difference method performed best: 13 out of 14 anomalies were detected and only one false alarm was produced. Additionally, the method was not restricted to only one type of change but could detect both slower and more rapid changes. Although some parameters have to be experimentally predefined, the difference method seems to be the most promising approach to be used for change detection in this case. The linear regression model was utilised to predict long-term trends in parameter values. In both on-line and off-line tests, some satisfactory results were attained. The tuning of the methods, however, was experienced to be time-consuming and the method performed weakly in the presence of large variations in the data. Therefore, before further development, it should be carefully considered if the approach produces additional value to the process monitoring task. A linguistic, autoregressive model was developed to produce short-term forecasts of the process capability index (Cpk). The model produced quite accurate predictions and hence, it was concluded that it could be used to predict the near future of the process. In the future research, the possibility of combining expert knowledge with the aforementioned methods should be examined. The information thus received could be further utilised in the preventive maintenance and quality control. For this, however, systematically collected data and expert knowledge from longer time is required.

Page 23: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

20

5 REFERENCES

1. Abraham, B., Ledolter, J.: Statistical Methods for Forecasting, Wiley, New York, 1983.

2. Armstrong, J.S.: Principles of Forecasting: A Handbook for Researchers and

Practitioners, Kluwer, Norwell, MA, 2001. 3. Bowermann, B.L, O’Connell, R.T.: Time-series Forecasting 3rd edn., Duxbury Press,

Boston, 1987. 4. Brockwell, P.J., Davis, R.A.: Introduction to Time-series and Forecasting, Springer-

Verlag, New York, 1996. 5. Brockwell, P.J., Davis, R.A.: Time-series: Theory and Methods, 2nd edn. Springer-

Verlag, New York, 1991. 6. Box, G.E.P., Jenkins, G.M.: Time-Series Analysis, Forecasting, and Control, 3rd edn.,

Prentice Hall, Englewood Cliffs, NJ, 1994. 7. Burrell, A., Papantoni, T.: Sequential Algorithms for Detecting Changes in Acting

Stochastic Processes and On-Line Learning of their Operational Parameters, Proceedings of the 15th International Conference on Pattern Recognition, 2000, 2(2000), pp. 656-659.

8. Castanie, F., Denjean, F.: Mean Value Jump Detection Using Wavelet

Decomposition, Proceedings of the IEEE-SP International Symposium on Time-Frequency and Time-Scale Analysis, 1992, pp. 181-184.

9. Chatfield, C.: Forecasting in the 1990s, The Statistician, 46(1997) 461-473. 10. Chatfield, C.: The Analysis of Time-series, 5th edn., Chapman & Hall, London, 1996. 11. Chatfield, C.: Time-Series Forecasting, Chapman & Hall/CRC, 2000. 12. Diebold, F.X.: Elements of Forecasting, South-Western College Publishing,

Cincinnati, 1998. 13. Diggle, P.J.: Time-Series: A Biostatistical Introduction, Oxford University Press,

Oxford, 1990. 14. Driankov, D., Hellendoorn, H., Reinfrank, M.: An Introduction to Fuzzy Control, 2nd

edn., Springer-Verlag, New York, 1996. 15. Farnum, N.R., LaVerne, W.S: Quantitative Forecasting Methods, PWS-Kent, USA,

1989.

Page 24: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

21

16. Franses, P.H.: time-series Models fore Business and Economics Forecasting,

Cambridge University Press, Cambridge, 1998. 17. Fuller, W.A.: Introduction to Statistical Time-series, 2nd edn. Wiley, New York, 1996. 18. Gérault, R., Peton, N., Pearson, D.W.: Several methods usable in production systems

prediction, Mathematical and Computer modelling, 27(1998)5, 99-113. 19. Granger, C.W.J, Newbold, P.: Forecasting Economic Time-series, 2nd edn., Academic

Press, New York, 1986. 20. Harvey, A.C.: Forecasting, Structural Time-series Models and the Kalman Filter,

Cambridge University Press, Cambridge, 1989. 21. Harvey, A.C.: Time-series Models, 2nd edn., Harvester Wheatsheaf, New York, 1993. 22. Isermann, R and Balle, P.: Trends in the Application of Model Based Fault Detection

and Diagnosis of Technical Processes, Control Engineering Practise, 6(1997)5, 709-719.

23. Janacek, G., Swift, L.: Time-Series: Forecasting, Simulation, Applications. Ellis

Horwood, Chichester, U.K., 1993. 24. Jensen, J.: Digital Image Processing, Prentice-Hall, New Jersey, 1986. 25. Juuso, E.K.: Fault Diagnosis Bsed on Linquistic Equation Framework. In T.

Ruokonen (Editor): Preprints of IFAC symposium on Fault Detection, Supervision and Safety for Technical Processes SAFEPROCESS’94, Espoo, June 13-16, 1994, 374-379.

26. Juuso, E.K.: Fuzzy Control in Process Industry: The Linquistic Equation Approach.

In Verbruggen, H.B., Zimmermann, H.-J. and Babuska, R. (Editors): Fuzzy Algorithms for Control. Dordrecht: Kluwer Academic Publishers, cop. 1999, pp.243-300.

27. Juuso E.K.:Intelligent Methods in Diagnostical Process Analysis. In Halttunen, J.

(Editor): Proceedings of XIV IMEKO World Congress, New Measurements – Challenges and Visions, Tampere, June 1-6, 1997, volume VII, 1-6.

28. Karathanassi, V., Iossifidis, Chr., Rokos, D.: Application of Machine Vision

Techniques in The Quality Control of Pharmaseutical Solutions, Computers in Industry, 32(1996), 169-179.

29. Kendall, M.G., Ord, J.K.: Time-series, 3rd edn., Arnold, Sevenoaks, U.K., 1990.

Page 25: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

22

30. Kendall, M.G., Stuart, A., Ord, J.K.: The Advanced Theory if Statistics, Vol. 3, 4th edn., Griffin, London, 1983.

31. Lavielle, M., Lebarbier, E.: An Application of MCMC Methods for the Multiple

Change-Points Problem, Signal Processing, 81(2001), 39-53. 32. MacDougall, S., Nandi, A.K., Chapman, R.: Multiresolution and Hybrid Bayesian

Algorithms for Automatic Detection of Change Points, IEEE Proceedings - Vision, Image and Signal Processing, 145(1998)4, 280-286.

33. Makridakis, S., Wheelwright, S.C., Hyndman, R.J.: Forecasting: Methods and

Applications, 3rd edn., Wiley, New York, 1998. 34. Malladi, D. P., Speyer, J. L.: A generalized Shiryayev sequential probability ratio test

for change detection and isolation, IEEE Trans. Automat. Contr., 44(1999), 1522–1534.

35. Montgomery, D.C., Johnson, L.A., Gardiner, J.S.: Forecasting and Time-series

Analysis, 2nd edn., McGraw-Hill, 1990. 36. Morgenstern, V.M., Upadhyaya, B.R., Benedetti, M.: Signal Anomaly Detection

Using Modified Cusum Method, Proceedings of the 27th IEEE Conference on Decision and Control, 1988, 3(1988), 2340-2341.

37. NIST/SEMATECH e-Handbook of Statistical Methods,

http://www.itl.nist.gov/div898/handbook/eda/section3//autocopl.htm, 4.12.2002. 38. NIST/SEMATECH e-Handbook of Statistical Methods,

http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc4463.htm, 4.12.2002. 39. Oakland, J.S, Followell, R.F.: Statistical Process Control a practical guide, 2nd edn.,

Heinemann Newnes, Oxford, 1990. 40. Pole, A., West, M., Harrison, J.: Applied Bayesian Forecasting and Time-series

Analysis, Chapman and Hall, New York, 1994. 41. Priestley, M.B.: Spectral Analysis and Time-series, Vols. 1 and 2, Academic Press,

London, 1981. 42. Ramirez-Beltran, N. D., Montes, J. A.: Neural networks for on-line parameter change

detections in time series models, Computers & Industrial Engineering, 33(1997)1-2, 337-340.

43. Wei, W.W.S.: Time-series Analysis: Univariate and Multivariate Methods, Addison-

Wesley, Redwood City, CA, 1990.

Page 26: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

23

44. West, M., Harrison, J.: Bayesian Forecasting and Dynamic Models, 2nd edn., Springer-Verlag, New York, 1997.

45. Ye, N.: Confidence Assesment of Quality Prediction from Process Measurement in

Sequential Manufacturing Processes, IEEE Transactions on Electronics Packaging Manufacturing, 23(2000)3, 177-184.

Page 27: Some change detection and time-series forecasting …jultika.oulu.fi/files/isbn9514276639.pdfKeywords: Electronics manufacturing, fuzzy, anomaly detection, modelling, prediction. ISBN

ISBN 951-42-7662-0 ISBN 951-42-7663-9 (pdf) ISSN 1238-9390 University of Oulu Control Engineering Laboratory – Series A Editor: Leena Yliniemi 11. Isokangas A & Juuso E, Fuzzy modelling with linguistic equation methods. February 2000.33 p. ISBN 951-42-5546-1. 12. Juuso E, Jokinen T, Ylikunnari J & Leiviskä K, Quality forecasting tool for electronics manufacturing. March 2000. ISBN 951-42-5599-2. 13. Gebus S, Process Control Tool for a Production Line at Nokia. December 2000. 27 p. ISBN 951-42-5870-3. 14. Juuso E & Kangas P, Compacting Large Fuzzy Set Systems into a Set of Linguistic Equations. December 2000. 23 p. ISBN 951-42-5871-1. 15. Juuso E & Alajärvi K, Time Series Forecasting with Intelligent Methods. December 2000. 25 p. Not available. 16. Koskinen J, Kortelainen J & Sutinen R, Measurement of TMP properties based on NIR spectral analysis. February 2001. ISBN 951-42-5892-4. 17. Pirrello L, Yliniemi L & Leiviskä K, Development of a Fuzzy Logic Controller for a Rotary Dryer with Self-Tuning of Scaling Factor. 32 p. June 2001. ISBN 951-42- 6424-X. 18. Fratantonio D, Yliniemi L & Leiviskä K, Fuzzy Modeling for a Rotary Dryer. 26 p. June 2001. ISBN 951-42-6433-9. 19. Ruusunen M & Paavola M, Quality Monitoring and Fault Detection in an Automated Manufacturing System - a Soft Computing Approach. 33 p. May 2002. ISBN 951-42-6726-5. 20. Gebus S, Lorillard S & Juuso E, Defect Localization on a PCB with Functional Testing. 44 p. May 2002. ISBN 951-42-6731-1. 21. Saarela U, Leiviskä K & Juuso E, Modelling of a Fed-Batch Fermentation Process. 23 p. June 2003. ISBN 951-42-7083-5. 22. Warnier E, Yliniemi L & Joensuu P, Web based monitoring and control of industrial processes. 15 p. September 2003. ISBN 951-42-7173-4. 23. Van Ast J M & Ruusunen M, A Guide to Independent Component Analysis – Theory and Practice. 53 p. March 2004. ISBN 951-42-7315-X. 24. Gebus S, Martin O, Soulas A. & Juuso E, Production Optimization on PCB Assembly Lines using Discrete-Event Simulation. 37 p. May 2004. ISBN 951-42- 7372-9. 25. Näsi J & Sorsa A, On-line measurement validation through confidence level based optimal estimation of a process variable. December 2004. ISBN 951-42-7607-8. 26. Paavola M, Ruusunen M & Pirttimaa M, Some change detection and time-series

forecasting algorithms for an electronics manufacturing process. 23 p. March 2005. ISBN 951-42-7662-0. ISBN 951-42-7663-9 (pdf).