Structural Reliability Analysis Using Monte Carlo Simulation and Neural Networks
Structural Reliability Analysis Using Monte Carlo Simulation and Neural Networks
Structural Reliability Analysis Using Monte Carlo Simulation and Neural Networks
com
Received 10 September 2003; received in revised form 13 March 2007; accepted 30 March 2007
Available online 22 May 2007
Abstract
This paper examines a methodology for computing the probability of structural failure by combining neural networks (NN) and
Monte Carlo simulation (MCS). MCS is a powerful tool, simple to implement and capable of solving a broad range of reliability prob-
lems. However, its use for evaluation of very low probabilities of failure implies a great number of structural analyses, which can become
excessively time consuming. The proposed methodology makes use of the capability of a NN to approximate a function for reproducing
structural behavior, allowing the computation of performance measures at a much lower cost. This approach seems very attractive, and
its main challenge lies in the ability of a NN to approximate accurately complex structural response. In order to assess the validity of this
methodology, a test function and two structural examples are presented and discussed. The second example is also used to show how this
methodology can be used to perform reliability-based structural optimization.
2007 Elsevier Ltd. All rights reserved.
Keywords: Reliability-based optimization; Structural reliability; Monte Carlo simulation; Neural networks
0965-9978/$ - see front matter 2007 Elsevier Ltd. All rights reserved.
doi:10.1016/j.advengsoft.2007.03.015
506 J.B. Cardoso et al. / Advances in Engineering Software 39 (2008) 505–513
random variables; it is able to compute the probability of where (x1, x2, . . ., xn) are values of the random variables and
failure with the desired precision; it is easy to implement. fX 1 ;X 2 ;...;X n ðx1 ; x2 ; . . . ; xn Þ is the joint probability density
However, despite the advantages it presents, the use of function.
this method is not widespread in structural reliability The Monte Carlo method allows the determination of
because it is not efficient when compared to level 2 meth- an estimate of the probability of failure, given by
ods. In fact, MCS requires a great number of structural
analyses, one for each sample of the set of random vari- 1 XN
pf ¼ IðX 1 ; X 2 ; . . . ; X n Þ ð2Þ
ables. The number of analyses needed to evaluate the prob- N i¼1
ability of failure of a structure with a prescribed precision
depends on the order of magnitude of that probability. where I(X1, X2, . . ., Xn) is a function defined by
As the values of the probability of failure associated to
1 if gðX 1 ; X 2 ; . . . ; X n Þ 6 0
the ultimate limit states vary normally between 104 and IðX 1 ; X 2 ; . . . ; X n Þ ¼ ð3Þ
0 if gðX 1 ; X 2 ; . . . ; X n Þ > 0
106, the number of analyses to be performed for ensuring
a 95% likelihood that the actual probability be within 5% According to (2), N independent sets of values
of the computed one must be at least 1.6 · 107 to x1, x2, . . ., xn are obtained based on the probability distribu-
1.6 · 109, according to Shooman [4]. tion for each random variable and the failure function is
These analyses are frequently performed with the help of computed for each sample. Using MCS, an estimate of
finite elements codes. Therefore, the computation time can the probability of structural failure is obtained by
be prohibitively high, especially when the structure exhibits
non-linear behavior or the numerical model is rather NH
pf ¼ ð4Þ
complex. N
To eliminate this drawback, it is proposed here the use where NH is the total number of cases where failure has
of neural networks (NN) to approximate structural occurred.
response. Once properly trained, a NN allows the determi-
nation of the structural performances with a very small
number of operations and at a fraction of the cost of the 3. Neural networks
corresponding structural analysis. This methodology
allows the application of MCS to practical cases of great NN are numerical algorithms inspired in the functioning
complexity where the direct use of this method would not of biological neurons. This concept was introduced by
be feasible. McCulloch and Pitts [6], who proposed a mathematical
To illustrate the techniques proposed, three examples model to simulate neuron behavior. Use of NN has become
are presented, considering respectively a mathematical widespread in several fields of engineering, such as struc-
function and two different structures. In the first example, tural mechanics [7,8] and structural reliability [9]. Papad-
a non-linear analytical function is approximated by means rakakis et al. [10] presented an approach in which a NN
of NN. In the second, a linear elastic steel frame is designed was associated to MCS in order to obtain the probability
according to the Eurocodes 1 and 3 [1,2], and subsequently of structural failure. A similar approach is proposed herein.
the probability of failure of the frame is computed by a The model adopted is shown in Fig. 1, representing
Monte Carlo approach in which NN are used for reproduc- the neuron m that receives an input signal vector
ing the structural response. In the third, a genetic algorithm x = [xi, . . ., xL]T from L input channels. It then computes
is used in combination with NN approximation and Monte the weighted sum of the components of x, multiplying each
Carlo method to perform reliability-based optimization of component xk by a coefficient wmk reflecting the impor-
a steel truss. tance of the input channel k. The neuron m activation,
am, is given by the expression
xL bm
gðX 1 ;X 2 ;...;X n Þ60
It should be noticed that Eq. (5) includes a corrective the exact value of the function for a prescribed set of input
term bm, called bias, allowing for the possibility of having values, named as the training set.
a non-negative activation am when all xk are zero. The error for the training set is evaluated using the fol-
The output signal of neuron m, sm, is the numerical lowing equation:
value that results from the computation of an activation
function, f(am). In the present work, the logistic function 1X t
1X r
E¼ ðsij oij Þ2 ð7Þ
is adopted. This function is obtained making a = 1 in the t i¼1 r j¼1
expression of the sigmoid function, which has the following
form: where t is the number of elements of the training set, r is the
number of neurons in the output layer, sij and oij represent,
1 respectively, the computed and the exact value of the func-
sm ¼ f ðam Þ ¼ ð6Þ
1 þ eaam tion for the j neuron and i element of the set.
Due to the network architecture, the error (7) to be min-
Several neurons can be assembled to form a network.
imized often presents several local and global minima.
Different network architectures for such an assembly have
Unlike gradient-based algorithms, which may be trapped
been studied, together with algorithms to perform the
in local minima, genetic algorithms are generally successful
determination of coefficients wmk and bm, cf. Rosenblatt
for performing multimodal optimization. In this work, a
[11] and Rumelhart et al. [12]. In this work, it was decided
hybrid algorithm is used, combining gradient-based and
to adopt a well-known network arrangement, the multi-
genetic algorithms. Minimization with genetic algorithms
layer perceptron [10], which is composed of several neurons
is performed at an initial phase and the solution obtained
arranged in layers, as shown in Fig. 2.
is used subsequently as a starting point by a conjugate gra-
Fig. 2 represents a NN with three layers: an input layer
dient algorithm.
composed by three neurons, in which no transformations
As the coefficients to be determined, wmk and bm, are
are performed; one hidden layer with four neurons; an out-
non-integer, the genetic algorithm is adapted to work with
put layer with three neurons. It is possible to prove [13]
this type of values. The genetic algorithm uses binary chro-
that this type of network with sigmoid activation functions
mosomes where each coefficient associated with hidden and
in the hidden and output layers can approximate any con-
output layers is represented by eight genes, implying that it
tinuous function with satisfactory precision, provided that
can assume one of 28 = 256 different values. The real value
it has enough neurons in the hidden layer.
r, corresponding to any combination of the eight genes
The process of obtaining the unknown coefficients wmk
expressed by the integer z, depends on the following trans-
and bm required to approximate the prescribed function
formation between z and r:
is called training and it is a somewhat challenging task.
The most common training process, called supervised rmax rmin
training [12], consists of proposing some initial values to r ¼ rmin þ z ð8Þ
28 1
the coefficients and then adjusting those values in order
to minimize the error between the predicted output pro- where rmin and rmax are the lower and upper limits of r,
duced by the NN and the exact value of the function. respectively. In order to perform the optimization of a
Therefore, to perform this training, it is necessary to know function of real variables, the strategy followed consists
f(a11)
w111
x1 w112 s12
= w121w 1 1 f(a12)
13 b1
w122
w211 w132 w 2
b12
1
f(a21) 14
w22
w212
x2 w231 w222 s22
= b2 1
f(a22)
w311 w232 2
1 w24
w32
f(a31) 2 b22
w331 w32w
2 31
x3 w332 s32
w421 w41
1
b31
= f(a32)
w342
w431
f(a41)
b32
b 41
Z Z
Y Y
X X
0.8 0.8
0.6 0.6
0.4 0.4
3.5 4 3.5 4
4 3.5 4 3.5
4.5 3 4.5 3
5 2.5 5 2.5
5.5 2 5.5 2
s1 =1 s1 =6
Z
Z
Y
Y
X
X
0.8 0.8
0.6 0.6
0.4 0.4
3.5 4 3.5 4
4 3.5 4 3.5
4.5 3 4.5 3
5 2.5 5 2.5
5.5 2 5.5 2
s1 = 12 s1 = 18
Table 3
Random variables for steel frame example
Variable Distribution Mean Standard deviation Coefficient of variation Characteristic value
Young’s modulus (GPa) Normal 210 10.5 0.05 210
Dead load (kN/m2) Normal 0.50 0.05 0.10 0.50
Live load (kN/m2) LogNormal 1.06 0.366 0.35 2.0
Wind pressure (kN/m2) LogNormal 0.241 0.084 0.35 0.456
Yield stress (MPa) LogNormal 280 28 0.10 235
J.B. Cardoso et al. / Advances in Engineering Software 39 (2008) 505–513 511
Table 4 Table 7
Quadratic mean error and training time for NN (steel frame example) Probability of failure pf and reliability index b for steel frame
s1 – number of neurons Error obtained Error obtained Time (s) Limit MCS + NN MCS FORM SORM
in hidden layer with training set with test set function conventional
4 6.28 · 106 2.97 · 106 95 Column pf 1.277 · 105 1.255 · 105 1.229 · 105 1.285 · 105
6 3.85 · 107 3.44 · 107 342 failure b 4.21 4.21 4.22 4.21
8 1.01 · 107 8.27 · 108 890
10 3.20 · 109 2.20 · 109 1912 Beam pf 8.630 · 106 8.607 · 106 8.275 · 106 8.650 · 106
12 1.77 · 109 1.53 · 109 3959 failure b 4.30 4.30 4.31 4.30
Table 5
Maximum relative error for the test set obtained with NN (steel frame
adopted for the random variables are in general greater
example) than what is generally suggested by other authors [14,15].
s1 – number e (%)
If smaller coefficients of variation were used, this would
of neurons in certainly result in a smaller probability of failure.
NSd(COLUMN) NSd(BEAM) My,Sd(COLUMN,BEAM)
hidden layer For each limit state function considered, the corre-
4 1.42 2.14 1.11 sponding probability of failure was compared to that
6 0.771 1.11 0.711 obtained using conventional MCS (without NN), with
8 0.545 0.516 0.503 computation of internal forces by finite elements for each
10 0.105 0.107 0.071 sample of the set of random variables, and using 108 sam-
12 0.067 0.069 0.067
ples. These probabilities were also evaluated using FORM
and SORM methods, built in the program COMREL-TI
5.4. Results and discussion [16]. The results for all alternative techniques are presented
in Table 7 and show a very good agreement between the
Considering, for the probabilistic model presented, NN methodology proposed by the authors and the other proce-
with s1 = 12, several Monte Carlo simulations are per- dures considered.
formed. The corresponding values of the probability of For this example, the application of a conventional MC
failure and computation time are shown in Table 6. Failure approach performing 108 computer analyses lasted 6524 s,
is supposed to take place if at least one of the ultimate limit being much slower than the NN-based approach, as seen
state functions is violated. It should be noted that the MCS by the corresponding times shown in Table 6. However, it
enables to conclude that beam failure always occurs simul- is important to stress that the most substantial amount of
taneously coupled with column failure; hence the probabil- time involved in a NN-based procedure is usually spent in
ity of failure of the frame, pf, is equal to the probability of the training phase, as shown by the NN training and simu-
violating the ultimate limit state function associated with lation times for this example, given respectively in Tables 4
column failure. Denoting column failure by event C with and 6. Hence, a comparison based uniquely on the time con-
probability pf(C) and beam failure by event B with proba- sumed during the simulation phase can be misleading.
bility pf(B), it was detected that pf = pf(C [ B) = pf(C)
because pf(C \ B) = pf(B). The possibility of making this 6. Example 3: six element truss
type of system reliability analysis can be seen has a major
advantage of MCS [5]. The next structure considered is a six-bar simply sup-
The probability of failure of the structure, pf, is found to ported truss with random load and random material yield
be 1.277 · 105, and the corresponding reliability index b is stress, also examined in Murotsu et al. [17] and Burton and
equal to 4.21. It is therefore clear that the level 1 method- Hajela [18]. The initial geometry is shown in Fig. 6. The x
ology prescribed in the Eurocodes produces, in this case, a and y coordinates of node 4 always stay equal and are con-
design safer than the limit b = 3.8 recommended for com- sidered as the first design variable, nx. All the six-bars have
mon structures [1]. It is important to outline that the struc- the same cross-sectional area, and this area is the second
tural shapes were chosen considering a design point located design variable, A. Limits on these variables are specified
very close to the infeasible domain, and so this safety mar- in Table 8. The mass of the truss is optimized considering
gin cannot be justified by a conservative initial design. It two random variables, a load P applied at node 3 and the
should also be pointed out that the coefficients of variation material yield stress, Ty. The statistic parameters adopted
are shown in Table 9. A Young’s modulus E = 206 GPa
Table 6 and a specific weight q = 7800 kg/m3 are considered. Six fail-
Probability of failure of steel frame computed with MCS + NN consid- ure functions (one for each bar) are defined, gi = Ty |Ti|,
ering s1 = 12
where Ti is the stress in bar i shown in Fig. 6. Structural col-
Sample size Probability of failure Time (s) lapse is supposed to take place when at least one bar fails.
6 5
10 1.233 · 10 4 The optimization is performed assuming that the probability
107 1.368 · 105 42 of failure should not exceed pf = 0.001, corresponding to a
108 1.277 · 105 424
reliability index b = 3.090, as was used in [18].
512 J.B. Cardoso et al. / Advances in Engineering Software 39 (2008) 505–513
P 3 5 4
3m 2 4
1 2
1
3m
The NN has a number of neurons in each layer desig- As the probability of failure is of order of magnitude
nated by s0, s1 and s2, respectively, for the input, hidden 103, a Monte Carlo simulation with 105 independent sets
and output layers. Three input neurons are needed, one is sufficient. A simple genetic algorithm [19] with 24 genes
for each chromosome (12 for each design variable) and a
Table 8 population of 48 chromosomes was used. Probabilities of
Design variables for the six-bar truss
crossover and mutation were taken, respectively, equal to
Design variable Lower limit Upper limit 0.8 and 0.008. After evolving for 48 generations, results
Node 4 coordinates, nx (m) 1.5 4.0 very close to [18] were obtained, as shown in Table 12.
Cross-sectional area, A (m2) 1.0 · 104 4.0 · 104
Table 10
Table 9 Quadratic mean error and training time for NN (steel frame example)
Random variables for the six-bar truss s1 – number of neurons Error obtained with Error obtained
Variable Distribution Mean Standard Coefficient of in hidden layer training set with test set
deviation variation 8 7.4621 · 106 4.4976 · 106
Load, P (kN) Normal 30 3 0.10 16 4.1077 · 107 2.9092 · 107
Yield stress, Ty Normal 172 8.6 0.05 24 5.3745 · 108 4.6667 · 108
(MPa) 32 1.7546 · 108 3.2032 · 108
J.B. Cardoso et al. / Advances in Engineering Software 39 (2008) 505–513 513
Table 12
The present work was conducted in the framework of
Reliability-based optimization results for the six-bar truss example the Research Project POCTI/ECM/36055/99, financed by
Design variable/ GA + NN Burton and Difference (%)
the Portuguese Foundation for Science and Technology.
objective function Hajela [18] This support is gratefully acknowledged.
nx (m) 2.359 2.366 0.28
A (m2) 1.563 · 104 1.557 · 104 0.36 References
Mass (kg) 22.512 22.450 0.28
[1] Eurocode 1: basis of design and actions on structures. European
Committee for Standardization, Brussels; 1994.
[2] Eurocode 3: design of steel structures. European Committee for
The number of Monte Carlo simulations performed was
Standardization, Brussels; 1992.
482 = 2304, requiring a total computational time of 329 s [3] Hasofer AM, Lind NC. Exact and invariant second-moment code
in a parallel cluster with six nodes composed of Pentium format. ASCE, J Eng Mech Div 1974;100(EM1):111–21.
3.0 GHz PC’s. [4] Shooman ML. Probabilistic reliability: an engineering
approach. McGraw-Hill; 1968.
[5] Mahadevan S. In: Cruse TA, editor. Monte Carlo simulation:
7. Conclusions
reliability-based mechanical design. Marcel Dekker; 1997. p. 123–46.
[6] McCulloch WS, Pitts W. A logical calculus of ideas immanent in
Whenever it is possible to define and model adequately nervous activity. Bull Math Biophys 1943;5:115–33.
the random variables that influence structural behavior, [7] Berke L, Hajela P. Applications of artificial neural nets in structural
the use of level 3 reliability methods such as MCS allows mechanics. Structural optimization, vol. 4. Springer-Verlag; 1992, p.
90–8.
a more rigorous design approach than the semi-probabilis-
[8] Bento JP. Modeling mechanical behavior without mechanics. In:
tic level 1 methods presented in the Eurocodes. However, Tasso C, de Arantes e Oliveira ER, editors. Development of
the amount of time required by conventional MCS makes knowledge-based systems for engineering. Springer-Verlag; 1998. p.
its application not practical. 37–58.
In recent years, NN have become a successful means for [9] Hurtado JE. Neural networks in stochastic mechanics. Arch Comput
Meth Eng 2001;8(3):303–42.
performing function approximation. An example in which
[10] Papadrakakis M, Papadopoulos V, Lagaros ND. Structural reliabil-
a non-linear function was approximated by NN confirmed ity of elastic–plastic structures using neural networks and Monte
the accuracy of this technique. Carlo simulation. Comp Meth Appl Mech Eng 1996;136:145–63.
The application of NN to structural problems, while [11] Rosenblatt F. The perceptron: a probabilistic model for information
leading to satisfactory precision, enables to speed up signif- storage and organization in the brain. Psychol Rev 1958;65:386–408.
[12] Rumelhart DE, Hinton G, Williams R. Learning internal represen-
icantly the computation of structural response. This feature
tations by error propagation. PDP Research Group. Cambridge:
is particularly relevant in reliability analysis, where a very MIT Press; 1986.
substantial computing effort is normally required in order [13] Cybenko G. Approximation by superposition of sigmoidal functions.
to evaluate accurately the probability of failure. Math Control Signal Syst 1989;2(3):303–14.
In the second example considered (reliability analysis of [14] Thoft-Christensen P, Baker MJ. Structural reliability theory and its
applications. Springer-Verlag; 1982.
a single-storey steel frame), MCS was performed using NN
[15] Neves LAC, Cruz PJS, Henriques AAR. SFEM reliability of steel
for describing structural behavior. The results were similar frames. In: Proceedings of the Eurosteel conference; 2002. p. 1531–40.
to those obtained by conventional MCS and the computing [16] COMREL-TI Users Manual, RCP GmbH, Munich; 1992.
time was reduced. www.strurel.de.
In the third example (reliability-based optimization of a [17] Murotsu Y, Shao S, Kogiso N, Tomioka H. Optimal shape of truss
structure based on reliability. In: Proceedings of the US–Japan joint
six-bar truss), NN were used in conjunction with genetic
seminar on structural optimization; 1996. p. 145–56.
algorithms and MCS. In spite of the problem analysed [18] Burton SA, Hajela P. A variable-complexity approach to second-
being non-convex, this methodology made possible to get order reliability-based optimization. Struct Multidiscip Optimization
a solution for the optimum structural design with reliability 2003;25:237–50.
constrains. A parallel computing scheme was adopted, hav- [19] Goldberg DE. Genetic algorithms in search, optimization and
machine learning. Addison-Wesley; 1989.
ing been found that genetic algorithms can be easily and