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/

119

u/poi88 Apr 23 '15

not available in my country? Here in Colombia we have several nipples that would like to be identified...

51

u/deepPurpleHaze Apr 23 '15

i only made it available in a few countries at first but i already changed that to all countries. It's translated (probably poorly) into Spanish, German, and Japanese. The change takes a few hours to take effect. sorry :(

78

u/UTF64 Apr 24 '15

Pretty much all countries are fine with English if the alternative is not releasing it.

20

u/deepPurpleHaze Apr 24 '15

lesson learned. :)

11

u/apoplexis Apr 24 '15

I am volunteering for translating the texts to German if you send me the originals in English. The description is a mess right now :)

7

u/deepPurpleHaze Apr 24 '15

Wow thanks. I don't know if you mean on the store or in the app. Both are probably a mess. Here's both. Thanks for any help :)

In app intro:

Nippler uses machine learning to find nipples in images, with a convolutional neural network trained on pixels.

Short description: Nipple recognition with deep learning on any photo.

Long description: Using the latest advances in machine learning, Nippler finds nipples in any image you choose or take.

Nippler uses a deep convolutional neural network trained on the raw pixels to predict areas in the image it thinks are most likely a nipple, and draw a box around them. Use the slider to adjust the confidence level and show more boxes. Watch it succeed and fail hilariously

100% free. No ads. This app has no permission to use the internet and doesn't collect any information. All images are processed on the phone and only available to you.

*Needs permission for the camera to take pictures *Needs permission for external storage to save the results

10

u/apoplexis Apr 24 '15 edited Apr 24 '15

I'm a native German speaker, so changing it to any other language than German or English would not help much :)

Here are the translations, actually wasn't easy to use the uncommon special words, had to understand CNNs and deep learning at first.

Please note, that there is only a literal translation for deep learning, which isn't used anywhere. Every German source I've found states 'Deep Learning' as a technical term. This also is partially the case for CNN, but both German and English terms are used.

In app intro: Nippler verwendet maschinelles Lernen, um Nippel in Bildern mit einem auf Pixel trainierten gefaltenen neuralen Netzwerk zu finden.

Short description: Nippelerkennung mit Deep Learning für jegliche Fotos.

Long description: Unter Verwendung der neuesten Fortschritte im maschinellen Lernen findet Nippler in jedem Bild, das sie auswählen oder aufnehmen Nippel.

Nippler verwendet ein tiefengefaltenes neurales Netzwerk, das darauf trainiert ist, in einem Bild Nippel zu erkennen und zieht einen Rahmen herum.

Verwenden Sie den Schieberegler, um den Zuverlässigkeitsgrad anzupassen und mehrere Rahmen zu ziehen. Beobachten Sie, wie es dabei Erfolg hat oder wahnsinnig komisch daran scheitert.

100% gratis und werbefrei. Diese App hat keine Berechtigung, das Internet zu benutzen und keinerlei Informationen zu sammeln. Alle Bilder werden am Telefon verarbeitet und bleiben stets ausschließlich für Sie verfügbar.

Benötigte Berechtigungen:

  • Verwendung der Kamera, um Fotos aufzunehmen.

  • Verwendung des externen Speichers, um die Ergebnisse zu speichern.

8

u/apoplexis Apr 24 '15 edited Apr 24 '15

I've just installed the App to check for in-app texts which may be wrong.

The initial prompting screen states:

  • Mach ein Foto and

  • Wählen sie Bild

These need to be changed to e.g.

  • Machen Sie ein Foto and

  • Wählen Sie ein Bild

When taking a picture, a progressbar appears and a caption states

  • Selbstzerstörung eingreift (= initiating self destruction)

This needs to be changed to

  • Selbstzerstörung wird eingeleitet if you want to keep the joke up.

I've picked some images and have seen that there are several other funny phrases like that. Would you mind, posting them? Such phrases suffer a lot from machine translations :)

Now to the settings:

  • Filter ähnlich Ergebnisse and its subtext

  • Entfernen einer niedrigeren Punktzahl Fenster

needs to be changed to

  • Ähnliche Ergebnisse filtern and

  • Entfernt niedriger bewertete Bereiche

Tiefensuche can stay as it is, but the subtext is rubbish.

Weitere Regionen (dauert länger) translates into 'Further regions (takes longer)' and should be Genauer suchen (dauert länger), which definitely suits the English caption more.

→ More replies (3)
→ More replies (1)
→ More replies (4)

10

u/[deleted] Apr 24 '15

High five for colombia*

→ More replies (3)

17

u/[deleted] Apr 24 '15

Is there any way we could replace the boxes with different colored tassles?

→ More replies (1)

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.

→ More replies (1)
→ More replies (5)

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.

→ More replies (1)

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)

→ More replies (2)
→ More replies (3)
→ More replies (2)

7

u/FeepingCreature Apr 24 '15

What happens when you take a video and blur each region per frame proportionally to how confident it is?

7

u/deepPurpleHaze Apr 24 '15

i actually tried that on single images and have a python script to do it. it works sometimes as well as the predictions do. It would sum the 'votes' from each window and make a mask of those normalized values.

In terms of video its a stretch to run that at 60fps even on a gpu. Maybe if you had a great window selection algorithm.

→ More replies (3)
→ More replies (5)