Our research systematically discovered and verified four immune-associated candidate hub genes (ASNS, SRGN, CD70, TRIB3) with high predictive value for diagnosing osteosarcoma by bioinformatics analysis and machine learning algorithms. This evidence concerns the gene ASNS and osteosarcoma.