Perceptual hashing

Short description: Class of fingerprinting algorithm

Perceptual hashing is the use of a fingerprinting algorithm that produces a snippet, hash, or fingerprint of various forms of multimedia.[1][2] A perceptual hash is a type of locality-sensitive hash, which is analogous if features of the multimedia are similar. This is in contrast to cryptographic hashing, which relies on the avalanche effect of a small change in input value creating a drastic change in output value. Perceptual hash functions are widely used in finding cases of online copyright infringement as well as in digital forensics because of the ability to have a correlation between hashes so similar data can be found (for instance with a differing watermark).

## Contents

* 1 Development
* 2 Characteristics
* 3 See also
* 4 References
* 5 External links

## Development

The 1980 work of Marr and Hildreth is a seminal paper in this field.[3]

In 2009, Microsoft Corporation developed PhotoDNA in collaboration with Hany Farid, professor at Dartmouth College. PhotoDNA is a perceptual hashing capability developed to combat the distribution of child sexual abuse material (CSAM) online. Provided by Microsoft for no cost, PhotoDNA remains a critical tool used by major software companies, NGOs and law enforcement agencies around the world. [4]

The July 2010 thesis of Christoph Zauner is a well-written introduction to the topic.[5]

In June 2016 Azadeh Amir Asgari published work on robust image hash spoofing. Asgari notes that perceptual hash function like any other algorithm is prone to errors.[6]

Researchers remarked in December 2017 that Google image search is based on a perceptual hash.[7]

In research published in November 2021 investigators focused on a manipulated image of Stacey Abrams which was published to the internet prior to her loss in the 2018 Georgia gubernatorial election. They found that the pHash algorithm was vulnerable to nefarious actors.[8]

In August 2021 Apple announced an on-device CSAM scanner called NeuralHash but, after strong privacy backlash, paused the rollout in September and formally cancelled it in December 2022.[9]

Security researchers soon demonstrated that NeuralHash and similar deep perceptual hashes can be forced into collisions or evasion with imperceptible image changes.[10]

In October 2023 Meta introduced Stable Signature, an invisible watermark rooted in latent-diffusion generators, signalling a shift toward hybrid provenance schemes that combine watermarking with perceptual hashing.[11]

The open-source state of the art in 2025 was set by DINOHash, which adversarially fine-tunes self-supervised DINOv2 features and reports higher bit-accuracy under heavy crops, compression and adversarial gradient-based attacks than NeuralHash or classical DCT–DWT schemes.[12]

## Characteristics

Research reported in January 2019 at Northumbria University has shown for video it can be used to simultaneously identify similar contents for video copy detection and detect malicious manipulations for video authentication. The system proposed performs better than current video hashing techniques in terms of both identification and authentication. [13]

Research reported in May 2020 by the University of Houston in deep learning based perceptual hashing for audio has shown better performance than traditional audio fingerprinting methods for the detection of similar/copied audio subject to transformations.[14]

In addition to its uses in digital forensics, research by a Russian group reported in 2019 has shown that perceptual hashing can be applied to a wide variety of situations. Similar to comparing images for copyright infringement, the group found that it could be used to compare and match images in a database. Their proposed algorithm proved to be not only effective, but more efficient than the standard means of database image searching.[15]

A Chinese team reported in July 2019 that they had discovered a perceptual hash for speech encryption which proved to be effective. They were able to create a system in which the encryption was not only more accurate, but more compact as well.[16]

Apple Inc reported as early as August 2021 a child sexual abuse material (CSAM) system that they know as NeuralHash. A technical summary document, which nicely explains the system with copious diagrams and example photographs, offers that "Instead of scanning images [on corporate] iCloud [servers], the system performs on-device matching using a database of known CSAM image hashes provided by [the National Center for Missing and Exploited Children] (NCMEC) and other child-safety organizations."[17]

