 Methodology article
 Open Access
 Published:
Robust regression for periodicity detection in nonuniformly sampled timecourse gene expression data
BMC Bioinformatics volume 8, Article number: 233 (2007)
Abstract
Background
In practice many biological time series measurements, including gene microarrays, are conducted at time points that seem to be interesting in the biologist's opinion and not necessarily at fixed time intervals. In many circumstances we are interested in finding targets that are expressed periodically. To tackle the problems of uneven sampling and unknown type of noise in periodicity detection, we propose to use robust regression.
Methods
The aim of this paper is to develop a general framework for robust periodicity detection and review and rank different approaches by means of simulations. We also show the results for some real measurement data.
Results
The simulation results clearly show that when the sampling of time series gets more and more uneven, the methods that assume even sampling become unusable. We find that Mestimation provides a good compromise between robustness and computational efficiency.
Conclusion
Since uneven sampling occurs often in biological measurements, the robust methods developed in this paper are expected to have many uses. The regression based formulation of the periodicity detection problem easily adapts to nonuniform sampling. Using robust regression helps to reject inconsistently behaving data points.
Availability
The implementations are currently available for Matlab and will be made available for the users of R as well. More information can be found in the websupplement [1].
Background
The detection of periodically behaving gene expression time series has been an area of enormous interest lately. Since more and more microarray [2] data is becoming available, including time series, the periodicity detection methods from other branches of science are being modified for use in gene expression studies. Periodicity detection methods can be broadly divided into generic and more specific detection rules. The generic approaches use the available statistical theory to seek strong periodic components at all the available frequencies [3–7] and use exact tests to yield significance values with multiple correction. The more specific methods try to find periodic phenomena at specific frequencies, e.g. the assumed cell cycle frequency (see e.g. [8–15])
Some of the most severe problems of processing gene expression time series data include short time series length, the presence of noise of unknown distribution, outliers (i.e. points that are clearly inconsistent with most of the other points in the data), nonuniform sampling used in performing the experiments and other nonlinearities involved in the measurement technologies themselves. Outliers can be thought of as lowprobability values from a mixture model where with a high probability the noise in the signal is modelled by a (Gaussian) distribution and with a low probability by another distribution whose variance is much higher than that of the first one. In earlier work we presented a robust modification [5] of Fisher's gtest [6] for finding hidden periodicities in time series data. The method performs well both under the Gaussian noise assumption and when outliers and other nonlinearities are present. However, nonuniform sampling, other than the one resulting from missing values, was not considered and the aim of this paper is to evaluate different robust methods for periodicity detection that can handle nonuniform sampling. Nonuniform sampling in periodicity detection has been previously considered in [7]. The authors use a socalled LombScargle periodogram to find the spectral estimate for a time series, not limited by nonuniform sampling, and then test whether the maximum value of the spectral estimate is significantly higher than the other values. While the method is mathematically sound and is based on an exact test, it is nonrobust, as is the basic Fisher's test. The same issue applies to most of the other previously published methods. Exceptions to this are in [5] and in [15], where the authors use Bayesian detection and show that the method can handle data that is corrupted with uniform and Laplacian noise as well (besides Gaussian).
The matter of choosing the sampling scenario in a costeffective way is discussed in [16] where the authors present an active learning based online algorithm for choosing the sampling strategy.
In [17] the authors have developed a periodicity detection method in which they fit orthogonal periodic polynomials to nonuniformly sampled data. If the periodicity of interest is not sinusoidal (e.g. narrow pulse signals), the method improves on the performance of the LombScargle periodogram, but reduces to it in the case of sinusoidal model, which is the case of interest for us. An approach based on similar ideas is presented in [18] where the authors use least squares fitting of wavelets which is especially suitable if we want to search for periodicity in nonuniformly sampled data with nonsinusoidal cyclic components.
In [19] the authors use the LombScargle periodogram for periodicity detection and show that it performs better than the combination of interpolation to uniform sampling and ordinary periodogram. They point out that there is a lowpass effect involved in interpolation that is a major problem. In [20] the authors use a complicated approach of neural networks for periodicity detection in nonuniformly sampled time series but use interpolation to uniform sampling first, which, according to [19], causes problems in the high frequency end of the spectra. In [21] the authors actually make use of nonuniform sampling in digital aliasfree signal processing applications. However, their approach is based on the idea of being able to choose the sampling intervals, which is not the usual case in biological studies. A model similar to the one in this paper is presented in [22], where the authors aim to estimate a wide spectral range of frequencies of a non uniformly sampled signal. Their approach is, however, aimed more at realtime applications and longer signals than those usually present in microarray studies. Some of these methods can be thought to be improvements over the standard periodogram but nonrobust when it comes to heavy tailed distributions and/or mixture models where the presence of (low probability) outliers can cause large residuals in the estimators and thus bias the results. The Bayesian approach [15] is a clear distinction to the aforementioned approaches and presents an opportunity to make use of prior knowledge, such as the frequency of the oscillation. It is shown in [15] that the Bayesian detector performs better than methods that assume a strict frequency of periodicity [9] in case the frequency is not exactly known a priori. Other Bayesian periodicity detectors are presented in [23–26].
In this paper we follow the general direction of Fisher's gtest together with multiple testing correction for the detection of periodic time series in multiple time series data. Several modifications are needed to take into account nonuniform sampling and unknown noise characteristics. We use several different robust regression based methods [27–30] to find the spectral estimate of a time series instead of using the basic nonrobust periodogram. By using regression we can readily take nonuniform sampling into account.
After finding the spectral estimate we propose to replace the periodogram in the gtest with the robust spectral estimate. Since no analytical results for such modifications exist, we resort to permutation tests in finding the pvalues. We also note that the test can be modified to yield a test for one specific chosen frequency if an a priori hypothesis is made about the frequency of the periodicity of interest.
To compare the performance of the different regression methods and some of the previously introduced novel methods [5, 7, 15] in this framework, we use simulations and show the receiver operating characteristic (ROC) figures under several noise and signal configurations and nonuniform sampling. The computational complexity of the different methods is also briefly considered.
As an application we choose one of the best performing methods and apply it to microarray data measured from the mussel Mytilus californianus. Our experiments indicate that there is no statistically significant connection between the circadian rhythm and cell cycle regulated genes that could be expected to show periodic expression.
Results and discussion
Simulation based performance
The performance of the different introduced estimators when using the gtest framework is now verified by simulations and through the use of receiver operating characteristic curves (ROC, see e.g. [31]). The following simulations are first based on the assumption that we do not know the frequency of the underlying periodic signal. In addition, we iteratively subtract the fitted sinusoidals in the process of calculating the Fourier coefficients when using the robust regression based methods (as suggested in [30]). We then simulate time series where we have approximate a priori knowledge on the frequency of periodicity and compare the performance of the regression approach to the rank based method presented in [5] and the Bayesian detector presented in [15].
Before going into the details of the ROC curves, we first present two nonuniformly sampled simulated periodic time series of length 20 and their estimated power spectra as examples. The periodic time series and the corresponding spectral estimates are shown in Figure 1. The sampling of the first time series (Figure 1a)) is chosen according to the experimental mussel data (Gracey et al., to appear in ArrayExpress [32]) that was conducted at time points 8.67, 10.52, 12.42, 15.67, 20.27, 23.52, 27.52, 30.52, 33.77, 37.32, 40.67, 45.22, 48.52, 51.67, 55.17, 58.47, 62.52, 65.52, 68.52 and 71.02 hours after the beginning of the experiment (see further description in subsection The methods in practice), so that the samples are taken usually approximately every three hours but sometimes there are four to five hour gaps. This sampling is a good representative of a real world measurement. The sampling of the second time series (Figure 1c)) is an artificially deteriorated version of the first one, so that sometimes the samples are closer together and sometimes farther apart. These artificial sample times were chosen to be 8.97, 10.12, 12.52, 18.67, 20.27, 22.12, 27.52, 32.52, 33.77, 34.32, 35.67, 43.22, 43.52, 47.67, 55.17, 58.47, 60.52, 65.52, 66.52 and 68.02 hours after the beginning of the experiment. The three spectral estimates in Figure 1b) and Figure 1d) correspond to an ideal spectral estimate (as if the sampling was uniform and there was no additive noise), the periodogram of the samples (ignoring time indices) and the regression based Mestimate. As we can see, in the first case (b) the periodogram estimate is still quite good but when the sampling gets worse (d), the periodogram no longer operates properly since it assumes uniform sampling. To test more formally which of the methods, if any, outperforms the others we now resort to the ROC curves.
The ROC curve is a plot of sensitivity $\left(\frac{TP}{TP+FN}\right)$ on the yaxis, versus 1specificity $\left(\frac{FP}{FP+TN}\right)$ on the xaxis. TP stands for true positive, FN for false negative and so on. For a perfect test the sensitivity is 1 for a specificity of 1. For any nonideal tests the ROC curve shows the sensitivityspecificity tradeoff. The line segment from (0,0) to (1,1) is called the chance diagonal since the discrimination ability of a test is near to random if the curve is near to the diagonal.
A priori unknown frequency
We use the model of Equation (1) in the generation of 300 periodic time series corresponding to the alternative hypothesis and 300 nonperiodic time series corresponding to the null hypothesis. We consider the same two cases of nonuniform sampling described above. For each time series we calculate the gstatistic and order the values. We repetitively accept one more time series as periodic and since the ground truth is known, we can now tell the number of true and false positives and true and false negatives to construct the ROC curves for each of the methods. Since we assume the null distribution to be the same for all the time series we do not use permutation tests here. We chose to consider three types of noise for both of the nonuniform samplings, namely where the additive noise is Gaussian (std. 0.5,1.0), Gaussian (std. 0.75) with outliers at random locations (1,2 or 3 outliers, amplitude uniformly randomly chosen from ± (5 . . . 6)) or Laplacian (std. 1.0). The underlying periodic signal in the alternative hypothesis set always has an amplitude of $\sqrt{2}$ (the amplitude of the sum of zero phase cosine plus sine) as in [3] and the frequency of periodicity is uniformly random chosen in the interval [0.05,0.45]2π.
Figure 2 shows that the robust method (denoted as Robustperiodic) we introduced in [5] performs the best in the case of the less nonuniform sampling and Gaussian or Laplacian noise. The ROC curves show that when the sampling is more nonuniform, the methods that assume uniform sampling no longer work at all. In these three cases the LombScargle periodogram and Mestimator based method still work rather well. Figure 3 clearly shows that outliers negatively affected performance of most of the methods. In the case of one or two outliers the Mestimator method outperforms the rest, but at 15% contamination (3 outliers, time series length 20) only the LTS based method can make a clear distinction from random guessing. It is discussed in [33, 34] that any method that can not tolerate 10% of outliers should be used with caution. In addition, the methods that are not designed to handle nonuniform sampling quickly start to perform poorly the more random the sampling gets. It is interesting to note that the method introduced in [5] performs relatively well under the nonuniform sampling scenario of the mussel data although the method is not designed for nonuniform sampling.
A priori known frequency
In case we have prior knowledge on the frequency of the periodicity of interest, it is desirable to take this into account when trying to rank the time series according to periodicity. For the purpose of performance comparison we compare here the simulated ROC curves of three methods under the two presented sampling scenarios when the frequency is approximately known. We choose for the simulations the Mestimator as a representative of the regression estimators, the Bayesian approach method presented in [15] and the rank based method not designed for notuniform sampling [5]. The strength of the Bayesian method [15] is that it is trainingfree and it does not assume a single frequency for the periodicity but rather a prior distribution whose mean and scale can be tuned according to prior knowledge.
We generate four sets of 300 time series according to the null hypothesis with Gaussian noise (std. 1) and 0, 1, 2 or 3 (0 in the time series of the first set, 1 in the second and so forth) randomly placed outliers of amplitude ± (5 . . . 6) per series. For the alternative hypothesis sets (4) we generate sinusoidals of random phase, amplitude $\sqrt{2}$ and frequency uniformly distributed in the range [0.09,0.11]2π in addition to the additive noise similar to the null hypothesis set. We then deliberately choose the frequency that is given to the periodicity detectors incorrectly as 2π 0.125 (as in [15]) and observe the ROC curves for the three methods. The standard deviation for the Bayesian method was set to 0.1 as in [15].
As we can see in Figure 4a) and 4b) (alternative representation in Figure 5), the Bayesian method is superior to the other chosen periodicity detectors in case the additive noise present in the signals is pure Gaussian and our knowledge on the frequency is inaccurate. However, a single outlier changes the whole situation and, as can be seen, the performance of the Mestimator in case of 3 outliers (out of 20 samples), although suboptimal on Gaussian data and having chosen the frequency incorrectly, is approximately the same as the performance of the Bayesian method in case of one outlier. Thus, the Mestimator is much more robust when it comes to inconsistencies in the data.
As we can see, there is no single best approach to periodicity detection and one must weigh the options. If we want to reject outliers and have nonuniformly sampled data, the Mestimation based regression estimator is a safe choice. If we have a reason to trust in the Gaussian noise model (or other well behaving symmetric distribution) and we have weak prior knowledge on the frequency of the cycle period, the Bayesian approach [15] should be the best alternative. In the case of uniform sampling and no prior knowledge on the frequency, the rank based estimator [5] is also a considerable option, among others.
Computational complexity
Without going into more subtle considerations of asymptotic time complexity we just present the needed time to calculate the Fourier coefficients for two signal lengths using a modern laptop computer and Matlab. Although this running time comparison is not absolute and depends on particular implementations, it is indicative of general computational costs. In Table 1 we can see that the least trimmed squares (LTS) and minimum covariance determinant (MCS) regression methods take a lot of time if compared to the LombScargle and the Tukey's biweight Mestimator. In case of nonuniform sampling we therefore suggest to use the Mestimator since it performs quite fast and robustly as was seen in the subsection Simulation based performance. The Bayesian detector is not included in this comparison since it does not involve similar spectral estimation of the whole spectrum as the regression based methods here do. The implementation of the Bayesian detector is relatively slow if compared to the Mestimator when considering single frequency detection.
The methods in practice
We analyse here the microarray time series data set obtained from the mussel species Mytilus californianus, by measuring the gene expression over several days with nonuniform sampling. It is expected that the gene expression of some of the genes of the population would correlate with the tidal cycle or day and temperature cycle. We therefore seek the genes that are periodically expressed in the 24hour cycle and show the annotations and time series profiles of the best ranking signals. In practice we use Mestimator based regression to fit sine and cosine signals of 24hour cycle to the time series. To estimate the null hypothesis distribution (i.e. no periodicity present) for the estimated coefficients we use 300 random permutations of each time series.
Because we use a finite number of permutations in forming the null hypothesis distributions, pvalues of zero (i.e. less than 1/300) are now possible. In fact, 12 of the best time series had a pvalue of zero. The (grouped) best 12 time series are plotted in Figure 6 with the xaxis showing time in hours. As the first time point is at 8:40 am, we can see that there is a positive peak in (a) and a negative peak in (b) at around 12:00 am, and every 24 hours from then on. Since 12:00 am usually corresponds to the highest daily temperature, this suggests that these genes could have temperature (among other things) as a regulator. Two of the genes were not sequenced and seven of the genes were not annotated as of yet. The annotations for Myt_12D11, Myt_22J13 and Myt_12P18 are Transcription elongation factor B polypeptide 2 (RNA), Protein C3orf17 and Ubiquinolcytochrome c reductase complex 7.2 kDa protein, correspondingly. As a comparison, we also applied the Bayesian detector [15] to the mussel data set. Forty genes were found that were in the list of top hundred ranked genes according to both of the methods, implying that the methods produce fairly similar results.
To determine how many of the best ranked genes we should accept as periodic we use the false discovery rate at a level of 0.1. This corresponds to 33 of the best time series out of 7679. This is quite a conservative decision boundary since the visual inspection of the first few hundred time series clearly shows similar patterns as in Figure 6.
The best detected genes were mostly expressed at small amplitude. To determine if there was a biological theme to the best detected genes, a Gene Set Enrichment Analysis (GSEA) [35] was performed using the list of genes ranked by the significance of periodic signal against 245 gene sets which were defined by their shared participation in a specific biological process in the Gene Ontology database. These gene sets covered biological processes which are known to be under circadian regulation in mammals such as the cell cycle and metabolic pathways. This analysis revealed that none of these gene sets were statistically significantly enriched towards the top of the ranked list of periodic genes. One explanation for this finding is that biological prior knowledge may be incomplete and does not capture the sets of genes that are under circadian regulation in mussels, or that the circadian cycle is attenuated in the tidal environment and does not really contribute much to the cyclic expression of the genes.
Replicate spots of each gene (that appear on the array) were removed prior to enrichment analysis to prevent false hits.
Conclusion
The usual motivation for using methods based on least squares and a Gaussian model assumption, is that the theoretical background is thoroughly understood and computations are easier than in the case of robust methods. However, in reality, outlying data points are present in biological high throughput measurements such as microarrays. We have shown here that even a small number of outliers cause problems in periodicity detection if least squares methods are used. Taking into account the amount of data produced by microarray experiments, the manual replacing of these outliers is not possible and even if it was, the question of how to replace the outliers raises even more questions.
This leaves us with two reasonable approaches: we could either use a robust filter to clean the data first and then use methods based on least squares or use robust methods in the first place. If we however take a closer look at the filter cleaner proposed in [30], the method first evaluates a robust spectral estimate with Mestimator regression and then takes the inverse discrete Fourier transform to yield a cleaned time series. If we then evaluate the periodogram of the time series we end up with the same estimated power spectrum as we would have gotten by just using the Mestimator. This shows that in this case the two mentioned approaches are actually the same.
In addition to robustness against outliers we have shown in this paper that if sampling is not performed uniformly, it is very important to choose analysis methods that can adapt to notuniform sampling. The regression based periodicity detection method implemented with the Tukey's biweight Mestimator was shown to have excellent performance in simulation studies and provided visually good results with real measurement data as well. Since the method can be readily implemented and is relatively fast to use, we propose it to be used as a first choice in periodicity detection with nonuniformly sampled data.
Future work includes the use of wavelets in periodicity detection. This has been previously considered in the literature in the context of spectrum estimation (e.g. [36]) and gene expression periodicity analysis [37] but it would be interesting to try to robustify the wavelet transform to reject outliers. Besides straightforward periodicity detection with wavelets, the robustify interpolation of the nonuniformly sampled time series to uniform sampling would be one reasonable approach as well. The ever growing need for data integration is also an urgent matter that must be given much attention in the future. Combining computational predictions from different data sources to increase statistical power is of utmost importance.
Methods
The assumptions about the time series model and different methods for periodicity detection are first introduced. We then perform simulations and show the ROC curves for the methods when using the Fisher's gstatistic.
Time series model
We use a similar (cyclo) stationary model for time series as in [3–5].
y_{ n }= β cos(ωn + φ) + ε_{ n }, (1)
where β ≥ 0, ω ∈ (0, π), n = 0,..., N  1(∈ Z), φ ∈ (π, π], and ε_{ n }is an i.i.d. noise sequence (distribution unknown). To test for periodicity, define the null hypothesis as H_{0}: β = 0, i.e., the time series consists of the noise sequence alone, y_{ n }= ε_{ n }.
To take nonuniform sampling into account we loosen the definition of Equation (1) so that n is replaced by t_{ n }. Time index t_{ n }can be any real number to allow the evaluation of the sine signal at arbitrary time points. For the practical implementation, see Appendix A.
Periodicity detection
We first briefly review Fisher's test for the detection of periodic time series. We then generalise the test for different robust spectral estimators and finally we modify the test for the detection of a specific frequency.
Testing of all frequencies
Suppose we have a power spectral estimate I(ω). If the spectral estimate is obtained by using the classical periodogram (see e.g. [5, 8] or [3]) at the (harmonic) normalised frequencies
where a = [N/2] and the brackets denote the integer part of the rational number, then Fisher's gstatistic is defined as the maximum periodogram ordinate divided by the sum of all of the ordinates. Formally
where q = [(N  1)/2] and we can analytically find the pvalues for the statistic under the Gaussian assumption (see e.g. [8] or [6]). Other test statistics have been proposed for periodicity detection as well. For example, Chen [4] used a test called Hubert's Ctest to complement the Fisher's test. The Ctest tests whether a time series is a Gaussian white noise sequence. However, like Fisher's test, the Ctest is based on the standard periodogram. Therefore, the Ctest is not robust and even if the underlying sequence is Gaussian, a few outliers (e.g. measurement errors) can lead to incorrect results.
In [5] we developed a highly robust periodicity detection method that utilises the equivalence between the periodogram and correlogram spectral estimators. Robustness is obtained by replacing the standard autocorrelation estimator with a rankbased alternative. We used this robust spectral estimator instead of the periodogram in Equation (3). Since analytical results for the pvalues of this modified distributionfree test do not exist (as of yet) we used permutation tests and simulated distributions to estimate the pvalues. The rankbased method proposed in [5] does not, however, easily generalise to nonuniform sampling. In practice many biological time series measurements, including microarrays, are conducted at time points that are of biological interest and not necessarily at fixed time intervals. To tackle this problem, we propose to use robust regression based methods in the estimation of the spectral content. This way we can also take nonuniform sampling into account. Further motivation for this approach can be found by recalling that yet another (but still equivalent) formulation of the standard periodogram is obtained by using the frequency representation of a signal
where the last term is omitted if N is odd. Parameters a_{1i}and a_{2j}now represent the frequency content of a time series signal. Under the commonly invoked i.i.d. Gaussian assumption, the optimal, i.e. minimum variance unbiased (MVU), estimates of the parameters can be obtained by using ordinary least squares regression (or simply inverse) to solve
for [a_{0} a_{ 1 }^{T}a_{ 2 }^{T}a_{N/2}]^{T}. where y is the measured time series and again omitting a_{N/2}(and the last column in the matrix) if N is odd. Matrices A_{1} and A_{2} are defined as
We should also verify that the above design matrix is invertible (full column rank), which should be the case unless the measurement times t_{ n }(or frequencies) are "pathological". To elaborate, for any frequency ω it is possible to choose t_{ n }so that, e.g., the cos term in one column of A_{1} is always equal to 1, making that column linearly dependent with the first column vector (vector of ones). It should, however, be unlikely that this happens in practice. Furthermore, given time instants t_{ n }, we can define the frequencies (perhaps slightly differently if needed) so that the columns are always linerly independent.
By choosing ω according to Equation (2) and assuming uniform sampling we can estimate the harmonic Fourier coefficients in a_{ 1 }and a_{ 2 }. Evaluating
yields a power spectral estimate B(ω) that coincides (see [38] p. 395) with the periodogram if the time series sampling is uniform. This explicitly shows that the periodogram can be obtained directly from a least squares estimate and is hence sensitive to different anomalies in data. On the other hand, the above regression based formulation opens up the possibility of developing alternative robust periodicity detection methods (and also robust spectrum estimation, see [30]) that can naturally handle nonuniform sampling. Since the dimensionality of the model matrix in Equation (5) is high and robust regression estimators do not necessarily yield optimum solutions easily for high dimensional models, we propose to find the parameters one frequency at a time. Therefore, for the purposes of robust estimation, we consider the following reduced model
y = X(ω)b + e, (11)
where y is the measured time series vector, b is the unknown parameter vector and e is a residual term. The matrix X(ω) is formed in the following way
where ω is defined similarly as in Equation (1) and t_{ n }is the realvalued index.
To estimate b at the different frequencies we propose to use robust regression methods. The different robust regression estimators we chose for evaluation are reviewed in subsection The different estimators. It is suggested in [30] that when calculating the coefficients one frequency at a time, the fitted sinusoidal of the latest iteration should be subtracted from the signal y (i.e. leaving the residual). This residual is then used in place of y when estimating the parameter b of the next frequency, thus avoiding the problems caused by the loss of orthogonality. In addition, the order in which the frequencies should be sought is based on an initial spectral estimate, which is obtained by regression of the coefficients without any subtraction. The strategy is then to process the frequencies according to the magnitude of the coefficients, in descending order. To expand, in the case of uniform sampling, sinusoidals at the Fourier frequencies constitute an orthonormal basis. Thus in the least squares case, it is irrelevant in which order we fit the sinusoidals, since they are independent and the resulting spectral estimate will be the same [8]. If we have nonuniform sampling or we use estimators other than least squares we can no longer use this property.
The dependence between the fitted sinusoidals and the problem of overfitting can be corrected, at least to a reasonably good degree [30], by removing the fitted signal and fitting to the residuals. We should also mention that the nonorthogonolity would not be a problem if all the sinusoidals were fitted simultaneously, but this is not a reasonable approach for the robust estimators (due to the problems of high dimensionality and nonconvergence.
We can now use the robust power spectral estimate B(ω) in Equation (3) without the requirement of uniform time series sampling. However, if the time series sampling is not uniform, the notions of Nyquist frequency and harmonic Fourier frequencies are no longer clear. We can still approximate the sampling frequency as if the sampling was uniform, as explained in Appendix A, and thus approximate the Fourier frequencies as well. For more discussion on the subject, see [39]. pvalues can be estimated using simulated distributions or permutation tests. The use of simulated distributions is now more awkward than in the case of the rankbased method of [5]. It was noted in [5] that the rankbased method is "distributionfree", which implies that it is sufficient to simulate the null hypothesis distribution for only one noise type (e.g., Gaussian) under the assumption that the noise is i.i.d. The proposed regression based methods are not distributionfree and we would have to generate the null hypothesis distribution for all the different imaginable noise types separately. Of course, independent of the method, the null hypothesis distribution must be generated separately for different time series lengths. Therefore, based on the preceding discussion we propose to use permutation tests with multiple correction method of Benjamini and Hochberg [40] in the same way as in [5] to find the significance values.
Testing of one frequency
If we have a priori information about the frequency of the interesting periodic phenomenon, we do not need to seek periodicities at all the frequencies. There are different ways of modifying Equation (3) to take this additional information into account. In [5] we replaced max_{1 ≤ l ≤ a}I (ω_{l}) with just the power spectral estimate at the index of interest to concentrate on just the interesting frequency. If we want to extend our search to other than the harmonic Fourier frequencies then the denominator in Equation (3) loses its meaning. Therefore we propose to use the following modified statistic
where g_{ m }is the modified gstatistic, ω_{ c }is the frequency of interest and ${\widehat{b}}_{1c}^{2}$ and ${\widehat{b}}_{2c}^{2}$ correspond to the coefficients of the fitted sine and cosine terms (Equation 11) at this frequency. The first problem arises with pvalue computation. If we use ordinary least squares (OLS) for the regression then we can just neglect the denominator in Equation (3) since, as will be explained later, we will be using permutation tests for pvalue computation and the denominator is the same for all the permutations of a single time series; thus, there is no need for the scaling. However when using the robust regression based methods there is no guarantee that the sum of the terms is a constant for different permutations. On the other hand, in many cases the effect of the omission of the scaling factor in the denominator has little effect on periodicity detection. This is also verified with good results on real data in subsection The methods in practice. Moreover, this way we do not need to compute the whole spectral estimate but just at the frequency of interest, which can now be other than one of the harmonic Fourier frequencies as well. This is a huge benefit for the use of the regression methods since the robust ones are typically computationally timeconsuming. To sum up, we propose to use the following procedure for finding periodicities at a known frequency:

1.
For a time series, fit the model of Equation (11) at a chosen frequency ω_{ c }

2.
Evaluate Equation (13).

3.
Randomly permute the original time series and for each permutation repeat steps 1 and 2.

4.
To estimate the null hypothesis distribution of the modified gstatistic, compose a histogram of the population of gstatistics generated in step 3.

5.
Use the histogram as a distributional estimate to get a pvalue for the original test statistic computed in step 2.

6.
Repeat steps 1–5 for all the time series to get the necessary pvalues.

7.
use multiple correction for the obtained pvalues.
Although the idea of robustly fitting sinusoidals of one frequency to data is not new. we have here plausibly incorporated it for periodicity detection by modifying Fisher's test. We would like to note that exact tests are also available for some robust tests (see e.g. [27]). However, since these tests require some knowledge of the underlying distributions and because they are not applicable to all robust methods considered here, we propose to use the general purpose nonparametric permutation tests.
The different estimators
In this subsection we present the different estimators that we will use in periodicity detection. We will mainly concentrate on robust estimators but will also present for comparison purposes the nonrobust LornbScargle periodogram, a modification of the ordinary periodogram taking nonuniform sampling into account.
Mestimators – the Tukey's biweight
We consider the popular redescending Mestimators which are able to reject outliers in the response variables entirely. Since the measurement time points are typically known, it is reasonable to assume that the regressors (i.e. the time points) are deterministic, a priori known and not random variables. Tatum and Hurvich [30] used the Mestimator with Turkey's biweight as the cost function to yield a robust time series filter that performed well with both simulated and real data. The central idea behind the filter is to first evaluate a robust spectral estimate of the time series and then use inverse FFT to estimate the clean time series. We therefore opt to use the biweight as a representative Mestimator in our periodicity detection study. It should be noted that the ordinary least squares is a special case of Mestimators. The objective of Mestimators is to find
where ρ is a symmetric function with a unique minimum at zero, r_{ n }= y_{ n } ${x}_{n}^{T}$b is the residual of the n^{th} datum, ${x}_{n}^{T}$ = [1, cos(ωt_{ n }), sin(ωt_{ n })], and σ_{ n }are scaling factors. The scaling factors σ_{ n }are chosen so that the resulting estimator is approximately 95% as efficient as the least squares estimator when applied to normally distributed data with no outliers. In particular, σ_{ n }= 4.685·$\widehat{s}\sqrt{1{h}_{n}}$ is used for each n, where ŝ = 1.4826 mad{r_{ i }} is the scaled median absolute deviation of the residuals from their median and h_{ n }= (X(X^{T}X)^{1}X^{T})_{ nn }, i.e, the n^{th} diagonal element of the "hat" matrix. For further details, see [41] and implementation details of robustfit function in [42]. In the search for the solution of Equation (14) it is useful to solve for the stationary point by setting
where the influence function ψ (Tukey's biweight function in this case) is the derivative of ρ. The idea of the biweight Mestimator is to give zero weighting to those data points whose residuals are large if compared to the estimated scale. Therefore, if the scale is estimated robustly as well, we expect the Mestimators to give us good performance on data with different distributional characteristics. For more information on Mestimators, see e.g. [27, 41]. In our computations we use the implementation in Matlab's Statistics Toolbox that uses iteratively reweighted least squares estimation.
Least trimmed squares (LTS)
The least trimmed squares regression [28] (LTS) is a robust regression method that was developed to have similar robustness properties as the least median of squares (LMS) regression but that would perform better under the Gaussian assumption and would be less computationally expensive.
The central idea behind the LTS is that instead of considering complete sets we choose subsets of the measured time points of the variables and use OLS for each of these subsets. We then choose the estimate that yields the smallest residual variance. Quantitatively, order the residuals of the linear model as (r^{2})_{1} ≤ (r^{2})_{2} ≤ ... ≤ (r^{2})_{ N }. Then the LTS is defined as
where [N/2] + 1 ≤ h ≤ N. In practice not all subsets can be considered and only some hundreds or maybe thousands of randomly chosen subsets are processed to yield the output.
One important feature of the LTS (and the MCD, which will be introduced shortly) regression is that it can tolerate outliers in the predictor variables as well, whereas the Mestimators cannot. However, this is not critical in spectrum estimation since the measurement time points usually contain no stochasticity. The implementation (FASTLTS) is introduced in [43].
Minimum covariance determinant
The minimum covariance determinant (MCD) regression method [29] is a well performing robust regression method that can also handle cases where both X and y are multivariate. This method has similarities to the LTS regression in that it also considers subsets instead of complete sets in the estimation. The subset that yields the smallest covariance determinant is chosen for the estimation. For multivariate regression the model is presented as
y = β^{T}X + α + ε, (17)
where y is qvariate, X is pvariate, β is the (p × q] slope matrix, α is the qdimensisnal intercept vector and ε is i.i.d with zero mean and with a positive definite covariance matrix.
Since the standard LS estimates of β and α can be written as functions of the estimated empirical mean vector (location) and the covariance matrix (scatter), a logical way of robustifying the regression is to replace the location vector and the scatter matrix with robust alternatives. In [29] the authors use the minimum covariance determinant estimator to yield the necessary robust estimators for the location and covariance matrix, thus leading to robust regression. It is shown that this is a positivebreakdown and boundedinfluence method, which, if properly reweighted and iterated, has a high efficiency. The implementation of the algorithm (FASTMCD) is introduced in [44].
The LombScargle periodogram
The LombScargle periodogram (see e.g. [7]) can be seen as a least squares fit of unequally sampled sinusoids to the measured signal and thus an extension of the periodogram. Exact tests for periodicity detection have been developed but problems include the well known outlier sensitivity of the OLS [45].
A note on missing values
It frequently occurs that besides nonuniform sampling there are some measurement points in some genes that are missing although they are present in other genes, thus reducing the quality of the data. Since we do not use an analytical null hypothesis distribution for all the time series but rather simulate the distribution for each time series separately, these missing points are handled so that we fit the sinusoidals only to the time points that are present. The presented methods thus have no further need for missing value imputation (a topic which has received considerable attention lately, see e.g. [46]).
Appendix A. Supplementary information
To take nonuniform sampling into account, we loosen the definition of the variable n in Equation (1) so that it does not need to be integervalued. We perform a scaling of the measurement time points in the following way: Denote the time points when the actual measurements have been made as a vector
τ= [τ_{0}, ..., τ_{N  1}]^{T}. (18)
Then form the vector
to correspond to the new indices, i.e. we normalise the last time point to N  1. Note that for any uniformly sampled time series Eq. (19) yields an integer valued vector t.
To find the corresponding real time frequency for an angular frequency ω ∈ (0, π) we consider two interpretations of the ω. The first one is in Equation (2) and the second one is
ω = 2πf/F_{ s }, (20)
where f is the frequency of periodicity and F_{ s }is the sampling frequency. Therefore
If sampling is not equidistant, we can approximate the average F_{ s }as if the sampling was equidistant with help of the vectors τ and t
where the quotient is a constant and independent of the index n (as long as the index exists).
References
 1.
Robust regression for periodicity detection in nonuniformly sampled timecourse gene expression data. Supplementary website. [http://www.cs.tut.fi/sgn/csb/robustregper/]
 2.
Schena M, Shalon D, Davis R, Brown P: Quantitative Monitoring of Gene Expression Patterns with a Complementary DNA Microarray. Science. 1995, 270: 467470.
 3.
Wichert S, Fokianos K, Strimmer K: Identifying periodically expressed transcripts in microarray time series data. Bioinformatics. 2004, 20: 520.
 4.
Chen J: Identification of significant genes in microarray gene expression data. BMC Bioinformatics. 2005, 6: 286
 5.
Ahdesmäki M, Lähdfdmäki H, Pearson R, Huttenen H, YliHarja O: Robust detection of periodic sequences in biological time series. BMC Bioinformatics. 2005, 6: 117
 6.
Fisher R: Test of Significance in Harmonic Analysis. Proceedings of the Royal Society of London. 1929, 125: 5459.
 7.
Glynn E, Chen J, Mushegian A: Detection periodic pattersns in unevenly spaced gene expression time serises using Lombscargle periodogram. Bioinformatics. 2005
 8.
Brockwell P, Davis R: Time series: Theory and Methods. 1991, Springerverlag, New York, 2
 9.
de Lichtenberg U, Jensen L, Fausbø ll A, Jensen T, Bork P, Brunak S: Comparisson of computational methods for the identification of cell cycle regulated genes. Bioinformatics. 2004, 21: 11641171.
 10.
Johansson D, Lindgren P, Berglund A: A multivariate approach applied to microarray data for identification of genes with cell cyclecoupled transcription. Bioinformatics. 2003, 19: 467473.
 11.
Liu D, Umbach D, Peddada S, Li L, Crockett P, Weinberg C: A randomperiods model for expression of cellcycle genes. Proceedings of the National Academy of Sciences of the USA. 2004, 101: 72407245.
 12.
Lu X, Zhang W, Qin Z, Kwast K, Liu J: Statistical resynchronization and Bayesian detection of periodically expressed genes. Nucleic Acids Research. 2004, 32: 447455.
 13.
Luan Y, Li H: Modelbased methods for identifying periodically expressed genes based on time course microarray gene expression data. Bioinformatics. 2004, 20: 332339.
 14.
Zhao L, Prentice R, Breeden L: Statistical modeling of large microarray data sets to identify stimulusresponse profiles. Proceedings of the National Academy of Sciences of the USA. 2001, 98: 56315636.
 15.
Andersson C, Isaksson A, Gustafsson M: Bayesian detection of periodic mRNA time profiles without use of training examples. BMC Bioinformatics. 2006, 7: 63
 16.
Singh R, Palmer N, Gifford D, Berger B, BarJoseph Z: Active Learning for Sampling in TimeSeries Experiments With Application to Gene Expression Analysis. Proceedings of the 22nd International Conference on Machine Learning: Bonn, Germany. 2005
 17.
SchwarzenbergCzerny A: Fast and statistically optimal period search in uneven sampled observations. The Astrophysical Journal. 1996, 406: 107110.
 18.
Frick P, Baliunas S, Galyagin D, Sokoloff D, Soon W: Wavelet Analysis of Stellar Chromospheric Activity Variations. The Astrophysical Journal. 1997, 483: 426434.
 19.
Laguna P, Moody G, Mark R: Power spectral density of unevenly sampled data by leastsquareanalysis: performance and application to heart rate signals. IEEE Transactions on Biomedical Engineering. 1998, 45: 698715.
 20.
Rasile M, Tagliaferri R, Milano L, Longo G: Neural networks for periodicity analysis of unevenly spaced data. International Conference on Neural Networks. 1997, 4: 22572262.
 21.
Tarczynski A, Dongdong Q: Optimal periodic sampling sequences for nearlyaliasfree digital signal processing. IEEE International Symposium, on Circuits and Systems, 2005. 2005, 2: 14251428.
 22.
Tarczynski A, Bland D, Laakso T: Spectrum estimation of nonuniformly sampled signals. Proceedings of the IEEE International Symposium on Industrial Electronics. 1996, 1: 196200.
 23.
Bretthorst G: Bayesian Spectrum, Analysis and Parameter Estimation. Edited by: 1. 1988, SpringcrVcrlag, Berlin Heidelberg
 24.
Djurić P, Li HT: Bayesian Spectrum Estimation of Harmonic Signals. IEEE Signal Processing Letters. 1995, 2: 213215.
 25.
Qi Y, Minka T, Picard R: Bayesian Spectrum Estimation of Unevenly Sampled Nonstationary Data. IEEE International Conference on Acoustics, Speech, and Signal Processing. 2002, 2: 14731476.
 26.
Zhou C, Wakefield J, Breeden L: Bayesian Analysis of CellCycle Gene Expression Data. UW Biostatistics Working Paper Series. 2005, 276:
 27.
Hampel F, Ronchetti E, Rousseeuw P, Stahel W: Robust statistics: The Approach Based on Influence Function. 1986, Wiley edition
 28.
Rousseeuw P, Leroy A: Robust Regression and Outlier Detection. 1987, Wiley
 29.
Rousseeuw P, Van Aelst S, Van Driessen K, Gulló J: Robust Multivariate Regression. Technometrics. 2004, 46: 293305.
 30.
Tatum L, Hurvich C: High Breakdown Methods of Time Series Analysis. Journal of the Royal Statistical, Society. Series B (Methodological). 1993, 55: 881896.
 31.
Duda R, Hart P, Stork D: Pattern Classification. 2001, Wiley, 2
 32.
ArrayExpress. [http://www.ebi.ac.uk/arrayexpress/]
 33.
Huber P: Projection pursuit and robustness. New Directions in Statistical Data Analysis and Robustness. Edited by: Morgenthaler S, Ronchetti E, Stahel W, Basel. 1993, Boston: Birkhäuser Verlag, 139146.
 34.
Pearson R: Mining Imperfect Data: dealing with contamination and incomplete records. 2005, Siam
 35.
Subramanian A, Tamayo P, Mootha V, Mukherjee S, Ebert B, Gillette M, Paulovich A, Pomeroy S, Golub T, Lander E, Mesirov J: Gene set enrichment analysis: A knowledgebased approach for interpreting genomewide expression profiles. Proceedings of the National Academy of Sciences of the USA. 2005, 102: 1554515550.
 36.
Kaleva O, Ihalainen H, Saarenrinne P: A wavelet based method for the estimation of the power spectrum from irregularly sampled data. LADOAN10: 10–13 July 2000; Lisbon. 2000
 37.
Klevecz R: Dynamic architecture of the yeast cell cycle uncovered by wavelet decomposition of expression microarray data. Fund Integr Genomics. 2000, 1: 186192.
 38.
Priestley M: Spectral Analysis and Time Series. 1981, Academic Press, London
 39.
Scargle J: Studies in astronomical time series analysis. II. Statistical aspects of spectral analysis of unevenly spaced data. The Astrophysical Journal. 1982, 263: 835853.
 40.
Benjamini Y, Hochberg Y: Controlling the false discovery rate: a practical and powerful approach to multiple testing. J R Stat Soc, Ser B, Methodol. 1995, 57: 289300.
 41.
Huber P: Robust Statistics. 1981, Wiley
 42.
The MathWorks, Inc: Statistics Toolbox. User's Guide. 2005, The MathWorks, Inc, 5
 43.
Rousseeuw P, Van Driessen K: An algorithm for positivebreakdown methods based on concentration steps. Data Analysis: Scientific Modeling and Practical Application. Edited by: Gaul W, Opitz O, Schader M. 2000, New York: SpringerVerlag, 335346.
 44.
Rousseeuw P, Van Driessen K: A Fast Algorithm for the Minimum Covariance Determinant Estimator. Technometrics. 1999, 41: 212223.
 45.
Schimmel M: Emphasizing Difficulties in the Detection of Rhythms with LombScargle Periodograms. Biological Rhythm Research. 2001, 32: 341346.
 46.
Kim H, Golub G, Park H: Missing value estimation for DNA microarray gene expression data: local least squares imputation. Bioinformatics. 2005, 21: 187198.
Acknowledgements
This work was supported in part by the Academy of Finland, project No. 213462 (Finnish Centre of Excellence program (2006 – 2011)), and R01 GM072855 grant from NIH. The support of Tampere Graduate School in Information Science and Engineering (TISE) is also gratefully acknowledged. We would like to thank Dr. Sabine Verboven and Sanne Engelen for useful tips on the use of the implementations of the LTS and MCD regression methods. We are indebted to Dr. Mats Gustafsson for providing us the implementation of the Bayesian periodicity detector and to Claes Andersson for the implementation details. Finally, we thank the anonymous reviewers for the valuable comments that greatly improved the quality of this paper.
Author information
Affiliations
Corresponding author
Additional information
Authors' contributions
MA carried out the implementation of the methods, performed the computations and mainly drafted the manuscript. HL helped in developing the statistical methods and codrafted the manuscript. AG provided the microarray measurement data and performed the Gene Set Enrichment Analysis. IS and OYH conceived of the study and participated in its design and coordination. All authors read and approved the final manuscript.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Ahdesmäki, M., Lähdesmäki, H., Gracey, A. et al. Robust regression for periodicity detection in nonuniformly sampled timecourse gene expression data. BMC Bioinformatics 8, 233 (2007). https://doi.org/10.1186/147121058233
Received:
Accepted:
Published:
Keywords
 Receiver Operating Characteristic Curve
 Spectral Estimate
 Robust Regression
 Least Trim Square
 Minimum Covariance Determinant