A physics-informed machine learning model for reconstruction of dynamic loads