
2.3 Relative Frequency Shift for
Multiple Cracks Scenario
When multiple cracks are present, each crack inde-
pendently alters the stiffness of the beam and affects
modal parameters, such as natural frequencies, mode
shapes and damping factors. If the cracks are suffi-
ciently far apart (more than 5mm), the superposition
principle applies, allowing the effects to be consid-
ered independently (Gillich et al., 2021).
The total RFS for two cracks is:
∆ f
i
(c1,d1,c2,d2) = ∆ f
i
(c1,d1) + ∆ f
i
(c2,d2) (14)
Experiments show that for cracks at least 5mm
apart, the EHB model applies with less than 0.005%
error (Gillich et al., 2021).
In our study, we use these relations to calculate
RFSs for any crack combination. This allows us to
train our PSO model on various crack scenarios, solv-
ing the optimization problem of identifying damage
properties from RFS data.
3 APPROACH AND
METHODOLOGY
For our simulations we will consider a cantilever
beam of 1000mm in length and a depth of 20mm.
We will be using a GeneralOptimizer PSO from
the Pyswarms library (PYS, ) as our PSO model. The
following is the form of the objective function that the
model must optimize:
f (solution) = −
∑
8
i=1
(RFS
i
(solution) −InputRFS
i
)
2
−5
(15)
where RFS
i
is the function from equation 14, i de-
notes the frequency modes, the solution denotes two
places and two depths for the cracks, and InputRFS
i
denotes the relative frequencies shifts received as in-
put for the fractured beam.
Going forward, whenever we discuss the charac-
teristics of a fractured beam (or target) using a 4-value
array such as [0.12, 0.65, 0.34, 1.34], the first two val-
ues, 0.12 and 0.65, denote the locations of the cracks
on a scale ranging from 0 to 1, while the final two val-
ues, 0.34 and 1.34, represent the depths of the cracks
on a scale ranging from 0 to 2. For locations, the
boundaries of the space search are therefore [0 - 1]
and for depths, [0 - 2]. The RFS equation will be used
to construct the InputRFS
i
when we test our model by
creating random targets using the previously outlined
structure.
The following formula is used to calculate the er-
ror:
err(predicted) =
|predicted −real|
length of interval
∗100 (16)
The length of the interval is 1 −0 = 1 in the case
of location and 2 −0 = 2 in the case of depth.
3.1 Hyper-Parameters Tuning
We employed an exhaustive search (GridSearch) to
optimize the parameters c1, c2, and w. Initially, we
used 100 particles and 200 iterations, exploring the
range [0.0 - 1.0] for each parameter with a target of
[0.2, 0.3, 0.2, 0.1] and a Star topology. The opti-
mal parameters found were c1 = 0.4, c2 = 0.5, and
w = 0.1, but predictions with these settings were in-
consistent, with errors up to 80
To address this, we ran GridSearch on 48 random
targets, saving the parameters and costs after each run,
and computed weighted averages: c1 = 0.4, c2 = 0.6,
and w = 0.2. Despite the close similarity to the initial
results, the error remained unsatisfactory.
We manually tested a broader range of values, dis-
covering that higher c1 values improved performance
due to the function’s numerous local minima. Even-
tually, we identified c1 = 3, c2 = 0.25, and w = 0.5
as promising settings, occasionally achieving errors
close to 1%.
To validate these findings, a comprehensive Grid-
Search with c1 and c2 in [0.2 - 5] and w in [0.1
- 1.1] was conducted, targeting [0.05878, 0.08467,
0.49865, 0.25434]. The results, c1 = 4.2, c2 = 0.6,
and w = 1.0, confirmed the need for higher c1. How-
ever, due to concerns about local minima, we retained
c1 = 3, c2 = 0.25, and w = 0.5. Despite these adjust-
ments, error rates varied from 0.5% to 36%.
Further experimentation revealed the Ring topol-
ogy to be more effective than the Star topology. The
Ring topology limits communication to a finite num-
ber of neighbours, enhancing exploration and reduc-
ing the risk of convergence to local minima. We found
that 50 neighbors per particle yielded the best results,
regardless of total particle count (100, 200, or 700).
Finally, increasing the number of iterations from
200 to 1000 and the total number of particles from
100 to 700 was necessary for proper convergence.
However, we later found that increasing the number
of particles to 700 was not the most effective strategy,
as will be discussed in the subsequent sections.
We conducted a comprehensive set of tests to
identify the subintervals where the model performs
well and where it encounters difficulties. The loca-
tion interval was divided into four subintervals: [0.0 -
0.1], [0.1 - 0.8], [0.8 - 0.9], and [0.9 - 1.0], while the
Multiple Crack Detection in Beam-Like Structures Using a Novel Particle Swarm Optimization Approach
337