Four hub genes (GALNT16, HTR2B, RAB8A, and BEX2) were revealed to be significantly correlated with AF by LASSO logistic regression and the SVM-RFE algorithm. The gene discussed is HTR2B; the disease is atrial fibrillation.