A dynamic Bayesian network approach to protein secondary structure prediction

Background Protein secondary structure prediction method based on probabilistic models such as hidden Markov model (HMM) appeals to many because it provides meaningful information relevant to sequence-structure relationship. However, at present, the prediction accuracy of pure HMM-type methods is much lower than that of machine learning-based methods such as neural networks (NN) or support vector machines (SVM). Results In this paper, we report a new method of probabilistic nature for protein secondary structure prediction, based on dynamic Bayesian networks (DBN). The new method models the PSI-BLAST profile of a protein sequence using a multivariate Gaussian distribution, and simultaneously takes into account the dependency between the profile and secondary structure and the dependency between profiles of neighboring residues. In addition, a segment length distribution is introduced for each secondary structure state. Tests show that the DBN method has made a significant improvement in the accuracy compared to other pure HMM-type methods. Further improvement is achieved by combining the DBN with an NN, a method called DBNN, which shows better Q3 accuracy than many popular methods and is competitive to the current state-of-the-arts. The most interesting feature of DBN/DBNN is that a significant improvement in the prediction accuracy is achieved when combined with other methods by a simple consensus. Conclusion The DBN method using a Gaussian distribution for the PSI-BLAST profile and a high-ordered dependency between profiles of neighboring residues produces significantly better prediction accuracy than other HMM-type probabilistic methods. Owing to their different nature, the DBN and NN combine to form a more accurate method DBNN. Future improvement may be achieved by combining DBNN with a method of SVM type.


Background
Over past decades, the prediction accuracy of protein secondary structure has gained some improvements, largely due to the successful application of machine learning tools such as neural network (NN) and support vector machine (SVM). Qian and Sejnowski designed one of the earliest NN methods [1]. Rost and Sander introduced the alignment profile with multiple sequence alignment into the prediction. Their method, named as PHD, performed much better than previous ones, because of the use of alignment profile as the network's input [2]. Jones made an important improvement by pioneering the use of position-specific scoring matrices (PSSM) to generate the socalled PSI-BLAST profile and developed the method called PSIPRED [3]. Recently, new advances have been made in developing NN-based prediction methods [4][5][6][7]. Similarly, SVM-based methods were developed for protein secondary structure prediction, first taking the alignment profile as inputs and then being improved to use the PSI-BLAST profile [8][9][10][11][12]. Generally speaking, the Q 3 of a modern NN or SVM-based method can reach over 76%.
In contrast to NN and SVM, probabilistic methods for protein secondary structure prediction such as those based on hidden Markov model (HMM) have had very limited accuracy [13][14][15][16][17][18]. Most of them were designed for single sequence prediction with prediction accuracy generally less than 70%. Recently, two profile-based HMM methods were proposed, which take either the alignment profile or PSI-BLAST profile as inputs [16,18]. Both of the methods treat the profile as production from a multinomial distribution with 20 possible outcomes (20 amino acids), and thus lose the information about the correlation between entries of the profile. As a result, the prediction accuracy of the two methods, which is around 72%, is still much lower than the common level of NN or SVM-based methods. It is notable that there is a special HMM-type method, SAM-T04 [19], which has shown comparable accuracy to NN and SVM-based methods. However, with using a neural network for the sequence-to-structure prediction while building the HMM only at the secondary structure level [19,20], SAM-T04 should not be regarded as a pure HMMtype method.
It would be interesting to break this apparent asymmetry in accuracy between machine learning-based methods and probabilistic model-based methods. The probabilistic model is of somewhat different nature from machine learning tools, and provides a complement to the latter. Thus, combining the two kinds of model is likely to produce a consensus prediction that has better accuracy than the prediction of individual program [21]. In addition, the probabilistic model outputs a set of knowledge about the property of secondary structure in an explicit way, including specific correlation structure between neighboring residues, while such information is implicit in NN or SVM. Hence, the development of an appropriate probabilistic model is interesting for understanding the mechanism by which sequence determines structure.
In this paper we introduce a new probabilistic model, dynamic Bayesian network (DBN), for protein secondary structure prediction. DBN represents a directed graphical model of a stochastic process, often regarded as a generalized HMM capable of describing correlation structure in a more flexible way [22]. A novel feature of our method is the introduction of a multivariate Gaussian distribution for the profile of each residue, which takes into account the correlation between entries of the PSSM. In addition, our method considers a high-ordered dependency between profiles of neighboring residues and introduces a segment length distribution for each secondary structure state. Testing results show that the DBN method has made a significant improvement in accuracy over previous pure HMM-type methods. Further improvement is achieved by combining the DBN with an NN, a method named DBNN, which has achieved better Q 3 accuracy than many other popular methods and is competitive to the current state-of-the-arts. The most interesting feature of DBN/ DBNN is that a significant improvement in the prediction accuracy is achieved when combined with other methods by a simple consensus.

