International Conference on Control, Automation and Diagnosis (ICCAD)
A Multivariate Hybrid Quantum-Classical Approach for Joint Pressure and Temperature Forecasting and Anomaly Detection on Edge IoT Devices
Moncef Triki, Rayen Hajjem, Omar Kahouli, Mohamed Amine Chaâbane
Abstract
Extending our prior work [1] which introduced a hybrid Quantum Neural Network (QNN) and Quantum Autoencoder (QAE) pipeline for univariate temperature forecasting and anomaly detection on edge IoT devices, this paper advances the framework to multivariate anomaly detection across correlated pressure and temperature sensors. While [1] demonstrated the feasibility of quantum-enhanced edge analytics, its QAE was limited to single-variable reconstruction, failing to detect anomalies that manifest only as joint deviations across multiple sensors. In this study, we retain the identical QNN+QAE architecture including 8-qubit AngleEmbedding and 3-layer StronglyEntanglingLayers circuits, and PCA-based dimensionality reduction while introducing two key extensions: (1) retargeting the QNN to forecast pressure instead of temperature, and (2) crucially, training the QAE on multivariate input vectors comprising both pressure and temperature data, enabling joint anomaly scoring via combined reconstruction error. Evaluated on real-world IoT data deployed on a Raspberry Pi 5, the QNN achieves pressure forecasting accuracy comparable to prior temperature results$(\mathbf{R}^{\mathbf{2}}=\mathbf{0. 9 1}, \mathbf{M A E}=\mathbf{0. 0 4 9 9}, \mathbf{R M S E}=\mathbf{0. 0 6 3 6})$. More significantly, the multivariate QAE achieves an anomaly detection F1 score of 0.92, substantially outperforming univariate QAEs trained separately on pressure$(0.83)$and temperature$(0.85)$, particularly in detecting slow correlated drifts and sensor decalibration scenarios that single-variable methods miss. The multivariate QAE adds no additional trainable parameters and incurs only$\mathbf{1 4} \boldsymbol{\%}$inference latency overhead compared to univariate counterparts, preserving edge deployment feasibility. To our knowledge this work represents one of the early demonstrations of a hybrid quantum-classical framework for multivariate anomaly detection on edge IoT hardware, demonstrating the feasibility of multivariate hybrid quantum-classical analytics without additional parameter or architectural overhead, directly building upon and extending the univariate capabilities reported in [1]