The diagnosis of cysticercosis often involves a combination of clinical assessment, imaging techniques such as CT scans or MRI, and serological tests to detect antibodies or antigens related to Taenia solium. In some cases, biopsy of the affected tissues may be necessary to confirm the presence of cysticerci.