Research Article  Open Access
Gergely Takács, Ján Vachálek, Boris Rohal’Ilkiv, "Online Structural Health Monitoring and Parameter Estimation for Vibrating Active Cantilever Beams Using LowPriced Microcontrollers", Shock and Vibration, vol. 2015, Article ID 506430, 14 pages, 2015. https://doi.org/10.1155/2015/506430
Online Structural Health Monitoring and Parameter Estimation for Vibrating Active Cantilever Beams Using LowPriced Microcontrollers
Abstract
This paper presents a structural health monitoring and parameter estimation system for vibrating active cantilever beams using lowcost embedded computing hardware. The actuator input and the measured position are used in an augmented nonlinear model to observe the dynamic states and parameters of the beam by the continuousdiscrete extended Kalman filter (EKF). The presence of undesirable structural change is detected by variations of the first resonance estimate computed from the observed equivalent mass, stiffness, damping, and voltageforce conversion coefficients. A fault signal is generated upon its departure from a predetermined nominal tolerance band. The algorithm is implemented using automatically generated and deployed machine code on an electronics prototyping platform, featuring an economically feasible 8bit microcontroller unit (MCU). The validation experiments demonstrate the viability of the proposed system to detect sudden or gradual mechanical changes in realtime, while the functionality on lowcost miniaturized hardware suggests a strong potential for massproduction and structural integration. The modest computing power of the microcontroller and automated code generation designates the proposed system only for very flexible structures, with a first dominant resonant frequency under 4 Hz; however, a codeoptimized version certainly allows much stiffer structures or more complicated models on the same hardware.
1. Introduction
Recent engineering trends foreshadow a tendency, where mechanical structures are becoming more vibration prone. The design approach, in which lighter materials and more slender shapes are used, may simply have an aesthetic justification, but the savings in material costs are an important factor as well. Aircraft wing surfaces with progressive design may benefit from reduced fuel and maintenance costs or increased maneuverability, while robotic arms and manipulators are faced with increasing demands on working speeds. Often, these improvements are plagued by the curse of lowered stiffness and a susceptibility to demonstrate undesired vibration response.
Smart materials and the availability of cheap computing technology enable designers to balance or even completely eliminate the undesirable vibration response of modern structures by active vibration control (AVC) measures [1, 2]. Microcontroller units (MCU) are essentially miniaturized computing platforms that are capable of independent operation and pose the built in peripherals necessary to read sensors or drive actuators. As both the price and the size of MCUs are decreasing [3], it is now possible to integrate vibration control and diagnostics systems into mechanical structures on a mass produced scale, even with the possibility to use several detached systems in a decentralized manner.
In addition to the control functionality of structures with AVC, safetycritical applications demand highly integrated online diagnostics functionality [4]. Most engineering structures may experience changes in properties and response dynamics due to unexpected outside influences, such as sensor failures or degradation, material buildup, fatigue, cracks, icing, and a plethora of other factors. In addition to these, process variables such as changing load or working conditions may induce substantial changes in the structure, providing a good reason to use structural health monitoring and diagnostic systems.
The requirements for diagnostic systems can range from simple fault indicators to complex parameter estimation procedures. Online parameter estimation allows for a more detailed assessment of the properties of the monitored structures, representing unexpected changes as variations in physically interpretable parameters. Moreover, the estimated parameters can be used to adjust the controllers to counteract structural changes, thereby creating an adaptive vibration control system [5].
Several exciting fault and damage detection strategies have appeared for cantilever beams and other structures in the recent literature. Localization of the damaged section is possible by employing progressive optimizationbased algorithms, such as genetic algorithms (GA) [6, 7], fuzzygenetic algorithms [8] particle swarm optimization [9], wavelet transform [10, 11], and artificial neural networks [12]. Crack location and depth were detected by Vakil Baghmisheh et al. [13] using a hybrid particle swarmNelderMead algorithm and modal testing. Although most of these methods offer much more than a simple status signal on the presence or absence of a fault in the structure, they require a large computational effort, suggest but do not demonstrate online operation, or are simply not suitable for online application due to design and technical limitations [7–13].
This paper introduces a prototype of an online diagnostic system intended to detect and monitor changes in the mechanical properties of actively controlled structures resembling the dynamic characteristics of thin cantilever beams. In addition to monitoring the occurrence of changes caused by unexpected outside influences, the system based on a nonlinear joint state and parameter observer is capable of providing realtime estimates that can be used to create adaptive mechanical structures. The proposed estimation scheme is implemented on a lowcost electronic prototyping platform using automatized code generation tools.
The approach presented here assumes that the dynamics of active mechanical structures resembling the properties thin cantilever beams can be sufficiently approximated using a single degree of freedom (SDOF) system [14]. This assumption holds well in the case of flexible structures with single digit first—fundamental—resonant frequencies, dominating the overall response in comparison with the contribution of the higher modes. The statespace model of the driven massspringdamper is augmented by the monitored physical parameters, namely, the unknown equivalent stiffness, damping, mass, and force conversion coefficients.
The introduction of unknown parameters in the linear SDOF dynamic system renders the augmented model nonlinear. This paper uses the nonlinear expansion of the acknowledged Kalman filter [15–17]—the wellknown extended Kalman filter (EKF) [18, 19]—to observe the states and parameters of this augmented system. Though it is possible to directly compute and output the equivalent physical parameters for the needs of adaptive control or detailed monitoring, here the parameters estimated by the EKF are used to assess the first damped resonant frequency of the active structure. It is assumed that this remains bounded if there is no change in the structure but will diverge from the nominal levels as soon as a mechanical failure or an undesired change of physical configuration occurs [20].
The proposed structural monitoring system is tested in a laboratory setting. The test structure uses the classical example of the clamped cantilever (see Figure 1) that is often employed to represent the general dynamic behavior of reallife structures resembling flexible thin beams [14], such as fixed and rotary aerodynamic surfaces [21, 22], antennae [23], manipulators [24], and others [25]. The thin aluminum cantilever is equipped with two large doublelayer piezoceramic transducers, mounted on opposing sides close to the clamping mechanism. The transducers are driven by a power amplifier, receiving a pseudorandombinary (PRBS) signal. The motion of the beam is measured at a single location near the end of the structure. The actuator inputs and the measurements are fed to a lowcost microcontroller and electronics prototyping platform featuring a 8bit MCU (see Figure 2).
The experimental validation procedure of the proposed parameter monitoring and fault detection scheme involves supplying the beam with the PRBS signal, emulating the control input to the actuator. In the first stage of the experiments, the beam is in its nominal configuration without any changes and the parameters converge to nominal levels. At the beginning of the second phase of the validation experiments, different weights are added to the end of the beam in order to emulate the occurrence of a mechanical fault. The algorithm running on the MCU estimates the parameters and calculates the first resonant frequency of the beam in realtime, based on the measured actuator input and position. As soon as the frequency leaves its user determined tolerance band, the fault is detected and a warning signal is sent. The experiments featured in this paper demonstrate the estimates of the dynamic states and parameters for the different levels of mechanical faults and indicate the time when the error is detected.
The use of the extended Kalman filter for the estimation of vibration dynamics is, with a few exceptions, limited to offline a posteriori system identification procedures. Realtime application of EKF for diagnostics and monitoring is presented by Lourens et al. [26] for disturbance force estimation and by Mu et al. [27] for the monitoring of structures under seismic loads, stiffness, and damping coefficient estimation in automotive applications [28] and for the adaptive control of torsional vibration in a twomass rotating drive system [29, 30]. While Williams suggested the use of unscented EKF to assess damage and damage location based on accelerometer measurements [31], the work is limited to offline numerical studies. Stress and strain fields are observed experimentally using a Kalman filterbased methods by Erazo and Hernandez [32], but the work is again limited to an a posteriori test. The EKF was used in previous works to provide state and parameter estimates for an adaptive vibration control system for thin beams [5, 33, 34]; however, this was implemented on an expensive rapid control prototyping platform offering extensive computational power. The main contribution of this paper is therefore not only the proposition to use the EKF for the estimation of vibration dynamics, but also the online and realtime implementation and validation of an EKFbased scheme on a lowcost platform with a potential for massproduction and close structural integration.
Having stated the contributions of the paper, it is equally important to realize what is not the ambition of this work. The proposed monitoring system is capable of providing realtime estimates of the parameters; however, this paper does not attempt to solve the question of the usage of this online information. The observed parameters may be employed to generate simple warning signals, drive failsafe mechanisms, or serve as a basis for adaptive vibration control systems. Likewise, the paper does not attempt to make recommendations on the mechanical integration of the system into structures, since it implements the algorithm on a prototyping platform; nevertheless, the miniaturized MCU used on the board suggests that this is a likely possibility.
It is also important to note that structural failure detection in this paper is only solved on the level of its occurrence. Localization or quantification of the structural failure is not within the scope of this work, and the proposed method will only provide information on the presence or absence of a certain change.
2. Materials and Methods
2.1. Theoretical Foundations
2.1.1. Dynamic Model of the Beam
Due to the flexible nature of the structure, the dynamics of the actively controlled thin beam is dominated by its first resonant frequency [14, 35]. Even though from the perspective of mechanics the SDOF assumption may seem simplistic, it is sufficient for our purposes and is often used in combination with EKF to estimate vibration motion [36–38].
Naturally, a first order model and the resulting EKF may cover only structures with a single and significantly dominant resonant mode. Nonetheless, a better representation of a structure yielding models that are still feasible for computational implementation can be obtained from larger models by reduced order modelling techniques or, for example, by the use of the proper order decomposition method. A model covering approximately 3 modes of vibration and augmented by unknown parameters is plausible for EKF and its implementation on a lowcost MCU, however, beyond that one may encounter difficulties with algorithm tuning and computational feasibility.
Let us assume now that, from the viewpoint of the proposed fault detection algorithm, the cantilever beam can be approximated by the second order differential equation describing the motion of a massspringdamper system with an external driving force [39] where the driving actuator force is a linear multiple of the input voltage to the actuators (V), while (N/V) is the voltageforce conversion coefficient. The mass of the structure (kg) is a sum of the mass of the beam and the actuators with an additional weight attached at its end. The damping coefficient is given by (Ns/m), while (N/m) is the stiffness coefficient. The true position of the beam at the free end is denoted by (m), while its velocity is (ms^{−1}) and acceleration is (ms^{−2}).
The second order differential equation in (1) may be deconstructed into two first order differential equations to create a statespace representation of the beam dynamics [40]. The choice of position and velocity as dynamic states in the representation will yield the familiar continuous statespace equations for the massspringdamper [41] where (m) is the position measured at a single location close to the end of the active beam. The position output can be obtained from the state vector by using as the output matrix. Furthermore, is the dynamic matrix given by and is the input matrix given by
2.1.2. Augmented Dynamic Model
The dynamic states of the structure—position and velocity as measured at the free end—are contained in the state variable . This state variable can be augmented by a vector, incorporating the unknown and potentially changing parameters to obtain The system dynamics given by (3) is clearly linear; however, by including the unknown parameters in the augmented state formulation this new estimation problem will be nonlinear and will require methods designed for nonlinear systems [42–44]. In the case of the active beam, none of the parameters are known beforehand and all of them are likely to vary during the operation of the structure, so the parameter vector will be
The process noise and the measurement noise are assumed to be sequentially uncorrelated and have a Gaussian distribution with zero mean. This white noise disturbance assumption comes from the theoretical formulation of the EKF [44] but is also a common premise in operational modal analysis (OMA). If the process noise for the motion dynamics components is denoted by and the process noise for the parameters is , the nonlinear continuous function expressing the dynamics of the augmented model with noise will be for the motion and parameter dynamics which are assumed to remain constant between the individual samples. Combining the motion dynamics and parameter noise into a single term enables us to express the augmented dynamics compactly by where the continuous function defines the augmented nonlinear system dynamics, is a continuous measurement function, and is the measurement noise. The properties of the process noise are defined using the covariance matrix [42] where the discretized analogy of the process noise is obtained by the relation where is the measurement sampling period. Similar to the process noise covariance, the properties of the measurement noise are given by [42]
This work assumes the covariance matrices and to remain constant during the operation of the fault detection system. This implies that the statistical characteristics of the process noise of the dynamic states and parameters and the measurement noise are assumed to remain unchanged. While it is possible to conceive a modification to the EKF with robust, rescalable and possibly adaptive process, and measurement noise covariance matrices [45–47], this is beyond the scope of this paper.
Modern control systems operate on a discrete basis. The nonlinear estimation procedure introduced in the following system will be also implemented on an embedded microcontroller unit, performing measurements at discrete intervals , . The continuous augmented dynamics in (9) will be propagated using the Euler’s method by the system
2.1.3. Joint State and Parameter Estimation
The extended Kalman filter is proposed in this work to estimate the nonlinear augmented states and parameters of the active structure [43, 44]. The algorithm considered here is often referred to as the continuousdiscrete or hybrid formulation in literature [42–44], since the EKF takes its measurements and yields new state estimates at discrete sample times, while the system model is evaluated by numerical integration. The observer algorithm is initialized by a first state estimate at zero time that is determined by the user as an initial guess of the states and parameters. Similarly, the initial covariance matrix of the error of this state estimate is given by the user as
The primary estimate—or a priori estimate, as it is often denoted in literature—of the augmented state is obtained using simulation. The dynamics of the driven pointmassdamper with the unknown parameter vector is described by the continuous augmented function . Moreover, another assumption is that the parameters remain constant between the samples. The continuous state is then propagated using between samples to to obtain a priori estimates, denoted here by the subscript. Though several methods exist to solve ordinary differential equations numerically, this work utilizes the first order Euler method. The continuous augmented function can be safely considered as for flexible active structures with dominant first resonant frequencies.
In addition to the computation of the a priori state estimate, it is also necessary to evaluate the a priori update of the covariance matrix of the state estimates where is the Jacobian of (17) with respect to the augmented state which for the formerly described augmented beam model it is given by Similar to the numerical propagation of the augmented state, the covariance matrix is obtained by simulating (18) from sample to .
The discrete part of the EKF uses the current measurement to update the a priori state to get a revised a posteriori state estimate, which is denoted by the subscript. The first step is to compute the Kalman gain using
The a priori state estimate is then revised by the measurement at time with its relative importance weighted to the simulation estimate by the Kalman gain , which is computed at the next step. The a posteriori update of the augmented state is
The state error covariance matrix is updated by where the expression is the Jacobian of the measurement equation with respect to the state and matrix is the Jacobian of with respect to the measurement noise term The a posteriori augmented state estimate and covariance matrix estimate are passed onto the next computation step, where they become the basis for the next a priori estimates.
2.1.4. Resonance Estimates
The first dominant resonant frequency of the beam is approximated on the basis of the estimated parameters outside the observer algorithm. Given the parameter estimates at and assuming that the damped natural frequency of the dynamically analogous SDOF system in (1) is equal to the dominant resonance frequency of the structure [14], the frequency is The algorithm monitors this frequency estimate throughout the operation of the system. As it has been noted by Jassim et al. [20] and others, monitoring the change of natural frequency is a feasible tool to indicate damage occurrence. In case that the estimate is outside the tolerance band a fault detection signal is produced and retained unless cleared. The resonance of the nominal structure is denoted by and is a symmetric tolerance band.
2.1.5. Algorithm Summary
The resulting realtime fault detection strategy with joint state and parameter estimation can be summarized in the following algorithm.
Algorithm 1. Perform the following operations at each sampling instant .(1)Propagate (16) and (18) by numerical simulation using the Euler method. Obtain the a priori estimates of the augmented state and covariance matrix .(2)Sample the actual deflection at the end of the cantilever beam.(3)Compute the Kalman gain using (21).(4)In order to compute the a posteriori state estimate , use the new measurement sample and Kalman gain update to revise the a priori state estimate through (22).(5)Compute the a posteriori update of the covariance matrix in (23).(6)Retain the a posteriori state and covariance estimates and in the memory for the next estimation step.(7)Approximate the damped natural frequency of the beam according to (26).(8)If the frequency estimate is outside the tolerance band in (27), enable the fault detection signal .(9)At the next sample restart the procedure from 1, use the estimates from Step 6.
2.2. Experimental Hardware and Software
2.2.1. Experimental Hardware
The proposed fault detection system was tested on a thin flexible cantilever beam with piezoceramic actuation. The test hardware composition will be described only briefly as the test bed was previously introduced in detail in previous work, including [5, 35, 48]. The schematic setup of the experimental hardware, including the active thin structure and the prototyping system, is illustrated in Figure 1.
The cantilever is a 550 × 40 × 3 mm beam, fixed at one end and freely moving at the other. As it is indicated in the side view of the beam in Figure 1, it undergoes flexural vibration in the direction of its thickness. The beam is made of commercially pure aluminium, having mechanical properties which render the structure more flexible than it would be possible with regularly available aluminium alloys.
To further decrease its first resonant frequency, a heavy nut, bolt, and a set of four washers are mounted at the free end of the beam. The nominal weight installed at the end is necessary to shift its original resonance (8.17 Hz) to the area, where is possible to run the proposed fault detection system in realtime on the hardware with limited computing power and automatically deployed code. The weight of the aluminum cantilever beam was kg, and the total weight of the nutwasherbolt assembly is kg, making the total physical weight of kg. This base configuration assumed here therefore consists of the beam with a weight, with a first nominal resonance decreased to 2.26 Hz. This nominal configuration is taken as the initial configuration in each experiment, which is then further modified by the experiments.
An industrial laser triangulation device is mounted near the free end of the beam, to provide position measurements for the fault detection algorithm. The Keyence LKG 32 laser sensor head is pointed at a single location at the beam end, while its signal is preprocessed with a low pass filter in the Keyence LKG3001V processing unit. The Keyence LKG3001V unit provides an analog signal scaling the ±5 mm maximal measurement range into a 0–5 V signal, compatible with the analog measurement range of the prototyping board. The laser processing unit is directly connected to the AI1 analog input port of MCU. The measurements are rescaled and shifted to readings in meters within the initial portion of the estimation algorithm.
The actuation of the active thin structure is realized with a set of two double layer piezoceramic transducers. The MIDÉ QuickPack QP45n double layer actuators are mounted on both fixed sides of the beam and receive the same electric signal with opposing polarity. The high voltage driving signal is provided through a MIDÉ 1225 capacitive precision amplifier with a 20× V/V gain on the signal input. The active control signal is emulated by a pseudorandom binary voltage signal, having its low level at 0 V and high level at 4 V, resulting in 80 V impulses to the transducers. The PRBS signal has a 10 bit/s base sample (in order to excite the first resonance of the beam) and is generated by an Agilent 3351A signal generator unit. In addition to the measured position input , the extended Kalman filter requires the input signal as well; therefore the output from the signal generator is directly connected to the AI1 analog input port of the prototyping board and then rescaled to the amplified levels within the EKF algorithm.
The lowcost electronics prototyping board employed in this work is an Arduino Mega 2560 Revision 3 device, featuring a simple 8bit Atmel ATmega 2560 microcontroller unit (Figure 2). The MCU used in this board has a clock speed of 16 MHz and a 256 kB large flash memory for storing user algorithms [49], enabling its online external use with the Simulink product range. The detected fault signal is passed on to the DO9 digital output of the board with an LED connected to it for signal indication. Although this is only a binary information relating to the occurrence of a mechanical fault, the parameter estimates may also be output using a pulsewidth modulated signal or encoded into several digital outputs. The board is powered through the USB port, which also serves as the means for programming and online data transfer for logging and storage. Programming of the board and data logging is realized using a laptop computer with an Intel Core i3 CPU running at 2.4 GHz and 4 GB operating memory. The computing power of the design computer has no effect on the speed of the proposed algorithm, as it is running in a stand alone mode on the Arduino Mega 2560 prototyping board.
2.2.2. Experimental Software
The proposed estimation and fault detection algorithm was developed within the Mathworks Matlab and Simulink framework. The software was implemented in Matlab and Simulink 8.0 (R2012b), running under the Microsoft Windows 7 × 64 operating system. In addition to the programming role of this software implementation setup, the prototyping board was also providing the estimates and other signals through the USB connection in external mode. There was an approximately 4 s communication delay between the prototyping board and the Simulink data logging and visualizing interface. Even though this portion of the experiments is not shown on figures here, the proposed algorithm was still fully functional on the MCU during this initialization period.
The simplified Simulink scheme of the software implementation is featured in Figure 3. Communication between the analog input and digital output ports of the Arduino Mega 2560 board and the realtime logging capability was ensured using the Simulink Target for use with Arduino Hardware (v 2.0) suite, providing access to the peripherals of the MCU and a possibility to deploy Simulink schemes onto the hardware. The 10bit inprocessor A/D converter [49] provides a decimal integer reading of the voltages, which is converted using type conversion blocks. The fault signal is transferred into the digital port using the corresponding output block. Internal state estimates are displayed and saved using a scope block, with its logging capability enabled.
In addition to the readily available standardized Simulink blocks, the core of the algorithm featured previously was developed in the Matlab Mscript language and then automatically transcribed into a C/C++ version for the embedded MCU. The custom algorithm block noted as EKF in Figure 3 contains means to manipulate voltage inputs to physical units, the extended Kalman filter providing state and parameter estimates, and the simple algorithm generating the fault signal based on the calculated damped first resonant frequency. This Mscript code is automatically recompiled into embedded C/C++ code and downloaded to the target hardware using the Embedded Coder (v 6.3) and Simulink Coder (v 8.3). The compilation itself is performed by the Microsoft Visual C++ 2010 compiler.
2.3. Experiment Design and Settings
2.3.1. Experiment Design and Procedures
The experiments featured in this paper were designed to demonstrate the functionality of the proposed estimation and fault detection algorithm and the viability of its realtime implementation on lowcost microcontroller hardware. Experiments were lasting 80 s with the pseudorandom binary driving signal supplied to the actuators during the entire duration of the test. After initializing the experiments with completely identical tuning and settings, the estimated dynamic states and the parameters converged to the values in agreement with the mechanical properties of the nominal beam. The majority of this starting convergence is not indicated in this paper, due to the previously mentioned communication issue between the MCU and the laptop computer, which is performing data logging and visualization.
In addition to a nominal beam configuration with the beam itself and the heavy boltwashernut combination, 6 types of different weights ranging from 16 g to 345 g were added to the end of the beam approximately at the ~40 s time mark (see Figure 4). The added weights emulated the effects of mechanical failures and changes with different severity. As these weights were placed manually, there may be a ±12 s variance in this time between the individual tests. The weights and individual experiment types are summarized in Table 1. The added weights changed the overall dynamic behavior of the beam and yielded parameters which diverged from the nominal values. If the approximate of the first damped resonance left the Hz tolerance band of the nominal first resonance at Hz, the alarm signal was switched on and this fact was logged along with the rest of the parameters. The first resonant frequency of the thin structure in its nominal configuration was determined by supplying the piezoceramic transducers with a PRBS signal and performing a position measurement. This time domain measurement was then analysed using the fast Fourier transform (FFT) to extract the first fundamental resonant frequency.

