Efficient Learning Of The State In Dynamic Systems From Model-Based To Data-Based