Results and Discussion
Training and testing datasets Three public datasets are employed for training and testing, i.e. CB513 [21], EVA [23] common set, and a large dataset containing 3,223 chains (denoted by EVAtrain) constructed by G. Karypis [12]. The first dataset contains 513 protein sequences with guaranteed non-redundancy via a strict criterion (z-score ≥ 5) for the sequence similarity; this dataset is used independently from two other datasets. The second is obtained from EVA server, where several secondary structure prediction servers are evaluated with sequences deposited in PDB [24]. In particular, a set labeled as "common set 6" (denoted by EVAc6) is selected, which contains 212 protein chains and has been used to test several popular prediction methods [25]. The third dataset, EVAtrain, is used in conjunction with EVAc6, with the former for training and the latter for testing. EVAtrain has been guaranteed to have less than 25% sequence identities to EVAc6. Furthermore, we have built a fourth dataset based on the known tertiary structural similarity from the SCOP [26] database (release 1.69), to evaluate the performance of our methods when dealing with proteins of remote evolutionary relation. One protein domain for each superfamily of the four classes (all α, all β, α and β, α/β) is selected. The domains of multi-segment, of NMR structure, and of low X-ray resolution (> 2.5Å) are removed. Also, too short (< 30 residues) or too long (> 500 residues) sequences are removed. The final dataset contains 576 protein sequences and is referred to as SD576.
For all the datasets described above, the secondary structure is assigned by DSSP program [27], and the eight-state secondary structure is converted to three, according to the rule: H, G, and I to H (helix); E and B to E (sheet); all others to C (coil).

Window sizes
The window sizes, denoted by L AA and L SS for profile and secondary structure respectively, describe the range of dependency of current site on its neighbors. The correlation between the Q 3 accuracy of DBN and window sizes is studied via a set of seven-fold cross-validation tests of DBN sigmoid (see Methods) on SD576 using different window sizes. Due to the limitation in the computational resources, the upper bounds of L AA and L SS are set to be 5 and 4, respectively.
As shown in Fig. 1, Q 3 is improved significantly when L SS > 0, and saturated when L SS > 1, which indicates that there is strong short-range dependency between the profile of a residue and the secondary structure states of its neighbors. A similar phenomenon occurs for profiles' dependency of neighboring sites. Note that the model with either L AA = 0 or L SS = 0 is a special case of DBN, in which the distribution of the profile of each residue is independent from neighboring profiles or neighboring secondary structure states, respectively. As a result, its topology is different from that of a full-DBN version (L AA > 0 and L SS > 0) due to the removal of R i or d i nodes (see Fig. 2(c)).
Our results are in partial agreement with the conclusions of Crooks and Brenner, who claimed that each amino acid was dependent on the neighboring secondary structure states but was essentially independent from neighboring amino acids [16]. We argue, however, that the PSI-BLAST profile has quite different correlation structure from a single amino acid sequence, from which Crooks et al. derived their conclusions. In fact, the dependency between neigh-boring profiles are significant and helpful for improving the prediction accuracy. Fig. 1 also shows that the most accurate model occurs when using the set (L AA = 4, L SS = 4), for which Q 3 reaches about 77.5%. However, test shows that this model is very time-consuming. We choose a more economical set (L AA = 4, L SS = 3) which offers a similar Q 3 (see Fig. 1) with a big saving in computational cost, for all the DBN models used in current study.