2.3.2. Experimental Parameters and Settings
All experiments were initialized with the initial state estimate of denoted in the experiments with an upside down black triangle located at zero time. Likewise, the initial covariance estimates remained the same throughout the experiments with The values in the matrix provide a compromise between a realistic guess of the variance in the initial state estimate error and an incremental tuning of the EKF algorithm.
The covariance of the single measurement signal was estimated based on the square of the maximal amplitude resolution of the A/D input of the prototyping board in meters, yielding ~2.5 V at 10 bits [49] or in the terms of the measurement covariance The greatest freedom in tuning the behavior of the algorithm can be achieved by manipulating the continuoustime process noise covariance matrix. The process noise matrix was tuned for best performance based on incremental testing and the expected range of changes in the physical variables and then fixed for all experiments featured in this paper as with its discretetime analogy recomputed by .
Global sampling times were set as = 0.1 s, while the continuous model was numerically integrated using the Euler method with a s time step.
3. Results and Discussion
3.1. Dynamic State Estimates
A typical experiment is shown in Figure 4, where the nominal beam configuration is altered by adding the 246 g weight to the free end at time s, thereby simulating a mechanical failure of the structure. The results logged during the experiments (from top to bottom) are the estimated and measured position , the estimated and calculated velocity , and the measured voltage input to the transducers . The PRBS input signal is supplied constantly, regardless of the change.
Both dynamic state estimates start from the common initial state of , shown as black triangles in the figure. As it has been previously mentioned, the initial portion of the measurement cannot be logged, due to the properties of the hardware implementation. The difference in the position and velocity estimates before and after the emulated failure is visually observable. The amplitude of the estimated position and speed signals becomes smaller after the failure, while due to the decrease in the first resonant frequency the oscillations are less frequent, which is also visually noticeable in the figure.
The estimated position is compared to the measured signal . As it is evident from the figure, the estimates agree with the measurement very well. The estimate error was calculated to be m for this demonstration case. As direct speed measurements are not available, the estimated speed is compared to a speed signal calculated from the position measurement using [38] The difference between the computed and estimated velocity is larger than that in the case of the position. The EKF algorithm tends to overestimate the velocity, in comparison with the calculated values. However, one has to note that the calculated velocity signal is hardly exact and cannot be considered as the conventionally true velocity. It is not less likely that the estimates are actually closer to the true velocity than the calculated values. Keeping this in perspective, the velocity estimate error was calculated to be ms^{−1} for this demonstration case.
3.2. Parameter Estimates and Failure Detection
The estimated first resonance frequency with the instances of fault detection (vertical dashed lines) for the different failure emulation cases is illustrated in Figure 5 along with the estimated model parameters. The figure shows (from top to bottom) the estimates of the first damped resonance frequency , the dynamic mass of the structure , the dynamic equivalent stiffness coefficient , the dynamic equivalent damping , and the voltageforce conversion coefficient . Again, the hardware communication with the Arduino board prevents the first 3.8–4.5 s of the measurement to be logged; however, the realtime algorithm running on the MCU is fully functional at this time and the parameters estimates are converging from the initial estimates (triangles at s) to the nominal values.
After a brief convergence period, the frequency estimates tend to the neighborhood of the nominal frequency within ±0.015 Hz (maximal mean value, between = 20–30 s), well within the tolerance band of the failure detection limits. This is also true for the estimated parameters; the nominal mass, stiffness, damping, and conversion coefficients are located in the same relative region for all experimental scenarios. The most variation in the nominal case is visible in the conversion coefficient, which is harder to estimate in general [33].
After adding the different weights to emulate the failure, the parameters start to diverge from the nominal levels and so do the estimated resonances. As soon as the estimated resonance frequency leaves the preset tolerance band, the fault signal is activated. The time of detection depends entirely on the severity of the fault and varies between 0 s for the largest weight to ~36.5 s for the smallest (see Table 2). The estimated frequency naturally corresponds to the amount of weight added, and it varies between the nominal frequency Hz to an average of Hz for the largest weight (see Table 2).

