Feature extraction using an unsupervised neural network