DF-TransVAE: A Deep Fusion Network for Binary Classification-Based Anomaly Detection in Internet User Behavior
Open Access
- 26 February 2026
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (5) , 2243
Abstract
User behavior anomaly detection plays a vital role in network security for identifying malicious access and abnormal activities in high-dimensional internet user behavior data. Although Transformer architectures have been widely adopted in anomaly detection tasks, and their integration with Variational Autoencoders (VAEs) has often been used to further improve detection accuracy, existing integration methods have failed to effectively balance global feature dependency modeling and generative data distribution learning. This results in limited capability in identifying complex anomalous patterns. To address this issue, this paper proposes DF-TransVAE, a novel deeply integrated framework that advances the integration of a Transformer and a VAE for supervised anomaly detection. The framework first fuses global contextual representations from the Transformer encoder with original input features, then maps the fused representation into the latent space via the VAE encoder. A cross-attention mechanism is introduced as the core of deep integration, enabling dynamic, bidirectional interaction between the fused features and latent variables to enhance information fusion. Lastly, a fully connected classifier equipped with residual connections outputs anomaly probabilities for supervised binary classification. Experimental results on two public datasets demonstrate that the proposed framework achieves better performance than existing deep learning methods in terms of accuracy, precision, recall, and F1-score, particularly in detecting complex anomalous patterns. Our results indicate that the deep integration mechanism we propose effectively addresses the limitations of conventional Transformer–VAE combinations.Keywords
Funding Information
- Key Research and Development Project of Science and Technology in Xinjiang Uygur Autonomous Region (2023B01032-1)
- Research Project of Xinjiang Space-Sky-Ground Integrated Intelligent Computing Technology Laboratory (2025A05-1)
- Tian shan Talent Training Project-Xinjiang Science and Technology Innovation Team Program (2023TSYCTD0012)
This publication has 29 references indexed in Scilit:
- Deep Belief-MobileNet1D: A novel deep learning approach for anomaly detection in industrial big dataInternet of Things, 2025
- XAInomaly: Explainable and interpretable Deep Contractive Autoencoder for O-RAN traffic anomaly detectionComputer Networks, 2025
- Safeguarding IoT consumer devices: Deep learning with TinyML driven real-time anomaly detection for predictive maintenanceAin Shams Engineering Journal, 2025
- Signal generation for bolt loosening detection with unbalanced datasets based on the CBAM-VAEMeasurement, 2024
- Anomaly VAE-Transformer: A Deep Learning Approach for Anomaly Detection in Decentralized FinanceIEEE Access, 2023
- ITran: A novel transformer-based approach for industrial anomaly detection and localizationEngineering Applications of Artificial Intelligence, 2023
- Time-series anomaly detection with stacked Transformer representations and 1D convolutional networkEngineering Applications of Artificial Intelligence, 2023
- Semisupervised anomaly detection of multivariate time series based on a variational autoencoderApplied Intelligence, 2022
- UTRAD: Anomaly detection and localization with U-TransformerNeural Networks, 2022
- Variational transformer-based anomaly detection approach for multivariate time seriesMeasurement, 2022