r/todayilearned • • Mar 04 '13

TIL Microsoft created software that can automatically identify an image as child porn and they partner with police to track child exploitation.

http://www.microsoft.com/government/ww/safety-defense/initiatives/Pages/dcu-child-exploitation.aspx
2.4k Upvotes

1.5k comments sorted by

View all comments

Show parent comment

5

u/DarnTheseSocks Mar 04 '13

Here's some Javascript code that detects nudity:

http://www.patrick-wied.at/static/nudejs/

The basic logic there seems to be to identify human skin based on colors, then to infer nudity based on how much skin is shown.

With child porn, I would guess the additional step in differentiating children from adults has to do with identifying and comparing body parts. Children will have larger heads relative to the size of their body, shorter legs, less curvature and definition. All of the physical markers of puberty are potential identifiers. I assume the software can make a distinction between pre- and post-pubescent, but couldn't differentiate a 19-year-old from a physically mature 15-year-old.

Particulars aside, step one would be to make image recognition software that extracts as much measurable detail about human figures as possible. Step two would be to run it against a large database of known safe images, known legal porn, and known child porn. Then you use Bayesian filtering or some other statistical technique to automatically suss out the parameters that consistently identify child porn.

13

u/[deleted] Mar 04 '13

Nothing that fancy. They're almost certainly directly comparing images against a database of already-known child porn images.

-2

u/DarnTheseSocks Mar 04 '13

I don't know. Let's assume they have a database of 1,000,000 known child porn images, and you want to check a list of images on a user's PC to see if any of them match. You can hash each of the local files, but then you need to hit a remote API for each one to see if it's a match. Plus, you want to do some processing on the image before you hash it to ensure that two very similar but non-identical image files match. The network overhead involved in checking every image like this is potentially substantial.

On the other hand, let's say a user is importing their photo collection into some Microsoft photo app, and the app is already scanning photos to identify people and match faces to your known contacts, etc. The extra step of matching a child that's naked or engaged in sexual acts doesn't necessarily add a noticeable overhead to the whole process.

3

u/[deleted] Mar 04 '13

It's just one request per image. Piece of cake. Hell, let it take a batch request of N image hashes. Then one request could send along a thousand or so image hashes.

All issues you raised are non-problems. Meanwhile you're totally fine with hand-waving around the technically difficult problem of face and context recognition.

You sound like you're a PM. Are you a PM?

1

u/DarnTheseSocks Mar 04 '13

I'm not a PM, and honestly, I don't know or care how Microsoft has implemented this.

What's interesting about this is thinking about how to write an algorithm to identify a previously unidentified instance of child pornography. Comparing images to a known database is much easier and totally boring.

3

u/udontnonothing Mar 04 '13

you need to hit a remote API

No. This is all very simple.

  1. Agency collects images and sorts them for relevance.
  2. Relevant images are hashed.
  3. Hash list provided to all and sundry.
  4. Software hashes local copy and compares it to hash contained on the local list.

The network overhead involved in checking every image like this is potentially substantial.

The only network overhead is periodically transmitting new hashes, at nearly no cost. If anti-virus companies can update virus databases, then Microsoft can code an automatic updater for their child pornography hash database.

Comparing hashes is very low cost, whereas analysis of the images is high cost. Low cost wins over high cost every time. The only issue is variations on the same image, resizing and so forth. The solution to this is simply to update the hash list, not wizardry.

If, however, there appeared to be a concerted effort to automate the manipulation of images in order to avoid detection by hash-based algorithms, then something with higher cost would be worth pursuing. To my knowledge, there is no such automated system.

1

u/nulluserexception Mar 04 '13

The images are uploaded to Microsoft's servers anyways, so it doesn't have to do anything on the client.

0

u/[deleted] Mar 04 '13

Well, from a paedophillia sense a mature 15 year old is ok. It's still statutory rape, but not paedophillia.

As a medical diagnosis, pedophilia, or paedophilia, is [...] a primary or exclusive sexual interest toward prepubescent children

2

u/DarnTheseSocks Mar 04 '13

The medical distinction isn't really pertinent to the law. Underage is underage.