此页面是自动翻译的,不保证翻译的准确性。请参阅 英文版 对于源文本。

NLP Analysis of Weekly Narratives for Dynamic Clinical Assessment in SUD (DYNA-NLP)

2026年5月14日 更新者:Lauro Gutiérrez Castro

Analysis of Weekly Narratives Using Natural Language Processing in Patients Undergoing Residential Rehabilitation: A Hybrid Approach for the Dynamic Assessment of Clinical Processes

This prospective observational study follows adults undergoing residential rehabilitation for severe substance use disorders at a specialized treatment center in Mexico. Participants provide weekly written narratives describing their emotions, challenges, coping strategies, and treatment experiences, and complete validated psychological questionnaires every two weeks, including the Generalized Anxiety Disorder-7 (GAD-7), Environmental Reward Observation Scale (EROS), Automatic Thoughts Questionnaire-8 (ATQ-8), and Behavioral Activation for Depression Scale (BADS).

The study applies natural language processing (NLP) and machine learning methods to analyze participants' narratives and identify emotional, cognitive, and behavioral patterns associated with clinical change over time. Narrative-derived features are combined with questionnaire scores to generate a dynamic clinical risk representation that may help detect early signs of psychological worsening or improvement during residential treatment.

Participants continue receiving standard residential care, and the study does not modify treatment decisions or clinical interventions. Up to 35 participants with sufficient longitudinal follow-up data will be included in the primary analysis. Data collection is expected to continue through September 2026.

研究概览

详细说明

Patients undergoing treatment for substance use disorders frequently describe changes in mood, motivation, hopelessness, cognitive rigidity, emotional distress, and coping strategies through spontaneous written language. These narratives may contain clinically meaningful indicators associated with psychological deterioration, treatment progress, or relapse vulnerability. However, systematic manual analysis of longitudinal written narratives is difficult to implement in routine clinical practice because of the volume and complexity of the data.

Recent developments in natural language processing (NLP), representation learning, and deep learning provide methods for extracting quantitative linguistic and semantic information from written text. Integrating these features with repeated psychometric assessments may support the development of longitudinal models capable of characterizing changes in mental health status over time in patients receiving residential addiction treatment.

Objectives

The objectives of this study are:

To extract semantic, emotional, and linguistic features from weekly patient narratives using NLP methods, including sentence embeddings, sentiment and emotion classification, and semantic similarity analyses based on Acceptance and Commitment Therapy (ACT) constructs.

To integrate narrative-derived variables with repeated psychometric measures (Generalized Anxiety Disorder-7 (GAD-7), Environmental Reward Observation Scale (EROS), Automatic Thoughts Questionnaire-8 (ATQ-8), and Behavioral Activation for Depression Scale (BADS)) using a multimodal deep learning autoencoder capable of generating a low-dimensional representation of longitudinal clinical status.

To evaluate whether latent representations generated by the autoencoder are associated with periods of clinical worsening or clinical improvement across time using leave-one-patient-out cross-validation procedures.

To develop a dynamic longitudinal risk representation capable of estimating future changes in automatic negative thoughts, measured through subsequent ATQ-8 scores.

Study Design

This study is a prospective observational cohort conducted at a single residential rehabilitation center in Mexico.

Eligible participants are adults aged 18 years or older with a diagnosis of severe substance use disorder who are admitted for residential treatment. Individuals with active psychotic symptoms or cognitive impairment that substantially interferes with the ability to complete written narratives are excluded.

Participants complete:

Weekly digital written narratives using open-ended prompts focused on emotions, challenges, coping responses, interpersonal experiences, and perceived treatment progress.

Biweekly administration of the following validated self-report instruments:

GAD-7

EROS

ATQ-8

BADS

All information is collected through digital forms integrated into routine clinical monitoring procedures at the treatment center.

Participants may contribute data for up to 20 weeks, depending on duration of residential stay. The study began on 25 May 2025, and primary completion is anticipated in September 2026.

Up to 35 participants with sufficient longitudinal observations will be included in the primary analytic cohort.

