Swapping Faces, Saving Features: A Dual-Purpose Pipeline for Pedestrian Privacy in ITS
Summary
A five-stage pipeline has been developed to protect pedestrian privacy in Intelligent Transportation Systems (ITS) datasets while maintaining essential facial attributes for AI model training. Tailored for urban Egyptian images, the pipeline integrates Pedestrian Detection (YOLOV11), Face Detection (SCRFD), Quality Enhancement (Codeformer), Face Swapping, and Blending (OpenCV's SeamlessClone). The work evaluated Roop and Ghost-v2 face-swapping models, finding Roop superior in preserving facial expressions, structure, and pose, and more robust in challenging scenarios like occluded faces or veiled women. Ghost-v2 showed better identity concealment but struggled with realism and attribute preservation in complex cases. The pipeline successfully maintained critical features like "looking/not looking" for downstream tasks such as pedestrian intention prediction.
Key takeaway
For Machine Learning Engineers developing privacy-preserving datasets for autonomous vehicles, consider implementing a multi-stage face-swapping pipeline. This approach effectively conceals pedestrian identities while preserving crucial facial attributes like gaze and expression for model training. You should prioritize models like Roop, which demonstrated superior robustness and attribute preservation over Ghost-v2, especially with diverse urban imagery and low-resolution inputs. Integrate quality enhancement for optimal results.
Key insights
Face swapping offers a balanced approach to pedestrian privacy and data usability for ITS AI model training.
Principles
- Privacy methods must preserve data usability.
- Face swapping maintains natural facial structure.
- Robustness is key for real-world urban datasets.
Method
A five-stage pipeline: pedestrian detection (YOLOV11), face detection (SCRFD), quality enhancement (Codeformer), face swapping (Roop), and blending (OpenCV SeamlessClone).
In practice
- Use Roop for robust face swapping.
- Integrate Codeformer for low-res image quality.
- Evaluate identity concealment via cosine similarity.
Topics
- Intelligent Transportation Systems
- Pedestrian Privacy
- Face Swapping
- Autonomous Vehicles
- Computer Vision
- Data Anonymization
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, Computer Vision Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.AI updates on arXiv.org.