r/MachineLearning • • Apr 23 '15

Android App: Nipple Detection using Convolutional Neural Network. Results. [NSFW] NSFW

http://imgur.com/a/6KUEu
691 Upvotes

180 comments sorted by

View all comments

160

u/deepPurpleHaze Apr 23 '15 edited Apr 24 '15

https://play.google.com/store/apps/details?id=com.boxcar2d.nippler

I created this app with a model I trained on a CNN with varying layers of pooling and convolution. The confidence can be adjusted. The colors represent the prediction confidence: 99% magenta, 95%red, 90% orange, 80% yellow, 70% blue, 60% gray, 50% cyan.

Gonna add some references:

Caffe

ImageNet Classification with Deep Convolutional Neural Networks, Krizhevsky 2012

Deep neural networks are easily fooled, Nguyen 2014

Selective Search for object Recognition, Uijlings 2013

Combining efficient object localization and image classification, Harzallah 2009

and of course http://deeplearning.net/reading-list/

0

u/[deleted] Apr 23 '15

[deleted]

102

u/deepPurpleHaze Apr 23 '15

It's a good testbed of machine learning techniques and it has possible uses for auto-flagging images and perhaps even searching for them. I could easily drop in another class of objects like cats or cars. ImageNet doesn't have a nipple category either.

63

u/rhiever Apr 23 '15

I could see this being useful for detecting and flagging NSFW images in places where people don't want NSFW images.

129

u/alexmlamb Apr 24 '15

Better idea: build a chrome extension that drops all non-nipple search results.

35

u/rhiever Apr 24 '15

Or replaces all non-nipple images with nipple images. Kind of like that Chrome extension that replaces pictures of babies with pictures of cats.

6

u/deepPurpleHaze Apr 24 '15

I just updated the app to have a mode where it censors the image based on the predictions (if you turn that on - off by default):

http://i.imgur.com/sZjgXA8.jpg

1

u/thefattestman22 Apr 24 '15

What if it's a man?

7

u/deepPurpleHaze Apr 24 '15

could couple with face identification to decide if it's a man. Or maybe build a database of men's nipples and see if you can distinguish the two classes

4

u/OlorinTheGray Apr 25 '15

I never before thought that the world could ever be in dire need of a men´s nipples database.

Thank you, I guess :)

20

u/erktheerk Apr 23 '15

I could see this being used to scan and ID nip slips or other nudity that a website wants to keep off its site. Could scan large databases of images to sort out the NSFW ones (thinking large wallpaper dumps). Maybe even a nudity filter for parental control applications and instead of drawing the box it just blacked out the image.

Could it be modified to look for dicks too?

Nevermind reread the post. You covered that.

18

u/deepPurpleHaze Apr 23 '15 edited Apr 23 '15

yeah it would be as easy as setting the rectangle to fill. It would be very fast on a gpu also rather than a phone. It could easily have any model used including dicks, unicycles, boats, etc.

EDIT: if you want to create such a database ill gladly add it. :)

23

u/[deleted] Apr 24 '15

I already have a pretty big database of dicks.

63

u/deepPurpleHaze Apr 24 '15

If you're serious that you have cropped images of just dicks then please send me an archive. ill make a model and Dickler will be born :)

Since dicks are more of a deformable object they might benefit from a bag of words strategy for detection.

64

u/aldld Apr 24 '15

bag of words strategy for detection.

Bag of dicks strategy.

16

u/TotesMessenger Apr 24 '15

This thread has been linked to from another place on reddit.

If you follow any of the above links, respect the rules of reddit and don't vote. (Info / ^Contact)

6

u/simoneb_ Apr 24 '15

That's interesting. How big of a training set did you use?

3

u/deepPurpleHaze Apr 24 '15

Has over 2000 nipples and a much larger set of non-nipples. I'm already working on a model with a larger dataset.

2

u/SonicPhoenix Apr 24 '15

How large is her "dataset?"