Background: Mental health clinical notes contain decision-critical information often absent from structured electronic health record fields. Large language models (LLMs) can extract clinically relevant signals from narrative text; however, variability in output format, limited reproducibility, and inconsistent evaluation remain barriers to clinical deployment. Despite rapid advances in LLM-based information extraction, clear and reproducible guidance for interdisciplinary clinical teams is limited. Objective: This tutorial aims to present a structured workflow for zero-shot information extraction from mental health clinical notes using locally deployed open-source LLMs. It aims to reduce barriers for clinicians and researchers with limited familiarity with natural language processing (NLP) or LLM-based pipelines. Each stage includes key decision points and examples. The workflow is illustrated on two tasks using synthetic notes: (1) detection of self-injurious thoughts and behaviors (SITB) in pediatric emergency department (ED) notes and (2) antipsychotic medication nonadherence detection in outpatient notes, using schema-constrained outputs and standardized evaluation. Methods: We describe a five-stage zero-shot LLM pipeline: (1) infrastructure setup with local deployment via to prevent protected health information (PHI) transmission; (2) task definition specifying the clinical construct, output format, and evaluation; (3) dataset preparation using synthetic notes; (4) iterative prompt development using a hold-out development set with binary and Likert scale outputs constrained via JSON schemas; and (5) output parsing, normalization, and validation. We generated 300 synthetic notes per task using separate LLMs for generation and evaluation; 200 notes were used for evaluation, and 100 notes (50 positive and 50 negative) were used as a prompt-development set and excluded from final metrics. Evaluation used Large Language Model Meta AI (Llama) 3.2 and Llama 3.3 with deterministic decoding (temperature=0). Performance was assessed using accuracy, precision, recall, and -score; Likert thresholds were optimized using the Youden index with bootstrapped CIs. Results: We demonstrated the pipeline’s functionality using 2 example behavioral health detection tasks. Across both examples, the more capable model (Llama 3.3) performed better than the lighter model used earlier in development (Llama 3.2), and we described how the pipeline’s evaluation and error-analysis steps work in practice. These examples also illustrated 2 useful design choices: requiring the model to output in a fixed format reduced errors, and using a graded rating scale, rather than a simple yes/no format, allowed the detection threshold to be adjusted based on clinical risk tolerance. These results are meant to show that the pipeline works as intended, not to serve as a benchmark of real-world accuracy. Conclusions: A schema-driven, zero-shot LLM workflow can support reproducible extraction of clinically relevant information from narrative notes. Local deployment enables processing without transmitting PHI to external servers. This tutorial provides a transferable methodology for institutional adaptation and validation prior to clinical use. All prompts, code, and datasets are publicly available via Zenodo (European Organization for Nuclear Research [CERN]).
<img src="https://jmir-production.s3.us-east-2.amazonaws.com/thumbs/029d58368b7b6c5236836d88448abd8f" />
Prevalence of positive screens for depression, anxiety, and PTSD symptoms among parents of infants admitted to a NICU: a pilot study
Effects of psychedelic drug use on neurocognitive function and the psychological and social domains of quality of life: an international online study
Exploring the interplay of discrimination perception, alexithymia, and shyness among hearing-impaired college students: a network approach
Implementing BEAM: A Scalable Digital Mental Health Program, for Families of Children Referred to Neurodevelopmental Services
Interventions: Behavioral: The Building Emotional Awareness and Mental Health (BEAM) Program
Sponsors: University of Manitoba; Children’s Hospital Research Institute of Manitoba; Kids Brain Health Network
Not yet recruiting
Creative Art Teletherapy for Veterans With PTSD
Interventions: Behavioral: Art-therapy Remote Treatment for Veterans Experiencing Trauma
Sponsors: VA Office of Research and Development; Henry M. Jackson Foundation for the Advancement of Military Medicine; Drexel University
Not yet recruiting
Standardized Manual-Based Smoking Cessation Treatment in Patients With Comorbid Mental Disorders: Qualitative Interview Study
Background: Smoking prevalence is disproportionately high among individuals with mental disorders, who also show reduced cessation success, suggesting that current cessation interventions may not fully address their specific needs. A barrier to smoking cessation is the fear that quitting may worsen mental health, yet little is known about how individuals with mental disorders experience guideline-conform cessation treatments, which may address such concerns. Objective: This qualitative study explored the perspectives of smoking individuals with comorbid mental disorders who participated in a standardized, manual-based, cognitive behavioral smoking cessation program to identify targets for optimizing guideline-conform interventions for this population, spanning treatment engagement, perceived challenges, and facilitators within this context. Methods: Semistructured interviews were conducted with 11 participants representing diverse cessation trajectories (sustained abstinence, relapse, and no quit attempt) 6 months after treatment completion. Data were analyzed using reflexive thematic analysis. Results: Three overarching themes were identified. First, participants described smoking cessation as a multidimensional, processual experience extending beyond behavioral change to encompass psychological and social dimensions, characterized by nonlinearity, adaptive meaning-making, and improvements in self-efficacy despite transient strain during early abstinence. Second, smoking was experienced as a functionally embedded practice serving affective, habitual, and social functions, with motivation emerging as dynamic and relationally sustained rather than stable. Third, treatment engagement was shaped by motivational states and contextual circumstances, with participants offering favorable evaluations of the structured intervention alongside recommendations for greater individualization and flexibility. Notably, mental health–related concerns about cessation largely persisted despite predominantly positive or neutral mental health outcomes, a pattern consistent with cognitive immunization processes. Conclusions: Guideline-conform smoking cessation treatment appears feasible and largely well-received by individuals with comorbid mental disorders. The findings highlight the need for targeted psychoeducation to address persistent misconceptions about the mental health risks of cessation, as well as individualized, context-sensitive treatment adaptations, including greater flexibility in session structure, motivational support beyond the active treatment phase, and explicit attention to the social and functional embeddedness of smoking, to improve cessation outcomes in this high-risk population. Trial Registration: ISCRTN ISRCTN12859609; https://www.isrctn.com/ISRCTN12859609
<img src="https://jmir-production.s3.us-east-2.amazonaws.com/thumbs/e30e35ce7199fad3ff56801549d10f97" />

