A study of field theories via neural networks