Manuscript Offprint

arXiv:2609.31157

Bayesian Tensor Autoencoder with Physics-informed Predictive Prior for Multi-dimensional Time Series Anomaly Detection

Jianan Liu, Chunguang Li

JIANAN LIU, Zhejiang University, China

CHUNGUANG LI ⊗^{\otimes}, Zhejiang University, China

Multi-dimensional time series, inherently tensorial, are common in practice. Anomaly detection on such time series has a wide range of applications and the intrinsic correlations within these time series are beneficial for anomaly detection. Despite great progress in time series anomaly detection, most existing methods are confined to uni-/multi-variate time series. When handling multi-dimensional time series using these methods, reshaping operations are required, which inevitably break the intrinsic correlations and thus lead to performance degradation. In uni-/multi-variate time series anomaly detection, AutoEncoders (AEs) are widely adopted and generally categorized into reconstruction-based and prediction-based AEs. The reconstruction-based AE utilizes the current observation for reconstruction, while the prediction-based AE utilizes the historical information to predict the current observation. Thus, the two AEs utilize different information. To bridge the gap between reconstruction-based and prediction-based AEs, so as to fully leverage the available information and thus further enhance performance, we propose a predictive prior and incorporate it into the reconstruction-based AE. It may not be very difficult to conceive this idea, but designing the predictive prior so that it can work for tensor anomaly detection is non-trivial. Specifically, to avoid breaking the intrinsic correlations within the multi-dimensional time series, we use the tensor AE as the backbone. To incorporate the predictive prior into the reconstruction-based AE, we propose a Bayesian fusion approach and our analysis reveals that this approach can enhance the modeling capability of the model for normal data. To mitigate the over-generalization problem of AE, we incorporate physical laws, i.e. tensor low-rank decomposition rules, into the neural networks in the predictive prior, leading to the Physics-informed Predictive Prior Tensor AE (PPPTAE) framework. Furthermore, training and testing strategies are tailored for PPPTAE so as to introduce sufficient randomness during training and bypass complex density estimation during testing, respectively. Experimental results on real-world datasets demonstrate the effectiveness of the proposed method.

CCS Concepts: • Computing methodologies → Anomaly detection; Neural networks; Unsupervised learning; • Information systems → Data mining; • Mathematics of computing → Bayesian computation.

Additional Key Words and Phrases: Multi-dimensional time series anomaly detection, predictive prior, tensor decomposition, Bayesian fusion

ACM Reference Format:

Jianan Liu and Chunguang Li. 2026. Bayesian Tensor Autoencoder with Physics-informed Predictive Prior for Multi-dimensional Time Series Anomaly Detection. 1, 1 (September 2026), 28 pages.

1 Introduction

Multi-dimensional time series are common in practice. Take freeway traffic data as an example: A freeway has multiple lanes, and sensors capture various road metrics along the freeway, with each sensor collecting simultaneous measurements for all lanes at the corresponding location over time. Such data are inherently tensorial and can be naturally represented as a fourth-order tensor sized N1×N2×C×TN_1 \times N_2 \times C \times T, where N1N_1 is the number of sensors placed along the freeway, N2N_2 is the number of lanes, CC denotes the number of road metrics captured by sensors such as speed and occupancy, and TT is the total number of timestamps. Another example is the weather data, in which

Authors' Contact Information: Jianan Liu, Zhejiang University, Hangzhou, China; Chunguang Li, Zhejiang University, Hangzhou, China, cgli@zju.edu.cn.

  1. ACM XXXX-XXXX/2026/9-ART https://doi.org/

Jianan Liu and Chunguang Li

N1N_1 and N2N_2 denote the number of latitude and longitude points, respectively, and CC is the number of weather-related physical variables, such as temperature and humidity. In these examples, N1N_1 and N2N_2 contain location-related information and using a vector of length N1⋅N2N_1 \cdot N_2 to represent the information would destroy the original location-related structure. Therefore, these data should be represented by tensors sized N1×N2×C×TN_1 \times N_2 \times C \times T so as to preserve the original structure.

Anomaly detection on multi-dimensional time series has a wide range of applications. For instance, detecting anomalies in freeway traffic data enables the prompt identification of abnormal events such as car accidents. Similarly, anomaly detection on weather data helps to timely detect extreme weather events such as tornadoes. By detecting anomalies, we can effectively minimize losses to life and property by promptly taking appropriate actions.

Different from supervised tasks such as time series classification [2, 7, 21], time series anomaly detection presents many unique challenges. On the one hand, as anomalies often correspond to rare events, normal samples often form a large portion of the data collected in practice, which leads to a highly imbalanced number of normal and abnormal samples in the real-world datasets. On the other hand, the types of anomalies are usually varied, making it extremely difficult to fully characterize abnormal events. In view of these problems, time series anomaly detection methods are often unsupervised and usually use only the normal samples to train the model so that normal patterns can be learned [35, 39, 50]. In this way, events that can not be described by the model are identified as anomalies during the testing stage.

