Compliance can be measured using various methods such as patient self-reports, pill counts, electronic monitoring devices, and pharmacy refill records. Healthcare providers may also use questionnaires and interviews to assess how well patients are following their treatment plans.