Medical professionals diagnose STEC through stool culture, which can identify the presence of the bacteria. Additionally, specific tests can detect the Shiga toxins or their genetic material. It's essential to consult a healthcare provider if you suspect STEC infection, as prompt diagnosis and treatment are critical.