The accuracy improvements through combinations
All the basic DBN-and NN-based models described in Methods are tested on the SD576 dataset, and the results shown in Table 1 report the performance of these models, as well as of their combinations. Specifically, both DBN linear (combination of DBN linear+NC and DBN linear+CN ) and DBN sigmoid (combination of DBN sigmoid+NC and DBN-sigmoid+CN ) have significantly improved the performance in all the measures, indicating that the two directions of the sequence (i.e. from N-terminus to C-terminus and reverse) contain complementary information. In addition, the combination of the two different PSSM-transformation strategies (i.e. the combination of DBN linear and DBN sigmoid to produce DBN final ) also contributes to the accuracy improvement, increasing Q 3 and SOV by 0.8% and 0.9%, respectively, for DBN-based models. Note that for NN-based models, the accuracy improvement by combination is much less evident, indicating that NN is not sensitive to PSSM-transformation strategies. Table 1 shows that DBN final has improved by 3.5% over NN final in SOV. It can be understood, because DBN-based models explicitly incorporate the segment length distributions while NN-based models miss such information.
Finally, the combination of all the basic DBN-and NNbased models, which produces the resultant DBNN, has achieved further improvement in the accuracy, increasing Q 3 and SOV by 1.8% and 1.3%, respectively, compared to DBN final (see Table 1). This implies that the two types of models are indeed complementary.

Secondary structure segment length distributions
To study the significance of the secondary structure segment length distributions introduced in DBN models, we define a degenerate DBN (denoted by DBN geo ), which has the same structure to DBN final except D max = 1 [see Eq. (10)]. As described in Methods, D max = 1 implies a geometric distribution for the segment lengths. The segment length distributions of the predicted secondary structure by both DBN final and DBN geo are calculated and compared to the true distributions observed in the SD576 dataset, as shown in Fig. 3(b)-(d). In particular, Fig. 3(b) shows that, for helices, the segments of one and two residues are over- The influence of window sizes on the Q 3 of DBN Figure 1 The influence of window sizes on the Q 3 of DBN. L AA and L SS are window sizes for profile and secondary structure, respectively. The results are obtained by testing DBN sigmoid on the SD576 dataset.
predicted, while those of three residues are under-predicted, by both DBN final and DBN geo . But longer segments are all predicted correctly by both models. Generally speaking, DBN final has better performance than DBN geo : the prediction of DBN final for segments of 3 and 5-7 residues is much better than that of DBN geo .  ...

LAA=0, LSS=0
observation, in which the peak is located at segments of about 5 residues. Fig. 3(d) shows that DBN final and DBNgeo have very similar performance for coils: both underpredict the segments of 1 and 2 residues and over-predict those of 3 and 4 residues. However, DBN final predicts a much better distribution for long coils (over 8 residues) than DBN geo .
It is interesting to study whether we can modify the a priori segment length distribution, g α (n) in Eq. (10), to get a predicted (posterior) distribution closer to the observation shown in Fig. 3(a). A calculation is made by using a modified version of DBN final , denoted by DBN mod , which is constructed as following: take the a priori segment length distribution directly from the training set, then run the prediction and calculate the posterior distribution, and finally modify the a priori distribution according to the following equation: where g α old (n) is the a priori segment length distribution before the modification, g α pre (n) is the predicted distribution, g α obs (n) is the observed distribution, α = H, E, or C, and n = 1, 2, ... D max . The quantity g α new (n) is then normalized to form the new a priori segment length distribution. The Eq. (1) enhances the population of deficient segments and reduces that of over-represented ones, in a linear fashion. All the three models, DBN final , DBN geo , and DBN mod , are tested on SD576, and the performance on segment length distributions prediction is measured by "relative entropies", defined by where g α obs (n), g α pre (n), and D max have the same definitions as above, and α = H, E, or C.
The results presented in Table 2 show that DBN geo has much higher relative entropies indicating a strong deviation of the predicted distributions from the observation, than other two models. Note that Q 3 and SOV of DBN geo are also much lower than that of DBN final ( Table 2), implying that the segment length distributions do have an effect on the prediction accuracy. On the other hand, DBN mod shows the lowest relative entropies for all the three secondary structure states with almost the same Q 3 and SOV to DBN final (see Table 2), which indicates that Eq.
(1) has effectively improved the prediction of segment length distributions.

