A Hybrid CNN-BiGRU-Attention Network for Multi-Class Spark-State Classification in Electrical Discharge Machining

Electrical discharge machining (EDM) is a highly nonlinear manufacturing process in which stable machining performance depends on regulating transient spark-gap conditions. Traditional rule-based discriminators and offline static machine learning models struggle to capture stochastic gap dynamics, while recent unsupervised pulse diagnostics rely on post hoc peak segmentation unsuitable for online operation. To bridge this gap, this study introduces a causal, end-to-end deep learning framework that transfers offline unsupervised pulse diagnostics into a real-time sliding-window spark-state classifier deployable on embedded Edge AI hardware. A lightweight hybrid CNN-BiGRU-Attention network with a multi-modal conditioning interface processes raw transient gap voltage and discharge current waveforms to categorize the terminal state of a 1024-sample observation window into five physically grounded stability classes (Y1 to Y5). Evaluated across an experimental die-sinking EDM database comprising 8264 valid recording blocks (350,867 detected discharges and 234.37 million causal sliding windows), the proposed classifier achieves 90.27% five-seed mean accuracy (90.39% single-seed accuracy and 0.9040 macro F1-score on a balanced independent test set of 49,920 windows; 94.82% accuracy and 0.9627 weighted F1-score on the naturally imbalanced 2.21-million-window test stream) within the investigated single-machine configuration, significantly outperforming rule-based threshold discriminators. Exported via ONNX and TensorRT to an embedded NVIDIA Jetson Orin NX module, the classifier achieves a batch-1 inference latency of 1.28 ms on the CPU (FP32, numerically verified to have a maximum logit deviation of 6.79×10−6) and 1.29 ms via TensorRT (FP16), establishing a low-latency state-estimation module designed to support future closed-loop adaptive gap control.

Authors

Institutions

Publication Details

Journal
Machines
Published
2026-12-02
DOI
https://doi.org/10.3390/machines14121435
Primary Topic
Advanced Machining and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A Hybrid CNN-BiGRU-Attention Network for Multi-Class Spark-State Classification in Electrical Discharge Machining

Gunnar Meichsner, Philipp Damm, Philipp Plänitz, Matthias Hackert‐Oschätzchen
1 links
Machines
Advanced Machining and Optimization Techniques
article

A Hybrid CNN-BiGRU-Attention Network for Multi-Class Spark-State Classification in Electrical Discharge Machining

Gunnar Meichsner, Philipp Damm, Philipp Plänitz, Matthias Hackert‐Oschätzchen
article en

Abstract

Electrical discharge machining (EDM) is a highly nonlinear manufacturing process in which stable machining performance depends on regulating transient spark-gap conditions. Traditional rule-based discriminators and offline static machine learning models struggle to capture stochastic gap dynamics, while recent unsupervised pulse diagnostics rely on post hoc peak segmentation unsuitable for online operation. To bridge this gap, this study introduces a causal, end-to-end deep learning framework that transfers offline unsupervised pulse diagnostics into a real-time sliding-window spark-state classifier deployable on embedded Edge AI hardware. A lightweight hybrid CNN-BiGRU-Attention network with a multi-modal conditioning interface processes raw transient gap voltage and discharge current waveforms to categorize the terminal state of a 1024-sample observation window into five physically grounded stability classes (Y1 to Y5). Evaluated across an experimental die-sinking EDM database comprising 8264 valid recording blocks (350,867 detected discharges and 234.37 million causal sliding windows), the proposed classifier achieves 90.27% five-seed mean accuracy (90.39% single-seed accuracy and 0.9040 macro F1-score on a balanced independent test set of 49,920 windows; 94.82% accuracy and 0.9627 weighted F1-score on the naturally imbalanced 2.21-million-window test stream) within the investigated single-machine configuration, significantly outperforming rule-based threshold discriminators. Exported via ONNX and TensorRT to an embedded NVIDIA Jetson Orin NX module, the classifier achieves a batch-1 inference latency of 1.28 ms on the CPU (FP32, numerically verified to have a maximum logit deviation of 6.79×10−6) and 1.29 ms via TensorRT (FP16), establishing a low-latency state-estimation module designed to support future closed-loop adaptive gap control.

MachinesVol. 14(12)
Otto-von-Guericke-Universität Magdeburg (DE)
Advanced Machining and Optimization Techniques
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.

Laika access coming soon