BackgroundIn the pathogenesis of osteoarthritis (OA) and metabolic syndrome (MetS), the immune system plays a particularly important role. The purpose of this study was to find key diagnostic candidate genes in OA patients who also had metabolic syndrome.MethodsWe searched the Gene Expression Omnibus (GEO) database for three OA and one MetS dataset. Limma, weighted gene co-expression network analysis (WGCNA), and machine learning algorithms were used to identify and analyze the immune genes associated with OA and MetS. They were evaluated using nomograms and receiver operating characteristic (ROC) curves, and finally, immune cells dysregulated in OA were investigated using immune infiltration analysis.ResultsAfter Limma analysis, the integrated OA dataset yielded 2263 DEGs, and the MetS dataset yielded the most relevant module containing 691 genes after WGCNA, with a total of 82 intersections between the two. The immune-related genes were mostly enriched in the enrichment analysis, and the immune infiltration analysis revealed an imbalance in multiple immune cells. Further machine learning screening yielded eight core genes that were evaluated by nomogram and diagnostic value and found to have a high diagnostic value (area under the curve from 0.82 to 0.96).ConclusionEight immune-related core genes were identified (FZD7, IRAK3, KDELR3, PHC2, RHOB, RNF170, SOX13, and ZKSCAN4), and a nomogram for the diagnosis of OA and MetS was established. This research could lead to the identification of potential peripheral blood diagnostic candidate genes for MetS patients who also suffer from OA.