Sensitive data is collected through various means, including surveys, medical examinations, electronic health records (EHRs), and biological samples. The data collection process often involves informed consent, where participants are made aware of how their data will be used and the measures in place to protect their privacy.