Introduction

Deep excavation engineering1,2,3,4 is a high-risk project due to its comprehensiveness, complexity, and uncertainty. Design errors, improper construction, environmental factors, variability in soil parameters, insufficient monitoring, and poor management can all contribute to excavation accidents. Studies have revealed that design errors are the primary cause of accidents in deep excavation projects5,6,7. When an accident occurs, it not only endangers lives but also causes significant damage to the national economy and has negative effects on society. For instance, on April 20, 2004, a collapse occurred during the excavation of the Nicoll Highway section tunnel of the Singapore Metro Circle Line. This resulted in the complete collapse of a 100-meter retaining structure, leading to four fatalities and the disruption of the Nicoll Expressway. The incident caused extensive damage to the city’s infrastructure. On November 15, 2008, a collapse occurred at Xianghu Metro Station in Hangzhou, resulting in 21 deaths and a direct economic loss of 49.62 million. Furthermore, on May 11, 2017, a soil collapse took place during the deep excavation of a subway station in Shenzhen, resulting in three deaths, one injury, and a direct economic loss of 3.45 million. Therefore, it is crucial to adopt a scientifical and rational design approach to prevent accidents in deep excavations.

Soil, as a weathering product of rocks that undergo physical and chemical processes, exhibits spatial variability in its mechanical properties8. This variability introduces uncertainty in deep excavation design plans. Designers typically rely on safety factors recommended by codes9,10,11 to address the uncertainty caused by soil spatial variability. However, research by Duncan12 has revealed that using the same safety factors for designing deep excavations, while considering different indicators of soil spatial variability, is illogical. Consequently, accounting for soil spatial variability in a rational manner poses a significant challenge for excavation engineers. Currently, many scholars have used random field theory to research the effects of soil spatial variability on slopes13,14,15,16,17,18, tunnels19,20,21,22,23,24, and other engineering projects21,25,26,27,28,29,30,31,32, resulting in significant scientific advancements. Recently, researchers have begun studying the stability and deformation characteristics of deep excavations in the context of soil spatial variability. Lin Jun33 simulated soil spatial variability using a non-stationary lognormal random field based on CPTU test data. They analyzed the effects of the variation coefficient and fluctuation range of soil mechanical parameters on the stability of excavations, concluding that the influence of soil spatial variability on excavations should not be overlooked. Goh et al.34 investigated the influence of soil spatial variability on the basal heave stability of excavations using the reliability index method. Luo et al.10,35,36 examined the impact of soil spatial variability through the equivalent variance technique and proposed a simplified two-dimensional calculation method for assessing the basal heave stability of excavations. Sert et al.11, considering the influence of vertical spatial variability in sandy soil layers, studied how variations in the internal friction angle affect the deformation characteristics of cantilever deep excavations using the random finite element method. Gholampour and Johari37 extended the application of random fields to the reliability analysis of excavation support structures in unsaturated soils, providing a comprehensive analysis of how soil spatial variability affects excavation reliability. Based on random field theory, Yi Shun et al.38 and Li et al.27 conducted a detailed numerical analysis of the impact of soil spatial variability on the deformation characteristics of excavations.

In conclusion, researchers have studied the effects of soil spatial variability on excavation deformation and stability, demonstrating that the influence of soil spatial variability on excavations cannot be disregarded11,27,33,34,37,38,39,40,41,42,43. However, limited research has been conducted on the impact of soil spatial variability specifically on long and narrow deep excavations, which have a plan aspect ratio greater than 10 and a profile aspect ratio greater than 28,44. As urban underground space utilization continues to develop, numerous long and narrow deep excavation projects are expected in the future. Therefore, understanding the deformation characteristics of these excavations under soil spatial variability is crucial for rational excavation design.