Comparison between DBN and leading HMM-type methods
The DBN method (DBN final ) developed in this work is also evaluated on the widely used CB513 dataset, and its performance is compared to two recently published HMM-type methods, denoted by HMMCrooks [16] and HMMChu [18], respectively, both of which have also been tested on the same or a similar dataset. In comparison, we have calculated the significant-difference margin (denoted by ErrSig) for each score, which is defined as the standard deviation divided by the square root of the number of proteins and was used by others [12]. The results presented in Table 3 show that DBN final has made improvements for all measures compared to the two methods mentioned above. Specifically, DBN final improves Q 3 by 3.5% over HMMCrooks and 4.1% over HMMChu, and improves SOV by 4.4% over HMMChu.
Since the ErrSig for Q 3 and SOV are 0.41 and 0.63, respectively, the improvements are judged to be significant. Matthews' coefficients [28] shown in Table 3 indicate that DBN final is particularly good at the prediction of helices and sheets, compared to above two methods.
The improvements made by DBN final are believed mainly due to the use of a conditional linear Gaussian distribution to model the PSI-BLAST profile of each residue, in which the correlation between the 20 entries in the profile is considered (see Methods). In contrast, both HMMCrooks and HMMChu employ a multinomial distribution to model the profile, which lacks the above correlation information [16,18]. The supporting experiment of our conjecture consists in constructing a degenerate DBN model (denoted by DBN diag ) that has the similar architecture to DBN final but only has a diagonal covariance matrix for the distribution of AA i [Eq. (7)], so that the correlation between entries of the profile is ignored. We have tested this model on the CB513 dataset, and the results (Table 3) show that the Q 3 of DBN diag drops down to 72.5%, similar to those of HMMCrooks and HMMChu, which highlights (2) Model the importance of the non-diagonal entries in the covariance matrix.

CB513 dataset
The best models developed in this work, DBNN, is then tested on the CB513 dataset and compared to other popular methods. Specifically, the methods SVM [8], PMSVM [11], SVMpsi [9], JNET [7], SPINE [6], and YASSPP [12] are selected for comparison, because they have been tested on the same (or a similar) dataset. Table 4 shows that DBNN has the best Q 3 accuracy among all the methods mentioned above, with improvements ranging from 0.3% to 4.6%. Since the ErrSig is 0.41/0.40, this indicates that for all methods except YASSPP, the improvement made by DBNN is significant. In SOV measure, DBNN ranks second, below YASSPP but above SVMpsi. The comparison of the Matthews' coefficients between DBNN and YASSPP indicates that the two methods are complementary and may be combined to obtain further improvement in the prediction accuracy: DBNN has a better C H while YASSPP has a better C C .
Because not all sequences are tested against all methods, the EVAc6 dataset is rearranged into five subsets, and the comparison is made between methods that are tested on the same subset (see Table 5). Table 5 shows that DBNN has generally a better Q 3 than all other existing methods. In addition, the ErrSigs indicate that, for Prospect, PROF_king, and PHDpsi, the improvement made by DBNN is significant. In SOV, however, DBNN is modest: it is better than Prospect, PROF_king, and PHDpsi, but less well than SAM-T99, PROFsec, and PSIPRED, as shown in Table 5. Note that DBNN has the best C H among all the methods.
The t-tests are also performed for rigorous pairwise comparison between different methods. Specifically, we test the hypothesis that "method X" gives a significantly higher mean score than "method Y", by calculated t-values as , where d = (x-y); x is the accuracy score of "method X", and y is of "method Y"; , and n = the number of proteins. We have evaluated all the methods on the subset 5 of EVAc6 (containing 73 chains), of which the prediction data of existing methods can be obtained directly from EVA website (Prospect is removed from the comparison because of the too many missing data for this method). The results shown in Table 6 indicate that DBNN has significantly better prediction, in both Q 3 and SOV, than PROF_king and PHDpsi, and has competitive performance to the three state-of-the-arts: PSIPRED, SAM-T99, and PROFsec.
All the above evaluation work shows that prediction accuracy of protein secondary structure by any individual program seems to reach a limit, no better Q 3 than 78% (see Table 5). Previous studies [21,34] show that a simple way to achieve further improvement is to construct a consensus over several independent predictors. The consensus would be effective if the individual predictors are mutually complementary (more independent). So, the study of consensus performance is also a way to judge if a new method or program brings in new (complementary) information. This study is carried out with a design of three consensus methods (CM) using a simple "weighted vote" strategy to generate the final output: CM1 combines the five existing popular methods, PROF_king, SAM-T99, PSIPRED, PROFsec, and PHDpsi; CM2 repeatedly replaces one of the above five methods by DBN final , and CM3 is the same as CM2 except DBNN is in the place of DBN final . The weight for the vote of each method is set to be the success rate of the method for each type of secondary structure, which is derived from an individual evaluation of its own. The CM-series are evaluated on the subset 5 of EVAc6. The results shown in Table 5 indicate that CM3 has the top performance and that DBNN brings in complementary information to the family of existing methods. Note that CM2 ranks second (better than CM1 in both Q 3 and SOV), indicating that the success of DBNN is derived from DBN.
The t-tests between the CM-series and the individual methods are also performed, and the results shown in Table 6 indicate that a simple combination of the five existing methods does not make significant improvement in accuracy: the individual method SAM-T99 has competitive Q 3 to CM1. On the other hand, the inclusion of DBN or DBNN (both CM2 and CM3) has given rise to significantly better Q 3 than all individual methods including SAM-T99. This is further enhanced by a direct comparison between CM3 and CM1; significant improvements in both Q 3 and SOV are clearly evidenced. Finally, let us note that none of the consensus methods shows significant improvement in SOV over all individual methods, indicating that SOV is particularly hard to improve.

