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

12

u/mkoxbg Apr 23 '15

can you make it so it identifies male vs female?

33

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

the training set was all female nipples and it does fairly well on male nipples too. I'd say it would be very difficult.

Also belly buttons look a lot like nipples if you block everything else out it looks like it sticks out rather than in. its a strange optical illusion i never saw before.

50

u/thirdegree Apr 24 '15

the training set was all female nipples

Rofl op.

27

u/deepPurpleHaze Apr 24 '15

I included lots of races, ages, and styles. The focus wasn't as much for my personal preference as thats what people want to filter or tag. Not men's nipples. In trying to flag nudity those would be false positives strangely.

30

u/thirdegree Apr 24 '15

Sure, sure. Whatever you say.

6

u/[deleted] Apr 24 '15

Which is where the real challenge is going to be. A dude on the beach tossing a stick to his dog. Nipples are fine.

A chick's flapjacks flipping while getting drilled from behind. Totally NSFW.

5

u/deepPurpleHaze Apr 24 '15

well you could combine this with other image recognition techniques, like facial recognition to decide if it's a man or a woman (and eliminate false positives if its not a person at all).

4

u/[deleted] Apr 24 '15

like facial recognition to decide if it's a man or a woman

I don't think we'll ever get that to work. I often can't tell IRL!

Detecting signs of breast like shape around the nipples would probably be beneficial though, and of course any genital detection would automatically rule an image nsfw. I would think genital detection would be much harder than nipples though... given the variety. Perhaps leg detection would be a lot easier coupled with the ability to detect that continuous skin exists between leg and torso.

2

u/deepPurpleHaze Apr 24 '15

Well if you have a large database of faces tied to identites (like Google or Facebook) you could just identify who it is first.

I think genital detection would be a lot harder and really gets into what is obscene because a lot of it depends on the larger context as you point out.

4

u/shaggorama Apr 24 '15

I look forward to OP's next project on moneyshot detection.

4

u/stilllton Apr 24 '15

Maybe you can make a rule that excludes that (belly button) area if two horizontal nipples are found above.

6

u/deepPurpleHaze Apr 24 '15

Yes i could. I'd love to find a way that doesn't include specific domain knowledge though. Maybe i can just add a bunch of belly buttons to the training set.

3

u/[deleted] Apr 24 '15

What about inverted nipples? Many women have them... Have you accounted for those?

6

u/Farseli Apr 24 '15

Seems to work well on my wife. Hell, the more inverted one had a higher confidence level.

1

u/[deleted] Apr 24 '15

NICE!

3

u/deepPurpleHaze Apr 24 '15

3

u/[deleted] Apr 24 '15

( ͡° ͜ʖ ͡°)

3

u/ozyman Apr 24 '15

its a strange optical illusion i never saw before.

Sounds similar to the Hollow Face Illusion

2

u/zdk Apr 23 '15

I think the thing to do is just have a totally separate classifier for males vs females and concatenate the results.

1

u/mkoxbg Apr 23 '15

it seems to see the large boobs as a nipple, and then a nipple inside, so in this case it should pick female. or fat/muscle guy.

1

u/shaggorama Apr 24 '15

That makes sense. I'm...uh...testing your app, and it can't seem to find my nipples through my hairy chest.

1

u/deepPurpleHaze Apr 24 '15

There aren't any examples like that in the training set and so it won't do as well on men. That's by design since your nipples are really false positives in our society with respect to nudity detection.

1

u/phyxle Apr 24 '15

I think you can improve by searching for pair to get better results.