TCG-CMAID: Network traffic anomaly detection based on tri-modal collaborative feature encoding and cross-modal attention fusion

Network attacks exhibit complex patterns at multiple levels of granularity, and substantial differences in class frequencies make minority attacks prone to confusion and missed detection. This paper proposes TCG-CMAID, a network traffic anomaly detection method based on tri-modal collaborative feature encoding and cross-modal attention fusion. The method constructs three modalities from network traffic: flow-level statistics, packet-level session behavior statistics, and topology-level communication graphs. These modalities describe macroscopic connection behavior, fine-grained within-session transmission behavior, and structural relationships among communicating entities, respectively. A tri-modal collaborative feature encoding (TCFE) module uses a dedicated encoder for each modality and maps the extracted features into a shared representation space. Directed cyclic latent-subspace cross-modal attention and three-way joint gated attention then enhance complementary information and assign sample-specific modality contributions. Experiments use fixed stratified random splits of CICIDS2017 and CICIoT2023 subsets. Compared with eight baselines, including XG-NID, TCG-CMAID achieves the best mean values for all six metrics on the CICIDS2017 binary task, with an attack-class F1-score of 99.971%. On the 11-class task, it achieves the highest balanced accuracy and the lowest attack-detection false-negative rate, with a Macro F1 of 95.706%. On the five-class CICIoT2023 subset, its binary attack-class F1-score reaches 96.318%; on the five-class task, it achieves the best mean values for all five metrics, with a Macro F1 of 85.633%, exceeding the second-best method by 5.340 percentage points. Ablation results further support the complementarity of the three modalities and the positive contribution of each fusion component to mean Macro F1.

Authors

Institutions

Publication Details

Journal
Journal of King Saud University - Computer and Information Sciences
Published
2026-11-25
DOI
https://doi.org/10.1007/s44443-026-01497-6
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
NOV
article

TCG-CMAID: Network traffic anomaly detection based on tri-modal collaborative feature encoding and cross-modal attention fusion

Liang Wan, Longsheng Wang
Journal of King Saud University - Computer and Information Sciences
Network Security and Intrusion Detection
article

TCG-CMAID: Network traffic anomaly detection based on tri-modal collaborative feature encoding and cross-modal attention fusion

Liang Wan, Longsheng Wang
article en

Abstract

Network attacks exhibit complex patterns at multiple levels of granularity, and substantial differences in class frequencies make minority attacks prone to confusion and missed detection. This paper proposes TCG-CMAID, a network traffic anomaly detection method based on tri-modal collaborative feature encoding and cross-modal attention fusion. The method constructs three modalities from network traffic: flow-level statistics, packet-level session behavior statistics, and topology-level communication graphs. These modalities describe macroscopic connection behavior, fine-grained within-session transmission behavior, and structural relationships among communicating entities, respectively. A tri-modal collaborative feature encoding (TCFE) module uses a dedicated encoder for each modality and maps the extracted features into a shared representation space. Directed cyclic latent-subspace cross-modal attention and three-way joint gated attention then enhance complementary information and assign sample-specific modality contributions. Experiments use fixed stratified random splits of CICIDS2017 and CICIoT2023 subsets. Compared with eight baselines, including XG-NID, TCG-CMAID achieves the best mean values for all six metrics on the CICIDS2017 binary task, with an attack-class F1-score of 99.971%. On the 11-class task, it achieves the highest balanced accuracy and the lowest attack-detection false-negative rate, with a Macro F1 of 95.706%. On the five-class CICIoT2023 subset, its binary attack-class F1-score reaches 96.318%; on the five-class task, it achieves the best mean values for all five metrics, with a Macro F1 of 85.633%, exceeding the second-best method by 5.340 percentage points. Ablation results further support the complementarity of the three modalities and the positive contribution of each fusion component to mean Macro F1.

Journal of King Saud University - Computer and Information SciencesVol. 38(10)
Guizhou University (CN)
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