autism spectrum disorder ( asd ) is a highly heterogeneous disorder , diagnosed on the basis of behavioral criteria . from the neurobiological perspective , asd can be considered an umbrella term that may encompass multiple distinct neurodevelopmental etiologies ( geschwind and levitt , 2007 ) . since any given cohort is thus likely composed of ill - understood subtypes ( whose brain features may vary subtly or even dramatically ) , it is not surprising that brain markers with perfect sensitivity and specificity remain unavailable . nonetheless , given the specificity of diagnostic criteria ( american psychiatric association , 2013 ) , the hope that some ( potentially complex ) patterns of brain features may be unique to the disorder is not unreasonable and worthy of pursuit . issues of heterogeneity and cohort effects can be partially addressed through the use of large samples , as provided by the recent autism brain imaging data exchange ( abide ) ( di martino et al . , 2014 ) , which incorporates over 1100 resting state functional mri ( rs - fmri ) datasets from 17 sites . the use of these data for examining functional connectivity matrices for large numbers of rois across the entire brain is further promising , as there is growing consensus about asd being characterized by aberrant connectivity in numerous functional brain networks ( schipul et al . however , the functional connectivity literature in asd is complex and often inconsistent ( mller et al . , 2011 ; nair et al . , 2014 ) , and data - driven machine learning ( ml ) techniques provide valuable exploratory tools for uncovering potentially unexpected patterns of aberrant connectivity that may characterize the disorder . a few previous asd studies have used intrinsic functional connectivity mri ( fcmri ) ( van dijk et al . , 2010 ) for diagnostic classification , i.e. , for determining whether a dataset is from an asd or typically developing participant solely based on functional connectivity . anderson and colleagues ( 2011 ) , using a large fcmri connectivity matrix , reached an overall diagnostic classification accuracy of 79% , which was however lower in a separate small replication sample . 2013a ) used a logistic regression classifier for 10 rs - fmri based features identified by ica , which corresponded to previously described functional networks . the classifier achieved accuracies about 6070% for all but one component identified as salience network , for which accuracy reached 77% . imperfect accuracy in these studies may be attributed to moderate sample sizes ( n    80 ) . however , in a recent classification study using the much larger abide dataset , nielsen et al . ( 2013 ) reported an overall accuracy of only 60% , suggesting that the approach selected , a leave - one - out classifier using a general linear model , may not be sufficiently powerful . in the present study , we implemented several multivariate learning methods , including random forest ( rf ) , which is an ensemble learning method that operates by constructing many individual decision trees , known in the literature as classification and regression trees ( cart ) . each decision tree in the forest makes a classification based on a bootstrap sample of the data and a random subset of the input features . the forest as a whole makes a prediction based on the majority vote of the trees . one desirable feature of the random forest algorithm is the bootstrapping of the sample to have a built - in training and validation mechanism , generating an unbiased out - of - bag error that measures the predictive power of the forest . features were intrinsic functional connectivities ( van dijk et al . , 2010 ) between a standard set of regions of interest using only highest quality ( low motion ) datasets from abide . data were selected from the autism brain imaging data exchange ( abide , http://fcon_1000.projects.nitrc.org / indi / abide/ ) ( di martino et al . , 2013 ) , a collection of over 1100 resting - state scans from 17 different sites . in view of the sensitivity of intrinsic fcmri analyses to motion artifacts and noise ( as described below ) , we prioritized data quality over sample size . we excluded any datasets exhibiting artifacts , signal dropout , suboptimal registration or standardization , or excessive motion ( see details below ) . sites acquiring fewer than 150 time points were further excluded . based on these criteria , we selected a subsample of 252 participants with low head motion ( see details below ) . groups were matched on age and motion to yield a final sample of 126 td and 126 asd participants , ranging in age from 6 to 36  years ( see table  1 for summary and see inline supplementary table  s1 for fully detailed participant and site information ) . data were selected from the autism brain imaging data exchange ( abide , http://fcon_1000.projects.nitrc.org / indi / abide/ ) ( di martino et al . , 2013 ) , a collection of over 1100 resting - state scans from 17 different sites . in view of the sensitivity of intrinsic fcmri analyses to motion artifacts and noise ( as described below ) , we prioritized data quality over sample size . we excluded any datasets exhibiting artifacts , signal dropout , suboptimal registration or standardization , or excessive motion ( see details below ) . sites acquiring fewer than 150 time points were further excluded . based on these criteria , we selected a subsample of 252 participants with low head motion ( see details below ) . groups were matched on age and motion to yield a final sample of 126 td and 126 asd participants , ranging in age from 6 to 36  years ( see table  1 for summary and see inline supplementary table  s1 for fully detailed participant and site information ) . inline supplementary table s1table s1abide demographic information.sitessample sizeagermsdnviqgenderados_totalhandednessasdtdasdtdasdtdasdtdmalefemalerangenaleftrightmean ( sd)mean ( sd)mean ( sd)[range][range][range][range]full samplenyu ( n=70)363415.6 ( 6)16.96 ( 6.17).02 ( .02).02 ( .02)108 ( 15.1)103 ( 14.9)5416[5 - 22]0nana[8.5 - 30][6.4 - 30.8][.03-.09][.03-.09][72 - 149][67 - 137]um_1 ( n=29)151414.7 ( 2.1)15.5 ( 2.8).06 ( .02).05 ( .02)112 ( 19.6)102.2 ( 9.4)1712na15521[11.5 - 18.6][11 - 19][.02-.09][.02-.08][81 - 148][82 - 113]usm ( n=29)192021.9 ( 6.4)6.4 ( 7.2).05 ( .02).06 ( .02)105.7 ( 13)111 ( 12.5)290[6 - 21]0nana[11.3 - 35.7][13.8 - 34][.02-.09][.03-.09][75 - 133][90 - 129]sdsu ( n=25)101514.6 ( 2.3)13.4 ( 2.3).03 ( .01).04 ( .02)112 ( 16)111 ( 11)214[4 - 17]0619[9.6 - 17.7][8 - 16.8][.02-.05][.02-.07][86 - 114][92 - 137]leuven_1 ( n=17)9822.2 ( 4.9)23.75 ( 2.9).061 ( .02).065 ( .02)103 ( 16.4)114 ( 18.9)170na9116[19 - 32][21 - 29][.04-.09][.04-.09][74 - 120][93 - 155]leuven_2 ( n=17)8913.8 ( 1.1)14.3 ( 1.4).07 ( .01).08 ( .02)97.5 ( 11.8)101.4 ( 6.5)116na8413[12.2 - 15.3][12.3 - 16.6][.05-.1][.05-.1][83 - 117][89 - 109]pitt ( n=14)8621.2 ( 8.4)20.2 ( 4.1).07 ( .02).09 ( .02)11.7 ( 14.2)115 ( 5.3)122[7 - 19]1113[12.6 - 35.2][12.8 - 24.6][.04-.1][.07-.1][93 - 128][108 - 121]trinity ( n=12)4817.2 ( 3.4)17.9 ( 4).06 ( .010).07 ( .01)121 ( 7.4)111 ( 6.2)120[7 - 15]0012[13.6 - 20.8][12.7 - 24.8][.05-.07][.06-.07][114 - 131][103 - 121]yale ( n=12)6614.6 ( 1.9)13.2 ( 3.4).06 ( .02).05 ( .01)85 ( 29)97 ( 11.2)84na5111[11.8 - 17.2][8.7 - 16.7][.03-.09][.03-.06][37 - 120][84 - 115]kkin ( n=8)359.9 ( 1.51)9.9 ( 1.7).01 ( .004).01 ( .02)nana62[10 - 16]017[8.2 - 11.1][8.5 - 12.8][.06-.07][.05-.1]olin ( n=8)4418.3 ( 4.03)19.5 ( 2.4).09 ( .01).09 ( .3)nana62[7 - 19]408[15 - 24][16 - 21][.07-.1][.06-.1]um_2 ( n=6)1517.4 ( na)18.4 ( 5.9).08 ( na).05 ( .01)80 ( na)102 ( 6.8)60na106[17.4 - 17.4][14.5 - 28.9][.08-.08][.03-.06][80 - 80][92 - 109]cmu ( n=5)3226.7 ( 4.5)26 ( .07).06 ( .02).08 ( .01)113.7 ( 10.8)109.5 ( 0.7)41[8 - 16]005[22 - 31][21 - 31][.04-.07][.07-.08][106 - 126][109 - 110 ]  trainingnyu ( n=60)312915.96 ( 6.22)16.96 ( 6.50).05 ( .02)0.05 ( 0.02)108.03 ( 15.80)102.93 ( 15.17)4614[6 - 22]29nana[8.51 - 29.98][6.47 - 30.78][.03 -.09][0.03 - 0.09][72.00 - 149.00][67.00 - 137.00]um_1 ( n=25)141114.64 ( 2.11)15.28 ( 2.85)0.06 ( 0.02)0.05 ( 0.02)111.43 ( 19.97)105.11 ( 6.72)1510na14517[11.50 - 18.60][11.00 - 19.20][0.02 - 0.09][0.02 - 0.08][81.00 - 148.00][92.00 - 113.00]leuven_1 ( n=17)9822.22 ( 4.87)23.75 ( 2.92)0.06 ( 0.02)0.07 ( 0.02)103.00 ( 16.42)113.88 ] ( 18.88)170na9116[19.00 - 32.00][21.00 - 29.00][0.04 - 0.09][0.04 - 0.09][74.00 - 120.00][93.00 - 155.00sdsu ( n=17)9815.19 ( 1.65)13.43 ( 3.35)0.03 ( 0.01)0.04 ( 0.01)112.67 ( 16.77)110.25 ( 13.61)170[4 - 17]0512[12.88 - 17.67][8.02 - 16.59][0.02 - 0.05][0.02 - 0.07][86.00 - 140.00][92.00 - 137.00]usm ( n=16)8823.67 ( 7.35)21.60 ( 6.84)0.05 ( 0.02)0.06 ( 0.02)101.75 ( 6.82)111.38 ( 13.22)160[9 - 17]0nana[15.85 - 35.71][13.81 - 34.01][0.02 - 0.07][0.03 - 0.09][87.00 - 106.00][90.00 - 129.00]leuven_2 ( n=14)6813.53 ( 1.23)14.59 ( 1.32)0.07 ( 0.01)0.07 ( 0.01)96.17 ( 9.54)102 ( 6.70)86na6311[12.20 - 15.30][12.30 - 16.60][0.05 - 0.08][0.05 - 0.10][83.00 - 106.00][89.00 - 109.00]pitt ( n=11)6523.03 ( 9.07)20.01 ( 4.56)0.08 ( 0.02)0.09 ( 0.01)114.67 ( 14.90)114.20 ( 5.07)101[7 - 19]1110[12.62 - 35.20][12.83 - 24.60][0.06 - 0.11][0.07 - 0.11][93.00 - 128.00][108.00 - 119.00]yale ( n=9)4514.96 ( 2.39)12.53 ( 3.30)0.07 ( 0.02)0.04 ( 0.01)84.75 ( 37.03)98.20 ( 12.32)81na318[11.83 - 17.17][8.67 - 16.66][0.04 - 0.09][0.03 - 0.06][37.00 - 120.00][84.00 - 115.00]kki ( n=8)359.88 ( 1.51)9.91 ( 1.69)0.07 ( 0.00)0.07 ( 0.02)nana62[10 - 16]017[8.20 - 11.14][8.46 - 12.76][0.06 - 0.07][0.05 - 0.10]olin ( n=7)3418.3 ( 4.93)19.50 ( 2.38)0.09 ( 0.01)0.09 ( 0.03)nana52[9 - 19]0073[15.00 - 24.00][16.00 - 21.00][0.08 - 0.10][0.06 - 0.13]trinity ( n=7)3416.46 ( 3.79)19.48 ( 4.53)0.06 ( 0.01)0.06 ( 0.01)123.00 ( 7.21)112.00 ( 6.38)70[7 - 15]007[13.58 - 20.75][13.75 - 24.83][0.05 - 0.07][0.06 - 0.08][117.00 - 131.00][107.00 - 121.00]cmu ( n=5)3226.67 ( 4.51)26.00 ( 7.07)0.06 ( 0.02)0.08 ( 0.01)113.67 ( 10.79)109.50 ( 0.71)41[8 - 16]005[22.00 - 31.00][21.00 - 31.00][0.04 - 0.08][0.07 - 0.08][106.00 - 126.00][109.00 - 110.00]um_2 ( n=4)1317.40 ( 0.00)15.23 ( 0.67)0.08 ( 0.00)0.04 ( 0.02)80.00 ( 0.00)99.33 ( 7.02)40na104[17.40 - 17.40][14.50 - 15.80][0.08 - 0.08][0.03 - 0.06][80.00 - 80.00][92.00 - 106.00 ]  validationusm ( n=13)11220.7 ( 5.7)28.2 ( 5.6).05 ( .02).06 ( .005)105.9 ( 17.9)109.5 ( 11.3)121[6 - 21]1nana[11.4 - 32.8][22 - 34][.03-.09][.05-.07][75 - 133][100 - 119]nyu ( n=10)5513.1 ( 3.99)16.4 ( 4.3).07 ( .02).05 ( .01)38.8 ( 11.5)102.8 ( 14.7)28[5 - 13]0nana[8.9 - 17.9][9.8 - 20.0][.04-.09][.03-.06][92 - 119][83 - 117]sdsu ( n=8)179.6413.5 ( 2.9)0.025.04 ( .018)112111.7 ( 8.3)4411017[9.6 - 16.8][.02-.07][103 - 124]trinity ( n=5)1419.416.3 ( 3.2)0.057.066 ( .0087)114109.8 ( 6.7)501305[12.7 - 20.1][.05-.076][103 - 116]um_1 ( n=4)1316.116.2 ( 2.7)0.048.05 ( .01)125178 ( 9.9)22na104[13.1 - 18.2][.03-.06][82 - 96]leuven_2 ( n=3)2114.5 ( .29)12.4.08 ( .02)0.11101.5 ( 21.9)9730nan312[14.3 - 14.7][.07-.09][86 - 117]pitt ( n=3)2115.6 ( 1.9)21.22.05 ( .03)0.11103 ( 9.9)12121[12 - 16]003[14.2 - 16.9][.03-.07][96 - 110]yale ( n=3)2114 ( 0.53)16.66.049 ( .02)0.05785 ( 1.4)9303na203[13.66 - 14.4][.03-.06][84 - 86]um_2 ( n=2)02na23.2 ( 7.9)na.06 ( .003)na107.5 ( 2.2)20nana02[17.6 - 28.8][.058-.06][106 - 109]olin ( n=1)1018na0.07nanana107001inline supplementary table s1 table s1abide demographic information.sitessample sizeagermsdnviqgenderados_totalhandednessasdtdasdtdasdtdasdtdmalefemalerangenaleftrightmean ( sd)mean ( sd)mean ( sd)[range][range][range][range]full samplenyu ( n=70)363415.6 ( 6)16.96 ( 6.17).02 ( .02).02 ( .02)108 ( 15.1)103 ( 14.9)5416[5 - 22]0nana[8.5 - 30][6.4 - 30.8][.03-.09][.03-.09][72 - 149][67 - 137]um_1 ( n=29)151414.7 ( 2.1)15.5 ( 2.8).06 ( .02).05 ( .02)112 ( 19.6)102.2 ( 9.4)1712na15521[11.5 - 18.6][11 - 19][.02-.09][.02-.08][81 - 148][82 - 113]usm ( n=29)192021.9 ( 6.4)6.4 ( 7.2).05 ( .02).06 ( .02)105.7 ( 13)111 ( 12.5)290[6 - 21]0nana[11.3 - 35.7][13.8 - 34][.02-.09][.03-.09][75 - 133][90 - 129]sdsu ( n=25)101514.6 ( 2.3)13.4 ( 2.3).03 ( .01).04 ( .02)112 ( 16)111 ( 11)214[4 - 17]0619[9.6 - 17.7][8 - 16.8][.02-.05][.02-.07][86 - 114][92 - 137]leuven_1 ( n=17)9822.2 ( 4.9)23.75 ( 2.9).061 ( .02).065 ( .02)103 ( 16.4)114 ( 18.9)170na9116[19 - 32][21 - 29][.04-.09][.04-.09][74 - 120][93 - 155]leuven_2 ( n=17)8913.8 ( 1.1)14.3 ( 1.4).07 ( .01).08 ( .02)97.5 ( 11.8)101.4 ( 6.5)116na8413[12.2 - 15.3][12.3 - 16.6][.05-.1][.05-.1][83 - 117][89 - 109]pitt ( n=14)8621.2 ( 8.4)20.2 ( 4.1).07 ( .02).09 ( .02)11.7 ( 14.2)115 ( 5.3)122[7 - 19]1113[12.6 - 35.2][12.8 - 24.6][.04-.1][.07-.1][93 - 128][108 - 121]trinity ( n=12)4817.2 ( 3.4)17.9 ( 4).06 ( .010).07 ( .01)121 ( 7.4)111 ( 6.2)120[7 - 15]0012[13.6 - 20.8][12.7 - 24.8][.05-.07][.06-.07][114 - 131][103 - 121]yale ( n=12)6614.6 ( 1.9)13.2 ( 3.4).06 ( .02).05 ( .01)85 ( 29)97 ( 11.2)84na5111[11.8 - 17.2][8.7 - 16.7][.03-.09][.03-.06][37 - 120][84 - 115]kkin ( n=8)359.9 ( 1.51)9.9 ( 1.7).01 ( .004).01 ( .02)nana62[10 - 16]017[8.2 - 11.1][8.5 - 12.8][.06-.07][.05-.1]olin ( n=8)4418.3 ( 4.03)19.5 ( 2.4).09 ( .01).09 ( .3)nana62[7 - 19]408[15 - 24][16 - 21][.07-.1][.06-.1]um_2 ( n=6)1517.4 ( na)18.4 ( 5.9).08 ( na).05 ( .01)80 ( na)102 ( 6.8)60na106[17.4 - 17.4][14.5 - 28.9][.08-.08][.03-.06][80 - 80][92 - 109]cmu ( n=5)3226.7 ( 4.5)26 ( .07).06 ( .02).08 ( .01)113.7 ( 10.8)109.5 ( 0.7)41[8 - 16]005[22 - 31][21 - 31][.04-.07][.07-.08][106 - 126][109 - 110 ]  trainingnyu ( n=60)312915.96 ( 6.22)16.96 ( 6.50).05 ( .02)0.05 ( 0.02)108.03 ( 15.80)102.93 ( 15.17)4614[6 - 22]29nana[8.51 - 29.98][6.47 - 30.78][.03 -.09][0.03 - 0.09][72.00 - 149.00][67.00 - 137.00]um_1 ( n=25)141114.64 ( 2.11)15.28 ( 2.85)0.06 ( 0.02)0.05 ( 0.02)111.43 ( 19.97)105.11 ( 6.72)1510na14517[11.50 - 18.60][11.00 - 19.20][0.02 - 0.09][0.02 - 0.08][81.00 - 148.00][92.00 - 113.00]leuven_1 ( n=17)9822.22 ( 4.87)23.75 ( 2.92)0.06 ( 0.02)0.07 ( 0.02)103.00 ( 16.42)113.88 ] ( 18.88)170na9116[19.00 - 32.00][21.00 - 29.00][0.04 - 0.09][0.04 - 0.09][74.00 - 120.00][93.00 - 155.00sdsu ( n=17)9815.19 ( 1.65)13.43 ( 3.35)0.03 ( 0.01)0.04 ( 0.01)112.67 ( 16.77)110.25 ( 13.61)170[4 - 17]0512[12.88 - 17.67][8.02 - 16.59][0.02 - 0.05][0.02 - 0.07][86.00 - 140.00][92.00 - 137.00]usm ( n=16)8823.67 ( 7.35)21.60 ( 6.84)0.05 ( 0.02)0.06 ( 0.02)101.75 ( 6.82)111.38 ( 13.22)160[9 - 17]0nana[15.85 - 35.71][13.81 - 34.01][0.02 - 0.07][0.03 - 0.09][87.00 - 106.00][90.00 - 129.00]leuven_2 ( n=14)6813.53 ( 1.23)14.59 ( 1.32)0.07 ( 0.01)0.07 ( 0.01)96.17 ( 9.54)102 ( 6.70)86na6311[12.20 - 15.30][12.30 - 16.60][0.05 - 0.08][0.05 - 0.10][83.00 - 106.00][89.00 - 109.00]pitt ( n=11)6523.03 ( 9.07)20.01 ( 4.56)0.08 ( 0.02)0.09 ( 0.01)114.67 ( 14.90)114.20 ( 5.07)101[7 - 19]1110[12.62 - 35.20][12.83 - 24.60][0.06 - 0.11][0.07 - 0.11][93.00 - 128.00][108.00 - 119.00]yale ( n=9)4514.96 ( 2.39)12.53 ( 3.30)0.07 ( 0.02)0.04 ( 0.01)84.75 ( 37.03)98.20 ( 12.32)81na318[11.83 - 17.17][8.67 - 16.66][0.04 - 0.09][0.03 - 0.06][37.00 - 120.00][84.00 - 115.00]kki ( n=8)359.88 ( 1.51)9.91 ( 1.69)0.07 ( 0.00)0.07 ( 0.02)nana62[10 - 16]017[8.20 - 11.14][8.46 - 12.76][0.06 - 0.07][0.05 - 0.10]olin ( n=7)3418.3 ( 4.93)19.50 ( 2.38)0.09 ( 0.01)0.09 ( 0.03)nana52[9 - 19]0073[15.00 - 24.00][16.00 - 21.00][0.08 - 0.10][0.06 - 0.13]trinity ( n=7)3416.46 ( 3.79)19.48 ( 4.53)0.06 ( 0.01)0.06 ( 0.01)123.00 ( 7.21)112.00 ( 6.38)70[7 - 15]007[13.58 - 20.75][13.75 - 24.83][0.05 - 0.07][0.06 - 0.08][117.00 - 131.00][107.00 - 121.00]cmu ( n=5)3226.67 ( 4.51)26.00 ( 7.07)0.06 ( 0.02)0.08 ( 0.01)113.67 ( 10.79)109.50 ( 0.71)41[8 - 16]005[22.00 - 31.00][21.00 - 31.00][0.04 - 0.08][0.07 - 0.08][106.00 - 126.00][109.00 - 110.00]um_2 ( n=4)1317.40 ( 0.00)15.23 ( 0.67)0.08 ( 0.00)0.04 ( 0.02)80.00 ( 0.00)99.33 ( 7.02)40na104[17.40 - 17.40][14.50 - 15.80][0.08 - 0.08][0.03 - 0.06][80.00 - 80.00][92.00 - 106.00 ]  validationusm ( n=13)11220.7 ( 5.7)28.2 ( 5.6).05 ( .02).06 ( .005)105.9 ( 17.9)109.5 ( 11.3)121[6 - 21]1nana[11.4 - 32.8][22 - 34][.03-.09][.05-.07][75 - 133][100 - 119]nyu ( n=10)5513.1 ( 3.99)16.4 ( 4.3).07 ( .02).05 ( .01)38.8 ( 11.5)102.8 ( 14.7)28[5 - 13]0nana[8.9 - 17.9][9.8 - 20.0][.04-.09][.03-.06][92 - 119][83 - 117]sdsu ( n=8)179.6413.5 ( 2.9)0.025.04 ( .018)112111.7 ( 8.3)4411017[9.6 - 16.8][.02-.07][103 - 124]trinity ( n=5)1419.416.3 ( 3.2)0.057.066 ( .0087)114109.8 ( 6.7)501305[12.7 - 20.1][.05-.076][103 - 116]um_1 ( n=4)1316.116.2 ( 2.7)0.048.05 ( .01)125178 ( 9.9)22na104[13.1 - 18.2][.03-.06][82 - 96]leuven_2 ( n=3)2114.5 ( .29)12.4.08 ( .02)0.11101.5 ( 21.9)9730nan312[14.3 - 14.7][.07-.09][86 - 117]pitt ( n=3)2115.6 ( 1.9)21.22.05 ( .03)0.11103 ( 9.9)12121[12 - 16]003[14.2 - 16.9][.03-.07][96 - 110]yale ( n=3)2114 ( 0.53)16.66.049 ( .02)0.05785 ( 1.4)9303na203[13.66 - 14.4][.03-.06][84 - 86]um_2 ( n=2)02na23.2 ( 7.9)na.06 ( .003)na107.5 ( 2.2)20nana02[17.6 - 28.8][.058-.06][106 - 109]olin ( n=1)1018na0.07nanana107001 abide demographic information . data were processed using the analysis of functional neuroimages software ( cox , 1996 ) ( http://afni.nimh.nih.gov ) and fsl 5.0 ( smith et al . , 2004 ) ( http://www.fmrib.ox.ac.uk/fsl ) . functional images were slice - time corrected , motion corrected to align to the middle time point , field - map corrected and aligned to the anatomical images using flirt with six degrees of freedom . fsl 's nonlinear registration tool ( fnirt ) was used to standardize images to the mni152 standard image ( 3  mm isotropic ) using sinc interpolation . the outputs were blurred to a global full - width - at - half - maximum of 6  mm . given recent concerns that traditional filtering approaches can cause rippling of motion confounds to neighboring time points ( carp , 2013 ) , we used a second - order band - pass butterworth filter ( power et al . , 2013 ; satterthwaite et al . , 2013 ) to isolate low - frequency bold fluctuations ( .008  <  f  <  .08  hz ) ( cordes et al . , 2001 ) . regression of 17 nuisance variables was performed to improve data quality ( satterthwaite et al . , 2013 ) . nuisance regressors included six rigid - body motion parameters derived from motion correction and their derivatives . white matter and ventricular masks were created at the participant level using fsl 's image segmentation ( zhang et al . , 2001 ) and trimmed to avoid partial - volume effects . an average time series was extracted from each mask and was removed using regression , along with its corresponding derivative . whole - brain global signal was also included as a regressor to mitigate cross - site variability ( power et al . , 2014 ) . all nuisance regressors were band - pass filtered using the second - order butterworth filter ( .008  <  f  <  .08  hz ) ( power et al . , 2013 ; satterthwaite et al . , 2013 ) motion was quantified as the euclidean distance between consecutive time points ( based on detected six rigid - body motion parameters ) . for any instance greater than 0.25  mm , considered excessive motion , the time point as well as the preceding and following time points were censored , or  scrubbed if two censored time points occurred within ten time points of each other , all time points between them were also censored . datasets with fewer than 90% of time points or less than 150 total time points remaining after censoring were excluded from the analysis . motion over the truncated run was summarized for each participant as the average euclidean distance moved between time points ( including areas that were censored ) and was well matched between groups ( p  =  0.92 ) . we used 220 rois ( 10  mm spheres ) adopted from a meta - analysis of functional imaging studies by power et al . ( 2011 ) , excluding 44 of their 264 rois because of missing signal in > 2 participants . mean time courses were extracted from each roi and a 220    220 connectivity matrix of fisher - transformed pearson correlation coefficients was created for each subject . we then concatenated each subject 's functional connectivities to construct a group level data matrix . for each roi pair , we regressed out age ( as numerical ) and site ( as categorical ) covariates from data matrix . for interpretation of findings the other was anatomical , using each roi 's center mni coordinate and a surface based atlas ( fischl et al . , 2004 ) included in freesurfer . these anatomical labels were also used to generate connectograms ( irimia et al . , 2012 ) for complementary visualization of informative connectivities ( inline supplementary table  s2 ) . we used 220 rois ( 10  mm spheres ) adopted from a meta - analysis of functional imaging studies by power et al . ( 2011 ) , excluding 44 of their 264 rois because of missing signal in > 2 participants . mean time courses were extracted from each roi and a 220    220 connectivity matrix of fisher - transformed pearson correlation coefficients was created for each subject . we then concatenated each subject 's functional connectivities to construct a group level data matrix . for each roi pair , we regressed out age ( as numerical ) and site ( as categorical ) covariates from data matrix . for interpretation of findings the other was anatomical , using each roi 's center mni coordinate and a surface based atlas ( fischl et al . , 2004 ) included in freesurfer . these anatomical labels were also used to generate connectograms ( irimia et al . , 2012 ) for complementary visualization of informative connectivities ( inline supplementary table  s2 ) . inline supplementary table s2table s2anatomical labels used in connectogram.frontal lobetrfpog / sfmarg / smfslorssborsorsrginffgorpmfgorginffgtripinffsmedorssupfgsupfsinffgoppinfprcssupprcsprcgsbcg / scstransverse frontopolar gyri and sulcifronto - marginal gyrus ( of wernicke ) and sulcusmiddle frontal sulcus lateral orbital sulcussuborbital sulcus orbital sulcistraight gyrus ( gyrus rectus)orbital part of the inferior frontal gyrus middle frontal gyrus orbital gyritriangular part of the inferior frontal gyrus inferior frontal sulcus medial orbital sulcus ( olfactory sulcus)superior frontal gyrussuperior frontal sulcus opercular part of the inferior frontal gyrusinferior part of the precentral sulcussuperior part of the precentral sulcus precentral gyrus subcentral gyrus ( central operculum ) and sulcicentral sulcus ( rolando s fissure)insular lobealshorpacirinsalsverpshoingsupcirinsloing / cinsinfcirinsposlshorizontal ramus of the anterior lateral sulcusanterior circular sulcus the insulavertical ramus of the anterior lateral sulcusshort insular gyrisuperior segment of circular sulcus of the insulalong insular gyrus and central insular sulcusinferior segment of circular sulcus of the insulaposterior ramus of lateral sulcuslimbic lobeacgg / smacgg / ssbcagpercasmposcgg / scgsmarpposdcggposvcgganterior part of the cingulate gyrus and sulcus middle - anterior part of the cingulate gyrus / sulcussubcallosal area , subcallosal gyruspericallosal sulcus ( s of corpus callosum)middle - posterior part of cingulate gyrus / sulcusmarginal branch of the cingulate sulcusposterior - dorsal part of the cingulate gyrusposterior - ventral part of the cingulate gyrustemporal lobetpopoplsuptglphgatrcostrtsmtgtplinftginftssuptstemporal polepolar plane of the superior temporal gyruslateral aspect of the superior temporal gyrusheschl s gyrus ( anterior transverse temporal gyrus)anterior transverse collateral sulcus transverse temporal sulcus middle temporal gyrustemporal plane of the superior temporal gyrusinferior temporal gyrus inferior temporal sulcus superior temporal sulcusparietal lobeposcgsumargpacl / sposcsjssbpsintps / trpssupplprcunanggpocspostcentral gyrussupramarginal gyrusparacentral lobule and sulcus postcentral sulcussulcus intermedius primus ( of jensen)subparietal sulcusintraparietal sulcus and transverse parietal sulcisuperior parietal lobuleprecuneus angular gyrusparietal - occipital sulcusoccipital lobepahipgcos / linsloctsfugccslingaocsinfocg / ssupocs / trocspostrcoscunmocgmocs / lussupocgocpoparahippocampal gyrusmedial occipito - temporal sulcus and lingual sulcuslateral occipito - temporal sulcusfusiform gyrus calcarine sulcus lingual gyrusanterior occipital sulcusinterior occipital gyrus / sulcus superior occipital sulcus / transverse occipital sulcusposterior transverse collateral sulcuscuneusmiddle occipital gyrus middle occipital sulcus and lunatus sulcus superior occipital gyrusoccipital polesubcorticalpupalcannaccamgthahipputamen pallidumcaudate nucleusnucleus accumbensamygdalathalamushippocampuscerebellumcebcerebellumbrain stembstbrain steminline supplementary table s2 table s2anatomical labels used in connectogram.frontal lobetrfpog / sfmarg / smfslorssborsorsrginffgorpmfgorginffgtripinffsmedorssupfgsupfsinffgoppinfprcssupprcsprcgsbcg / scstransverse frontopolar gyri and sulcifronto - marginal gyrus ( of wernicke ) and sulcusmiddle frontal sulcus lateral orbital sulcussuborbital sulcus orbital sulcistraight gyrus ( gyrus rectus)orbital part of the inferior frontal gyrus middle frontal gyrus orbital gyritriangular part of the inferior frontal gyrus inferior frontal sulcus medial orbital sulcus ( olfactory sulcus)superior frontal gyrussuperior frontal sulcus opercular part of the inferior frontal gyrusinferior part of the precentral sulcussuperior part of the precentral sulcus precentral gyrus subcentral gyrus ( central operculum ) and sulcicentral sulcus ( rolando s fissure)insular lobealshorpacirinsalsverpshoingsupcirinsloing / cinsinfcirinsposlshorizontal ramus of the anterior lateral sulcusanterior circular sulcus the insulavertical ramus of the anterior lateral sulcusshort insular gyrisuperior segment of circular sulcus of the insulalong insular gyrus and central insular sulcusinferior segment of circular sulcus of the insulaposterior ramus of lateral sulcuslimbic lobeacgg / smacgg / ssbcagpercasmposcgg / scgsmarpposdcggposvcgganterior part of the cingulate gyrus and sulcus middle - anterior part of the cingulate gyrus / sulcussubcallosal area , subcallosal gyruspericallosal sulcus ( s of corpus callosum)middle - posterior part of cingulate gyrus / sulcusmarginal branch of the cingulate sulcusposterior - dorsal part of the cingulate gyrusposterior - ventral part of the cingulate gyrustemporal lobetpopoplsuptglphgatrcostrtsmtgtplinftginftssuptstemporal polepolar plane of the superior temporal gyruslateral aspect of the superior temporal gyrusheschl s gyrus ( anterior transverse temporal gyrus)anterior transverse collateral sulcus transverse temporal sulcus middle temporal gyrustemporal plane of the superior temporal gyrusinferior temporal gyrus inferior temporal sulcus superior temporal sulcusparietal lobeposcgsumargpacl / sposcsjssbpsintps / trpssupplprcunanggpocspostcentral gyrussupramarginal gyrusparacentral lobule and sulcus postcentral sulcussulcus intermedius primus ( of jensen)subparietal sulcusintraparietal sulcus and transverse parietal sulcisuperior parietal lobuleprecuneus angular gyrusparietal - occipital sulcusoccipital lobepahipgcos / linsloctsfugccslingaocsinfocg / ssupocs / trocspostrcoscunmocgmocs / lussupocgocpoparahippocampal gyrusmedial occipito - temporal sulcus and lingual sulcuslateral occipito - temporal sulcusfusiform gyrus calcarine sulcus lingual gyrusanterior occipital sulcusinterior occipital gyrus / sulcus superior occipital sulcus / transverse occipital sulcusposterior transverse collateral sulcuscuneusmiddle occipital gyrus middle occipital sulcus and lunatus sulcus superior occipital gyrusoccipital polesubcorticalpupalcannaccamgthahipputamen pallidumcaudate nucleusnucleus accumbensamygdalathalamushippocampuscerebellumcebcerebellumbrain stembstbrain stem anatomical labels used in connectogram . three ml algorithms ( see supplemental methods for technical details ) were implemented in this study to perform a binary classification ( asd vs. td ) using rs - fmri data : ( i ) support vector machines ( svm ) in combination with particle swarm optimization ( pso ) for feature selection ( pso - svm ) ; ( ii ) support vector machines with recursive feature elimination ( rfe - svm ) for feature ranking ; and ( iii ) a nonparametric ensemble learning method called random forest ( rf ) . we first used pso ( kennedy , 1995 ) in combination with a base classifier , a linear support vector machine . pso is a biologically inspired , stochastic optimization algorithm that models the behavior of swarming particles . the pso algorithm was utilized as a feature selection tool to obtain a compact and discriminative feature subset for improved accuracy and robustness of the subsequent classifiers . in a second approach , we used recursive feature elimination , a pruning technique that eliminates original input features by using feature ranking coefficients as classifier weights , and retains a minimum subset of features that yield best classification performance ( guyon , 2002 ) . the output obtained from this algorithm is a list of all features ranked in the order of most informative to least . we used rfe to reduce the feature space dimensionality and select the top informative features . in rf , the basic unit is a classification tree and the ensemble of trees ( or forest ) is used to classify participants using features ( e.g. , connectivity measures from fmri ; see inline supplementary fig . each tree classifies or predicts a diagnostic status , and the forest 's final prediction is the classification having the most votes based on all the trees in the forest . in random forests , it is not necessary to perform cross - validation or a separate test set to obtain an unbiased estimate of the test set error because validation is intrinsic to rf . out - of - bag ( oob ) error is estimated internally , during the rf run ( http://www.stat.berkeley.edu/~breiman/randomforests ) . each tree in the forest is constructed using a bootstrap sample from the original data . each bootstrap sample will contain approximately two - thirds of the original observations , which results in one - third of the subjects being left out ( i.e. , not used in the construction of a particular tree ) . these out - of - bag samples are used to attain an unbiased estimate of the classification error ( breiman , 2001 ) . the oob error estimate can be shown to be almost identical to the error obtained by cross - validation ( hastie et al . , 2009 ) . rf is an example of bootstrap aggregation or bagging and is relatively protected from overfitting ( breiman , 2001 ) . as an additional improvement of the bagging process , rf reduces the correlation between trees by using a subset of the variables at each split in the growing of each tree . the oob data are used to determine variable importance , based on mean decrease in accuracy . this is done for each tree by randomly permuting a variable in the oob data and recording the change in accuracy or misclassification using the oob data . for the ensemble of trees , the permuted predictions are aggregated and compared against the unpermuted predictions to determine the importance of the permuted variable by the magnitude of the decrease in accuracy of that variable . when the number of variables is very large ( in the order of 2    10 ) , rf can be run once with all the variables , then again using only the most important variables selected from the first run . in rf , the basic unit is a classification tree and the ensemble of trees ( or forest ) is used to classify participants using features ( e.g. , connectivity measures from fmri ; see inline supplementary fig . each tree classifies or predicts a diagnostic status , and the forest 's final prediction is the classification having the most votes based on all the trees in the forest . in random forests , it is not necessary to perform cross - validation or a separate test set to obtain an unbiased estimate of the test set error because validation is intrinsic to rf . out - of - bag ( oob ) error is estimated internally , during the rf run ( http://www.stat.berkeley.edu/~breiman/randomforests ) . each tree in the forest is constructed using a bootstrap sample from the original data . each bootstrap sample will contain approximately two - thirds of the original observations , which results in one - third of the subjects being left out ( i.e. , not used in the construction of a particular tree ) . these out - of - bag samples are used to attain an unbiased estimate of the classification error ( breiman , 2001 ) . the oob error estimate can be shown to be almost identical to the error obtained by cross - validation ( hastie et al . , 2009 ) . rf is an example of bootstrap aggregation or bagging and is relatively protected from overfitting ( breiman , 2001 ) . as an additional improvement of the bagging process , rf reduces the correlation between trees by using a subset of the variables at each split in the growing of each tree . the oob data are used to determine variable importance , based on mean decrease in accuracy . this is done for each tree by randomly permuting a variable in the oob data and recording the change in accuracy or misclassification using the oob data . for the ensemble of trees , the permuted predictions are aggregated and compared against the unpermuted predictions to determine the importance of the permuted variable by the magnitude of the decrease in accuracy of that variable . when the number of variables is very large ( in the order of 2    10 ) , rf can be run once with all the variables , then again using only the most important variables selected from the first run . , data are bootstrapped into in - bag and out - of - bag ( for testing of the model ) . the tree starts with the in - bag data at the root node , with a random subset of features , and begins the process of  splitting . the splitting criteria at each node are determined by a type of greedy algorithm that recursively partitions the data into daughter nodes , until reaching a terminal node . ( greedy recursive partitioning algorithms make the partitioning choice that performs best at each split , with the goal of globally optimal classification ) . the out - of - bag data are then sent down the tree as a test of model fit . once all 10,000 trees in the forest have finished this process , the forest takes the majority vote from the trees , and obtains variable importance measures and oob error . fig . , data are bootstrapped into in - bag and out - of - bag ( for testing of the model ) . the tree starts with the in - bag data at the root node , with a random subset of features , and begins the process of  splitting . the splitting criteria at each node are determined by a type of greedy algorithm that recursively partitions the data into daughter nodes , until reaching a terminal node . ( greedy recursive partitioning algorithms make the partitioning choice that performs best at each split , with the goal of globally optimal classification ) . the out - of - bag data are then sent down the tree as a test of model fit . once all 10,000 trees in the forest have finished this process , the forest takes the majority vote from the trees , and obtains variable importance measures and oob error . random forest procedure . for each classification tree ( rf s single unit ) , data are bootstrapped into in - bag and out - of - bag ( for testing of the model ) . the tree starts with the in - bag data at the root node , with a random subset of features , and begins the process of  splitting . the splitting criteria at each node are determined by a type of greedy algorithm that recursively partitions the data into daughter nodes , until reaching a terminal node . ( greedy recursive partitioning algorithms make the partitioning choice that performs best at each split , with the goal of globally optimal classification ) . the out - of - bag data are then sent down the tree as a test of model fit . once all 10,000 trees in the forest have finished this process , the forest takes the majority vote from the trees , and obtains variable importance measures and oob error . , we used the r package randomforest ( liaw and wiener , 2002 ) for feature selection and classification analysis . as importance scores , proximity measures , and error rates vary because of the random components in rf ( out of bag sampling , node - level permutation testing ) , we created a forest with a sufficient number of trees to ensure stability . to optimize the most important rf parameters , we fine - tuned the number of trees per forest to 10,000 as the plotted error rate was observed to stabilize ( see inline supplementary fig . s2 ) , and set the number of variables randomly selected per node to 150 , after tuning for this parameter . the rf algorithm ranked all features based on variable importance given by the mean decrease in accuracy . after the initial run with all features , we used the variable importance measures to select for 100 top informative features that were then used to build a classifier and obtain oob error ( see inline supplementary fig . , we obtained the oob error to assess how well the model predicted new data ( see inline supplementary fig . , we used the r package randomforest ( liaw and wiener , 2002 ) for feature selection and classification analysis . as importance scores , proximity measures , and error rates vary because of the random components in rf ( out of bag sampling , node - level permutation testing ) , we created a forest with a sufficient number of trees to ensure stability . to optimize the most important rf parameters , we fine - tuned the number of trees per forest to 10,000 as the plotted error rate s2 ) , and set the number of variables randomly selected per node to 150 , after tuning for this parameter . the rf algorithm ranked all features based on variable importance given by the mean decrease in accuracy . after the initial run with all features , we used the variable importance measures to select for 100 top informative features that were then used to build a classifier and obtain oob error ( see inline supplementary fig . , we obtained the oob error to assess how well the model predicted new data ( see inline supplementary fig . initially , the error fluctuates greatly , then eventually stabilizes with a large enough forest with 10,000 trees . the number of trees in the forest is an important parameter for fine - tuning to ensure stability of the algorithm . the red , green , and black lines represent the oob errors for asd , td , and out - of - bag participants , respectively . initially , the error fluctuates greatly , then eventually stabilizes with a large enough forest with 10,000 trees . the number of trees in the forest is an important parameter for fine - tuning to ensure stability of the algorithm . the red , green , and black lines represent the oob errors for asd , td , and out - of - bag participants , respectively . initially , the error fluctuates greatly , then eventually stabilizes with a large enough forest with 10,000 trees . the number of trees in the forest is an important parameter for fine - tuning to ensure stability of the algorithm . the red , green , and black lines represent the oob errors for asd , td , and out - of - bag participants , respectively . this is done for each tree by randomly permuting a variable in the oob data and recording the change in accuracy . for the ensemble of trees , the permuted predictions are aggregated and compared against the unpermuted predictions to determine the importance of the permuted variable by the magnitude of the decrease in accuracy of that variable . we selected the top features using this mda plot , where we observed stabilized rate of change of the mda curve . here , 100 features were selected using the mda measures . this is done for each tree by randomly permuting a variable in the oob data and recording the change in accuracy . for the ensemble of trees , the permuted predictions are aggregated and compared against the unpermuted predictions to determine the importance of the permuted variable by the magnitude of the decrease in accuracy of that variable . we selected the top features using this mda plot , where we observed stabilized rate of change of the mda curve . here , 100 features were selected using the mda measures . this is done for each tree by randomly permuting a variable in the oob data and recording the change in accuracy . for the ensemble of trees , the permuted predictions are aggregated and compared against the unpermuted predictions to determine the importance of the permuted variable by the magnitude of the decrease in accuracy of that variable . we selected the top features using this mda plot , where we observed stabilized rate of change of the mda curve . here , 100 features were selected using the mda measures . s4fine tuning the mtry parameter for rf to select the optimal number of features to split at each node . using the top 100 features , we fine tuned rf again on the parameter mtry , the number of features used at each split , to 5 . s4fine tuning the mtry parameter for rf to select the optimal number of features to split at each node . using the top 100 features , we fine tuned rf again on the parameter mtry , the number of features used at each split , to 5 . fine tuning the mtry parameter for rf to select the optimal number of features to split at each node . using the top 100 features , we fine tuned rf again on the parameter mtry , the number of features used at each split , to 5 . inline supplementary figs . s2 , s3 , s4 can be found online at http://dx.doi.org/10.1016/j.nicl.2015.04.002 . the pso - svm achieved an accuracy of 81% on the training , and of 58% on the validation dataset , with 44% sensitivity and 72% specificity ( for matching details , see inline supplementary table s3 ) . accuracy for rfe - svm was 100% on the training dataset and 66% on the validation dataset , with 60% sensitivity and 72% specificity . . however , using the top 100 features with the highest variable importance ( as defined above ) , rf achieved 90.8% accuracy ( oob error rate 9.2% ) , with sensitivity at 89% and specificity at 93% . in fact , using only the 10 most informative features , rf still attained an accuracy of 75% , with 75% sensitivity and 75% specificity . note that the rf methodology does not have an external validation set , but the bootstrap sample of the data for each tree acts as an internal validation dataset . using an external 20% validation set , accuracy from rf was at similar levels as for pso and rfe ( inline supplementary table  s4 ) . however , since rf is an ensemble learning method , such external validation is not usually part of the rf procedure ( see the discussion section ) . the pso - svm achieved an accuracy of 81% on the training , and of 58% on the validation dataset , with 44% sensitivity and 72% specificity ( for matching details , see inline supplementary table s3 ) . accuracy for rfe - svm was 100% on the training dataset and 66% on the validation dataset , with 60% sensitivity and 72% specificity . however , using the top 100 features with the highest variable importance ( as defined above ) , rf achieved 90.8% accuracy ( oob error rate 9.2% ) , with sensitivity at 89% and specificity at 93% . in fact , using only the 10 most informative features , rf still attained an accuracy of 75% , with 75% sensitivity and 75% specificity . note that the rf methodology does not have an external validation set , but the bootstrap sample of the data for each tree acts as an internal validation dataset . using an external 20% validation set , accuracy from rf was at similar levels as for pso and rfe ( inline supplementary table  s4 ) . however , since rf is an ensemble learning method , such external validation is not usually part of the rf procedure ( see the discussion section ) . inline supplementary table s3table s3abide cohort matching ( p - values from independent two - sample t - tests).full sampletrainingvalidationtraining < = > validationtraining < = > validationn  = 252n=200n=52asd < = > tdasd < = > tdasd < = > tdasd < = > asdtd < = > tdmotion0.9230.9220.9840.9850.984age0.7930.7800.9840.8400.962nviq0.7710.7530.9240.9340.986ados0.824inline supplementary table s3 table s3abide cohort matching ( p - values from independent two - sample t - tests).full sampletrainingvalidationtraining < = > validationtraining < = > validationn  = 252n=200n=52asd < = > tdasd < = > tdasd < = > tdasd < = > asdtd < = > tdmotion0.9230.9220.9840.9850.984age0.7930.7800.9840.8400.962nviq0.7710.7530.9240.9340.986ados0.824 abide cohort matching ( p - values from independent two - sample t - tests ) . inline supplementary table s3 inline supplementary table s4table s4training and predictive ( validation ) accuracies for pso - svm , rfe - svm , and rf , using external validation sets.pso-svmrfe-svmrftraining ( n=200)81%100%91%validation ( n=52)58%66%62%number of features10040150inline supplementary table s4 table s4training and predictive ( validation ) accuracies for pso - svm , rfe - svm , and rf , using external validation sets.pso-svmrfe-svmrftraining ( n=200)81%100%91%validation ( n=52)58%66%62%number of features10040150 training and predictive ( validation ) accuracies for pso - svm , rfe - svm , and rf , using external validation sets . inline supplementary table s4 inline supplementary tables s3 , s4 can be found online at http://dx.doi.org/10.1016/j.nicl.2015.04.002 . given the overall better performance from rf ( compared to the other ml techniques ) , we proceeded to examine the most informative features selected by rf . when selecting only the 10 top features , several regions were noted to participate in two or more informative connections : left anterior cingulate gyrus , postcentral gyrus bilaterally , right precuneus , and left calcarine sulcus ( see inline supplementary fig . s5a ) . the pattern for the top 100 features , which yielded the peak accuracy of 91% , involved connections between 124 rois ( see inline supplementary fig . the left paracentral lobule and the right postcentral gyrus participated in 6 informative connections , which was 2sd above the mean participation among the 124 informative rois . given the overall better performance from rf ( compared to the other ml techniques ) , we proceeded to examine the most informative features selected by rf . when selecting only the 10 top features , several regions were noted to participate in two or more informative connections : left anterior cingulate gyrus , postcentral gyrus bilaterally , right precuneus , and left calcarine sulcus ( see inline supplementary fig . the pattern for the top 100 features , which yielded the peak accuracy of 91% , involved connections between 124 rois ( see inline supplementary fig . s5b ) . the left paracentral lobule and the right postcentral gyrus participated in 6 informative connections , which was 2sd above the mean participation among the 124 informative rois . the labels of the connectograms can be found in inline supplementary table s1 , in the order in which they appear in the figure . the labels of the connectograms can be found in inline supplementary table s1 , in the order in which they appear in the figure . the labels of the connectograms can be found in inline supplementary table s1 , in the order in which they appear in the figure . we further examined these top 100 features by functional networks , as defined in power et al . we first determined the number of times rois from a specific network participated in an informative connection ( fig . the distribution differed significantly from the overall distribution of rois across different networks in power et al . default mode , somatosensory / motor ( hand region ) , and visual networks ranked at the top , accounting for half of all informative connections . we further examined normalized network importance ( i.e. , the number of times network rois participated in an informative connection divided by the total number of rois in the given network ; fig . this ratio highlighted the importance of somatosensory / motor networks ( both mouth and hand regions ) , ahead of subcortical , memory retrieval , and visual networks . within the two top networks , the somatosensory cortex ( postcentral gyrus ) participated in 23 of the top 100 connections , whereas the primary motor cortex ( precentral gyrus ) participated in only 9 . finally , we depicted the 100 top connections in a heat map matrix ( fig . 1c ) , which highlighted the importance of connections between dmn and visual rois ( 14 informative features ) . informative features for the somatosensory / motor hand regions were dominated by connections with subcortical rois . examining the 100 top features by broad anatomical subdivisions ( fischl et al . , 2004 ) , the distribution did not differ significantly from expected (   =  5.225 , p  =  0.98 ) . we found 60 participations by parietal lobes bilaterally , followed by 45 for occipital lobes bilaterally . the right frontal lobe also had heightened density of informative connections ( with 21 participations ; fig . 1d ) . when normalizing participations by the number of rois within each subdivision ( analogous to the procedure described above ) , the bilateral parietal lobes again stood out , followed by the right temporal lobe ( fig . 1f ) , the highest concentration of the most informative connections was found to involve the parietal lobes bilaterally , with six informative connections each within the left and right parietal lobes , and an additional six between the right parietal and left occipital lobes and five between the left parietal and right frontal lobes . they were almost evenly divided with respect to the direction of mean fc differences ( 45% over- , 55% underconnected in the asd group ) and type of connection ( 49% inter- , 51% intra - hemispheric ) . 95% of the top connections were between networks , 5% were within networks , 87% were mid- to long - distance ( > 40  mm euclidean distance ) , and 11% were short - distance ( < 40  mm ) . however , these percentages of euclidean distance (   =  0.228 , p - value =  0.63 ) and of network connection (   =  2.24 , p - value =  0.13 ) did not differ significantly from those expected based on the totality of 24,090 features examined in the entire connectivity matrix . in this study , we used intrinsic functional connectivities between a set of functionally defined rois ( power et al . , 2011 ) for machine learning diagnostic classification of asd . while accuracy remained overall modest for pso - svm and rfe - svm approaches , it was high ( 91% ) for random forest . the rf algorithm is well - suited for classification of fcmri data for several reasons : it ( i ) is applicable when there are more features than observations , ( ii ) performs embedded feature selection and is relatively insensitive to any large number of irrelevant features , ( iii ) incorporates interactions between features , ( iv ) is based on the theory of ensemble learning that allows the algorithm to learn accurately both simple and complex classification functions , and ( v ) is applicable for both binary and multi - category classification tasks ( breiman , 2001 ) . we examined in two steps which single regions and functional networks were most  informative , contributing most heavily to diagnostic classification . first , focusing on only the ten top features , for which an accuracy of 75% was achieved , we found that limbic ( left anterior cingulate ) , somatosensory ( postcentral gyri bilaterally ) , visual ( calcarine sulcus ) , and default mode ( right precuneus ) regions stood out ( supplementary fig . this was largely supported by subsequent examination of the 100 top features , for which the peak classification accuracy of 91% was reached . half of all rois involved in these connections belonged to three ( out of 14 ) networks , which were default mode , somatosensory / motor ( hand ) and visual ( fig . . the informative role of the dmn in diagnostic classification was not surprising , given extensive evidence of dmn anomalies in asd . these include fmri findings indicating failure to enter the default mode in asd ( kennedy et al . , 2006 ; murdaugh et al . , 2012 ) , as well as numerous fcmri reports of atypical connectivity of the dmn ( assaf et al . , 2010 ; courchesne et al . , 2005 ; , 2013b ; von dem hagen et al . , 2013 ; washington et al . , 2014 ; zielinski et al . , functionally , the dmn is considered to relate to self - referential cognition , including domains of known impairment in asd , such as theory of mind and affective decision making ( andrews - hanna et al . , 2010 ) . the visual system appears to be overall relatively spared in asd ( simmons et al . , 2009 ) , and atypically enhanced participation of the visual cortex has been observed across many fmri ( samson et al . , 2012 ) and fcmri studies ( shen et al . , 2012 ) , with the added recent finding of atypically increased local functional connectivity in asd being associated with symptom severity ( keown et al . , 2013 ) . the relative importance of visual regions and occipital lobes probably reflects atypical function of the visual system in asd ( dakin and frith , 2005 ) rather than integrity . the role of somatosensory regions was particularly prominent when considering a normalized ratio of informative rois ( fig . although only a total of 26 somatosensory / motor rois ( hand and mouth regions combined ) were included in the analysis , these participated in 44 out of the 100 most informative connections . this effect was distinctly driven by the primary somatosensory cortex in the postcentral gyrus ( rather than motor cortex ) . our finding may be related to impaired emotional recognition of facial expressions in patients with focal damage to the right somatosensory cortices ( si and sii ) observed by adolphs and colleagues ( 2000 ) , given that perception of facial expressions is also frequently impaired in individuals with asd ( nuske et al . , 2013 ) . although somatosensory anomalies have been described in a number of asd studies ( puts et al . , 2014 ; tomchek and dunn , 2007 ; tommerdahl et al . , 2007 ) , the highly prominent role of somatosensory regions in diagnostic classification was remarkable . cascio and colleagues ( 2012 ) found atypical activation patterns in adults with asd for pleasant and unpleasant tactile stimuli in the pcc and insula , which could reflect altered functional connectivity with the somatosensory cortex ( not tested in the cited study ) . atypical postcentral responses to somatosensory stimuli have also been observed in one evoked potential study in young children with asd ( miyazaki et al . , 2007 ) . although little is known about differential responses between asd and td groups to resting state instructions or confined conditions within bore and head coil during scanning , it is possible that tactile or proprioceptive processing had some effect on the role of somatosensory rois in diagnostic classification . however , focus on low frequencies in our study would be expected to emphasize intrinsic fluctuations ( thought to reflect history of co - activation ( lewis et al . , 2009 ) ) over online processing effects that tend to occur at higher frequencies . diagnostic classification accuracy achieved using random forest machine learning was distinctly above accuracies reported from previous studies using rs - fcmri ( anderson et al . , 2011 ) , including a recent publication ( nielsen et al . , rf implements a bootstrapping  out - of - bag validation process ( randomly selected subsamples ) , contrary to the other machine learning tools ( pso - svm , rfe - svm ) used here , which required external validation datasets . this latter procedure may provide stringent protection from overfitting to the idiosyncrasies of any given training dataset , as may be seen with conventional leave - one - out validation ( ecker et al . , 2010a ; ecker et al . , 2010b ; iidaka , 2015 ; ingalhalikar et al . , 2011 ; nielsen et al . , 2013 ) the procedure depends , however , on the assumption that training and validation samples can be adequately matched . such matching may be difficult , if many variables ( e.g. , age , sex , motion , site , eye status , scanner , imaging protocol ) are potentially relevant ( cf . some potentially crucial variables , such as iq , symptom severity , and handedness , were incomplete in abide ( missing for some sites ) and could thus not be well matched . other possibly important variables , some of which are hard to operationalize ( e.g. , history of interventions , medication ) were entirely unavailable . even if matching on all those variables were possible , a more intractable problem would remain . there is general consensus that asd is an umbrella term for several  maybe many  underlying biological subtypes ( jeste and geschwind , 2014 ) , which are currently unknown . any substantial difference between training and validation datasets in the composition of these subtypes , which can not be detected and can not therefore be avoided , is likely to result in poor prediction in a validation dataset . in asd machine learning classification , accuracy will tend to be overestimated in training datasets ( with common leave - one - out procedure ) , but underestimated in external validation datasets because of the problems described above . indeed , when using such a split into training and external validation sets , rf yielded accuracies similar to pso and rfe - svm . however , such split is inconsistent with rf as an ensemble learning technique , which instead implements out - of - bag validation . in our view , this approach presents a solution to the matching problems described above , as the bootstrapping procedure itself ensures matching of training and validation datasets . this solution may be considered ideal , given the currently available sample limitations even from consortium datasets . as described in section  2.2 , the mandatory ( power et al . , 2015 ; satterthwaite et al . , 2013 ) selection of low - motion data reduced the initially large abide sample to only 252 participants . external 20% validation sets included only 26 participants per group , highlighting the matching issues described above . distinctly larger high - quality datasets may in the future allow investigators to go beyond the pragmatic bootstrapping solution offered by rf and return to even more stringent external validation procedures because the probability of adequate matching for unknown subtypes by chance alone will increase with much larger numbers . our findings suggest that intrinsic functional connectivity may identify complex biomarkers of asd , which is not unexpected given the extensive literature on functional connectivity anomalies in this disorder ( e.g. , vissers et al . , 2012 ) . aside from the use of rf machine learning and its virtues described above , the main difference between our study and the relatively unsuccessful classification study by nielsen et al . ( 2013 ) was our careful selection of high - quality ( low - motion ) datasets , resulting in the inclusion of only 252 ( out of a total of 1112 ) participants , equally divided between two tightly motion - matched diagnostic groups . our procedure was informed by the recent flurry of studies suggesting that even small amounts of head motion well below 1  mm affect interregional fmri signal correlations ( carp , 2011 ; jo et al . , 2013 ; power et al . , 2013b ; power et al . , 2014 ; satterthwaite et al . , 2013 ; van dijk et al . , although we modeled effects of site , the use of multisite data with the numerous factors of variability it entails remains a challenge that needs to be accepted as high - quality rs - fmri data for comparable sample sizes from a single site are not currently available . inclusion of 126 asd participants may provide relative protection from cohort effects that are probably at work in many small - sample imaging studies . however , the need for high levels of compliance in fmri studies , even when there is no explicit task , inevitably results in inclusionary biases because low - functioning people with asd are unable to participate . the methodologically indispensable step of selecting low - motion data probably added to this issue , given that higher - functioning participants were likely to move less during scanning . indeed , our diagnostic groups were matched for nonverbal iq , and relatively few asd participants with intellectual disability and iqs below 70 were included . the pattern of informative connections observed in our study may therefore not apply to the lower - functioning end of the autism spectrum . the pattern of these connections was highly complex , involving numerous brain regions . while some networks ( somatosensory , default mode , visual ) stood out , many others contributed to the classification this may be disappointing to anyone harboring the hope that the neurobiology of asd might ultimately be pinned down to simple and localizable causes . however , the literature on functional and anatomical brain anomalies in asd is fully consistent with the concept of a disorder with highly distributed , rather than localized , patterns ( akshoomoff et al . , 2002 ; mller , 2007 ; philip et al . , 2012 ; vissers et al . , 2012 ; wass , 2011 ) . the complex pattern ( cf . supplementary fig 5b ) should , however , not be viewed as definitive for the asd population as a whole ( in particular lower - functioning segments ) . instead , it reflects a distinctive connectivity pattern for a large cohort of children and young adults with asd . sample size , careful data denoising , and refinement of machine learning approaches in the present study thus present a distinct advance in the search for functional connectivity biomarkers of asd , but given the challenges described above , much further work remains to be done . although fcmri is generally accepted as a powerful technique for identifying network abnormalities , the addition of complementary techniques ( e.g. , diffusion weighted mri for assays of anatomical connectivity ; magnetoencephalography for detection of neuronal coherence in high - frequency bands ) will likely enhance diagnostic classification and the detection of complex biomarkers ( see zhou et al . ( 2014 ) for a recent multimodal attempt with moderate success ) . however , it is also important to recognize that machine learning diagnostic classification can only be performed at the level permitted by the diagnostic procedure itself , which is fundamentally imperfect . it can not be expected that a disorder recognized as neurobiological in nature would be detected by means of purely behavioral and observational criteria currently used for diagnosis . there the contribution of machine learning to the discovery of biomarkers , which can ultimately replace behavioral criteria , is therefore important .
despite consensus on the neurological nature of autism spectrum disorders ( asd ) , brain biomarkers remain unknown and diagnosis continues to be based on behavioral criteria . 
 growing evidence suggests that brain abnormalities in asd occur at the level of interconnected networks ; however , previous attempts using functional connectivity data for diagnostic classification have reached only moderate accuracy . 
 we selected 252 low - motion resting - state functional mri ( rs - fmri ) scans from the autism brain imaging data exchange ( abide ) including typically developing ( td ) and asd participants ( n  =  126 each ) , matched for age , non - verbal iq , and head motion . 
 a matrix of functional connectivities between 220 functionally defined regions of interest was used for diagnostic classification , implementing several machine learning tools . while support vector machines in combination with particle swarm optimization and recursive feature elimination performed modestly ( with accuracies for validation datasets < 70% ) , diagnostic classification reached a high accuracy of 91% with random forest ( rf ) , a nonparametric ensemble learning method . among the 100 most informative features ( connectivities ) , for which this peak accuracy was achieved , participation of somatosensory , default mode , 
 visual , and subcortical regions stood out . 
 whereas some of these findings were expected , given previous findings of default mode abnormalities and atypical visual functioning in asd , the prominent role of somatosensory regions was remarkable . 
 the finding of peak accuracy for 100 interregional functional connectivities further suggests that brain biomarkers of asd may be regionally complex and distributed , rather than localized .