Diagnosing nerve compression involves a comprehensive approach. A detailed medical history and physical examination are essential to identify potential causes and symptoms. Imaging studies such as MRI and CT scans can provide detailed views of the pelvic region, helping to locate the source of compression. Electromyography (EMG) and nerve conduction studies may be used to assess the function of the affected nerves and the extent of damage.