A simple clustering method is proposed for extracting representative subsets from lengthy data sets. The main purpose of the extracted subset of data is to use it to build prediction models (of the form of approximating functional relationships) instead of using the entire large data set. Such smaller subsets of data are often required in exploratory analysis stages of studies that involve resource consuming investigations. A few recent studies have used a subtractive clustering method (SCM) for such data extraction, in the absence of clustering methods for function approximation. SCM, however, requires several parameters to be specified. This study proposes a clustering method, which requires only a single parameter to be specified, yet it is shown to be as effective as the SCM. A method to find suitable values for the parameter is also proposed. Due to having only a single parameter, using the proposed clustering method is shown to be orders of magnitudes more efficient than using SCM. The effectiveness of the proposed method is demonstrated on phase space prediction of three univariate time series and prediction of two multivariate data sets. Some drawbacks of SCM when applied for data extraction are identified, and the proposed method is shown to be a solution for them.

## INTRODUCTION

Large data sets can often cause difficulties in practice as well as in analysis, where it may require lots of computational resources such as memory and time. Although the computational power keeps on increasing, the complexity of the problems analyzed also increases. For example, applications that involve evolutionary methods may contain large numbers of resource intensive evaluations that require considerable computational time (e.g., Karunasingha *et al.* 2011). In such cases the usual practice is to use a randomly chosen smaller subset of data, at least, in the exploratory stage. However, such a random subset is not necessarily representative of the total data or the system under investigation. Therefore, a methodology that can extract a smaller set of most representative data from a large data record is highly desirable.

Clustering, a means of finding patterns in the data (Ghahramani 2004), may be used to extract a smaller set of data from large data records. The choice of the ‘best’ clustering method for a given application is problem dependent (e.g., Xu & Wunsch 2005; Luxburg *et al.* 2012) and the simplest method that serves the purpose is always preferred. Consequently, the parameters of a clustering technique are also not generally based on theoretical knowledge and the appropriate values for them are, most times, determined by trial and error so that the final goal is satisfactorily achieved.

Most of the applications of clustering have been on classification problems. Applications of clustering techniques in function approximation problems are few (Chiu 1994; Yager & Filev 1994a, 1994b; Kreinovich & Yam 2000), and all those applications are centered on data extraction for local function approximation purposes, specifically for fuzzy model generation. Recently, the need for different clustering methods for function approximation has been identified and an algorithm has been proposed by Gonzalez *et al.* (2002). However, some weaknesses of this method were identified and several improved versions have been proposed (Guillen *et al.* 2007; Pomares *et al.* 2012). Nevertheless, all those algorithms have been tested only on the problem of selection of initial centers for radial basis function neural networks (RBFN), which is a crucial issue in RBFN (Lin & Chen 2005). A few studies (Karunasingha & Liong 2003; Doan *et al.* 2005) have adopted a subtractive clustering method (SCM) (Chiu 1994) for data extraction from long hydrological data records, including chaotic hydrological time series. They demonstrated the effectiveness of the extracted data using neural networks, fuzzy models, and local phase space prediction methods. To the best of the authors' knowledge, the above applications are the only studies that have used a clustering technique to extract a subset of data for function approximation purposes, and demonstrated its effectiveness on several prediction methods. SCM used in the above studies, however, has four free parameters, and requires a great deal of computational effort to determine the optimal values for these four parameters.

This study proposes a new, simpler clustering technique, for function approximation, with only one single parameter of which the optimal value can be easily found with much less computational effort compared to finding four optimal parameters in SCM. Its effectiveness in extracting system representative smaller subsets from total data sets is also demonstrated. It should be noted that in this paper a subset of data, which provides similar prediction performance as the total data set, is regarded as a ‘representative data set’ or a ‘system representative subset’ of the total data records. The method is developed with phase space prediction of chaotic time series in mind; however, applications on a synthetic benchmark data set and Mekong river flow prediction show that the method is effective on other multivariate data sets as well. Three univariate time series, namely, a noisy Lorenz series, Mississippi River flow series, and Wabash River flow series are also used for demonstration. After a brief explanation on chaotic time series analysis in the next section, the new clustering technique is introduced. This is followed by its application, results, and the conclusions of the study.

## CHAOTIC TIME SERIES ANALYSIS

*et al.*1980; Takens 1981), the dynamics of the time series can be embedded in an

