Next Article in Journal
Microstructure of Mortar with Ballast Waste as a Cement Replacement
Previous Article in Journal
Predictive Current Control of a Five-Phase Drive Using a Lead-Pursuit Strategy and Virtual Voltage Vectors
Previous Article in Special Issue
A Spatiotemporal-Adaptive-Network-Based Method for Predicting Axial Forces in Assembly Steel Struts with Servo System of Foundation Pits
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predicting Clay Swelling Pressure: A Comparative Analysis of Advanced Symbolic Regression Techniques

Department of Civil Engineering, University of Alicante, P.O. Box 99, 03080 Alicante, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(10), 5603; https://doi.org/10.3390/app15105603 (registering DOI)
Submission received: 11 April 2025 / Revised: 11 May 2025 / Accepted: 13 May 2025 / Published: 16 May 2025
(This article belongs to the Special Issue Applications of Machine Learning in Geotechnical Engineering)

Abstract

:
Swelling pressure is a key geotechnical property that influences the behaviour and stability of engineering structures built on expansive clayey soils. This pressure can be measured directly through laboratory tests or estimated using indirect methods. This paper analyses a dataset of undisturbed clay samples from southeastern Spain using advanced symbolic regression techniques, namely: deep symbolic regression (PhySO), high-performance symbolic regression (PySR), multi-objective symbolic regression (MOSR), and physics-guided symbolic regression (PGSR). These methods provide interpretable results as equations, unlike standard machine learning models. All generated equations showed high performance (R2 > 0.91 and MAE < 23 kPa) and simplicity, making them suitable for practical engineering applications. PySR yielded the best overall metrics (R2 = 0.933, MAE = 20.49 kPa), particularly excelling in high-pressure ranges, while PhySO demonstrated the most balanced performance, especially for low to medium pressures. MOSR minimized edge-case bias, and PGSR, despite lower overall performance, remained competitive. The plasticity index (PI) was identified as the most influential factor in all models, followed by the percentage of fines. The use of undisturbed samples enhanced the reliability of the findings, and the resulting equations enable a flexible estimation of swelling pressure based on commonly available geotechnical parameters.

1. Introduction

Swelling pressure (ps) is a critical parameter in various fields, including geotechnical engineering [1]. It refers to the pressure exerted by a material when it expands upon absorbing a fluid, usually water. This phenomenon is particularly significant in the context of expansive soils, which can undergo substantial volume changes due to variations in moisture content. Expansive soils can pose significant economic costs due to their swelling and shrinking behaviours. These changes can lead to structural damage in buildings and infrastructure, resulting in a remarkably high cost, with the annual global expenditure on repairs estimated to reach several billion dollars [2,3]. Sabtan [4] indicated that the swelling behaviour is primarily influenced by the combined effect of several interacting factors, which can be categorized as: (a) local geology; (b) engineering properties; and (c) local environment of deposition. Geological factors encompass the rock type and age, which are related to the type and quantity of clay minerals, the type and amount of cementing material, and the arrangement of soil particles. Engineering factors include moisture content, Atterberg limits, and dry density. Environmental factors involve confining pressure, weathering type and degree, clay fraction content, initial water content, and water chemistry. While the swelling potential is influenced by geological and engineering factors, the amount and rate of swelling are governed by environmental conditions.
Expansive soils are widely distributed throughout the world, although they are especially abundant in arid zones, where conditions are suitable for the formation of clayey minerals of the smectite group such as montmorillonite or some types of illites [5]. In geotechnical practice, the determination of ps is crucial for designing foundations and retaining structures, tunnels, and other geotechnical structures. Accurate predictions can facilitate the implementation of appropriate engineering measures to mitigate its effects and reduce costs in engineering projects [6,7]. There are different techniques applicable in this type of soil to mitigate its potential volume changes, essentially involving the addition of a stabilizing material (e.g., refs. [8,9,10,11]). Various laboratory tests, such as the oedometer test and the triaxial test, are commonly employed to directly measure ps [12]. However, there are numerous correlations available that relate ps to other easily obtainable geotechnical parameters [13]. Many researchers have extensively investigated the factors influencing soil swelling and have attempted to establish relationships between soil properties, including clay content, dry unit weight, water content, liquid limit, and plasticity index (e.g., refs. [4,14,15,16,17,18,19]). In the face of these challenges, the application of machine learning (ML) techniques can offer promising opportunities for advancing the understanding of clay swelling [20]. ML models can handle the complexity of the swelling process, making them powerful tools for predicting ps based on a range of input parameters (e.g., refs. [21,22,23]). Gahlot et al. [24] provided a comprehensive review of the ML methods applied to obtain ps. However, it is important to note that most traditional statistical correlations and existing ML algorithms are based on datasets of remoulded clay samples, where the soil structure is altered during both the extraction process and the compaction for testing. This reliance on remoulded samples may not accurately represent the behaviour of undisturbed soils, potentially limiting the applicability of these models to in situ soil conditions. Numerous studies (e.g., ref. [25]) have shown that correlations derived from remoulded samples can differ significantly from those based on undisturbed samples, highlighting the need for caution when applying such models to natural soil conditions.
Although effective, ML models often lack transparency (black boxes), posing challenges for specific applications or when dealing with new data categories. As a result, efficient analytical formulas and algorithms could be preferred [26]. Symbolic regression (SR), a machine learning approach, aims to automatically discover formulas that capture correlations within a given dataset [27], offering models in the form of easily understandable mathematical equations. While it has traditionally been implemented using Genetic Programming [28], alternative approaches also exist. These include deterministic methods that systematically explore the space of mathematical expressions, deep learning-based techniques, transformer-based methods, and hybrid algorithms that combine multiple strategies to enhance the efficiency and accuracy of SR, among others. SR has been used in geological and geotechnical engineering [29,30,31,32] and, specifically, to obtain ps [33] with satisfactory results.
Despite the increasing number of studies addressing the prediction of ps using empirical or machine learning approaches, several critical gaps remain. Firstly, most existing correlations are based on remoulded samples, which fail to reflect in situ conditions and may lead to misleading predictions. Secondly, widely used ML models often operate as black-box systems, lacking interpretability and offering limited insight into the influence of input parameters. Lastly, few studies have explored the use of SR algorithms that produce simple, physically meaningful equations while maintaining high predictive accuracy.
In response to these limitations, this study aims to explore the capabilities of SR as a tool to discover patterns in complex datasets in order to synthesize simple equations that allow engineers to estimate the ps value in clayey soils with the same characteristics as those studied here, with a high degree of reliability. To achieve this, it is only necessary to know some easily obtainable index properties, such as: liquid limit (LL), plasticity index (PI), dry density (γd), percentages passing through a 0.075 mm sieve, and natural water content (w). Additionally, the most influential input variables on the final value of ps were evaluated.

2. Study Area

