add adaptive threshold analyse method