*m*dimensional space called phase space. The

*m*dimensional vectors

*X**, given by where and*

_{i}*τ*is the time delay are called phase space vectors. The paths traced by this vector series

*X**are called the trajectories. There are standard methods and inverse methods to determine the phase space parameters embedding dimension (*

_{i}*m*) and time delay (

*τ*).

*X**and future state*

_{t}

*X**in the form where*

_{t+T}*T*is referred to as lead time or prediction horizon. At time

*t*, for an observation value

*x*, the current state of the system is

_{t}**, where and similarly the future state at time**

*X*_{t}*t + T*is

*X**. In the functional relationship (Equation (2)), we are only interested in forecasting the first component, of , the search is limited to a map (see Equation (3)), which interpolates the pairs (, ) instead of a function . For a chaotic system, the predictor*

_{t+T}*F*that approximates

_{T}*f*is necessarily nonlinear. Multilayer perceptron (MLP) models (Haykin 1999) with

_{T}*m-*dimensional phase space vectors as the inputs and the scalars as the outputs are used in this study to approximate a map , valid over the entire phase space, i.e., a global fit. Note that Equation (3) is a special case of the more general function approximation problem of approximating function

*f*in the map , using the available data where is the

*m*-dimensional input space (independent variables) and , where

*Y*is the output space (dependent variable)

## NEW CLUSTERING METHOD

In deriving relationships using lengthy data records redundancy of data can occur due to at least two reasons: (1) it is possible that not all the points are necessary to represent a certain relationship (e.g., two points suffice to represent a linear relationship of a single input/single output system); (2) also, there can be points that are identical and/or that are closer than noise level, which do not contain any distinct information. The algorithm of the present clustering method is based on the following observation. For example, consider a few trajectories of a Lorenz dynamical system (Lorenz 1963), the most widely used benchmark chaotic system, lying close to each other. If the time series is noisy, the points may take positions deviated from their true states. What this means is for a noisy time series one cannot distinguish the trajectories closer than the noise level. Since the points closer than the noise level do not provide any distinct information, one may choose one point to represent a neighborhood roughly of the order of the noise level. An overview of the proposed clustering algorithm can be given as follows.

The algorithm uses both a density measure and a distance measure to select the cluster centers. The density measure, similar to the one in SCM, is such that the points that are closely surrounded by other points have a higher density and are more likely to be chosen as cluster centers. The distance measure defines the neighborhood size or the minimum distance between two cluster centers. The present algorithm ensures that every point in the original data set is either a cluster center or close to a center by a distance <*d*, where *d* is the distance measure of the method.

Practically all clustering techniques, based on classification point of view, treat isolated points (points that are far from other points) as outliers. However, in analysis of real world systems (e.g., river flow), such points often represent extreme and perhaps infrequent events (e.g., flood flows), which are important. The points lying in the less dense areas of data space are not considered as outliers in the proposed clustering method. This is how the present method is radically different from other clustering methods. The selection of points lying far from other points is achieved in the algorithm in a way that an additional parameter determining a stopping criterion is eliminated.

### Algorithm

The simple clustering algorithm can be given as follows. Consider *N* points, *X** _{i}*, , of dimension

*m*. Assume that these points have been normalized so that they lie in a unit hypercube. This makes it possible for the only parameter of this method,

*d,*defining the neighborhood, to be specified without using the domain specific knowledge.

*X**. A Gaussian ‘influence function’, which indicates the influence of each data point on a certain data point, is used as the density measure, where*

_{i}*P*= density measure of point

_{i}*i*and

*d*= radius of neighborhood. The density

*P*is higher for points closely surrounded by other points and lower for the points with less neighboring points. Theoretically,

*d*may vary from . Practically,

*d*may take small positive values generally less than 1.

Step 2: Select the point with the highest density as the first cluster center.

Step 3: Set the density measure of the selected cluster center and the density of points closer than *d* from the selected cluster center to zero.

Step 4: Select the point with the next highest density measure. If its density measure is greater than zero select the point as a cluster center and go to step 3. Or stop.

Note that no additional parameter is required as a stopping criterion.

In Equation (4), the radius within which the points contribute significantly to the potential *P _{i}* for the calculation of

*P*is approximately 2

_{i}*d*while the neighborhood size (or the minimum distance between two cluster centers) is

*d*.

## APPLICATION OF THE PROPOSED CLUSTERING METHOD

