<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>CNN Based Predictive Maintanance of Generalized Rotational Equipment</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Оleg Rudenko</string-name>
          <email>oleh.rudenko@nure.ua</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleksandr Bezsonov</string-name>
          <email>oleksandr.bezsonov@nure.ua</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrzej Szajna</string-name>
          <email>a.szajna@dtpoland.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stanislav Piskunov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ivan Kozhedub National Air Force University</institution>
          ,
          <addr-line>Sumska str., 77-79, Kharkіv, 61023</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Kharkiv National University of Radioelectronics</institution>
          ,
          <addr-line>Nauky ave., 14, Kharkіv, 61166</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Uniwersytet Zielonogórski</institution>
          ,
          <addr-line>Zielona Gora,Licealna str., 9, 65417</addr-line>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Predictive maintenance (PdM) is a technique that uses performance indicators of some unit to detect anomalies in its behavior. In data measured by sensors it is possible to find unusual patterns, such as growing engine vibration or high power consumption. Usually, malfunctions are preceded by some unusual behavior of the machine. The huge amount of the existing sensors is generating a huge volume of data. Machine learning algorithms can gather and analyze patterns from the data and create models to estimate the necessary machine health metrics. This paper examines the structure of the convolutional neural network (CNN) and its training methods for solving the problem of aggregate maintenance prediction in combination with the method of converting one-dimensional data into images. The data transformation step is very important for further use of CNN. A generalized model of rotating equipment was used to evaluate the proposed approach. The data was preprocessed, transformed into an image, and fed to a customized classifier. The simulation results showed that the combination of CNN with the data dimensionality enhancement method outperformed traditional machine learning methods (random forest, support vector machine), and forecasting methods based on MLP, LSTM and 1-d CNN neural-networks.</p>
      </abstract>
      <kwd-group>
        <kwd>1 Predictive Maintenance</kwd>
        <kwd>Deep Learning</kwd>
        <kwd>Convolutional Neural Networks</kwd>
        <kwd>Gramian angular field</kwd>
        <kwd>Signal Encoding</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Predictive maintenance is a powerful tool that enables companies to predict and prevent equipment
failure, minimizing downtime, and increasing productivity. With the advent of deep learning
techniques, predictive maintenance has become more accurate and efficient, leading to better
equipment performance and reduced costs. Predicting the behavior of complex machines is an
important scientific and technical problem that allows predicting the behavior of production processes
and significantly reducing risks in environmental, economic, social and other systems. The relevance
of the task of predicting possible malfunctions of complex systems is especially growing recently.
This is due to the availability of powerful computing tools for collecting and processing information
[
        <xref ref-type="bibr" rid="ref1 ref2 ref3 ref4 ref5">1–5</xref>
        ].
      </p>
      <p>The development of prognostics as a science in recent decades has led to the creation of many
models and methods, procedures, techniques of forecasting, unequaled in their importance. According
to estimates of foreign and domestic experts in prognostication, there are already more than a hundred
methods of forecasting, in connection with which the task of choosing methods that would provide
adequate forecasts for the investigated processes or systems arises.</p>
      <p>Until recently, the statistical approach was the main one in solving the forecasting problem. Within
the framework of statistical models, the tasks of forecasting, finding hidden periodicities in data,
analyzing dependencies, assessing risks in decision-making, and others are solved. A general
disadvantage of statistical models is the difficulty of choosing the type of model and selecting its
parameters.</p>
      <p>It should be noted that strict statistical assumptions regarding the properties of time series, which
describe signals from machine sensors, significantly limit the possibilities of classical forecasting
methods. In addition, when using a statistical approach, one of the main requirements for time series
is its stationarity, which consists in the fact that the distribution of its values is invariant with respect
to the moment in time for which it was constructed. It also significantly limits the capabilities of
classical forecasting methods.</p>
      <p>
        An alternative to statistical methods can be the methods of computational intelligence, among
which artificial neural networks (ANNs) should be included in the first place [
        <xref ref-type="bibr" rid="ref1 ref2">1-2</xref>
        ]. Being universal
approximators, some types of ANNs allow to restore with a given accuracy any arbitrarily complex
continuous nonlinear function, using the representation of the approximated function in the form of a
neural network formed by neurons, the parameters of which are determined by its training. The ability
of a neural network for versatile processing of information stems from its ability to generalize and
highlight hidden dependencies between input and output data. A significant advantage of ANNs is
that they are capable of learning and generalizing accumulated knowledge. The use of these methods
to solve forecasting tasks is due to the presence of complex regularities, a priori and current
uncertainty, non-stationarity, emissions, etc. [
        <xref ref-type="bibr" rid="ref6 ref7 ref8">6–8</xref>
        ].
      </p>
      <p>
        Intelligent forecasting methods built in this way, like classical ones, require the creation of a
