sigmoid fitting; automatic thresholding; better outlier removal