<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>stability prediction and uncertainty quantification in safety monitoring systems⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bohdan Solovei</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleksandr Terentyev</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2026</year>
      </pub-date>
      <abstract>
        <p>This study proposes a Bayesian Long Short-Term Memory model for forecasting crane stability and quantifying its inherent uncertainty, aiming to enhance crane safety monitoring systems. The model's performance was evaluated through training and validation loss curves, with the training loss consistently decreasing from 0.538 to 0.02. The validation accuracy reached a maximum of 0.97 within 150 epochs. Additionally, the model's prediction uncertainty was quantified, revealing that it exhibited high confidence in the majority of predictions, while flagging a smaller subset of highly uncertain cases. A safety alert mechanism based on prediction uncertainty was developed, showing a clear relationship between the required confidence level and the number of safety alerts generated. As the confidence threshold increased from 80% to 95%, the system became more sensitive, with a notable spike in alerts at the 97.5% confidence level. This demonstrates the potential of tuning the crane safety system's sensitivity to meet specific operational needs.</p>
      </abstract>
      <kwd-group>
        <kwd>Bayesian Long Short-Term Memory model</kwd>
        <kwd>alert notification model</kwd>
        <kwd>stability index of a monorail crane</kwd>
        <kwd>z-score</kwd>
        <kwd>Gaussian distribution</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>model for crane</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>
        Mobile boom cranes play an indispensable role in modern civil engineering, particularly in
dense urban construction sites and complex industrial settings. However, the operational
flexibility that makes these machines so valuable also introduces significant safety challenges.
To ensure the safe operation of any mobile boom crane, its stability must be guaranteed,
eliminating any possibility of tipping over, even when subjected to the most unfavorable
combinations of load and environmental factors [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]
      </p>
      <p>The stability of a</p>
      <p>
        mobile boom crane is quantified by its stability coefficient. This
