1. Introduction
The solvent-accessible surface area (SASA) of amino acid residues is a fundamental property in protein structure analysis, widely employed for identifying surface residues, predicting binding sites and epitopes, and evaluating protein packing quality [
1,
2]. Conventional SASA calculation methods, such as the Shrake–Rupley algorithm [
3], as implemented in DSSP [
4] or FreeSASA [
5], require full three-dimensional atomic-resolution protein geometries. These approaches are computationally expensive for large-scale applications, including virtual screening and training machine learning models on thousands of PDB structures.
A practical alternative involves empirical functions based on simple graph characteristics, such as node degree in the residue interaction network (RIN). RINs are typically constructed from Cα-Cα distances, where node degree reflects the number of spatial neighbors of a residue—a property closely linked to packing density and inversely correlated with solvent accessibility [
6]. While the correlation between RIN node degrees and SASA values is well-recognized, its practical application requires careful quantification and parameter selection. Here, we investigate two contact graph construction strategies and systematically evaluate their suitability for SASA prediction.
The first approach is a classical Cα-graph with an 8 Å cutoff, where each residue is represented by its Cα atom coordinates, and edges are added when the Cα-Cα distance is <8 Å. This method offers minimal computational overhead and is widely adopted in the literature [
6].
The second approach employs a heavy-atom graph (HAG) with a 5.0 Å cutoff. Here, each residue is represented by the coordinates of all its heavy atoms (C, N, O, S, etc., excluding hydrogens), and edges are added if the minimum distance between any heavy atoms from two residues is <5.0 Å.
For each graph type, we propose and validate three empirical features for estimating a relative SASA: approx_sasa (linear saturation model), surface_score (piecewise linear function), and exp_sasa (exponential model). Formal parameter optimization was performed on an extended dataset of 509 protein structures from the PDB, with a resolution of ≤2.0 Å and an R-factor ≤ 0.25. This ensures statistical reliability and enables assessment of model generalization across diverse protein folds.
We also explore an extended set of 11 topological features derived from the RIN, comprising basic node properties, centrality measures (betweenness, eigenvector, and closeness), and hydrophobic subgraph attributes. Ensemble models (Random Forest and XGBoost) trained on these features using the Leave-One-Structure-Out (LOSO) cross-validation scheme enable precise quantification of the accuracy gains over the empirical formulas.
We compared our approach with graph neural networks (GCN, GAT, and GraphSAGE). These models were trained using a 70/15/15 train/validation/test split with early stopping and hyperparameter optimization.
Building on previous graph-based SASA studies [
6], our work makes three key contributions. First, we systematically compare two fundamentally different graph representations—the classical Cα-graph and the heavy-atom graph (HAG)—providing a comprehensive analysis of their impact on SASA prediction accuracy. Second, we propose and validate a unified framework of three interpretable empirical functions that rely solely on the node degree, offering a combination of speed and interpretability. Third, we provide a large-scale benchmark of machine learning models and graph neural networks on a diverse dataset of 509 structures, establishing clear practical guidelines for method selection based on specific task requirements.
The accurate determination of the SASA has motivated the development of various computational tools and algorithms. Ali et al. [
7] provided a comprehensive review of methods for estimating the SASA in both folded and unfolded proteins, covering classical geometric approaches and their approximations. The widely used NACCESS program [
8] implements the Lee–Richards algorithm for calculating atomic and residue SASAs. More recently, Ribeiro et al. [
9] introduced dr_sasa, a tool for calculating accurate interatomic contact surface areas. Teruel et al. [
10] developed the Surfaces software for quantifying and visualizing interactions within and between proteins and ligands. Ma et al. [
11] developed ARIP, a tool for precise interatomic contact-area and contact-volume calculations, using a contact-area calculation approach derived from dr_sasa, with applications for residue packing and interface analyses. Additionally, Cao et al. [
12] presented dSASA, an exact analytical and differentiable GPU-accelerated method for SASA calculations with derivatives with respect to atomic coordinates, which are particularly relevant for implicit-solvent molecular dynamics simulations and structure optimization. These tools highlight the ongoing importance of accurate SASA estimation in structural biology.
Machine learning methods, including neural networks and ensemble models, have been increasingly applied to predict various protein properties [
13,
14,
15,
16,
17,
18,
19,
20,
21,
22]. Recent advances have further demonstrated the power of graph neural networks and protein language models for direct SASA prediction from three-dimensional structures and sequences [
23,
24,
25,
26,
27], while SASA has also been successfully integrated as a predictive feature in related tasks such as protein interaction site prediction [
28] and protein stability analysis [
29].
However, these approaches often demand substantial computational resources and remain “black boxes,” limiting their interpretability. In contrast, our work focuses on simple, interpretable empirical formulas that rely solely on the node degree in the contact graph, while also comparing them against more complex regression models using an extended set of topological features. We demonstrate that these simple formulas achieve high accuracy with minimal computational overhead and that their parameters can be universally calibrated on a diverse protein dataset. This comparative evaluation of ML methods and graph types provides a systematic framework for assessing trade-offs, guiding practical tool selection in structural bioinformatics.
For the Cα-graph, optimal empirical formula parameters yielded a Pearson correlation of r = 0.711 with a mean absolute error (MAE) of 0.117. In contrast, the HAG-based empirical formulas achieved substantially better performance, with r = 0.813 and MAE = 0.094. The best overall results were obtained with Random Forest on HAG, which attained r = 0.915 and MAE = 0.057, corresponding to a 39% improvement over the best Cα-graph empirical formula (MAE = 0.117) and a 13% improvement over Random Forest on the Cα-graph (MAE = 0.066). GraphSAGE on HAG delivered comparable performance (MAE = 0.0715, r = 0.8917), highlighting the potential of graph neural networks when applied to HAG, whereas GCN and GAT performed considerably worse (MAE = 0.14–0.15, r = 0.51–0.61). In terms of computational efficiency, the empirical formulas required only 0.008 ms per structure (~26,000× faster than FreeSASA), while Random Forest inference took 36.5 ms (~6× faster than FreeSASA). Notably, HAG construction was 21 times more time-consuming than Cα-graph construction.
2. Materials and Methods
2.1. Data
For model validation, we used a dataset of 506 protein structures retrieved from the Protein Data Bank (PDB), all with a resolution of ≤2.0 Å and an R-factor of ≤0.25 (with a small number of exceptions). To ensure dataset diversity, we selected structures spanning a wide range of sequence lengths (from 30 to over 1000 residues; mean = 254 ± 144, median = 220) and structural classes, including α/β, α + β, all-α, and all-β proteins. The dataset resolution ranges from 0.89 to 4.62 Å (mean = 1.78 ± 0.34 Å, median = 1.80 Å). No sequence identity cutoff was applied, as our primary goal was to assess generalization across structurally diverse proteins rather than to avoid redundancy for homology-based inference. The dataset encompasses proteins from diverse sources, including viral proteins (6.3%), enzymes (54.3%), immunoglobulins (0.6%), and other protein classes (38.7%). In total, 128,751 amino acid residues were processed. For each structure, both types of contact graphs (Cα-graph and HAG) were constructed, followed by calculation of node degrees and the extended set of topological features. Ground-truth relative SASA values were computed using the FreeSASA library [
5] and subsequently normalized using maximum SASA values for each amino acid type [
30].
2.2. Construction of Protein Contact Graphs (RINs)
Let protein consist of amino acid residues.
2.2.1. Cα-Graph (Threshold 8 Å)
In the Cα-graph, each residue is represented by the coordinates of its Cα atom. The undirected contact graph
consists of a set of vertices
, with each corresponding to a residue, and a set of edges defined by:
with a threshold distance
. The 8 Å threshold is based on typical Cα-Cα contact distances corresponding to secondary structure packing [
6].
This quantity reflects the number of spatial neighbors of the residue, which is inversely correlated with solvent accessibility.
2.2.2. HAG (Threshold 5.0 Å)
In contrast to the Cα-graph, the HAG represents each residue by the set of coordinates of all its heavy atoms
(i.e., C, N, O, S, etc., excluding hydrogens), extracted directly from PDB files. An edge between two residues is added if the minimum distance between any heavy atoms of these residues is <5.0 Å:
The 5.0 Å cutoff is selected to capture contacts beyond the typical van der Waals range (~3.4–4.5 Å) while remaining sensitive to residue-level packing interactions.
The difference in graph density between the Cα-graph and HAG is illustrated in
Figure 1, which shows contact maps for a representative structure (6 mzk, 476 residues). The Cα-graph contains 1537 contacts, while HAG captures 2218 contacts—a 44% increase—with 1395 contacts (91% more than Cα) arising from side-chain and heavy-atom interactions not captured by the Cα representation. This increase in connectivity reflects the richer information captured by HAG for characterizing residue packing and solvent accessibility.
2.3. Empirical Features
The same three empirical formulas are applied to both graph types, with parameters calibrated independently for the Cα-graph and HAG.
2.3.1. Approx Sasa
The parameter (max_degree) is interpreted as the threshold at which the residue is considered fully packed.
2.3.2. Surface_score
Piecewise linear model:
Here defines the maximum feature value at deg = 0, and
controls the decay rate.
2.3.3. Exp_sasa
This functional form produces smooth, non-linear decay that is characteristic of actual SASA dependence on the number of contacts.
2.4. Calculating the True Relative SASA
The ground-truth relative SASA for each residue was calculated as:
where
is the absolute SASA of residue
i, obtained by summing the contributions of all its atoms using the FreeSASA library [
5], and
is the maximum SASA for the amino acid type tabulated values [
30]. Consequently,
.
2.5. Extended Set of RIN Topological Features
To further enhance prediction accuracy, we computed an extended set of 11 topological features directly from each protein contact graph. These features are organized into three categories: basic topological properties, centrality measures, and hydrophobic subgraph attributes.
2.5.1. Basic Topological Features (6 Elements)
- -
Node degree: the number of contacts of residue
:
- -
Clustering coefficient: a measure of local neighborhood density, defined as:
where N(i) is the set of neighbors of node i, and if .
- -
Average neighbor degree: the mean degree of all neighbors of residue
:
- -
Coreness (k-core number): The maximum
such that the node belongs to a
-core subgraph of the graph:
- -
Local density: the number of residues whose Cα atoms lie within a
radius of the Cα atom of residue
i:
For HAG, this feature is calculated from the same Cα coordinates as for the Cα-graph. This ensures comparability between the two graph types and avoids ambiguity associated with different heavy-atom packing densities.
- -
Normalized distance to protein center:
2.5.2. Centrality (Three Elements: Betweenness, Eigenvector, and Closeness)
Betweenness Centrality
Measures the extent to which a residue lies on the shortest paths between other residues in the graph:
where
is the total number of shortest paths between
s and
t, and
is the number of such paths that pass through
i.
Eigenvector Centrality
Quantifies the influence of a residue based on the centrality of its neighbors:
where
λ is the largest eigenvalue of the adjacency matrix.
Closeness Centrality
Reflects the average shortest path distance from a residue to all other residues in the graph:
2.5.3. Features of a Hydrophobic Subgraph (2 Elements)
Hydrophobic residues (A, V, L, I, M, F, W, Y, P) [
30] form the protein core. To analyze their interactions, a hydrophobic subgraph is constructed
, where
is the set of hydrophobic residues, and the edges
correspond to the same contacts as in the original graph.
Degree in Hydrophobic Subgraph
Clustering Coefficient in Hydrophobic Subgraph
where
.
2.6. Quality Metrics
To evaluate prediction performance, we used the following standard regression metrics:
- -
Pearson correlation coefficient (): measures the linear correlation between predicted and observed values.
- -
Spearman’s rank correlation coefficient (): assesses the monotonic relationship between predicted and observed rankings.
- -
Mean Absolute Error (MAE): the average absolute deviation: .
- -
Root Mean Square Error (RMSE): .
- -
Mean error (bias): the average signed deviation: .
2.7. Optimization of the Parameters of Empirical Formulas
Empirical formula parameters were optimized using the Leave-One-Structure-Out (LOSO) scheme. In each LOSO fold, parameters were calibrated on the training data and then applied to the held-out test structure. The resulting optimal parameters were highly stable (standard deviation = 0) and are summarized in
Table 1.
2.8. ML Models and Validation Scheme
The following regression models were trained to predict the relative SASA using the extended set of 11 topological features:
For linear models, feature standardization was applied. To evaluate generalization performance, we employed the Leave-One-Structure-Out (LOSO) cross-validation scheme, where each protein structure served as the test set exactly once, while the remaining structures were used for training. Quality metrics were averaged across all folds. Models were trained independently for features computed on the Cα-graph and on the HAG.
For Random Forest, we used 100 trees with default hyperparameters (max_depth = None, min_samples_split = 2). XGBoost was configured with 100 trees, a learning_rate = 0.1, and a max_depth = 6. Feature standardization for linear models used StandardScaler with zero mean and unit variance. All models were implemented in Python 3.8 using scikit-learn 1.0 and XGBoost 1.5.
2.9. Graph Neural Networks
For comparison with the ML models, we trained three graph neural network architectures:
GCN (Graph Convolutional Network)—2 layers, 64 hidden neurons.
GAT (Graph Attention Network)—2 layers, 64 hidden neurons, 4 attention heads.
GraphSAGE (Graph Sample and Aggregator)—2 layers, 64 hidden neurons.
All GNN models used the same 11 node features as the ML models. Training was performed using a 70/15/15 train/validation/test split with early stopping (patience = 30), the Adam optimizer (learning rate = 0.001), and mean squared error (MSE) as the loss function. Batch normalization, dropout (0.2), and L2 regularization (5 × 10−4) were applied.
For the final comparison with LOSO-validated ML models, we re-evaluated all GNN architectures using 5-fold cross-validation on protein structures. This scheme provides a more rigorous estimate of generalization performance than a single train/validation/test split, while remaining computationally feasible compared to full LOSO (509 folds).
3. Results
3.1. Optimal Parameters of Empirical Formulas
Calibration on 509 structures showed that the optimal parameters for the Cα graph were M = 12 (approx_sasa), λ = 6.0 (exp_sasa), and a = 1.00, b = 12.00 (surface_score). Notably, for the Cα-graph, the optimized surface_score parameters yielded a function algebraically equivalent to approx_sasa, as reflected by their identical performance metrics (MAE = 0.117, r = 0.711). This indicates that on the Cα-graph, the piecewise linear model collapses to the simpler saturation model. For HAG, the optimal values were M = 13, λ = 6.6, a = 1.25, and b = 9.50. The parameters for HAG shifted towards higher values, reflecting the denser packing in the heavy-atom graph.
3.2. Aggregated Metrics of Empirical Formulas
Table 2 presents the aggregated metrics for all three empirical models, averaged over the 509 structures.
Switching from the Cα-graph to HAG improved approx_sasa by 19% in MAE (from 0.117 to 0.094) and by 14% in correlation (from 0.711 to 0.813).
3.3. Results of ML Models (LOSO)
To estimate the potential accuracy gain from using more complex models, we trained regression algorithms (Linear Regression, Random Forest, and XGBoost) on the extended set of RIN topological features. Training and validation were performed using the Leave-One-Structure-Out (LOSO) scheme on the same set of 509 structures. Comparison results for the Cα-graph and HAG are shown in
Table 3.
Random Forest on HAG achieved the best performance, with MAE = 0.057 and Pearson r = 0.915, representing a 13% improvement over Random Forest on the Cα-graph (MAE = 0.066) and a 39% improvement over the best empirical formula on the Cα-graph (MAE = 0.117).
3.4. Comparison with Graph Neural Networks
To ensure a fair comparison with the LOSO-validated ML models, we re-evaluated the GNN architectures using 5-fold cross-validation on protein structures.
Table 4 presents the results. GraphSAGE on HAG achieved the best performance among GNNs, with MAE = 0.076 ± 0.002 and Pearson r = 0.878 ± 0.008, approaching the performance of Random Forest (MAE = 0.057 ± 0.033, r = 0.915 ± 0.080) while being substantially faster (2.68 ms per structure). GCN and GAT performed considerably worse (MAE > 0.13, Pearson r < 0.65).
3.5. Analysis of the Importance of Features
To interpret the contribution of each feature to SASA prediction, feature importance analysis in the Random Forest model was performed (
Table 5). Importance was quantified as the mean decrease in impurity at each tree split. We additionally computed permutation importance, which yielded rankings consistent with the impurity-based analysis, confirming that degree, betweenness, and local density are the most informative features for SASA prediction.
The largest contributors in both graphs were the node degree, local density, and average neighbor degree.
A key observation is that betweenness centrality was the second most important feature on HAG (15.8% vs. 11.4% on the Cα-graph), reflecting the more complex topology of the heavy-atom graph and its greater informativeness for characterizing the global role of a residue in the protein structure.
Combined centrality measures (betweenness, eigenvector, closeness) accounted for approximately 18% of the total importance on the Cα-graph and 22% on HAG, while hydrophobic subgraph features contributed approximately 11% and 13%, respectively.
3.6. Computational Efficiency
Table 6 compares the computation times for different methods on the dataset of 509 structures. Measurements were performed on a PC with an Intel Core i7-1165G7 processor (Python 3.8) and were averaged over three repetitions.
Empirical formulas were computed in 0.008 ms per structure (~26,000× faster than FreeSASA). Random Forest inference required 36.5 ms (~6× faster than FreeSASA). GraphSAGE inference was faster than Random Forest (2.68 ms) but inferior in accuracy.
3.7. Summary of All Approaches
Table 7 summarizes the results of comparing all studied approaches.
4. Discussion
4.1. Comparison of Cα Graph and HAG: Accuracy
Transitioning from the Cα-graph to HAG consistently improved accuracy across all methods. For empirical formulas, the Pearson correlation increased by +0.10 (from 0.711 to 0.813), while MAE decreased by 19% (from 0.117 to 0.094). For Random Forest, the correlation gain was +0.025 (from 0.890 to 0.915), with a 13% reduction in MAE (from 0.066 to 0.057). For GraphSAGE, the correlation improved by +0.051 (from 0.841 to 0.892), and MAE decreased by 20% (from 0.090 to 0.072). This improvement can be attributed to three factors: the explicit representation of side-chain atoms, the lower distance threshold (5.0 Å vs. 8.0 Å), and the resulting wider degree range.
4.2. Comparison of the Cα-Graph and HAG: Computational Efficiency
While HAG provides superior accuracy, this improvement comes at a computational cost. HAG construction is approximately 21 times slower than Cα-graph construction (279.5 ms vs. 13.3 ms per structure on average) due to the need to compute pairwise distances between all heavy atoms across residues. This trade-off should be considered when selecting the appropriate graph type for a given application.
In terms of model inference, GraphSAGE on HAG, validated with 5-fold cross-validation, achieved MAE = 0.076 ± 0.002 and Pearson r = 0.878 ± 0.008, demonstrating that graph neural networks can be effective when applied to HAG. While this performance approaches that of Random Forest (MAE = 0.057 ± 0.033, r = 0.915 ± 0.080), Random Forest retains a clear accuracy advantage. GCN and GAT performed considerably worse (MAE > 0.13, Pearson r < 0.65), which may be attributed to their limited ability to aggregate information in dense graphs.
Thus, GraphSAGE on HAG can be considered a viable deep learning alternative to Random Forest when inference speed is prioritized. However, Random Forest remains the preferred choice due to its superior accuracy and inherent interpretability. The choice between these approaches ultimately depends on the specific requirements of the task at hand, balancing speed, accuracy, and interpretability needs.
Inference speed comparison:
Random Forest (HAG): 36.5 ms per structure (~6× faster than FreeSASA).
GraphSAGE (HAG): 2.68 ms per structure (~77× faster than FreeSASA).
This speed advantage makes GraphSAGE particularly attractive for large-scale screening applications where thousands or millions of structures must be processed.
4.3. Selection of Optimal Parameters of Empirical Formulas
Optimization on the 509-structure dataset revealed a systematic shift in parameters toward higher values for HAG: M = 13, λ = 6.6 (vs. 5.4), and a = 1.25, b = 9.50 (vs. a = 1.5, b = 5.5). This shift reflects the denser packing inherent to the heavy-atom graph.
4.4. Practical Recommendations
Based on this analysis, we propose the following practical recommendations (
Table 8).
Table 9 summarizes the practical recommendations for method selection based on the primary performance priorities.
4.5. Biological Implications and Potential Applications
Accurate SASA prediction has direct implications for several biological applications. Surface-exposed residues are critical for protein–protein interactions, ligand binding, and antibody epitope recognition. The high accuracy of our Random Forest model on HAG (MAE = 0.057, r = 0.915) suggests that it could be reliably used to prioritize surface residues for epitope mapping or binding site prediction in large-scale structural screens. The empirical formulas, while less accurate, offer a speed advantage (0.008 ms per structure) that makes them suitable for real-time applications such as protein design or molecular dynamics trajectory analysis, where rapid SASA estimation is required for thousands of conformational snapshots. The feature importance analysis (
Table 5) reveals that betweenness centrality is particularly informative on HAG, suggesting that graph-theoretic properties beyond simple contact counts capture biologically relevant aspects of residue packing and solvent exposure.
4.6. Trade-Off Between Speed and Accuracy: GraphSAGE as an Alternative to Random Forest
To ensure a fair comparison with the LOSO-validated ML models, we re-evaluated the GNN architectures using 5-fold cross-validation on protein structures. This validation scheme provides a more rigorous estimate of generalization performance than the single split used in our preliminary analysis. The results confirm that GraphSAGE on HAG remains the best-performing GNN architecture, with MAE = 0.076 ± 0.002 and Pearson r = 0.878 ± 0.008.
The inference time comparison reveals a clear accuracy–speed trade-off. Random Forest on HAG achieves the highest accuracy (MAE = 0.057 ± 0.033, r = 0.915 ± 0.080) but requires 36.5 ms per structure (~6× faster than FreeSASA). GraphSAGE on HAG shows a modest accuracy drop (MAE = 0.076 ± 0.002, r = 0.878 ± 0.008) while being substantially faster—2.68 ms per structure, which is 13.6× faster than Random Forest and ~77× faster than FreeSASA. Thus, GraphSAGE on HAG is preferable for large-scale screening applications where inference speed is critical, whereas Random Forest on HAG remains the best choice when maximum accuracy is required.
4.7. Restrictions
The main limitation of both approaches is their reliance solely on contact information, without explicitly accounting for interaction types (e.g., hydrogen bonds, ionic pairs, hydrophobic contacts). This may lead to inaccuracies for irregularly packed residues or in structures containing ligands or ions.
For HAG, an additional limitation is the substantial increase in graph construction time (21×), which makes it less suitable for large-scale screening tasks involving tens of thousands of structures.
For ML-based approaches, the primary limitation is the loss of interpretability and the dependence on pre-training on a representative dataset. While feature importance analysis (
Table 5) partially mitigates this issue, the full interpretability offered by empirical formulas remains unattainable.
A further limitation concerns the comparison between ML models and GNNs: while ML models were validated using LOSO (509 folds), GNNs were evaluated with 5-fold cross-validation due to computational constraints. While both schemes provide robust estimates of generalization performance, they are not identical. Future work will address this by implementing LOSO for GNNs or using larger datasets to enable k-fold CV with more folds.
Although LOSO cross-validation provides a robust estimate of generalization performance, validation on an independent external dataset would further strengthen the conclusions. This remains a direction for future work.