Research on a Network Intrusion Detection Method Based on LSTM and Transformer

Network intrusion detection is an important part of cybersecurity defense. Deep learning models have been widely used for this task, but it remains unclear whether the high performance reported in top-journal studies comes from model-structure innovation or from data-engineering methods. To address this problem, this study proposes a lightweight LSTM-Transformer fusion model. A bidirectional LSTM is used to extract local temporal features, and a single-layer Transformer encoder is used to model global dependencies. Experimental results on the NSL-KDD dataset show that, with fewer parameters and a shorter training time, the model achieves an F1 value of 0.7745, which is 2.97 percentage points higher than that of a pure Transformer. Further decomposition shows that data engineering accounts for about 68% of the performance improvement, while the model reaches only 32.90% accuracy on attack types unseen in the training set.

Authors

Institutions

Publication Details

Journal
Computers and artificial intelligence.
Published
2026-10-29
DOI
https://doi.org/10.70267/cai.v3n5.8695
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research on a Network Intrusion Detection Method Based on LSTM and Transformer

Sihao Liu
4 links
Computers and artificial intelligence.
Network Security and Intrusion Detection
article

Research on a Network Intrusion Detection Method Based on LSTM and Transformer

Sihao Liu
article en

Abstract

Network intrusion detection is an important part of cybersecurity defense. Deep learning models have been widely used for this task, but it remains unclear whether the high performance reported in top-journal studies comes from model-structure innovation or from data-engineering methods. To address this problem, this study proposes a lightweight LSTM-Transformer fusion model. A bidirectional LSTM is used to extract local temporal features, and a single-layer Transformer encoder is used to model global dependencies. Experimental results on the NSL-KDD dataset show that, with fewer parameters and a shorter training time, the model achieves an F1 value of 0.7745, which is 2.97 percentage points higher than that of a pure Transformer. Further decomposition shows that data engineering accounts for about 68% of the performance improvement, while the model reaches only 32.90% accuracy on attack types unseen in the training set.

Computers and artificial intelligence.Vol. 3(5)
Beijing University of Posts and Telecommunications (CN)
Openalex Percentile: Top 13%
Network Security and Intrusion Detection
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.

Laika access coming soon
Research on a Network Intrusion Detection Method Based on LSTM and Transformer — Sihao Liu · Computers and artificial intelligence. (2026) | TGRS Research Map | TGRS