When the human body is anesthetized, the human nerve tissue will be greatly affected, which also affects the breathing of the human body. The respiration during anesthesia is a lack of initiative, and the energy efficiency of the diaphragm in the lungs is very important to the safety of anesthesia. In this paper, the application of the ultrasound evaluation of the diaphragm in clinical anesthesia was studied. In this paper, 24 patients who underwent lung examination under medical anesthesia at our hospital were evaluated by the ultrasound vertical mixed echo method. Through patient voluntary selection and consent, 16 patients were examined with B-mode ultrasound and the other 8 patients with M-mode ultrasound to compare the effects of different ultrasounds on diaphragm image quality. In addition, this paper also analyzes the differences between different ultrasounds and the strengths and weaknesses of diaphragmatic ultrasound evaluation in clinical anesthesia. The suggestions of using different ultrasounds in ultrasonic evaluation are given. The study showed that 16 cases of B-mode ultrasound evaluation of the diaphragm obtained ultrasound images which showed a large field of vision, acoustic frequency between 7 and 18 MHz, and thickness difference between 0.35 and 0.52 cm. In 8 patients with the diaphragm evaluated by M-mode ultrasound, the local features of M-mode ultrasound images were clearer than those of B-mode ultrasound images, but the visual field area was smaller, the acoustic frequency was between 10 and 15 MHz, and the thickness difference was between 0.12 and 0.18 cm. Based on the above data, this paper suggests that, in the ultrasonic evaluation of the diaphragm, B-mode ultrasound should be used to check the patients first, and then M-mode ultrasound should be used to check the parts with poor quality so that the accurate diaphragm quality of patients can be obtained in the vast majority of patients.