mathematical model, the quality of which determines the accuracy of forecasting. It should be noted
that the same criteria are used for building the model (choosing its structure and estimating
parameters) that characterize the accuracy of forecasting [
        <xref ref-type="bibr" rid="ref10 ref9">9-10</xref>
        ].
      </p>
      <p>
        When studying time series, it is almost impossible to get an absolutely accurate forecast, for this
reason, it is considered an important task to evaluate various forecasting models from the point of
view of certain quality criteria. At the same time, the reliability of the selected forecasting model is
assessed by periodic comparison of the actual and forecasted values of the series. When solving
practical problems, the analysis of prediction error or prediction accuracy is considered more
significant [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>
        In this article, we will explore how encoding signals by Gramian Angular Fields and further
recognition by Convolutional Neural Networks (CNNs) can enhance predictive maintenance.
Gramian Angular Fields (GAF) is a powerful tool for encoding time-series data into image-like
representations, allowing it to be processed by convolutional neural networks [
        <xref ref-type="bibr" rid="ref12 ref13 ref14 ref15 ref16">12-16</xref>
        ]. GAF is a
matrix that represents the phase relationships between the values of the time series. It can be thought
of as a signal's "footprint in the phase space," and it contains information about the signal's frequency
and amplitude characteristics. GAF has several advantages over traditional time-series data processing
techniques. For example, GAF is able to preserve the structure of the time series, allowing it to
capture complex patterns and trends. Additionally, GAF is computationally efficient, making it
suitable for large datasets.
      </p>
      <p>The aim of this work is to develop a structure for predictive maintenance of equipment using a
combination of the GAF method used to transform a signal into an image and a convolutional neural
network CNN. The use of CNN is a significant advantage over traditional machine learning methods,
as it allows the use of fairly well-researched and proven neural network models. Since the health of
the system is constantly analyzed in this approach, a deviation from the standard behavior
immediately indicates that the machine needs to be called for unscheduled maintenance. The paper
shows that the proposed approach makes it possible to detect anomalous data sequences and give
more accurate recommendations on the need to perform system maintenance. Modern production
systems contain a significant set of sensors that collect a huge amount of data from which the
combination of GAF and CNN methods can extract hidden patterns and get better results compared to
traditional statistical forecasting methods. A small amount of work in this area is due to the fact that
previously similar methods machine learning has not been used with 1D data from analog sensors.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Works</title>
      <p>Predictive maintenance is a crucial aspect of modern industry that aims to reduce downtime,
optimize maintenance schedules, and enhance overall productivity. Recent advancements in deep
learning have led to the development of several innovative PdM techniques based on machine
learning algorithms, such as CNNs. In this section, we review some of the related works in the field of
PdM using CNNs and highlight the contributions of this research in the context of encoding
timeseries data into images.</p>
      <p>In recent years, CNNs have emerged as a powerful tool for PdM due to their ability to learn
complex features from raw data. Several studies have investigated the use of CNNs for fault detection
in industrial systems. For example, Xiang et al. [17] proposed a deep learning approach based on
CNNs for the early detection of gear faults in wind turbines. Similarly, Guo et al. [18] presented a
CNN-based method for detecting bearing faults in rotating machinery.</p>
      <p>
        One of the key challenges in PdM is the representation of time-series data, which is typically
highdimensional and complex. To overcome this challenge, several studies have explored the use of
image-based approaches to represent time-series data. One such approach is the GAF and it has been
used for encoding time-series data in several domains, such as finance [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] and health [19].
      </p>
      <p>In the context of PdM, Choudhary et al. [20] proposed a CNN model for the fault diagnosis of
rolling element bearings. They showed that their approach achieved better results than traditional
feature-based methods. Lee et al. used GAF-based CNNs for the rolling element fault diagnosis under
various operating and noisy conditions [21]. They demonstrated that their method outperformed other
state-of-the-art approaches.</p>
      <p>In summary, the proposed method in this article builds on the mentioned works by exploring the
use of GAF-based CNNs for predictive maintenance in industrial systems. The contribution of this
research lies in the evaluation of the proposed method on a dataset generated with using of the
rotating machine emulator and the comparison with other state-of-the-art techniques.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Proposed Method</title>
      <p>To apply GAF to predictive maintenance, we start by collecting data from sensors on the
equipment. This data can include vibration, temperature, pressure, and other relevant signals. We then
use GAF to encode this data into image-like representations, which can be further processed by
CNNs.</p>
      <p>CNNs are a powerful class of deep learning models that are capable of learning complex patterns
and structures in images. In predictive maintenance, CNNs can be trained to recognize specific
patterns in the GAF-encoded time series data, such as changes in vibration amplitude or frequency.
By detecting these patterns, CNNs can predict when equipment failure is likely to occur, enabling
maintenance personnel to take action before the failure occurs.</p>
      <p>To train the CNN, we start by splitting the data into training and validation sets. We then use the
training data to train the CNN to recognize patterns in the GAF-encoded time series data. Once the
CNN is trained, we use the validation data to evaluate its performance and make any necessary
adjustments.</p>
      <p>Once the CNN is trained and validated, it can be used to predict when equipment failure is likely
to occur. This can be done by feeding new GAF-encoded time series data into the CNN and using its
output to make a prediction about the equipment's health. If the CNN predicts that equipment failure
is likely, maintenance personnel can take action to prevent the failure from occurring. Overall method
description is presented at Fig.1.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Сonversion of one-dimensional signals into images</title>
      <p>
        The Gramian Angular Field (GAF) visualization is an effective encoding method of
onedimensional signals from sensors in the form of images. This method has been proposed Wang and
Oates in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ].This method has become very popular due to the fact that it allows the use of
wellestablished convolutional neural networks for signal processing, which turn out to be much more
effective than traditional methods for processing one-dimensional signals.
      </p>
      <p>
        Converting 1D signals to images is one option for data dimensionality enhancement as it
