Age-related macular degeneration (AMD) is one of the most common causes of irreversible vision loss in the elderly. Its pathogenesis is likely multifactorial, involving a complex interaction of metabolic and environmental factors, and remains poorly understood. Previous studies have shown that mitochondrial dysfunction and oxidative stress play a crucial role in the development of AMD. Oxidative damage to the retinal pigment epithelium (RPE) has been identified as one of the major mediators in the pathogenesis of age-related macular degeneration (AMD). Therefore, this article combines transcriptome sequencing (RNA-seq) and single-cell sequencing (scRNA-seq) data to explore the role of mitochondria-related genes (MRGs) in AMD. Firstly, differential expression analysis was performed on the raw RNA-seq data. The intersection of differentially expressed genes (DEGs) and MRGs was performed. This paper proposes a deep subspace nonnegative matrix factorization (DS-NMF) algorithm to perform a multi-layer nonlinear transformation on the intersection of gene expression profiles corresponding to AMD samples. The age of AMD patients is used as prior information at the network’s top level to change the data distribution. The classification is based on reconstructed data with altered distribution. The types obtained significantly differ in scores of multiple immune-related pathways and immune cell infiltration abundance. Secondly, an optimal AMD diagnosis model was constructed using multiple machine learning algorithms for external and qRT-PCR verification. Finally, ten potential therapeutic drugs for AMD were identified based on cMAP analysis. The AMD subtypes identified in this article and the diagnostic model constructed can provide a reference for treating AMD and discovering new drug targets.