In Spain, expansive soils cover approximately 30% of the territory and primarily belong to the montmorillonite group [34]. Additionally, 67% of the country is located in climates where significant moisture changes can occur in the soil, with dry periods ranging from two to eight months [35]. The study area is located in the southeastern region of Spain, specifically in the provinces of Murcia and Almería. Figure 1 presents the potential swelling risk map of Spain [35] along with the locations of the two primary sample sources used in this study. The samples were obtained in the context of different engineering projects, including road infrastructures, slope stability works, building structures, and foundation reinforcements for existing structures. As such, they are disseminated. In this way, the study areas were defined based on whether the samples belong to geotechnical units exhibiting similar swelling behaviours, according to the potential ranges established in Figure 1. As can be observed, the studied areas fall into the category of expansive clays with a moderate to high swelling potential (expected ps between 125–300 kPa) and high to very high potential (expected ps upper than 300 kPa). They consist of clayey–marly soils with medium-to-high plasticity and contain clays from the montmorillonite group, belonging to Neogene materials. According to the authors’ experience, they can achieve relatively high ps values (above 400 kPa).
In the study area, there are numerous cities, as well as associated structures, roads, railway lines, and slopes. If adequate measures are not taken, all of these may experience pathologies due to cyclic swelling and shrinkage. Specifically, buildings can suffer differential settlement, triggering diagonal or stair-step cracks in walls and foundation displacement, particularly in lightweight structures with shallow footings. Slopes develop vertical or subvertical desiccation cracks during droughts, followed by superficial landslides upon wetting due to a reduction in shear strength. Roadways develop longitudinal cracks parallel to the direction of traffic due to differential heave between the centreline and shoulders. Concurrently, edge uplift occurs along rigid boundaries (e.g., medians, curbs) caused by moisture-induced swelling pressure gradients. In concrete pavements, differential heave or settlement causes edges or corners of the concrete slabs to lift or sink, creating uneven surfaces. This process induces cracks at slab edges or joints, as well as mid-slab longitudinal cracking, along with minor associated transverse cracks. Figure 2 shows damage in recently constructed structures on expansive clays, where the authors were involved in structural rehabilitation and underpinning work. In Figure 2a, typical cracks associated with soil expansion and shrinkage phenomena are observed, in this case at a 45° angle, with a crack monitor to track movement. Figure 2b presents a similar case, but with more severe damage due to the combined effect of highly expansive clays and construction defects. In Figure 2c,d, it can be seen how swelling affects the lighter parts of the structure such as rigid concrete floor slabs and garage slabs in direct contact with expansive clays.
This is, therefore, a very common problem that needs to be anticipated, with ps being the most important parameter for its assessment. Likewise, when implementing the necessary reinforcement measures (e.g., underpinning), ps remains the key soil-related factor for their design.

3. Experimental Studies

A total of 181 undisturbed clay samples were collected. These samples were tested in a laboratory, obtaining various geotechnical parameters, including LL, PI, γd, percentages passing through a 0.075 mm sieve, w, and ps. A series of standardized tests were conducted to characterize these soil properties, including particle size distribution by sieving (UNE [36] equivalent to ASTM [37]), Atterberg liquid limit using the Casagrande method (UNE [38] equivalent to ASTM [39]), Atterberg plastic limit (UNE [40] equivalent to ASTM [39]), natural moisture content (UNE [40] equivalent to ASTM [37]), and determination of density of soil specimens [41]. Once these tests were completed, the soils were classified according to the Unified Soil Classification System (USCS) [42]. Finally, ps in the oedometer was determined using undisturbed soil samples following UNE [43] which aligns with Method C of ASTM [44], ensuring a constant sample volume. The test involves placing a soil specimen (50 mm in diameter and 20 mm in height) in an oedometer cell and saturating it while preventing any increase in volume. Lateral confinement ensures that the sample maintains its initial pre-saturation volume. To counteract potential swelling, vertical stress is progressively applied in small increments over time. Equilibrium is considered reached when no significant variation in the specimen’s volume is observed. At this point, the final vertical stress balances the ps, with no vertical displacement of the sample and its height maintained within ±0.01 mm. The vertical stress required to maintain constant specimen height after inundation is defined as the ps.

4. Collected Database and Statistical Analysis

A comprehensive and detailed dataset consisting of 181 data points was created for the development of predictive models. The independent variables were selected according to two key criteria: (1) they represent standard geotechnical index properties routinely measured in site investigations, and (2) they have been established as significant factors influencing swelling pressure, as discussed in the Section 1 based on the existing literature. Prior to modelling, a statistical analysis was conducted to understand the behaviour and relationships of the input variables in the dataset. The goal was to evaluate their distribution, variability, and possible interdependencies and to identify any multicollinearity or redundancies that might affect model interpretation. Table 1 provides descriptive statistics for all the input parameters analysed in this study. It includes measures of central tendency, dispersion, and distribution characteristics. In Figure 3, the distribution histograms of the parameters considered are depicted. Table 1 and Figure 3 provide a detailed understanding of the characteristics of the clayey soils included in the dataset, making it easier to interpret their properties.
The soil fraction below #0.075 mm has an average of 81.2% with a standard deviation of 20.2%, indicating a notable level of variability. Additionally, its mode is 100%, indicating that a considerable number of samples were composed almost entirely of fine-grained material. Regarding the LL, a nearly symmetric distribution with a mean of 51.3% is observed, accompanied by a moderate level of variability (standard deviation of 16.3%). PI shows a slight right skew with a mean of 27.3% and moderate variability. Natural water content (w) exhibits relatively low variability with a mean of 23.9%. The variable γd demonstrates a symmetric distribution and relatively low variability. Lastly, the ps shows a right-skewed distribution with a mean of 163.0 kPa and a median of 149.2 kPa. The high variability in the data is indicated by a standard deviation of 105.7 kPa.
Next, all soils were classified according to the USCS. The results of this classification are presented in Table 2. In addition, Figure 4 presents the distribution of the 181 undisturbed soil samples on the Casagrande plasticity chart, with colour intensity representing sample density. Most samples are concentrated above the A-line, corresponding predominantly to clays of medium to high plasticity (CL and CH, according to the USCS). A dense cluster can be observed between LL values of 30 and 60% and PI values of 12–32%, indicating a dominance of plastic clayey soils. Only a few samples (approximately 20%) fall below the A-line, within the silt categories (ML or MH). Specifically, the results of this classification indicate that 143 samples correspond to clays (C), 48 to silts (M), 93 to high-plasticity soils (H) (LL ≥ 50), and 50 to low-plasticity soils (L) (LL < 50). Moreover, according to Chen’s [45] criteria, 102 of these samples would be classified as moderately expansive and 51 as highly expansive.
In summary, the dataset covers a wide range of geotechnical conditions representative of expansive soils in southeastern Spain. According to their index properties, the soils span low- to high-plasticity ranges and include both clays and silts, as confirmed by the subsequent USCS classification. This variety of properties supports the generalizability and robustness of the proposed models.
Next, p-values and Variance Inflation Factor (VIF) for the predictive variables were calculated (Table 3). The p-value represents the probability that the observed relationships between the independent variables and the dependent variable occurred by chance. A lower p-value indicates a statistically significant effect, typically below a threshold of 0.05. VIF measures multicollinearity among independent variables, with values above 10 suggesting a high degree of correlation. In the analysis, the p-values for the percentage of soil passing #0.075 mm, LL, PI, and γd were well below 0.05, indicating that these variables had a statistically significant impact on the dependent variable. Conversely, w presented a high p-value (0.852), suggesting it is not significantly contributing to the model. The VIF values indicated strong multicollinearity, particularly for LL and the percentage of soil passing #0.075 mm, as these properties are related to most of the others.
Additionally, the correlation matrix between the variables of the dataset is presented in Figure 5, using the Pearson correlation coefficient (r) and the Spearman coefficient. These correlation matrices revealed critical insights about the relationships between soil properties and ps. Pearson correlations indicate linear dependencies, while Spearman correlations capture monotonic relationships, providing a comprehensive view of variable interactions.
For the target variable (ps), both matrices showed consistently strong associations, though with notable differences in magnitude. PI exhibited the highest correlation with ps in both methods, suggesting PI is the most reliable predictor. LL also showed strong positive correlations, reinforcing its importance in swelling prediction models. Water content demonstrated moderate correlations, indicating a secondary role in swelling behaviour, as well as showing a moderate to high correlation with the percentage of soil passing #0.075 mm and a very high p-value. γd showed a weak negative correlation with ps, which may justify its inclusion as a secondary predictor, especially considering its low correlation with the other variables. The percentage of soil passing #0.075 mm presented moderate positive correlations, though the Spearman coefficient is notably lower, suggesting the relationship may involve nonlinear components.

