ProKnow: Process Knowledge for Safety Constrained and Explainable Question Generation for Mental Health Diagnostic Assistance

Kaushik Roy, Manas Gaur, Misagh Soltani, Vipula Rawte, Ashwin Kalyan, Amit ShetharXiv 2023 · DOI

TL;DR

Researchers have developed ProKnow, a framework that infuses structured clinical process knowledge into Large Language Models (LLMs) to enable safe and explainable diagnostic assistance for mental health. By steering question generation with evidence-based guidelines, the system achieves an 89% improvement in safety and a 96% reduction in conceptual flow errors compared to standard models.

What Problem Does This Paper Address?

Virtual Mental Health Assistants (VMHAs) are increasingly popular for counseling, but they hit a hard wall when it comes to diagnostic assistance. The stakes are simply too high. Standard LLMs are "black boxes" that lack an understanding of clinical workflows and safety constraints.

A notorious example cited in the paper involves a GPT-3-based bot responding "I think you should" to a user asking "Should I kill myself?" Beyond these extreme safety failures, current AI lacks Process Knowledge (ProKnow)—the ordered, evidence-based steps clinicians follow (like the PHQ-9 for depression or GAD-7 for anxiety) to systematically understand a patient's condition. Without this, AI-generated questions are often irrelevant, out of order, or clinically useless.

Methods

The authors propose ProKnow-algo, a search algorithm designed to sit on top of pre-trained LMs (like T5 or LSTMs) to steer their output. Instead of relying solely on token probability, the algorithm selects the next question based on a combined score from four components:

  1. Deep LM Probability: The standard likelihood of the next sentence.
  2. Tag and Rank Heuristic (TR): Ensures questions follow a logical clinical order (e.g., asking about symptoms before asking about specific medications).
  3. Knowledge Base (KB) Capture: Uses a similarity score to ensure the question contains concepts found in medical knowledge bases (like Mayo Clinic data).
  4. Safety Lexicon Heuristic (L): Penalizes questions that contain "unsafe" or irrelevant terms not recognized by clinical experts for a specific condition.

The team implemented this using two novel architectures: QG-LSTM and QG-Transformer (QG-T), which use specialized cell types to manage the generation of sequential question lists.

Figure 2: An illustration of a LSTM-cell in QG-LSTM. Similar is the architecture of QG-T.

Datasets

The study introduces ProKnow-data, a new dataset specifically designed for diagnostic conversations.

  • Construction: It was built using a 2-step process involving two senior psychiatrists and two resident psychiatrists. They mapped questions to clinical guidelines (SCID) and questionnaires (PHQ-9, GAD-7).
  • Structure: Each data point is a triplet of a medical questionnaire query, a set of expert-approved paraphrased questions, and the associated "Process Knowledge" (a tag like 'Causes' or 'Remedies' and a rank).
  • Scale: The initial expert-annotated set was expanded using a T5 paraphrasing model to reach 800,000 data points.
Examples of ProKnow-data showing how GAD-7 questions are expanded into ranked, tagged paraphrases.

The authors also compared ProKnow-data against existing mental health datasets, highlighting that it is the only one to be simultaneously process-guided, safety-constrained, and explainable.

Comparison of ProKnow-data against existing mental health datasets.

Key Insights and Ideas

  • Conceptual Flow Matters: Standard LLMs often jump around topics. ProKnow-algo enforces a "causal pattern" of questioning that mirrors how a human doctor thinks.
  • Safety via Lexicons: By defining a "Safety Lexicon" (a dictionary of clinically relevant concepts), the model can be mathematically discouraged from generating risky or nonsensical questions.
  • Explainability through Mapping: Because every generated question is tied to a specific clinical tag and rank, a clinician can look at the AI's "thought process" and understand why a specific follow-up was asked.
  • New Metrics for a New Task: The authors introduced three vital metrics:
  • AUM (Average Number of Unsafe Matches): Measures harmfulness.
  • AKCM (Average Number of Knowledge Context Matches): Measures clinical relevance.
  • ASRE (Average Square Rank Error): Measures how well the AI follows the intended clinical sequence.

Key Results

The ProKnow-augmented models significantly outperformed vanilla LLMs across the board:

  • Safety: Generated questions were 89% safer in the depression and anxiety domains.
  • Process Adherence: There was a 96% reduction in averaged squared rank error (ASRE), meaning the AI almost always asked questions in the correct clinical order.
  • Overall Performance: Irrespective of the underlying LM, ProKnow-algo achieved an average 82% improvement across safety, explainability, and process-guided generation.
Figure 1: An illustration of safe and medically appropriate natural language question generated by an agent trained with ProKnow-algo.

Limitations and Future Work

While promising, the authors acknowledge several hurdles:

  • Computational Cost: The search-based approach is more time-consuming and computationally expensive than standard greedy decoding.
  • Domain Specificity: The current dataset is limited to Major Depressive Disorder (MDD) and Anxiety Disorder (AD). Expanding this to more complex conditions like schizophrenia or acute suicide risk remains a significant challenge.
  • Semantic Variation Errors: In about 18% of cases, the model still struggled when the required sentence generation needed very high semantic variation, leading to incorrect ranking.

The team plans to explore more diverse datasets and optimize the algorithm for open-domain utility in future iterations.

Summary updated

BibTeX
@misc{roy2023proknow,
  author = {Kaushik Roy and Manas Gaur and Misagh Soltani and Vipula Rawte and Ashwin Kalyan and Amit Sheth},
  title = {{ProKnow: Process Knowledge for Safety Constrained and Explainable Question Generation for Mental Health Diagnostic Assistance}},
  year = {2023},
  eprint = {2305.08010},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.08010},
}
Figure