Real-Time AI-Driven Milling Digital Twin Towards Extreme Low-Latency

Wenyi Liu, R. Sharma, W. "Grace" Guo, J. Yi, Y. B. GuoarXiv 2025 · DOI

Abstract: Digital twin (DT) enables smart manufacturing by leveraging real-time data, AI models, and intelligent control systems. This paper presents a state-of-the-art analysis on the emerging field of DTs in the context of milling. The critical aspects of DT are explored through the lens of virtual models of physical milling, data flow from physical milling to virtual model, and feedback from virtual model to physical milling. Live data streaming protocols and virtual modeling methods are highlighted. A case study showcases the transformative capability of a real-time machine learning-driven live DT of tool-work contact in a milling process. Future research directions are outlined to achieve the goals of Industry 4.0 and beyond.

Introduction

In high-precision manufacturing, milling remains a complex "black box" process. Dynamic variables such as tool wear, vibration (chatter), and thermal effects can compromise expensive aerospace components in a matter of seconds. While traditional physics-based simulations like Finite Element Analysis (FEA) offer high accuracy, their computational intensity renders them unsuitable for real-time intervention. This paper addresses the "bidirectional gap" in current manufacturing systems, proposing a framework for a closed-loop Digital Twin (DT) capable of sensing, predicting, and controlling the physical process with extreme low-latency.

The Digital Twin Architecture

The proposed DT architecture is built upon three critical pillars: virtual modeling, a high-speed data pipeline, and a real-time feedback loop. Unlike static monitoring tools, this system aims for a seamless synchronization between the physical entity and its digital counterpart.

The bidirectional architecture of a Digital Twin system showing the flow of real-time data and control commands.

As illustrated in the architecture above, the physical entity (comprising the process, actuators, and controllers) feeds real-time data to the virtual model. The digital twin then processes this data to generate predictions and decisions, which are transmitted back as real-time control commands to the physical controller (PLC).

Virtual Modeling and AI Integration

A core challenge in DT development is balancing model fidelity with execution speed. The researchers categorize predictive models into three main types: physics-based, data-driven, and physics-informed machine learning (PIML).

Taxonomy of predictive models, approaches, and tools used in Digital Twin development.

While physics-based models rely on internal mechanisms and mathematical equations, data-driven models utilize machine learning and deep learning to extract information from system data. The frontier of this field is Physics-Informed Machine Learning (PIML), which constrains AI models with physical laws (e.g., conservation of energy) to ensure that predictions remain physically grounded even when working with smaller datasets.

The Data Pipeline and Feedback Loop

To achieve the goal of "extreme low-latency," the paper advocates for a hybrid communication stack. MQTT is utilized for lightweight, edge-level data collection from sensors, while Apache Kafka handles high-throughput data orchestration and model ingestion. This synergy allows the system to translate AI predictions directly into actionable G-codes or control commands via APIs, enabling the machine to self-correct mid-cut.

Case Study: Micro-Milling Contact Detection

The framework was validated through a micro-milling case study focused on detecting tool-workpiece contact using Acoustic Emission (AE) sensors.

  • Dataset: 1,555 labeled samples of AE peak amplitudes, segmented into 0.1-second windows.
  • Model: A Neural Network with three hidden layers (16-16-8 neurons).
  • Performance: The model achieved a remarkable 99.86% accuracy in classifying contact states.
  • Latency: The total end-to-end sensing-learning-control loop was estimated at approximately 10 milliseconds.

To ensure zero data loss during high-speed sampling (100 kHz), the researchers implemented a double-buffering strategy within their Python-based data acquisition framework.

Discussion and Future Directions

While the proof-of-concept demonstrates the feasibility of extreme low-latency DTs, several hurdles remain for industrial scaling. Semantic Interoperability is a primary concern, as different machine brands lack a universal communication standard. Furthermore, the bidirectional nature of DTs introduces significant Cybersecurity risks; a hijacked feedback loop could lead to physical machine destruction.

Future research will focus on "Cognitive Twins" that provide contextual insights to human engineers and the integration of 5G/6G networks to maintain low latency across massive factory-scale sensor deployments.

Summary updated

Abstract

Digital twin (DT) enables smart manufacturing by leveraging real-time data, AI models, and intelligent control systems. This paper presents a state-of-the-art analysis on the emerging field of DTs in the context of milling. The critical aspects of DT are explored through the lens of virtual models of physical milling, data flow from physical milling to virtual model, and feedback from virtual model to physical milling. Live data streaming protocols and virtual modeling methods are highlighted. A case study showcases the transformative capability of a real-time machine learning-driven live DT of tool-work contact in a milling process. Future research directions are outlined to achieve the goals of Industry 4.0 and beyond.
BibTeX
@misc{liu2025real,
  author = {Wenyi Liu and R. Sharma and W. "Grace" Guo and J. Yi and Y. B. Guo},
  title = {{Real-Time AI-Driven Milling Digital Twin Towards Extreme Low-Latency}},
  year = {2025},
  eprint = {2512.13482},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.13482},
  howpublished = {arXiv},
}
Figure