Efficient Network Traffic Classification and Visualizing Abnormal Part Via Hybrid Deep Learning Approach : Xception + Bidirectional GRU

Hanseon Joo, Hayoung Choi, ChangHui Yun, Minjong CheonGlobal 2022

Abstract

Due to a rapid development in the field of information and communication, the information technologies yielded novel changes in both individual and organizational operations. Therefore, the accessibility of information became easier and more convenient than before, and malicious approaches such as hacking or spying aimed at various information kept increasing. With the aim of preventing malicious approaches, both classification and detecting malicious traffic are vital. Therefore, our research utilized various deep learning and machine learning models for better classification. The given dataset consists of normal and malicious data and these data types are png files. In order to achieve precise classification, our experiment consists of three steps. Firstly, only vanilla CNN was used for the classification and the highest score was 86.2%. Second of all, for the hybrid approach, the machine learning classifiers were used instead of fully connected layers from the vanilla CNN and it yielded about 87% with the extra tree classifier. At last, the Xception model was combined with the bidirectional GRU and it attained a 95.6% accuracy score, which was the highest among all.

Introduction

As cyber threats like DDoS attacks and sophisticated hacking become more frequent, traditional network intrusion detection systems (IDS) are struggling to keep up. Most existing research relies on analyzing CSV-based metadata (like source IP, port, and packet length), which can be limited in scope. This paper proposes a novel approach by converting raw network traffic into image files (PNGs), allowing researchers to leverage advanced Computer Vision (CV) techniques to identify structural patterns in malicious code that might be missed in standard spreadsheet formats.

The study utilized a dataset sourced from Kaggle, consisting of 856 total images (518 malicious and 338 normal traffic photos) derived from PCAP (packet capture) data. To address the relatively small dataset size, the authors employed data augmentation and normalization techniques to prepare the data for deep learning models.

Methodology

The researchers took a three-tiered experimental approach to find the optimal architecture for traffic classification:

  1. Vanilla CNN Baseline: A standard convolutional neural network was tested with various optimizers (Adam, Nadam, SGD, RMSprop) to establish a performance floor.
Standard CNN architecture used as a baseline for traffic classification.
  1. CNN + Machine Learning Hybrid: This stage used the CNN as a feature extractor but replaced the final fully connected classification layers with traditional tree-based algorithms like Random Forest and Extra Trees.
  2. Proposed Hybrid (Xception + Bi-GRU): This core innovation combines the spatial feature extraction of the Xception architecture with the sequential processing of Bidirectional GRUs. While Xception captures spatial patterns within the traffic images using depth-wise separable convolutions, the Bi-GRU processes the data in both forward and backward directions to capture vital temporal dependencies.

Results and Discussion

The progression of experiments clearly demonstrated the superiority of the hybrid spatial-temporal approach. The Vanilla CNN peaked at 86.2% accuracy, while the CNN + Extra Trees hybrid reached 87%. The proposed Xception + Bi-GRU model significantly outperformed all others, attaining a 95.6% accuracy score.

To address the "black box" nature of deep learning, the authors applied Grad-CAM (Gradient-weighted Class Activation Mapping). This algorithm produces a heatmap over the input image, highlighting the specific regions that led the model to its classification.

Grad-CAM visualization highlighting abnormal regions (red) in malicious network traffic.

As visualized in the heatmaps, malicious traffic often contains specific "abnormal parts" (highlighted in red) that differ significantly from the uniform patterns of normal traffic. This visual evidence provides essential explainability for security analysts performing network forensics.

Conclusion

By combining Xception and Bi-GRU, this research achieves high-performance classification while providing visual proof for its detections. While the current dataset size is a limitation, the results suggest that treating network traffic as image data is a highly effective strategy for modern IDS. Future work will focus on testing this architecture against larger, more diverse real-world datasets to ensure its robustness in high-volume enterprise environments.

Summary updated

BibTeX
@inproceedings{joo2022efficient,
  author = {Hanseon Joo and Hayoung Choi and ChangHui Yun and Minjong Cheon},
  title = {{Efficient Network Traffic Classification and Visualizing Abnormal Part Via Hybrid Deep Learning Approach : Xception + Bidirectional GRU}},
  booktitle = {Global},
  year = {2022},
  doi = {10.34257/gjcsthvol21is3pg1},
}
Figure