Cross validation check for spline in time, spline in space time and GAM in order to select the most appropriate number of knots when creating basis functions.
Useful links