### Data used

The effectiveness of the proposed clustering algorithm to extract a compact set of system representative patterns from a fairly large set of patterns is demonstrated on a noisy chaotic Lorenz time series, two univariate daily mean river flow time series, one synthetic multivariate data set, and one multivariate river flow time series. The river flow series are: (1) the Mississippi river at Vicksburg (1975–1993) with mean flow around 18,500 m^{3}/s; (2) Wabash River at Mt Carmel (1960–1978) with mean flow around 750 m^{3}/s; and (3) Mekong River flow data, respectively. The first two univariate river flow series are available in the US Geological Survey website (http://water.usgs.gov/).

When standard parameter values , and are used, the orbits of the Lorenz system reside on a geometric object of dimension 2.06 (approximately) and exhibit non-periodic, chaotic motion (Abarbanel 1996). The *x(t)* component is solved from the above equations by fourth order Runge–Kutta method with a time step of . A zero mean Gaussian noise with standard deviation 5% of the standard deviation of the noise-free *x(t)* series was added to the *x(t)* series in order to obtain the noisy Lorenz series. The standard deviation of noise-free Lorenz series is 12.68 and the standard deviation of noise is 0.63. The Mississippi River is one of the world's largest river systems of about 3,705 km in length and a river basin of around 3.2 million km^{2}. The average amount of water discharged to the Gulf of Mexico is about 18,500 m^{3}/s and a standard deviation of 9,728 m^{3}/s. The minimum and maximum flow values are about 3,900 and 52,100 m^{3}/s, respectively. The daily flow time series of the Mississippi River measured at Vicksburg, station number 07289000 (hydrologic region 8 of USGS) for the period from 1 January 1975 to 31 December 1993 is used in this study. The Wabash River is 765 km long, flowing southwest from northwest Ohio. The basin area is approximately 85,750 km^{2}. The Wabash River has a mean flow rate of about 750 m^{3}/s and a standard deviation of around 792 m^{3}/s. The minimum and maximum flow values are about 48 and 7023 m^{3}/s, respectively. The daily river flow measured at Mt Carmel Station, station number 03377500 (hydrologic region 5 of USGS), for the period from 1 January 1960 to 31 December 1978 is used in this study.

where are resistance, angular frequency, inductance, and capacitance, respectively. This function has been widely used for benchmarking regression problems in different applications (e.g., Vapnik 1999; Roth 2004; Martinez-Estudillo *et al.* 2006). In this study this function is used to generate a multivariate data set. It should be noted that this is not a time series data set. With the domain (, , , ) that has been used in the said studies, a data set of 7,000 records was randomly generated using uniform distributions. Then, to simulate real life situations, for training data, both the inputs (i.e., ) and the output were contaminated with zero mean Gaussian noises with standard deviations of 5% of the standard deviation of each variable. These noise added data were used in the study.

^{2}. The middle reach of the river has 10 gauging stations (Karunasingha

*et al.*2011) named Chiang Saen (most upstream), Luang Prabang, Chiang Khan, Pa Mong Dam Site, Vientiane, Nong Khai, Nakhon Phanom, Mukdahan, Khong Chiam, and Pakse (most downstream), respectively. In this study, daily river flows measured at the above referenced ten stations of the Mekong River from April 1972 to December 1989 and January 1989 to December 1994 are used (IDI, 1960–1994: Water Series No. 10). The problem of predicting 1 day ahead river flow at Pakse as a function of the flow values of nine upstream stations and Pakse itself was formulated as given in Equation (7) where is the flow measured at

*i*th upstream station on

*t*th day.

### Methodology

Six thousand data points from noisy Lorenz series and a fairly long set of river flow data, approximately 6,900 data points from the Mississippi and Wabash River flow time series, and approximately 6,470 data points from the Mekong River flow series are used in the analysis. Each of these time series is divided into three separate parts: a training set, test set, and a validation set. Based on previous experience (e.g., Yu *et al.* 2004; Liong *et al.* 2005), in each river flow series, the first 5,480 data points (approximately) are used for the training set, the next 730 data points as the test set, and the last 730 data points as the validation set. For the Lorenz series, the first 4,800 values are used for training, the next 600 values are used for testing, and the last 600 values are used for validation. In the synthetic multivariate data set, 5,600 records for training, 400 for testing, and 1,000 records for validation were used. For the multivariate Mekong River flow time series, 5,740, 365, and 365 records were used, respectively, for training, test, and validation sets.

The effectiveness of the data extraction is evaluated by comparing the one step ahead prediction performance of models trained with extracted smaller subsets of training data with that of a model trained with entire training data set. First, the phase space vectors are constructed with phase space parameters, (*m*, τ) pairs, (10, 3), (3, 1), (5, 1), respectively, for Lorenz, Mississippi and Wabash series based on previous experience (Karunasinghe & Liong 2006). Second, for each series, a MLP prediction model that approximates the function in Equation (3), where , is derived using the entire training data patterns and the test data patterns. Here, an input/output pair is referred to as a pattern. The prediction errors of this model on the validation set are calculated. Third, the new clustering method is applied on the normalized training data patterns and a smaller subset of patterns is extracted (see Figure 1). The smaller set of input/output patterns and the test set are then used to train an MLP prediction model such as in Equation (3). This model is then used for prediction of the validation set and its performance on the validation set is compared with that of the model trained with the entire data set. The whole procedure is schematically expressed in Figure 2. The study used MLPs with a single hidden layer. Logistic sigmoid transfer function was used for all hidden neurons. Linear transfer function was used in the output neurons. The numbers of hidden neurons were 25, 25, 25, 10, and 3 for Lorenz, Mississippi, Wabash, Friedman, and Mekong data sets, respectively. Since the phase space parameter selection and the way of model training does not affect the results of the current study such details are not presented here and interested readers are referred to Karunasinghe & Liong (2006) for more details.

For illustrative purposes, when applying the proposed clustering method, subsets of different sizes were obtained by considering a series of different *d* values as follows. A higher value of *d* extracts smaller number of patterns and vice versa. When the number of patterns is too small, the resulting prediction performance is anticipated to be poor. An optimal *d* value which gives a balance between the number of patterns and prediction performance is preferred. Noting that *d* may be related to the noise level, and for moderate noise levels the effective values of *d* may take values close to zero, this study started off with three trial values for *d*, 0.001, 0.1, and 0.5, and used interval bisection strategy (similar to bisection method for root finding, which repeatedly bisects an interval and then selects a subinterval in which a desired solution lies for further processing) to identify a suitable range for *d* (values which give low numbers of patterns and satisfactory predictions) to be explored. Once a suitable range for *d* is determined, the range is evenly subdivided into approximately 50 points. The subsets resulting from these *d* values are used for building MLP models and prediction.

Prediction performance is evaluated in terms of four error measures: (1) two relative error measures, the normalized root mean square error (NRMSE) given in Equation (8a) and modified coefficient of efficiency (MCE) recommended in Legates & McCabe *(*1999) given in Equation (8b); (2) two absolute error measures, mean absolute error (MAE) given in Equation (9a) and root mean square error (RMSE) given in Equation (9b).

*n*is the number of points predicted, and is the average value of the time series. A zero/one value in NRMSE/MCE indicates a perfect prediction, while a value greater than one/less than zero for NRMSE/MCE indicates that the predictions are no better than using the average value of the time series. A zero value in MAE and RMSE represents a perfect prediction.

For the comparative study, subsets were obtained with SCM and their prediction performances were compared with those of subsets obtained with the proposed clustering method. SCM was used for comparison purposes for several reasons. The study uses SCM as the only method, to the best of the authors' knowledge, that has been tested for function approximation purposes using several prediction methods. Cluster centers of SCM are a subset of the original data. Other widely used techniques, such as k-means clustering, produces centers which are not necessarily data points. Such ‘artificial’ points may not be acceptable in function approximation problems. As such, investigating whether and how the existing clustering methods, that have been developed for the purpose of classification, could be incorporated for function approximation require further studies that are beyond the scope of this study. SCM has four parameters, namely: (1) radius of influence (*R*) of a cluster center; (2) the accept ratio (AR), that determines whether data point will be accepted as a cluster center; (3) the reject ratio (RR), that determines whether a data point will be rejected as a cluster center; (4) squash factor (SF), that determines the neighborhood of a cluster center within which the existence of other cluster centers are discouraged. It is tedious to use a trial and error approach for finding optimal values for them. Therefore, a micro-genetic algorithm (mGA) was used to find suitable values for these parameters, following Doan *et al.* (2005). The procedure can be explained as follows. mGA was used to generate SCM parameter sets. Corresponding to these parameter sets, clustered subsets were obtained from the training data set. Then, these subsets were used to make the prediction on the test set using local averaging nonlinear prediction (NLP) method (Karunasinghe & Liong 2006) to approximate functions, *f,* in Equations (3), (6), and (7). The prediction accuracy on the test set was used as the fitness indicator in mGA. The procedure was repeated until the stopping criterion was met. The maximum number of evaluations (i.e., number of SCM parameter sets tested) was limited to 1,000, based on previous experience, and was used as the stopping criterion. The NLP, instead of MLP, was used for fitness evaluation in mGA to reduce the time taken to find optimal SCM parameters. For more details of this procedure readers are referred to Doan *et al.* (2005).

### Information content in clustered data

*et al.*2008). For a continuous random variable

