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

34

u/shaggorama Apr 23 '15

I bet constructing the training set was fun ;)

Since you've deployed this as an app, you should consider compressing/distilling your model with Hinton's dark knowledge technique (or whatever we're supposed to call it). It should give you roughly equivalent performance while occupying significantly less disk space and probably producing results faster as well.

18

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

Sounds fun but honestly it was quite tedious. Thanks for that I really would like to speed up the prediction. My main work lately has been on window proposal strategies to reduce the number of predictions.

I tried simple color histograms with SVMs but the linear ones didn't work and the non-linear ones took too log. Didn't try HOGs but i think they're too expensive. Couldn't find a good implementation of Selective search without matlab (tried a simplified python one but it suggested more windows than my sliding search).

4

u/ogrisel Apr 24 '15

If you think non-linear (RBF) SVM would work but is too slow to train you might want to try the Nystroem method:

from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegressionCV
from sklearn.kernel_approximation import Nystroem
from sklearn.pipelione import make_pipeline

model = make_pipeline(
    StandardScaler(),
    Nystroem(n_components=300, gamma=1e-3),
    LogisticRegressionCV(),
).fit(X_train, y_train)

StandardScaler might not be required if your features are already homogeneous. Try to find the best value for gamma on a small subset of the data.

2

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

Thanks I'll try this. For now the skin filter is working well but that uses domain specific knowledge.

But the non-linear SVM showed a lot of promise getting about 80%