Conclusion
A new method for protein secondary structure prediction of probabilistic nature based on dynamic Bayesian networks is developed and evaluated by several measures, which has shown significantly better prediction accuracy than previous pure HMM-type methods such as HMMCrooks and HMMChu. The improvement is mainly due to the use of a multivariate Gaussian distribution for the PSI-BLAST profile of each residue and the consideration of dependency between profiles of neighboring residues. In addition, because of the introduction of secondary structure segment length distributions in the model, DBN shows much better SOV than a typical NN.

Segment length distributions of helices, sheets, and coils
The essentially different nature of DBN and NN inspires a model that combines the two and forms the DBNN with significant further improvements in both Q 3 and SOV. DBNN is shown to be better than most of popular methods and competitive compared to the three state-of-the-art programs. We are then encouraged to explore further with consensus methods that combine all the best existing methods together. This study has demonstrated again the uniqueness of DBNN: the best consensus method is achieved by the inclusion of DBNN. This provides the evidence that DBNN brings in complementary information to the family of existing methods.
An interesting feature of our work here, compared to NN or SVM, is that it provides a set of distributions which have specific meanings and which can be studied further to improve our understanding of the model's behavior behind the prediction. An example is provided regarding the secondary structure segment length distributions used by the DBN, which is set to be an a priori distribution but can further be adjusted and improved. This points to a way for further improving the performance of DBN, by including modifications on more distributions, such as the transition probabilities between secondary structure states or the distribution of the profile of each residue. These distributions are also interesting for advancing the understanding of such fundamental problems as protein dynamics and protein folding, for which the information in implicit form in NN or SVM is of little use.
It appears that the limits of secondary structure prediction are being reached as no new method over the past decade has shown any major improvement since PSIPRED. All of the top methods are between 77%-80% accurate, in terms of Q 3 , depending on data set used. This implies that the complexity of the sequence-structure relationship is such that any single tool, when it attempts to extract (during learning) and to extrapolate (during predicting) the knowledge, can only represent some facets of this relationship, but not the whole. Further hope lies in the possibility that more facets are covered by new models, and that new models are integrated with the existing ones. The consensus methods reported above are just a simple approach in that direction; more sophisticated strategy for combining multiple scores can be sought in the future.

Generation of the PSI-BLAST profile
Each protein sequence in the datasets described above is used as query to search against the NR database [35] by using PSI-BLAST program [36]. The number of iterations in running PSI-BLAST is set to be 3; all other options are set to be defaults. The PSSM produced by the program is a matrix of integers typically in the range of ± 7 (see Fig.  2(a)). Each row of the PSSM is a 20-dimension vector corresponding to 20 amino acids, which is used to derive the PSI-BLAST profile of the corresponding residue.

Transformation of the PSSM
Similar to other secondary structure prediction methods [3,6,11], we transform the PSSM into the range from 0 to 1  Method before using it as input of models. Two strategies are employed for the transformation: one follows the function and is referred to as "linear transformation"; the other follows the function and is referred to as "sigmoid transformation".