The estimated parameters react to the change in mechanical properties on various levels (see Table 2). Computed as mean values between the times = 50–80 s, the mass parameter varies the most as one would expect, ranging from kg to kg for the different fault emulation cases. The stiffness and damping coefficients do not vary as much for the individual cases; average stiffness estimates stay within 10% of the nominal stiffness, while the shift in the damping coefficient is also moderate. The effect of the actuators tends to diminish as greater and greater weights are placed at the end of the beam. This is demonstrated in Figure 5, where the estimated voltage conversion parameter starts to decrease with the increasing weight as the actuators are capable to provide less force with more weight.
While the first resonant frequency estimates are stable in all experimental scenarios, the parameter estimates reveal possible stability issues with the heaviest weight (Experiment number 7, grey). Although the initial convergence after the change is meaningful, the parameters begin to decline to levels that are not representative for the change. This may cause numerical instability in the estimation algorithm, which—in case only a binary fault signal is required—does not pose a problem, as it is likely that the change will be detected much earlier than the instability occurs. This divergence of parameters is largely due to the fact that the conversion coefficient will be understandably compromised, if extensive mechanical faults are present.
It is important to note that the identified physical parameters are meaningful for the dynamic model of the structure and are not necessarily identical to the parameters one would obtain using exact firstprinciple measurements. Although the estimated parameters have a physical meaning and sense, they are evaluated in a way to match the measured position to the behavior of the model, in accordance with the general EKF formulation. For example, a change in the estimated mass is rather a dynamic change and one cannot expect to obtain the exact weight change. The nominal beamweight configuration with no additional change is kg, which is estimated to a lower value of kg. This is to be expected and normal as the algorithm deals with the parameters only on the level of the dynamic behavior of the structure. Also, if only one physical parameter is changed—as it is the case in this work—its effect is translated to a change in all parameters.
The global sampling times used in this experiment were too fast for the external mode Simulink simulation and caused a computation overflow, meaning that the time necessary to evaluate the algorithm along with the communication and logging procedures was longer than the allocated sampling time. The overflow detection was enabled in the simulation and indicated by lighting an LED connected to the output port DO13 of the Arduino Mega 2560 prototyping platform. This overflow posed only a problem in the case where the algorithm was running with the data logging facilities enabled. In case the fault detection scheme ran on the MCU in a standalone mode, the sampling periods were strictly enforced. Data logging is only necessary to present the experimental results in this work; therefore it is not considered to be a serious limitation of the application. Moreover, the estimated parameters can be output in computationally more efficient ways than the use of USB communication. The proposed fault detection algorithm was able to run down to a sampling rate of s on the Atmel ATmega 2560 MCU. Increasing the number of integration steps has the greatest effect on computation load, as a s was unable to run without overflows with a sampling.
3.3. Verification of the Frequency Estimates
The verification of the mean EKF frequency estimates was carried out by comparing the mean observed first resonance in each experimental scenario to the first resonant frequency obtained from the power spectral density (PSD) of the measured displacement signal. The mean frequency estimate was computed from the EKF results after the additional weights have been placed on the beam, that is, between 40–80 s of the measurements. The power spectral density of the displacement measurement signal was computed on the same interval. The spectral estimate was acquired using the YuleWalker parametric autoregressive analysis of the displacement signal, assuming an 8th order autoregressive model of the PSD. The results of this comparison are demonstrated in Figure 6, where the PSD from the displacement is marked by the thicker solid lines, while the vertical thin dashed lines indicate the average EKF estimates. From this, it is clear that the difference between the EKF estimates and the first resonances judged by the raw signal itself match very well.
To quantify this verification procedure in more detail, Table 3 lists the periodogram estimates, EKF estimates, and their absolute and percentual difference. The absolute difference of the frequencies is well below Hz in all experimental cases, meaning a difference of <1.5% in all the listed cases.

