A Malicious Traffic Detection Model Based on Autoencoder and Multihead Attention Mechanism

The proliferation of 5G, the Internet of Things (IoT), and cloud services has significantly increased the scale and complexity of network traffic, leading to growing cybersecurity challenges, particularly for real-time detection on resource-constrained edge devices. To address this, we propose the encoder and multihead attention (EMA) model, a lightweight and efficient malicious traffic detection approach that integrates autoencoder-based dimensionality reduction with a multihead attention mechanism. The EMA model reduces computational cost while preserving high detection accuracy, making it suitable for real-time edge computing environments. It compresses high-dimensional raw traffic data using an autoencoder and employs an attention mechanism to highlight critical features and preserve essential patterns. We further evaluate different activation functions, namely rectified linear unit (ReLU), leaky ReLU, and exponential linear unit (ELU), within the autoencoder to optimize performance. Experiments on the UNSW-NB15 dataset show that EMA achieves 98.48% accuracy, comparable to gated recurrent unit (GRU)-based intrusion detection system (IDS) models, while reducing training and prediction times by 85.41% and 60.24%, respectively. Evaluation on the CICIoT2023 dataset further demonstrates its effectiveness and generalizability to modern IoT threat environments. EMA offers a promising solution for balancing accuracy and efficiency in malicious traffic detection, particularly in next-generation, high-speed, and resource-constrained networks.

Institutions

Publication Details

Journal
IEEE Internet of Things Journal
Published
2025-09-12
DOI
https://doi.org/10.1109/jiot.2025.3609655
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Malicious Traffic Detection Model Based on Autoencoder and Multihead Attention Mechanism

IEEE Internet of Things Journal
Geochemistry and Geologic Mapping
article

A Malicious Traffic Detection Model Based on Autoencoder and Multihead Attention Mechanism

article en

Abstract

The proliferation of 5G, the Internet of Things (IoT), and cloud services has significantly increased the scale and complexity of network traffic, leading to growing cybersecurity challenges, particularly for real-time detection on resource-constrained edge devices. To address this, we propose the encoder and multihead attention (EMA) model, a lightweight and efficient malicious traffic detection approach that integrates autoencoder-based dimensionality reduction with a multihead attention mechanism. The EMA model reduces computational cost while preserving high detection accuracy, making it suitable for real-time edge computing environments. It compresses high-dimensional raw traffic data using an autoencoder and employs an attention mechanism to highlight critical features and preserve essential patterns. We further evaluate different activation functions, namely rectified linear unit (ReLU), leaky ReLU, and exponential linear unit (ELU), within the autoencoder to optimize performance. Experiments on the UNSW-NB15 dataset show that EMA achieves 98.48% accuracy, comparable to gated recurrent unit (GRU)-based intrusion detection system (IDS) models, while reducing training and prediction times by 85.41% and 60.24%, respectively. Evaluation on the CICIoT2023 dataset further demonstrates its effectiveness and generalizability to modern IoT threat environments. EMA offers a promising solution for balancing accuracy and efficiency in malicious traffic detection, particularly in next-generation, high-speed, and resource-constrained networks.

IEEE Internet of Things JournalVol. 12(23)
National Central University (TW)
Peace, Justice and strong institutions
Openalex Percentile: Top 39%
Geochemistry and Geologic Mapping
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Malicious Traffic Detection Model Based on Autoencoder and Multihead Attention Mechanism · IEEE Internet of Things Journal (2025) | TGRS Research Map | TGRS