In an essay entitled "The Problem With Perceptual Hashes", Oliver Kuederle produces a startling collision generated by a piece of commercial neural net software, of the NeuralHash type. A photographic portrait of a real woman (Adobe Stock #221271979) reduces through the test algorithm to a similar hash as the photograph of a butterfly painted in watercolor (from the "deposit photos" database). Both sample images are in commercial databases. Kuederle is concerned with collisions like this. "These cases will be manually reviewed. That is, according to Apple, an Apple employee will then look at your (flagged) pictures... Perceptual hashes are messy. When such algorithms are used to detect criminal activities, especially at Apple scale, many innocent people can potentially face serious problems... Needless to say, I’m quite worried about this."[18]

Researchers have continued to publish a comprehensive analysis entitled "Learning to Break Deep Perceptual Hashing: The Use Case NeuralHash", in which they investigate the vulnerability of NeuralHash as a representative of deep perceptual hashing algorithms to various attacks. Their results show that hash collisions between different images can be achieved with minor changes applied to the images. According to the authors, these results demonstrate the real chance of such attacks and enable the flagging and possible prosecution of innocent users. They also state that the detection of illegal material can easily be avoided, and the system be outsmarted by simple image transformations, such as provided by free-to-use image editors. The authors assume their results to apply to other deep perceptual hashing algorithms as well, questioning their overall effectiveness and functionality in applications such as client-side scanning and chat controls.[19]

## See also

* Geometric hashing
* Reverse image search
* Digital video fingerprinting
* Audio fingerprinting

## References

1. ↑ Buldas, Ahto; Kroonmaa, Andres; Laanoja, Risto (2013). "Keyless Signatures’ Infrastructure: How to Build Global Distributed Hash-Trees". in Riis, Nielson H.. Secure IT Systems. NordSec 2013. Lecture Notes in Computer Science. 8208. Berlin, Heidelberg: Springer. doi:10.1007/978-3-642-41488-6_21. ISBN 978-3-642-41487-9. "Keyless Signatures Infrastructure (KSI) is a globally distributed system for providing time-stamping and server-supported digital signature services. Global per-second hash trees are created and their root hash values published. We discuss some service quality issues that arise in practical implementation of the service and present solutions for avoiding single points of failure and guaranteeing a service with reasonable and stable delay. Guardtime AS has been operating a KSI Infrastructure for 5 years. We summarize how the KSI Infrastructure is built, and the lessons learned during the operational period of the service."
2. ↑ Klinger, Evan; Starkweather, David. "pHash.org: Home of pHash, the open source perceptual hash library". http://www.phash.org/. "pHash is an open source software library released under the GPLv3 license that implements several perceptual hashing algorithms, and provides a C-like API to use those functions in your own programs. pHash itself is written in C++."
3. ↑ Marr, D.; Hildreth, E. (29 Feb 1980). "Theory of Edge Detection". Proceedings of the Royal Society of London. Series B, Biological Sciences 207 (1167): 187–217. doi:10.1098/rspb.1980.0020. PMID 6102765. Bibcode: 1980RSPSB.207..187M.
4. ↑ Lohr, Steve (December 2009). "Microsoft Tackles the Child Pornography Problem". New York Times. https://archive.nytimes.com/bits.blogs.nytimes.com/2009/12/16/microsoft-tackles-the-child-pornography-problem/.
5. ↑ Zauner, Christoph (July 2010). Implementation and Benchmarking of Perceptual Image Hash Functions. Upper Austria University of Applied Sciences, Hagenberg Campus. https://www.phash.org/docs/pubs/thesis_zauner.pdf.
6. ↑ Asgari, Azadeh Amir (June 2016). Robust image hash spoofing. Blekinge Institute of Technology. http://www.diva-portal.se/smash/get/diva2:946365/FULLTEXT01.pdf.
7. ↑ "Google Image Search Explained". Medium. 26 December 2017. https://alibaba-cloud.medium.com/google-image-search-explained-30af8ba9cbea.
8. ↑ Hao, Qingying; Luo, Licheng; Jan, Steve T.K.; Wang, Gang (2021). "It's Not What It Looks Like: Manipulating Perceptual Hashing based Applications". Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security. pp. 69–85. doi:10.1145/3460120.3484559. ISBN 978-1-4503-8454-4. https://gangw.cs.illinois.edu/PHashing.pdf.
9. ↑ Newman, Lily Hay (7 December 2022). "Apple Kills Its Plan to Scan Your Photos for CSAM. Here's What's Next". Wired. https://www.wired.com/story/apple-photo-scanning-csam-communication-safety-messages/. Retrieved 27 May 2025.
10. ↑ Struppek, Lukas; Hintersdorf, Dominik; Neider, Daniel; Kersting, Kristian (2022). "Learning to Break Deep Perceptual Hashing: The Use Case NeuralHash". ACM. doi:10.1145/3531146.3533073.
11. ↑ "Stable Signature: A New Method for Watermarking Images Created by Generative AI". 20 October 2023. https://ai.meta.com/blog/stable-signature-watermarking-generative-ai/.
12. ↑ Singhi, Shree; Yadav, Aayan; Hassanizadeh, Parisa; Ebrahimi, Shariar; Gupta, Aayush (2025). "Provenance Detection for AI-Generated Images: Combining Perceptual Hashing, Homomorphic Encryption, and AI Detection Models". arXiv:2503.11195 [cs.CV].
13. ↑ Khelifi, Fouad; Bouridane, Ahmed (January 2019). "Perceptual Video Hashing for Content Identification and Authentication". IEEE Transactions on Circuits and Systems for Video Technology 29 (1): 50–67. doi:10.1109/TCSVT.2017.2776159. http://nrl.northumbria.ac.uk/32873/1/paper_double.pdf.
14. ↑ Báez-Suárez, Abraham; Shah, Nolan; Nolazco-Flores, Juan Arturo; Huang, Shou-Hsuan S.; Gnawali, Omprakash; Shi, Weidong (2020-05-19). "SAMAF: Sequence-to-sequence Autoencoder Model for Audio Fingerprinting". ACM Transactions on Multimedia Computing, Communications, and Applications 16 (2): 43:1–43:23. doi:10.1145/3380828.
15. ↑ Zakharov, Victor; Kirikova, Anastasia; Munerman, Victor; Samoilova, Tatyana (2019). "Architecture of Software-Hardware Complex for Searching Images in Database". 2019 IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering (EICon Rus). IEEE. pp. 1735–1739. doi:10.1109/EIConRus.2019.8657241. ISBN 978-1-7281-0339-6.
16. ↑ Zhang, Qiu-yu; Zhou, Liang; Zhang, Tao; Zhang, Deng-hai (July 2019). "A retrieval algorithm of encrypted speech based on short-term cross-correlation and perceptual hashing". Multimedia Tools and Applications 78 (13): 17825–17846. doi:10.1007/s11042-019-7180-9.
17. ↑ "CSAM Detection - Technical Summary". Apple Inc. August 2021. https://www.apple.com/child-safety/pdf/CSAM_Detection_Technical_Summary.pdf.
18. ↑ Kuederle, Oliver (n.d.). "THE PROBLEM WITH PERCEPTUAL HASHES". rentafounder.com. https://rentafounder.com/the-problem-with-perceptual-hashes/.
19. ↑ Struppek, Lukas; Hintersdorf, Dominik; Neider, Daniel; Kersting, Kristian (2022). "Learning to Break Deep Perceptual Hashing: The Use Case NeuralHash". 2022 ACM Conference on Fairness Accountability and Transparency. pp. 58–69. doi:10.1145/3531146.3533073. ISBN 9781450393522.

## External links

* pHash - an open source perceptual hash library
* Blockhash.io - an open standard for perceptual hashes
* Insight - a perceptual hash tutorial

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Perceptual hashing. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Perceptual_hashing&oldid=3980540"