transitions from 1D data to 2D or even 3D. Dimensionalization is an important step when using CNN
models. In [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], an approach called Gramian Angular Field (GAF) is presented for encoding time
series into images to improve classification. The GAF method uses a matrix based on polar
coordinates to encode time series into an image, since they have the ability to store information about
temporal correlation, unlike Cartesian coordinates [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. The algorithm for converting signals to GAF
images contains the following steps:
      </p>
      <p>
        1) Initial time series is normalized and reduced to values in the interval [
        <xref ref-type="bibr" rid="ref1">−1, 1</xref>
        ]
expression
xi 
 xi  max( X )   xi  min( X )
max( X )   xi  min( X )
,
where 1  xi  1 the normalized value of each original signal value xi .
      </p>
      <p>2) The second step in building time series using the GAF method is to present normalized time
series X in polar coordinates, which are calculated by finding the angular cosine of each normalized
value and the timestamp, represented as a radius, using the expressions:
  arccos(xi )
r  ti ,</p>
      <p>M
where θ – the value of the time series in the format of polar coordinates; ti - timestamp of time series
data; M is some constant used to stabilize the space of the polar coordinate system.</p>
      <p>3) After obtaining the polar coordinates for each value of the time series, the trigonometric sum is
calculated to find the spatial correlation between the polar points as follows:</p>
      <p>GAF  cos(i  j ).</p>
      <p>
        GAF has the following several advantages:
 according to[
        <xref ref-type="bibr" rid="ref14 ref15 ref16">14-16</xref>
        ], temporal correlation is represented by a superposition of time intervals;
 in the GAF matrix, the main diagonal contains the original value and angle information;
(1)
(2)
(3)
using
the
 the GAF method preserves the temporal correlation of the time series input data, which is
necessary to build an efficient forecasting system.
      </p>
      <p>In this regard, GAF provides high-quality images for CNN, which allows to reveal complex
relationships between various states of a rotating machine.</p>
      <p>Fig.2. shows a graphical representation of the conversion of time series to GAF images</p>
    </sec>
    <sec id="sec-5">
      <title>5. Convolutional Neural Network (CNN)</title>
      <p>The Convolution Neural Network (CNN) was first proposed in [22, 23] as a development of the
neocognitron model designed for efficient image recognition. Subsequently, based on the CNN,
RCNN networks (Regions With CNNs) were built to apply CNN to the object detection problem.
RCNN creates a bounding box for each object in an image, or a suggestion of regions, using a selective
search process. Fast R-CNN, which has increased the performance of R-CNN, performs the
classification of the objects of each region along with tighter bounding boxes. The next Faster R-CNN
network improved the mechanism for generating candidate regions used in it by calculating regions
not from the original image, but from the feature map obtained from the CNN. To do this, a module
called the Region Proposal Network (RPN) was added. Finally, the Mask R-CNN network develops
the Faster R-CNN architecture by adding another branch that predicts the position of the mask
covering the found object, and thus solves the instance segmentation problem. When receiving an
image, the network issues objects (bbox), bounding boxes, classes (class) and masks (mask).</p>
      <p>It should be noted that Mask R-CNN is the fastest network at the moment.
5.1.</p>
    </sec>
    <sec id="sec-6">
      <title>Structure of a Convolutional Neural Network</title>
      <p>Initially, the structure of a convolutional neural network was created taking into account the
