Development of an Anomaly Detection Model for CNC Machining Using Attention-LSTM Autoencoder

In this study, an Attention-based Long Short-Term Memory (LSTM) Autoencoder model is proposed for semi-supervised anomaly detection in CNC turning processes. The model addresses challenges in highly imbalanced industrial environments where abnormal data account for less than 1% of total samples. Spindle current signals were collected from real machining operations, preprocessed using Root Mean Square transformation, and feature-extracted via the Time Series Feature Extraction Library (TSFEL). The data were reconstructed into sliding windows to preserve temporal dependencies. The proposed hybrid architecture combines an LSTM encoder-decoder, an Attention module, and a parallel classifier trained through a hybrid loss function integrating reconstruction and classification errors. Experimental results showed significant improvements over conventional Autoencoder and LSTM-Autoencoder models, achieving an accuracy and a recall of 0.99. Although the model exhibited near-perfect ROC AUC values, this was intentionally designed to prioritize recall—detecting even subtle tool anomalies over avoiding false alarms. The model effectively generalized across different tools without retraining, confirming its applicability as a unified anomaly detection module. These findings demonstrate strong potential for real-time predictive maintenance and cost-efficient smart manufacturing, especially in small and medium-sized enterprises.

Publication Details

Journal
Korean Journal of Computational Design and Engineering
Published
2025-12-12
DOI
https://doi.org/10.7315/cde.2025.544
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Development of an Anomaly Detection Model for CNC Machining Using Attention-LSTM Autoencoder

Korean Journal of Computational Design and Engineering
Anomaly Detection Techniques and Applications
article

Development of an Anomaly Detection Model for CNC Machining Using Attention-LSTM Autoencoder

article en

Abstract

In this study, an Attention-based Long Short-Term Memory (LSTM) Autoencoder model is proposed for semi-supervised anomaly detection in CNC turning processes. The model addresses challenges in highly imbalanced industrial environments where abnormal data account for less than 1% of total samples. Spindle current signals were collected from real machining operations, preprocessed using Root Mean Square transformation, and feature-extracted via the Time Series Feature Extraction Library (TSFEL). The data were reconstructed into sliding windows to preserve temporal dependencies. The proposed hybrid architecture combines an LSTM encoder-decoder, an Attention module, and a parallel classifier trained through a hybrid loss function integrating reconstruction and classification errors. Experimental results showed significant improvements over conventional Autoencoder and LSTM-Autoencoder models, achieving an accuracy and a recall of 0.99. Although the model exhibited near-perfect ROC AUC values, this was intentionally designed to prioritize recall—detecting even subtle tool anomalies over avoiding false alarms. The model effectively generalized across different tools without retraining, confirming its applicability as a unified anomaly detection module. These findings demonstrate strong potential for real-time predictive maintenance and cost-efficient smart manufacturing, especially in small and medium-sized enterprises.

Korean Journal of Computational Design and EngineeringVol. 30(4)
Industry, innovation and infrastructure
Openalex Percentile: Top 20%
Anomaly Detection Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.