Next Article in Journal
Prototype Results of an Internet of Things System Using Wearables and Artificial Intelligence for the Detection of Frailty in Elderly People
Next Article in Special Issue
Design Method for Automatic Assembly Production Line of Electric Valves in Space Propulsion Systems
Previous Article in Journal
A New Model for Emotion-Driven Behavior Extraction from Text
Previous Article in Special Issue
Research on Multi-Sensor Simultaneous Localization and Mapping Technology for Complex Environment of Construction Machinery
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Method Based on an Autoencoder for Anomaly Detection in DC Motor Body Temperature

by
Emine Hümeyra Demircioğlu
* and
Ersen Yılmaz
Electrical-Electronic Engineering Department, Bursa Uludag University, 16059 Bursa, Turkey
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(15), 8701; https://doi.org/10.3390/app13158701
Submission received: 26 June 2023 / Revised: 24 July 2023 / Accepted: 25 July 2023 / Published: 27 July 2023
(This article belongs to the Special Issue AI Applications in the Industrial Technologies)

Abstract

:
Anomaly detection has an important role in industrial systems. Abnormal situations occurring in a system cause anomalies, and the anomalies reduce system performance over time, and may also make the system malfunction. Therefore, the correct and timely detection of anomalies is of critical importance for predictive maintenance. In this study, an autoencoder-based method is proposed for anomaly detection in DC motor body temperature. The performance of the method was examined on a dataset that was created specifically for this study. In the experiments, the three-sigma outlier method was also applied on the same dataset for the same purpose and its performance results are used for comparison. The performance results of both methods are represented in terms of three measures, namely, accuracy, recall, and precision. The experimental study showed that the proposed method achieved over 96% ratios for all three measures, and it can be successfully used for anomaly detection in DC motor body temperature. Additionally, it can be concluded that the proposed system can be preferred for anomaly detection in time series data collected from different types of sensors when the performance results are taken into consideration.

1. Introduction