5. Methodology

This section details the methodological framework adopted in the study, encompassing SR algorithms and sensitivity analysis techniques.

5.1. Deep Symbolic Regression

Petersen et al. [46] introduced a deep symbolic regression framework using reinforcement learning (RL) to recover symbolic functions in noisy environments. Building on this, Tenachi et al. [47] developed the Physical Symbolic Optimization (PhySO) framework, which combines deep RL and recurrent neural networks (RNNs) to derive analytical symbolic expressions from physical data while maintaining unit consistency. PhySO can use dimensional analysis to narrow the search space, ensuring that generated expressions align with physical principles.
Unlike conventional SR methods [27], which disregard physical units, PhySO ensures dimensional homogeneity by imposing constraints during equation generation. The PhySO process begins with data acquisition, followed by candidate symbolic expression generation using RL and RNNs. These expressions are structured as binary trees, with each node representing predefined elements, tokens, such as variables, operators, and constants. PhySO encodes these elements as categorical tokens and formulates expressions in prefix notation.
To optimize the search, PhySO evaluates symbolic expressions through a reinforcement learning approach, assigning rewards based on equation accuracy and unit consistency. The reward function balances accuracy (measured by Normalized Root Mean Square Error (NRMSE)) and simplicity, promoting models that are both precise and simple, avoiding overfitting. PhySO’s strategy uses a risk-seeking policy and entropy regularization, reinforced by the Adam optimizer. The network architecture relies on Long Short-Term Memory (LSTM) networks, which process input data sequentially and adjust probability distributions over actions. A masking mechanism filters invalid operations to ensure unit consistency.

5.2. High-Performance Symbolic Regression

High-performance symbolic regression (PySR) [48] is an evolutionary algorithm designed to search for mathematical expressions that best fit a dataset. PySR explores a large space of potential equations to uncover interpretable relationships, following an evolve–simplify–optimize loop that refines candidate equations by optimizing unknown scalar constants. PySR uses a tournament-style evolutionary algorithm with selection, crossover, and mutation processes to evolve expressions represented as tree structures. It employs a multi-population strategy, where separate populations evolve in parallel, occasionally exchanging candidate expressions to enhance diversity. The “hall of fame” stores the best solutions, serving as a reference for future generations. The algorithm utilizes regularized evolution [49,50], simulating natural selection to breed new expressions by subsampling the fittest candidates. The score metric evaluates trade-offs between accuracy gain and complexity. A key feature of PySR is explicit constant optimization using the Broyden–Fletcher–Goldfarb–Shanno algorithm, enabling fine-tuning of numerical parameters. An adaptive complexity penalty prevents overfitting, favouring simpler models when accuracy differences are negligible. PySR balances predictive performance with interpretability by using mean square error (MSE) and complexity metrics. It visualizes the trade-off between accuracy and complexity through Pareto fronts, ensuring models remain interpretable and effective across various fields, such as physics, engineering, and data-driven scientific discovery.

5.3. Multi-Objective Symbolic Regression

Multi-objective symbolic regression (MOSR) enhances traditional SR by optimizing multiple criteria simultaneously, rather than just focusing on prediction error. This approach addresses the issue of overly complex expressions that may not generalize well, offering a better balance between accuracy, simplicity, and interpretability. This work used a MOSR algorithm [51,52] built upon the Non-dominated Sorting Genetic Algorithm II (NSGA-II) [53], an selective multi-objective genetic algorithm where program ranking is based on non-dominance criteria and crowding distance metrics. Unlike single-objective approaches, which prioritize a single metric such as prediction accuracy, MOSR optimizes for both prediction accuracy and complexity simultaneously, ensuring that the resulting expressions are both accurate and interpretable. The algorithm sorts solutions based on Pareto optimality, where non-dominated solutions are assigned to the first Pareto front and subsequent fronts are populated with solutions that are less optimal but still offer useful trade-offs. The crowding distance metric promotes diversity in the population, encouraging a more thorough exploration of the solution space. To handle constants within expressions, the algorithm includes a local optimization procedure. This process uses a single-neuron neural network where the expression itself acts as the activation function, and constants are optimized using the Adam optimizer [54] with a binary cross-entropy loss function. This integration of genetic programming with gradient-based optimization enhances the search for more accurate and interpretable mathematical expressions.

5.4. Physics-Guided Symbolic Regression

Physics-guided symbolic regression (PGSR) incorporates physical principles and domain knowledge to guide the search for mathematical expressions. AI Feynman 2.0 [55,56] exemplifies this approach by combining neural network fitting with physics-inspired techniques, such as dimensional consistency, low-order polynomial structure, and compositionality. The process begins with dimensional analysis, using the Buckingham π-theorem to convert input variables into dimensionless quantities, ensuring unit consistency. If this step does not work, the algorithm reverts to the original problem setup. Next, polynomial regression is applied to fit low-degree polynomials to the data, assuming many physical relationships follow such patterns. When polynomial fitting is insufficient, the algorithm performs a combinatorial search over a restricted set of mathematical operators and functions, prioritizing simple expressions based on dimensional homogeneity and smoothness. If needed, neural networks analyse residuals to identify latent properties such as symmetry or separability, breaking down complex functions into simpler components. The algorithm recursively applies the entire pipeline to these subproblems, ensuring dimensional consistency and smoothness at each stage.

5.5. Sobol Sensitivity Analysis Method

