The study focused on the therapeutic effect of clinical treatment on urinary calculi with kidney failure and its relationship with the serum inflammatory factor levels. 90 children with melamine urinary calculi were selected as research subjects. Of them, 52 cases were in group 1 (nonrenal failure), and 38 cases were in group 2 (combined with renal failure). In addition, 35 hospitalized children with no history of melamine-contaminated milk feeding during the same period were used as healthy controls. They all underwent ultrasound imaging examination based on the speckle noise algorithm, and the prognosis was analyzed. It was found that the peak signal-to-noise ratio (PSNR), structural similarity (SSIM), and local edge preservation index (EPI) of the algorithm in this study were significantly greater than other algorithms (
P
< 0.05). The admission age of the children in group 1 was significantly younger than that of group 2, the bilateral stone rate was significantly higher than that in group 2, and the difference was statistically significant (
P
< 0.05). Of the 52 children in group 1, the stone disappeared in 25 cases after treatment, the stone was reduced in 20 cases, and the stone remained unchanged in 7 cases. The total effective rate of treatment was 88.46%. Of the 38 cases in group 2, the stone disappeared in 22 cases after treatment, the stone was reduced in 12 cases, and the stone remained unchanged in 4 cases. The total effective rate of treatment was 89.47%. No difference was noted in blood urea nitrogen (BUN), blood creatinine (Cr), TNF-α, and C-reactive protein (CRP) levels in group 1, group 2, and the healthy control group (
P
> 0.05). Hence, the denoising algorithm in this study has better denoising effects on ultrasound images than traditional algorithms, with higher definition and less noise and artifacts. The clinical treatment of children with urinary calculi and renal failure is highly effective, the renal function and serum inflammatory factor levels return to the normal range, and the inflammatory response is weakened.