NLP and Machine Learning Pipeline

Text preprocessing

Narratives are written in Spanish and undergo preprocessing procedures that include:

minimum length filtering, normalization, consolidation of narrative fields into a single weekly text sample, tokenization and linguistic annotation.

Feature extraction

Narrative features include:

Sentiment classification (positive, neutral, negative) Emotion probabilities for joy, sadness, anger, fear, surprise, and disgust using the pysentimiento library

Linguistic variables including:

type-token ratio, mean sentence length, proportion of first-person pronouns, proportion of past-tense verbs, obtained through udpipe

Semantic similarity measures between patient narratives and ACT-related prototype domains including:

experiential avoidance, cognitive fusion, rule-governed behavior, helplessness, achievement orientation, hopefulness

Semantic similarity is computed through cosine similarity between sentence-transformer embeddings and predefined prototype centroids.

Dimensionality reduction procedures using principal component analysis (PCA) are applied to selected linguistic and semantic variables to derive a principal component representing orientation toward internal emotional experience versus external contextual events.

Autoencoder Architecture

The multimodal model receives concatenated longitudinal feature vectors after robust scaling.

The architecture includes:

a bidirectional long short-term memory (BiLSTM) encoder, multi-head attention mechanisms, variational regularization using a β-variational autoencoder (β-VAE) framework, a decoder trained to reconstruct the original temporal feature sequence, and an auxiliary classification component predicting next-period clinical worsening.

The training objective combines:

mean squared reconstruction error, focal loss for classification, Kullback-Leibler divergence, and optional temporal smoothness regularization.

Model performance is evaluated using leave-one-patient-out cross-validation procedures. A final model may subsequently be trained using the complete dataset.

Primary Analyses

Primary analyses include:

evaluation of discriminative performance for prediction of subsequent clinical worsening using: area under the receiver operating characteristic curve (AUROC), area under the precision-recall curve (AUPRC), F1 score, Matthews correlation coefficient (MCC) examination of associations between latent trajectory representations and longitudinal psychometric changes, development of a Composite Clinical Risk Index (CCRI) derived from latent representations, and comparison of CCRI trajectories with weeks classified as clinical worsening according to predefined multimodal criteria.

Ethics and Dissemination

The study has received approval from the institutional review board of Under The Tree Miller A.C.

All participants provide written informed consent prior to participation.

Participation does not alter or replace standard residential treatment. All clinical decisions remain under the responsibility of treating professionals independent of study procedures.

Study findings will be submitted for publication in peer-reviewed scientific journals regardless of outcome. De-identified datasets and analysis code may be made available upon reasonable request and in accordance with institutional and ethical requirements.

Recruitment Status

Recruitment is ongoing. Final data collection for the primary outcome is anticipated in September 2026.

研究类型

观察性的

注册 (估计的)

35

联系人和位置

本节提供了进行研究的人员的详细联系信息,以及有关进行该研究的地点的信息。

学习联系方式

  • 姓名:Ricardo Fernandez
  • 电话号码:+52 1 33 1544 5474

研究联系人备份

学习地点

    • Jalisco
      • Potrerillos、Jalisco、墨西哥、45815
        • 招聘中
        • Under The Tree Potrerillos
        • 接触:

参与标准

研究人员寻找符合特定描述的人,称为资格标准。这些标准的一些例子是一个人的一般健康状况或先前的治疗。

资格标准

适合学习的年龄

  • 成人
  • 年长者

接受健康志愿者

不

取样方法

非概率样本

研究人群

Adult males (≥18 years) with severe substance use disorder, residing in a single residential rehabilitation center in Mexico. Participants are enrolled consecutively as they enter the program and meet eligibility criteria. The sample is non-probabilistic, reflecting the real-world clinical population of this specific center.

描述