The Sobol method [57] is a global sensitivity analysis technique that quantifies the influence of each input variable and their interactions on a model’s output. Based on variance decomposition, it assigns indices that measure both individual (first-order) and combined (second-order and total) effects. First-order sensitivity indices (S1s) measure the effect of each variable individually, while keeping all other variables constant. Total-order sensitivity indices (STs) measure the total effect of each variable on the output, including both its individual effect and its interactions with other variables. In this way, higher-order effects can be obtained by calculating the difference between both indices (ST-S1). The Sobol method is particularly useful for nonlinear models or those with multiple parameters, as it provides a comprehensive understanding of the system’s behaviour. Widely used in scientific simulations and engineering, it helps identify the most influential variables and can assist in reducing model complexity.

5.6. Comparative Overview of the Symbolic Regression Techniques

The four SR methods employed in this study follow different paradigms, offering complementary strengths. PhySO relies on deep reinforcement learning with physical constraints, ensuring unit consistency and physically meaningful equations. PySR, in contrast, uses a high-performance evolutionary algorithm focused on accuracy–simplicity trade-offs, with explicit constant optimization. MOSR is a multi-objective genetic programming approach, optimizing simultaneously for accuracy and complexity while encouraging diverse solutions. PGSR integrates symbolic regression with physics-guided heuristics, such as dimensional analysis and low-degree polynomial fitting. While PhySO and PGSR prioritize physical consistency through embedded constraints or analytical strategies, PySR and MOSR focus more on evolutionary discovery and computational efficiency. This methodological diversity enables a robust evaluation of SR capabilities and allows for contrasting equation forms and variable sensitivities in the predictive models. To complement the comparative overview, Figure 6 provides a schematic representation of the core computational structure of each symbolic regression method discussed.

6. Results and Discussion

A consistent random seed was applied to divide the dataset into 70% for training and 30% for testing, ensuring reproducibility in the model evaluation. In engineering applications, it is often essential to maximize predictive accuracy while keeping the resulting expressions simple; however, these objectives can be at odds. To derive the final equations, each symbolic regression algorithm was trained through multiple iterations, progressively increasing the allowed complexity. In each case, a pool of candidate formulas was generated and assessed based on a trade-off between predictive performance and simplicity. To avoid overfitting and ensure model interpretability, complex or higher-order terms were penalized or excluded. The final expressions were chosen by comprehensively evaluating each candidate for both predictive performance and structural simplicity. The results of this process were the formulas included in Table 4.
To ensure reproducibility, the main hyperparameters adopted for each model were included in Table A1, Table A2, Table A3 and Table A4. Hyperparameters not listed were those set by default in each model and therefore not modified. As much as possible, all algorithms were restricted to the use of basic operators: addition, subtraction, multiplication, division, exponentiation, square root, and logarithm, excluding more complex ones.
For the application of these equations, it is important to consider the input units, which are LL, PI, w, and #0.075 mm in % and γd in kN/m3, yielding ps in kPa. Additionally, the ranges in which the algorithms were trained must be taken into account, as predictions outside these ranges may be unrealistic. The following are the ranges:
  • Pass #0.075 mm (%): ≥28.2 and ≤100.0.
  • LL (%): ≥27.7 and ≤85.1.
  • PI (%): ≥7.9 and ≤57.8.
  • w (%): ≥8.9 and ≤49.1.
  • γd (kN/m3): ≥13.0 and ≤19.2.
  • ps (kPa): ≥17.2 and ≤514.2.
The parameters selected by each SR algorithm were different, except for PySR and MOSR, which selected the same parameters (all except w). This provides an advantage, as it enables the use of the equations depending on the available parameters. Natural water content was included in only one of the four equations (PGSR), in line with the findings of the statistical analysis conducted previously. It is normal not to observe a clear impact due to the undisturbed nature of the samples, as each sample has varying levels of water content and saturation.
Figure 7 presents scatterplots illustrating the relationship between the actual values of ps (x-axis) and the predicted values of ps (y-axis) for the four SR algorithms considered. The analysis demonstrated that a significant portion of the data points lay in close proximity to the identity line and were mostly located within the error range of ±15%, indicating a strong agreement between the predicted and actual values. This suggests that the models performed well in accurately predicting ps, with minimal deviation from the true values. The residuals (defined as the difference between the real and predicted values) are also shown in Figure 6, revealing that PhySO, MOSR, and PGSR slightly underestimated the predictions (mean residuals +3.20, +1.2, and +5.64 kPa, respectively), while PySR demonstrated near-zero bias (−0.16 kPa). PySR also exhibited the lowest standard deviation (STD) among the models (27.34 kPa), whereas PGSR showed the highest dispersion (STD = 30.94 kPa). Considering this global analysis, PySR emerged as the most robust model, exhibiting minimal bias and the lowest variability in residuals.
Based on the same residual and prediction data shown in Figure 7, a comparative summary of model performance was constructed using standard evaluation metrics, as shown in Figure 8. The evaluated metrics included Mean Absolute Error (MAE), Coefficient of Determination (R2), Mean Absolute Percentage Error (MAPE), Root Mean Square Error (RMSE), Root Mean Square Logarithmic Error (RMSLE), and Explained Variance (EVS). The results of this analysis are included in Figure 8 as a radar chart. The performance analysis of the four models revealed differences across the considered metrics. PySR exhibited superior accuracy, with the lowest MAE (20.49 kPa) and RMSE (27.34 kPa), alongside the highest R2 (0.933) and EVS (0.933), indicating a strong ability to capture data variability. PhySO, with an MAE of 20.66 kPa and RMSE of 29.63 kPa, performed competitively and achieved the lowest MAPE (13.95%) and a low RMSLE (0.174), making it particularly reliable in terms of relative errors. PhySO prioritized relative accuracy and performance across different data scales, while PySR optimized overall accuracy more effectively and demonstrated greater robustness against outliers. MOOSR displayed intermediate results, with an MAE of 21.47 kPa and RMSE of 30.54 kPa, and lower R2 (0.916) and EVS (0.917), indicating that it explained less variance compared to PySR and PhySO. The PGSR model registered the highest error levels, MAE (22.65 kPa), RMSE (31.45 kPa), MAPE (16.60%), and RMSLE (0.205), along with the lowest R2 (0.911) and EVS (0.914), suggesting it was less effective in capturing data variability. In summary, while all models demonstrated reasonable predictive capabilities, PySR and PhySO led in accuracy and consistency, with MOOSR being moderately effective and PGSR performing in a less robust manner.
After completing the global analysis, a comparative analysis of the four SR regression models was conducted across different ranges of ps. The dataset was then divided into several ranges of ps: below 100 kPa, between 100 and 200 kPa, and above 200 kPa. For this analysis, MAPE, MAE, the mean, and the STD of the residuals were calculated. The results of this analysis are presented in Figure 9.
This analysis revealed distinct strengths for each model depending on the ps interval. PhySO showed the best overall performance in relative terms, achieving the lowest MAPE on the full dataset and in the 100–200 kPa range (12.96%), and nearly the best in the <100 kPa segment. It also recorded the lowest residual STD in the <100 kPa range (8.27 kPa) and was close to the best in the 100–200 kPa range, indicating high precision at low to mid ps. However, it exhibited notable bias in the extreme pressure ranges, particularly in >200 kPa (mean residuals = 18.20) and <100 kPa (−3.36 kPa), and its dispersion at high ps (STD = 42.06 kPa) was among the highest. PySR minimized global bias most effectively (mean residuals = −0.16 kPa) and achieved the lowest MAPE (11.81%) and STD (37.79 kPa) in the ≥200 kPa range, making it particularly well-suited for high ps applications. However, its performance in the <100 kPa range was not among the best, with the second highest MAPE (20.88%) and residual bias (−4.60 kPa). MOSR was the most robust in reducing residual bias at the extremes, with near-zero mean residuals in <100 kPa (−0.74 kPa) and the best bias in ≥200 kPa (9.36 kPa). Its MAPE in the low-pressure range (16.45%) was better than that of PhySO and PySR, although very close to PhySO. However, it exhibited high dispersion in the >200 kPa range (STD = 45.24 kPa) and demonstrated good performance in the 100–200 kPa range. PGSR demonstrated limited strengths compared to the other models. It showed moderate performance in the 100–200 kPa range but performed worst in terms of bias and MAPE in both the low (<100 kPa) and high (>200 kPa) ranges. Its lack of consistency made it the least competitive model overall, although its metrics remained good for the analysed case. In conclusion, PhySO was the most balanced model for general use, demonstrating strong performance particularly in low- to medium-pressure predictions. PySR excelled in high-pressure predictions while also maintaining good overall performance. MOSR minimized bias at the extremes and can be suitable for low to medium pressures, whereas PGSR did not exhibit a clear advantage in any specific pressure range. These strengths and weaknesses according to ranges should be considered along with the fact that each equation has parameters that others do not. Only PySR and MOSR share the same input variables (see Table 4), so depending on the available parameters and the intended objective, the most suitable equation can be selected.
Next, a sensitivity analysis of the parameters involved in the four equations proposed was conducted. To this end, Sobol’s method [57] was applied. It is commonly used to evaluate the significance of input parameters in computational models with respect to their impact on the output based on the contribution to the output variance. Figure 10 presents the results of this analysis, including the S1 and ST values.
In all four models, PI was the dominant factor, with high S1 and ST indices. In PhySO and PySR, PI accounted for almost all of the variability (ST ≈ 0.91 and 0.87; S1 ≈ 0.88 and 0.84, respectively), while the percentage of soil passing #0.075 mm showed moderate contributions, and both LL and γd contributed very little. In MOOSR, PI remains crucial (ST ≈ 0.76; S1 ≈ 0.57), but the influence of LL increases (ST ≈ 0.27; S1 ≈ 0.17), suggesting that interactions, deduced from the difference between ST and S1, begin to play a greater role. In PGSR, in addition to the predominance of PI (ST ≈ 0.78; S1 ≈ 0.72), stronger interaction effects are observed, with noticeable contributions from w and γd (ST ≈ 0.057 and 0.037). While the individual effects of PI dominate across all models, interaction effects become more relevant in MOOSR and, to a lesser extent, in PGSR.
These findings align with the established knowledge in geotechnical engineering regarding expansive soil behaviour. PI, LL, and the percentage of soil passing #0.075 mm are identified as the most significant parameters in predicting swelling pressure. Their importance stems from their direct correlation with the mineralogical composition and plasticity characteristics that govern water adsorption capacity and expansive potential. Conversely, w exhibits a relatively lower influence on the predictive model. This phenomenon can be attributed to the use of undisturbed samples exhibiting varying degrees of initial saturation. Since the natural water content does not represent a controlled or comparable condition across different samples, its contribution to ps prediction becomes less pronounced.

