Analysis of brain signal processing and real-time EEG signal enhancement