[Paper Review] TherapyView: Visualizing Therapy Sessions with Temporal Topic Modeling and AI-Generated Arts
TherapyView is a novel visualization system that uses temporal topic modeling and AI-generated art to represent psychotherapy session dynamics at turn-level resolution. It leverages neural topic models—particularly the Embedded Topic Model (ETM)—to extract interpretable, time-resolved topic scores from transcripts, while DALL-E generates visual summaries, enabling therapists to detect patterns and improve treatment strategies.
We present the TherapyView, a demonstration system to help therapists visualize the dynamic contents of past treatment sessions, enabled by the state-of-the-art neural topic modeling techniques to analyze the topical tendencies of various psychiatric conditions and deep learning-based image generation engine to provide a visual summary. The system incorporates temporal modeling to provide a time-series representation of topic similarities at a turn-level resolution and AI-generated artworks given the dialogue segments to provide a concise representations of the contents covered in the session, offering interpretable insights for therapists to optimize their strategies and enhance the effectiveness of psychotherapy. This system provides a proof of concept of AI-augmented therapy tools with e in-depth understanding of the patient's mental state and enabling more effective treatment.
Motivation & Objective
- To develop a visualization system that enables therapists to interpret the dynamic progression of psychiatric conditions in therapy sessions using NLP and AI.
- To evaluate state-of-the-art neural topic models for their effectiveness in capturing topical trends in psychotherapy transcripts.
- To integrate AI-generated visual summaries (via DALL-E) to enhance interpretability and provide intuitive representations of session themes.
- To create an interactive, web-based dashboard that supports real-time exploration of topic evolution and patient state trajectories.
- To explore the feasibility of using turn-level topic modeling for clinical decision support and AI-augmented therapy.
Proposed method
- Applies neural topic modeling (specifically ETM) to psychotherapy transcripts to learn weighted topic representations from patient-therapist dialogue turns.
- Uses Word2Vec embeddings to compute cosine similarity between topic vectors and turn-level utterances for turn-level topic scoring.
- Employs temporal topic modeling (TTM) to generate time-series representations of topic similarities across dialogue turns.
- Integrates DALL-E to generate AI-generated artworks from segment-level dialogue summaries, providing visual metaphors for session themes.
- Builds a web dashboard using a React frontend and a Python-based Jupyter notebook API for real-time data querying and interactive visualization.
- Uses Jupyter Kernel Gateway to expose notebook cells as API endpoints, enabling rapid prototyping and iterative model development.
Experimental results
Research questions
- RQ1How well do state-of-the-art neural topic models perform in capturing topic coherence and diversity in psychotherapy transcripts?
- RQ2Can temporal topic modeling at the turn-level reveal clinically meaningful patterns in the progression of psychiatric conditions?
- RQ3To what extent can AI-generated art from dialogue segments provide interpretable and meaningful visual summaries of therapy session content?
- RQ4How does the integration of temporal topic modeling and visual generation enhance therapist understanding and decision-making in clinical practice?
- RQ5What are the practical and ethical challenges in deploying AI-generated visualizations in real-world mental health settings?
Key findings
- The Embedded Topic Model (ETM) achieved the highest topic coherence and diversity, with a coherence score of 0.973 for schizophrenia, 0.933 for depression, and 0.893 for anxiety.
- ETM outperformed other models in both topic coherence and log-likelihood, with a log-likelihood of -310.211 for schizophrenia, indicating strong model fit.
- The system successfully generated turn-level topic scores using cosine similarity between embedded topic and utterance vectors, enabling fine-grained temporal analysis.
- AI-generated images from DALL-E provided novel, interpretive visual representations of session themes, though with limited prompt length (1,000 characters max).
- Several therapy-related prompts were rejected by DALL-E due to safety filters, highlighting ethical and technical limitations in visualizing sensitive mental health content.
- The dashboard enabled therapists to identify patterns and potential concerns more efficiently, with visual cues helping surface subtle or overlooked themes in patient dialogue.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.