跳到正文
r/MachineLearning· /u/AdventurousWear618·· 3 小时前AI 评分27

如何用无标注网络流量数据训练 Transformer 做 App 识别

stuck on finding a approach for app detection ( making a transformer modal out of unlabeled network data) [R] [P]

AI 导读

有开发者尝试用无标注网络流量训练 Transformer 识别 3-5K 款 App,但仅有约 100 款 App 的少量标注数据。其数据按约 15 秒窗口切分,每个窗口含多条网络流及域名、协议、收发字节、时间戳等特征,难点是同一 App 在不同窗口的流量差异大、部分窗口极稀疏。

正文

As the title suggests I'm currently trying to make a modal to identify which app is being used. The thing is I don't have labelled data and generating it is out of question since that is a lot of work ( I need to detect like 3-5K apps give or take)

my data is structured roughly like this:

  • Traffic is divided into ~15-second windows/bags.
  • Each bag contains multiple network flows.
  • Each flow has features such as:
    • domain
    • protocol
    • bytes sent
    • bytes received
    • timestamp/timing information
  • I have a very large amount of unlabeled traffic data, but only a relatively small amount of labelled app data for about 100 apps give or take.

The main challenge is that traffic from the same app can look diff between diff window i.e some windows are extremely sparse or empty.

some ideas I have researched looked into are

  • self supervised contrastive learning where diff traffic windows from the same session/device activity are treated as positive pairs
  • masked modelling similar to bert where parts of the flows such as domains/protocols/byte information are masked and reconstructed
  • pretraining an encoder and then fine-tuning it using the smaller labelled dataset (thinking we would need less labelled examples to do that)
  • clustering and mapping embeddings to known apps afterward (gradually)

one thing I'm concerned about is accidently teaching the modal to recognize the device/session/user rather then the underlying app

I think I would like to know if I'm thinking about the problem right or if someone has worked on something similar and can give me some pointers or what experiements should I run first.

any papers, architecture or similar problems you think I should look into pls lmk

submitted by /u/AdventurousWear618
[link] [留言]

来源:r/MachineLearning · reddit.com