Anomaly detection plays an important role in the predictive maintenance of industrial systems and thus it has attracted increasing attention in the literature recently, especially in the field of machine learning. Anomalies reduce system performance and after a certain time, they may cause system malfunctions. Timely and correct detection of anomalies is of crucial importance to avoid the risk of performance loss, malfunction, and damage.
Anomaly detection has been used in a wide variety of areas such as health technologies, finance and banking, military systems, and industrial systems [1]. Although anomalies arise for different reasons in different areas, the methods used for detecting them are similar, being generally based on machine learning techniques.
There are various studies from different areas in the literature that are based on machine learning techniques for anomaly detection, e.g., [2,3,4,5,6,7,8,9,10,11,12,13,14].
In [2], machine learning algorithms, namely neural networks, decision trees, random forests, and k-nearest neighbors are applied to the detection of anomalies for energy optimization in high rack storage systems. It is reported that random forest is superior to the other methods, with 98.50% accuracy and 96.20% recall ratios for an optimized dataset. In [3], a new adaptive method based on fuzzy clustering is proposed for the detection of data with anomalies in energy systems belonging to the steel industry. In the study, the performance of the proposed method is presented and compared with support vector machines (SVM)-based methods in terms of computing time and anomaly index. It is shown that the proposed method has better performance results compared to SVM-based methods. In [4], the detection of anomalous behaviors (cyberattacks) in industrial control systems is studied. In the study, a Boolean-function-based method, which is known as logical analysis data (LAD), is used in the anomaly detection system. It is reported that LAD achieves an 89.10% recall ratio for attack detection. In [5], the authors present a review article in which anomaly detection for building energy consumption is discussed in detail. It is shown that anomaly detection solutions in the area are still in the initial phase and need to be promoted. In [6], an autoencoder-based method is proposed for anomaly detection in industrial time series data in order to maintain energy efficiency. The proposed method attains 92.00% precision and 64.00% recall ratios on average. In [7], an anomaly detection system using reinforcement learning is developed for detecting abnormal temperatures of a drone motor. The aim of the system is to prevent the motor from running at abnormal temperatures and to provide automatic landing ability. Simulation results showed that the system can successfully control the drone. In [8], the Gaussian mixture model (GMM)-based unsupervised learning method is applied for the detection of motor bearing failure using normal condition data. GMM learns the normal condition of the motor bearing and anomaly detection is performed by using likelihood to check the difference from the normal condition. In [9], severity detection for pitting faults in worm gearboxes is presented. In the study, a decision tree model using the distinctive features extracted from vibration data is applied in order to get more reliable results. It is shown that the area of the Poincaré plot is the most dominant feature and it can be used for fault severity detection. In [10], a comparative study combining feature extraction methods with artificial neural networks (ANNs) is presented for the detection of impeller faults. Based on the results it can be concluded that the accuracy of ANNs is improved by using energy-based features and decomposed vibration signals. In [11], the anomaly detection of electricity theft cyberattacks for smart grids is studied and the performance of three autoencoder architectures is investigated. Simulation results show that an autoencoder with an attention detector provides an improvement in detection and false alarm rates. In [12], a stack autoencoder architecture is proposed for detecting the anomalies in the signals of rotary machine motors. The results show that the anomalies can be detected before machine failure. In [13], a long-short-term-memory-based autoencoder approach is developed to find anomalies in multivariate time series data, and the performance of the method is evaluated on datasets from three data sources. It is demonstrated that the approach can detect previously known and injected anomalies in the datasets. In [14], deep recurrent and convolutional neural networks with residual connections are used to monitor the important component temperatures in a permanent magnet synchronous motor. It is reported that the performances of both methods match the performance of classic thermodynamics-based approaches.
Some components of industrial systems are temperature sensitive, such as motors, and they are prone to failure under high-temperature conditions [14]. Correct and timely detection of anomalies in the temperatures of these components is critical for predictive maintenance.
In this study, we aim to analyze the performance of an autoencoder (AE) for anomaly detection problems arising from components of industrial systems. We focus on anomaly detection in DC motor body temperature as a real-life problem since it is one of the most used components in industrial systems.
The performance of the AE is examined on a dataset that was created specifically for the study. In the experiments, the three-sigma outlier method is also applied to the same dataset for the same purpose and its performance results are used for comparison. The performance results of both methods are represented in terms of accuracy, precision, and recall measures.
This paper is organized into seven sections. In Section 1, we define the problem and review the related works on anomaly detection. Section 2 introduces the anomaly dataset and the detection methods used in the study. A system overview for autoencoder-based anomaly detection is given in Section 3. The measures used for the performance evaluation are explained in Section 4. Section 5 presents the experiments and the results. In Section 6, we discuss the experimental results. Finally, Section 7 presents the conclusions.

2. Materials and Methods

2.1. Anomaly Dataset for DC Motor Body Temperature

The anomaly dataset was created by using DC motor experimental equipment, which was designed specifically for this study, shown in Figure 1. In the equipment, a 12 Volt 200 rpm DC motor was used.
The DC motor was operated for certain periods (22 min) and the data consisting of temperature, speed, and current values were monitored as in Figure 2 and simultaneously recorded on an SD card every second.
Due to the fact that temperature measurement is one of the most popular techniques for monitoring the condition of electrical motors [15,16], this study concentrates on the detection of anomalies in the body temperature of a DC motor.
The anomaly dataset for DC motor body temperature (Celsius, °C) includes two labeled time series data, normal and abnormal (faulty). The normal data were collected under the normal room conditions with a stable working regime while the faulty data were collected under external faults created randomly in the braking part of the experimental equipment in the same room conditions. Visualizations of a normal and an abnormal data sample are given in Figure 3.

2.2. Anomaly Detection Methods

2.2.1. Autoencoder

