Diagnosis typically involves a combination of imaging techniques such as CT scans, MRI, and endoscopic ultrasound. A biopsy is often performed to confirm the diagnosis, followed by immunohistochemical staining to detect KIT or PDGFRA mutations. Genetic testing is also recommended to identify specific mutations, which can guide treatment options.