Design of a Self-Adaptive Brain Tumor Diagnostic System