Our study employed various machine learning algorithms to identify that APLNR, PCDH12, PODXL, SLC40A1, TM4SF18, and TNFRSF25, among the lipid metabolism genes, can serve as diagnostic markers in patients with atherosclerosis and are associated with atherosclerotic immune infiltration. This evidence concerns the gene TM4SF18 and atherosclerosis.