{"id":67557,"date":"2025-08-14T23:35:10","date_gmt":"2025-08-14T23:35:10","guid":{"rendered":"https:\/\/www.newsbeep.com\/uk\/67557\/"},"modified":"2025-08-14T23:35:10","modified_gmt":"2025-08-14T23:35:10","slug":"a-personal-health-large-language-model-for-sleep-and-fitness-coaching","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/uk\/67557\/","title":{"rendered":"A personal health large language model for sleep and fitness coaching"},"content":{"rendered":"<p>Owing to the absence of clearly defined language and multimodal datasets in the domain of personal health, we created datasets and associated tasks to evaluate different capabilities of PH-LLM. These datasets include professional examinations that test domain knowledge about sleep medicine and fitness, case studies about real-world coaching recommendations and PROs about sleep.<\/p>\n<p>Professional examination dataset creation<\/p>\n<p>Sleep medicine examinations: we compiled 629 MCQs from BoardVitals (<a href=\"https:\/\/www.boardvitals.com\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.boardvitals.com\/<\/a>) sleep medicine board review question banks. We used the American Medical Association (AMA) Physician\u2019s Recognition Award (PRA) \u2018Category 1 &#8211; Sleep Medicine\u2019 question bank, which emulates examination content for the American Board of Internal Medicine (ABIM) Sleep Medicine Certification Exam. We also used the Sleep Medicine Maintenance of Certification (MOC) Exam and Longitudinal Knowledge Assessment Review question bank, which emulate examination content for the ABIM Sleep Medicine MOC Exam and the ABIM Longitudinal Knowledge Assessment. This compiled set of MCQs spanned a wide range of sleep-related topics: Normal Sleep and Variants (N\u2009=\u2009127), Breathing Disorders (N\u2009=\u200984), Hypersomnolence (N\u2009=\u200960), Insomnias (N\u2009=\u200985), Movement Disorders (N\u2009=\u200923), Parasomnias (N\u2009=\u200957), Sleep in Other Disorders (N\u2009=\u2009112) and Sleep-Wake Timing (N\u2009=\u200981).<\/p>\n<p>A subset of 204 questions was selected for evaluation by sleep experts. Sampling was performed randomly to ensure similar distributions to the entire set of MCQs when stratified based on medical content categories (<a href=\"https:\/\/www.abim.org\/Media\/aypkdxpi\/sleep-medicine.pdf\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.abim.org\/Media\/aypkdxpi\/sleep-medicine.pdf<\/a>) and their difficulty levels.<\/p>\n<p>Fitness examinations: we compiled 99 MCQs sourced from multiple question banks that emulate examination content for the CSCS examination preparation book that the NSCA provides (<a href=\"https:\/\/www.nsca.com\/certification\/cscs\/certified-strength-and-conditioning-specialist-exam-description\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.nsca.com\/certification\/cscs\/certified-strength-and-conditioning-specialist-exam-description<\/a>). We used the test examination questions from the NSCA-CSCS textbook Essentials of Strength Training and Conditioning.<\/p>\n<p>Accuracy was used as the metric to evaluate the performance of our model in professional examinations, in line with previous work evaluating MedMCQA<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 44\" title=\"Singhal, K. et al. Large language models encode clinical knowledge. Nature 620, 172&#x2013;180 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR44\" id=\"ref-link-section-d172773495e1973\" rel=\"nofollow noopener\" target=\"_blank\">44<\/a>. Each question presents up to five possible answers, with a single correct answer. MCQs were not used for model training. All samples were used in evaluation.<\/p>\n<p>Coaching recommendations dataset creation<\/p>\n<p>Each of the 857 case studies was sampled from anonymized Fitbit production data from individuals who provided consent for research purposes. Case studies were designed to interpret a range of physiological sensor information toward deriving insights, potential causes or recommendations for future behaviors.<\/p>\n<p>Creation of case studies consisted of four main parts, each developed in close collaboration with domain experts: identifying the primary goals of the case studies, selecting case study input features, sampling individuals for inclusion in case studies and creating gold standard case study responses.<\/p>\n<p>Domain experts in sleep and fitness each consisted of \u2018primary\u2019 and \u2018secondary\u2019 contributors to case study response creation and evaluation. This categorization was based on each expert\u2019s general availability; \u2018primary\u2019 contributors had more involvement and higher workload volumes. The level of domain expertise was similar across the two groups. The sleep and fitness verticals were each led by a clinical expert in their respective fields. The clinical lead oversaw case study development and provided feedback and quality control to the set of domain experts.<\/p>\n<p>Sleep case study dataset creation<\/p>\n<p>We recruited six domain experts, all of whom possessed advanced degrees (MD, DO or PsyD) in sleep medicine and professional sleep medicine work experience ranging from 4\u2009years to 46\u2009years. All experts were trained to read and interpret wearable data and map outputs to their corresponding sleep medicine literature counterparts.<\/p>\n<p>Primary goals: the sleep case studies aimed to enhance understanding of sleep patterns, identify causes of irregular sleep and offer actionable recommendations based on these findings, with the ultimate objective of enhancing the sleep quality of the individual.<\/p>\n<p>Input feature selection: each sleep case study incorporated demographic information (age and self-reported gender), daily sleep metrics (for example, bedtimes, wake times and sleep stage durations) and aggregated sleep statistics (for example, average bedtime) (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2a<\/a>). The daily sleep metrics contained up to 29\u2009days of data across 16 metrics (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a>). The aggregated sleep statistics included multiple summary measures for each daily metric computed over all the days, the percentile that the aggregated metric is in as compared to other individuals within the same demographic group and the 5th and 95th percentiles of the aggregated metric as compared to other individuals within the same demographic group. For some metrics, such as bedtime, the metrics were computed separately for all days, weekdays only and weekends only to understand weekday versus weekend patterns (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a>).<\/p>\n<p>Sample selection: the dataset was sampled to enrich for non-missingness and achieve a representative group across age and self-reported gender (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">10a<\/a> and Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">25<\/a>). We first limited the data to individuals with at least 28 sleep events within the 29-day window. We then sampled from 64 different demographic groups, determined by a combination of 32 different age buckets (13\u201320\u2009years old and 20\u201380\u2009years old, with each group within this range spanning 2\u2009years, and 80\u2009years old and above) and two gender buckets (male and female). Each case study (N\u2009=\u2009507) was created from a unique individual. The distribution of the number of days for which data are available in the sleep case studies is presented in Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">12a<\/a>.<\/p>\n<p>Gold standard response creation: experts were instructed to interpret the case study input data to craft guidance in the second-person narrative, fostering a direct and personalized dialogue with the user. The case study input data were presented to the experts in both graphical and tabular formats for ease of analysis (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2a<\/a> and Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a>). The experts composed responses across the following sections:<\/p>\n<p>Insights: implicitly, this section answered the question of \u2018What are some sleep-related insights based on my data?\u2019 The sleep medicine expert examined the data and provided an interpretation of whether a data point might represent an atypical sleep pattern. The experts were asked to systematically review each case to provide a holistic assessment of the user\u2019s sleep patterns. To do so, Fitbit sleep metrics were assessed according to the validated Routine, Sleep Quality, Alertness, Timing, Efficiency and Duration (RU-SATED) framework to generate sleep insights<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 45\" title=\"Buysse, D. J. Sleep health: can we define it? Does it matter? Sleep 37, 9&#x2013;17 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR45\" id=\"ref-link-section-d172773495e2044\" rel=\"nofollow noopener\" target=\"_blank\">45<\/a>.<\/p>\n<p>Etiology: implicitly, this section answered the question of \u2018What are the possible underlying causes that could explain the observed data?\u2019 The experts generally considered the contribution of circadian rhythm, homeostatic drive, psychophysiologic hyperarousal and extrinsic factors and indicated their likelihood.<\/p>\n<p>Recommendations: implicitly, this section answered the question of \u2018What can I do to improve my sleep?\u2019 The experts were asked to provide personalized recommendations to the individual that can help them improve their sleep by addressing potential causes identified in the etiology section. The experts were instructed to create recommendations that are Specific, Measurable, Achievable, Relevant and Time-bound (SMART)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 46\" title=\"Doran, G. T. There&#x2019;s a S.M.A.R.T. way to write managements&#x2019;s goals and objectives. Manage. Rev. 70, 35 (1981).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR46\" id=\"ref-link-section-d172773495e2054\" rel=\"nofollow noopener\" target=\"_blank\">46<\/a>.<\/p>\n<p>Fitness case study dataset creation<\/p>\n<p>We recruited seven domain experts in fitness to analyze an individual\u2019s quantitative fitness data. The seven fitness experts all possessed advanced degrees (MS, MA, MEd or DAT) related to the athletic training field and professional athletic training work experience ranging from 4\u2009years to 25\u2009years.<\/p>\n<p>Primary goals: the fitness case studies were designed to provide a comprehensive analysis of an individual\u2019s training load, sleep patterns and health metrics, with the ultimate objective of synthesizing the metrics into a data-driven assessment of the extent to which the individual is prepared for physical activity today, and to provide associated recommendations.<\/p>\n<p>Input feature selection: similar to the sleep case studies, fitness case study inputs spanned demographic information (age, self-reported gender, height, weight and body mass index (BMI)), wearable sensor daily values for cardiovascular training load, sleep and health metrics and aggregated statistics (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2b<\/a>). The quantitative fitness data contain up to 30\u2009days of data.<\/p>\n<p>Sample selection: we enriched for samples containing sufficient activity for interesting training readiness analysis by considering individuals who logged more than 30 lifetime runs and had, within a contiguous 21-day window, mean active zone minutes of at least 45\u2009minutes and, at most, 5\u2009days of missing data for step counts, sleep, heart rate variability and resting heart rates. We further filtered to person-days with at least two logged exercises in the past 28\u2009days and that contained noticeable recent changes in heart rate variability, resting heart rate, sleep, active zone minutes or run activity. Each case study (N\u2009=\u2009350) targets a unique person-day combination, with N\u2009=\u200958 unique individuals in the dataset. The distribution of the number of available days for fitness case studies is presented in Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">12b<\/a>. The demographics of the individuals in fitness case studies are presented in Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">10b<\/a> and Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">25<\/a> for age and gender and in Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">13<\/a> for BMI, height and weight.<\/p>\n<p>Gold standard response creation: experts were instructed to formulate insights, assessments and recommendations in the second-person narrative. The case study input data were presented to the experts in tabular, text and graphical formats. The experts composed responses across the following sections:<\/p>\n<p>Demographics: the experts considered the demographics data (age, self-reported gender, height, weight and BMI) and commented on whether any precautions should be taken when recommending a fitness program.<\/p>\n<p>Training load: the experts were provided with a detailed table capturing daily metrics over the past 30\u2009days, including day of the week, date, minutes spent in fat-burn, cardio and peak zones, training impulse (TRIMP), which is a training load measure derived from heart rate and exercise duration, and number of steps (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">28<\/a>). Daily TRIMP values were additionally visualized in a bar plot (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2b<\/a>). Aggregate statistics were also provided, including means; ranges; acute TRIMP (7-day total training load), a measure of acute training load; chronic TRIMP (28-day average acute training load), a measure of chronic training load; and acute:chronic workload ratio (ACWR), aiding the assessment of training stress. Recent exercise logs and associated metrics were provided for each exercise entry (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">29<\/a>).<\/p>\n<p>Sleep metrics: the data included nine daily sleep metrics: day of the week, date, bedtime, wake time, sleep time, awake time, deep sleep duration, rapid eye movement (REM) sleep duration and the sleep score (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">30<\/a>). Experts were also given aggregated metrics, including means, standard deviations and z-scores, indicating the difference in metrics between the most recent 3\u2009days and the past 28\u2009days to identify recent trends (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">31<\/a>). Select sleep metrics were additionally visualized (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2b<\/a>).<\/p>\n<p>Health metrics: daily data on day of the week, date, resting heart rate, heart rate variability and respiratory rate were provided to assess recovery and stress (Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">32<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">33<\/a>), along with graphical representations (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2b<\/a>). The experts were also given aggregate metrics, such as means, standard deviations, ranges and z-scores, indicating the difference in metrics between the most recent day and the past 28\u2009days (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">34<\/a>), to gauge changes over time and assess recovery and stress levels effectively.<\/p>\n<p>Assessment and recommendation: the experts integrated multiple data sources to evaluate workout readiness and provide personalized recommendations. They synthesized the most important insights from the previous sections along with simulated user feedback about their subjective state. The synthetically generated user feedback included a qualitative description of subjective readiness (for example, \u2018feeling fatigued\u2019) and muscle soreness (for example, \u2018manageable soreness\u2019) (Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">35<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">36<\/a>). The synthetically generated user feedback was generated using Gemini 1.0 Pro (prompts are shown in Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">37<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">38<\/a>). Based on all available information, the experts assessed the individual\u2019s readiness to work out on a scale of 1 to 5 and provided specific fitness recommendations (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2b<\/a>).<\/p>\n<p>Holistic view of case study creation<\/p>\n<p>Sleep and fitness case studies were collected from distinct sets of individuals. For both the sleep and fitness verticals, we generated two sets of data: a dataset used for model training, validation and testing and a holdout dataset that was used only for final evaluation of the model by experts (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>).<\/p>\n<p>To generate the dataset used for training, validation and testing, we first prompted the Gemini family of models with the data for each section in order to generate baseline model (Gemini Ultra 1.0) responses (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">1a<\/a>). The experts then reviewed and rewrote the responses as needed. The dataset also underwent multiple rounds of quality control, engaging the experts and clinical leads. Separately, to generate the holdout dataset, the experts wrote the responses from scratch (without any LLM assistance). This was done to ensure a clearer comparison between experts and the model during final evaluation.<\/p>\n<p>In total, we created 507 case studies for sleep (457 case studies for the training, validation and test set and 50 case studies for the holdout set, all drawn from unique individuals) and 350 case studies for fitness (300 case studies drawn from 48 individuals for the training, validation and test set and 50 case studies drawn from 11 individuals for the holdout set). Data splits for fitness, which sample multiple case studies from single individuals, were created to ensure that person-months were unique between the train and holdout test set. Although a single individual contributes case studies with unique person-months to both the train and holdout splits (N\u2009=\u20095 and N\u2009=\u20093, respectively), excluding these holdout samples did not substantially impact holdout performance (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">6<\/a>). Within each fitness split, case studies from a given individual were selected from distinct days such that target person-days were unique across samples.<\/p>\n<p>Because each case study had multiple sections (three sections for sleep and five sections for fitness), in total we obtained 3,271 question\u2013answer pairs (457\u2009\u00d7\u20093\u2009+\u2009300\u2009\u00d7\u20095\u2009=\u20092,871 for train\/validation\/test and 50\u2009\u00d7\u20093\u2009+\u200950\u2009\u00d7\u20095\u2009=\u2009400 for the holdout evaluation).<\/p>\n<p>PRO dataset creation<\/p>\n<p>To evaluate the ability of PH-LLM to predict PROs from longitudinal passive sensor data, we used a large institutional review board (IRB)-approved study in which wearable data were collected for a population of 10,099 consented individuals for a 4-week period<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 28\" title=\"McDuff, D. et al. The Google Health Digital Well-Being Study: protocol for a digital device use and well-being study. JMIR Res. Protoc. 13, e49189 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR28\" id=\"ref-link-section-d172773495e2209\" rel=\"nofollow noopener\" target=\"_blank\">28<\/a>. At both intake and completion, participants were asked to complete two surveys: the PROMIS short-form Sleep Disruption and Sleep Impairment surveys<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 27\" title=\"Yu, L. et al. Development of short forms from the PROMIS&#x2122; sleep disturbance and sleep-related impairment item banks. Behav. Sleep Med. 10, 6&#x2013;24 (2012).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR27\" id=\"ref-link-section-d172773495e2213\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a>, each containing eight questions with answers on a five-point Likert scale (Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">39<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">40<\/a>). The study thus linked individuals\u2019 perceived sleep quality and its impact on their functioning with longitudinal observed physiological (for example, heart rate and sleep duration) and behavioral (activity) measurements.<\/p>\n<p>We used the completion survey responses for all 16 questions as the basis for prediction and, for each question, defined a binary outcome that compared the highest answer (for example, \u2018strongly agree\u2019) against all others (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">14<\/a>). Features used to predict each binary outcome include 20 time-varying wearable measurements (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">41<\/a>), each of which was collected from study participants over a 4-week span. Although most individuals have sensor data for over 21\u2009days, distributions are heavily left-skewed (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">15<\/a>). To obtain data points with complete labels and standardized input features, we filtered the dataset to retain only individuals who have all completion survey responses and at least 15\u2009days of sensor data (N\u2009=\u20094,163 individuals). For each individual, we kept only the last 15 (possibly non-contiguous) days of sensor data, resulting in a 20\u2009\u00d7\u200915 matrix that represents the wearable sensor data for each research participant over 15\u2009days as well as a vector of 16 binary values as the prediction targets. We performed sensor data quality filtering by replacing values more than 4 s.d. from the population median with their nearest non-outlier values.<\/p>\n<p>In total, we created 4,163 PRO samples, randomly split into 2,914 (70%) training examples, 416 (10%) validation examples and 833 (20%) testing examples. Each sample corresponds to a unique individual and contains labels for 16 binary outcomes, resulting in 46,624 (=2,914\u2009\u00d7\u200916) training, 6,656 validation and 13,328 testing data points with binary labels.<\/p>\n<p>Base model selection<\/p>\n<p>To train PH-LLM from the most capable base model, we performed automated evaluation of several Gemini candidate model sizes and a medical LLM on the professional examination questions. The candidate models were Gemini Nano 1.0, Gemini Pro 1.0, Gemini Ultra 1.0 (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Gemini Team Google. Gemini: a family of highly capable multimodal models. Preprint at &#010;                https:\/\/arxiv.org\/abs\/2312.11805&#010;                &#010;               (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR26\" id=\"ref-link-section-d172773495e2250\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a>) and Med-PaLM 2 (ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 2\" title=\"Singhal, K. et al. Toward expert-level medical question answering with large language models. Nat. Med. 31, 943&#x2013;950 (2025).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR2\" id=\"ref-link-section-d172773495e2254\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>).<\/p>\n<p>Model prompting to create case study candidate responses<\/p>\n<p>Because Gemini Ultra 1.0 was the most accurate Gemini family base model on professional examinations, suggesting that it has appropriate domain knowledge in the areas of sleep and fitness, we explored the performance of this model on case studies. We prompted Gemini Ultra 1.0 by summarizing guidelines given to the experts for dataset creation. For example, the sleep experts generally were asked to follow the RU-SATED format<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 45\" title=\"Buysse, D. J. Sleep health: can we define it? Does it matter? Sleep 37, 9&#x2013;17 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR45\" id=\"ref-link-section-d172773495e2266\" rel=\"nofollow noopener\" target=\"_blank\">45<\/a> to generate sleep insights. To encourage Gemini Ultra 1.0 to generate high-quality case study responses, we similarly prompted it to follow the RU-SATED format and provided an explanation of what metrics should be used to assess each dimension (see Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">42<\/a>\u2013<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">49<\/a> for details). We note that each case study consisted of multiple sections containing textual representations of aggregated sensor data that represent different queries and responses: three sections for sleep case studies (insights, etiology and recommendations) and five sections for fitness case studies (demographics, training load, sleep, health metrics and the assessment). Because each section represented a different aspect of the case study, we developed prompts specifically for each section (Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">42<\/a>\u2013<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">44<\/a> for sleep; Supplementary Tables <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">45<\/a>\u2013<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">49<\/a> for fitness). We represented aggregated sensor data as text to mimic observations of how the experts used and interpreted the case study data while creating gold standard responses. For sections that synthesized results from previous sections\u2014that is, the etiology and recommendation sections in sleep case studies and the assessment section in fitness case studies\u2014we substituted the model answers from previous sections into the prompt (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">49<\/a>).<\/p>\n<p>Training PH-LLM on case studies<\/p>\n<p>We finetuned Gemini Ultra 1.0 on the case studies to create PH-LLM. We used the case studies from the training, validation and test sets for model training and selection (457 case studies from 457 individuals for sleep and 300 case studies from 48 individuals for fitness). For each of the sleep and fitness domains, we randomly split the case studies into separate training, validation and test splits using a 70:15:15 ratio. We used the same text prompts that were given to the baseline model to form prompt\u2013response pairs for model tuning. Because each section was treated as a separate example, this resulted in 1,371 prompt\u2013response pairs for sleep and 1,500 prompt\u2013response pairs for fitness across the training, validation and test sets (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">1a,b<\/a>).<\/p>\n<p>Typically, LLMs are trained on mixtures of tasks<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 47\" title=\"Wei, J. et al. Finetuned language models are zero-shot learners. In International Conference on Learning Representations (ICLR, 2022); &#010;                https:\/\/openreview.net\/forum?id=gEZrGCozdqR&#010;                &#010;              \" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR47\" id=\"ref-link-section-d172773495e2306\" rel=\"nofollow noopener\" target=\"_blank\">47<\/a>. Here, we finetuned the model on a 1:1 mixture of sleep and fitness prompt\u2013response pairs. Within the fitness prompt\u2013response pairs, we upsampled higher-quality case studies by a 2:1 ratio, where higher-quality case studies were defined as those that underwent additional rounds of quality control by the fitness experts.<\/p>\n<p>The Gemini Ultra 1.0 model, which is based on a transformer decoder<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Gemini Team Google. Gemini: a family of highly capable multimodal models. Preprint at &#010;                https:\/\/arxiv.org\/abs\/2312.11805&#010;                &#010;               (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR26\" id=\"ref-link-section-d172773495e2313\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a>, was finetuned for 1,500 steps with a global batch size of four using linear warmup over 50 steps and cosine decay. Finetuning was performed by minimizing the cross-entropy loss between predicted and target token distributions. We used a learning rate of 2.5\u2009\u00d7\u200910\u22127, a weight decay of 1\u2009\u00d7\u200910\u22122 and a learning rate decay minimum ratio of 0.1. We saved model checkpoints every 50 steps. For our final model candidate, we chose the first checkpoint (step\u2009=\u2009550) after the model had been trained for at least one epoch. At this point, the validation loss had started to plateau and stabilize (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">16<\/a>).<\/p>\n<p>Training PH-LLM for PROs<\/p>\n<p>Using PH-LLM finetuned on case studies, we further finetuned an adapter for PH-LLM to predict PROs from wearable data. To do so, we used a subset of the Google DWB study dataset<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 28\" title=\"McDuff, D. et al. The Google Health Digital Well-Being Study: protocol for a digital device use and well-being study. JMIR Res. Protoc. 13, e49189 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR28\" id=\"ref-link-section-d172773495e2332\" rel=\"nofollow noopener\" target=\"_blank\">28<\/a>, which collected both wearable data and self-reported outcomes, and we trained the model following the methodology developed in HeLM<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 37\" title=\"Belyaeva, A. et al. Multimodal LLMs for health grounded in individual-specific data. In Machine Learning for Multimodal Healthcare Data: First International Workshop &#010;                https:\/\/doi.org\/10.1007\/978-3-031-47679-2_7&#010;                &#010;               (Springer, 2023).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR37\" id=\"ref-link-section-d172773495e2336\" rel=\"nofollow noopener\" target=\"_blank\">37<\/a>. The wearable data of each individual consisted of 20 device measurements over 15\u2009days and were passed to the model through both textual prompt and the adapter. The textual prompt provided the age of the individual, listed the names of 20 device measurements and their mean values across 15\u2009days and asked the model to predict either \u2018yes\u2019 or \u2018no\u2019 for a specific binary outcome (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">50<\/a>). For the adapter, we standardized the wearable data by z-scoring using the training data mean and s.d. for each wearable sensor. Then, for each individual, we computed the mean and variance of z-scored sensor values across 15\u2009days for each measurement, yielding a standardized and aggregated 20\u2009\u00d7\u20092 sensor data matrix. This matrix was projected into four \u2018soft tokens\u2019 in the PH-LLM token embedding space by an MLP adapter with an input layer of size 40; three hidden layers of sizes 1,024, 4,096 and 1,024, each followed by rectified linear unit (ReLU) activation function; and an output layer of size 4\u2009\u00d7\u200914,336\u2009=\u200957,344 where 14,336 is the token embedding size of PH-LLM. Finally, these four \u2018soft tokens\u2019 were passed to PH-LLM as a prefix to the textual prompt.<\/p>\n<p>The adapter was trained to minimize cross-entropy loss between the predicted and actual binary outcome value while keeping PH-LLM weights frozen. The adapter was trained for, at most, 30,000 steps using a global batch size of eight, a learning rate of 1\u2009\u00d7\u200910\u22124 with linear warmup over 50 steps and cosine decay. The final checkpoint was selected as the one with the highest AUPRC (averaged over 16 binary outcomes) on the validation dataset.<\/p>\n<p>We compared the predictions on the test dataset from PH-LLM with adapter to those from text-only PH-LLM using either zero-shot or few-shot prompting. For zero-shot, the prompt was almost the same as that for PH-LLM with adapter except that there was no adapter-based soft token prefix and the prompt also listed the variance across 15\u2009days for each raw measurement value. For few-shot, the prompt additionally added three examples (the maximum number of complete examples that fit within the context window). For all three models, positive and negative outcomes were scored by computing the log likelihood for each outcome.<\/p>\n<p>We fit a logistic regression model separately for each binary outcome where the input is the same as that to the PH-LLM adapter. We also trained a CNN using the z-scored wearable data of shape 20\u2009\u00d7\u200915 (whose sensor-based means and variances are the input to the PH-LLM adapter and logistic regression models) as input. The CNN sequentially consists of two convolutional layers with kernel shapes (15, 1) and (1, 1), respectively, each followed by a batch normalization layer and a dropout layer with dropout probability 0.2, two feedforward layers with sizes 64 and 1 and a sigmoid activation at the end. Both convolutional layers have 16 filters, one-step strides and a ReLU activation.<\/p>\n<p>Evaluating PH-LLM on professional examinations<\/p>\n<p>We evaluated model performance on the professional examination dataset using a combination of CoT prompting<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 32\" title=\"Wei, J. et al. Chain-of-thought prompting elicits reasoning in large language models. In Proc. 36th International Conference on Neural Information Processing Systems 24824&#x2013;24837 (Curran Associates, 2022).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR32\" id=\"ref-link-section-d172773495e2371\" rel=\"nofollow noopener\" target=\"_blank\">32<\/a> and self-consistency<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 31\" title=\"Wang, X. et al. Self-consistency improves chain of thought reasoning in language models. In Eleventh International Conference on Learning Representations (ICLR, 2023); &#010;                https:\/\/openreview.net\/forum?id=1PL1NIMMrw&#010;                &#010;              \" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR31\" id=\"ref-link-section-d172773495e2375\" rel=\"nofollow noopener\" target=\"_blank\">31<\/a>. For our primary results, we generated five reasoning paths per question and selected the most common response as the final answer. For questions that did not have a unique modal response, we selected the answer option with highest log probability as the final answer.<\/p>\n<p>To assess the ability of PH-LLM to differentiate correct from incorrect answers based on confidence, we used a log probability analysis. For each multiple-choice examination question, we computed the model\u2019s log probability for every answer option and applied softmax normalization to obtain a probability distribution over all answer options. For metric calculation, each answer option was treated as an individual prediction, comparing the model\u2019s normalized log probability against a binary label (1 for a correct response, 0 otherwise). We then computed micro-averaged AUROC and micro-averaged AUPRC across the sleep and fitness examinations independently.<\/p>\n<p>Expert grading of case study responses and consistency<\/p>\n<p>Although evaluation against MCQs and PROs can be performed by comparing model predictions to gold standard structured responses and numerical values, respectively, the case studies involve longer-form outputs. To evaluate these model responses, the domain experts (including all experts involved in creating the case study responses) were asked to evaluate three responses written to each case study: one by Gemini Ultra 1.0, one by PH-LLM and one by a domain expert (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">1c<\/a>). Of the 100 holdout case studies, 94 had at least one single expert rate all three responses (45\/50 in sleep and 49\/50 in fitness); the remainder had multiple experts contribute ratings. Each domain expert was assigned evaluations randomly to case studies for which they did not write the expert response and were blinded to the source of each response. The domain experts evaluated each case study response based on a custom rubric that quantifies incorporation of user data, appropriate personalization based on user data, use of expert domain knowledge, evidence of confabulations or unwarranted assumptions, potential for harm, readability and overall quality (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">9<\/a>).<\/p>\n<p>Holdout case studies were fully distributed across the primary group of experts. A portion of the holdout case studies was additionally assigned to the rest of the available domain experts.<\/p>\n<p>To assess inter-rater agreement and analyze differences between primary and secondary rater groups, we introduced overlap across case study rating assignments within each vertical, resulting in 78\u20131,428 paired ratings within a subset of raters. To evaluate inter-rater reliability, we employed several established metrics: raw counts of agreement, pairwise Spearman\u2019s rank correlation, Kendall\u2019s coefficient of concordance (Kendall\u2019s W), weighted Cohen\u2019s kappa and Gwet\u2019s AC2. Spearman\u2019s correlation and Kendall\u2019s coefficient of concordance are metrics based on comparing ranks of expert ratings. These may be more conservative in the presence of many ties, as in our data with many ratings clustered around 4 and 5 (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#Fig7\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>). Weighted Cohen\u2019s kappa measures agreement between raters adjusted for chance agreement. The metric ranges from \u22121 to 1 with 0 indicating that the agreement among raters is similar to chance. Weighted Cohen\u2019s kappa can exhibit paradoxical behavior (\u2018Kappa Paradox\u2019), underestimating the true extent of agreement between raters<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 34\" title=\"Gwet, K. L. Computing inter-rater reliability and its variance in the presence of high agreement. Br. J. Math. Stat. Psychol. 61, 29&#x2013;48 (2008).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR34\" id=\"ref-link-section-d172773495e2405\" rel=\"nofollow noopener\" target=\"_blank\">34<\/a> in imbalanced datasets such as ours. Gwet\u2019s AC1, and its weighted extension designed for ordinal data, Gwet\u2019s AC2, were designed to deal with class imbalance while adjusting for chance agreement<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 34\" title=\"Gwet, K. L. Computing inter-rater reliability and its variance in the presence of high agreement. Br. J. Math. Stat. Psychol. 61, 29&#x2013;48 (2008).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR34\" id=\"ref-link-section-d172773495e2409\" rel=\"nofollow noopener\" target=\"_blank\">34<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 35\" title=\"Gwet, K. L. Handbook of Inter-Rater Reliability: The Definitive Guide to Measuring the Extent of Agreement Among Raters (Advanced Analytics, LLC, 2014).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR35\" id=\"ref-link-section-d172773495e2412\" rel=\"nofollow noopener\" target=\"_blank\">35<\/a>. Qualitative trends for all metrics were consistent across rater pairs in both verticals (Supplementary Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">17<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">18<\/a>).<\/p>\n<p>Automatic evaluation of case study responses<\/p>\n<p>Although expert grading of case study responses was our primary mechanism for assessing model performance, AutoEval allows us to obtain a quick, although potentially less accurate, signal by using secondary models to perform this grading task<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 48\" title=\"Chiang, C.-H. &amp; Lee, H.-Y. Can large language models be an alternative to human evaluations? In Proc. 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (eds Rogers, A. et al.) 15607&#x2013;15631 (Association for Computational Linguistics, 2023).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR48\" id=\"ref-link-section-d172773495e2431\" rel=\"nofollow noopener\" target=\"_blank\">48<\/a>.<\/p>\n<p>AutoEval dataset: while exploring different modeling mechanisms, we performed an initial round of expert grading using the rubrics (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">9<\/a>) and procedure described above for 50 expert-generated case studies from each vertical across three response sources: experts, an untuned Gemini Ultra 1.0 model and a finetuned Gemini Pro 1.0 model. We split these studies into vertical-specific training and validation splits containing approximately 80% (N\u2009=\u200938) and 20% (N\u2009=\u200912) of case studies, respectively. Splits were structured such that samples rated by a given expert were evenly distributed between sets. All ratings associated with a given case study were included in that split, resulting in N\u2009=\u20096,552 total ratings across case study sections and evaluation principles for sleep (N\u2009=\u20094,872 train and N\u2009=\u20091,596 validation) and N\u2009=\u20099,331 for fitness (N\u2009=\u20097,138 train and N\u2009=\u20092,193 validation).<\/p>\n<p>AutoEval examples: using the rated case studies, we constructed LLM prompts and targets. Prompts included a description of the rating task objective for the given case study section, a summary of data describing the case study, the principle being assessed and the principle\u2019s Likert scale options. Each target was the expert-generated rating followed by the rating\u2019s Likert option text description (for example, for a \u2018No incorrect domain knowledge\u2019 principle rating of 5, the target is \u20185. No incorrect domain knowledge references exist\u2019.) (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">51<\/a>).<\/p>\n<p>AutoEval model training: we created AutoEval rater models by finetuning the smaller Gemini Pro 1.0 model<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Gemini Team Google. Gemini: a family of highly capable multimodal models. Preprint at &#010;                https:\/\/arxiv.org\/abs\/2312.11805&#010;                &#010;               (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR26\" id=\"ref-link-section-d172773495e2475\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a> using LoRA<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 49\" title=\"Hu, E. J. et al. LoRA: low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR, 2022); &#010;                https:\/\/openreview.net\/forum?id=nZeVKeeFYf9&#010;                &#010;              \" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR49\" id=\"ref-link-section-d172773495e2479\" rel=\"nofollow noopener\" target=\"_blank\">49<\/a> across a variety of vertical-specific data mixtures, including all ratings for a vertical and all ratings from a single rater. All AutoEval modeling experiments used a fixed set of hyperparameters, varying only the training data mixture: a LoRA rank of 4 on attention heads, random Gaussian initialization for LoRA\u2019s A matrix and zero initialization for LoRA\u2019s B matrix. Models were tuned to minimize the cross-entropy loss between predicted and target token distributions using the Adafactor optimizer<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 50\" title=\"Shazeer, N. &amp; Stern, M. Adafactor: adaptive learning rates with sublinear memory cost. In Proc. 35th International Conference on Machine Learning (eds Dy, J. &amp; Krause, A.) 4596&#x2013;4604 (PMLR, 2018).\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#ref-CR50\" id=\"ref-link-section-d172773495e2483\" rel=\"nofollow noopener\" target=\"_blank\">50<\/a> with a constant learning rate of 2\u2009\u00d7\u200910\u22125, a \u03b21 of 0.95, a decay of 0.995 and a gradient norm clipping threshold of 1.0. None of warmup, weight decay or quantization was used. Models were tuned for a maximum of 20 epochs with a global batch size of 32. Checkpoints were taken four times per epoch, and the best checkpoint was selected by minimizing validation set log perplexity. The total number of steps varied per model because each training mixture contained a different number of samples depending on the vertical and rater (Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">52<\/a>).<\/p>\n<p>AutoEval model selection: we evaluated four candidate AutoEval models for each vertical. An untuned Gemini Pro 1.0 model served as a baseline. The other three AutoEval candidates were trained identically using different data mixtures: \u2018All\u2019 contained all ratings in the vertical; \u2018High variance\u2019 contained ratings from only the expert rater with highest rating variance (raters \u2018Sleep Primary C\u2019 and \u2018Fitness Primary C\u2019); and \u2018Low variance\u2019 contained ratings from only the expert rater with lowest rating variance (raters \u2018Sleep Primary D\u2019 and \u2018Fitness Primary B\u2019). We generated model predictions by scoring the likelihood of each Likert option given the input prompt, converted these scores into five-class multinomial probabilities and chose the option with the largest probability score. We selected the best AutoEval model for each vertical using a combination of log perplexity loss and Spearman\u2019s rank correlation between predictions and the ground truth ratings in the validation dataset (referred to as \u2018best AutoEval\u2019 models).<\/p>\n<p>AutoEval inference: given case study candidate responses, we used the Likert scoring procedure described above to automatically rate outputs across case study sections and evaluation principles with our best AutoEval models.<\/p>\n<p>Statistical analyses<\/p>\n<p>Confidence intervals (95%) were determined via bootstrapping with 1,000 iterations. Statistical significance of expert ratings was determined using a two-sided Wilcoxon rank-sum test with false discovery rate (FDR) (Benjamini\u2013Hochberg) correction when multiple sections or multiple evaluation principles were analyzed together. All P values refer to P values after FDR correction. For each P value, we report the test statistic Z and the effect size \\(r=Z\/\\sqrt{N}\\), where N is the total sample size of the test.<\/p>\n<p>Inclusion and ethics<\/p>\n<p>All individuals who fulfilled the criteria for authorship required by Nature Portfolio journals have been included as authors. This work includes findings that are locally relevant, which have been determined in collaboration with local partners. Roles and responsibilities were agreed among collaborators ahead of the research. This research was not severely restricted or prohibited in the setting of the researchers. Ethics approval for the case studies was granted by the Western Institutional Review Board-Copernicus Group IRB, which classified the research as exempt under 45 CFR 46.104(d)(4). Ethics approval for the Digital Wellbeing Study was granted by the IRB of the University of Oregon. This research does not result in stigmatization, incrimination, discrimination or personal risk to participants. Local and regional research relevant to our study was taken into account in citations.<\/p>\n<p>Reporting summary<\/p>\n<p>Further information on research design is available in the <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41591-025-03888-0#MOESM2\" rel=\"nofollow noopener\" target=\"_blank\">Nature Portfolio Reporting Summary<\/a> linked to this article.<\/p>\n","protected":false},"excerpt":{"rendered":"Owing to the absence of clearly defined language and multimodal datasets in the domain of personal health, we&hellip;\n","protected":false},"author":2,"featured_media":67558,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[3251,5082,35408,6647,3250,102,7925,7924,7926,7927,35409,12278,56,54,55],"class_list":["post-67557","post","type-post","status-publish","format-standard","has-post-thumbnail","category-fitness","tag-biomedicine","tag-cancer-research","tag-disease-prevention","tag-fitness","tag-general","tag-health","tag-infectious-diseases","tag-metabolic-diseases","tag-molecular-medicine","tag-neurosciences","tag-preclinical-research","tag-translational-research","tag-uk","tag-united-kingdom","tag-unitedkingdom"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/67557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/comments?post=67557"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/67557\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media\/67558"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media?parent=67557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/categories?post=67557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/tags?post=67557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}