Principle and application of artificial immune system