This document discusses a method for emotion detection using electroencephalogram (EEG) signals through a combination of a binary moth flame optimization (BMFO) algorithm for feature selection and convolutional neural networks (CNNs) for classification. The proposed system aims to enhance accuracy in recognizing emotional states by selecting the most relevant features and effectively classifying them, showing superior results compared to existing methods. Experiments demonstrated the proposed approach achieving a 99.4% accuracy rate, highlighting its potential for real-world applications in emotion recognition.