A Neural Network for Feature Extraction