Assessment of the prediction accuracy
Several measures are adopted to assess the performance of our methods in a comprehensive way. The first is the overall three-state prediction accuracy,  The description of DBNN can be found in Methods. Entries marked with "--" mean that the data could not be obtained from literatures. JNET has been trained and tested on the CB480 dataset (a reduced version of CB513), while all other methods have been trained and tested on the CB513 dataset. Methods marked with " †" have been evaluated using ten-fold cross-validation, while others have been evaluated using seven-fold crossvalidation. Method where n is the number of correctly predicted residues and N is the total number of residues. The second, SOV, is a segment-level measure of the prediction accuracy, and its most recent definition can be found in [37]. At last, the Matthews' correlation coefficient [28] is used for each class of secondary structure, which is defined by where n i is the number of residues correctly predicted to be secondary structure of class i, m i is the number of residues correctly not predicted to be secondary structure of class i, u i is the number of residues observed but not predicted to be secondary structure of class i, and o i is the number of residues predicted but not observed to be secondary structure of class i (i = H, E, and C).

The dynamic Bayesian network
DBN is a directed graphical model in which nodes represent random variables and arcs represent dependency between nodes. The architecture of our DBN model is illustrated in Fig. 2(b). There are totally six nodes for each residue. Specifically, the node AA i (i = 1, 2, 3...) contains the PSI-BLAST profile of residue i, which is a 20-dimen-sional vector corresponding to 20 scores in the PSSM. The node R i stores replica of the profiles of a series of residues before i, i.e. the profiles of residues i-1, i-2, i-3, ... i-L AA , as shown in Fig. 2(b), where L AA is a profile window size indicating the range of the dependency for the profiles. As shown in Fig. 2(b), all the dependency between AA i and its neighboring sites, AA i-1 , AA i-2 , ... AA i-LAA, can be summarized into one single connection to R i , simplifying the topology of the graph. The state-space of R i is 21·L AAdimensional, with 20·L AA storing the profiles of the past residues and extra L AA dimensions representing the "overterminus" state.
The node SS i is used to describe the secondary structure state of residue i, which has a discrete state-space of three elements: H, E, and C. The node d i has a similar role as R i , but describes here the joint distribution with the secondary structure states of residues i-1, i-2, ... i-L SS , where L SS is the secondary structure window size indicating the range of the dependency, as shown in Fig. 2(b). Again, the node d i is introduced to simplify the topology of the graph, yet to keep a long-range dependency between profile (AA i ) and secondary structure (SS i-1 , SS i-2 , ...). The dimension of d i is 4·L SS , where 3·L SS are from the joint past secondary structure states and the extra L SS from the "over-terminus" situation.
The nodes D i and F i are introduced to mimic a duration-HMM [22], with a specified parameter D max and two ele- The t-values are calculated for the differences in accuracy scores between "method X" and "method Y" (x-y) tested on EVAc6 subset 5. The descriptions of DBNN, CM1, CM2 and CM3 can be found in the text. Underlined are where calculated t > tabulated t (significant). The tabulated t = 1.67 for α = 0.05 and degree of freedom = 72.

C n i m i u i o i n i u i n i o i m i u i m i o i
ments, respectively. Specifically, D i represents the distance (measured by the number of residues) from the position i to the end of the corresponding secondary structure segment. For example, in a segment with end residue at position j, the value of D i is set to be j-i+1. Note that the statespace of D i requires that the maximum length of segments should not exceed D max . In order to cope with longer segments, a modified definition of D i is introduced as following: when the length of a segment ≤ D max , the value of D i is set as described above; when the length of the segment > D max , for example D max +3, the D i is set to be D max for the first four residues of the segment and is set to be D max -1, D max -2, ... 1 for the rest. In this way, the lengths of segments longer than D max are modeled by a geometric distribution (see below). The value of the node F i is deterministically dependent on Each node described above is assigned a specific conditional probability distribution (CPD) function according to the connections' pattern shown in Fig. 2(b), except for R i , which is a "root" node [22] with no "parent node", and which is observable in both training and predicting. Specifically, the CPD of AA i (i = 1, 2, 3) is modeled using a conditional linear Gaussian function, which is defined by: where N(y;μ, Σ) represents a Gaussian distribution with mean μ and covariance Σ, u is a 21·L AA -dimensional vector, α is one of H, E, and C, and γ is one of the L SS -tuples formed by four elements: O, H, E, and C (O represents the "over-terminus" state). The distribution function is characterized by the mean μ α,γ = w α,γ u + c α,γ , where w α,γ is a 20 × 21 L AA matrix and c α,γ is a 20-dimensional vector, and the covariance Σ α,γ . The subscripts α and γ indicate that the parameters w α,γ , c α,γ , and Σ α,γ are dependent on the states of SS i and d i . Second, the CPD of SS i (i = 2, 3, 4.. Using this function, the probability of producing a segment with length n (n > = D max ) is proportional to (1h α )h α n-Dmax , i.e. a geometric distribution. The validity of using such a distribution to model segments of length longer than D max is supported by Fig. 3(a), in which all the helices, sheets, and coils show exponential tails in their segment length distributions. Fig. 3(a) also indicates that a proper D max should be 13, after which all the distributions can be fitted well to exponential functions (see the inset of Fig. 3(a)). At last, the CPD of F i (i = 1, 2, 3...) is defined by Note that the CPDs of SS 1 , d 1 , and D 1 have similar definition to CPDs of SS i , d i , and D i (i = 2, 3, 4...) but with an independent set of parameters.
The parameters of the CPDs described above are derived by applying the maximum likelihood (ML) method to the training set. In prediction, the marginal probability distribution of SS i (i = 1, 2, 3...) is computed by using the forward-backward (FB) algorithm [22], and then the state of SS i with the maximum probability is the prediction of residue i. Both ML and FB algorithms are implemented by using the Bayes Net Toolbox [38].

