new incident detection algorithm