跳转到内容

C302 第 3 课:对每一路数据流做匿名化

对第一人称视频做匿名化,比模糊固定相机拍到的人脸更难。当前的采集设备有双目或多相机的头戴部分,往往还有腕戴相机,每一路数据流都可能拍到旁观者的脸或一部没有锁屏的手机,包括灰度的追踪相机。头部运动很快,鱼眼镜头会让靠近画面边缘的人脸变小、变形,而佩戴者的手通常都在视野里(素材匿名化)。本课讲的是方法和它们的局限,不是法律意见;各个工具的对比见匿名化工具对比。

另见术语表的隐私部分。

术语 含义
PII Personally identifiable information(个人可识别信息):一张脸、一块车牌、信封上的名字、一个人的声音
去标识化(De-identification) 在数据发布之前,去掉或遮蔽能识别出一个人的信息
IoU Intersection over Union(交并比):预测框与真实框重叠的程度;这里引用的论文在 IoU ≥ 0.5 时把一次检测算作正确
平均召回率(Average recall,AR) 真实的人脸或车牌中被检测器找到的比例。对隐私来说这一项最重要,因为漏检就是一次泄露
被截断的人脸(Truncated face) 被画面边缘切掉一部分的人脸
SLAM 相机(SLAM camera) 用来追踪头部位置的灰度相机;它仍然会拍到旁观者

凡是说明了自己遮蔽做法的公开第一人称数据集,用的都是最简单的方法:在每一路数据流的每一帧上运行一个目标检测器,把每一个检测到的框模糊、打马赛克或涂黑(在入库时检测并模糊)。它在入库时运行,在标注员或研究者打开素材之前,因为素材里的旁观者从来没有同意被看到,而接下来处理数据的人需要的是任务,不是人脸;GDPR 的数据最小化原则(第 5(1)(c) 条)指向同一个方向。

Detect-and-blur anonymisation with human review Four steps left to right. One: run a face and licence-plate detector on every frame of every camera stream, RGB and greyscale. Two: enlarge each detected box and blur or black it out. Three: human review, where reviewers look for missed faces, often with a tracker proposing boxes across frames, and blur by hand what detectors do not cover, such as screens, documents, addresses, tattoos and reflections. Four: the released copy. A dashed amber path below marks streams that face and plate detectors do not touch and that need their own handling, by removing, muting or getting consent: audio, which carries voices, and inward eye-tracking images. A note gives Ego4D's published cost: 780 hours of manual labour to de-identify 500 hours of video. 1. Detect faces and plates, every frame, every camera: RGB and greyscale 2. Obscure enlarge each box, then blur or black it out 3. Human review find missed faces; blur screens, documents, addresses, tattoos, reflections by hand 4. Release the redacted copy Not touched by face detectors audio (voices), eye-tracking images handled separately: remove, mute or get consent Ego4D: 780 hours of manual labour to de-identify 500 hours of video
Detect-and-blur anonymisation as public egocentric datasets describe it: a detector on every frame of every camera stream, enlarged boxes blurred or blacked out, and human review for misses and for what detectors don't cover. Audio and eye-tracking images bypass face detectors and need their own handling. The labour figure is Ego4D's own.

有两个开源工具在实用指南中反复出现。Meta 的 EgoBlur 检测人脸和车牌,并提供分开的 Gen1 和 Gen2 模型,每一代 Aria 硬件对应一个;它的 README 说要 “Use the model generation that matches your data”(意为:使用与你的数据相匹配的那一代模型)。deface 只检测人脸,用的是 CenterFace 网络,“analyzing each video frame independently”(意为:独立地分析每一个视频帧),并且 “By default all audio tracks are discarded as well”(意为:默认情况下所有音轨也会被丢弃)。实验会运行其中的一个。

生成式人脸替换也存在(DeepPrivacy),但公开的第一人称数据集用的是模糊或黑框;HD-EPIC 选择黑框,是 “to avoid potential regeneration”(意为:为了避免潜在的重新生成)(为什么公开的第一人称数据集仍然使用模糊)。

