1. Introduction
A fundamental practice for ensuring the safety, reliability and longevity of buildings, civil infrastructures, aerospace structures or similar is Structural Health Monitoring (SHM), which can be defined as the process of implementing different strategies for novelty and damage detection through periodic measurements and analyses [
1]. This is a multidisciplinary field that has evolved from qualitative visual inspections to modern SHM based on advanced automated data analysis and statistical pattern recognition. This was made possible through the development of sensor technology, wider interconnection between systems, and high-speed computing, amongst others. In recent years, other crucial players have been approaches based on Artificial Intelligence(AI), and consequently on Machine Learning and Deep Learning, that are fostering and enabling a strong transition from manual feature definition and assessment to automated and data-driven techniques [
2,
3,
4,
5]. It is worth mentioning the improvement of unsupervised learning and the diffusion of physics-informed AI applications, which implement the data-driven learning process while respecting physical principles [
6,
7]. An important branch of the wide field of SHM consists of vibration-based techniques [
8,
9,
10], which are the subject of interest for this article.
The Fundamental Axioms of Structural Health Monitoring introduced in [
11] define the general principles that should drive the realisation of any SHM technique and system. In particular, Axiom II affirms that damage assessment requires a comparison between two system states. In other words, any SHM approach requires the observation of a reference healthy state, the so-called baseline, that is compared with the current state. This comparison is realised by means of structural features extracted from measured data using, for instance, Operational Modal Analysis (OMA) [
12,
13,
14] or other techniques [
15]. However, practical implementation must face challenges related to environmental and operational variations (EOVs) and the scarcity of labelled data of damaged states. Typically, the structure under analysis is observed and characterised in a healthy state, under environmental and operational (EO) conditions, in order to understand the typical variations in the monitoring features [
16]. However, the inability to control these external factors may lead to a biased baseline towards more frequently observed conditions. In some applications, it is possible to define and adopt monitoring features that are sensitive to damage but insensitive to EOV [
17,
18]. Otherwise, if a clear relationship between influencing variables and monitored features is identified, a compensation can be performed to reveal the residual signal cleaned up from these interferences [
19,
20,
21,
22]. In [
23], the authors review different approaches to address EOV in SHM, identifying three categories of mitigation strategies: direct baseline compensation, adaptive and multi-baseline techniques, and reference-free methods, including those involving transfer learning and domain adaptation. In particular, the “data-driven virtual baseline synthesis” approach is mentioned as a method that mitigates the need for exhaustive references by reconstructing “virtual references for any given state” from a limited set of physical measurements. The key aspect of this method is the availability of a model that reliably captures EO dependencies in order to ensure diagnostic accuracy.
This article proposes a framework based on the integration of Variational Autoencoders (VAEs) [
24] and Convolutional Neural Networks (CNNs) [
25] for modelling dynamic structural responses in the frequency domain. The approach presented here involves a multi-purpose model that performs unsupervised feature learning based on measured structural response and, at the same time, can generate synthetic data to enhance various SHM techniques (e.g., data augmentation, virtual baselines [
23]). A founding decision for this approach is to work with vibration structural responses expressed in the form of Cross-Spectral Matrices (CSMs) that lead to different advantages. In fact, the frequency domain representation acts as a preliminary feature extraction step, by reducing the dimensionality while preserving information related to structural dynamics, also according to [
26]. Furthermore, it enables sample averaging to reduce the random fluctuations in the estimates of CSMs. Conversely, many other SHM approaches based on comparable models, such as Sparse Autoencoders (SAEs), operate in time domain [
27,
28] and do not exploit these advantages. The reason for adopting a CNN-VAE architecture is twofold. The first is that CNNs demonstrate high effectiveness in learning the vibration patterns [
29,
30], by capturing spectral continuity and the relationships between sensor spectra in a hierarchical manner. VAEs support this process of feature learning by enabling an advantageous probabilistic latent representation of input data [
31,
32]. The second reason is the potential of VAEs as powerful generative models for producing synthetic data. In fact, they learn the empirical joint distribution from experimental training data, making it possible to use the CNN-VAE model as a surrogate model in the field of SHM [
33] and potentially for uncertainty quantification [
34] based on the probabilistic framework of VAEs. In general, generative models are one of the emerging class of approaches for SHM [
35].
This kind of empirical models are often fundamental for the implementation of SHM approaches since they are trained on a baseline dataset to capture the variability of the healthy structure response due to EOV. Then, they are fed with new monitoring data and measures based on reconstruction error, or changes in latent features are defined for novelty or anomaly detection. In [
36,
37], classic Autoencoders (AEs) are trained on frequency domain data of the healthy structure and the reconstruction error is used as a damage-sensitive feature. Similar approaches are proposed using SAEs [
27,
28,
38], while other approaches use the monitoring of latent space of VAEs for condition monitoring [
39] or SHM [
40].
The key advantage of the approach presented in this paper compared to other approaches in the literature is the development of a single CNN-VAE model with dual functionality: feature learning and synthetic data generation. The original contributions of this article include:
A Cholesky factorisation [
41] approach is adopted to encode CSMs into a format that brings multiple advantages in learning and generation.
The CNN-VAE model incorporates a tailored hard constraint to ensure the generation of positive (semi-)definite CSMs.
Development of custom Enhanced Loss Function (LF) for VAE training to promote the sensitivity of the CNN-VAE to modal features. This improves the accuracy of synthetic data and the use of latent distribution parameters as state/damage-sensitive indicators.
Use of CNN-VAE as an empirical surrogate model capable of generating realistic synthetic data samples. This capability can be integrated with many SHM techniques and is employed here for baseline balancing, mitigating statistical biases caused by non-uniform sampling of environmental conditions.
This paper demonstrates how this approach can be exploited to enhance long-term vibration monitoring through validation on a laboratory truss structure subject to environmental thermal variability and artificial damages. Anyway, these kinds of models are intended to be used for typical vibration-based SHM applications such as buildings [
42], bridges [
28], aerospace applications [
5] and others. Moreover, the CNN-VAE model has the potential to be easily integrated with other SHM approaches, such as OMA, when used as a generative model for frequency domain data synthesis.
The paper is structured as follows.
Section 2 describes the experimental setup of the laboratory structure and the measurement campaign with both healthy and artificially damaged structures. This section also briefly recalls the basic concepts of OMA.
Section 3 introduces the proposed methodology step-by-step, from vibration frequency domain data organisation as model input to the CNN-VAE architecture and the training approach. This section also describes how to deal with the latent variables and the methods adopted to generate synthetic data.
Section 4 shows the training of the CNN-VAE model specifically for the experimental benchmark structure and provides an evaluation of the performance achieved.
Section 5 shows the results obtained using the same CNN-VAE model for two different SHM approaches. The first is used as a generative model for baseline balancing with respect to EOV combined with OMA. The second is the use as feature extractor applied to SHM, where latent variables are used to define a novelty index. Finally,
Section 6 discusses the results obtained and
Section 7 draws the main conclusions on the methodology presented.
3. Methodology
The approach presented in this paper proposes modelling the frequency domain structural response, in terms of CSM, using a CNN-VAE architecture with a twofold objective:
In fact, CNNs’ capabilities are used to learn spectral features of healthy structure from baseline data, while VAEs are powerful generative models that produce realistic synthetic samples “similar” to training data. Essentially, the features extracted are sensitive to the most influencing factors in the reference conditions, accounting for structural dynamics and EOV, and can be used as “monitoring features”. In addition, these control the generation of synthetic structure responses that mimic the variability of real measurements for the healthy structure. The flowchart depicted in
Figure 6 shows how to integrate a CNN-VAE model with vibration-based SHM. The model can be used to implement an SHM approach directly relying on the features learned from the baseline dataset. Otherwise, traditional SHM techniques based on frequency domain data can take advantage of possible baseline augmentation strategies, exploiting the CNN-VAE as a generative model.
This section of the paper is dedicated to the general description of the building blocks of the proposed approach. A short introduction of VAEs and their classic implementation is presented, since it is the same as the implementation adopted here. Then, the approach used to encode the CSM into a format more suitable for modelling and generation is then presented. The last sections deal with the custom Enhanced LF introduced for training, the structure chosen for the CNN-VAE model and, finally, the approach to encode input data in features and how to use them for synthetic data generation. Although the following sections present and discuss one aspect at a time, the choice of some parameters and ideas intersect with each other. In the remaining part of the paper, this methodology is applied to the case study presented in
Section 2.1, but the approach developed and presented here can also be applied to analogous cases for modelling structure frequency domain output in terms of CSMs.
3.1. Variational Autoencoders (VAEs)
In the branch of deep learning, AEs [
51] are a type of neural network that is capable of two core tasks: encode high-dimensional input data into a low-dimensional latent representation and decode it to produce a reconstruction of the input data. Therefore, an AE is a dual network made up of an Encoder, whose task is to learn an efficient representation of the input data, and a Decoder that is responsible for generating copies faithful to the original data using the latent representation. The deterministic latent representation of input data learnt by AEs can be used both for dimensionality reduction or feature extraction. Moreover, these models are widely used in SHM applications for anomaly/novelty detection by monitoring the latent space or the reconstruction error of new observed data [
26,
36,
39,
52].
A generalisation of the standard AE is the VAE [
24,
53]. This paradigm of deep neural network retain the same general architecture of standard AEs, but introduces a key difference: a probabilistic framework. In fact, VAEs treat the latent variables as random variables that are represented by probability distributions, rather than deterministic values. The probabilistic formulation yields two main advantages. On the one hand, the latent space is continuous and more suitable for meaningful interpolation. On the other hand, new samples similar to the input data can be generated by means of random sampling from the latent distribution. This makes the generation capabilities of VAEs far superior to those of standard AEs, making them one of the main types of generative models. Other models, such as SAEs [
54], can learn efficient and more interpretable representation in latent space but they suffer the same AE issues as generative models. Conversely, Generative Adversarial Networks (GANs) [
55] are powerful generative models, but they do not naturally extract features from input data. Hence, the final choice of model type falls on VAEs, essentially because they effectively combine dual capabilities in a unique model. In fact, VAEs learn a latent representation of input data and concurrently act as a generative model.
The typical implementation of VAEs is depicted in
Figure 7, and it is the same as the implementation adopted in this work. The Encoder is a function that maps the input data
X into a set of random latent variables
Z, each with its own probability distribution. In this case, each latent variable is represented by a Gaussian
. According to the reparametrisation trick [
24], the randomness of each latent variable is provided by an external random generator that samples values
from a standard Gaussian, i.e.,
, while the actual Encoder outputs correspond to the parameters of each latent distribution, i.e., means
and variances
. In this way, each input
X is deterministically encoded into a vector of means
and variances
for all the latent variables representing each particular input into a multivariate Gaussian in the latent space. Random samples for each latent variable are drawn by means of proper scaling and offset according to the probability distribution parameters provided by the Encoder, i.e.,
. Thereafter, the values of latent variables
Z are passed through the Decoder network, which produces the final VAE output
Y, which is an approximation of the input
X. Therefore, the reparametrisation trick decouples the randomness from the trainable Encoder/Decoder network parameters, thus allowing for the calculation of gradients for network training, making the encoding of
X into probability distribution parameters a deterministic process.
3.2. From Spectral Data to VAE Input
The vibration output of the structure is available in the frequency domain using pre-processing, mentioned in
Section 2.1, to estimate the 3D CSM
of measured signals for a discrete set of frequencies. In order to achieve effective data modelling with VAEs, the input data is organised relying on the following considerations:
- 1.
A proper CSM is a complex covariance matrix with some fundamental mathematical properties [
41]. In fact, any CSM is a Hermitian matrix, must have a real positive diagonal and must be a definite positive matrix. Therefore, any model must generate synthetic data that fulfils the properties of a valid CSM. Moreover, the hermicity of
implies that part of the matrix is redundant and provides no additional information.
- 2.
The structure response is dominated by the resonances in some bands, while the others have a much lower level, even three to five orders of magnitude below the resonance peaks (
Figure 3). The main risk is that the lower zones of the spectra are treated as noise and not as a meaningful part of the data. Anyway, this may strongly penalise both the data reconstruction accuracy and the sensitivity of latent features to those bands if not handled properly.
- 3.
The structure response magnitude depends on the level of excitation, thus meaning that the actual level can vary between different measurements.
In order to address both these theoretical and practical aspects, the raw CSMs estimated from measurements are pre-processed by means of a set of preliminary transformations for more robust and effective modelling with VAE.
The first operation, which addresses the last of the aspects mentioned in the list above, is the normalisation of the measured CSMs considering the whole spectrum. This operation is performed by multiplying each CSM by a factor in order to have the same overall Root-Mean-Square (RMS) for all measurements. The RMS value is computed using the amplitude of all the elements in the 3D CSM
as follows:
The uniformity of the overall level among all VAE input data makes the model “equally” sensitive to all measurements in the baseline and keeps as the most meaningful aspect the “shape” of the structure response over frequency and over sensors.
The next step is a cornerstone of the proposed approach since it enables an advantageous organisation of the CSM
as VAE input and the control of the CSM properties generated by the model. Therefore, the first issue mentioned at the beginning of this section is resolved using the Cholesky decomposition of
, which is a form of matrix factorisation that represents the covariance matrices as follows:
Therefore, the CSMs can be represented for each frequency as the product of a lower complex triangular matrix
, named the Cholesky factor, and its conjugate transpose. This is the ideal candidate for preparing the CSM as VAE input for multiple reasons:
The decomposition is unique and holds the same information of the original CSM;
The Cholesky factor is a lower triangular matrix with no redundancy in its entries;
The diagonal elements of the Cholesky factor are real and positive (), if the original CSM is a positive definite matrix;
The first two properties are ideal to guarantee that the information remains the same but it is condensed in the lower triangular part of the matrix, since the triangular part above the diagonal is null. The third property makes it straightforward to impose the condition of having a positive definite CSM
, since it is sufficient to constrain all diagonal elements of the Cholesky factor to be real and positive (
). The application of this constraint will be discussed later on in this section in the definition of the Decoder network. Finally, the diagonal elements of the Cholesky factors are the conditioned standard deviations on all preceding variables. These represent the remaining standard deviation in a variable after the linear dependence on previous variables has been removed, by starting from
[
41,
56]. Therefore, as a further benefit of the Cholesky factorisation, the terms in
are proportional to standard deviations, i.e., proportional to the square root of variances in
; hence, their dynamics is reduced analogously to the off-diagonal terms.
The next step is the reshaping of the 3D complex matrix into a 2D real matrix. Firstly, the lower triangular part of the Cholesky factor
is vectorised and the null entries of the upper part are ignored. Then, since there are still complex numbers because of off-diagonal terms, the vector is made real by splitting into adjacent elements the real and imaginary parts:
Therefore, a single frequency of spectral data
has been encoded in a real row vector
of length
. The matrix serving as the VAE input is obtained by stacking all of these vectors, forming a real two-dimensional matrix
as follows:
Each row of the data “image”
contains the response of the structure at a single discrete frequency
and contains the relationship between the response of the structure measured by the different sensors represented in terms of elements of the Cholesky factor. Clearly, the order of the sensors, and consequently the order of the Cholesky elements, must be consistent throughout the measurements and the analyses.
After the organisation of the VAE input according to Equation (
6), a final operation can be necessary depending on the characteristics of the experimental data (structure modes, sensor locations, etc.). In fact, as mentioned at the beginning of this section, the amplitude of the structure response spectrum is dominated by its resonances in some bands, while other regions of the spectrum exhibit a much lower level. This can lead to a model that learns faithfully only the peaks of the frequency response, while ignoring the other bands. This issue is partially mitigated by the Cholesky factorisation, but it may not be sufficient for an effective modelling. Therefore, a non-linear scaling function of the data, serving as compression of data dynamics, is proposed. The following function can be applied to each element of VAE input
, denoted by
, to scale original data:
where
denotes a function that returns 1 for positive values and
for negative values. This expression keeps the sign of the original value
but uses the fractional exponent to rescale its amplitude depending on the parameter
r. Conversely to a simple
root, this can be fine-tuned and adapted to any dataset by varying the parameter
r, in conjunction with the choice of the normalisation applied. Clearly, for integer odd values of
r, it boils down to a regular
root. Unlike a non-linear scaling based on logarithms, this circumvents the singularity for null values. The scaled values
can be brought back to the original scale by applying the inverse function
All the operations described in this section are used to prepare raw spectral data for the training of the VAE, i.e., the baseline, but also for new monitoring data provided to the model.
3.3. Training of VAE
The training of the VAEs is performed by maximising an objective function, i.e., the Evidence Lower Bound (ELBO) [
53]. The optimisation is achieved by minimising an LF, defined as the negative of ELBO, that combines two terms:
Reconstruction Loss encourages the Decoder to accurately reconstruct the input from latent representation. This is typically implemented as the Sum of Squared Error (SSE) between the Encoder input and the Decoder output , often referred to as “-Loss”.
KL Loss encourages the Encoder to map all the inputs into a distribution similar to a chosen prior distribution, favouring a compact and continuous latent space, and acting as regulariser for the model. This term is the Kullback–Leibler divergence between the actual latent distribution and the standard Gaussian , chosen here as prior.
The Reconstruction Loss
is computed as
where the element-wise squared error between the Decoder output
and Encoder input
is computed and then summed, thus resulting as equal to the Frobenius norm of the difference between output and input matrices. The second term of LF can be analytically expressed in terms of
and
for each latent variable, given the choice of standard Gaussian
as prior distribution; hence, the KL Loss
is
The typical LF for training a VAE can be expressed as
where
is a hyper-parameter that allows us to control the balance between the accuracy of reconstruction and the regularisation of the latent space. As
increases, regularisation of the latent space becomes more important in training, but an excessive regularisation worsens the accuracy of reconstruction. This variant is referred to as “
-VAE” [
57,
58], when
Equation (
11) boils down to the classic VAE LF. The training is performed iterating on subsets of the entirety of the training data, typically referred to as “batches”. Therefore, each term of the LF is computed for each input in the batch and averaged over the batch size. An “epoch” is when the training over batches covers the whole set of training data. The reparametrisation trick enables the backpropagation, bypassing the stochastic part of the encoding–decoding process, and allows us to update network parameters and minimise
.
The Reconstruction Loss of Equation (
9) is the basic starting point to train a model that provides a general approximation of input data. In fact, the classic
-Loss endorses the reduction in “big” errors. Considering the type of data used in this paper, some portions of the spectra are prominent with respect to others and are automatically privileged in the training process. Therefore, the resonant modes are naturally favoured in this process, even though they do not have the same amplitude. Conversely, as already mentioned in the previous section, this penalises the weakest region of the spectra. Different countermeasure contributes to mitigate this aspect such as the Cholesky decomposition and the non-linear scaling of Equation (
7). Despite these countermeasures, modal peaks still have different heights and can be learned by the VAE with different accuracies, since no specific information about the natural frequencies and mode shapes are introduced in the LF. However, for SHM purposes, the modes are all equally important, independently of their magnitude in the structure response spectra.
In SHM contexts, it can be advantageous to extend the LF by incorporating additional terms to improve the learned representations [
6,
7,
34]. The aim is to make them physically consistent, interpretable or simply more accurate on some particular characteristics. This approach adds a “soft” constraint to the training process that guides the model to learn not only a mere accurate reconstruction of the data. In fact, it can be exploited to focus on specific characteristics of the data but also to respect other requirements, without imposing a rigid constraint. The approach adopted in this paper is to exploit some typical concepts from OMA and FDD to “promote learning of important characteristics” of data useful for SHM, such as natural frequency and mode shapes, without ignoring the whole structure response.
As mentioned in
Section 2.2, the spectrum of the biggest singular value of
is used as the MIF to detect modes and monitor the natural frequencies. For this reason, the LF is extended with two components that guarantee the fidelity of the MIF and mode shapes between experimental input data and VAE output. However, performing SVDs for each training iteration meaningfully increases the computational burden. Therefore, a fast estimation of the MIF is performed in the training phase, by exploiting two mathematical considerations. Firstly, the Frobenius norm of the Cholesky factor
has the following property:
where
is the singular value matrix from the SVD of
(Equation (
1)). Secondly, the squared Frobenius norm
is a good estimate of
in the proximity of the modes since the latter is dominant in those bands. According to VAE data organisation (Equations (
5) and (
6)), the approximate MIF can be computed in the training phase by
where
is a vector of length
F; in fact, each element corresponds to a discrete frequency of spectral data. If no scaling is applied, Equation (
13) is exactly equivalent to Equation (
12); otherwise, the amplitude is squeezed by the non-linear scaling (Equation (
7)). This information is useful to formulate the additional loss terms that improve the effectiveness of the VAE for SHM, allowing it to focus on the most important spectral features of structure response. This is implemented focusing on the monitoring bands
(
Table 1) and using a weighting strategy over frequency defined ad hoc to compensate different heights of the MIF for each mode peak:
The weighting vector
basically normalises the
by making the maximum peaks equal to one in each band, while it cancels out the rest of the spectrum. Hence, the MIF Loss term
is implemented as the weighted SSE between the input and output MIFs:
Intuitively, this term makes the VAE training more sensitive to the location of the peak on the spectrum in the input data, rather than its amplitude. For this reason,
guides the VAE to finely follow the peak position on the spectral axis.
A similar approach is adopted to endow the training process with specific sensitivity to modal shapes. In fact, as mentioned in
Section 2.2, on the resonance the structure response is dominated by the mode shape. For this reason, the Shape Loss
is defined as
where the weighting vector
balances the response amplitude for each monitoring band, thus making each mode shape equally important in the training.
The custom Enhanced LF used to train the VAE on CSM data is
where
and
are two additional non-negative hyperparameters that control the importance of these two additional custom terms in the LF. The terms
and
level out the sensitivity of the model to natural frequency shifts and variations in mode shapes, giving each mode the same “weight”. The benefits of these additional terms in the enhanced LF are shown and discussed in the rest of the paper. The CSM positivity on the Cholesky factor is not introduced in the modelling approach as a “soft” constraint since it does not prevent the occurrence of negative CSMs. Instead, a “hard” constraint is forced by means of the Decoder architecture and is discussed in the next section.
3.4. Encoder and Decoder of CNN-VAE
This section describes in detail the architecture chosen for the Encoder and Decoder based on a CNN. CNNs are a widely used class of deep learning models that allow for the hierarchical extraction of features with different levels of abstraction, while reducing the number of parameters compared to fully connected networks. The key factors that guided the choice of this architecture originate from the organisation of the structure response into a rectangular 2D real matrix, according to Equation (
6), and the characteristics of spectral data. The “spatial” patterns on these pseudo-images can be effectively learnt by CNNs. In this specific case, the two dimensions represent the relationship between contiguous frequencies, along the row axis, and structural patterns, along the column axis. In fact, structural dynamic responses exhibit spectral continuity related to modal behaviour, while the structural response over sensors is encoded by the elements of Cholesky decomposition of the CSM
. The strength of CNNs when dealing with this kind of input data is their ability to learn and generate spectral and structural patterns while maintaining a relatively small number of trainable parameters. The hierarchical feature extraction provided by successive convolutional layers makes it possible to achieve a progressive aggregation of local spectral information into higher-level representations that describe dynamic behaviour of the monitored structure. Moreover, CNNs introduce a form of invariance with respect to translations along the frequency axis. In fact, they can still recognise and generate similar patterns even if they are shifted in the spectrum. This is useful because modal peaks vary and shift due to EOV. The schemes of both the Encoder and the Decoder are depicted in
Figure 8.
The Encoder has a 2D input with a single channel that is followed by a series of convolutional blocks. Each of these blocks is formed by a 2D convolutional layer followed by a LeakyReLU activation function. The number of consecutive blocks of this type controls the receptive field of the CNN and the depth of the network. In this application, all these blocks share the same parameters to reduce the number of hyperparameters, which are number of filters , kernel size , stride and LeakyReLU slope for negative values a. A stride can be adopted to progressively reduce the size of the frequency axis (rows) down to the last convolutional layer. The number of reduced frequencies as output from the last convolutional block is denoted by and depends on the number of convolutional layers and the stride itself. The combination of these two parameters controls the ability of the CNN to learn features from a larger frequency range. Thereafter, the convolutional feature map of size is flattened by a fully connected layer that returns the parameters of the Gaussian distribution, and , for each latent variable. In this implementation, the Encoder returns the logarithm of the variance , instead of variance itself, since it is more convenient for numerical stability. Finally, the sampling layer puts in practice the reparametrisation trick and generates Gaussian random samples from each individual latent variable distribution.
The Decoder has a structure that mirrors that of the Encoder, but with some crucial differences. The input layer receives latent variable samples
, then a fully connected layer coupled with a reshape layer mixes and projects them back into a space of dimension
. At this point, the Decoder also has a series of convolutional blocks, each made up of a LeakyReLU activation function and a 2D transposed convolution layer, which progressively restores the resolution along the frequency axis, reversing the compression performed by the Encoder. In fact, these share the same parameters of convolutional blocks of the Encoder. The structural differences with the Encoder are found in the next layers. The space of size
coming out of the previous block is squeezed back into a space of dimension
by a “Summing Layer” created with a simple 2D convolution, having a single
kernel. This recreates a pseudo-image of the same size and shape of the input
. At this point, one of the key elements of this model comes into play. In fact, the “hard” positivity constraint on Cholesky factors takes place by means of a custom layer, named “Selective ReLU”. This layer simply applies a ReLU function only on those columns corresponding to the diagonal elements of the Cholesky factor, according to Equation (
6). This impedes negative values on the Cholesky factor diagonals for each frequency and imposes a structural constraint of non-negativity on the Decoder output. Finally, a non-linear activation function (hyperbolic tangent) produces the Decoder output
, keeping all values bounded in the range
for better stability.
The proposed architecture of the CNN-VAE is tailored to model this kind of spectral data. The anisotropic structure of input data and convolutions for the Encoder and Decoder give the user the possibility of tuning kernel sizes and strides independently for the frequency axis and the cross-sensor axis, according to the characteristics of specific data. For instance, the kernel size along the frequency axis can be chosen according to the frequency resolution and bandwidth of the spectral characteristics of the specific case under study. Similarly, the size of the kernel can be chosen to capture and represent the relationship between sensors. Moreover, the combination of Cholesky factorisation with Selective ReLU activation on its diagonal components removes the redundancy inherent to the hermicity of CSMs and, at the same time, imposes a structural hard constraint to generate Cholesky factors associated with (semi-)definite positive CSMs.
3.5. Latent Variables and Data Synthesis
This final section on the methodology used in this paper focuses on how to retrieve the latent representation of measured data using the Encoder and the approach adopted to generate synthetic data using the Decoder. According to the scheme in
Figure 8, two kinds of outputs can be retrieved from the Encoder for a specific given input
; one is deterministic and the other is random [
59]. In the following, the subscripts
and
stand respectively for “deterministic” and “random” to specify which type of Encoder output is considered, while the Encoder function is denoted by the operator
. The deterministic output consists of the parameters of the latent variable distributions as
where
is the vector of distribution parameters related to a specific input
. This vector is split in two parts,
and
, respectively, the vectors of the means
and variances
:
Instead, the Encoder random output is the vector of samples
for each latent variable, given the input
. This is indicated as
In this case, the samples are generated by feeding
into the sampling layer of the Encoder that applies the reparametrisation trick. Therefore, the sample
represents a random value extracted from the latent distribution resulting from the mapping of the input
into the latent space.
An approach used in this paper is to mimic the usage of a deterministic standard AE, while keeping the advantages of a VAE in the latent space regularisation due to its probabilistic nature. In fact, it is useful to have deterministic mapping of a given input
into the latent space. This is directly achieved considering the distribution parameters returned by the Encoder
(Equation (
18)), instead of the random samples
(Equation (
20)). Despite the differences with the deterministic latent variables of a standard AE,
and
are also parameters uniquely associated with a specific input
that can be used as monitoring features for SHM. This aspect will be discussed later on in the paper.
Synthetic data can be generated as the Decoder output for a generic latent vector
as input. This is written as
where the operator
indicates the Decoder function. Depending on the content of the vector
, different synthetic data can be generated. From the considerations above about the deterministic or random representation in the latent space, different approaches can be defined for synthetic data generation through the Decoder. Hence, a process named here as “Deterministic Generation” (DGEN) with the CNN-VAE is defined as
Basically, this process involves mapping a specific input
into the latent space, bypassing the sampling layer of the Encoder and feeding the Decoder directly with the deterministic latent vector of the mean values
. In this way, the CNN-VAE generates a deterministic representation
of a desired input
that can be used, for instance, in model performance evaluation.
Conversely, one of the key advantages of the VAE framework is the possibility to randomly sample the latent space and produce new and unseen synthetic data. This process, named here as “Random Generation” (RGEN), with the CNN-VAE is defined as
This approach enables the CNN-VAE to generate random variations
of a specific input
. This approach can be used for synthetic data generation useful for SHM purposes. The Decoder output, i.e., a synthetic Cholesky factor, can be restored to the original scale by means of Equation (
8) and the synthetic CSM is obtained by means of Equation (
4).
6. Discussion
Vibration measurements are one of the fundamentals of SHM for the assessment of structure condition. In many applications, only data from the healthy state is available, i.e., the baseline that is typically subject to EOV. In such cases, a model of the structural “normal” behaviour is useful for gathering as much information as possible and gaining the maximum benefit from the available data. For this reason, this paper has introduced a CNN-VAE model that learns the joint distribution of high-dimensional structural response data. This empirical model is designed to deal with frequency domain data, in the form of CSMs, and is trained using baseline measurements of structural response to learn low-dimensional state/damage-sensitive features and generate synthetic realistic data. The methodology introduced has been applied to the vibration response measurements taken from the experimental laboratory test case that is introduced in
Section 2. An original approach, relying on Cholesky factor, has been introduced in this paper to organise a 3D CSM for CNN-VAE, which brings multiple advantages to the whole method:
Redundancy of the CSM due to its hermicity is removed without loss of information;
Dynamics of the spectra is reduced, favouring the reconstruction of the regions with lower amplitude;
Possibility to enforce a simple constraint for the positivity of CSMs generated by the model.
For this reason, the Decoder has been designed to embed an “hard” constraint that leads to the generation of Cholesky factors related to positive definite CSMs, which is another key aspect of the methodology presented. This guarantees the fundamental mathematical properties of synthetic CSMs and ensures that they are compatible with other techniques relying on them. Lastly, a custom Enhanced LF tailored to modal behaviour of structures has been developed to train the CNN-VAE model. Its implementation only requires the identification from the baseline dataset of the bands of analysis where the mode natural frequencies are located. The results demonstrated that this strategy improves the quality of synthetic data (
Section 4.2) and that the latent variables become highly sensitive to structural dynamic changes and representative of the structural condition (
Section 5.2).
The capability of CNN-VAE as generative model opens the possibility to different enhancements of vibration spectral data in the context of SHM. An example is the baseline balancing shown in
Section 5.1, but any similar data augmentation approach can be easily integrated with the CNN-VAE model, such as the idea of “data-driven virtual baseline synthesis” suggested in [
23]. One strength of the approach presented in this paper lies in the fact that traditional SHM methods based on frequency domain structural response can benefit from data synthesis. At the same time, the low-dimensional latent representation learnt by the Encoder enables other SHM approaches. Typical anomaly detection techniques can be implemented when only data related to an undamaged structure is initially available, such as One Class Support Vector Machine (OC-SVM) [
64]. Moreover, monitoring data in the latent space can be integrated with classification techniques, for damage identification, or clustering techniques. Otherwise, more advanced anomaly detection strategies relying on the spectral reconstruction error [
65] or custom novelty scores [
59,
66] are possible.
Practical implementations of an SHM strategy that makes use of this CNN-VAE model should take into account the computational costs and time requirements of different operations, on the basis of the estimates reported in
Section 4. The heavy load is the initial training of the model on baseline data, but this is operated only once or when the baseline is updated. The generation of synthetic data for the purpose of implementing data augmentation and enhancement techniques combined with SHM approaches is significantly less computational resource-intensive. Typically, this is not a real-time operation, but the latent space monitoring can also be implemented in near-real-time. Indeed, encoding a CSM into latent space takes a fraction of a second. Therefore, the time to obtain the monitoring latent features is dominated by the measurement time required and the computation time required to estimate the CSM.
Other potential applications involve combining insights into structural behaviour derived from both simulation and experimental measurements. In fact, simulations can provide information about the structural behaviour under various configurations and conditions by means of parametric analyses, while experimental tests can reveal the gap between the complexity of a real structure that is not adequately represented by a finite element model. This typically happens with complex structures due to complex geometries and materials (e.g., anisotropy and non-linearity), as it is common for aerospace applications [
67] and others. In such cases, the CNN-VAE model could be trained using frequency domain data from both worlds and merging the knowledge in a unique surrogate model.
7. Conclusions
The study successfully demonstrated the effectiveness of the CNN-VAE architecture designed specifically for structural vibration data in the frequency domain with the purpose of SHM technique enhancement. The use of Cholesky factorisation for handling CSMs has proved to be an advantageous choice, as well as the introduction of the Enhanced LF for model training, revealed to be crucial in improving the sensitivity to modal characteristics. The results obtained in the laboratory case study demonstrated the effectiveness of the CNN-VAE model in its dual use. The features learnt from spectral data can be used to implement an effective SHM strategy. Concurrently, the CNN-VAE serves as a powerful generative tool for producing realistic synthetic data, thus making it possible for it to be integrated into traditional SHM approaches based on frequency domain data by means of baseline augmentation strategies or similar.
The proposed framework offers a practical solution for improving vibration-based SHM systems, since the model does not have particularly limiting requirements in terms of number of vibration sensors and structural characteristics; hence, it is suitable for different type of structures, such as buildings, bridges, and aerospace structures, among others. This CNN-VAE model is already compliant with measuring 3D vibration response, since these are simply additional sensors; therefore, this extension is straightforward. Moreover, the very same architecture of the CNN-VAE is also compatible with other types of frequency domain data, such as frequency response functions or transmissibilities.
Future works will focus on the extension of this model in terms of its applications and architecture. A finer characterisation of damage evolution over monitoring could be useful to understand the fine sensitivity of the model to gradual changes in structure dynamics. A possible direction of improvement for the current model is the shift to the paradigm of Conditioned VAE, where measurements of EO factors are provided to the Decoder, which becomes aware of the conditions of that specific input, thus making the synthesis more controllable.