An autoencoder (AE) is a neural network including two sub-network parts, namely an encoder and a decoder. AEs belong to unsupervised learning and their training does not require a labeled dataset. The encoder part maps the input vectors by extracting the meaningful features into the compressed (hidden) representations, which are called codes, while the decoder part maps the codes back onto the original input space and generates reconstructed vectors. AE learning aims to minimize the reconstruction error between the input vectors and the reconstructed vectors [17,18,19,20]. The architecture of a typical AE is given in Figure 4.
The input vectors, codes, and reconstructed vectors are represented as x, h, and  x ^ , respectively, and the dataset has N input vectors.
The input vectors  x t R n x t = [ x 1 t , x 2 , t , x n t ] t = 1,2 , , N , are mapped onto the hidden vectors (codes)  h R m h = [ h 1 , h 2 , , h m ] , and  n > m .
The output of the  p t h  neuron of the hidden layer is computed by using Equation (1)
h p = a f ( j = 1 n w p j E x j t + b p E )
where  a f  is an activation function,  w p j E  represents the encoder weight coefficient between the  j t h  input layer neuron and the  p t h  hidden layer neuron, and  b p E  is a bias term for the  p t h  hidden layer neuron.
The hidden vectors are mapped onto the reconstructed vectors  x ^ t R n x ^ t = [ x ^ 1 t , x ^ 2 t , , x ^ n t ] , and their size is equal to the input space.
The output of the  i t h  neuron of the output layer is computed by using Equation (2)
x ^ i t = a f ( p = 1 m w i p D h p + b i D )
where  a f  is the activation function,  w i p D  represents the decoder weight coefficient between the  p t h  hidden layer neuron and the  i t h  output layer neuron, and  b i D  is a bias term for the  i t h  output layer neuron.
The reconstruction error between the input vectors and reconstructed vectors is computed by using Equation (3)
E r r o r = t = 1 N i = 1 n x i t x ^ i t 2

2.2.2. Three-Sigma Outlier (3-SgOut)

An anomaly is also known as an outlier. We use the 3-SgOut method to show whether it is sufficient to simply find outliers for detecting anomalies. The performance results of the method are used for comparison.
3-SgOut is a control-chart-related technique for anomaly detection [21]. It is based on the two basic statistical properties of data, the mean ( m ) and standard deviation ( s t d ). Data points that are outside of the three-sigma interval are called outliers, as in Equation (4) [21,22].
o u t l i e r s = d a t a _ p o i n t s   ( o u t   o f   [ m 3 s t d , m + 3 s t d ] )  

3. System Overview for Autoencoder-Based Anomaly Detection

The system overview for AE-based anomaly detection in this study is summarized in Figure 5. The AE is trained by normal data samples in the dataset. The size of the input/output vectors and the code length of the AE are determined by using a grid search algorithm. The performance of the anomaly detection system is evaluated by using all data samples in the dataset in terms of three performance measures.
A dataset including normal and abnormal samples is created for the anomaly detection problem. The normal samples from the dataset are used in the training process of the AE. In the training phase, the number of neurons in the AE layers is determined by using a grid search algorithm to minimize the reconstruction error. Once the AE-based model is obtained, the testing process of the anomaly detection system is started. In the testing phase, both normal and abnormal samples are used to evaluate performance.

4. Performance Evaluation

The performance of the applied anomaly detection methods is assessed in terms of accuracy, recall, and precision measures using Equations (5)–(7), which are computed from the confusion matrix given in Table 1 [23,24].
The purpose of the anomaly detection system is to detect samples with anomalies. Therefore, the positive label in the confusion matrix represents abnormal (faulty) samples while the negative label is for normal samples.
The definitions of TP, FP, FN, and TN in the confusion matrix are as follows:
TP shows the number of abnormal samples detected accurately as abnormal.
FP shows the number of normal samples detected wrongly as abnormal.
FN shows the number of abnormal samples detected wrongly as normal.
TN shows the number of normal samples detected accurately as normal.
A c c u r a c y = T P + T N T P + F P + T N + F N
R e c a l l = T P T P + F N
P r e c i s i o n = T P T P + F P

5. Experiments

5.1. Experiment Setup

