We develop a research tool that allows online detection of the theta patterns in an EEG signal. Moreover, you can lock detection to a certain phase of the theta rhythm. The signal and detection results can be visualized and used to control an instant stimulation (for bio-feedback scenarios).
The technique is partially demonstrated in the linked youtube demo.