update analyze algorithm & support batch analyze