In the experiments, the AE and 3-SgOut methods were applied for the detection of anomalies in DC motor body temperature. Both methods used a sliding window of time-series data as input. The dataset includes 223 time series signals with anomalies and each signal consists of 1297 data samples. The number of samples with an anomaly is 2162 while the total number of data samples is 289,231.
Due to the fact that the performance of the methods was affected by the size of the window, the optimum window size value was determined by using a grid search algorithm, which is a well-known method in the literature. The performance of the methods was evaluated using MATLAB software [25].

5.2. Autoencoder for Anomaly Detection

In the experiments, a typical AE architecture given in Figure 4 was used for anomaly detection in DC motor temperature. The decoder and encoder parts of the AE are consecutive neural networks sharing one layer, which is the hidden layer. The sizes of these parts are determined by the number of neurons in the layers. The number of neurons in the input and output layers was chosen as the size of the sliding window and the number of neurons in the hidden layer was chosen as equal to code length.
Both numbers of neurons were determined by using a well-known grid search algorithm. In the architecture, log-sigmoid (logsig) and linear transfer function (purelin) were used as the activation functions, which are given in Equations (8) and (9), for the hidden layer and output layer neurons, respectively.
l o g s i g ( x ) = 1 / ( 1 + e x )
p u r e l i n ( x ) = x
In the training phase, the AE was trained for 1000 epochs and the network weights were updated by a scaled conjugate gradient backpropagation algorithm, the details of which can be found in [26]. The optimum values for the sliding window’s size and the code length were selected using a grid search in the interval between 5 and 200. The experimental results show that the best performance was achieved when the size of the sliding window was 100 and the code length was 50.
A visual interpretation of the AE operation is given in two figures: Figure 6 and Figure 7 for normal and abnormal samples from the dataset, respectively. The figures show the samples in a sliding window, the generated codes, the reconstructed version of the samples, and the prediction errors.
A normal test sample (NTS) is shown in Figure 6a. The code generated by the autoencoder for an NTS is given in Figure 6b. The reconstructed version of the NTS is represented in Figure 6c. The root mean square error between the NTS and the reconstructed NTS is given in Figure 6d.
An abnormal test sample (ATS) is shown in Figure 7a. The code generated by the autoencoder for an ATS is given in Figure 7b. The reconstructed version of the ATS is represented in Figure 7c. The root mean square error between the ATS and the reconstructed ATS is given in Figure 7d.
The experimental results for the AE are summarized by using a confusion matrix, and the matrix is given in Table 2.

5.3. Three-Sigma Outlier (3-SgOut) for Anomaly Detection

In the experiments, 3-SgOut was used as a benchmark method to analyze the performance of the AE in the detection of anomalies in the DC motor body temperature. Because the best performance of the AE was achieved when the size of the sliding window was 100, the performance of 3-SgOut was examined for the same window size. The experimental results for 3-SgOut are summarized by using a confusion matrix, given in Table 3.

6. Discussions

The confusion matrices for the AE and 3-SgOut methods are given in Table 2 and Table 3. The performance results including three measures, which are computed from the confusion matrices, are represented in Table 4.
It can be seen that the accuracy of both methods is over 99% and the precision is equal to 100%, while the recalls are 96.62% and 17.99% for AE and 3-SgOut, respectively.
Accuracy is the ratio of correctly detected (as normal or abnormal) samples to the total samples. Recall shows the method’s ability to correctly detect the samples with anomalies. Precision gives the percentage of truly detected samples with anomalies out of all detected samples with anomalies.
Due to the fact that the number of samples with anomalies in the dataset is less than 1%, the accuracy rate is not meaningful for the performance comparison of the methods. The other two metrics, precision and recall, provide important information about method performance. Both methods have 100% precision ratios. That means the methods have no false positive error.
The recall of the 3-SgOut is 17.99% while it is 96.62% for the AE. Based on the recall ratios of the methods it is concluded that 3-SgOut detects only 17.99% of total anomaly samples as anomalies while the AE correctly detects them with a 96.62% ratio.
The 3-SgOut method does not have a training phase and it simply detects the outliers based on the mean and the standard deviation of the data. The results of 3-SgOut show that the detection of anomalies in the temperature data cannot be performed effectively by just finding the outliers.
When AE and 3-SgOut are compared in terms of cost and performance according to the above-mentioned outcomes, the findings can be summarized as follows: the computational and time cost of 3-SgOut are much lower than those of the AE because 3-SgOut relies on only two basic statistical quantities, mean and standard deviation; the performance of the AE for detecting the anomalies in the data is much higher than that of 3-SgOut because the recall ratio of the AE is 78.63% larger than that of 3-SgOut.