structural features of some parts of the human brain responsible for vision. The development of such
networks is based on three mechanisms:
 local perception;
 formation of layers in the form of a set of feature maps (shared weights);
 subsampling.</p>
      <p>By local perception it is meant that not the entire image, but only some part of it, comes to the
input of the neuron. This allows to save the configuration of the image when moving from layer to
layer.</p>
      <p>The idea of shared weights implies that a small set of weights is applied to a large number of links,
i.e. each area of the image into which it is divided will be treated by the same set of weights. With
such an artificially created weight restriction, the generalization property of the network improves.</p>
      <p>The CNN consists of layers of convolution, subsampling and layers of a fully connected neural
network.
5.2.</p>
    </sec>
    <sec id="sec-7">
      <title>Convolutional Neural Network Layers</title>
      <p>CNNs get their name from the "convolution" operator. The main purpose of convolution in case of
CNN is to extract elements from the input image. Convolution preserves the spatial relationships
between pixels by learning the features of an image using small squares of the input.</p>
      <p>Each neuron in the convolutional layer plane receives its inputs from some area of the previous
layer (local receptive field), that is, the input image of the previous layer is scanned with a small
window and passed through a set of weights, and the result is mapped to the corresponding neuron in
the convolutional layer.</p>
      <p>The subsampling layer scales down the planes by locally averaging the neuron output values.
Thus, a hierarchical organization is achieved. Subsequent layers extract more general characteristics
that are less dependent on image distortion.</p>
      <p>Each convolutional layer is followed by a subsampling layer, or computational layer, which
performs image dimensionality reduction by locally averaging the neuron output values (Fig. 3). In
the architecture of a convolutional network, it is generally accepted that the presence of a feature is
more important than information about its location. Therefore, from several neighboring neurons in
the feature map, the maximum is selected and its value is considered to be one neuron in the feature
map of a lower dimension. The difference between the subsampling layer and the convolution layer is
that in the latter, the regions of neighboring neurons overlap, which does not happen in the
subsampling layer.</p>
      <p>Thus, the CNN is built by alternating layers of convolution and subsampling. At the output of the
network, several layers of a fully connected neural network are usually installed, at the input of which
finite feature maps are fed. Each neuron of this layer is a perceptron that has a non-linear activation
function.
5.3.</p>
    </sec>
    <sec id="sec-8">
      <title>Convolutional Neural Network Parameter Tuning Methods</title>
      <p>To train convolutional neural networks, both the standard backpropagation method and its various
methods can be used modifications. Let's consider one of them.</p>
      <p>Consider training a multilayer perceptron (MP) with M inputs and L outputs, S layers, the number
of neurons in the output layer P, hidden - N, all neurons of which have an activation function of the
form
f (x) </p>
      <p>1
1 e x
layer Px1;
PxL;
output layer Px1;
layer ( i  1,..., S 1. ) NxP;</p>
      <p>Let us introduce the following notation:
W *s (k)  W1*s (k),W2*s (k),...,Wp*s (k)T – matrix of optimal weights of the output layer PxL;
wi*s (k)  wi*1s (k), wi*2s (k),..., wi*Ls (k)T – is the vector of optimal weights of the i-th neuron of the output
W s (k)  W1s (k),W2s (k),...,Wps (k)T – matrix of estimates of the weights of the output layer of the MP
wis (k)  wis1(k), wis2 (k),..., wisP (k)T – is the vector of estimates of the weights of the i-th neuron of the
W *i (k)  W1*i (k),W2*i (k),...,Wp*i (k)T – is the matrix of optimal weights of neurons of the i-th hidden
wi*i (k)  wi*1i (k), wi*2i (k),..., wi*Ni (k)T – vector of optimal weights of neurons of the i-th hidden layer
Nx1;</p>
      <p>F s (x, ws )  ( f1s (w1Ts (k)x(k)) f2s (w2Ts (k)x(k)) ... fLs (wLTs (k)x(k)))T – is the vector of activation
functions of neurons in the output layer Lx1;</p>
      <p>f (x, w)  diag[f (w1T (k), x(k)) f (w2T (k), x(k)) ...f (wLT (k), x(k))] – is the matrix of derivatives of the
activation functions of the LxL layer;
f (wiT (k), x(k)) – is the first derivative of the activation function of the i-th neuron.</p>
      <p>Then the output signals and the approximation error can be represented as follows:
- required vector of output signals</p>
      <p>y* (k)  W *s (k)F s (x, w*s (k)) 1(k), (4)
- real vector of output signals</p>
      <p>y(k)  W s (k)F  x, ws (k) 2 (k);