In light of this, we have developed a random finite element algorithm that accounts for the influence of soil spatial variability. This algorithm is based on random field theory and the Monte Carlo method. We assume that the geotechnical parameters follow a lognormal distribution, with spatial correlation modeled by a Gaussian function. To implement this algorithm, we utilize a combination of Python programming and the ABAQUS calculation platform. To investigate the influence of soil spatial variability on the deformation characteristics and reliability of long and narrow deep excavations, we have established multiple sets of random numerical analysis models. These models vary in terms of the coefficient of variation and fluctuation range, which serve as our research parameters. By studying these models, we can reveal the engineering implications of soil spatial variability. Overall, our work highlights the importance of considering soil spatial variability in the design and analysis of long and narrow deep excavations.

A random finite element algorithm for deep excavations

Method for simulating soil spatial variability

The lognormal stationary random field H(x, y) is employed to describe the spatial variability of soil. In this context, x and y denote the horizontal and vertical coordinates, respectively. To simulate the lognormal stationary random field of soil parameters, the midpoint discretization method based on Cholesky decomposition is utilized. The grid center coordinates for the random field of soil parameters are (xi, yi), where i ranges from 1 to ne, representing the total number of grid points. The autocorrelation function, ρ(τx, τy), employs a Gaussian-type (SQX) function. The autocorrelation matrix C is represented by the following equation:

\({\varvec{C}}=\left[ {\begin{array}{*{20}{l}} 1&{}& \cdots &{\rho \left( {\Delta {x_{1{n_e}}},\Delta {y_{1{n_e}}}} \right)} \\ {\rho \left( {\Delta {x_{12}},\Delta {y_{12}}} \right)}&1& \cdots &{\rho \left( {\Delta {x_{2{n_e}}},\Delta {y_{2{n_e}}}} \right)} \\ \vdots & \vdots & \ddots & \vdots \\ {\rho \left( {\Delta {x_{1{n_e}}},\Delta {y_{1{n_e}}}} \right)}&{}& \cdots &1 \end{array}} \right]\)

In the equation, Δxij and Δyij represent the relative distances in the horizontal and vertical directions from the centers of grids i and j, respectively. ρxij, Δyij) denotes the autocorrelation function.

The cross-correlation matrix R is described as:

\({\varvec{R}}={\left( {{\rho _{k,l}}} \right)_{m \times m}}\)