7. Conclusions

In this work, the AE and 3-SgOut methods were applied for the detection of anomalies in DC motor body temperature. The anomaly dataset used in the study was created by using DC motor experimental equipment, which was designed specifically for this study. The performance of the methods was examined on this dataset and the results were analyzed by using accuracy, recall, and precision measures.
Based on the results of the experimental study, it can be seen that the AE achieved remarkable performance results, which were 99.97%, 96.62%, and 100% for accuracy, recall, and precision, respectively, and it can be successfully used for anomaly detection in DC motor body temperature. Moreover, the proposed system can be preferred for anomaly detection in time series data from different sensor types in industrial systems when the performance results of the AE are taken into consideration.
The results and the findings presented in this study show that AE-based methods can be a good solution to successfully detect the anomalies in time series data that will be included in future studies.
Future research directions for this study can be grouped into two main approaches. The first one is to examine the performance of the proposed AE-based anomaly detection method on multi-sensor data. The second is to use deep learning methods in the AE architecture while working with multi-sensor data.

Author Contributions

Conceptualization, E.H.D. and E.Y.; methodology, E.H.D. and E.Y.; software, E.H.D. and E.Y.; validation, E.H.D. and E.Y.; formal analysis, E.H.D. and E.Y.; investigation, E.H.D. and E.Y.; resources, E.H.D. and E.Y.; data curation, E.H.D. and E.Y.; writing—original draft preparation, E.H.D. and E.Y.; writing—review and editing, E.H.D. and E.Y.; visualization, E.H.D. and E.Y.; supervision, E.Y.; project administration, E.Y.; funding acquisition, E.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This study was supported by The Scientific and Technological Research Council of Turkey (TUBITAK) under project number 118C157, within the scope of the 2244 Industrial Ph.D. Program. Emine Hümeyra Demircioğlu takes part in this project as a Ph.D. scholarship student.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data are available on request from the authors.

Acknowledgments

