Time series analysis with neural networks