一个检测器在第三人称基准上的得分,说明不了它在你的采集设备上的表现。在 EgoBlur 论文中,三个检测器在一个第三人称基准上的得分几乎相同,AR 为 0.99 到 0.998。在 Aria 的头戴素材上它们拉开了差距(检测器在 Aria 素材上的表现):

人脸,Aria Pilot 测试集 MediaPipe AR RetinaFace AR EgoBlur AR
RGB 0.533 0.905 0.938
灰度 0.390 0.825 0.899
RGB,在画面边缘被截断 0.059 0.370 0.430
Face detector recall on head-worn RGB footage Grouped bars of average recall, from 0 to 1, for three face detectors on the RGB stream of the Aria Pilot Dataset test set, at IoU 0.5, as published in the EgoBlur paper. All faces: MediaPipe 0.533, RetinaFace 0.905, EgoBlur 0.938. Wearing glasses: 0.504, 0.927, 0.957. Non-frontal: 0.290, 0.877, 0.928. Occluded: 0.359, 0.851, 0.892. Too dark: 0.109, 0.818, 0.854. Truncated at the frame edge: 0.059, 0.370, 0.430. Every detector does worst on faces cut off at the edge of the frame. 0 0.2 0.4 0.6 0.8 1 Average recall (share of faces found), IoU 0.5 All faces 0.533 0.905 0.938 Wearing glasses 0.504 0.927 0.957 Non-frontal 0.290 0.877 0.928 Occluded 0.359 0.851 0.892 Too dark 0.109 0.818 0.854 Truncated at the edge 0.059 0.370 0.430 MediaPipe RetinaFace EgoBlur
Face detector recall on head-worn RGB footage (Aria Pilot Dataset test set, IoU 0.5), from the EgoBlur paper's tables. Recall drops for faces that are non-frontal, occluded or dark, and collapses for faces cut off at the frame edge, which is common with a head camera. At 30 fps even 90% recall leaves several missed frames for every few seconds a bystander is in view.

很小的漏检率在视频里会累积起来。在 30 fps 下,一名在视野中停留 3 秒的旁观者出现在 90 帧里;在 90% 的召回率下,这平均是大约 9 个漏检帧,而且漏检集中在召回率最低的地方。DashcamCleaner 的 README 指出,哪怕只漏掉一帧,“usually 1/30th of a second long, still means the license plate or face could easily be identified”(意为:通常只有 1/30 秒长,仍然意味着车牌或人脸可以被轻易识别出来)。

来自素材匿名化:

  1. 被截断的人脸。有文献记录的应对办法是借助时间上的信息(把框延续到相邻帧)、更大的遮罩,以及在 Ego4D 的例子中,对每一段视频做人工复核。
  2. 灰度相机和额外的相机。每一路数据流都需要同样的遮蔽。HD-EPIC 不仅在 RGB 中,也 “in the two gray-scaled SLAM cameras stored in the VRS files”(意为:在存储于 VRS 文件中的两台灰度 SLAM 相机里)遮蔽了它要遮蔽的帧。
  3. 佩戴者的手。阈值越低,抓到的人脸越多,被模糊的非人脸也越多。deface 的 README 用它自己的例子展示了这一点:“–thresh 0.02 (notice the false positives, e.g. at hand regions)”(意为:–thresh 0.02(注意误检,例如在手部区域))和 “–thresh 0.7 (notice the false negatives, especially at partially occluded faces)”(意为:–thresh 0.7(注意漏检,尤其是在部分被遮挡的人脸上))。在操作类素材上,手上的一次模糊恰恰挡住了要录制的东西,所以阈值必须在你自己的视频片段上测出来;实用指南中没有任何来源给出头戴视频的数值。
  4. 小人脸与推理分辨率。宽视场镜头把远处的人脸变得很小。deface 警告说,在远高于 720p 的输入上 “even detection accuracy can suffer”(意为:连检测精度都可能受损),并提供 --scale,只在检测时降采样。

