Sleep deprivation (SD), a common sleep disease in clinic, has certain risks, and its pathogenesis is still unclear. This study aimed to identify ferroptosis-cuproptosis-related genes (FCRGs) associated with SD through bioinformatics and machine learning, thus elucidating their biological significance and clinical value. SD-DEGs were obtained from GEO. We intersected key WGCNA module genes of DE-FCRGs with SD-DEGs to obtain SD-DE-FCRGs. GO and KEGG analyses were performed. Machine learning was used to screen SD-DE-FCRGs, and filtered genes were intersected to obtain SD characteristic genes. ROC curves were used to evaluate the accuracy of SD characteristic genes. CIBERSORT was used to analyze the correlation between SD-DE-FCRGs and immune cells. We constructed a ceRNA network of SD-DE-FCRGs and used DGIbd to predict gene drug targets. The 156 DEGs were identified from GSE98566. Five SD-DE-FCRGs from DE- FCRGs and SD-DEGs were analyzed via WGCNA, and enrichment analysis involved mainly ribosome regulation, mitochondrial pathways, and neurodegenerative diseases. Machine learning was used to obtain Four SD-DE-FCRGs (IKZF1, JCHAIN, MGST3, and UQCR11), and these gene analyses accurately evaluated the distribution model (AUC=0.793). Immune infiltration revealed that SD hub genes were correlated with most immune cells. Unsupervised cluster analysis revealed significant differential expression of immune-related genes between two subtypes. GSVA and GSEA revealed that enriched biological functions included oxidative phosphorylation, ribonucleic acid, metabolic diseases, activation of oxidative phosphorylation, and other pathways. Four SD-DE-FCRGs associated with 29 miRNAs were identified via the construction of a ceRNA network. The important target lenalidomide of IKZF1 was predicted. We first used bioinformatics and machine learning to screen four SD-DE-FCRGs. These genes may affect the involvement of infiltrating immune cells in pathogenesis of SD by regulating FCRGs. We predicted that lenalidomide may target IKZF1 from SD-DE-FCRGs.