Real-time adaptation for time-series signal prediction using label-aware neural processes

Seokhyun Chung, Raed Al Kontar · DOI

In the world of industrial engineering, knowing when a machine is going to fail isn't just helpful—it’s worth millions. This field, known as Condition Monitoring (CM), involves tracking signals (like vibration, temperature, or battery capacity) to predict how a system will degrade over time. However, engineers have long struggled with a "Goldilocks" problem: simple models are fast but too rigid for complex data, while powerful AI models are often too slow to update in real-time as new data streams in.

A new paper by Seokhyun Chung and Raed Al Kontar introduces Label-aware Neural Processes (LANP), a framework designed to bridge this gap by offering both high representational power and instantaneous adaptation.

TL;DR

The authors propose Label-aware Neural Processes (LANP), a meta-learning framework that predicts engineering signal evolution in real-time without needing retraining. By integrating categorical labels (like "defective" or "normal") into the model, LANP can distinguish between systems that look identical in their early stages but diverge later, significantly improving prediction accuracy and anomaly detection.

What Problem Does This Paper Address?

Predicting the "health" of a system (like a lithium-ion battery) is difficult because of two main challenges:

  1. The Agility-Power Trade-off: Traditional parametric models are "agile"—they update quickly—but they fail to capture complex, non-linear signals. Conversely, non-parametric models like Gaussian Processes (GPs) are powerful but require time-consuming retraining every time a new data point arrives, making them poorly suited for high-frequency IoT sensors.
  2. The Dormant Stage: Many systems exhibit a "dormant" phase where healthy and faulty units look identical. For example, two batteries might show the same capacity for the first 50 cycles, but one (from a disqualified production lot) will suddenly plummet in performance later. Without knowing the "label" (the production lot), a model cannot see the divergence coming.

Methods

The authors build upon Neural Processes (NPs), a family of models that learn a distribution over functions. Unlike standard neural networks, NPs can be thought of as "meta-learners" that learn how to learn from context.

Key Innovations in LANP: * Label-Awareness: The model includes a specific encoder for categorical labels ($c$). If the label is known, it guides the prediction. If the label is missing (a common real-world scenario), the model infers the label based on the signal's evolution. * Amortized Inference: Because the model is pre-trained on historical data, "adapting" to a new unit simply requires passing new observations through a trained encoder. This is a forward pass of a neural network, which is nearly instantaneous. * Attention Mechanisms: To prevent the "underfitting" common in basic NPs, the authors use self-attention and cross-attention modules, allowing the model to focus on the most relevant parts of the signal history. * Functional Data Augmentation: Since NPs require many historical "units" to train effectively, the authors developed a method using Functional Principal Component Analysis (FPCA) to generate realistic synthetic training data from a small number of real-world samples.

Datasets

The researchers evaluated LANP on two primary benchmarks:

  1. Synthetic Heterogeneous Signals: A dataset designed to mimic the "dormant stage," where two groups of signals share the same initial functional form but diverge significantly after a certain threshold.
  2. CALCE Battery Dataset: A real-world reliability dataset containing capacity degradation trajectories from 23 lithium-ion battery cells. 14 were from a "qualified" lot and 9 were "disqualified," exhibiting abnormal late-stage degradation.

Key Insights and Ideas

  • Joint Inference is a Superpower: LANP doesn't just predict the curve; it predicts the curve and the label simultaneously. This allows for early anomaly detection—the model can flag a battery as "disqualified" even before its performance starts to tank.
  • Labels as Latent Variables: By treating labels as latent variables when they are missing, the model can handle incomplete datasets gracefully. It "clusters" the representations of units in a latent space, making it easier to distinguish between different system behaviors.
  • Solving the Scalability Issue: Because LANP avoids the $O(N^3)$ complexity of Gaussian Processes and doesn't require retraining at test time, it is orders of magnitude faster for online updates.

Key Results

  • Speed: LANP updated its predictions in roughly 0.005 seconds, compared to 58.43 seconds for a Variational Multi-output GP (VMGP). This makes LANP viable for high-frequency, real-time applications.
  • Accuracy: On the synthetic "dormant" data, LANP achieved an RMSE (Root Mean Squared Error) of 0.022, while the standard Attentive Neural Process (which ignores labels) struggled at 0.187.
  • Battery Prognosis: In the CALCE case study, LANP consistently outperformed benchmarks in predicting future capacity. More importantly, it achieved near 100% accuracy in identifying disqualified batteries much earlier than baseline classification methods (see Figure 6 in the paper).

Limitations and Future Work

While LANP is powerful, the authors note a few areas for growth:

  • Data Hunger: Like most deep learning models, NPs require a significant amount of historical data to generalize well. While their FPCA-based augmentation helps, the model's performance is still tied to the quality of the historical "prior."
  • Label Specificity: The current model focuses on categorical labels. Future work could explore incorporating continuous auxiliary information (like environmental humidity or load levels) directly into the label-aware framework.
  • Uncertainty Calibration: While LANP provides uncertainty quantification, ensuring these "error bars" are perfectly calibrated in highly non-stationary environments remains an open challenge for the NP family.

Summary updated

Abstract

Building a predictive model that rapidly adapts to real-time condition monitoring (CM) time-series data is critical for engineering systems/units. Unfortunately, many current methods suffer from a trade-off between representation power and agility in online settings. In this paper, we propose a neural process-based approach that addresses this trade-off. It encodes available observations within a CM signal into a representation space and then reconstructs the signal’s history and evolution for prediction. Once trained, the model can encode an arbitrary number of observations without requiring retraining, enabling on-the-spot real-time predictions along with quantified uncertainty and can be readily updated as more online data is gathered. Furthermore, our model is designed to incorporate partial information on qualitative factors (e.g., missing labels) from individual units. This integration not only enhances individualized predictions for each unit but also enables joint inference for both signals and their associated labels. Numerical studies on both synthetic and real-world data in degradation modeling highlight the advantageous features of our model in real-time adaptation, enhanced signal prediction with uncertainty quantification, and joint prediction for labels and signals.
BibTeX
@article{chung2025real,
  author = {Seokhyun Chung and Raed Al Kontar},
  title = {{Real-time adaptation for time-series signal prediction using label-aware neural processes}},
  journal = {Reliab. Eng. Syst. Saf.},
  year = {2025},
  doi = {10.1016/j.ress.2025.110833},
}
Figure