- error
e(k)  y (k)  y(k)  (k)  T (k)F  x, w(k) W *s (k)(k)F  x, w(k ) 1(k ) 2 (k );
i  1,..., S 1.</p>
      <p>Where  (k)  W *s (k) W s (k) is the learning error matrix PxL;
F(k)  F  x, w*s (k)  F  x, ws (k) is the error vector of activation functions;</p>
      <p>i  1,..., S 1,
those is a matrix version of the Kaczmarz (Widrow-Hoff) procedure.</p>
      <p>Here W s (k) And Wi (k) , i  1,..., S 1– learning coefficients.</p>
      <p>To increase the computational stability of (7), (8), they can be modified by introducing
regularization parameters into them, i.e.</p>
      <p>where W s (k) , Wi (k), i  1, ..., S 1 are the regularization parameters.</p>
      <p>However, it should be noted that if the statistical properties of the noise 1 (k) And 2 (k) are not
known, but it is known that they are limited in amplitude, then procedures (7)-(10) should be modified
by using dead zones in them, as was done for the case of linear Adalina, for example, as follows:
1 (k) , 2 (k) are the error vector of the output signal and the neural network approximation,
respectively.</p>
      <p>With these notations in mind, the gradient procedures for learning the weight matrices of the
output and i-th hidden layer of the MP, linearizing the quadratic functional and representing the error
backpropagation procedure, can be written as follows:
W s (k)  W s (k 1)  W s (k)</p>
      <p>1 E(k)
F  x, ws (k 1) 2 W s (k 1)
 W s (k 1)  W s (k)</p>
      <p>F  x, ws (k 1) eT (k)</p>
      <p>2 ;
F  x, ws (k 1)
(5)
(6)
(7)
(8)
(9)
(10)
W i (k)  W i (k 1)  Wi (k)
 W i (k 1)  Wi (k)</p>
      <p>1 E(k)
f  x(k ),W i (k 1) x(k) 2 W i (k 1)</p>
      <p>
f  x(k), wi (k 1) eT (k)xT (k)</p>
      <p>2 ,
f  x(k),W i (k 1) x(k)</p>
      <p>W s (k)  W s (k 1)  W s (k)
W i (k)  W i (k 1)  Wi (k)</p>
      <p>F  x, ws (k 1) eT (k)
f  x(k), wi (k 1) e(k)xT (k)
Wi (k)  f  x,W i (k 1) x(k)
2 , i  S,
where
where</p>
      <p>g e(k), W s (k), if e(k)  W s (k); (12)
W s (k)  </p>
      <p> 0, if e(k)  W s (k).</p>
      <p>Since when calculating the estimates of the matrix W the derivative of the activation function is
used, then the dead zone parameter must contain the coefficient  , defining the slope of the sigmoid
(13)
W i (k)  W i (k 1)  Wi (k),Wi (k)f  x(k),W s (k 1) e(k)xT (2k) ,</p>
      <p>Wi (k)  f  x,W s (k 1) x(k)
W s (k)  W s (k 1)  W s (k)W s (k)F  x, ws (k 1) eT (k2) ,
where fmin  min f1 (k), f2 (k),..., fL (k)  0.</p>
      <p>Setting the dead zones for procedures (11) and (13) can be done as follows:</p>
      <p>g e(k), Wi (k), if fmin e(k)  Wi (k);
Wi (k)   </p>
      <p> 0, if fmin e(k)  Wi (k),
W s (k)  W s (k 1) 
Wi (k)  Wi (k 1) </p>
      <p>W s (k) e(k 1)
W s (k 1)  F  x,W s (k 1)</p>
      <p>Wi (k) e(k 1)
Wi (k 1)  f  x,W i (k 1) x(k)
2 ;
2 , i  S.</p>
    </sec>
    <sec id="sec-9">
      <title>6. Experiments.</title>
      <p>All experiments were performed with using rotating machine emulator [24] for generating needed
data. The practical application of maintenance solutions for complex systems is associated with the
presence of a complex infrastructure for remote monitoring of the state of a given system. The quality
of forecasting directly depends on the availability of significant amounts of telemetry and service
records to failure, on the basis of which it is possible to build models of system degradation. In this
case, failure prediction can be made both on the basis of historical and newly collected data.</p>
      <p>Obtaining real data sets for solving the problem of building a system degradation model is a very
difficult task. This is due to the reluctance of commercial organizations to post telemetry data from
their facilities for public use. It should be noted that there are some synthetic datasets, but none of
them fully correspond to the approach in which irregular real-time data streams from sensors are used
for condition prediction or anomaly detection [25].</p>
      <p>In this paper, we use the data generation method presented in [24]. It is a model of a production
environment with versatile rotating equipment (pumps, turbines, compressors and various motors).
This model can be used to generate arbitrarily large synthetic data for training a neural network
model.</p>
      <p>The generated data set is a combination of system maintenance records and telemetry. In this case,
