Evaluating the Impact of Data Anonymization on Image Retrieval
Organizations: Institute of Applied AI, Stuttgart Media University, Nobelstr. 10, 70569 Stuttgart, Germany
Abstract
With the growing importance of privacy regulations such as the General Data Protection Regulation, anonymizing visual data is becoming increasingly relevant across institutions. However, anonymization can negatively affect the performance of Computer Vision systems that rely on visual features, such as Content-Based Image Retrieval (CBIR). Despite this, the impact of anonymization on CBIR has not been systematically studied. This work addresses this gap, motivated by the DOKIQ project, an artificial intelligence-based system for document verification actively used by the State Criminal Police Office Baden-Württemberg. We propose a simple evaluation framework: retrieval results after anonymization should match those obtained before anonymization as closely as possible. To this end, we systematically assess the impact of anonymization using two public datasets and the internal DOKIQ dataset. Our experiments span three anonymization methods, four anonymization degrees, and four training strategies, all based on the state of the art backbone Self-Distillation with No Labels (DINO)v2. Our results reveal a pronounced retrieval bias in favor of models trained on original data, which produce the most similar retrievals after anonymization. The findings of this paper offer practical insights for developing privacy-compliant CBIR systems while preserving performance.
Figures & tables
| Source | Anonymization methods | Anonymized entities | Retraining on anonymized data | Validation dataset | Vision tasks |
| [ 7 ] , 2022 | Synthetic, traditional | Humans, license plates | Yes | Original | Semantic segmentation |
| [ 8 ] , 2023 | Synthetic, traditional | Humans | Yes | Original | Instance/ semantic segmentation, pose estimation |
| [ 9 ] , 2024 | Traditional | Humans, vehicles | Yes | Original | Instance/ semantic segmentation, pose estimation, object detection |
| [ 10 ] , 2024 | Synthetic, traditional | Humans | No | Anonymized | Instance/ semantic segmentation, keypoint detection, face detection |
| Ours, 2025 | Traditional | Humans, documents | Yes | Anonymized | Image retrieval/ classification |
| Model | Anonymization method |
| With original query images | |
| Unadapted | |
| Adaption A | |
| Adaption B | |
| Adaption C | |
| With anonymized query images | |
| Model | Anonymization method and anonymization degree | |
| With original query images | ||
| Unadapted | ||
| Adaption A | ||
| Adaption B | ||
| Adaption C | ||
| With anonymized query images | ||
| Model | Anonymization method |
| With original query images | |
| Unadapted | |
| Adaption A | |
| Adaption B | |
| Adaption C | |
| With anonymized query images | |
| mAP | mnDCG 989 | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| With original query images | ||||||||
| Unadapted | 73.2 | 67.3 | 31.0 | 94.2 | 92.6 | 77.1 | ||
| Adaption A | 57.0 | 50.6 | 13.7 | 89.3 | 86.8 | 64.2 | ||
| Adaption B | 38.5 | 50.8 | 13.6 | 81.6 | 86.9 | 64.1 | ||
| Adaption C | 45.4 | 23.8 | 10.2 | 84.7 | 71.3 | 58.6 | ||
| k-NN | Linear | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| Unadapted | 87.9 | 86.3 | 84.2 | 90.6 | 89.9 | 85.5 | ||
| Adaption A | 85.9 | 86.3 | 71.1 | 89.4 | 89.7 | 77.3 | ||
| Adaption B | 80.4 | 85.6 | 71.6 | 84.4 | 88.7 | 77.9 | ||
| Adaption C | 85.1 | 89.8 | 78.9 | 89.0 | 93.4 | 82.8 | ||
| mAP | mnDCG 1998 | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| With original query images | ||||||||
| Unadapted | 71.5 | 85.4 | 55.4 | 93.2 | 97.2 | 87.5 | ||
| Adaption A | 57.2 | 60.7 | 23.2 | 88.8 | 90.1 | 68.6 | ||
| Adaption B | 53.3 | 59.0 | 38.0 | 87.3 | 89.5 | 79.3 | ||
| Adaption C | 53.9 | 59.6 | 28.3 | 87.5 | 89.7 | 72.9 | ||
| k-NN | Linear | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| Unadapted | 64.7 | 67.8 | 62.7 | 60.2 | 62.4 | 59.9 | ||
| Adaption A | 67.1 | 68.0 | 47.0 | 62.0 | 62.8 | 50.5 | ||
| Adaption B | 63.9 | 67.6 | 62.7 | 59.8 | 62.7 | 60.0 | ||
| Adaption C | 65.5 | 67.6 | 57.7 | 60.9 | 62.0 | 57.9 | ||
| mAP | mnDCG 1998 | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| With original query images | ||||||||
| Unadapted | 34.6 | 50.5 | 28.0 | 75.4 | 85.7 | 71.7 | ||
| Adaption A | 16.3 | 39.9 | 6.7 | 62.4 | 80.2 | 51.4 | ||
| Adaption B | 24.2 | 17.8 | 18.0 | 67.4 | 62.3 | 61.2 | ||
| Adaption C | 22.5 | 16.2 | 14.8 | 66.2 | 58.7 | 57.4 | ||
| k-NN | Linear | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| Unadapted | 55.2 | 67.8 | 58.3 | 54.1 | 62.6 | 56.0 | ||
| Adaption A | 40.1 | 66.0 | 34.9 | 45.1 | 61.8 | 40.8 | ||
| Adaption B | 52.1 | 56.8 | 59.8 | 52.9 | 55.7 | 56.3 | ||
| Adaption C | 54.4 | 52.5 | 61.9 | 55.0 | 54.0 | 57.6 | ||
| mAP | mnDCG 750 | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| With original query images | ||||||||
| Unadapted | 65.7 | 50.8 | 43.2 | 92.9 | 88.2 | 85.4 | ||
| Adaption A | 45.6 | 43.7 | 36.9 | 87.9 | 86.8 | 83.9 | ||
| Adaption B | 46.1 | 43.9 | 37.5 | 88.0 | 87.1 | 84.1 | ||
| Adaption C | 42.8 | 36.8 | 33.9 | 86.4 | 83.1 | 81.6 | ||
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| mAP | mnDCG 1998 | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| With original query images | ||||||||
| Unadapted | 51.7 | 71.6 | 37.5 | 85.2 | 93.6 | 77.9 | ||
| Adaption A | 40.7 | 55.4 | 15.0 | 80.8 | 88.1 | 58.8 | ||
| Adaption B | 36.4 | 44.4 | 22.9 | 78.8 | 83.2 | 66.3 | ||
| Adaption C | 37.2 | 43.0 | 20.7 | 79.2 | 82.5 | 64.2 | ||
| k-NN | Linear | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| Unadapted | 60.6 | 66.1 | 58.1 | 58.1 | 61.7 | 57.0 | ||
| Adaption A | 59.2 | 66.8 | 38.6 | 57.1 | 62.2 | 46.3 | ||
| Adaption B | 56.3 | 62.0 | 56.5 | 55.5 | 58.7 | 56.6 | ||
| Adaption C | 58.2 | 60.9 | 56.0 | 56.7 | 58.1 | 55.8 | ||
| mAP | mnDCG 1998 | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| With original query images | ||||||||
| Unadapted | 41.0 | 59.5 | 31.4 | 79.4 | 89.4 | 73.8 | ||
| Adaption A | 36.2 | 49.3 | 7.0 | 77.7 | 85.3 | 51.5 | ||
| Adaption B | 29.4 | 32.0 | 20.1 | 72.9 | 75.5 | 63.9 | ||
| Adaption C | 27.4 | 29.4 | 17.6 | 71.5 | 73.5 | 60.8 | ||
| k-NN | Linear | |||||||
| Model | Pixel | Blur | Mask | Pixel | Blur | Mask | ||
| Unadapted | 57.0 | 65.2 | 56.8 | 55.6 | 61.5 | 55.7 | ||
| Adaption A | 57.6 | 66.0 | 34.6 | 55.7 | 62.2 | 41.7 | ||
| Adaption B | 54.9 | 58.5 | 57.0 | 55.1 | 56.8 | 55.9 | ||
| Adaption C | 53.2 | 57.3 | 56.5 | 54.0 | 56.6 | 55.5 | ||
Image Retrieval
Image retrieval finds and ranks images from visual, textual, or combined queries across large and specialized collections.
See all 85 papers