The study aimed to explore the accuracy and stability of Deep metric learning (DML) algorithm in Magnetic Resonance Imaging (MRI) examination of Alzheimer's Disease (AD) patients. In this study, MRI data of patients obtained were from Alzheimer's Disease Neuroimaging Initiative (ADNI) database (A total of 180 AD cases, 88 women, 92 men; 188 samples in healthy conditions (HC), including 90 females and 98 males. 210 samples of mild cognitive impairment (MCI), 104 females and 106 males). On the basis of deep learning, an early AD diagnosis system was constructed using CNN (Convolutional Neural Network) and DML algorithms. Then, the system was used to classify AD, HC, and MCI, and the two algorithms were compared for the accuracy and stability of in classification of MRI images. It was found that in the classification of AD and HC, the classification accuracy and sensitivity of the deep measurement learning model are both 0.83, superior to the CNN model; in terms of specificity, the classification specificity of the DML model was 0.82, slightly lower than that of the CNN model; and that in the classification of MCI and HC, the classification accuracy and sensitivity of the DML model was 0.65, superior to the CNN model; and in terms of specificity, the classification specificity of the DML model was 0.66, slightly lower than that of the CNN model. It suggested that the DML model demonstrated better classification effects on early AD patients. The loss curve analysis results showed that, for classification of AD and HC or MCI and HC, the DML algorithm can improve the convergence speed of the AD early prediction model. Therefore, the DML algorithm can significantly improve the clarity and quality of MRI images, elevate the classification accuracy and stability of early AD patients, and accelerate the convergence of the model, providing a new way for early prediction of AD.