7. Conclusions

This study has demonstrated the potential of advanced techniques of SR in predicting ps in clayey soils, a critical geotechnical property. The research has provided several key insights and contributions:
  • Four advanced symbolic regression techniques (PhySO, PySR, MOSR, and PGSR) were applied, all showing strong predictive performance (R2 > 0.91 and MAE < 23 kPa) along with highly simplified equations. PhySO and PySR outperformed the others in global metrics, with R2 values of 0.921 and 0.933 and MAEs of 20.66 and 20.49 kPa, respectively. When analysing performance across pressure intervals, PhySO demonstrated the most balanced and robust behaviour, particularly excelling in low- to medium-pressure predictions. PySR achieved the highest accuracy under high-pressure conditions while maintaining consistent overall performance. MOSR stood out for its ability to reduce edge-case bias and was effective in low- to medium-pressure ranges, whereas PGSR showed no distinct advantage in any specific interval.
  • Since each equation obtained from each model has different variables and performances across different pressure intervals, this allows for a quick determination of ps based on the available parameters, the potential pressure range, and the objective of the analysis.
  • This study identified PI as the most significant variable influencing ps, surpassing the other variables in all models.
  • A remarkable aspect of this study is the use of undisturbed clay samples. The undisturbed nature of these samples provides a more accurate representation of the natural conditions, enhancing the reliability and applicability of the findings.
The database used in this study could be further expanded with additional samples to improve the generalizability and scope of the proposed equations. As with any predictive algorithm, it is essential to consider that the model’s performance and the reliability of the expressions may decrease when applied outside the training range of the input variables.

Author Contributions

Conceptualization, E.D. and R.T.; methodology, E.D. and R.T.; software, E.D.; validation, E.D. and R.T.; formal analysis, E.D. and R.T.; investigation, E.D. and R.T.; data curation, E.D.; writing—original draft preparation, E.D.; writing—review and editing, E.D. and R.T.; visualization, E.D.; supervision, E.D. and R.T.; project administration, E.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon reasonable request from the corresponding author.

Acknowledgments

The authors gratefully acknowledge ITC, S.L., for their valuable support with the sample data.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Table A1. Hyperparameters adopted in the PhySO model.
Table A1. Hyperparameters adopted in the PhySO model.
ParameterFixed ConstantsFree ConstantsUnitsParallel_ModeReward_FunctionEpochs Batch-Sizen_Steps
Adopted value02withoutFalseSquashedNRMSE1001020
Table A2. Hyperparameters adopted in the PySR model.
Table A2. Hyperparameters adopted in the PySR model.
ParameterPopulationsPopulation_SizeNiterationsMaxsizeModel_SelectionParsimony
Adopted value502840015“best”0.01
Table A3. Hyperparameters adopted in the MOOSR model.
Table A3. Hyperparameters adopted in the MOOSR model.
ParameterConstants_OptimizationOptimization TaskWMSE Convergence ThresholdPopulation_SizeTournament_SizeGenerations_to_TrainParsimonyParsimony_DecayGenetic_Operators_Frequency
Adopted valuescipyregression:wmse0.0210041000.90.85default except delete_node = 3
Table A4. Hyperparameters adopted in the PGSR model.
Table A4. Hyperparameters adopted in the PGSR model.
Parameterpolyfit_deg BF_try_timeNN_epochs
Adopted value170200

