The study focused on the diagnostic value of deep learning-based ultrasound combined with gastroscope examination for upper gastrointestinal submucous lesions and nursing. A total of 104 patients with upper gastrointestinal submucous lesions diagnosed in hospital were selected as the research subjects. In this study, the feed forward denoising convulsive neural network (DnCNN) was improved, and the n-DnCNN model was designed and applied to ultrasonic image processing. The peak signal-to-noise ratio (PSNR) and structural similarity (SSIM) of Gaussian filtering, NL-means, and DnCNN were then compared with n-DnCNN. Subsequently, the distribution and types of submucosal lesions in different parts of the upper digestive tract were analyzed by ultrasound combined with gastroscope and gastroscope examination alone, and the diagnostic performance of this method was evaluated. The results showed that the average PSNR and SSIM of the n-DnCNN model were 33.01 dB and 0.87, respectively, which were significantly higher than GF, NL-means, and DnCNN algorithms, and the difference was statistically significant (P < 0.05). Of the 116 lesions detected, 49 were located in the esophagus (42.24%), 52 in the stomach (44.83%), and 15 in the duodenum (12.93%). Of the 49 esophageal submucosal lesions, 6.12% were located in the upper esophagus, 55.1% in the middle esophagus, and 38.79% in the lower esophagus, and the difference was statistically significant (P < 0.05). Of the gastric submucosal lesions, the lesions in the gastric cardia were significantly less than in other parts, and the difference was statistically significant (P < 0.05). The accuracy of ultrasound combined with gastroscope in the diagnosis of upper gastrointestinal submucous episodes was 82.32%, higher than that of gastroscope examination, and the difference was statistically significant (P < 0.05). In conclusion, the n-DnCNN model has a good noise reduction effect, and the obtained image is of high quality. Ultrasound combined with gastroscope examination can effectively improve the accuracy of diagnosis of upper gastrointestinal submucous lesions.