A method for analyzing fMRI brain data, comprising: collecting the fMRI data including spatial information and temporal information from subjects; preprocessing the fMRI data; computing independent components (ICs) and their corresponding time course for each individual subjects; constructing an initial functional connectivity pattern; constructing a classifier based on the functional connectivity pattern; and applying the classifier to functional connectivity patterns of individual subjects for statistical analysis or diagnosis. The method may be used in fMRI based studies of a brain function and brain disorder diagnosis.