References

  1. Al-Rawas, A.A.; Goosen, M.F. Expansive Soils: Recent Advances in Characterization and Treatment; CRC Press: Boca Raton, FL, USA, 2006. [Google Scholar] [CrossRef]
  2. Gourley, C.; Newill, D.; Schreiner, H. Expansive soils: TRL’s research strategy. In Engineering Characteristics of Arid Soils; CRC Press: Boca Raton, FL, USA, 2020; pp. 247–260. [Google Scholar]
  3. Jones, D.E., Jr.; Holtz, W.G. Expansive soils-the hidden disaster. Civ. Eng. 1973, 43, 49–51. [Google Scholar]
  4. Sabtan, A.A. Geotechnical properties of expansive clay shale in Tabuk, Saudi Arabia. J. Asian Earth Sci. 2005, 25, 747–757. [Google Scholar] [CrossRef]
  5. Avsar, E.; Ulusay, R.; Sonmez, H. Assessments of swelling anisotropy of Ankara clay. Eng. Geol. 2009, 105, 24–31. [Google Scholar] [CrossRef]
  6. Jamsawang, P.; Adulyamet, B.; Voottipruex, P.; Jongpradist, P.; Likitlersuang, S.; Tantayopin, K. The free swell potential of expansive clays stabilized with the shallow bottom ash mixing method. Eng. Geol. 2023, 315, 107027. [Google Scholar] [CrossRef]
  7. Barman, D.; Dash, S.K. Stabilization of expansive soils using chemical additives: A review. J. Rock Mech. Geotech. Eng. 2022, 14, 1319–1342. [Google Scholar] [CrossRef]
  8. Elmannaey, A.S.; Fouad, H.E.E.; Youssef, Y.G. Improvement of swelling chlorite soil using sodium silicate alkali activator. Ain Shams Eng. J. 2021, 12, 1535–1544. [Google Scholar] [CrossRef]
  9. Zada, U.; Jamal, A.; Iqbal, M.; Eldin, S.M.; Almoshaogeh, M.; Bekkouche, S.R.; Almuaythir, S. Recent advances in expansive soil stabilization using admixtures: Current challenges and opportunities. Case Stud. Constr. Mater. 2023, 18, e01985. [Google Scholar] [CrossRef]
  10. Tanyıldızı, M.; Uz, V.E.; Gökalp, İ. Utilization of waste materials in the stabilization of expansive pavement subgrade: An extensive review. Constr. Build. Mater. 2023, 398, 132435. [Google Scholar] [CrossRef]
  11. Almuaythir, S.; Abbas, M.F. Expansive soil remediation using cement kiln dust as stabilizer. Case Stud. Constr. Mater. 2023, 18, e01983. [Google Scholar] [CrossRef]
  12. Selçuk, L. A rational method for determining the swelling pressure of expansive soils: Paired swell test (PS-test). Acta Geotech. 2022, 17, 3161–3180. [Google Scholar] [CrossRef]
  13. Ibrahim, H.; Hummadi, R. Swelling potential and swelling pressure calculation methods: A comprehensive review. Edelweiss Appl. Sci. Technol. 2025, 9, 172–192. [Google Scholar] [CrossRef]
  14. Komornik, A.; David, D. Prediction of swelling pressure of clays. J. Soil Mech. Found. Div. 1969, 95, 209–226. [Google Scholar] [CrossRef]
  15. Nayak, N.V.; Christensen, R. Swelling characteristics of compacted, expansive soils. Clays Clay Miner. 1971, 19, 251–261. [Google Scholar] [CrossRef]
  16. Vijayvergiya, V.; Ghazzaly, O.I. Prediction of swelling potential for natural clays. In Proceedings of the 3rd International Conference on Expansive Soils, Haifa, Israel, 30 July–1 August 1973; pp. 227–236. [Google Scholar]
  17. Schultz, J.M.; Jafroudi, S. Correlation of Expansion Index and Atterberg Limits for Expansive Soils. In Proceedings of the Geo-Congress 2023, Los Angeles, CA, USA, 26–29 March 2023; pp. 693–702. [Google Scholar]
  18. Barbosa, V.H.; Marques, M.E.; Guimarães, A.C. Predicting soil swelling potential using soil classification properties. Geotech. Geol. Eng. 2023, 41, 4445–4457. [Google Scholar] [CrossRef]
  19. Djellali, A.; Houam, A.; Saghafi, B. Indirect estimation of swelling pressure of clayey subgrade under pavement structures. Arab. J. Sci. Eng. 2017, 42, 3991–3999. [Google Scholar] [CrossRef]
  20. Narmandakh, D.; Butscher, C.; Doulati Ardejani, F.; Yang, H.; Nagel, T.; Taherdangkoo, R. The use of feed-forward and cascade-forward neural networks to determine swelling potential of clayey soils. Comput. Geotech. 2023, 157, 105319. [Google Scholar] [CrossRef]
  21. Das, S.K.; Samui, P.; Sabat, A.K.; Sitharam, T.G. Prediction of swelling pressure of soil using artificial intelligence techniques. Environ. Earth Sci. 2010, 61, 393–403. [Google Scholar] [CrossRef]
  22. Bag, R.; Bharti, A.; Jadda, K.; Sai Kumar, M.L.S. Comparative Study Between MLR and ANN Techniques to Predict Swelling Pressure of Expansive Clays. Geotech. Geol. Eng. 2022, 40, 3443–3455. [Google Scholar] [CrossRef]
  23. Jalal, F.E.; Iqbal, M.; Khan, W.A.; Jamal, A.; Onyelowe, K.; Lekhraj. ANN-based swarm intelligence for predicting expansive soil swell pressure and compression strength. Sci. Rep. 2024, 14, 14597. [Google Scholar] [CrossRef]
  24. Gahlot, S.; Mangal, R.; Arya, A.; Sethy, B.P.; Sethi, K.C. Prediction of swelling pressure of expansive soil using machine learning methods. Asian J. Civ. Eng. 2025, 26, 549–564. [Google Scholar] [CrossRef]
  25. Akbarimehr, D.; Eslami, A.; Aflaki, E.; Imam, R. Using empirical correlations and artificial neural network to estimate compressibility of low plasticity clays. Arab. J. Geosci. 2020, 13, 1225. [Google Scholar] [CrossRef]
  26. Camps-Valls, G.; Gerhardus, A.; Ninad, U.; Varando, G.; Martius, G.; Balaguer-Ballester, E.; Vinuesa, R.; Diaz, E.; Zanna, L.; Runge, J. Discovering causal relations and equations from data. Phys. Rep. 2023, 1044, 1–68. [Google Scholar] [CrossRef]
  27. Angelis, D.; Sofos, F.; Karakasidis, T.E. Artificial intelligence in physical sciences: Symbolic regression trends and perspectives. Arch. Comput. Methods Eng. 2023, 30, 3845–3865. [Google Scholar] [CrossRef]
  28. Koza, J.R. Genetic programming as a means for programming computers by natural selection. Stat. Comput. 1994, 4, 87–112. [Google Scholar] [CrossRef]
  29. Cheng, Z.-L.; Kannangara, K.K.P.M.; Su, L.-J.; Zhou, W.-H. Mathematical model for approximating shield tunneling-induced surface settlement via multi-gene genetic programming. Acta Geotech. 2023, 18, 4923–4940. [Google Scholar] [CrossRef]
  30. Zhou, J.; Zhang, R.; Qiu, Y.; Khandelwal, M. A true triaxial strength criterion for rocks by gene expression programming. J. Rock Mech. Geotech. Eng. 2023, 15, 2508–2520. [Google Scholar] [CrossRef]
  31. Rehman, Z.u.; Khalid, U.; Ijaz, N.; Mujtaba, H.; Haider, A.; Farooq, K.; Ijaz, Z. Machine learning-based intelligent modeling of hydraulic conductivity of sandy soils considering a wide range of grain sizes. Eng. Geol. 2022, 311, 106899. [Google Scholar] [CrossRef]
  32. El-Bosraty, A.H.; Ebid, A.M.; Fayed, A.L. Estimation of the undrained shear strength of east Port-Said clay using the genetic programming. Ain Shams Eng. J. 2020, 11, 961–969. [Google Scholar] [CrossRef]
  33. Jalal, F.E.; Iqbal, M.; Ali Khan, M.; Salami, B.A.; Ullah, S.; Khan, H.; Nabil, M. Indirect Estimation of Swelling Pressure of Expansive Soil: GEP versus MEP Modelling. Adv. Mater. Sci. Eng. 2023, 2023, 1827117. [Google Scholar] [CrossRef]
  34. Hidalgo Signes, C.; Garzón-Roca, J.; Martínez Fernández, P.; Garrido de la Torre, M.E.; Insa Franco, R. Swelling potential reduction of Spanish argillaceous marlstone Facies Tap soil through the addition of crumb rubber particles from scrap tyres. Appl. Clay Sci. 2016, 132–133, 768–773. [Google Scholar] [CrossRef]
  35. Carcedo, F.J.A.; Gijón, M.F.; Mazo, C.O.; Rodríguez, J.S. Mapa Previsor de Riesgos por Expansividad de Arcillas en España a Escala 1: 1.000.000; Instituto Geológico y Minero de España: Madrid, Spain, 1986. [Google Scholar]
  36. UNE 103101:1995; Análisis Granulométrico de Suelos por Tamizado. Asociación Española de Normalización y Certificación: Madrid, Spain, 1995; pp. 1–9.
  37. ASTM D2216-19; Standard Test Methods for Laboratory Determination of Water (Moisture) Content of Soil and Rock by Mass. ASTM: West Conshohocken, PA, USA, 2019; Volume 4.
  38. UNE 103103:1994; Determinación del Límite Líquido de un Suelo por el Método del Aparato de Casagrande. UNE: Madrid, Spain, 1994; p. 10.
  39. ASTM D4318-17e1; Standard Test Methods for Liquid Limit, Plastic Limit and Plasticity index of Soils. ASTM: West Conshohocken, PA, USA, 2017. [CrossRef]
  40. UNE 103300:1993; Determinación de la Humedad de un Suelo Mediante Secado en Estufa. Asociación Española de Normalización y Certificación: Madrid, Spain, 1993; pp. 1–7.
  41. ASTM D7263-21; Standard Test Methods for Laboratory Determination of Density and Unit Weight of Soil Specimens. ASTM: West Conshohocken, PA, USA, 2021.
  42. ASTM D2487; Standard Practice for Classification of Soils for Engineering Purposes (Unified Soil Classification System). ASTM International: West Conshohocken, PA, USA, 2011.
  43. UNE 103602:1996; Ensayo Para Calcular la Presión de Hinchamiento de un Suelo en Edómetro. Asociación Española de Normalización y Certificación: Madrid, Spain, 1996; pp. 1–9.
  44. ASTM D4546-21; Standard Test Methods for One-Dimensional Swell or Collapse of Soils. ASTM: West Conshohocken, PA, USA, 2021; Volume 4.
  45. Chen, F.H. Foundations on Expansive Soils; Elsevier: Amsterdam, The Netherlands, 2012; Volume 12. [Google Scholar]
  46. Petersen, B.K.; Landajuela, M.; Mundhenk, T.N.; Santiago, C.P.; Kim, S.K.; Kim, J.T. Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradients. arXiv 2021, arXiv:1912.04871. [Google Scholar]
  47. Tenachi, W.; Ibata, R.; Diakogiannis, F.I. Deep symbolic regression for physics guided by units constraints: Toward the automated discovery of physical laws. Astrophys. J. 2023, 959, 99. [Google Scholar] [CrossRef]
  48. Cranmer, M. Interpretable machine learning for science with PySR and SymbolicRegression. jl. arXiv 2023, arXiv:2305.01582. [Google Scholar]
  49. Real, E.; Aggarwal, A.; Huang, Y.; Le, Q.V. Regularized evolution for image classifier architecture search. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; pp. 4780–4789. [Google Scholar]
  50. Real, E.; Liang, C.; So, D.; Le, Q. Automl-zero: Evolving machine learning algorithms from scratch. In Proceedings of the International Conference on Machine Learning, Virtual Event, 13–18 July 2020; pp. 8007–8019. [Google Scholar]
  51. Ferrari, D.; Guidetti, V.; Wang, Y.; Curcin, V. Multi-objective symbolic regression to generate data-driven, non-fixed structure and intelligible mortality predictors using ehr: Binary classification methodology and comparison with state-of-the-art. In Proceedings of the AMIA Annual Symposium Proceedings, New Orleans, LO, USA, 11–15 November 2023; p. 442. [Google Scholar]
  52. Ferrari, D.; Guidetti, V.; Mandreoli, F. Multi-objective symbolic regression for data-driven scoring system management. In Proceedings of the 2022 IEEE International Conference on Data Mining (ICDM), Orlando, FL, USA, 28 November–1 December 2022; pp. 945–950. [Google Scholar]
  53. Deb, K.; Pratap, A.; Agarwal, S.; Meyarivan, T. A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II. IEEE Trans. Evol. Comput. 2002, 6, 182–197. [Google Scholar] [CrossRef]
  54. Kingma, D.; Ba, J. Adam: A method for stochastic optimization 3rd International Conference for Learning Representations (San Diego, CA). arXiv 2015, arXiv:1412.6980. [Google Scholar]
  55. Udrescu, S.-M.; Tegmark, M. AI Feynman: A physics-inspired method for symbolic regression. Sci. Adv. 2020, 6, eaay2631. [Google Scholar] [CrossRef]
  56. Udrescu, S.-M.; Tan, A.; Feng, J.; Neto, O.; Wu, T.; Tegmark, M. AI Feynman 2.0: Pareto-optimal symbolic regression exploiting graph modularity. Adv. Neural Inf. Process. Syst. 2020, 33, 4860–4871. [Google Scholar]
  57. Sobol, I.Y.M. On sensitivity estimation for nonlinear mathematical models. Mat. Model. 1990, 2, 112–118. [Google Scholar]
