Real-time detection of anomalies in data streams is a foundation of modern applied analysis in complex systems. It enables experts to design rapid, efficient, reliable, and high-performance decision support systems. Rapid identification of abnormal or unexpected behavior is often insufficient in high-risk contexts; therefore, it is essential to provide explanations for these predictions. Although the use of autoencoder-based algorithms has been shown to be effective in the detection of anomalies, it is important to note that their effectiveness decreases with time due to changes in the underlying data distribution. To solve this drawback, we introduce a solution that incorporates the dynamic updating of autoencoders based on the prototypes computed from their latent representations. We propose two algorithms: Update-Based Prototypes-v1, an algorithm specifically designed to detect anomalies through continual, prototype-informed updates, and ARCANA Prototypes-v1, which is developed to provide reliable explanations for anomalies detected over time. We used the Skoltech Anomaly Benchmark database for our experiments. The Update-Based Prototypes-v1 algorithm achieved a detection rate of 80% with a false alarm rate of 20%, compared to 49% for an implementation without updates. The results confirm that the proposed model offers high performance comparable to state-of-the-art architectures in the same field, even when data characteristics change. Additionally, ARCANA Prototypesv-1 provides precise explanations, which enhances the usefulness of the prototypes for explaining anomalies.
References
[1]
Agrahari, S. and Singh, A.K. (2022) Concept Drift Detection in Data Stream Mining: A Literature Review. Journal of King Saud University—Computer and Information Sciences, 34, 9523-9540. https://doi.org/10.1016/j.jksuci.2021.11.006
[2]
Aguiar, G., Krawczyk, B. and Cano, A. (2023) A Survey on Learning from Imbalanced Data Streams: Taxonomy, Challenges, Empirical Study, and Reproducible Experimental Framework. Machine Learning, 113, 4165-4243. https://doi.org/10.1007/s10994-023-06353-6
[3]
An, J. and Cho, S. (2015) Variational Autoencoder Based Anomaly Detection Using Reconstruction Probability. https://api.semanticscholar.org/CorpusID:36663713
[4]
Babcock, B., Babu, S., Datar, M., Motwani, R. and Widom, J. (2002) Models and Issues in Data Stream Systems. Proceedings of the Twenty-First ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, Madison, 3-5 June 2002, 1-16. https://doi.org/10.1145/543613.543615
[5]
Belay, M.A., Blakseth, S.S., Rasheed, A. and Salvo Rossi, P. (2023) Unsupervised Anomaly Detection for IoT-Based Multivariate Time Series: Existing Solutions, Performance Analysis and Future Directions. Sensors, 23, Article 2844. https://doi.org/10.3390/s23052844
[6]
Chong, P., Cheung, N., Elovici, Y. and Binder, A. (2022) Toward Scalable and Unified Example-Based Explanation and Outlier Detection. IEEE Transactions on Image Processing, 31, 525-540. https://doi.org/10.1109/tip.2021.3127847
[7]
Pinon, N., Trombetta, R. and Lartizien, C. (2023) Détection d’anomalies dans l’espace image ou l’espace latent d’auto-encodeurs par patch pour l’analyse d’images industrielles. GRETSI 2023: XXIXème Colloque Francophone de Traitement du Signal et des Images, Grenoble, 28 Auguest-1 September 2023. https://hal.science/hal-04147526
[8]
Li, L., Yan, J., Wang, H. and Jin, Y. (2021) Anomaly Detection of Time Series with Smoothness-Inducing Sequential Variational Auto-encoder. IEEE Transactions on Neural Networks and Learning Systems, 32, 1177-1191. https://doi.org/10.1109/tnnls.2020.2980749
[9]
Erniyazov, S., Kim, Y., Jaleel, M.A. and Lim, C.G. (2024) Comprehensive Analysis and Improved Techniques for Anomaly Detection in Time Series Data with Autoencoder Models. International Journal on Advanced Science, Engineering and Information Technology, 14, 1861-1867. https://doi.org/10.18517/ijaseit.14.6.20451
[10]
Walczyna, T., Jankowski, D. and Piotrowski, Z. (2024) Enhancing Anomaly Detection through Latent Space Manipulation in Autoencoders: A Comparative Analysis. Applied Sciences, 15, Article 286. https://doi.org/10.3390/app15010286
[11]
Bouman, R. and Heskes, T. (2025) Autoencoders for Anomaly Detection are Unreliable. arXiv: 2501.13864.
[12]
Pandiselvi, T., Nagavani, C. and Vijaya Barathy, J. (2025) Leveraging Autoencoders for Anomaly Detection in Sensor Data from Critical Infrastructure. In: Muthu, S., Mohan Kumar, G., Kumar, D. and Gurumoorthi, E., Eds., Deep Neural Networks for Predictive Analytics and Proactive Decision-Making in Securing Critical Infrastructure, RADemics Research Institute, 191-241. https://doi.org/10.71443/9788197933684-08
[13]
Roelofs, C.M.A., Lutz, M., Faulstich, S. and Vogt, S. (2021) Autoencoder-Based Anomaly Root Cause Analysis for Wind Turbines. Energy and AI, 4, Article ID: 100065. https://doi.org/10.1016/j.egyai.2021.100065
[14]
Assaf, R., Giurgiu, I., Pfefferle, J., Monney, S., Pozidis, H. and Schumann, A. (2020) An Anomaly Detection and Explainability Framework Using Convolutional Autoencoders for Data Storage Systems. Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, Yokohama, 11-17 July 2020, 5228-5230. https://doi.org/10.24963/ijcai.2020/752
[15]
Dollon, Q., Labbé, P. and Léonard, F. (2023) Promoting Explainability in Data-Driven Models for Anomaly Detection: A Step toward Diagnosis. Annual Conference of the PHM Society, 15, 1-11. https://doi.org/10.36001/phmconf.2023.v15i1.3509
[16]
Cheng, H., Xu, D. and Yuan, S. (2023) Explainable Sequential Anomaly Detection via Prototypes. 2023 International Joint Conference on Neural Networks (IJCNN), Gold Coast, 18-23 June 2023, 1-8. https://doi.org/10.1109/ijcnn54540.2023.10191703
[17]
Levshun, D.A., Levshun, D.S. and Kotenko, I.V. (2025) Detecting and Explaining Anomalies in Industrial Internet of Things Systems Using an Autoencoder. Ontology of Designing, 15, 96-113. https://doi.org/10.18287/2223-9537-2025-15-1-96-113
Garg, A., Zhang, W., Samaran, J., Savitha, R. and Foo, C. (2022) An Evaluation of Anomaly Detection and Diagnosis in Multivariate Time Series. IEEE Transactions on Neural Networks and Learning Systems, 33, 2508-2517. https://doi.org/10.1109/tnnls.2021.3105827