Piecewise nonlinear regression with data augmentation