Figure 1. Risk map of expansive clays in Spain, indicating the location of the study area. Taken from Carcedo et al. [35].
Figure 1. Risk map of expansive clays in Spain, indicating the location of the study area. Taken from Carcedo et al. [35].
Applsci 15 05603 g001
Figure 2. Damage associated with expansive clays in the study area, based on the authors’ experience. (a) A 45° crack with an installed crack monitor; (b) Severe damage due to the synergy between expansive clay and construction defects; (c) Differential heave in floor slab; (d) Longitudinal cracks in garage slabs.
Figure 2. Damage associated with expansive clays in the study area, based on the authors’ experience. (a) A 45° crack with an installed crack monitor; (b) Severe damage due to the synergy between expansive clay and construction defects; (c) Differential heave in floor slab; (d) Longitudinal cracks in garage slabs.
Applsci 15 05603 g002
Figure 3. Histograms for the dataset.
Figure 3. Histograms for the dataset.
Applsci 15 05603 g003
Figure 4. Representation of the soil samples on the Casagrande plasticity chart, showing their classification based on the Unified Soil Classification System (USCS).
Figure 4. Representation of the soil samples on the Casagrande plasticity chart, showing their classification based on the Unified Soil Classification System (USCS).
Applsci 15 05603 g004
Figure 5. Correlation matrices of dataset features, (a) Pearson and (b) Spearman.
Figure 5. Correlation matrices of dataset features, (a) Pearson and (b) Spearman.
Applsci 15 05603 g005
Figure 6. Flowchart synthesizing the core mechanisms of the symbolic regression algorithms applied in this study: (a) PhySO, (b) PySR, (c) MOSR, and (d) PGSR.
Figure 6. Flowchart synthesizing the core mechanisms of the symbolic regression algorithms applied in this study: (a) PhySO, (b) PySR, (c) MOSR, and (d) PGSR.
Applsci 15 05603 g006
Figure 7. Scatterplots of real vs. predicted values and prediction residuals with distribution curve for the four SR algorithms analysed. Circles represent individual predictions. The black diagonal line in the scatterplots corresponds to the ideal agreement (1:1 line), while the shaded green and grey bands denote ±20% and ±15% error ranges, respectively. In the residual plots, the red horizontal line indicates zero residuals (i.e., perfect prediction), and the green curve illustrates the residual distribution estimated using kernel density estimation (KDE).
Figure 7. Scatterplots of real vs. predicted values and prediction residuals with distribution curve for the four SR algorithms analysed. Circles represent individual predictions. The black diagonal line in the scatterplots corresponds to the ideal agreement (1:1 line), while the shaded green and grey bands denote ±20% and ±15% error ranges, respectively. In the residual plots, the red horizontal line indicates zero residuals (i.e., perfect prediction), and the green curve illustrates the residual distribution estimated using kernel density estimation (KDE).
Applsci 15 05603 g007
Figure 8. Radar chart showing the performance metrics of the four SR algorithms analysed. Note that the scale of each axis has been adjusted for better visualization. MAPE is expressed as a percentage (%), MAE and RMSE are in kPa, RMSLE is dimensionless, and R2 and EVS are unitless coefficients ranging from 0 to 1.
Figure 8. Radar chart showing the performance metrics of the four SR algorithms analysed. Note that the scale of each axis has been adjusted for better visualization. MAPE is expressed as a percentage (%), MAE and RMSE are in kPa, RMSLE is dimensionless, and R2 and EVS are unitless coefficients ranging from 0 to 1.
Applsci 15 05603 g008
Figure 9. Comparative analysis of the four SR algorithms analysed for segmented ps data. (a) Residual mean, (b) residual standard deviation, (c) MAPE (%), and (d) MAE.
Figure 9. Comparative analysis of the four SR algorithms analysed for segmented ps data. (a) Residual mean, (b) residual standard deviation, (c) MAPE (%), and (d) MAE.
Applsci 15 05603 g009
Figure 10. Bar chart showing the sensitivity of model output to input variables. S1s are first-order sensitivity indices and STs are total-order sensitivity indices.
Figure 10. Bar chart showing the sensitivity of model output to input variables. S1s are first-order sensitivity indices and STs are total-order sensitivity indices.
Applsci 15 05603 g010
Table 1. Statistical characteristics of main parameters considered in this study.
Table 1. Statistical characteristics of main parameters considered in this study.
PropertyMeanMedianModeStandard DeviationMinimumMaximumKurtosisSkewness1st Quartile3rd Quartile
Pass #0.075 mm (%)81.288.3100.020.228.2100.01.29−1.5577.894.1
LL (%)51.350.337.216.327.785.1−0.990.1137.865.4
PI (%)27.326.018.511.17.957.8−0.320.5318.734.9
w (%)23.925.826.37.58.949.10.30−0.2019.729.0
γd (kN/m3)16.016.015.11.313.019.2−0.580.0615.116.8
ps (kPa)163.0149.240.2105.717.2514.20.580.8879.6221.4
Table 2. Distribution of soil samples according to the Unified Soil Classification System (USCS).
Table 2. Distribution of soil samples according to the Unified Soil Classification System (USCS).
SUCSCLCHMLMH
Samples73701523
Table 3. VIF and p-values for the predictive variables.
Table 3. VIF and p-values for the predictive variables.
VariablePass #0.075LLPIwγd
p-value2.91 × 10−122.04 × 10−81.76 × 10−608.52 × 10−14.30 × 10−4
VIF31.9152.7126.6525.5115.04
Table 4. Formulas obtained for each SR algorithm implemented.
Table 4. Formulas obtained for each SR algorithm implemented.
SR ModelEquation
PhySO p s k P a = 0.070 · ( P I 0.150 · L L ) · ( # 0.075 m m + P I + 0.180 ) (1)
PySR p s k P a = PI · # 0.075 mm + PI 2 2127.643 γ d LL + 147.092 (2)
MOSR p s k P a = 2   ·   # 0.075 mm · PI 2 LL · γ d (3)
PGSR p s k P a = PI · # 0.075 mm + PI w γ d (4)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Díaz, E.; Tomás, R. Predicting Clay Swelling Pressure: A Comparative Analysis of Advanced Symbolic Regression Techniques. Appl. Sci. 2025, 15, 5603. https://doi.org/10.3390/app15105603

AMA Style

Díaz E, Tomás R. Predicting Clay Swelling Pressure: A Comparative Analysis of Advanced Symbolic Regression Techniques. Applied Sciences. 2025; 15(10):5603. https://doi.org/10.3390/app15105603

Chicago/Turabian Style

Díaz, Esteban, and Roberto Tomás. 2025. "Predicting Clay Swelling Pressure: A Comparative Analysis of Advanced Symbolic Regression Techniques" Applied Sciences 15, no. 10: 5603. https://doi.org/10.3390/app15105603

APA Style

Díaz, E., & Tomás, R. (2025). Predicting Clay Swelling Pressure: A Comparative Analysis of Advanced Symbolic Regression Techniques. Applied Sciences, 15(10), 5603. https://doi.org/10.3390/app15105603

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop