You are on page 1of 6

Vibration Condition Monitoring using Machine

Learning
M Zekveld and GP Hancke
Department of Electrical, Electronic and Computer Engineering
University of Pretoria
Pretoria, South Africa
Corresponding author: gerhard.hancke@up.ac.za

Abstract—This paper describes the design and applications [8, 9, 10]. It also reduces complex infrastructure
implementation of an embedded wireless vibration condition issues related to cabling in older monitoring technologies. The
monitoring device. The goal was to design a device that uses sensor node transmits measured vibration data to the host
machine learning techniques for fault diagnosis. A MEMS system where all the data processing takes place. The second
accelerometer attached to a microcontroller measures vibration advance - machine learning - is still in development [3]. The
and transmits the data wirelessly to a gateway. It is shown that addition of wireless network technology has already been
the device is able to diagnose faults. implemented in the field of condition monitoring. One of the
Keywords— condition monitoring; machine learning; wireless. primary wireless communication standards is the
WirelessHART standard which is used by companies such as
I. INTRODUCTION ABB, Emerson and Siemens [11]. This standard is based on the
Maintenance on machinery such as motors is essential to a IEEE 802.15.4 physical layer.
plant or factory’s production. Without maintenance, production However, more recently, 6LoWPAN has been released and
costs rise due to replacement of failed machinery and has the benefit of complying to the IPv6 protocol [12].
downtime resulting from the broken machinery. Maintenance 6LoWPAN is a network layer protocol that makes it possible to
can be done on a set time schedule which eliminates losses due communicate with the nodes via the Internet Protocol (IP). This
to unplanned down-time, but production costs are still high due paper aims at integrating ML and wireless technology into a
to the replacement of machinery that are still healthy [1]. single device for monitoring the condition of motors. This
Maintenance can also be done based on knowledge of the work aims at implementing a ML algorithm on the wireless
machine’s health or condition. The machine’s health can be node itself to allow the wireless node to autonomously
observed by the severity of the vibration levels [1]. The determine the motor’s condition. This will allow the node to
motor’s condition can be monitored either continuously (using transmit the present condition of the motor it is currently
a permanently fixed vibration sensor) or on a schedule (using a attached to, instead of transmitting the raw vibration or electric
hand-held vibration monitor) [2]. The first option is data current measurements to a central control unit for analysis. The
intensive while the second requires a technician to make advantage of such a system is reduction of wireless
regular field visits for inspection. The fault types which can be transmissions.
measured are numerous and originate from both electrical and
mechanical failures [3], [4]. Not all of these fault types are II. BACKGROUND
present on a piece of equipment or have the same level of
importance, making the design of an analysis system difficult. A. Condition monitoring
Machine condition monitoring is an essential part to any
Techniques which identify bearing failure differ to those industry which is either directly or indirectly dependent on
which determine rotor electrical faults [3]. While the machines. One result of failing machines is that an industrial
techniques used to identify various faults may vary [5], a process needs to stop operations until the machine is fixed or
general rule is that if the overall vibrations increase, a fault is replaced. This is often unscheduled and increases production
present. The ISO-10816 classifies general vibrations according costs. Machine failures can hardly be avoided, but maintenance
to a severity level for machines of various sizes [6]. This ISO can be scheduled and result in more cost effective production.
does not say what the fault is, but does say whether the Scheduled maintenance, or predictive maintenance, still has the
vibrations present are good, satisfactory, unsatisfactory or disadvantage of often replacing machines which could still run
unacceptable. Condition based maintenance has been in use for for several years [1]. This can be avoided by actually
over 30 years [1] and as such, it has well established research monitoring the condition of each machine, hence the name
behind it and mature designs for industrial implementations. “condition-based maintenance”. Faults can broadly be
Recent developments in research and industry has brought categorized as electrical, mechanical or magnetic. This
wireless networking and machine learning (ML) to the machine categorization is due to excessive mechanical, electrical,
condition monitoring field. The first advance - wireless thermal, or magnetic stresses in the machines which cause
networking - allows monitoring sensor nodes to be easily degradation of materials and parts breaking [13].
integrated into devices [7] for industrial and consumer

l-))) 
B. Use of machine learning in condition monitoring which is attached to the vibrating motor. FU 2, the gateway,
Recent developments in research and industry has brought interfaces the wireless sensor network protocol to a standard
ML to the machine condition monitoring field [3]. Much computer protocol - such as USB or IPv6. FU 3 is a computer
research has been done and is being done to identify the best running an application to display the motor’s condition. FU 1
ML algorithms to detect failures as well as identify (diagnose) is shown in greater detail in Fig. 3.
the specific failure. According to [14], specific issues related to FU 1.1 provides power for the entire wireless node. The
rotating equipment, require novel methods for blind source power supply must be battery powered. FU 1.2 monitors the
separation, novelty detection and dynamic pattern recognition. power used by the wireless node. This monitor tracks all the
Generally, ML techniques have not yet been practically power used by each electronic device on board the wireless
implemented in the field of condition monitoring. The work machine condition monitor sensor. It then calculates how
currently being done is primarily research. This research is much battery life remains and provides a battery status of the
focused on identifying which algorithms and data features are device.
best to be used for condition monitoring. A challenge in the
field of condition monitoring is the lack of large datasets and
the absence of fault classes (not all faults have been classified)
[14]. There are real advantages in the implementation of ML
over conventional condition monitoring [14]. Conventional
monitoring requires many heuristics for the machine’s
structural properties, as well as identifying specific frequencies Fig. 2. System overview.
in the vibration spectrum related to specific faults. These are
then used to set up a fault-database for the specific machine, so
for a new machine a new fault-database would need to be set The functional block diagram of the system is shown in
up. ML allows the system to train itself on what is normal for Fig. 3.
any particular machine and consequently detect anomalies.
These anomalies can then indicate failures – combined with
heuristics similar to conventional condition monitoring,
specific faults can be diagnosed.
Two of the primary machine learning classes, supervised
and unsupervised learning, are used in condition monitoring.
Both ML classes require input features. These features are
extracted from the raw vibration and electrical current data.
Fig. 1 shows the feature extraction process.

Fig. 3. Functional block diagram of wireless condition monitoring sensor.


Fig. 1. Feature extraction process.
FU 1.3 converts mechanical vibrations into an analogue
Supervised learning requires labelled outputs for the ML voltage signal or a digital signal for processing by the data
algorithm, while unsupervised learning needs to learn its own processor (FU 1.5). Typically, this is done by a transducer such
output labels. A label can easily be given for the healthy as an accelerometer. The accelerometer will measure vibrations
condition of the system, while labels for the faults are more in 3 axes. This raw data is fed to FU 1.5 for processing. FU 1.4
difficult to give, due to a lack of data, as already discussed. measures the electrical current levels of the motor’s power
Another limitation with using a supervised learning approach is supply and converts them to an analogue voltage signal. This
that it will only detect expected (i.e. labelled) faults. A new voltage signal will be conditioned before being fed into the
unclassified fault would result in a false positive. The input of a microcontroller’s analogue to digital converter. This digital
ML algorithm requires well chosen features to be extracted data is processed by FU 1.5. FU 1.5 will first do some
from the raw data. Common feature extraction methods are preprocessing of the raw data. This processed data is then fed
those based on temporal correlations [14], those based on into a ML algorithm. The ML algorithm is implemented on a
Discrete Wavelet Transforms [15] and those using the microcontroller.
frequency domain of the original time based data [16]. These When the device is installed, the machine learning
features are then fed into a Neural Network (NN), Self- algorithm builds its own model of the motor’s normal vibration
Organizing Map (SOM), k-means clustering or some other ML and electrical characteristics. The algorithm then looks for any
method. anomalies in new measurements received from FU 1.3 and FU
1.4. These anomalies, along with the battery status, are
III. DESIGN AND IMPLEMENTATION transmitted to the gateway (FU 2) via FU 1.6. FU 1.6 provides
Fig. 2 shows an overview of the proposed system. FU 1 is low power wireless communication to connect to the wireless
the autonomous wireless machine condition monitor sensor sensor network.


A. Wireless sensor node 2) Protocol
Vibration measurements were conducted with a LSM6DS3 The experimental protocol is as follows:
accelerometer connected to a Nucleo-L152RE evaulation kit • Place a faulty bearing onto the motor.
with a 32-bit STM32L152RET6 microcontroller (MCU) via
I2C. The wireless link was implemented with a X-Nucleo- • Set the speed of the motor.
IDS01A4 expansion board that was connected to the Nucleo-
L152RE kit. This board has a transceiver that communicates at • Place the accelerometer on the x-axis.
sub-GHz frequencies, which enable greater communication • Start the QuantumX’s data logger.
ranges than 2.4 GHz. The sensor node runs ContikiOS. Details
on the current and voltage requirements for the main • Start the motor.
components comprising the wireless sensor node are shown in
• Let the motor run at operating speed.
Table I. The specific connectivity method is not important, and
it could be any wireless technology deemed suitable for the • Switch power off to stop the motor.
environment [17, 18, 19].
• Stop the data logger.
Table I. Current and voltage requirements.
Function Description Max current Voltage • Repeat for y-axis and z-axis.
[mA] range [V]

Radio link X-Nucleo-IDS01A4 22 1.8 – 3.6


Microcontroller STM32L152RET6 131.82 1.65 – 3.6
Accelerometer LSM6DS3 1.25 1.71 – 3.6
System total 155.25 1.8 – 3.6

B. Accelerometer connection to the MCU


The placement of the accelerometor on the machine is
important due to electromagnetic interference (EMI). Ideally,
the I2C communication protocol is used on printed circuit
boards (PCBs) and not over long (greater than 1 meter) wired
channels. This can lead to failure when the accelerometer is
connected to the MCU with a meter long unshielded cable as
these channels can be very susceptible to the EMI generated by Fig. 4. Taper bearing faulty sleeve setup.
a motor. The EMI interference was mitigated by shielding the
I2C channel with a shielded cable.
IV. EXPERIMENTAL PROTOCOL
Three tests were conducted to evaluate the implemented
system, as described below.
A. Motor bearing data
The objective of this experiment is to acquire test data for a
faulty bearing and a normal condition bearing using calibrated
equipment. This data will be used to validate the data from the
designed system.
1) Equipment
The following equipment was used: a QuantumX data
acquisition system; a Marpol 3 phase motor with a jig to allow
the outer ring of the shaft bearing to be replaced; and a motor
(taper) bearing from SKF (4T-320/32X).
Fig. 4 shows the setup of the motor and the accelerometer.
The accelerometer is setup to measure vibrations in the z-axis Fig. 5. Taper bearing faulty sleeve.
(axial direction) in Fig. 4. The taper bearing is inside the silver
B. Shaft bearing data
casing. The casing can be removed to expose the bearing and
replace the outer ring sleeve. The QuantumX data acquisition The objective of this experiment is to verify the
system is set to sample at 2.4 kHz. The Taper bearing’s faulty functionality of the designed sensor node. This will be done on
outer ring sleeve’s fault is a groove drilled across its width as the shaft setup. The designed sensor node’s output will be
shown in Fig. 5. The motor was set to 53 Hz with a rotational compared to that of the data received by the QuantumX and
speed measured at 1587 rpm. industrial accelerometer.


1) Equipment V. RESULTS AND DISCUSSION
The following equipment was used: an accelerometer; a
A. Motor bearing data
QuantumX data acquisition system; LSM6DS3 accelerometer;
Unicleo-GUI software for LSM6DS3 data acquisition; VSD Fig. 6 shows the time and frequency domains for the
controlled with a potentiometer; and a shaft motor setup. The bearing under normal conditions. The peak magnitude is at
QuantumX data acquisition system is set to sample at 2.4 kHz. 26.45 Hz as expected for the motor running at 1587 rpm (rpm
The shaft is first set aligned, then misaligned. The motor is set = Hz ɯ 60s). Fig. 7 shows the time and frequency domains for
to 50 Hz with a rotational speed measured at 1573 rpm. The the bearing with a faulty outer bearing ring. A spike in the
designed sensor node is sending data from the accelerometer to spectrum occurs at 26.45 Hz but a new spike also occurs at 212
the MCU via a I2 channel of approximately 10 cm. The Hz. This is 8 times the rotational speed of the motor. The 846
designed sensor node’s sampling rate is 6.660 kHz. Hz frequency component also increased significantly. A quick
look at the time domain plots also shows that there is a
2) Protocol significant increase of vibrations in the higher frequency range.
The experimental protocol is as follows: Fig. 6 shows a clear waveform corresponding to the 26.45 Hz,
while in Fig. 7 there are no discernible patterns.
• Align the shaft.
• Place the accelerometer on the bearing.
• Start the data logger.
• Speed up the motor to 50 Hz.
• Let the motor run at operating speed.
• Switch power off to stop the motor.
• Stop the data logger.
C. Fault diagnosis
The objective of this experiment was to train the machine
learning algorithm on real vibration data and then observe its
prediction accuracy.
1) Equipment Fig. 6. Vibration of normal bearing.
An accelerometer, a QuantumX data acquisition systemand
a shaft/bearing test bench were used. The QuantumX data
acquisition system is set to sample at 2.4 kHz. The shaft is first
set aligned, then unbalanced, then a bearing bolt is loosened,
then the shaft is misaligned. The motor is set to 50 Hz with a
rotational speed measured at 1573 rpm.
2) Protocol
After all the data has been gathered, it is fed to the Python
script to pre-process the data and then the data is fed to the ML
algorithm for training. The training is done on the first 3
seconds of each data set. The training process splits 33 % of the
data into a test set and the rest into a training set. The steps to
collect the training data are as follows:
• Set shaft condition (aligned/unbalanced).
• Place the accelerometer on the bearing.
Fig. 7. Vibration of faulty bearing.
• Speed up the motor to 50 Hz.
• Let the motor run at operating speed. The spike at 26.45 Hz is expected given that the motor is
• Start the data logger. rotating at 1587 rpm. The spike at 846 Hz is also expected
because the bearing used has 32 rollers. 846 Hz is 32 times the
• Run the logger for more than 5 seconds. running frequency of 26.45 Hz. This is the benchmark data
• Stop data logger. which is defined as normal for the ML subsystem. Any
deviation from these results would indicate a possible pending
• Train the machine learning model. fault. In Fig. 7, the frequency component at 846 Hz is larger
than for normal operation and a very strong frequency
Then, validation data is collected, use the model to predict the component at 8 times the operating frequency is also seen.
fault.


