基於兩階段半監督式聯邦持續學習之多類別網路入侵偵測
Two-Stage Semi-Supervised Federated Continual Learning for Multi-Class Network Intrusion Detection
摘要
在真實網路環境中部署深度學習式入侵偵測系統面臨諸多挑戰:攻擊手法持續演變、標註資料難以大量取得、各監測節點的流量分布各異,且攻擊類別間存在嚴重的數量落差。現有研究多半各自處理上述問題,但在真實部署中,這些限制往往同時出現且彼此交互,使得僅針對單一問題設計的方法難以直接套用於此一複合情境。
本論文提出 TS-SFCL(雙階段半監督聯邦持續學習)框架。該框架將偵測流程分為二元偵測階段與攻擊分類階段,各自擁有獨立的訓練目標與聯邦聚合策略。框架以一個在來源資料集上預訓練的模型為起點,透過免存取來源資料(source-free)的領域適應策略,適應至部署環境。當新型攻擊出現時,分類頭透過動態擴展與逐類別聚合機制將其納入,使模型在學習新類別的同時保留既有知識。為降低對標註資料的依賴,框架在暖身訓練後透過多階段的信心度與資訊熵篩選,為未標註流量指派可靠的偽標籤。類別平衡的記憶回放在跨任務學習中維持先前學習的辨識能力,並以漂移偵測機制在流量分布發生變化時自適應調整訓練強度。
本框架在三個涵蓋不同網路環境、類別不平衡模式及預訓練模型重疊程度的資料集(CIC-IDS2017、TON-IoT 及自建 Testbed)上進行評估。實驗結果顯示,TS-SFCL 在三個資料集上均維持穩定的多類別偵測效能,在僅使用部分標註資料的條件下,達到與近期全監督聯邦持續學習方法相當的偵測準確度。
本論文提出 TS-SFCL(雙階段半監督聯邦持續學習)框架。該框架將偵測流程分為二元偵測階段與攻擊分類階段,各自擁有獨立的訓練目標與聯邦聚合策略。框架以一個在來源資料集上預訓練的模型為起點,透過免存取來源資料(source-free)的領域適應策略,適應至部署環境。當新型攻擊出現時,分類頭透過動態擴展與逐類別聚合機制將其納入,使模型在學習新類別的同時保留既有知識。為降低對標註資料的依賴,框架在暖身訓練後透過多階段的信心度與資訊熵篩選,為未標註流量指派可靠的偽標籤。類別平衡的記憶回放在跨任務學習中維持先前學習的辨識能力,並以漂移偵測機制在流量分布發生變化時自適應調整訓練強度。
本框架在三個涵蓋不同網路環境、類別不平衡模式及預訓練模型重疊程度的資料集(CIC-IDS2017、TON-IoT 及自建 Testbed)上進行評估。實驗結果顯示,TS-SFCL 在三個資料集上均維持穩定的多類別偵測效能,在僅使用部分標註資料的條件下,達到與近期全監督聯邦持續學習方法相當的偵測準確度。
Deploying deep learning-based network intrusion detection in real-world environments is challenging because attack patterns evolve over time, labeled traffic is scarce, monitoring nodes observe heterogeneous traffic distributions, and attack classes are severely imbalanced. Existing methods typically address these challenges independently, limiting their effectiveness in practical deployments.
This thesis proposes TS-SFCL, a Two-Stage Semi-Supervised Federated Continual Learning framework for multi-class network intrusion detection. The framework combines source-free domain adaptation, dynamic head expansion with class-wise aggregation, pseudo-labeling for unlabeled traffic, and class-balanced memory replay to enable continual adaptation while reducing annotation requirements and retaining learned attack classes.
The framework is evaluated on CIC-IDS2017, TON-IoT, and the Custom Testbed. Results demonstrate stable multi-class detection performance across diverse network environments, achieving accuracy comparable to a recent fully supervised federated continual learning method while using limited labeled data.
This thesis proposes TS-SFCL, a Two-Stage Semi-Supervised Federated Continual Learning framework for multi-class network intrusion detection. The framework combines source-free domain adaptation, dynamic head expansion with class-wise aggregation, pseudo-labeling for unlabeled traffic, and class-balanced memory replay to enable continual adaptation while reducing annotation requirements and retaining learned attack classes.
The framework is evaluated on CIC-IDS2017, TON-IoT, and the Custom Testbed. Results demonstrate stable multi-class detection performance across diverse network environments, achieving accuracy comparable to a recent fully supervised federated continual learning method while using limited labeled data.