Currently submitted to: Journal of Medical Internet Research
Date Submitted: Nov 30, 2026
Open Peer Review Period: Dec 1, 2026 - Jan 26, 2027
(currently open for review)
Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.
A Privacy-Preserving Human-in-the-Loop Framework for Interview-Based Clinical Large Language Models: Tutorial Using Personality Functioning as a Use Case
ABSTRACT
While large language models (LLMs) can support clinical assessment, their development based on clinical interview recordings poses risks related to data privacy, traceability, and data breaches. Transcription and speaker errors, residual identifiers, and material from the same participant in both the training and test datasets can each skew model development and evaluation. There is a lack of a transferable workflow that links these data processing steps with controlled model evaluation and expert review. This tutorial presents a privacy-preserving human-in-the-loop framework that can be used to convert semi-structured clinical interviews into traceable, privacy-compliant model inputs and to evaluate prompted or adapted LLMs on these inputs without obscuring upstream errors, privacy decisions, or human responsibility. We use the assessment of personality functioning with the Semi-Structured Interview for Personality Functioning DSM-5 as a running use case within an ongoing clinical trial on personality disorders. The framework organizes the development process into 7 stages across 3 components: data and measurement, model development, and human-reviewed output. Each stage specifies an input, a versioned output artifact, a responsible reviewer, and a check before progression. Human review at every hand-off ensures data quality. Speech recognition, diarization, and LLM-assisted de-identification are designed to run on local hardware, and a privacy reviewer decides on every identifier candidate. Participants are assigned to training, validation, and test splits before any example is constructed. A freeze gate fixes the selected configuration and the confirmatory analysis plan before held-out participants are evaluated once. In the use case, the model scores each of the 12 facets of the Level of Personality Functioning Scale from 0 to 4 based on the probabilities of the permitted score tokens. Model selection uses the mean absolute error averaged across facets, in which every invalid output receives the largest possible error. A cross-cutting layer specifies the validation of agreement, calibration, privacy, subgroup error, and safety, as well as prospective comparisons of assisted and unassisted raters. The publicly available Clinical Interview LLM Pipeline implements the shareable stages, comes with fictional example data, and has so far been verified as software. With the reference implementation, it provides the comparisons needed to test whether adaptation improves on a prompted baseline of the same model and whether model assistance shortens expert review without loss of rating accuracy. Adapting the workflow to other interview-based constructs, such as affective or psychotic disorders, requires construct-specific rating criteria and rules for which interview passages count as evidence.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.