*X*with probability density function the expression for quadratic Renyi entropy is given by Equation (10)

*et al.*2010). This study used the Silverman's rule given in Equation (14), which was found to be sufficient for many applications by Principe (2010). In Equation (14),

*N*is the number of samples,

*d*is the data dimensionality, and is the data standard deviation.

## RESULTS

Effectiveness of the extracted sets is evaluated by comparing their prediction performance with that of using the total data set. The prediction errors on the validation sets using the models trained with entire training data are given in Table 1. The prediction performance of reduced data sets shows similar trends in terms of NRMSE, MCE, MAE, and RMSE. The prediction performance of the models trained with the extracted data subsets with the number of patterns extracted are, therefore, shown in Figure 3(a) and 3(b) in terms of MAE only for 5% noisy Lorenz series and Wabash river flow time series, respectively. Figure 4(a) shows the prediction performance of extracted subsets of the Mississippi series from 50 different *d* values of the proposed clustering method and the selected best solutions, out of 1,000 evaluations with subtractive clustering method (Chiu 1994) (following the procedure of Doan *et al.* (2005) where mGA was used to optimize the parameters), superimposed. In the figures, the prediction error in using the total training data set is shown as a solid line. 105% of the error, i.e., 5% worse than in using the entire training data set, is marked with a dashed line.