We would like to thank TUBITAK for their support. The authors would also like to thank EMKO Elektronik A.S. for their support in this project.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chandola, V.; Banerjee, A.; Kumar, V. Anomaly detection: A survey. ACM Comput. Surv. 2009, 41, 1–58. [Google Scholar] [CrossRef]
  2. Bayraktar, C.; Gökçen, H. Comparison of classification algorithms for anomaly detection in energy optimization of high rack storage systems. Int. J. Manag. Inf. Syst. Comput. Sci. 2020, 4, 89–109. [Google Scholar]
  3. Zhao, J.; Liu, K.; Wang, W.; Liu, Y. Adaptive fuzzy clustering based anomaly data detection in energy system of steel industry. Inf. Sci. 2014, 259, 335–345. [Google Scholar] [CrossRef]
  4. Das, T.K.; Adepu, S.; Zhou, J. Anomaly detection in industrial control systems using logical analysis of data. Comput. Secur. 2020, 96, 101935. [Google Scholar] [CrossRef]
  5. Himeur, Y.; Ghanem, K.; Alsalemi, A.; Bensaali, F.; Amira, A. Artificial intelligence based anomaly detection of energy consumption in buildings: A review, current trends and new perspectives. Appl. Energy 2021, 287, 116601. [Google Scholar] [CrossRef]
  6. Theumer, P.; Zeiser, R.; Trauner, L.; Reinhart, G. Anomaly detection on industrial time series for retaining energy efficiency. Procedia CIRP 2021, 99, 33–38. [Google Scholar] [CrossRef]
  7. Lu, H.; Li, Y.; Mu, S.; Wang, D.; Kim, H.; Serikawa, S. Motor anomaly detection for unmanned aerial vehicles using reinforcement learning. IEEE Internet Things J. 2017, 5, 2315–2322. [Google Scholar] [CrossRef]
  8. Hiruta, T.; Maki, K.; Kato, T.; Umeda, Y. Unsupervised learning based diagnosis model for anomaly detection of motor bearing with current data. Procedia CIRP 2021, 98, 336–341. [Google Scholar] [CrossRef]
  9. Hızarcı, B.; Ümütlü, R.C.; Kıral, Z.; Öztürk, H. Fault severity detection of a worm gearbox based on several feature extraction methods through a developed condition monitoring system. SN Appl. Sci. 2021, 3, 129. [Google Scholar] [CrossRef]
  10. Jami, A.; Heyns, P.S. Impeller fault detection under variable flow conditions based on three feature extraction methods and artificial neural networks. J. Mech. Sci. Technol. 2018, 32, 4079–4087. [Google Scholar] [CrossRef]
  11. Takiddin, A.; Ismail, M.; Zafar, U.; Serpedin, E. Deep autoencoder-based anomaly detection of electricity theft cyberattacks in smart grids. IEEE Syst. J. 2022, 16, 4106–4117. [Google Scholar] [CrossRef]
  12. Givnan, S.; Chalmers, C.; Fergus, P.; Ortega-Martorell, S.; Whalley, T. Anomaly Detection Using Autoencoder Reconstruction upon Industrial Motors. Sensors 2022, 22, 3166. [Google Scholar] [CrossRef] [PubMed]
  13. Homayouni, H.; Ghosh, S.; Ray, I.; Gondalia, S.; Duggan, J.; Kahn, M.G. An autocorrelation-based lstm-autoencoder for anomaly detection on time-series data. In Proceedings of the IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA, 10–13 December 2020; pp. 5068–5077. [Google Scholar]
  14. Kirchgässner, W.; Wallscheid, O.; Böcker, J. Estimating electric motor temperatures with deep residual machine learning. IEEE Trans. Power Electron. 2020, 36, 7480–7488. [Google Scholar] [CrossRef]
  15. Nandi, S.; Toliyat, H.A.; Li, X. Condition monitoring and fault diagnosis of electrical motors—A review. IEEE Trans. Energy Convers. 2005, 20, 719–729. [Google Scholar] [CrossRef]
  16. Abu Saad, S. The Untilisation of Information Available in a Sensorless Control System of an AC Induction Motor for Condition Monitoring. Ph.D. Thesis, University of Huddersfield, Huddersfield, UK, 2015. [Google Scholar]
  17. Chow, J.K.; Su, Z.; Wu, J.; Tan, P.S.; Mao, X.; Wang, Y.-H. Anomaly detection of defects on concrete structures with the convolutional autoencoder. Adv. Eng. Inform. 2020, 45, 101105. [Google Scholar] [CrossRef]
  18. An, J.; Cho, S. Variational autoencoder based anomaly detection using reconstruction probability. Spec. Lect. IE 2015, 2, 1–18. [Google Scholar]
  19. Chen, Z.; Yeo, C.K.; Lee, B.S.; Lau, C.T. Autoencoder-based network anomaly detection. In Proceedings of the Wireless Telecommunications Symposium (WTS), Phoenix, AZ, USA, 17–20 April 2018; pp. 1–5. [Google Scholar]
  20. Siddalingappa, R.; Kanagaraj, S. Anomaly detection on medical images using autoencoder and convolutional neural network. Int. J. Adv. Comput. Sci. Appl. 2021, 12, 148–156. [Google Scholar] [CrossRef]
  21. Kasunic, M.; McCurley, J.; Goldenson, D.; Zubrow, D. An Investigation of Techniques for Detecting Data Anomalies in Earned Value Management Data; Software Engineering Institute: Pittsburgh, PA, USA, 2011. [Google Scholar]
  22. Mirzaee, S.; Motagh, M.; Arefi, H.; Nooryazdan, M. Classification of agricultural fields using time series of dual polarimetry TerraSAR-X images. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2014, 40, 191–196. [Google Scholar] [CrossRef] [Green Version]
  23. Kohavi, R.; Provost, F. Glossary of terms journal of machine learning. Mach. Learn 1998, 30, 271–274. [Google Scholar]
  24. Abdoli, M.; Akbari, M.; Shahrabi, J. Bagging Supervised Autoencoder Classifier for Credit Scoring. Expert Syst. Appl. 2023, 213, 118991. [Google Scholar] [CrossRef]
  25. MATLAB; R2022a; The MathWorks Inc.: Natick, MA, USA, 2022.
  26. Moller, M.F. A scaled conjugate gradient algorithm for fast supervised learning. Neural Netw. 1993, 6, 525–533. [Google Scholar] [CrossRef]