Both of these are ‘anomalies’ to normal operation. This These results show show that the neural network machine
indicates that the frequency domain data would be a good learning approach can work well to identify faults. This
feature. experiment only shows the neural network identifying a single
fault. The largest drawback is that the implemented neural
B. Shaft bearing data network is highly supervised.
Fig. 8 shows the reference time and frequency domains for
the aligned shaft as measured by the industrial accelerometer.

Fig. 10. FFT for a normal and misaligned shaft.


Fig. 8. Vibration of aligned shaft.

Fig. 9 shows the frequency domain for the aligned shaft as


measured by the designed sensor node.

Fig. 11. FFT for a normal and unbalanced shaft.

Fig. 9. Vibration data of aligned shaft measured by the proposed system.


Table II. Neural network prediction results.
C. Fault diagnosis Actual condition Predicted condition Confidence
level of
Fig. 10 shows the FFT features of the normal vibration data prediction
along with the vibration data of a misaligned shaft fault. The
misaligned shaft fault condition was not modelled in the NN. A Normal Normal 96%
visual inspection shows how the frequency spectrum changes Normal Normal 95%
when the shaft is unbalanced. Fig. 11 shows the FFT features Normal Normal 95%
of the validation data. A visual inspection shows how the Unbalanced Unbalanced 99%
frequency spectrum changes when the shaft is unbalanced. The Unbalanced Unbalanced 99%
neural network’s model prediction results are shown in Table Unbalanced Unbalanced 99%
Normal Normal 91%
II. The results in Table II show a 100% accuracy in identifying Normal Normal 84%
a fault from a normal condition. The confidence level in Normal Normal 81%
identifying a misaligned fault is 99% while the confidence Misaligned shaft Normal 83%
level for correctly identifying a normal condition is above 80 Misaligned shaft Normal 84%
%. A fault unknown to the trained model results in a false Misaligned shaft Normal 84%
classification of normal operation with confidence over 82%.


