Deep learning method and application