the data read from the sensor, together with the parameters describing the current state of the machine,
are transferred from the emulated system to some cloud service that predicts the state of this system.</p>
      <p>The messages sent to the cloud service also contain information about system failures, indicating
the exact times and types of failures. The purpose of preventive maintenance is to prevent such events
by giving preventive alarms to maintenance personnel so that appropriate preventive actions can be
Equation (17) can be rewritten as</p>
      <p>w  AeB(t) .
h(t)  1 h0  et ,
(17)
taken. Each such message contains fields with timestamps, information related to danger level, event
code and machine ID.</p>
      <p>The rotating machine emulator used in this paper generates a telemetry stream that include
vibration level, temperature, pressure, and other relevant signals like timestamp and machine ID.</p>
      <p>It should be noted that for more efficient modeling of a real system, it is necessary to take into
account the change in the parameters of a real system over time. To do this, the model uses the
generalized equation of equipment wear at the macro level over time
where h0 – initial wear; and  are the coefficients that determine the rate of degradation of the
system.</p>
      <p>In the investigated emulator of rotating machines are also simulated weather conditions, location
and some characteristics of the operator. Operating conditions undoubtedly affect the performance
and life of the equipment, so they must be taken into account in predictive maintenance.</p>
      <p>In most cases, the approaching breakdown of rotating equipment is manifested in a gradual
decrease in useful work and a change in the level of side characteristics. If the simulated machine has
pressure as a "useful signal", then a machine running at the same speed will generate less and less
pressure and yet generate more heat and/or vibration.</p>
      <p>The general idea behind preventive maintenance is that different types of impending breakdowns
show up differently over time, and that such patterns can be explored with enough data collected.</p>
      <p>Various failure modes due to unknown physical damage are modeled by overlaying independent
time-varying health characteristics hi (t) with some randomly chosen failure occurrence parameters ( i
and i ). The work of each N simulated devices starts with random non-zero initial wear h0 to account
for changes due to age, manufacturing defects and other unknown factors.</p>
      <p>Each device is modeled on a random sequence of time-varying operating parameters, generating
telemetry signals containing all observed performance and measurements that are affected by the
current values of health indicators. If any of the health indicators falls below the threshold (a value
dependent on the failure mode), a corresponding entry is added to the unit's maintenance log.
NonGaussian noise is added to all generated telemetry data to simulate random processes that affect a real
system.</p>
      <p>At any given time, the rotary machine has a certain desired speed, measured in revolutions per
minute (RPM). This speed can vary (i.e. the engine can start, stop, gradually accelerate or decelerate)
or be relatively constant. Smooth changes of states in time are modeled using cubic or linear
interpolation.</p>
      <p>Instantaneous temperature and pressure can be modeled using some function F(t)</p>
      <p>F(t)  f (, F(t 1), h(t), a(t)) ,
where – current settings, h (t) – current wear indicator; a (t) – environmental conditions.</p>
      <p>The analysis of vibration and acoustic signals is a necessary tool for monitoring the condition of
rotating equipment. Vibration monitoring uses non-invasively installed sensors that collect a
onedimensional analog signal representing vibration at a specific location and periodically transmit it to a
cloud service for predictive maintenance. In this case, the frequencies of the harmonic components of
the vibration signal are modeled as multiples of the main frequency of the machine speed. A
continuous vibration or audio signal can be modeled using spectral simulation synthesis.</p>
      <p>An example of generated data is given at Fig. 4. At this picture there are 3 channels of data:
temperature, pressure and rotation speed. As it is seen from the picture length of timeframe between
critical failures varies according to (17).</p>
      <p>The difference in encoding different system states with GAF method considering temperature data
channel is presented at Fig .5.</p>
      <p>For the purpose of testing the considered method about 10k of rotating machine cycles were
emulated. For encoding data from emulated sensors into GAF images a “sliding
method was used. The size of each window was 5 minutes and delta was 1 minute. It means that each
minute of the simulated time last 5 minutes of data in each data channel was encoded into 64x64x3
images. Resulting images were collected into 3 dataset: training (about 30k images), validation (about
10k images) and testing (5k images). For each data channel a separate CNN model was trained (Fig.
1). The overall system health can be estimated as an average of each model prediction. Experiments
show that in 93% cases the considered method was able to predict properly approaching system
failure within 30 min time period.</p>
      <p>Accuracy of the proposed method was compared with other time-series predictive solutions based
