DOI: 10.3390/s26165125 ISSN: 1424-8220

A CPU–NPU Heterogeneous Edge Fault Diagnosis Framework for Industrial Sensor Data

Kangli Xu, Haozhou Wang, Chao Li, Hongxuan Liu, Chunxiao Xing

Industrial sensor-based fault diagnosis often requires continuous data acquisition, local data processing, and timely model inference on edge devices. Although deep learning-based diagnostic methods have achieved promising performance, many existing approaches rely on cloud-centered processing pipelines that introduce communication overhead and potential data privacy concerns. This paper presents a CPU–NPU heterogeneous edge fault diagnosis framework for industrial sensor data. The framework runs on an RK3588 local edge device and includes SQLite- and RingBuffer-based data management, sliding window generation, micro-batch construction, and model inference. The CPU is responsible for data access and buffering, preprocessing, and micro-batch preparation, while the NPU executes fault diagnosis models using the RKNN runtime environment. By performing inference locally, the framework reduces the continuous transmission of raw sensor data and supports real-time fault diagnosis under resource-constrained edge devices. Experimental results demonstrate high consistency between ONNX-based CPU inference and RKNN-based NPU inference after model conversion. Furthermore, the effects of different data input paths and micro-batch configurations are systematically evaluated. A cross-platform comparison between server-class CPU/GPU execution and embedded NPU deployment is also conducted in terms of latency, throughput, and energy efficiency. The results show that RingBuffer-based streaming input significantly reduces data access overhead, while the effectiveness of NPU acceleration depends on both model structure and micro-batch size. The cross-platform results further demonstrate the energy efficiency advantages of the RK3588 platform, making it more suitable for practical deployment in resource-constrained edge scenarios. These findings provide practical insights for deploying fault diagnosis models on heterogeneous edge devices.

More from our Archive