Probabilistic Models For Brain Image Collection, Classication, And Functional Connectivity