1. Introduction
Vibration widely exists in various mechanical structures and may cause some unwanted results, for instance, reducing the fatigue life of structures, comfort, or safety performance of structural systems, and so on [
1]. With the development of modern engineering equipment towards lightweight and intelligent directions, higher requirements for vibration measurement and control have been proposed in fields such as aerospace [
2,
3,
4], robotics [
5], and automotive engineering [
6]. However, in practical applications, integrating high-performance vibration sensors into complex structures still faces numerous challenges. Traditional sensor solutions based on capacitive or piezoelectric principles struggle to operate in harsh conditions, such as strong magnetic fields, and their single-point measurement characteristics also limit the realization of the distributed vibration detection [
7,
8]. For attached structures with complex shapes and dynamic characteristics, such as robotic arms and solar sails, the placement of sensors may even lead to issues of system modal interference.
The IMU has attracted widespread attention due to its unique combination of measurement dimensions in the existing sensor technology system. It has been extensively applied across numerous domains, including inertial navigation, smartphones, robotics, unmanned aerial vehicles, automotive, and structural health monitoring [
9,
10]. The six-axis IMU, capable of simultaneously acquiring three-axis acceleration and three-axis angular velocity parameters, provides comprehensive structural motion data encompassing bending vibrations. Its high sensitivity and resolution make it an ideal choice for precise vibration measurements, particularly in space-constrained and weight-sensitive applications. Currently, low-powered microelectronic devices have become increasingly common in environmental monitoring, structural health monitoring, industrial manufacturing, and other fields [
11]. To ensure a small size, low power consumption, low cost, high precision, and high stability, Micro-Electro-Mechanical Systems (MEMSs)-based IMUs have become the preferred solution for inertial sensing applications across multiple industries, thanks to their advantages in miniaturization design [
12,
13].
S. Sukkarieh et al. [
14] proposed a low-cost, redundant, strapdown IMU composed of four low-cost accelerometers and four gyroscopes. The experiment showed that, with Global Positioning System (GPS) assistance, it could estimate the attitude of the aircraft, but without a GPS, it would drift over time. He et al. [
15] selected two sets of orthogonal laser gyroscopes as inertial measurement sensors, employing an inertial matching method that effectively measures hull deformation. This approach offers a lower cost and simpler installation compared to GPSs. To meet the higher requirements for size and weight in certain scenarios, Fabian Höflinger et al. [
16] developed a wireless micro-IMU that wirelessly transmits data from three-axis accelerometers, three-axis gyroscopes, and three-axis magnetometers to a base station, further reducing the size and weight. Pieter Try and Marion Gebhard [
17] designed a sensor device that combines a six-axis IMU with an additional beam structure. Experimental results showed this configuration achieved a 6.2 times higher vibration amplitude and a 480% increased signal energy compared to beamless IMUs, making it more suitable for small vibration measurements. Patrizi et al. [
18] studied the performance of an MEMS-IMU under dynamic and random vibration conditions, designing a specialized device to ensure controlled motion and evaluate the IMU’s performance under harsh conditions. In terms of low power consumption, Peihui Yan et al. [
19] proposed a real-time high-precision integrated navigation algorithm with dynamic power adaptive adjustment capabilities for a multi-sensor combination of a Global Navigation Satellite System (GNSS), an MEMS-IMU, and odometers. In real-time vehicle-mounted experiments, the Root Mean Square (RMS) statistical value of the overall positioning error in the entire road section was 0.312 m, and the average power consumption was only 141 mW.
IMUs suffer from a time drift phenomenon [
20,
21], where measurement errors accumulate over time. To address this issue, the Kalman Filter (KF), as a recursive estimation algorithm, has been widely adopted. This method integrates predicted values and observed values based on the statistical optimal estimation theory [
22], effectively suppressing inherent sensor errors and environmental noise. In fields such as positioning, navigation, and sensor networks, the KF employs a real-time data correction mechanism, ensuring the system’s timeliness while being particularly suitable for processing dynamic data from compact sensors under complex conditions like vibrations. To overcome the limitations of the traditional KF in nonlinear system modeling and robustness, researchers have developed variants including the EKF, Robust Kalman Filter (RKF), Unscented Kalman Filter (UKF), Cubature Kalman Filter (CKF), and Probabilistic Kalman Filter (PKF) [
23]. Recent studies have also explored novel approaches that integrate KFs with neural networks and machine learning techniques [
24,
25,
26].
This paper addresses the vibration monitoring requirements of beams and similar structures, proposing a vibration sensing method based on a miniature six-axis IMU and an improved EKF. By establishing the relationship between the vibration characteristics of cantilever beam structures and the inertial acceleration and angular velocity of sensors, we developed a miniaturized autonomous inertial sensor that can be easily attached to controlled structural surfaces. This sensor can acquire vibration data and wirelessly transmit the data. In the algorithm design, an improved EKF algorithm with a state variable correction for the accelerometer is adopted, effectively eliminating the dynamic interference from the accelerometer in the vibration environment and enhancing the real-time processing capability and anti-interference performance of the sensor data. Through simulation modeling and the experimental validation, it is confirmed that the method can accurately extract structural bending vibration characteristics, providing a lightweight and high-precision solution for real-time vibration monitoring. This paper elaborates on the vibration sensing mechanism of the six-axis IMU, the challenges of measuring the bending vibration, and the filter algorithm improvement strategy. Additionally, experimental evaluations of the measurement accuracy and real-time performance are provided, offering new research ideas for the development of inertial sensor technologies in structural health monitoring.
The remainder of this paper is organized as follows:
Section 2 introduces the hardware and software system of the miniaturized inertial sensor.
Section 3 discusses the relationship between the tilt angle and deflection during the cantilever beam bending vibration.
Section 4 introduces the improved EKF.
Section 5 presents simulation and experimental results, evaluating the measurement accuracy and real-time performance of the proposed new structural vibration sensing method.
Section 6 presents the conclusions.
2. Miniature Vibration Monitoring System
The system is designed to address the bending vibration monitoring requirements of beam structures. The hardware is designed with a split structure, where the sensor board is connected to the main control board via Flexible Printed Circuit (FPC) cables (Jushuo Electronics, Shenzhen, China) and communicates through a Serial Peripheral Interface (SPI) to achieve miniaturization and portability. The sensor board enhances rigidity and seismic performance by reducing the size of the Printed Circuit Board (PCB) substrate (JLC Technology Group Co., Ltd, Shenzhen, China). It utilizes a high-precision six-axis IMU to capture subtle bending vibrations accurately. The main control board employs a highly integrated chip with a floating-point unit (FPU) to improve the floating-point computation speed and incorporates vibration-damping measures to ensure reliability within prolonged vibration environments. The system is structured in a three-tier architecture: the IMU collects vibration data in real-time, which is then transmitted via the SPI to the main control board for the real-time calculation of the tilt angle and amplitude, and finally, the results are wirelessly transmitted to the upper computer. The overall architecture of the miniature IMU is illustrated in
Figure 1.
The six-axis IMU utilizes the BMI088 sensor supplied by Bosch Sensortec GmbH (Reutlingen, Germany). It is a MEMS-based IMU that integrates a three-axis 16-bit gyroscope and a three-axis 16-bit accelerometer. Its built-in data processing circuitry converts analog signals into digital data, which is then stored in a register, eliminating the need for external analog-to-digital conversion circuits during the design phase. This significantly reduces the space required for the sensor component and increases the overall integration of the device. As an IMU designed for harsh vibration environments, it also incorporates a hardware low-pass filtering system that effectively filters out high-frequency noise caused by the PCB resonance. The specific parameters of the BMI088 are shown in
Table 1.
The main control board is required to perform tasks including reading sensor data, running algorithms to obtain vibration information such as the tilt angle and amplitude, and sending results to the upper computer. The STM32F401CBU6 microcontroller (STMicroelectronics, Geneva, Switzerland) from STMicroelectronics was selected as the data processing chip, using an external quartz crystal oscillator as the clock source. A low-ripple linear voltage regulator chip, AMS1117 (MSKSEMI, Taiwan, China), converts 5 V to 3.3 V and is used to power the microcontroller. The STM32F401CBU6 is a 32-bit microcontroller based on the Cortex-M4 core, with a maximum clock frequency of 84 MHz. It features a built-in FPU, supports various peripherals, and is housed in a compact UFQFPN48 package. The main characteristics are as follows:
A wide input voltage range of 1.7 V to 3.6 V.
A built-in 256 KB Flash and 64 KB SRAM, providing ample storage and programming space.
A current consumption of 128 μA/MHz in run mode and 42 μA in sleep mode, ensuring a very low power consumption.
A 16-channel DMA with FIFO and interrupt capabilities.
Up to 11 multifunctional timers.
A total of 11 communication interfaces, including 3 USARTs, 3 I2Cs, and 4 SPIs.
We chose the SPI as the communication protocol between the sensor and the controller. Specifically, the sensor’s SCK, SDI, and SDO are connected to the corresponding SPI pins of the controller. The sensor’s CSB1 (accelerometer chip select) and CSB2 (gyroscope chip select) are connected to the GPIO output pins of the controller. The sensor’s INT1 (interrupt 1) and INT3 (interrupt 3) are connected to the interrupt input (GPIO) pins of the controller.
During the software development process of miniaturized autonomous inertial sensors, STM32CubeMX v6.11.1 and Keil uVision5 are used for the joint development and debugging. Keil uVision, as a mainstream integrated development environment, offers an excellent compatibility with ARM Cortex-M series processors and provides a comprehensive debugging toolchain, significantly shortening the development cycle. On the other hand, CubeMX enables the graphical interaction for the chip pin function mapping, clock tree configuration, and peripheral parameter settings. Its built-in intelligent conflict detection algorithm can verify the rationality of the hardware resource configuration in real-time. After completing the hardware configuration, CubeMX can automatically generate a high-quality initialization code, greatly simplifying the development process. The combination of both tools not only ensures the reliability and maintainability of the code but also significantly improves the overall development efficiency.
3. Analysis of Tilt Angle and Deflection in Cantilever Beam Vibration
Measuring the tilt angle in a vibrating environment is quite challenging, whereas measuring the deflection at a point is relatively simple. The tilt angle of the beam is closely related to the deflection. The relationship between the tilt angle and the deflection is analyzed below. As shown in
Figure 2, a simplified cantilever beam with a constant cross-section is considered, with the length
l, density
ρ, cross-sectional area
A, and flexural rigidity
EI. Taking the left end of the cantilever beam as the origin of the coordinate system, the
x-axis is directed along the beam to the right.
In general, the deflection of a beam is much smaller than its span, the section tilt angle
θ is very small, and the deflection curve is relatively flat. Based on the principles of material mechanics, the approximate differential equation of the deflection curve can be derived as follows:
where
w is the deflection of the cantilever beam, and
M is the bending moment applied to the beam.
Integrating Equation (1) produces:
where
C and
D are integration constants determined by boundary conditions.
Under known bending moment conditions, the tilt angle and deflection at any point on the beam can be calculated, thereby establishing the relationship between the tilt angle and deflection.
Under small deformation assumptions, the bending deformation of the beam can be decomposed into the superposition of deformations caused by different load conditions. The vibration of the cantilever beam can be decomposed into static deformation due to gravity and the dynamic deformation unaffected by gravity during the vibration. Gravity can be modeled as a distributed load
q. According to Equation (2), the deflection and tilt angle under gravity are given by
The dynamic deformation during the vibration without external force conditions will be analyzed below. The previously established model can be regarded as an Euler–Bernoulli beam, with
wf (
x,
t) representing the deflection of the neutral axis of the cross-section at position
x and time
t. A force analysis is conducted on a differential segment of the length
dx of the beam, as shown in
Figure 3.
Q and
M represent the shear force and bending moment on the left section, while
f,
m, and
represent the external force, external moment, and inertial force acting on the differential segment of the beam, respectively.
In the absence of external forces (i.e.,
f = 0 and
m = 0), according to Newton’s second law, we have
Performing a force analysis on the right section and neglecting higher-order small terms, we obtain
Substituting Equations (1) and (5) into Equation (4), the dynamic equation of motion for the free bending vibration of a homogeneous beam with a constant cross-section can be derived:
Equation (6) can be solved using the method of the separation of variables. Let its solution be
where
W(
x) is the natural mode shape function, and
q(
t) is the time-dependent function.
Substituting Equation (7) into Equation (6), we obtain
where
is the wavenumber of the natural mode shape function
W(
x) along the length of the beam, and
ω is the natural frequency.
Equation (8) describes the distribution of the bending vibration amplitude along the beam and the time-dependent function of the beam’s vibration. The parameters ω, a1, a2, a3, a4, b1, and b2 are determined by the boundary and initial conditions.
For a cantilever beam, the left end is fixed, with boundary conditions of
w (0) = 0 and
θ(0) = 0. The right end is a free boundary, with boundary conditions of
M (
l) = 0 and
Q (
l) = 0. Substituting these boundary conditions into Equation (8) yields the solutions:
where subscript
n denotes the order of normal modes.
By setting
a1 = 1, the normal mode shape function of the cantilever beam is obtained:
Using the modal superposition method, the deflection function of the vibrating cantilever beam is expressed as
The parameters of
qn(
t) are determined based on the initial state of the beam, assuming that the beam is initially subjected to a force
F at its free end, causing it to bend, and then released from a stationary state for free vibration. In this case, the beam’s deflection equation is
According to the orthogonality of normal modes
where
Mn,
Kn, and
fn represent the
nth order modal mass, modal stiffness, and modal force, respectively.
w0(
x) is the deflection curve of the beam at the initial moment, and
v0(
x) is the velocity of the beam at the initial moment.
The vibration equation of the cantilever beam is solved as
The free bending vibration of the beam primarily consists of the first-order natural vibration mode, and the contribution from higher-order modes can be ignored. Moreover,
= 0, thus
Taking the partial derivative of the deflection with respect to
x yields the function for the section’s tilt angle:
From Equations (15) and (16), it can be seen that there is a proportional relationship between the deflection and tilt angle at a certain location. The tilt angle on a cantilever beam is difficult to determine, while the deflection measurement is relatively easier. Therefore, to measure the tilt angle, it is sufficient to measure the deflection at that location.
Based on the above analysis, the deflection and tilt angle during the vibration of a cantilever beam consist of two components: the static deformation due to the effect of gravity and the dynamic deformation during vibration, which is unaffected by gravity. The total deflection and total tilt angle during the vibration of the cantilever beam are
4. Improved Enhanced Kalman Filter
In the field of inertial measurements, accelerometers and gyroscopes serve as core sensors with complementary characteristics. An accelerometer contains mutually orthogonal measurement axes. Based on the principle of gravity vector decomposition, the tilt angle is estimated by measuring the acceleration components along the orthogonal axes. Gyroscopes measure the angular velocity during the object rotation, and the tilt angle can be obtained by integrating over time. The tilt angle measured by an accelerometer is highly accurate, but it is susceptible to the interference from vibrations and acceleration in dynamic environments. Gyroscopes provide stable angular velocity measurements over short periods but are prone to zero-bias drift. By using the KF to fuse the data from both sensors, the accuracy of the tilt angle measurement can be improved. As a recursive algorithm, the KF processes and updates sensor data in real-time without storing historical data, reducing hardware requirements and enhancing the dynamic adaptability and long-term stability of the measurement system. To use a KF, a system model must first be established. The model for the KF is as follows:
The KF predicts the state at time
t using the previous state
xk−1 and control input
uk:
where
xk is the state at time
k;
F is the nonlinear state transition function;
B is the control input matrix; and
wk is the process noise.
The state observation equation is as follows:
where
z is the system’s observation vector;
zk represents the state vector at time
k;
H is a nonlinear function that maps the state to the observation, describing the relationship between the system’s state and the observed values; and
vk is the observation noise, representing measurement errors or uncertainties.
First, it is critical to select appropriate observation quantities for the KF. Since accelerometers are susceptible to interference in a vibrating environment, directly using their tilt angle measurements as observation inputs would adversely affect the KF’s state estimation. Firstly, large observation errors can reduce the accuracy of the state correction, leading to divergent estimation results. Secondly, the KF may overfit the noisy measurements, deviating from the system’s dynamic model and generating biased state estimates. These issues significantly affect the filter’s convergence and stability. To reduce the interference caused by the vibration, it is necessary to analyze and process the measured acceleration values and find suitable observation variables and observation equations to improve the accuracy of the tilt angle measurements.
The following is an analysis of the sensor under vibrating conditions, as shown in
Figure 4. Where
X and
Y are the
x- and
y-axis acceleration values measured by the accelerometer,
ax and
ay represent the accelerations caused by motion,
gx and
gy represent the accelerations due to gravity, and
is the angular velocity of the end face’s rotation.
From
Section 3, the deflection at the measurement point is proportional to the tilt angle, i.e.,
Taking the second derivative of both sides with respect to time yields
Approximating the motion of the end face as circular motion, we obtain
where
r is the radius of the circular motion.
The acceleration measured by the accelerometer is a combination of the actual acceleration of the object and the acceleration due to gravity. Therefore,
After the above analysis, the relationship between the acceleration and motion state has been established, and equations between the state and observation have been derived. Based on sensor conditions, the
x- and
y-axis accelerations and angular velocity are chosen as observed quantities. The observation vector
z is
According to the model, the tilt angle, angular velocity, angular acceleration, and circular radius are chosen as state variables. The state vector
x is
From the interrelationships between the angle, angular velocity, and angular acceleration, the states between two consecutive time instants exhibit linear relationships. The nonlinear state transition function
F is thus converted into a state transition matrix
Fk.
For the nonlinear function
H(
xk,
k) from the state to the observation, the Jacobian matrix of the nonlinear function
H(
x) is denoted as
Hk.
The EKF process operates in two primary phases: prediction and updating. The state prediction equation represents the prior estimate of the state at time k derived from the state at time k − 1; the state update process uses measurement values to update the prior estimate.
The state prediction process is as follows:
where
is the prior prediction value obtained from the previous moment’s state;
is the posterior state value from the previous moment;
is the prior covariance matrix obtained from the previous moment’s state;
Pk − 1 is the posterior covariance matrix from the previous moment; and
Qk is the process noise covariance matrix, representing the uncertainty in the state prediction process.
The state update process is as follows:
where
Kk is the Kalman gain;
Rk is the observation noise covariance matrix; and
is the predicted state estimate.
This iterative procedure enables the EKF to perpetually enhance the system’s state estimation by utilizing new information.