Brain Tumor Detection based on Machine Learning Algorithms