Cost-sensitive Convolutional Neural Network for Encrypted Traffic Classification
This paper addresses classification bias and low recognition rates for minority classes in encrypted traffic classification arising from imbalanced data.Traditional convolutional neural networks tend to favor the majority class in such scenarios,prompting a dynamic weight adjustment strategy.In this approach,during each training iteration,sample weights are adaptively adjusted based on feedback from the cost-sensitive layer.If a minority class sample is misclassified,its weight increases,urging the model to focus on such samples in future training.This strategy continually refines the model's predictions,enhancing minor-ity class recognition and effectively tackling class imbalance.To prevent overfitting,an early stopping strategy is employed,halt-ing training when validation performance deteriorates consecutively.Experiments reveal that the proposed model significantly ex-cels in addressing class imbalance in encrypted traffic classification,achieving accuracy and F1 scores over 0.97.This study presents a potential solution for encrypted traffic classification amidst class imbalance,contributing valuable insights to network security.
convolutional neural networkcost-sensitive learningencrypted traffic classificationclass-imbalanceloss function