The neural network
The typical three-layered feed-forward back-propagation architecture is used in our NN-based models. The sliding window-based training and testing strategy are employed with an optimal window size of 15 derived from an empirical evaluation of varying window sizes from 7 to 19. The momentum terms and learning rates of the network are set to be 0.9 and 0.005, respectively, and the number of hidden units is set to be 75. , Training and combinations Training is done in two different ways, depending on datasets involved. For the dataset CB513 and SD576, the standard N-fold cross-validation testing strategy is adopted, where N is either 7 or 10. That is, the dataset is split into N subsets with approximately equal numbers of sequences in each, and then N-1 of them are used for training while the remaining one is used for testing; the process continues N times with a rotation of the testing subset, making sure that every protein sequence is tested once. The second way of training concerns the dataset EVAc6, for which there exists a separate large dataset EVAtrain with low sequence identity (< 25%) to EVAc6. So, it is customary to use EVAtrain as the training set and EVAc6 as the test set.
Note that the DBN and NN models are usually trained on the same training set, in order to make a comparison and to be combined later to form DBNN. However, the detailed training process of DBN is somewhat different from NN, owing to different architectures of the model. The DBN takes two sets of data as input, one for profile and the other for secondary structure; each set is a sliding window with the "current" residue located at the right end. The correlation information between "current" residue and its neighbors is stored in the data, but depends on the direction in which the window slides (from N-terminus to C-terminus or reverse). We actually run the DBN model in both directions and then average the results (see below). On the other hand, the NN takes only one slidingwindow, with the "current" residue located at the center of the window. Finally, the training for DBNN is simple the training of DBN and NN on the same dataset.
When a sequence is selected for either training or testing, the original PSSM generated by PSI-BLAST can be transformed into [0 1] in two strategies: linear transformation [Eq. (3)] or sigmoid transformation [Eq. (4)]. In addition, as mentioned above, the direction from either N-terminus to C-terminus (NC) or the reverse (CN) gives rise to different correlation structure, so we treat them separately. As a result, four basic DBN models are generated corresponding to four above combinations: (i) DBN linear+NC , (ii) DBN linear+CN , (iii) DBN sigmoid+NC , and (iv) DBN sigmoid+CN , where the subscripts are self-explanatory. On the other hand, NN is split into two kinds according to the transformation for PSSM, and the corresponding models are denoted by NN linear and NN sigmoid , respectively.
The six basic models described above are believed to contain complementary information and need to be combined to form three final models. Two strategies for forming the final models are used. The first is a simple averaging of the output scores and is used to form the two architecturebased final models, DBN final and NN final . It is done in two steps. The second strategy consists in using a new neural network, which has the same architecture to basic NN models except that it takes as inputs, the outputs of all the other scores (DBN linear+NC , DBN linear+CN , DBN sigmoid+NC , DBN sigmoid+CN , NN linear , and NN sigmoid ). This final model is named DBNN, and is the one that shows the best performance among the models mentioned above.

Availability
All the codes and datasets described above are available from our homepage [39].