Block window method with logistic regression algorithm for streak detection