Prediction error on validation | |||||
---|---|---|---|---|---|

Time series | Total number of patterns (approx.) | NRMSE | MCE | MAE | RMSE |

Lorenz | 4,775 | 0.0634 | 0.9415 | 0.6395 | 0.8022 |

Mississippi | 5,480 | 0.0388 | 0.9689 | 207.31 m^{3}/s | 304.68 m^{3}/s |

Wabash | 5,480 | 0.0606 | 0.9519 | 25.66 m^{3}/s | 46.61 m^{3}/s |

Friedman | 5,600 | 0.0089 | 0.9920 | 2.5540 | 3.4332 |

Mekong | 5,740 | 0.0662 | 0.9546 | 434.50 m^{3}/s | 707.90 m^{3}/s |

Prediction error on validation | |||||
---|---|---|---|---|---|

Time series | Total number of patterns (approx.) | NRMSE | MCE | MAE | RMSE |

Lorenz | 4,775 | 0.0634 | 0.9415 | 0.6395 | 0.8022 |

Mississippi | 5,480 | 0.0388 | 0.9689 | 207.31 m^{3}/s | 304.68 m^{3}/s |

Wabash | 5,480 | 0.0606 | 0.9519 | 25.66 m^{3}/s | 46.61 m^{3}/s |

Friedman | 5,600 | 0.0089 | 0.9920 | 2.5540 | 3.4332 |

Mekong | 5,740 | 0.0662 | 0.9546 | 434.50 m^{3}/s | 707.90 m^{3}/s |

According to Figure 3(a), for the noisy Lorenz series, the reduction of patterns up to about 1,500 from a total of about 4,775 (approximately 30%) does not seem to affect prediction accuracy considerably. Similarly, in the Wabash series (Figure 3(b)) and Mississippi series (Figure 4(a)), too subsets of about 30–40% of the entire training data set produce equally good predictions as that using the entire training data set. This shows that the proposed clustering algorithm is capable of extracting a smaller number of effective data patterns, setting aside the redundant patterns, that give the same accuracy as using the total patterns. Comparison of the SCM and the proposed method shows that the new clustering method is equally effective as the SCM (Chiu 1994) for extracting smaller sets of system representative data. This comparison for the Mississippi data is shown in Figure 4(a). Other univariate data sets also showed similar results.

