Here, we combined phenotyping using classical behavioral assays with recent advances in automated classification of individual and group behaviors to develop a new dimensionality reduction approach that captured sex- and environment-dependent variability of behavioral phenotypes in Shank2−/− and Tsc1+/− autism mouse models as well as Purkinje cell–specific, heterozygous Tsc1 mutant mice (further referred to as L7-Tsc1flox/+ mice). This evidence concerns the gene SHANK2 and autism.