on machine-learning methods like random forest, support vector machine, and neural-network
methods based on a multilayer perceptron (MLP), long short-term memory (LSTM) and 1-d CNN
neural networks. Results of the comparison are presented at Table 1.
window”</p>
      <p>Neural Network Type</p>
    </sec>
    <sec id="sec-10">
      <title>7. Conclusions</title>
      <p>In conclusion, encoding signals by Gramian Angular Fields and further recognition by
Convolutional Neural Networks is a powerful technique for enhancing predictive maintenance. By
using GAF to encode time-series data into image-like representations and processing it with CNNs,
we can detect complex patterns and structures in the data, enabling us to predict equipment failure
with greater accuracy and efficiency. As a result, predictive maintenance can help companies reduce
costs, increase productivity, and improve equipment performance, leading to better business
outcomes. Simulation results on rotating machine emulator showed that in 93% cases proposed
method generates correct predictions of the incoming in 30 min system failure. In real life it means
significant saving of resources and decreasing of overall system downtime.</p>
    </sec>
    <sec id="sec-11">
      <title>8. References</title>
      <p>Environment, in IEEE Access, volume 8, 2020, pp. 121033-121049, doi:
10.1109/ACCESS.2020.3006788.
[17] L. Xiang, P. Wang, X. Yang, A. Hu, H. Su, Fault detection of wind turbine based on SCADA
data analysis using CNN and LSTM with attention mechanism, Measurement, volume 175, 2021,
109094, doi: 10.1016/j.measurement.2021.109094.
[18] Z. Guo, M. Yang, X. Huang, Bearing fault diagnosis based on speed signal and CNN model,</p>
      <p>Energy Reports, volume 8, Supplement 13, 2022, pp. 904-913, doi: 10.1016/j.egyr.2022.08.041.
[19] H. Xu, J. Li, H. Yuan, Q. Liu, et al., Human Activity Recognition Based on Gramian Angular
Field and Deep Convolutional Neural Network, IEEE Access, 8, 199393-199405, doi:
10.1109/ACCESS.2020.3032699.
[20] A. Choudhary, T. Mian, S. Fatima, Convolutional neural network based bearing fault diagnosis
of rotating machine using thermal images, Measurement, volume 176, 2021, 109196, doi:
10.1016/j.measurement.2021.109196.
[21] C.Y. Lee, G.L. Zhuo, T.A. Le, A Robust Deep Neural Network for Rolling Element Fault
Diagnosis under Various Operating and Noisy Conditions, Sensors (Basel), volume 22(13):4705,
2022, Jun 22;. doi: 10.3390/s22134705.
[22] Y. LeCun, A theoretical framework for backpropagation, Proc. of IEEE, 1998, pp.21-28.
[23] Y. LeCun, L. Bottou, Y. Bengio, P. Haffner, Gradient Based Learning Applied to Document</p>
      <p>Recognition, Proc. of IEEE, volume 86, 11, 1998, pp. 2278-2324.