The comparisons for synthetic multivariate data set and Mekong River flow data are shown in Figure 4(b) and 4(c), respectively. They show that subsets of approximately 50–60% of the total training data set produce equally good predictions as that of using the entire training data set for the said data sets. This result shows the effectiveness of the proposed method on multivariate data sets. It is noteworthy that in the Mekong data, even with a large number of evaluations, the SCM coupled with mGA has achieved only a few solutions with a relatively large number of patterns. The amount of reduction possible in the two multivariate data sets is relatively smaller compared to the previous three data sets. Investigations showed that in Mekong and Friedman (synthetic) data sets, a relatively large number of patterns had ‘distant’ nearest neighbors whereas in Mississippi, Wabash, and Lorenz relatively large number of patterns had ‘close’ nearest neighbors. In the Mekong data this could be due to the relatively large number of variables with different values. In Friedman data which have been generated randomly using uniform distributions, the data points are, by creation, ‘distantly’ spaced within the domain. When points are ‘closely’ packed, one point can represent several such points, as explained in the section ‘New Clustering Method’, whereas when the points are ‘distant’ each of them can be carrying distinct information about the system and cannot be ignored. This can be the reason why the amount of reduction possible in Mekong and Friedman data is relatively lower than the other series considered.

Figure 5 shows the quadratic Renyi entropy for subsets of data obtained using proposed clustering method and subsets of data of the same size chosen randomly for the Mississippi River flow data. The kernel width was chosen using Equation (14). Clearly, the entropy of a clustered subset is larger than that of a randomly chosen subset of data with the same number of patterns. In order to make sure that this finding is independent of the particular value chosen for , was calculated using and as well. Both produced similar results as in Figure 5. Similar trends were observed for all the other data sets as well. This means that a subset obtained with the proposed clustering method is rich in information content compared to random selection of the same size.

All the tests (including the choice of *d* presented in the next section) were performed on a few other multivariate data sets as well. These included a Bangladesh water level prediction problem and a stream flow prediction problem with four rain gauge measurement series. They too showed similar results (not shown) to those demonstrated with the synthetic data set and the Mekong River flow data set.

## DISCUSSION

### Choice of *d*

*d*produce a smaller number of cluster centers and vice versa. In the extreme cases, very high values will select only one cluster center and very low values will select all the points as centers. The demonstrations made so far used a trial and error approach to select suitable ranges of

*d*to highlight the simplicity in using the proposed method. Such a trial and error approach is impractical with SCM with four parameters as will be explained in the next section. Our experience of the algorithm perhaps made it easier for us to use a trial and error approach, especially to notice that

*d*could be as small as 0.001, in the possible range of approximately (0–1). Since suitable values for

*d*can vary by orders of magnitudes (i.e., 10

^{−1}, 10

^{−3}, etc.) depending on the data sets, the following method is proposed as a foolproof way to choose subsets with the number of patterns ranging from very small numbers to close to the maximum possible, and thereby to identify suitable values for

*d*or a range of

*d*to explore. Here, a series of

*d*values are chosen such that:

In Equation (15), *m* is the number of input variables which is an integer, therefore is an integer. Figure 6(a) and 6(b) show the variation of the number of patterns with *d* values chosen as above for Wabash and Mekong River flow data. They show that there is a monotonic variation of the subset size with parameter *d*. For Wabash data the size of subsets varies from 3 to 5,397 over 65 different *d* values and those for Mekong data vary from 2 to 5,740 over 130 different values. Similar trends followed for the other data sets too. Since the subset size monotonically varies with *d* when a desired subset size falls between the sizes obtained by the method, an interval bisection between the adjacent *d* values or a simple curve fitting can be used to choose a subset close to the desired size.

### Problems in choosing SCM parameters

