Abstract:The gene always comes from mutating the deleted memory detectors or no-self samples in the algorithm of generating detectors based on gene library. But after some generations, there will be some similar gene in the gene library. This is the phenomenon of cluster of gene. By using clustering, mutating, subtracting to gene library, it can increase the diversity of mutated detectors. The experimental results show that the algorithm can generate detectors more quickly and improve the ability of detection system to discover unknown intrusion.