The NN was trained to identify a unbalanced shaft, which is Off-The-Shelf Components”, IEEE International Conference on
why is has such a high confidence level in identifying it as a Industrial Technology (ICIT), pp. 1926-1932, March 2015.
fault condition. This high confidence level is however a good [8] S. Chinnapen-Rimer and G.P. Hancke, “Actor coordination using info-
gap decision theory in wireless sensor and actor networks,” Inderscience
motivation to train model on the most common faults. When an International Journal of Sensor Networks, Vol. 10, No. 4, pp. 177-191,
unknown fault is presented to the NN model, it fails to identify October 2011.
the fault as not normal even though its FFT features are not at [9] K. S. E. Phala, A. Kumar and G. P. Hancke, “Air Quality Monitoring
all similar. System Based on ISO/IEC/IEEE 21451 Standards”, IEEE Sensors
Journal, Vol. 16, No. 12, pp. 5037-5045, June 2016.
VI. CONCLUSION [10] B. Cheng, L. Cui, W. Jia, W. Zhao, and G. P. Hancke, “Multiple
A wireless vibration condition monitoring system was Regions of Interest Coverage in Camera Sensor Networks for Tele-
implemented with a sub-GHz wireless network for data Intensive Care Units,” IEEE Transactions on Industrial Informatics, vol.
12, no.6, pp.2331-2341, December 2016.
transmission and a neural network for condition monitoring. A
[11] “WirelessHart Ready for Prime Time,” [Online]. Available:
sensor node was designed to pick up the vibration data of the https://www.automationworld.com/article/technologies/dcs/wirelesshart-
motor and transmit it to a PC application via a 6LoWPAN ready-prime-time. [Accessed: 8 May 2018].
based gateway. The vibration data was picked up by a MEMS [12] “6LoWPAN: The wireless embedded Internet - Part 2:
accelerometer, relayed to a MCU which handled the CoAP and 6LoWPANhistory, market perspective & applications,” [Online].
6LoWPAN protocols for the wireless network. Relaying the Available: https://www.eetimes.com/document.asp?doc_id=1278812.
data from the accelerometer to the MCU was done via an I2C [Accessed: 8 May 2018].
channel. This channel was very susceptible to the EMI [13] M. A. Awadallah and M. M. Morcos, “Automatic Fault Diagnosis of
Electric Machinery: A Case Study in PM Brushless DC Motors,”
generated by the motor. The EMI interference was negated by Electric Power Components and Systems, vol. 33, no. 6, pp. 597–610,
shielding the I2C channel with a shielded cable. For future 2005.
work, more features and more machine learning algorithms [14] A. Ypma, “Learning methods for machine vibration analysis and health
will be considered and also looking at alternative WSN monitoring,” PhD Dissertation, TU Delft, 2001.
methods for additional services, like localisation of machines [15] V. Dhanush Abhijit, V. Sugumaran, and K. I. Ramachandran, “Fault
[20, 21]. For future work, more advanced machine learning Diagnosis of Bearings using Vibration Signals and Wavelets,” Indian
techniques and more features will be investigated. Journal of Science and Technology, vol. 9, no. 33, 2016.
[16] M. K. Rad, M. Torabizadeh and A. Noshadi, “Artificial Neural
REFERENCES Network-based fault diagnostics of an electric motor using vibration
monitoring,” in Proc. of 2011 Int. Conf. on Transportation, Mechanical,
[1] “Understanding the benefits of of vibration monitoring analysis,” and Electrical Engineering (TMEE), Changchun, 2011, pp. 1512-1516.
[Online]. Available: http://en-us.fluke.com/community/fluke-news-
plus/vibration/understanding-the-benefits-of-vibration-monitoring-and- [17] C. Potter, G.P. Hancke and B. de Silva, “Machine-to-Machine: Possible
analysis.html [Accessed: 8 May 2018]. Applications in Industrial Networks”, IEEE International Conference on
Industrial Technology (ICIT), pp. 1321-1326, Feb. 2013.
[2] “Motor Condition Monitoring,” [Online]. Available:
https://w5.siemens.com/web/cz/en/corporte/portal/siemens/industry/sem [18] B. Silva and G.P. Hancke, “IR-UWB based Non-line-of-sight
d/service/servisni_produkty/pages/sledovani-stavu-stroju.aspx Identification in Harsh Environments: Principles and Challenges”, IEEE
[Accessed: 8 May 2018]. Transactions on Industrial Informatics, Vol. 12, No. 3, pp 1188 - 1195,
June 2016.
[3] H. Henao et al., “Trends in Fault Diagnosis for Electrical Machines: A
Review of Diagnostic Techniques,” IEEE Industrial Electronics [19] G.A. Akpakwu, B.J. Silva, G.P. Hancke and A.M. Abu-Mahfouz, “A
Magazine, vol. 8, no. 2, pp. 31-42, June 2014. Survey on 5G Networks for the Internet of Things: Communication
Technologies and Challenges”, IEEE Access, vol. 6, pp. 3619-3647,
[4] W. R. Finley, M. M. Hodowanec and W. G. Holter, “An analytical November 2017.
approach to solving motor vibration problems,” IEEE Transactions on
Industry Applications, vol. 36, no. 5, pp. 1467-1480, Sep/Oct. 2000. [20] A. Abu-Mahfouz and G.P. Hancke, “An Efficient Distributed
Localization Algorithm for Wireless Sensor Networks: Based on Smart
[5] A. K. Nandi, C. Liu, and M. L. D. Wong, “Intelligent Vibration Signal References Selection Criteria”, Inderscience International Journal of
Processing for Condition Monitoring,” Int. Conf. Surveillance 7, 29-30 Sensor Networks, vol. 13, no. 2, pp. 94-111, May 2013.
Oct. 2013, pp. 1- 15.
[21] A.M. Abu-Mahfouz and G.P. Hancke. “ns-2 Extension to Simulate
[6] J. M. Robichaud and P. Eng, “Reference standards for vibration Localization Systems in Wireless Sensor Networks”, IEEE Africon
monitoring and analysis,” Bretech Engineering Ltd, vol. 70, 2009. 2011, September 2011.
[7] C. Kruger, A. Abu-Mahfouz and G.P. Hancke. “Rapid Prototyping Of A
Wireless Sensor Network Gateway For The Internet Of Things Using



You might also like