Inclusion Criteria:

  1. Clinical diagnosis of severe substance use disorder (polydrug use, including cocaine, methamphetamines, alcohol, and/or cannabis), confirmed by the center's admission assessment.
  2. Male sex (all participants in the center's residential program are male).
  3. Age 18 years or older.
  4. Current resident of the participating residential rehabilitation center in Mexico.
  5. Completed at least four weeks of residential treatment at the time of study enrollment.
  6. Able to write coherent weekly narratives in Spanish (no severe cognitive impairment or active psychosis).
  7. Willing to provide written informed consent.

Exclusion Criteria:

  1. Presence of acute psychotic symptoms that interfere with the ability to write or understand the study procedures.
  2. Severe cognitive impairment (e.g., due to traumatic brain injury, intellectual disability) that prevents meaningful narrative production.
  3. Inability to comply with weekly narrative writing (e.g., illiteracy, severe visual impairment).
  4. Planned discharge from the residential program within less than 4 weeks from enrollment.
  5. Enrollment in another interventional clinical trial that could confound the interpretation of outcomes.

学习计划

本节提供研究计划的详细信息,包括研究的设计方式和研究的衡量标准。

研究是如何设计的?

设计细节

队列和干预

团体/队列
干预/治疗
Residential rehabilitation cohort
Adult men (≥18 years) with severe substance use disorder, admitted to a residential rehabilitation center in Mexico. All participants receive the center's standard, multimodal treatment program, which includes group therapy, individual counseling, occupational activities, 12-step facilitation, and relapse prevention education. The study does not assign, modify, or withhold any component of this program. Participants are followed prospectively for the duration of their stay (10-20 weeks).
Participants follow the standard residential rehabilitation program provided by the center. This is a naturalistic exposure; the study does not impose any additional intervention. The "intervention" of interest is the routine therapeutic environment and its associated psychological processes (e.g., changes in avoidance, cognitive fusion, hope, and behavioral activation). These processes are measured through weekly written narratives and biweekly validated clinical scales (GAD-7, EROS, ATQ-8, BADS).

研究衡量的是什么?

主要结果指标

结果测量
措施说明
大体时间
Change in negative automatic thoughts measured by the Automatic Thoughts Questionnaire 8-item version
大体时间:Every 2 weeks from baseline until discharge from residential treatment (up to 20 weeks)
The Automatic Thoughts Questionnaire 8-item version is administered every two weeks. Total scores range from 8 to 40, with higher scores indicating more frequent negative automatic thoughts. The primary outcome is the change from baseline in total score over the course of residential treatment.
Every 2 weeks from baseline until discharge from residential treatment (up to 20 weeks)

次要结果测量

结果测量
措施说明
大体时间
Change in generalized anxiety symptoms measured by the Generalized Anxiety Disorder 7 item scale
大体时间:Every 2 weeks from baseline until discharge (up to 20 weeks)
The Generalized Anxiety Disorder 7-item scale is administered every two weeks. Total scores range from 0 to 21, with higher scores indicating greater anxiety symptom severity.
Every 2 weeks from baseline until discharge (up to 20 weeks)
Change in environmental reward measured by the Environmental Reward Observation Scale
大体时间:Every 2 weeks from baseline until discharge (up to 20 weeks)
The Environmental Reward Observation Scale iis administered every two weeks. Total scores range from 10 to 40, with higher scores indicating greater exposure to positive environmental reinforcement.
Every 2 weeks from baseline until discharge (up to 20 weeks)
Change in behavioral activation and avoidance measured by the Behavioral Activation for Depression Scale
大体时间:Every 2 weeks from baseline until discharge (up to 20 weeks)
The Behavioral Activation for Depression Scale is administered every two weeks. Higher scores on the Activation subscale indicate greater engagement in goal-directed activity; higher scores on the Avoidance/Rumination subscale indicate greater behavioral avoidance and rumination.
Every 2 weeks from baseline until discharge (up to 20 weeks)
Weekly self-reported emotional intensity
大体时间:Weekly from baseline until discharge (up to 20 weeks)
Participants report the intensity of their predominant weekly emotion on a 0 to 10 numeric rating scale, where higher scores indicate greater emotional intensity.
Weekly from baseline until discharge (up to 20 weeks)
Weekly self-reported craving intensity
大体时间:Weekly from baseline until discharge (up to 20 weeks)
Participants rate average craving for substance use during the prior week on a 0 to 10 numeric rating scale, where higher scores indicate greater craving intensity.
Weekly from baseline until discharge (up to 20 weeks)

其他结果措施

结果测量
措施说明
大体时间
Narrative sentiment valence index derived from weekly written narratives
大体时间:Weekly from baseline until discharge (up to 20 weeks)
Sentiment valence is calculated from weekly written narratives using a validated Spanish-language sentiment classification model. Scores range from -1 to +1, with lower scores indicating more negative emotional valence.
Weekly from baseline until discharge (up to 20 weeks)
Semantic similarity to Acceptance and Commitment Therapy-related constructs
大体时间:Weekly from baseline until discharge (up to 20 weeks)
Semantic similarity scores are computed between weekly narratives and prototype domains (e.g., experiential avoidance, cognitive fusion) using sentence embedding methods. Scores range from 0 to 1 (higher = greater similarity).
Weekly from baseline until discharge (up to 20 weeks)
Composite Clinical Risk Index derived from longitudinal narrative features
大体时间:Weekly from baseline until discharge (up to 20 weeks)
A composite longitudinal risk score is a composite longitudinal risk score calculated using multiple narrative-derived emotional variability indicators. Higher scores indicate greater estimated clinical vulnerability over time.
Weekly from baseline until discharge (up to 20 weeks)
Linguistic markers extracted from weekly written narratives
大体时间:Weekly from baseline until discharge (up to 20 weeks)
Linguistic variables including lexical diversity (type-token ratio), first-person pronoun frequency, and past-tense verb proportion are extracted from weekly written narratives using automated natural language processing (NLP) procedures.
Weekly from baseline until discharge (up to 20 weeks)

合作者和调查者

在这里您可以找到参与这项研究的人员和组织。

调查人员

  • 首席研究员:Lauro Gutiérrez Castro、Under The Tree

研究记录日期

这些日期跟踪向 ClinicalTrials.gov 提交研究记录和摘要结果的进度。研究记录和报告的结果由国家医学图书馆 (NLM) 审查,以确保它们在发布到公共网站之前符合特定的质量控制标准。

研究主要日期

学习开始 (实际的)

2025年5月25日

初级完成 (估计的)

2026年9月1日

研究完成 (估计的)

2026年9月1日

研究注册日期

首次提交

2026年5月9日

首先提交符合 QC 标准的

2026年5月14日

首次发布 (实际的)

2026年5月19日

研究记录更新

最后更新发布 (实际的)

2026年5月19日

上次提交的符合 QC 标准的更新

2026年5月14日

最后验证

2026年5月1日

更多信息

与本研究相关的术语

计划个人参与者数据 (IPD)

计划共享个人参与者数据 (IPD)?

是的

IPD 计划说明

De-identified individual participant data (IPD) from the weekly narratives and biweekly clinical scales, after removal of all direct identifiers (name, date of birth, exact dates converted to study day/week numbers). Only aggregated or pseudonymized data will be shared.

IPD 共享时间框架

IPD and supporting information will be available starting 6 months after publication of the primary results and will remain available for 5 years.

IPD 共享访问标准

Data will be shared upon reasonable request to the corresponding author. Requesters must sign a data use agreement that prohibits re-identification and restricts use to replicating the published analyses or conducting secondary analyses approved by the study's ethics committee. De-identified data will be provided in CSV format; analytic code will be provided as R and Python scripts via a public repository (e.g., GitHub).

IPD 共享支持信息类型

  • 研究方案
  • 树液
  • 国际碳纤维联合会
  • 分析代码

药物和器械信息、研究文件

研究美国 FDA 监管的药品

不

研究美国 FDA 监管的设备产品

不

此信息直接从 clinicaltrials.gov 网站检索,没有任何更改。如果您有任何更改、删除或更新研究详细信息的请求,请联系 register@clinicaltrials.gov. clinicaltrials.gov 上实施更改,我们的网站上也会自动更新.

订阅