The development of neuroimaging technology and molecular genetics has produced a large amount of imaging genetics data, which has greatly promoted the study of complex mental diseases. However, because the feature dimension of the data is too high, the correlation measure assumes that the data obey Gaussian distribution, and traditional algorithms often cannot explain these two types of data well. This article mainly studies image genetics analysis and its application based on neural network. In this paper, based on the theory and application technology of neural network, the tree structure is established by prior knowledge, that is, each SNP site is used as a leaf node of the tree, and the LD block and genome formed by the linkage imbalance of multiple SNP sites are used as intermediate nodes. Then, the hierarchical relationship of features was introduced. On this basis, a sparse learning method based on tree structure guidance is used to select features from multiple features of multiple SNPs locus regression candidate brain regions. Finally, the identification of SNPs in feature selection is used to predict quantitative traits of brain regions. The distribution of the typical vector values obtained by the algorithm in the experimental data is basically consistent with the distribution of the median of the actual data, and the correlation coefficient obtained is closest to the actual correlation coefficient in the data set. The average correlation coefficient of the algorithm reaches 82.3%, which is about 4.2% higher than the control algorithm. Experimental results show that this method can not only significantly improve the regression performance but also detect the risk gene SNPs loci with spatial clustering features and functional interpretation significance. It is practical and effective to use it in clinical trials.