Hypertrophic cardiomyopathy is a hereditary disease characterized by asymmetric ventricular hypertrophy as the key anatomical feature. Currently, there exists no effective method for the early diagnosis of hypertrophic cardiomyopathy. In this analysis, we incorporated multiple GEO datasets containing RNA profiles of hypertrophic cardiomyopathic patient tissues, identified 642 differentially expressed genes, and performed GO and KEGG analyses. Furthermore, we narrowed down 46 characteristic genes from these differentially expressed genes using random decision forests and conducted transcription factor regulation analysis on them. Using 40 genes that showed overlap between the training set and the verification set, the artificial neural network was trained, and the final MPS scoring model was constructed, and a receiver-operating characteristic (ROC) curve was drawn. We used the MPS model to predict the verification dataset and drew the ROC curve, which demonstrated the good prediction performance of the model. In conclusion, this study combines a random decision forest and artificial neural network to build a diagnostic model for hypertrophic cardiomyopathy to predict the disease, aiming at early detection and treatment, prolonging the survival time, and improving the quality of life of patients.