Deep learning for physical systems