Although time series anomaly detection is challenging, the intrinsic correlations within multi-dimensional time series can be beneficial for anomaly detection. On the one hand, by leveraging these intrinsic correlations, certain anomalies can be more effectively detected. For example, for car accidents on freeways, by integrating observation from multiple sensors located around the accident location, such abnormal events can be more effectively detected. On the other hand, leveraging the intrinsic correlations within multi-dimensional time series also helps in modeling normal data. For example, weather data present the nature that observation values at adjacent latitude and longitude points are similar though not identical. By taking the similarity into account, we can better model the normal data, thereby better distinguishing between normal and abnormal samples during the testing phase. Therefore, we should leverage the intrinsic correlations within multi-dimensional time series and not break these correlations.

Despite great progress in time series anomaly detection, most existing methods are confined to uni-/multi-variate time series [10, 16, 44]. When handling multi-dimensional time series using these methods, reshaping operations are required, which inevitably break the intrinsic correlations and thus lead to performance degradation.

In uni-/multi-variate time series anomaly detection, AutoEncoders (AEs) are widely adopted and generally categorized into reconstruction-based and prediction-based AEs. The reconstruction-based AE utilizes the current observation for reconstruction, while the prediction-based AE utilizes the historical information to predict the current observation. Thus, the two AEs utilize different information.

In order to bridge the gap between reconstruction-based and prediction-based AEs, so as to fully leverage the available information, thereby further enhancing performance, a natural idea is to concatenate the historical information and the current observation as the input of the model, and let the output be the current observation. Although this approach of concatenation is simple and intuitive, it fails to explicitly account for the interaction between historical information and current observations, and thus can not guarantee performance gains. To more effectively bridge the gap between the reconstruction-based AE and prediction-based AE, one possible way is to design a

Bayesian Tensor Autoencoder with Physics-informed Predictive Prior for Multi-dimensional Time Series Anomaly Detection

3

predictive prior using the historical information and incorporate this prior into the reconstruction-based AE, thereby effectively integrating prediction and reconstruction capabilities within a single unified model.

To the best of our knowledge, no existing work has adopted this idea. We note that the works known as the meta-analytic predictive prior [9, 18, 27, 32] have a similar name. These works assume that the parameters estimated from external studies follow the same distribution as those obtained in the current trial. Therefore, the distribution of parameters estimated from external data can be used as the prior for the parameters estimated in the current trial. However, this prior neglects temporal dependencies and uses a single global prior to model all external data. Therefore, the idea of the meta-analytic predictive prior is conceptually different from our idea and is unsuitable for time series tasks.

In this work, we propose a predictive prior and incorporate it into the reconstruction-based AE. It may not be very difficult to conceive this idea, but designing the predictive prior so that it can work for tensor anomaly detection is non-trivial. Specifically, to avoid breaking the intrinsic correlations within the multi-dimensional time series, we use the Tensor AE (TAE) as the backbone. To incorporate the predictive prior into the reconstruction-based TAE, we propose a Bayesian fusion approach and our analysis reveals that this approach can enhance the modeling capability of the model for normal data. To mitigate the over-generalization problem of AE, we incorporate physical laws, i.e. tensor low-rank decomposition rules, into the neural networks in the predictive prior, leading to the Physics-informed Predictive Prior Tensor AE (PPPTAE) framework. Furthermore, training and testing strategies are tailored for PPPTAE so as to introduce sufficient randomness during training and bypass complex density estimation during testing, respectively.

In summary, the contribution of this work is three-fold:

(1) We propose a predictive prior and incorporate it into the reconstruction-based TAE. In this way, we bridge the gap between prediction-based and reconstruction-based AEs, so as to fully leverage the available information, thereby further enhancing performance.

(2) To mitigate the over-generalization problem of AE, we incorporate physical laws, i.e. tensor low-rank decomposition rules, into the neural networks in the predictive prior, leading to the Physics-informed Predictive Prior Tensor AE (PPPTAE) framework.

(3) To incorporate the predictive prior into the reconstruction-based TAE, we propose a Bayesian fusion approach, and our analysis reveals that this approach can enhance the modeling capability of the model for normal data.

Notations: In this paper, we use lowercase boldface (e.g. a), uppercase boldface (e.g. A), and calligraphic letters (e.g. A\mathcal{A}) to denote vectors, matrices, and tensors, respectively. We use Im\mathbf{I}_m to denote the identity diagonal matrix of size m×mm \times m. We use [d]={1,2,⋯ ,d−1,d}[d] = \{1, 2, \cdots, d - 1, d\} to denote the set of integers from 1 to dd, and use a:b={a,a+1,...,b−1,b}a : b = \{a, a + 1, ..., b - 1, b\} to denote the set of integers from aa to bb. For a tensor A∈RI1×I2×I3\mathcal{A} \in \mathbf{R}^{I_1 \times I_2 \times I_3}, we use Ai1,i2,i3\mathcal{A}_{i_1, i_2, i_3} to denote the (i1,i2,i3)(i_1, i_2, i_3)-th element of A\mathcal{A}. The inner product of two tensors A,B\mathcal{A}, \mathcal{B} is defined by ⟨A,B⟩=∑i1,i2,i3Ai1,i2,i3Bi1,i2,i3\langle \mathcal{A}, \mathcal{B} \rangle = \sum_{i_1, i_2, i_3} \mathcal{A}_{i_1, i_2, i_3} \mathcal{B}_{i_1, i_2, i_3} and the squared Frobenius norm of a tensor A\mathcal{A} is defined by ∥A∥F2=⟨A,A⟩\|\mathcal{A}\|_F^2 = \langle \mathcal{A}, \mathcal{A} \rangle.

References (63)