在 RGB 视频上做人脸模糊,其他所有渠道都原封不动(人脸和车牌之外):

渠道 已发表的工作是怎么做的
屏幕 实用指南中没有任何开源工具检测屏幕;在 Ego4D 中,手机屏幕和密码是人工模糊的
文件、卡片、反射影像 Ego4D 把 “an address on an envelope”(意为:信封上的地址)和 “a reflection of the wearer’s face on a mirror or a surface”(意为:佩戴者的脸在镜子或某个表面上的反射影像)列为意外出现的 PII;EPIC-KITCHENS 让参与者移走 “portraits or mirrors”(意为:肖像或镜子)
声音 丢弃(deface 的默认做法),应参与者的要求移除(Ego4D 的 Indiana 站点),剪裁到选定的声道(HD-EPIC),或只在场景中每个人都同意的情况下保留(Ego4D 的社交基准)
眼部图像 HD-EPIC 在计算出注视之后移除了 “the gaze camera input from all VRS files for anonymity”(意为:所有 VRS 文件中的注视相机输入,以实现匿名)
GNSS、Wi-Fi、蓝牙 在 Nymeria 中,眼镜上的这些功能被关闭

有一个陷阱:EgoBlur 用于 Aria Gen2 文件的 egoblur-vrs-blur 工具说,非相机数据流,其中包括 “eye tracking”(意为:眼动追踪),“are copied verbatim”(意为:会被原样复制)。眼部图像会原样保留下来,需要单独的一步来处理。

据我们所知,实用指南所涵盖的公开第一人称数据集中,没有一个使用了语音转换或说话人匿名化;它们的做法是移除、静音或取得同意。

Ego4D 使用了商业检测器,然后复核每一份输出,查找误检和漏检;姓名、地址、“phone screens/passwords or tattoos had to be manually identified and blurred per-frame”(意为:手机屏幕/密码或纹身必须由人工逐帧识别并模糊)。在 Carnegie Mellon 的样例流程中,“to de-identify 500 hours of video data, it took 780 hours of manual labor”(意为:为了对 500 小时的视频数据做去标识化,花了 780 小时的人工),并且 “Videos captured outdoors could take 10x the length of the video to carefully redact”(意为:在户外采集的视频,要仔细遮蔽可能需要视频时长 10 倍的时间)。要为它留出预算(Ego4D 中的人工复核)。

  1. 一个检测器在一个第三人称人脸基准上的召回率接近完美。你能在头戴采集设备的灰度追踪相机上信任它吗?
  2. 你模糊后的视频片段有一半时间挡住了佩戴者的手。是什么变了,把它改回去的代价是什么?
  3. 所有被测的检测器最不容易找到的是哪一类人脸,这对宽视场的头戴和腕戴相机为什么重要?
  4. 你在一段 Aria Gen2 录制上运行了 EgoBlur 的 VRS 工具。哪一路数据流仍然没有被处理?
  5. 说出人脸和车牌检测器抓不到的三种 PII。
  1. 不能。在 EgoBlur 论文中,在第三人称基准上彼此相差不到 0.008 的检测器,在头戴灰度素材上相差最多达 0.509。要在你自己每一路数据流的帧上测量召回率。
  2. 检测阈值很可能太低了:阈值越低,被模糊的非人脸(例如手)越多。把它调高会让漏检的人脸回来,所以在选择之前,要在你自己的视频片段上把两者都测出来。
  3. 被截断的人脸,也就是被画面边缘切掉的人脸(EgoBlur 在 RGB 上为 0.430)。宽视场镜头常常把旁观者放在画面边缘。
  4. 眼动追踪数据流,以及其他非相机数据流;该工具把它们原样复制。
  5. 以下任意三种:屏幕、文件和地址、卡号、纹身、反射影像、声音、眼部图像。