The dimension of the random field HG(x, y) is (ne×mNp. Its characteristics are determined by the number of grid divisions in the random field, the autocorrelation function, the fluctuation range, and the cross-correlation coefficient, all of which collectively influence the random field. To transform the random field HG(x,y) in space, the following equation can be used:

\(H_{{{X_i}}}^{{k,NG}}(x,y)=F_{i}^{{ - 1}}\left\{ {\Phi \left[ {H_{{{X_i}}}^{{k,G}}(x,y)} \right]} \right\},k=1,2, \ldots ,{N_p},i=1,2, \ldots ,m\)

In the equation, F-1i(·) represents the cumulative distribution function, while Φ(·) represents the standard normal distribution function.

Based on the obtained soil parameters from the random field, a logarithmic normal distribution of soil parameters is achieved in ABAQUS through coordinate mapping. This approach enables us to calculate the characteristics of excavations while considering the spatial variability of the soil.

Development of random finite element algorithm for deep excavations

Based on the Python language and the ABAQUS platform, we have developed a random finite element algorithm for deep excavations by combining numerical analysis with random field theory. By utilizing the variability indices of soil parameters, this algorithm enables the discretization of the random field of soil parameters and provides the mechanical response of deep excavations under conditions of soil variability. The detailed process can be accomplished in four steps.

Step 1: Establish the excavation model and extract coordinate information. First, create the excavation model in ABAQUS and divide the grid. Extract the node information for each element from the generated INP file, and create separate files for the node and element information.

Step 2: Determine statistical parameters to generate a random field. Identify statistical parameters such as the mean, coefficient of variation, and cross-correlation coefficient for soil strength and deformation parameters. Select the Gaussian-type (SQX) autocorrelation function and define the fluctuation range. Develop a Python program to generate lognormal stationary random fields. Utilize the node and element information obtained in the first step to produce N sets of lognormal stationary random fields for elastic modulus, cohesion, and internal friction angle.

Step 3: Establish the excavation model, input soil parameters, and acquire the initial stress field in the soil. Use a Python program to implement the entire process of model establishment, parameter assignment, calculation, and generation of the initial INP file. Next, use a Python script to modify the strength and deformation parameters in the INP file and generate N INP files with random field parameters. Finally, submit batch calculation programs through ABAQUS COMMAND to obtain N initial stress fields.

Step 4: Batch stress equilibrium. In the Python script generated in Step 3, add field variables and their corresponding parameter values. Additionally, import the initial stress field obtained in Step 3 and modify the model keywords to achieve ground stress equilibrium and obtain the final INP file. Afterward, you can quickly generate N INP files with random field parameter information by modifying the strength parameters in this INP file using a Python script. Finally, submit batch calculation programs through ABAQUS COMMAND to obtain N result files.

Verification of random finite element algorithm for deep excavations

To validate the random finite element algorithm for deep foundation pits, the railway tunnel open-cut narrow and long deep foundation pit project in Guangzhou was selected as the analysis case. Detailed parameters of the support structure are shown in Fig. 1, while geological parameters are presented in Table 145. Analysis files for the deep foundation pit were generated, and 1,000 Monte Carlo simulations were conducted. Figure 2 illustrates the soil property grid and support structure for a single Monte Carlo simulation.

Fig. 1
figure 1

Cross-section of the supporting scheme.

Table 1 Statistical results of geological parameters45.
Fig. 2
figure 2

Soil property grid and support structure for a single Monte-Carlo simulation.

Organizing the results of 1,000 random finite element calculations and comparing them with the results of Yi Shun et al.38, it is evident from Figs. 3 and 4 that the lateral wall deflections and ground surface settlement curves of deep excavation under soil spatial variability align with Yi Shun et al.’s findings38. This validation confirms the effectiveness of the random finite element algorithm.

Fig. 3
figure 3

Comparison of lateral wall deflection.

Fig. 4
figure 4

Comparison of ground surface settlement.

Characteristics of long and narrow deep excavations

Setting of working conditions

According to the research results, the study mainly focuses on the spatial variability of soil deformation parameters (Elastic modulus E) and strength parameters (Cohesion c and Internal friction angle φ). Through statistical analysis of published literature15,18,21,46,47,48,49,50, it was found that there is a significant difference in the fluctuation ranges of rock and soil in the horizontal and vertical directions. The horizontal fluctuation range is typically much larger than the vertical fluctuation range, with the horizontal range between 10 and 50 m and the vertical range between 0.5 and 5 m, exhibiting a coefficient of variation (COV) ranging from 0.1 to 0.5. Additionally, previous studies have indicated that the impact of horizontal fluctuation range variation on excavation pits is much smaller compared to that of the vertical fluctuation range33,38. To capture the influence of horizontal displacement fluctuation on excavation pits while controlling calculation time, the horizontal fluctuation range is set at 30 m. Furthermore, the coefficient of variation is set at 0.1, 0.2, 0.3, 0.4, and 0.5, while the vertical fluctuation range is set at 1 m, 2 m, 3 m, 4 m, and 5 m. This results in a total of 25 working conditions. For each working condition, 1000 Monte Carlo random finite element simulations are conducted, resulting in a total of 20,000 random models.

Analysis of ground surface settlement

The ground surface settlement curve and maximum ground surface settlement are important indicators for assessing the impact of excavation construction on the surrounding environment.

Figure 5 illustrates the ground surface settlement curves under different coefficients of variation. It can be observed that, due to soil spatial variability, the settlement curves exhibit a discrete distribution, fluctuating randomly above and below the deterministic results. This spatial variability in the soil leads to diverse and chaotic characteristics in the patterns of ground surface settlement curves, with these features becoming more pronounced as the coefficient of variation increases.

Fig. 5
figure 5

Ground surface settlement curves under different COV.

Statistical analysis was conducted on the maximum ground surface settlement, and a histogram of the frequency distribution of this maximum settlement was plotted. Figure 6 demonstrates that, in the presence of soil spatial variability, the maximum ground surface settlement exhibits a discrete distribution that follows a normal distribution pattern. Additionally, it is worth noting that as the coefficient of variation increases, the fitted coefficient of variation also increases, indicating greater dispersion in the distribution of maximum ground surface settlement.

Fig. 6
figure 6

Frequency histogram of maximum ground surface settlement under different COV.

The location of maximum ground surface settlement is an important indicator for assessing the impact of excavation on the surrounding environment. Therefore, the locations of maximum ground surface settlement were statistically analyzed to better understand the influence of soil spatial variability. The histogram in Fig. 7 presents the locations of maximum ground surface settlement. It reveals that, due to soil spatial variability, the location of maximum settlement is not fixed but rather falls within a certain range. Furthermore, as the coefficient of variation increases, the area of maximum settlement expands continuously. This suggests that excavation exerts a greater impact on the surrounding environment.

Fig. 7
figure 7

Frequency histogram of maximum ground surface settlement position under different COV.

Figures 8, 9 and 10 provide a statistical analysis of ground surface settlement characteristics under various ranges of vertical fluctuation. It can be observed from the figures that the variations in the vertical fluctuation range on ground surface settlement characteristics lack consistency in their impact. However, changes in the vertical fluctuation range significantly affect ground surface settlement. In the future, to fully consider the impact of soil spatial variability, special attention should be paid to the vertical fluctuation range of the soil during the investigation and design phases of excavations.

Fig. 8
figure 8

Ground surface settlement curves under different vertical fluctuation.

Fig. 9
figure 9

Frequency histogram of maximum ground surface settlement under different vertical fluctuation range.

Fig. 10
figure 10

Frequency histogram of maximum ground surface settlement position under different vertical fluctuation range.

Analysis of lateral wall deflection

The impact of excavation on the surrounding environment is characterized by ground surface settlement, while the safety of the excavation itself is primarily assessed through the deflections of the retaining structure. Figure 11 displays the lateral wall deflection curves under different coefficients of variation. It can be observed that lateral wall deflection curves exhibit a discrete distribution due to the influence of soil spatial variability, fluctuating randomly around deterministic results. Moreover, as the coefficient of variation increases, the degree of dispersion in the distribution of the lateral wall deflection curves also rises. Despite this variability, the lateral wall deflection curves still demonstrate a “compound” deformation mode under soil spatial variability, consistent with the mode obtained from deterministic analysis.

Fig. 11
figure 11

Lateral wall deflection curves under different COV.

Statistical analysis was conducted on the maximum lateral wall deflection, and a histogram of its frequency distribution was plotted. Figure 12 clearly illustrates that, in the presence of soil spatial variability, the maximum lateral wall deflection exhibits a discrete distribution and follows a normal distribution pattern. Furthermore, as the coefficient of variation increases, the fitted coefficient of variation also rises, indicating greater dispersion in the distribution of maximum lateral wall deflection.

Fig. 12
figure 12

Frequency histogram of maximum lateral wall deflection.

The wall deformation mode and the maximum lateral wall deflection are important indicators for assessing excavation characteristics. Additionally, the location of maximum lateral wall deflection is a crucial reference point for excavation. Table 2 presents a statistical analysis of the location of maximum lateral wall deflection (Hhm) under different analysis conditions. The table shows that, for various analysis conditions, there is a greater than 95% probability that the maximum lateral wall deflection occurs at the same location. This indicates that soil spatial variability has little influence on the location of maximum lateral wall deflection.

Table 2 Statistical analysis of the maximum lateral wall deflection position.

Figures 13 and 14 present a statistical analysis of lateral wall deflection characteristics under various vertical fluctuation ranges. The figures indicate that the fluctuation range influences the characteristics of lateral wall deflections lack consistency. However, changes in the vertical fluctuation range significantly affect lateral wall deflections. In the future, to fully consider the impact of soil spatial variability, special attention should be paid to the vertical fluctuation range of the soil during the investigation and design phases of excavations.

Fig. 13
figure 13

Lateral wall deflection curves under different vertical fluctuation range.

Fig. 14
figure 14

Frequency histogram of maximum lateral wall deflections.

In summary, under soil spatial variability, the ground surface settlement curves and lateral wall deflection curves exhibit discrete distributions, with the location of maximum ground surface settlement also showing a discrete distribution. Additionally, the characteristics of excavations influenced by soil spatial variability are related to variability indicators. Soil spatial variability affects the prediction of stratum deformation during the excavations design phase, posing challenges to safety control measures for the excavation.

Reliability analysis of long and narrow deep excavations

Due to the various factors influencing excavation deformation, expressing excavation deformation as an explicit function of soil parameters is challenging. Although ABAQUS software can calculate excavation deformation in random models, the high computational cost associated with these random models makes it difficult to determine the failure probability (Pf) and reliability index (β) of the excavation. Nevertheless, results from 1,000 random simulations demonstrate that both the maximum lateral wall deflection (D) and maximum ground surface settlement (V) of the excavation follow a normal distribution. To simplify the calculations, we can assume that variables D and V are independent, allowing us to use the Monte Carlo simulation method to determine the failure probability (Pf) and reliability index (β) of the excavation.

After implementing 100,000 Monte Carlo simulations using MATLAB programming to calculate the failure probability Pf and reliability index β, the functions for the maximum lateral wall deflection (D) and maximum ground surface settlement (V) are as follows.

$$\begin{aligned} Z_{1} = & D_{u} - D \\ Z_{2} = & V_{u} - V \\ \end{aligned}$$

In the equation, Du represents the warning value for the maximum lateral wall deflection, set at 30 mm51. Likewise, Vu indicates the warning value for the maximum ground surface settlement, set at 25 mm51.

Figures 15 and 16 illustrate the failure probability and reliability index of excavations under various coefficients of variation and ranges of fluctuation. These indices are influenced by the spatial variability of the soil; higher coefficients of variation lead to an increased failure probability and a decreased reliability index for the excavations. Additionally, the fluctuation ranges also have an unpredictable impact on the failure probability and reliability index, resulting in varying outcomes for these indices.

Fig. 15
figure 15

Excavation failure probability under soil spatial variability.

Fig. 16
figure 16

Excavation reliability index under soil spatial variability.

Conclusions

In this paper, a random finite element algorithm for deep excavations has been developed, taking into account soil spatial variability. Multiple sets of long and narrow deep excavation random numerical analysis models have been established, incorporating the coefficient of variation and fluctuation range. This approach enables us to study the impact of soil spatial variability on long and narrow deep excavations. Based on our analysis, we have drawn the following conclusions:

  1. (1)

    Assuming that the soil mechanical parameters follow a lognormal distribution and that spatial correlation follows a Gaussian function, a random finite element algorithm for deep excavations was developed. This algorithm accounts for the influence of soil spatial variability and was created using Python programming and the ABAQUS computational platform. It is based on random field theory and Monte Carlo principles.

  2. (2)

    Under the influence of soil spatial variability, the curves of lateral wall deflection and ground surface settlement are discretely distributed around the deterministic results. This distribution exhibits diverse and chaotic characteristics in ground surface settlement. Both the maximum ground surface settlement and the maximum lateral wall deflection follow a normal distribution, although the location of the maximum ground surface settlement is discrete. As the coefficient of variation in soil parameters increases, the diversity and chaotic characteristics of ground surface settlement become more pronounced. Additionally, the location of the maximum ground surface settlement becomes increasingly discrete, as do the maximum ground surface settlement and the maximum lateral wall deflection. The excavation characteristics are also influenced by the fluctuation range of soil parameters, although the relationship between them is not highly regular.

  3. (3)

    The spatial variability of soil has a substantial impact on the failure probability and reliability index of long and narrow deep excavations. As the coefficient of variation of soil parameters increases, the failure probability of excavations also increases, while the reliability index decreases. Additionally, the fluctuation range of soil parameters affects the reliability of excavations, although the relationship between these factors is not well understood.

  4. (4)

    The spatial variability of soil can significantly impact excavation characteristics and reliability. The extent of this influence is determined by the spatial variability index, which poses challenges for deformation prediction and safety control during the design and construction phases of deep excavations. Therefore, in the excavation design stage, the spatial variability of soil can be reasonably accounted for using the finite element algorithm developed in this paper.