Modeling using neural networks