An introduction to artificial neural networks