Advances in the fields of neuroscience and computer science have greatly enhanced the human brain’s ability to communicate and interact with the surrounding environment. In addition, recent steps in machine learning (ML) have increased the use of electroencephalography (EEG)-based BCIs for artificial intelligence (AI) applications. The prevailing challenge in recording EEG sensor data is that the captured signals are mixed with noise, which makes their effective use difficult. Therefore, strengthening the classification stage becomes extremely important and plays a major role in addressing this problem. In this study, we chose five most widely used classification models that obtained the best results in this field and tested them on two open-source databases. We also focused on improving the hyperparameters of each algorithm to obtain best results. Our results indicate excellent results on the first dataset and acceptable for most models on the second, while RF showed superior performance on both with an accuracy of 100% on the first dataset and 86.47% on the second. This was achieved with the lowest training costs, and better performance compared to previous works we evaluated that used the same databases. These results provide valuable insights and advance the development of brain-computer interface (BCI) technology and design.