In general, inguinal hernia can be detected by physical examination, ultrasound, CT or MRI. 1. Physical examination: The doctor will observe whether there is a herniated mass on the surface of the body through physical examination of the patient, and make percussion on the size, location, softness and hardness of the mass to determine the content of the hernia. 2. Ultrasound: ultrasound equipment can be used to observe the structure and contents of the mass on the display screen, to determine whether the mass can return to the abdominal cavity, which is important for the diagnosis of inguinal hernia. 3. CT or magnetic resonance: CT or magnetic resonance can clarify the specifics of the mass and its relationship with the surrounding tissues to diagnose inguinal hernia. It is recommended that patients with inguinal hernia should seek medical treatment in time and follow the doctor’s instructions to improve the relevant examination and symptomatic treatment.