Pediatric dentists diagnose cavities through a combination of visual examination, dental x-rays, and sometimes specialized tools to detect soft spots or areas of decay on the teeth. Regular dental check-ups are essential for early detection and treatment of cavities.