Skip to main content
QUICK REVIEW

[Paper Review] A Federated Learning Approach for Mobile Packet Classification

Evita Bakopoulou, Bálint Tillman|arXiv (Cornell University)|Jul 30, 2019
Internet Traffic Analysis and Secure E-votingComputer Science67 references25 citations
TL;DR

This paper proposes a federated learning framework for mobile packet classification that trains global models without sharing raw packet data, using only model parameters. It achieves high F1 scores (up to 0.95) for detecting PII exposure and ad requests while minimizing communication and computation costs on mobile devices.

ABSTRACT

In order to improve mobile data transparency, a number of network-based approaches have been proposed to inspect packets generated by mobile devices and detect personally identifiable information (PII), ad requests, or other activities. State-of-the-art approaches train classifiers based on features extracted from HTTP packets. So far, these classifiers have only been trained in a centralized way, where mobile users label and upload their packet logs to a central server, which then trains a global classifier and shares it with the users to apply on their devices. However, packet logs used as training data may contain sensitive information that users may not want to share/upload. In this paper, we apply, for the first time, a Federated Learning approach to mobile packet classification, which allows mobile devices to collaborate and train a global model, without sharing raw training data. Methodological challenges we address in this context include: model and feature selection, and tuning the Federated Learning parameters. We apply our framework to two different packet classification tasks (i.e., to predict PII exposure or ad requests in HTTP packets) and we demonstrate its effectiveness in terms of classification performance, communication and computation cost, using three real-world datasets.

Motivation & Objective

  • Address privacy concerns in mobile packet classification by eliminating the need to share raw packet logs containing sensitive information.
  • Enable collaborative model training across mobile devices without centralizing user data, preserving user privacy.
  • Develop a lightweight, efficient framework suitable for mobile deployment with minimal communication and computation overhead.
  • Demonstrate effectiveness in classifying PII exposure and ad requests using real-world datasets and federated learning.
  • Propose a reduced feature space based on HTTP keys to limit exposure of sensitive information during training.

Proposed method

  • Apply federated learning to train a global classifier across mobile devices, where only model parameters (not raw data) are shared with a central server.
  • Use a feature space consisting only of HTTP keys from URI, Cookie fields, custom headers, and file request presence to reduce privacy leakage.
  • Train models using stochastic gradient descent (SGD) with support vector machines (SVM) and evaluate performance against decision trees.
  • Implement knowledge transfer from SVM to decision trees to improve interpretability while maintaining high F1 scores.
  • Optimize federated learning hyperparameters (e.g., communication rounds, learning rate) to balance convergence and efficiency.
  • Leverage secure aggregation and differential privacy mechanisms as potential extensions to further protect model updates.

Experimental results

Research questions

  • RQ1Can federated learning be effectively applied to mobile packet classification while preserving user privacy?
  • RQ2How does the performance of federated learning compare to centralized and local training in terms of F1 score for PII and ad request detection?
  • RQ3What feature representation minimizes privacy leakage while maintaining classification accuracy in HTTP packet analysis?
  • RQ4Can knowledge transfer from an SVM to a decision tree improve model interpretability without sacrificing performance?
  • RQ5What is the communication and computation cost of federated learning in a mobile environment with real-world packet traces?

Key findings

  • The federated learning approach achieves an F1 score of 0.95 for PII exposure detection and comparable performance for ad request detection, matching centralized models.
  • The proposed feature space based on HTTP keys reduces privacy risks by excluding sensitive values such as PII from features.
  • Knowledge transfer from SVM to decision trees preserves F1 score (0.94 vs. 0.95) while enabling efficient deployment on mobile devices.
  • The federated framework achieves high performance with minimal communication and computation costs, making it suitable for mobile deployment.
  • The method outperforms local training and is comparable to centralized training, offering strong privacy guarantees.
  • The framework is extensible to other packet classification tasks such as fingerprinting, provided labeled packet traces are available.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.