[24] https://github.com/Azure/AI-PredictiveMaintenance
[25]
https://github.com/Microsoft/SQL-Server-R-Services</p>
      <p>Samples/tree/master/PredictiveMaintanenceModelingGuide</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Bowerman</surname>
          </string-name>
          ,
          <string-name>
            <surname>R. O'Connell</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Koehler</surname>
          </string-name>
          ,.
          <article-title>Forecasting: methods and applications</article-title>
          . 4th ed. Belmont, CA.: Thomson Brooks,
          <year>2005</year>
          , 384 p.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J. D.</given-names>
            <surname>Kelleher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>McNamee</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. D'Arcy</surname>
          </string-name>
          ,
          <article-title>Fundamentals of Machine Learning for Predictive Data Analytics, second edition: Algorithms, Worked Examples, and Case Studies (2nd ed</article-title>
          .), The MIT Press,
          <year>2020</year>
          , 856 p.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R. J.</given-names>
            <surname>Hyndman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. B.</given-names>
            <surname>Koehler</surname>
          </string-name>
          ,
          <article-title>Another look at measures of forecast accuracy</article-title>
          ,
          <source>Int. J. of Forecasting</source>
          ,
          <volume>22</volume>
          (
          <issue>4</issue>
          ),
          <year>2006</year>
          , pp.
          <fpage>679</fpage>
          -
          <lpage>688</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.G.D.</given-names>
            <surname>Gooijer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.J.</given-names>
            <surname>Hyndman</surname>
          </string-name>
          , 25 Years of Time Series Forecasting,
          <source>Int. Journal of Forecasting</source>
          ,
          <volume>22</volume>
          (
          <issue>4</issue>
          ),
          <year>2006</year>
          , pp.
          <fpage>679</fpage>
          -
          <lpage>688</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>H.</given-names>
            <surname>Allende</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Moraga</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Salas</surname>
          </string-name>
          ,
          <article-title>Artificial neural networks in time series forecasting: a comparative analysis</article-title>
          ,
          <source>Kybernetika</source>
          ,
          <volume>6</volume>
          ,
          <year>2002</year>
          , pp.
          <fpage>685</fpage>
          -
          <lpage>707</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>L.J.</given-names>
            <surname>Cao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.E.H.</given-names>
            <surname>Tay</surname>
          </string-name>
          ,
          <string-name>
            <surname>Support</surname>
          </string-name>
          <article-title>Vector Machine with Adaptive Parameters in Financial Time Series Forecasting</article-title>
          ,
          <source>IEEE Transaction on Neural Networks</source>
          ,
          <volume>14</volume>
          (
          <issue>6</issue>
          ),
          <year>2003</year>
          , pp.
          <fpage>1506</fpage>
          -
          <lpage>1518</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>F.E.H.</given-names>
            <surname>Tay</surname>
          </string-name>
          , L. Cao,
          <article-title>Application of support vector machines in financial time series forecasting</article-title>
          , Omega,
          <volume>29</volume>
          ,
          <year>2001</year>
          , pp.
          <fpage>309</fpage>
          -
          <lpage>317</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>P.</given-names>
            <surname>Goodwin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Lawton</surname>
          </string-name>
          ,
          <article-title>On the asymmetry of the symmetric MAPE, Int</article-title>
          .
          <source>J. of Forecasting</source>
          ,
          <volume>15</volume>
          ,
          <year>1999</year>
          , pp.
          <fpage>405</fpage>
          -
          <lpage>408</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>O.G.</given-names>
            <surname>Rudenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.V.</given-names>
            <surname>Bodyanskyi</surname>
          </string-name>
          ,
          <source>Artificial neural networks: Teaching</source>
          . book, Kharkiv: SMIT Company LLC,
          <year>2006</year>
          . - 404 p.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>E.V.</given-names>
            <surname>Bodyansky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.G.</given-names>
            <surname>Rudenko</surname>
          </string-name>
          ,
          <article-title>Artificial neural networks: architectures, training, applications</article-title>
          , Kharkiv: TELETECH,
          <year>2004</year>
          , 369 p.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>A.B. Koehler</surname>
          </string-name>
          ,
          <article-title>The asymmetry of the sAPE measure and other comments on the M3-competition</article-title>
          ,
          <source>Int. J. of Forecasting</source>
          ,
          <volume>17</volume>
          , (
          <year>2001</year>
          ), pp.
          <fpage>570</fpage>
          -
          <lpage>574</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Oates</surname>
          </string-name>
          ,
          <article-title>Encoding time series as images for visual inspection and classification using tiled convolutional neural networks</article-title>
          ,
          <source>In: Work Workshops at the Twenty-Ninth AAAI Conference on Artificial Intelligence</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>E.</given-names>
            <surname>Guresen</surname>
          </string-name>
          , G. Kayakutlu, T.U. Daim,
          <article-title>Using artificial neural network models in stock market index prediction</article-title>
          ,
          <source>Expert Systems with Applications</source>
          ,
          <volume>38</volume>
          (
          <issue>8</issue>
          ),
          <year>2011</year>
          , pp.
          <fpage>10389</fpage>
          -
          <lpage>10397</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>S.</given-names>
            <surname>Barra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Carta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Corriga</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. S.</given-names>
            <surname>Podda</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D. R.</given-names>
            <surname>Recupero</surname>
          </string-name>
          ,
          <article-title>"Deep learning and time series-to-image encoding for financial forecasting,"</article-title>
          <source>in IEEE/CAA Journal of Automatica Sinica</source>
          , volume
          <volume>7</volume>
          , 3, May
          <year>2020</year>
          , pp.
          <fpage>683</fpage>
          -
          <lpage>692</lpage>
          , doi: 10.1109/JAS.
          <year>2020</year>
          .
          <volume>1003132</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>G.</given-names>
            <surname>Mart</surname>
          </string-name>
          <article-title>´ınez-</article-title>
          <string-name>
            <surname>Arellano</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Terrazas</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Ratchev</surname>
          </string-name>
          ,
          <article-title>Tool wear classification using time series imaging and deep learning</article-title>
          ,
          <source>The International Journal of Advanced Manufacturing Technology</source>
          ,
          <volume>104</volume>
          , (
          <year>2019</year>
          ), pp.
          <fpage>3647</fpage>
          -
          <lpage>3662</lpage>
          , doi: 10.1007/s00170-019-04090-6
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>K. S.</given-names>
            <surname>Kiangala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>An Effective Predictive Maintenance Framework for Conveyor Motors Using Dual Time-Series Imaging and Convolutional Neural Network in an Industry 4</article-title>
          .
          <fpage>0</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>