A computer-aided diagnosis system for brain tumors based on artificial intelligence algorithms