Figure 1. DC motor experimental equipment.
Figure 1. DC motor experimental equipment.
Applsci 13 08701 g001
Figure 2. Monitoring the data values (temperature, speed, and current).
Figure 2. Monitoring the data values (temperature, speed, and current).
Applsci 13 08701 g002
Figure 3. Visualization of normal and abnormal data samples.
Figure 3. Visualization of normal and abnormal data samples.
Applsci 13 08701 g003
Figure 4. Typical AE architecture.
Figure 4. Typical AE architecture.
Applsci 13 08701 g004
Figure 5. System overview for AE-based anomaly detection.
Figure 5. System overview for AE-based anomaly detection.
Applsci 13 08701 g005
Figure 6. (a) NTS; (b) code for NTS; (c) reconstructed NTS; (d) error for NTS.
Figure 6. (a) NTS; (b) code for NTS; (c) reconstructed NTS; (d) error for NTS.
Applsci 13 08701 g006
Figure 7. (a) ATS; (b) code for ATS; (c) reconstructed ATS; (d) error for ATS.
Figure 7. (a) ATS; (b) code for ATS; (c) reconstructed ATS; (d) error for ATS.
Applsci 13 08701 g007
Table 1. Confusion matrix.
Table 1. Confusion matrix.
Actual
Abnormal (Faulty)Normal
PredictedAbnormal (Faulty)TP (True Positive)FP (False Positive)
NormalFN (False Negative)TN (True Negative)
Table 2. Confusion matrix for the AE.
Table 2. Confusion matrix for the AE.
Actual
Abnormal (Faulty)Normal
PredictedAbnormal (Faulty)2089 (TP)0 (FP)
Normal73 (FN)287,069 (TN)
Table 3. Confusion matrix for 3-SgOut.
Table 3. Confusion matrix for 3-SgOut.
Actual
Abnormal (Faulty)Normal
PredictedAbnormal (Faulty)389 (TP)0 (FP)
Normal1773 (FN)287,069 (TN)
Table 4. Performance results for AE and 3-SgOut.
Table 4. Performance results for AE and 3-SgOut.
AccuracyRecallPrecision
AE99.97%96.62%100%
3-SgOut99.39%17.99%100%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Demircioğlu, E.H.; Yılmaz, E. A Method Based on an Autoencoder for Anomaly Detection in DC Motor Body Temperature. Appl. Sci. 2023, 13, 8701. https://doi.org/10.3390/app13158701

AMA Style

Demircioğlu EH, Yılmaz E. A Method Based on an Autoencoder for Anomaly Detection in DC Motor Body Temperature. Applied Sciences. 2023; 13(15):8701. https://doi.org/10.3390/app13158701

Chicago/Turabian Style

Demircioğlu, Emine Hümeyra, and Ersen Yılmaz. 2023. "A Method Based on an Autoencoder for Anomaly Detection in DC Motor Body Temperature" Applied Sciences 13, no. 15: 8701. https://doi.org/10.3390/app13158701

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop