Learning to detect PII: Tabular vs. Document classification models for network traffic analysis
Detecting Personally Identifiable Information (PII) exfiltration from mobile network traffic is critical for preserving user privacy. Traditional approaches rely on machine learning classifiers trained on manually engineered features extracted from network packets. Deep learning offers the potential to remove the reliance on such an external feature selection process; however, its effectiveness depends significantly on how underlying packets are encoded. In this work, we investigate deep learning paradigms for PII detection with a focus on the impact of feature encoding strategies. We explore tabular modeling approaches, including both an existing architecture (FT-Transformer) and proposed modular frameworks that integrates a pretrained language model (all-MiniLM-L6-v2) for semantic feature embeddings, followed by a classifier. We also evaluate document classification modeling by applying pretrained language models such as TinyBERT directly to the raw packet content. We further demonstrate the feasibility of on-device inference by deploying trained models using ONNX and TensorFlow Lite. Finally, we recommend modeling strategies based on data size , performance , resource utilization , and generalizability , enabling model selection according to the primary requirement of the deployment scenario. • Dual modeling evaluation of deep learning methods for PII detection in mobile traffic. • Modular frameworks integrating LLM-based feature embeddings and classifiers for structured packet data. • Transformer models enabling efficient document classification of raw packet content. • Practical demonstration of on-device inference using ONNX and TensorFlow Lite models on mobile devices. • Comparative analysis on real-world datasets guiding model selection based on various constraints.
Authors
- Manoj Singh Gaur (ORCID: https://orcid.org/0000-0002-0497-721X)
- Rishika Kohli
- Shaifu Gupta (ORCID: https://orcid.org/0000-0002-7146-9012)
- Soma S. Dhavala (ORCID: https://orcid.org/0000-0002-6354-8992)
Institutions
- Indian Institute of Technology Jammu (IN)
Publication Details
- Journal
- Journal of Information Security and Applications
- Published
- 2025-08-25
- DOI
- https://doi.org/10.1016/j.jisa.2025.104196
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00