Unsupervised Anomaly Detection in Marine Diesel Engines using Transformer Neural Networks and Residual Analysis



Published Sep 4, 2023
Qin Liang Knut Erik Knutsen Erik Vanem Houxiang Zhang Vilmar Æsøy


This paper presents a novel unsupervised approach for detecting anomalies in marine diesel engines using a Transformer Neural Network based autoencoder (TAE) and residual analysis with Sequential Probability Ratio Test (SPRT) and Sum of Squares of Normalized Residuals (SSNR). The proposed method can capture temporal dependencies in normal timeseries data without the need for labeled failure data. To assess the effectiveness of the proposed approach, a dataset of faulty data is generated under the same operational profile as the normal training data. The model is trained using normal data, and the faulty data is reconstructed using the trained model. SPRT and SSNR are then used to analyze the residuals from the observed and reconstructed faulty data, with significant deviations exceeding a predefined threshold being identified as anomalous behavior. The experimental results demonstrate that the proposed approach can accurately and efficiently detect anomalies in marine diesel engines. Therefore, this approach can be considered as a promising solution for early anomaly detection, leading to timely maintenance and repair, and preventing costly downtime.  

Abstract 323 | PDF Downloads 226



Unsupervised fault detection, Transformer, Neural Network, Sequential Probability Ratio Test, Residual analysis, Machine learning

Bernardo, J. T., & Reichard, K. M. (2017). Trends in research techniques of prognostics for gas turbines and diesel engines. In Annual conference of the phm society (Vol. 9).

Brandsæter, A., Manno, G., Vanem, E., & Glad, I. K. (2016). An application of sensor-based anomaly detection in the maritime industry. In 2016 ieee international conference on prognostics and health management (icphm) (pp. 1–8).

Brandsæter, A., Vanem, E., & Glad, I. K. (2019). Efficient online anomaly detection for ship systems in operation. Expert Systems with Applications, 121, 418–437.

Ellefsen, A. L., Bjørlykhaug, E., Æsøy, V., Ushakov, S., & Zhang, H. (2019). Remaining useful life predictions for turbofan engine degradation using semi-supervised deep architecture. Reliability Engineering & System Safety, 183, 240–251.

Han, P., Ellefsen, A. L., Li, G., Holmeset, F. T., & Zhang, H. (2021). Fault detection with lstmbased variational autoencoder for maritime components. IEEE Sensors Journal, 21(19), 21903-21912. doi: 10.1109/JSEN.2021.3105226

Han, P., Li, G., Skulstad, R., Skjong, S., & Zhang, H. (2020). A deep learning approach to detect and isolate thruster failures for dynamically positioned vessels using motion data. IEEE Transactions on Instrumentation and Measurement, 70, 1–11.

Hemmer, M., Klausen, A., Khang, H. V., Robbersmyr, K. G., & Waag, T. I. (2020). Health indicator for lowspeed axial bearings using variational autoencoders. IEEE Access, 8, 35842-35852. doi: 10.1109/ACCESS.2020.2974942

Hu, K., Cheng, Y., Wu, J., Zhu, H., & Shao, X. (2021). Deep bidirectional recurrent neural networks ensemble for remaining useful life prediction of aircraft engine. IEEE Transactions on Cybernetics.

Karita, S., Chen, N., Hayashi, T., Hori, T., Inaguma, H., Jiang, Z., . . . others (2019). A comparative study on transformer vs rnn in speech applications. In 2019 ieee automatic speech recognition and understanding workshop (asru) (pp. 449–456).

Knutsen, K. E., Liang, Q., Karandikar, N., Ibrahim, I. H. B., Tong, X. G. T., & Tam, J. J. H. (2022). Containerized immutable maritime data sharing utilizing distributed ledger technologies. In Journal of physics: Conference series (Vol. 2311, p. 012006).

Kriegeskorte, N., & Golan, T. (2019). Neural network models and deep learning. Current Biology, 29(7), R231– R236.

Liang, Q., Tvete, H., & Brinks, H. (2020). Prediction of vessel propulsion power from machine learning models based on synchronized ais-, ship performance measurements and ecmwf weather data. In Iop conference series: Materials science and engineering (Vol. 929, p. 012012).

Liang, Q., Tvete, H. A., & Brinks, H. W. (2019). Prediction of vessel propulsion power using machine learning on ais data, ship performance measurements and weather data. In Journal of physics: Conference series (Vol. 1357, p. 012038).

Listou Ellefsen, A., Han, P., Cheng, X., Holmeset, F. T., Æsøy, V., & Zhang, H. (2020). Online fault detection in autonomous ferries: Using fault-type independent spectral anomaly detection. IEEE Transactions on Instrumentation and Measurement, 69(10), 8216-8225. doi: 10.1109/TIM.2020.2994012

Massoudi, M., Verma, S., & Jain, R. (2021). Urban sound classification using cnn. In 2021 6th international conference on inventive computation technologies (icict) (pp. 583–589).

Pukelsheim, F. (1994). The three sigma rule. The American Statistician, 48(2), 88–91.

Stalk, P. (2021). Review of maritime transport. PUNITED NATIONS CONFERENCE ON TRADE AND DEVELOPMENT, 1-177.

Tuli, S., Casale, G., & Jennings, N. R. (2022). Tranad: Deep transformer networks for anomaly detection in multivariate time series data. arXiv preprint arXiv:2201.07284.

Vanem, E., & Brandsæter, A. (2021). Unsupervised anomaly detection based on clustering methods and sensor data on a marine diesel engine. Journal of Marine Engineering & Technology, 20(4), 217–234.

Vanem, E., & Storvik, G. O. (2017). Anomaly detection using dynamical linear models and sequential testing on a marine engine system. In Annual conference of the phm society (Vol. 9).

Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., . . . Polosukhin, I. (2017). Attention is all you need. Advances in neural information processing systems, 30.

Wald, A. (1992). Sequential tests of statistical hypotheses. Springer.

Zhang, Z., Song, W., & Li, Q. (2022). Dual-aspect self-attention based on transformer for remaining useful life prediction. IEEE Transactions on Instrumentation and Measurement, 71, 1-11. doi: 10.1109/TIM.2022.3160561
Regular Session Papers