A Privacy-Preserving Human-in-the-Loop Framework for Interview-Based Clinical Large Language Models: Tutorial Using Personality Functioning as a Use Case (Preprint)
UNSTRUCTURED 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.
Authors
- André Kerber (ORCID: https://orcid.org/0000-0002-8588-7784)
- Christine Knaevelsrud (ORCID: https://orcid.org/0000-0003-1342-7006)
- Maria Böttche (ORCID: https://orcid.org/0009-0002-7568-3937)
- Joost Hutsebaut (ORCID: https://orcid.org/0000-0003-0189-3771)
- Christian Nikolaus Schmitz (ORCID: https://orcid.org/0009-0005-1908-4026)
- Phileas Heim (ORCID: https://orcid.org/0009-0000-1830-7682)
- Henry Harder
- Lukas Königs
Publication Details
- Published
- 2026-11-30
- DOI
- https://doi.org/10.2196/preprints.118043
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- preprint