Biologically motivated artificial intelligence for explainable gene regulatory dynamics