1. A method of constructing a flow pattern database, comprising: obtaining EEG and/or MEG signals from multiple subjects from one or more research groups for a behavioral process; identifying brain activity patterns for said behavioral process for said research groups using a counting method or method of calculating statistical significances of pairs; identifying a plurality of candidate pathways for said brain activity patterns; for each research group, defining a set of flow patterns among functional brain regions based on said candidate pathways, thereby constructing the flow pattern database.