Note that comparing the direct coefficient estimates () to the true or assumed values would be inconsequential in this case. While the frequency estimates of the EKF and the real resonant frequency of the structure can be directly related and verified, the simple model assumed in (17) does not allow a direct assessment of the observer accuracy. As it has been previously noted, the coefficients of the model represent the dynamic equivalent of the system, not a physically accurate mechanical system. The estimation of the dynamically equivalent , and is useful for structural detection and monitoring or as online identification in adaptive control, but naturally, it is absurd to expect them to fully represent the beam from the mechanical standpoint.
4. Conclusions
This paper proposed an algorithm framework for detecting mechanical faults in thin active cantilever beams and other smart structures with dominant first resonance frequencies. This structural health monitoring algorithm was then implemented on a lowcost embedded microcontroller unit.
The presented experimental results verify the feasibility of the hardware implementation and demonstrate the functionality of the fault detection algorithm. The emulated mechanical faults were detected in a matter of seconds. In addition to the digital fault signal, the algorithm is capable of identifying the equivalent parameters of the single degree of freedom driven massspringdamper representing the dynamics of the active structure.
Upon contrasting the estimated first resonance frequencies, it has been found that they match very well to the true frequencies assessed by the power spectral density estimate of the displacement measurement signal.
The embedded 8bit microcontroller unit considered in this work enables sampling speeds down to = 0.08 s. This suggests that the use of the proposed fault detection method with the Atmel ATmega 2560 MCU is limited to thin active structures with a largely dominant first resonance frequency of up to ~34 Hz. Of course, this work used a machinetranscribed realtime code for the experiments; therefore this is the worst case scenario for the usability of the method on lowpriced hardware.
Commonly available 8bit microcontrollers like the Atmel ATmega328 [50] or Texas Instruments C2000 [51] series with an even lower price range are likely to run the proposed algorithm without issues. In case the EKF algorithm is directly transcribed to a lowerlevel language (C++ or assembler), it is safe to assume that either the complexity of the algorithm can be increased in order to estimate more than one resonant frequency, or the sampling speed may be increased for stiffer structures.
Excluding the cost of other components—such as a MEMS semiconductor accelerometer instead of a precise laser system as used here—the unit price of the Atmel ATmega328 embedded microcontroller is currently under 2 EUR for quantities over 100 pieces [52], rendering the proposed fault detection system viable for mass production and deployment.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
The authors would like to gratefully acknowledge the financial support granted by the Slovak Research and Development Agency (APVV) under the Contracts APVV009010 and APVV013110 and by the Scientific Grant Agency (VEGA) of the Ministry of Education, Science, Research and Sport of the Slovak Republic under the Contract 1/0144/15.
References
 C. R. Fuller, “Active control of sound transmission/radiation from elastic plates by vibration inputs: I. Analysis,” Journal of Sound and Vibration, vol. 136, no. 1, pp. 1–15, 1990. View at: Publisher Site  Google Scholar
 A. Preumont and K. Seto, Active Control of Structures, John Wiley & Sons, Chichester, UK, 3rd edition, 2008. View at: Publisher Site
 C. Edwards, “The 8bit strikes back,” IET Electronics Systems and Software, vol. 5, no. 2, pp. 36–39, 2007. View at: Publisher Site  Google Scholar
 D. C. Hyland and L. D. Davis, “Toward selfreliant control for adaptive structures,” Acta Astronautica, vol. 51, no. 1–9, pp. 89–99, 2002. View at: Publisher Site  Google Scholar
 G. Takács, T. Polóni, and B. Rohal'Ilkiv, “Adaptive model predictive vibration control of a cantilever beam with realtime parameter estimation,” Shock and Vibration, vol. 2014, Article ID 741765, 15 pages, 2014. View at: Publisher Site  Google Scholar
 M.T. VakilBaghmisheh, M. Peimani, M. H. Sadeghi, and M. M. Ettefagh, “Crack detection in beamlike structures using genetic algorithms,” Applied Soft Computing Journal, vol. 8, no. 2, pp. 1150–1160, 2008. View at: Publisher Site  Google Scholar
 F. S. Buezas, M. B. Rosales, and C. P. Filipich, “Damage detection with genetic algorithms taking into account a crack contact model,” Engineering Fracture Mechanics, vol. 78, no. 4, pp. 695–712, 2011. View at: Publisher Site  Google Scholar
 P. M. Pawar and R. Ganguli, “Genetic fuzzy system for online structural health monitoring of composite helicopter rotor blades,” Mechanical Systems and Signal Processing, vol. 21, no. 5, pp. 2212–2236, 2007. View at: Publisher Site  Google Scholar
 F. Kang, J.J. Li, and Q. Xu, “Damage detection based on improved particle swarm optimization using vibration data,” Applied Soft Computing Journal, vol. 12, no. 8, pp. 2329–2335, 2012. View at: Publisher Site  Google Scholar
 R. O. Curadelli, J. D. Riera, D. Ambrosini, and M. G. Amani, “Damage detection by means of structural damping identification,” Engineering Structures, vol. 30, no. 12, pp. 3497–3504, 2008. View at: Publisher Site  Google Scholar
 W. L. Bayissa, N. Haritos, and S. Thelandersson, “Vibrationbased structural damage identification using wavelet transform,” Mechanical Systems and Signal Processing, vol. 22, no. 5, pp. 1194–1215, 2008. View at: Publisher Site  Google Scholar
 M. B. Rosales, C. P. Filipich, and F. S. Buezas, “Crack detection in beamlike structures,” Engineering Structures, vol. 31, no. 10, pp. 2257–2264, 2009. View at: Publisher Site  Google Scholar
 M. T. Vakil Baghmisheh, M. Peimani, M. H. Sadeghi, M. M. Ettefagh, and A. F. Tabrizi, “A hybrid particle swarmNelderMead optimization method for crack detection in cantilever beams,” Applied Soft Computing Journal, vol. 12, no. 8, pp. 2217–2226, 2012. View at: Publisher Site  Google Scholar
 R. Y. Chiang and M. G. Safonov, “Design of ${H}_{\infty}$ controller for a lightly damped system using a bilinear pole shifting transform,” in Proceedings of the American Control Conference, pp. 1927–1928, June 1991. View at: Google Scholar
 R. E. Kalman, “Contributions to the theory of optimal control,” Boletín de la Sociedad Matemática Mexicana, vol. 2, no. 5, pp. 102–119, 1960. View at: Google Scholar  MathSciNet
 R. E. Kalman, “A new approach to linear filtering and prediction problems,” Transactions of the ASME. Series D: Journal of Basic Engineering, vol. 82, pp. 35–45, 1960. View at: Google Scholar
 R. E. Kalman and R. S. Bucy, “New results in linear filtering and prediction theory,” Journal of Basic Engineering Series D, vol. 83, pp. 95–107, 1961. View at: Google Scholar
 G. L. Smith, S. F. Schmidt, and L. A. McGee, “Application of statistical filter theory to the optimal estimation of position and velocity on board a circumlunar vehicle,” Tech. Rep. NASA TR R135, National Aeronautics and Space Administration (NASA), Moffet Field, Calif, USA, 1962, https://archive.org/details/nasa_techdoc_19620006857. View at: Google Scholar
 B. A. McElhoe, “An assessment of the navigation and course corrections for a manned flyby of mars or venus,” IEEE Transactions on Aerospace and Electronic Systems, vol. 2, no. 4, pp. 613–623, 1966. View at: Publisher Site  Google Scholar
 Z. A. Jassim, N. N. Ali, F. Mustapha, and N. A. Abdul Jalil, “A review on the vibration analysis for a damage occurrence of a cantilever beam,” Engineering Failure Analysis, vol. 31, pp. 442–461, 2013. View at: Publisher Site  Google Scholar
 J. Richelot, J. B. Guibe, and V. P. Budinger, “Active control of a clamped beam equipped with piezoelectric actuator and sensor using generalized predictive control,” in Proceedings of the IEEE International Symposium on Industrial Electronics (ISlE '04), vol. 1, pp. 583–588, May 2004. View at: Publisher Site  Google Scholar
 H. Lu and G. Meng, “An experimental and analytical investigation of the dynamic characteristics of a flexible sandwich plate filled with electrorheological fluid,” The International Journal of Advanced Manufacturing Technology, vol. 28, no. 1112, pp. 1049–1055, 2006. View at: Publisher Site  Google Scholar
 B. N. Agrawal and H. Bang, “Adaptive structures for large precision antennas,” Acta Astronautica, vol. 38, no. 3, pp. 175–183, 1996. View at: Publisher Site  Google Scholar
 M. Sabatini, P. Gasbarri, R. Monti, and G. B. Palmerini, “Vibration control of a flexible space manipulator during on orbit operations,” Acta Astronautica, vol. 73, pp. 109–121, 2012. View at: Publisher Site  Google Scholar
 Q. Hu, “A composite control scheme for attitude maneuvering and elastic mode stabilization of flexible spacecraft with measurable output feedback,” Aerospace Science and Technology, vol. 13, no. 23, pp. 81–91, 2009. View at: Publisher Site  Google Scholar
 E. Lourens, E. Reynders, G. De Roeck, G. Degrande, and G. Lombaert, “An augmented Kalman filter for force identification in structural dynamics,” Mechanical Systems and Signal Processing, vol. 27, no. 1, pp. 446–460, 2012. View at: Publisher Site  Google Scholar
 T. F. Mu, L. Zhou, and J. N. Yang, “Adaptive extended Kalman filter for parameter tracking of baseisolated structure under unknown seismic input,” in Proceedings of the 10th International Bhurban Conference on Applied Sciences and Technology (IBCAST '13), pp. 84–88, IEEE, Islamabad, Pakistan, January 2013. View at: Publisher Site  Google Scholar
 A. Turnip, K.S. Hong, and S. Park, “Modeling of a hydraulic engine mount for active pneumatic engine vibration control using the extended Kalman filter,” Journal of Mechanical Science and Technology, vol. 23, no. 1, pp. 229–236, 2009. View at: Publisher Site  Google Scholar
 K. Szabat and T. OrlowskaKowalska, “Adaptive control of twomass system using nonlinear extended Kalman Filter,” in Proceedings of the 32nd Annual Conference on IEEE Industrial Electronics (IECON '06), pp. 1539–1544, November 2006. View at: Publisher Site  Google Scholar
 K. Szabat and T. OrlowskaKowalska, “Application of the extended Kalman filter in advanced control structure of a drive system with elastic joint,” in Proceedings of the IEEE International Conference on Industrial Technology (ICIT '08), pp. 1–6, April 2008. View at: Publisher Site  Google Scholar
 P. Williams, “Structural damage detection from transient responses using squareroot unscented filtering,” Acta Astronautica, vol. 63, no. 1112, pp. 1259–1272, 2008. View at: Publisher Site  Google Scholar
 K. Erazo and E. M. Hernandez, “A modelbased observer for state and stress estimation in structural and mechanical systems: experimental validation,” Mechanical Systems and Signal Processing, vol. 43, no. 12, pp. 141–152, 2014. View at: Publisher Site  Google Scholar
 G. Takács, T. Polóni, and B. Rohal'Ilkiv, “Adaptive model predictive vibration control with state and parameter estimation using extended kalman filtering,” in Proceedings of the 20th International Congress on Sound and Vibration (ICSV '13), pp. 611/1–611/8, Bangkok, Thailand, July 2013. View at: Google Scholar
 G. Takács, T. Polóni, and B. RohalIlkiv, “Adaptive predictive control of transient vibrations in cantilevers with changing weight,” in Proceedings of the 19th World Congress of the International Federation of Automatic Control (IFAC '14), pp. 4739–4747, Cape Town, South Africa, August 2014. View at: Google Scholar
 G. Takács and B. RohalIlkiv, Model Predictive Vibration Control: Efficient Constrained MPC Vibration Control for Lightly Damped Mechanical Systems, Springer, London, UK, 2012.
 N. P. Jones, T. Shi, J. H. Ellis, and R. H. Scanlan, “Systemidentification procedure for system and input parameters in ambient vibration surveys,” Journal of Wind Engineering and Industrial Aerodynamics, vol. 5455, pp. 91–99, 1995, Third AsianPacific Symposium on Wind Engineering. View at: Google Scholar
 V. Namdeo and C. S. Manohar, “Nonlinear structural dynamical system identification using adaptive particle filters,” Journal of Sound and Vibration, vol. 306, no. 3–5, pp. 524–563, 2007. View at: Publisher Site  Google Scholar  MathSciNet
 T. Polóni, A. A. Eielsen, T. A. Johansen, and B. RohalIlkiv, “Adaptive model estimation of vibration motion for a nanopositioner with moving horizon optimized extended Kalman filter,” Journal of Dynamic Systems, Measurement and Control, vol. 135, no. 4, Article ID 041019, 2013. View at: Publisher Site  Google Scholar
 H. Benaroya and M. L. Nagurka, Mechanical Vibration: Analysis, Uncertainities and Control, CRC Press, Boca Raton, Fla, USA, 3rd edition, 2010.
 G. F. Franklin, J. D. Powell, and M. L. Workman, Digital Control of Dynamic Systems, AddisonWesley, Boston, Mass, USA, 3rd edition, 1997.
 D. J. Inman, Vibration with Control, John Wiley & Sons, Chichester, UK, 2006.
 P. S. Maybeck, Stochastic Models, Estimation and Control, vol. 141 of Mathematics in Science and Engineering, Academic Press, New York, NY, USA, 1st edition, 1979.
 A. Gelb, Applied Optimal Estimation, The MIT Press, Cambridge, Mass, USA, 1974. View at: MathSciNet
 D. Simon, Optimal State Estimation: Kalman, H1, and Nonlinear Approaches, WileyInterscience, Hoboken, NJ, USA, 1st edition, 2006.
 Z. Duan, C. Han, and H. Dang, “An adaptive Kalman filter with dynamic resealing of process noise,” in Proceedings of the 6th International Conference of Information Fusion, vol. 2, pp. 1310–1315, IEEE, Cairns, Australia, July 2003. View at: Publisher Site  Google Scholar
 A. Khitwongwattana and T. Maneewarn, “Extended kalman filter with adaptive measurement noise characteristics for position estimation of an autonomous vehicle,” in Proceedings of the IEEE/ASME International Conference on Mechtronic and Embedded Systems and Applications (MESA '08), pp. 505–509, IEEE, Beijing, China, October 2008. View at: Publisher Site  Google Scholar
 V. A. Bavdekar, A. P. Deshpande, and S. C. Patwardhan, “Identification of process and measurement noise covariance for state and parameter estimation using extended Kalman filter,” Journal of Process Control, vol. 21, no. 4, pp. 585–601, 2011. View at: Publisher Site  Google Scholar
 G. Takács and B. RohalIlkiv, “Realtime diagnostics of mechanical failure for thin active cantilever beams using lowcost hardware,” in Proceedings of the 7th Forum Acusticum, pp. 1–6, European Acoustics Association, Kraków, Poland, September 2014. View at: Google Scholar
 Atmel Corporation, “Atmel ATmega640/V1280/V1281/V2560/V2561/V: 8bit atmel microcontroller with 16/32/64KB,” in System Programmable Flash, Atmel Corporation, San Jose, Calif, USA, 2549qavr02/2014 edition, 2014, Datasheet. View at: Google Scholar
 Atmel Corporation, ATmega48A/PA/88A/PA/168A/PA/328/P Complete: Atmel 8Bit Microcontroller with 4/8/16/32KBytes InSystem Programmable Flash, 8271gavr02/2013 edition, Datasheet, Atmel Corporation, San Jose, Calif, USA, 2013.
 Texas Instruments, C2000^{TM} RealTime Microcontrollers, sprb176s edition, Datasheet, Texas Instruments, Dallas, Tex, USA, 2014.
 DigiKey Corporation, ATMEGA328PPU Atmel ∣ ATMEGA328PPU ∣ DigiKey, April 2014, http://www.digikey.com/productdetail/en/ATMEGA328PPU/ATMEGA328PPUND/1914589.
Copyright
Copyright © 2015 Gergely Takács et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.