An artificial immune system for data analysis