The reason for using mGA to find optimal parameter sets for SCM should better be discussed in more detail. Many studies (e.g., Lughofer 2008; Zio & Bazzo 2010; Yetilmezsoy *et al.* 2011) have used SCM with some fixed (default) values for three SCM parameters, AR (=0.5), RR (=0.15), and SF (=1.25), and varied *R* to obtain subsets (cluster centers) of different sizes. However, in all those applications the number of cluster centers expected had been small and these default values with varying *R* have been able to produce the desired results. Doan *et al.* (2005) used mGA to find optimal parameter sets for SCM because SCM with default parameter values did not produce optimal results for extracting effective subsets from data. This study gives the following further evidence where these default values partially/completely fail to extract system representative subsets. The variation of subset size with default values for AR, RR, and SF and with varying *R* is shown in Figure 7 for the Mississippi flow data. There is an abrupt change in subset size within a very small change in *R* when its value is around 0.0026. After increasing the resolution of *R* many times around this value, gave a subset of size 3,122 while , with only a difference of , produced a subset of 1,131 patterns. It was very hard to close this gap. This may be due to some nonlinear dependence and interaction between SCM parameters. In another example, in Wabash data no *R* value was able to produce subsets of size more than approximately 25, with the other parameters set at their defaults, thereby totally failing to extract a system representative subset. Therefore, for good subset extraction, choice of suitable values for all four SCM parameters is necessary.

On the other hand, in SCM, the variation of the size of subsets with its parameters is not monotonic. As an example, some SCM parameter sets and the sizes of the subsets they produced on Mississippi data are shown in the second and third columns of Table 2. The parameter set (3) is the mid point of the values in parameter sets (1) and (2). Ideally, we expect this set to produce a subset of which the size falls between 978 and 2,297. In this case the parameter set (3) produced a subset of size 1,027, which is between 978 and 2,297, however, this value is very much closer to 978. In a worse example, the parameter set (4) which has values between parameter set (1) and (2) produced a subset of size 442, which is outside the range of 978 to 2,297. What this means is one cannot manipulate parameters between known values to obtain a subset of desired size. A similar test for the proposed clustering method is shown in columns 4 and 5. The mid parameter value produced a subset of size 1,410, which is between 987 and 2,288, and is not as biased as in the case of SCM. Since there is a monotonic variation of subset size with the parameter *d* (shown in the previous section), it is easy to manipulate between and to obtain a subset of required size between 987 and 2,288. In this case, by a second order polynomial fit between the subset size and *d*, the value of *d* to obtain a subset of approximately 1,500 patterns was determined as 0.0103. This *d* value produced a subset of size 1,517, which is the desired result. Therefore, having a single parameter and its monotonic variation with the subsets obtained greatly help the user to identify subsets of required sizes and thereby acceptable prediction performance. With SCM, however, such simple manipulations are impossible and adopting a method like mGA to find optimal values for all four parameters is necessary. Nevertheless, it is noticed that in some cases (see Figure 4(c)) even with a large number of evaluations with mGAs, SCM does not produce solutions that sufficiently cover the whole range of number of patterns (i.e., from 1 to *N* where *N* is the total number of patterns).

SCM | Proposed clustering method | |||
---|---|---|---|---|

Parameter set | SCM parameters (R, AR, RR, SF) | Size of subset | Parameter d | Size of subset |

(1) | (0.009, 0.80, 0.032, 1.95) | 978 | 0.0143 | 987 |

(2) | (0.005, 0.25, 0.060, 1.80) | 2,297 | 0.0075 | 2,288 |

(3) | (0.007, 0.525, 0.046, 1.875) | 1,027 | 0.0109 | 1,410 |

(4) | (0.007, 0.75, 0.051, 1.85) | 442 | 0.0103 | 1,517 |

SCM | Proposed clustering method | |||
---|---|---|---|---|

Parameter set | SCM parameters (R, AR, RR, SF) | Size of subset | Parameter d | Size of subset |

(1) | (0.009, 0.80, 0.032, 1.95) | 978 | 0.0143 | 987 |

(2) | (0.005, 0.25, 0.060, 1.80) | 2,297 | 0.0075 | 2,288 |

(3) | (0.007, 0.525, 0.046, 1.875) | 1,027 | 0.0109 | 1,410 |

(4) | (0.007, 0.75, 0.051, 1.85) | 442 | 0.0103 | 1,517 |

### Computational times taken by SCM and the simple clustering method

A comparison of times taken by both procedures, SCM (with mGA and NLP) and proposed clustering method with *d* varied, as suggested in Equation (15), to produce subsets of varying sizes, was also conducted. The times taken by the two methods for each data set are shown in Table 3. The second row shows the times taken by SCM alone in SCM-mGA-NLP coupled procedure. These times show that the use of NLP in the procedure has not affected the computational time taken by the procedure considerably. Clearly, the subsets extraction with the proposed clustering method is more efficient than using SCM. For Mekong data, the proposed method is approximately eight times more efficient than using SCM while it is as high as approximately 230 times more efficient for Friedman data. Having only a single parameter and its monotonic variation with subset size has contributed to the efficiency of the proposed method.