coefficient is typically defined as the ratio of the stabilizing moments to the overturning
moments generated by the load, the boom's self-weight, and external forces [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The
permissible values for crane stability coefficients are strictly regulated by the State Labor
Service of Ukraine [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Therefore, accurate, real-time prediction and monitoring of the
stability coefficient are the basis of any modern crane safety monitoring system.
      </p>
      <p>
        In response to the need for proactive safety measures, recent advancements in artificial
intelligence have led to the use of Recurrent Neural Networks (RNNs) and their more
advanced variants, Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU)
models, for crane safety assessments. These deep learning architectures are uniquely suited to
this task due to their inherent ability to model and learn from sequential, time-series data [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        However, a fundamental limitation is inherent in these standard recurrent models: they are
deterministic. While an LSTM or GRU can predict the most likely future stability coefficient, it
produces only a single point-estimate, offering no insight into the model's confidence or the
range of other plausible outcomes [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. This is a significant shortcoming for safety-critical
systems operating in unpredictable real-world environments. For example, a crane subjected
to a sudden, unexpected impact may not be perfectly captured by the model's training data. In
such scenarios, a deterministic prediction could be dangerously misleading.
      </p>
      <p>This gap necessitates a probabilistic approach to risk assessment that treats the network's
parameters as probability distributions rather than fixed values. A model capable of
quantifying its own uncertainty would allow a safety system to make decisions based on a
formal risk calculation, triggering an alert if the probability of failure exceeds a critical
threshold.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Literature Review</title>
      <p>Today, safety monitoring systems for building cranes increasingly rely on IoT streaming data
combined with AI models capable of effectively processing this data and producing reliable,
real-time results. The prediction of time-dependent parameters in engineering systems has
been significantly advanced by the application of the Long Short-Term Memory (LSTM)
model.</p>
      <p>
        In study [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], an LSTM-based Recurrent Neural Network (RNN) model was developed to
successfully capture the complex, non-linear dynamics of a crane system, aiming to mitigate
undesired oscillations in overhead crane operations used in material handling. The proposed
model architecture includes two LSTM layers with 64 neurons each, designed to learn patterns
from time series data. The output of the second LSTM layer is fed into a fully connected layer
with 128 neurons using ReLU activation. The final output layer, with a single neuron, returns
a continuous value representing the predicted swing angle.
      </p>
      <p>
        In study [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], an LSTM model was trained using real operational error data from container
cranes to enhance error recognition and prediction in the multibillion-dollar container
shipping industry. The model architecture consists of two LSTM layers and a final dense
output layer. It was compiled using a binary cross-entropy loss function, the Adam optimizer,
and accuracy as the evaluation metric. Training was conducted with a batch size of 50 over 40
epochs.
      </p>
      <p>In study [8], an LSTM model was used in a hybrid solution alongside a Convolutional
Neural Network (CNN) for a real-time crane automation system, designed to operate under
challenging visual conditions. The system employs GoogLeNet, a deep CNN, to extract rich
visual features from input images. These features are then passed to an RNN with LSTM units.
The LSTM acts as a controller, processing temporal sequences to guide the final detection of
corner castings.</p>
      <p>
        As shown in studies [
        <xref ref-type="bibr" rid="ref6 ref7">6-8</xref>
        ], those approaches employed an LSTM model based on RNN
architecture (Figure 1) which for a sequence of input vectors X={x1,x2,…,xt} iteratively
computes a hidden state ht that depends on the current input xt and the previous hidden state
ht-1 [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] The computation of the hidden state ht at each time step t is defined by:
ht = tan h ( W x h xt + W hh ht -1 + bh )
The output yt is generated from the hidden state via another transformation:
(1)
yt = tan h ( W h y ht + b y ) (2)
where Wxh,Whh,Why represent the input-to-hidden, hidden-to-hidden, and hidden-to-output
weight matrices, respectively; bh, by are biases terms; the tanh(x) function returns the
hyperbolic tangent of the input.
      </p>
      <p>The standard approach for training LSTMs on long sequences is Truncated
Backpropagation Through Time technique (TBTT), which involves breaking the sequence into
smaller chunks for gradient computation (Figure 2) [9].</p>
      <p>LSTM based on RNN incorporates a “gating mechanism” - specialized neural network
components that regulate the flow of information through the cell (Figure 3). Its architecture
employs three distinct gates: an input gate to control which new information is stored, a
forget gate to discard irrelevant memories from the cell state, and an output gate to determine
what information influences the next hidden state. This intricate structure allows LSTMs to
effectively capture and maintain information over extended time horizons, making it a
standard for complex sequence modeling tasks [10].</p>
      <p>
        LSTM forget gate ft by applying a sigmoid function σ identifies which parts of the previous
cell state should be retained. The output is in the range [
        <xref ref-type="bibr" rid="ref1">0, 1</xref>
        ]:
      </p>
      <p>f t = σ ( W fx xt + W f h ht -1 + bf ), (3)
where Wfx,Wfh are the weight matrices for the forget gate; xt is the current input at time
step t; ht-1 is the previous hidden state, bf is the bias vector of the forget gate.</p>
      <p>The input gate it also applies a sigmoid function to determine how much of the new input
should be written to the cell state:</p>
      <p>it = σ ( W ix xt + W i h ht -1 + bi ), (4)
where Wix,Wih are the weight matrices for the input gate; bi is the bias vector for the input
gate.</p>
      <p>A new candidate cell state c't is generated using the tanh function, which proposes
potential new values to add to the cell state:</p>
      <p>c't = tan h ( W с ' x xt + W c ' h ht -1 + bc ' ), (5)
where Wc’x, Wc’h are weight matrices for the candidate cell state; bc’ is the bias vector of the
candidate state.</p>
      <p>The updated cell state Ct combines the previous state (modulated by the forget gate) and
the new candidate (modulated by the input gate):</p>
      <p>Ct = (Ct -1⨀f t )⊕ ( it ⨀c't ),
where ⊙, ⊕ are elementwise multiplication and sum respectively.</p>
      <p>The output gate Ot controls how much of the cell state is output:</p>
      <p>Ot = σ (W ox xt + W o h ht -1 + bo), (7)
where Wox, Woh are output gate weights, and bo is the bias vector.</p>
      <p>The final hidden state ht at time step t is computed as:</p>
      <p>ht = Ot ⨀tan h ( Ct ), (8)</p>
      <p>
        Based on equations (3–8), it is evident that while an LSTM can predict the most likely
future value, it produces only a single point estimate. This offers no information about the
model’s confidence, which makes the solutions in studies [
        <xref ref-type="bibr" rid="ref2 ref3 ref4">2–4</xref>
        ] less reliable for safety-alerting
systems.
      </p>
      <p>In the current study, we propose a hybrid Bayesian LSTM model for building crane safety
monitoring systems. A Bayesian LSTM model has the advantage of being able to quantify its
own uncertainty. This will allow the safety monitoring system to make decisions based on
formal risk calculations, such as triggering an alert if the probability of the stability coefficient
falling below a critical threshold exceeds a specified tolerance.</p>
    </sec>
    <sec id="sec-4">
      <title>3. Research Objective</title>
      <p>The goal of this research is to develop a Bayesian Long Short-Term Memory (LSTM) model to
forecast crane stability and quantify its own uncertainty. Together, those components will
allow a crane’s safety monitoring system to trigger an alert if the probability of failure
exceeds a critical threshold.</p>
      <p>To achieve the goal this study will resolve the tasks:
(6)




</p>
      <p>Design an architecture of Bayesian LSTM model for predicting crane stability.
Create a mathematical model for the stability index of a monorail crane.</p>
      <p>Define an alert notification model for crane stability monitoring.</p>
      <p>Train and evaluate Bayesian Long Short-Term Memory (LSTM) model.</p>
      <p>Evaluate the alert notifications model.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Materials and methods</title>
      <sec id="sec-5-1">
        <title>4.1. Bayesian LSTM model for predicting crane stability formalization</title>
        <p>Bayesian LTSM extends the standard LSTM architecture by treating all model parameters as
random variables, allowing the network to capture and quantify its predictive uncertainty. In
our research, we assumed a standard Gaussian prior to treat the weights W as random
variables governed by probability distributions, the sampled weight matrices for all gates and
biases (Figure 3) are:</p>
        <p>W x =[WWсi'xx ]= μx + σ x ∙ ϵ x = μx + softplus ( ρx )∙ ϵ x</p>
        <p>W fx</p>
        <p>W ox
W h =[WWсi'hh]= μh + σ h ∙ ϵ h = μh + softplus ( ρh )∙ ϵ h</p>
        <p>W f h
W o h
(9)
(10)
b = μb + softplus ( ρb )∙ ϵ b (11)
where ϵx, ϵh, ϵb ∽(0,I) is Gaussian noise for sampling, µx, µh ∈R4H*D and µb∈R4H are mean of
the weight distribution, ρx, ρh∈R4H*D and ρb∈R4H are learnable parameters which are used to
parametrize the standard deviations σ x , σ h , σ b of the weight distribution in Bayesian neural
network based on softplus function:</p>
        <p>σ=softplus(ρ)=log(1+eρ), (12)</p>
        <p>For ρ→+∞, softplus(ρ) → ρ, so uncertainty is large; for ρ→-∞, softplus(ρ) → 0+, so
uncertainty becomes negligible, but always positive.</p>
        <p>To train the Bayesian LSTM model on long time-series data and limit gradient computation
to a fixed time window, we employ Truncated Backpropagation Through Time (TBPTT)
technique. The full input sequence of length T is split into m chunks of length k: [1,k],
[k+1,2k], …, [T−k+1,T]. The forward pass equations (Eq. 3–8) for each chunk i are defined as:
ht = LSTM ( xt , ht -1 , ct -1 ), t∈[T[i],T[i+k-1]] (13)</p>
        <p>The training objective is to maximize the Evidence Lower Bound (ELBO). To achieve this
using standard gradient-based optimizers, is equivalently to minimize the Negative ELBO,
which is defined as loss functionℒloss. For each chunk (i) over the interval [ti,ti+k-1] the loss is
defined as:</p>
        <p>L(lois)s =- Eq(W )[ti∑t+=kt-i 1 logp ( yt | xt , ht -1 , W )]+ m1 KL( q ( W )|| p ( W )) , (14)
where p(yt|xt,ht-1,W) is the likelihood of observing the true target yt given the model's
predictive distribution generated from the input xt and weights W, q(W) is the learned
variational posterior distribution over the weights, p(W) is the fixed prior distribution over
the weights, KL(q(W)||p(W)) is a Kullback-Leibler divergence between the posterior and the
prior, X and Y are the sequences of input and corresponding target.</p>
        <p>The first term measures how well the model's predictions fit the data within chunk. The KL
term acts as a regularizer, penalizing q(W) for deviating significantly from the prior p(W),
thus controlling model complexity.</p>
        <p>The backpropagated gradient ∇ W L(lois)s over the time window from t to t+k-1 is defined via
the chain rule as:
(i)
∇ ρW L(lois)s = t ∑+k -1 Lloss ∙ ∂ W j (15)
j =t ∂ W j ∂ ρW</p>
        <p>(i)
∇ μW L(lois)s = t ∑+k -1 Lloss ∙ ∂ W j (16)</p>
        <p>j =t ∂ W j ∂ μW
The parameters µW, ρW are updated using gradient ascent:
μ(Wi) = μ(Wi) - α ∇ μW L(lois)s (17)
ρ(Wi) = ρ(Wi) - α ∇ ρW L(lois)s (18)
where α is the learning rate, and the gradients are accumulated across time steps in the
chunk.</p>
      </sec>
      <sec id="sec-5-2">
        <title>4.2. Bayesian LSTM model for predicting crane stability architecture</title>
        <p>We propose model architecture consists of Bayesian LSTM layer with 32 hidden units,
followed by a dense layer with ReLU activation. The final layer is a single-neuron linear layer
with no activation function, which acts as a linear head.</p>
        <p>The Bayesian properties of the model are achieved through the application of Monte Carlo
Dropout. Dropout layers with a rate of 0.3 are applied after the recurrent layer and the dense
layer. During inference, dropout is kept active, and we perform multiple stochastic forward
passes for each input data point. The mean of the resulting distribution of predictions is taken
as the final predicted value (μ), and its standard deviation is used as a measure of model
uncertainty (σ).</p>
      </sec>
      <sec id="sec-5-3">
        <title>4.3. The mathematical model of stability index for the monorail crane</title>
        <p>The load stability index of a monorail crane in the first operating position, when the boom is
aligned along the rail track (Figure 4) and the crane is under load, is defined under the
condition in which the restoring and overturning moments are balanced is defined as [11]:
β =</p>
        <p>Gcr ( k - b )+ G pr ( c + k )+ Gt k ,</p>
        <p>Ggr ( a - k )
where Gcr is a crane own weight (kN); Ggr is a weight of the load, (kN); Gpr is a weight of
the counterweight, (kN); Gt is a weight of the trolley with mechanisms; a is a distance from
the axis of rotation to the center of gravity of the load, (m); b is a distance from the crane's
axis of rotation to its center of gravity, (m); c is a distance from the crane’s axis of rotation to
the counterweight’s center of gravity, (m), k = 0.4∙a is distance from the crane’s axis of
rotation to the running wheel, (m).</p>
        <p>Equation (20) assumes static and idealized conditions, without considering dynamic effects,
structural deformations, or external forces such as wind. To improve accuracy under
realworld operating conditions in our research we apply the finite element method (FEM). In this
model, the crane beam is discretized into four two-node beam elements. Each node has two
degrees of freedom: vertical displacement and angular rotation. According to FEM theory [12],
the load vector for a beam element is defined as:
(19)
F =[ MF 1],</p>
        <p>F1</p>
        <p>2</p>
        <p>M 2
where F1=Gcr∙k is a vertical force at node 1, F2=Ggr∙a is a vertical force at node 2, M1= Gcr∙k∙s
is a moment at node 1, M1= Ggr∙a is a moment at node 2, s is a distance from the boom hinge to
the center of gravity of the load.</p>
        <p>l3 [- 12 - 6 le</p>
        <p>12 6 le
k e = EI 6 le 4 l2e
e
6 le 2 l2e
- 6 le]
6 le
2 l2e ,
4 l2e
(20)
(22)
(23)
where E - Young’s modulus, Pa; I is a moment of inertia of the cross-section, m⁴;le – length
of the crane beam, m.</p>
        <p>The load stability index β of the crane (Figure 5), accounting for nodal displacements and
rotations uf, is defined as the ratio of stabilizing moments Mstab to overturning moments Movt:
β = Mstab , (24)
М ovt
1 , Mstab ≥ 1.4</p>
        <p>М ovt
0 , Mstab &lt; 1.4
М ovt
.</p>
        <p>(25)
where Mstab=Gcr(k-u1)+Ggr(a-u2) is a total stabilizing moment, accounting for beam
deformation, Movt=Ggr(a-k-u3) is overturning moment, adjusted for displacement, u1,u2,u3 – are
displacements at relevant nodes (determined from FEM solution uf)</p>
        <p>The stability index S is modeled as a binary threshold function:
Condition (25) indicates whether the system is stable (1) or unstable (0) based on a safety
factor of 1.4, as per engineering standards.</p>
      </sec>
      <sec id="sec-5-4">
        <title>4.4. Alert notifications model for crane stability monitoring</title>
        <p>Given that the Bayesian LSTM model predicts the stability index as a Gaussian (normal)
distribution, we define:</p>
        <p>Stability Index ∽ N (µ,σ2),
where μ is a mean expected stability; σ is the standard deviation (model's uncertainty about
stability).</p>
        <p>Let the risk of failure be the probability that the predicted stability index falls below a critical
threshold τ. The z-score for the threshold τ is computed as [13]:</p>
        <p>τ - μ
z = , (26)</p>
        <p>σ + ϵ
where τ is the critical threshold of stability, ϵ = 10- 8 is a constant to ensure numerical
stability in cases of near-zero variance.</p>
        <p>The cumulative probability of failure Pf is calculated using the cumulative distribution
function (CDF) for the standard normal distribution Φ(∙):</p>
        <p>Pf = Φ ( z ) (27)
An alert notification is triggered if the probability of failure exceeds the maximum acceptable
risk tolerance level α:</p>
        <p>A = {1 , if Pf &gt; α</p>
        <p>0
The sequence of operations in the alert notification model is illustrated in Figure 5.
(28)</p>
        <p>At each time step, a new data vector X is collected, representing the current crane
state.</p>
        <p>The input X is passed through the pretrained Bayesian LSTM model. The model
outputs a Gaussian distribution for the predicted stability index: N(μ, σ²), where μ is
the most likely stability index (the mean), and σ² is the variance, which quantifies the
model's uncertainty about its prediction.</p>
        <p>The system evaluates the risk that the true stability index is below the critical
threshold  using Equations (27-28).</p>
        <p>If the calculated risk exceeds the defined acceptable limit α, an alert (A=1) is issued.
This notification is sent to the automated monitoring system for potential
intervention.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Experiment preparation</title>
      <sec id="sec-6-1">
        <title>5.1.1. Data Collection and Annotation</title>
        <p>The application of the proposed stability index calculation, which is based on FEM theory and
defined by the formulas in this study, requires a set of specific input parameters. These
parameters are sourced from various IoT devices installed on the monorail crane. The key
simulated devices and their corresponding data schemas are detailed in Table1 -Table2. Each
device streams data using the MQTT protocol, which is aggregated by a gateway and
published to the central data platform (Figure 7).</p>
        <sec id="sec-6-1-1">
          <title>Field description Unique identifier of the device (e.g., "encoder_01") ISO 8601 timestamp equal to time when data is captured</title>
          <p>The total length of the crane's main beam
Distance from the beam's reference point to the load
Distance from the crane’s axis of rotation to the
running wheel
Operational status of the sensor (e.g., "OK", "ERROR")</p>
        </sec>
        <sec id="sec-6-1-2">
          <title>Field description Unique identifier of the device (e.g., "loadcell_01") ISO 8601 timestamp equal to time when data is captured</title>
          <p>The mass of the payload as measured by the load cell
Operational status of the sensor (e.g., "OK", "ERROR")</p>
        </sec>
        <sec id="sec-6-1-3">
          <title>Data type String Timestam p</title>
          <p>Float
Float</p>
        </sec>
        <sec id="sec-6-1-4">
          <title>Float String</title>
        </sec>
        <sec id="sec-6-1-5">
          <title>Data type String Timestam p</title>
          <p>Float
String</p>
          <p>To simulate a comprehensive range of realistic operational conditions, a synthetic dataset
comprising 1,000 records with data for parameters (listed in Table 2-3) were sampled from
uniform distributions, with the specific ranges chosen to reflect typical monorail crane
specifications, as detailed in Table 4.</p>
          <p>The generated data was used to emulate a real-time data ingestion pipeline. Each record
was serialized into a JSON message format and published to a dedicated Apache Kafka topic
corresponding to its device type (topic-encoders, topic-load-cells). A Kafka consumer
application was developed to subscribe to these topics and process the incoming data streams.</p>
          <p>The data processing workflow executed by the consumer involved several key stages. First,
each incoming message was validated against its corresponding schema (as defined in Tables
2-3) to ensure data integrity. Messages from the different streams were then joined by their
timestamp to create a unified record representing the state of the crane at a single point in
time.</p>
          <p>Following this aggregation, for each unified record, the nodal displacements and rotations
(u1,u2,u3,) were calculated according to Equation (22). Subsequently, the total stabilizing
moment and overturning moment were computed using Equation (25), and stability index via
Equation (26). This fully enriched dataset, containing both the raw sensor values and the
derived physical metrics, was stored into structured table. This table served as the complete,
supervised dataset for the training, validation, and final evaluation of the Bayesian LSTM
model.</p>
          <p>Figure 7 visualizes the spatial distribution of the stability index (β) of a monorail crane as a
function of the stabilizing moments Mstab to overturning moments Movt in the collected dataset.
It shows that regions where the stability index β is less than 1.4 correspond to cases where the
overturning moment exceeds the stabilizing moment, which is consistent with theoretical
mechanical principles governing crane stability.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>6. Results and discussion</title>
      <p>Figure 8 (a) illustrates the convergence of the training loss for the Bayesian LSTM model,
which decreases consistently from an initial value of 0.538 to a final value of approximately
0.02. This confirms the model was continuously minimizing its error on the training data. In
contrast, the validation loss, after initially decreasing from 0.271 to a minimum of
approximately 0.066, began to consistently rise, eventually finishing at 0.09. This divergence,
where the validation loss rises while the training loss falls, is a definitive indicator that the
model has started to overfit.</p>
      <p>This evidence justifies our proposal to implement an early stopping mechanism, which
halts the model’s training when the validation loss fails to improve for a set number of epochs
(e.g., 15–20). This practice ensures the model is saved at its peak generalization performance.</p>
      <p>The accuracy plot in Figure 8 (b) shows that the validation accuracy improves over the
epochs reaching its maximum value 0.97 within 150 epochs.</p>
      <p>Figure 8 (c), which displays prediction uncertainty, shows that while the model is confident
in the vast majority of its predictions (260 predictions with σ less than 0.02), it successfully
identifies a smaller subset of cases where it is highly uncertain (140 predictions with σ more
than 0.02).</p>
    </sec>
    <sec id="sec-8">
      <title>7. Conclusion</title>
      <p>This paper proposes a Bayesian Long Short-Term Memory (LSTM) model to forecast crane
stability and quantify its own uncertainty. Together, those components llow a crane’s safety
monitoring system to trigger an alert if the probability of failure exceeds a critical threshold.</p>
      <p>Our results demonstrate that the Bayesian LSTM model can effectively learn the complex,
non-linear dynamics of crane operation. The model's ability to quantify its own prediction
uncertainty was clearly validated with the accuracy reached 0.97 and training and validation
losses are 0.02 and 0.07 correspondingly. The showed high confidence (uncertainty is less than
0.01) in predictable scenarios while successfully identifying and flagging a critical subset of
operations with high uncertainty, which correspond to ambiguous or potentially dangerous
situations.</p>
      <p>The proposed z-score alerting mechanism proved to be a practical and effective method for
translating model uncertainty into actionable safety alerts. The analysis showed a clear,
nonlinear relationship between the required confidence level and system sensitivity. A confidence
threshold of 97.5% was found to be particularly effective, triggering a sharp increase in alerts
that captured a large volume of uncertain conditions missed by lower thresholds. This
confirms that the crane safety monitoring system can be tuned to a desired level of caution,
enabling a formal, risk-based approach to safety management.</p>
      <p>Future work focus is to explore an alternative probabilistic architectures, such as Bayesian
GRUs, which may offer different performance trade-offs. Investigating adaptive thresholding
for the z-score rule, where the alert sensitivity could be dynamically adjusted based on
environmental factors like wind speed or ground conditions.</p>
    </sec>
    <sec id="sec-9">
      <title>Declaration on Generative AI</title>
      <sec id="sec-9-1">
        <title>The author(s) have not employed any Generative AI tools.</title>
        <p>[8] M. Safaei, M. Hejazian, S. Pedrammehr, S. Pakzad, M. Ettefagh, M. Fotouhi, “Damage
Detection of Gantry Crane with a Moving Mass Using Artificial Neural Network”.</p>
        <p>Building, vol. 14, no.2, 458, (2024). doi:10.3390/buildings14020458.
[9] J. Pasukonis, T. Lillicrap, D. Hafner, “Evaluating long-term memory in 3d mazes”. arXiv
preprint arXiv:2210.13383, (2022).
[10] P.L. Seabe, C. Moutsinga, “Pindza,Forecasting cryptocurrency prices using LSTM, GRU,
and bi-directional LSTM: a deep learning approach”. Fractal and Fractional, vol. 7, no. 2,
(2023). doi: 10.3390/fractalfract7020203.
[11] Волянюк, В. О., Горбатюк, Є. В. Розрахунок механізмів вантажопідіймальних
машин: навч. посіб. Київ: КНУБА, 2021. 136 с. ISBN 978-966-627-233-4.
[12] S. Lipiec, O. Zvirko, I. Dzioba, &amp; O. Venhryniuk. “Application of the numerical simulation
method for the strength analysis of long-term portal crane components”. Advances in
Science and Technology. Research Journal, vol. 19, no.4, (2025). doi
:10.12913/22998624/200055
[13] Y. Zhou, D. Zhang, H. Huang &amp; Y. Xue. “Effect of normal transformation methods on
performance of multivariate normal distribution”. ASCE-ASME Journal of Risk and
Uncertainty in Engineering Systems, Part A: Civil Engineering, vol. 8, no.1, 04021074,
(2022). doi: 10.1061/AJRUA6.0001198</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F. H</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>“Automated selection and localization of mobile cranes in construction planning”</article-title>
          .
          <source>Buildings</source>
          , vol.
          <volume>12</volume>
          no.
          <issue>5</issue>
          , (
          <year>2022</year>
          ). doi:
          <volume>10</volume>
          .3390/buildings12050580.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B.J.</given-names>
            <surname>Yoon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.S.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.H.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>"Study on overturn proof monitoring system of mobile crane"</article-title>
          .
          <source>Applied Sciences</source>
          , vol.
          <volume>11</volume>
          , no.
          <volume>15</volume>
          ,
          <issue>6819</issue>
          , (
          <year>2021</year>
          ). doi:
          <volume>10</volume>
          .3390/app11156819.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Ie</surname>
          </string-name>
          ,
          <string-name>
            <surname>Gorbatyuk</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Bulavka</surname>
          </string-name>
          , &amp; V.
          <string-name>
            <surname>Voliyanuk</surname>
          </string-name>
          , V, “
          <article-title>Analysis of studies of stationary tower cranes under wind loads”. Girnichi, budivelni, dorozhni ta meliorativni mashini [Mining, construction, road and reclamation machines]</article-title>
          . vol.
          <volume>102</volume>
          , pp.
          <fpage>17</fpage>
          -
          <lpage>23</lpage>
          , (
          <year>2023</year>
          ). doi:
          <volume>10</volume>
          .32347/gbdmm, 201.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Abubakar</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. I. Halilu</surname>
          </string-name>
          , &amp; E. Y. Ejam, “
          <article-title>A review of deep learning models for time series forecasting”</article-title>
          .
          <source>Journal of Computer Science and Its Application</source>
          , vol.
          <volume>28</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          , (
          <year>2021</year>
          ). doi:
          <volume>10</volume>
          .1109/ACCESS.
          <year>2024</year>
          .
          <volume>3422528</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>W.</given-names>
            <surname>Li</surname>
          </string-name>
          , &amp;
          <string-name>
            <surname>K</surname>
          </string-name>
          . E. Law, “
          <article-title>Deep learning models for time series forecasting: A review”</article-title>
          .
          <source>IEEE Access</source>
          , vol.
          <volume>12</volume>
          ,
          <fpage>92306</fpage>
          -
          <lpage>92327</lpage>
          , (
          <year>2024</year>
          ). doi:
          <volume>10</volume>
          .1109/ACCESS.
          <year>2024</year>
          .
          <volume>3422528</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Cui</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chipusu</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ashraf</surname>
            ,
            <given-names>M. A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Riaz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiahou</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>J</given-names>
          </string-name>
          , “
          <article-title>Symmetry-Enhanced LSTM-Based Recurrent Neural Network for Oscillation Minimization of Overhead Crane Systems during Material Transportation”</article-title>
          .
          <source>Symmetry</source>
          , vol.
          <volume>16</volume>
          , no.
          <issue>7</issue>
          ,
          <issue>920</issue>
          , (
          <year>2024</year>
          ). doi:
          <volume>10</volume>
          .3390/sym16070920.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Awasthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Krpalkova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            , &amp;
            <surname>Walsh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. “Deep</given-names>
            <surname>Learning-Based</surname>
          </string-name>
          <string-name>
            <surname>Boolean</surname>
          </string-name>
          , Time Series, Error Detection, and
          <article-title>Predictive Analysis in Container Crane Operations”</article-title>
          ,
          <source>Algorithms</source>
          , vol.
          <volume>17</volume>
          , no.
          <issue>8</issue>
          ,
          <issue>333</issue>
          , (
          <year>2024</year>
          ). doi:
          <volume>10</volume>
          .3390/a17080333.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>