Single perceptron ANN for machine learning