Method | Lorenz | Mississippi | Wabash | Friedman | Mekong |
---|---|---|---|---|---|

SCM with mGA and NLP | 3,595 | 2,423 | 1,305 | 9,793 | 1,967 |

SCM alone | 3,486 | 2,372 | 1,253 | 9,705 | 1,917 |

Proposed clustering method | 143 | 40 | 105 | 42 | 258 |

Method | Lorenz | Mississippi | Wabash | Friedman | Mekong |
---|---|---|---|---|---|

SCM with mGA and NLP | 3,595 | 2,423 | 1,305 | 9,793 | 1,967 |

SCM alone | 3,486 | 2,372 | 1,253 | 9,705 | 1,917 |

Proposed clustering method | 143 | 40 | 105 | 42 | 258 |

### Remark on using subsets of time series data

It should be noted that when extracting subsets of data from time series data, the complete temporal sequence of the data set will not be preserved. In this study, the data have been extracted for the purpose of prediction model building where the modeling methods do not require the whole temporal sequence of the underlying process. For example, in building models of the form given in Equation (3), the pairs are treated as independent patterns, which do not require any particular ordering. Whatever the required time, correlations are included within the pairs themselves, by using time delayed values (see Equations (1) and (7)).

### Some similarities and differences of the proposed clustering method and SCM

The SCM and the proposed clustering method share several similarities. Both the methods select a subset of original data as cluster centers. They use a similar density measure to evaluate the potential of a data point as a cluster center. Thus, both methods give priority to points closely surrounded by other points as cluster centers. The SCM discourages closely spaced cluster centers whereas the new clustering method eliminates the selection of cluster centers which are closer than a certain distance. The SCM discourages points, lying far away from other points, being selected as cluster centers, whereas the new clustering method ensures the selection of such points. Thus the proposed clustering method tries to strike a balance between two seemingly contradicting objectives; choosing sparsely situated points while still encouraging more points to be selected from densely populated areas in the data space. Unlike almost all other clustering methods, the proposed method ensures the selection of points lying in less dense areas of data space. This is expected to be useful in function approximation problems where such points represent important infrequent events of dynamical systems. However, it can be disadvantageous in situations where such points are outlying due to noise rather than due to system dynamics. Although the proposed method was developed considering the phase space prediction of chaotic time series, it was shown to be equally effective as SCM on other multivariate data sets as well.

## CONCLUSIONS

A new, simple clustering algorithm is proposed for data extraction for function approximation. The purpose of the extracted data is to serve as a representative data set of the total data set. The proposed ‘simple clustering method’ has only a single parameter to be specified, and suitable values for this parameter can be found more efficiently than with, for example, SCM, which has four parameters, without the necessity to adopt computationally costly methods like mGA. A foolproof method to find suitable values for this single parameter is also proposed. A comparison of times taken by SCM coupled with mGA and the proposed simple clustering method with the said method for parameter selection shows that the simple clustering method is orders of magnitude more efficient than SCM. Yet the simple clustering method is shown to be equally effective as SCM in extracting system representative subsets. Having a single parameter and its monotonic variation with the subset sizes contribute to efficient derivation of subsets of required sizes using the simple clustering method. Further, the extracted subsets are shown to contain more information content than randomly selected subsets.

The effectiveness of the subsets extracted was tested only for the prediction model formulation aspect. On the tested data sets, subsets of approximately 30–50% of the total data sets provided the same level of prediction accuracy as using the total data sets. Four different error measures supported the finding. The method was shown to be effective on phase space prediction of univariate time series data and on multivariate data sets. Demonstrations carried out on one univariate synthetic chaotic time series data set (Lorenz), one benchmark multivariate synthetic data set (Friedman), two univariate river flow series data sets, and one multivariate river flow series data set confirm the findings. Further investigation of the new technique on different multivariate data sets and on different function approximation applications is being pursued and will serve to show its robustness.

## ACKNOWLEDGEMENTS

The first author wishes to thank the National University of Singapore for granting a research scholarship. US Geological Survey (USGS) data were downloaded from http://water.usgs.gov/.