A method and system are provided for analyzing electromagnetic brain signals such as EEG and ECoG signals in a subject in real time and which avoids the need for time-intensive retrospective analysis of brain activity in the subject. This can be applied to all complex systems with multiple fluctuating signals to identify and predict significant events.