Neuropathic pain (NP) is a debilitating and refractory chronic pain with a higher prevalence especially in elderly patients. Cell senescence considered a key pathogenic factor in NP. The objective of this research is to discover genes associated with aging in peripheral blood of individuals with NP using bioinformatics techniques. Two cohorts (GSE124272 and GSE150408) containing peripheral blood samples of NP were downloaded from the GEO database. By merging the two cohorts, differentially expressed aging-related genes (DE-ARGs) were obtained by intersection with aging-related genes. The potential biological mechanisms of DE-ARGs were further analyzed through GO and KEGG. Three machine learning methods, namely, LASSO, SVM-RFE, and Random Forest, were utilized to identify diagnostic biomarkers. A Nomogram model was developed to assess their diagnostic accuracy. The validation of biomarker expression and diagnostic effectiveness was conducted in three distinct pain cohorts. The CIBERSORT algorithm was employed to evaluate the immune cell composition in the peripheral blood of patients with NP and investigate its association with the expression of diagnostic biomarkers. This study identified a total of 24 DE-ARGs, mainly enriched in "Chemokine signaling pathway," "Inflammatory mediator regulation of TRP channels," "HIF-1 signaling pathway" and "FOXO signaling pathway". Three machine learning algorithms identified a total of four diagnostic biomarkers (CEBPA, CEACAM1, BTG3 and IL-1R1) with good diagnostic performance and the similar expression difference trend in different types of pain cohorts. The expression levels of CEACAM1 and IL-1R1 exhibit a positive correlation with the percentage of neutrophils. Using machine learning techniques, our research identified four diagnostic biomarkers related to aging in peripheral blood, providing innovative approaches for the diagnosis and treatment of NP.