Skip to main content

Main menu

  • Home
  • Current Issue
  • Content
    • Current Issue
    • Early Access
    • Multimedia
    • Podcast
    • Collections
    • Past Issues
    • Articles by Subject
    • Articles by Type
    • Supplements
    • Plain Language Summaries
    • Calls for Papers
  • Info for
    • Authors
    • Reviewers
    • Job Seekers
    • Media
  • About
    • Annals of Family Medicine
    • Editorial Staff & Boards
    • Sponsoring Organizations
    • Copyrights & Permissions
    • Announcements
  • Engage
    • Engage
    • e-Letters (Comments)
    • Subscribe
    • Podcast
    • E-mail Alerts
    • Journal Club
    • RSS
    • Annals Forum (Archive)
  • Contact
    • Contact Us
  • Careers

User menu

  • My alerts

Search

  • Advanced search
Annals of Family Medicine
  • My alerts
Annals of Family Medicine

Advanced Search

  • Home
  • Current Issue
  • Content
    • Current Issue
    • Early Access
    • Multimedia
    • Podcast
    • Collections
    • Past Issues
    • Articles by Subject
    • Articles by Type
    • Supplements
    • Plain Language Summaries
    • Calls for Papers
  • Info for
    • Authors
    • Reviewers
    • Job Seekers
    • Media
  • About
    • Annals of Family Medicine
    • Editorial Staff & Boards
    • Sponsoring Organizations
    • Copyrights & Permissions
    • Announcements
  • Engage
    • Engage
    • e-Letters (Comments)
    • Subscribe
    • Podcast
    • E-mail Alerts
    • Journal Club
    • RSS
    • Annals Forum (Archive)
  • Contact
    • Contact Us
  • Careers
  • Follow annalsfm on Twitter
  • Visit annalsfm on Facebook
Meeting ReportInfectious diseases (not respiratory tract)

Development of a ChatGPT-Powered Crisis and Suicidal Ideation Management Module for an HIV Self-Management Chatbot

Sebastian Villanueva Yuanchao, Bertrand Lebouché and David Lessard
The Annals of Family Medicine November 2024, 22 (Supplement 1) 7035; DOI: https://doi.org/10.1370/afm.22.s1.7035
Sebastian Villanueva Yuanchao
MA, MSc
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Bertrand Lebouché
MD, PhD
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
David Lessard
PhD
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • Article
  • eLetters
  • Info & Metrics
  • PDF
Loading

Abstract

Background MARVIN is a chatbot promoting self-management of medication among people with HIV (PWH) and currently providing support for medication adherence and HIV-related general knowledge. PWH face significant stigma and mental health challenges (e.g., stress, depression, and isolation), and are at greater risk of distress than the general population.

Objectives To enhance MARVIN’s ability to respond to users’ potential ‘extreme messaging’ (e.g. messages suggesting suicidal thoughts or including self-harming or discriminatory components). Sub-objectives are to 1) develop a classification algorithm of extreme messaging, 2) integrate this algorithm into MARVIN, and 3) assess its usability and impacts on patient-chatbot communication, including conversation clarity and user satisfaction.

Methods We integrated three public hate speech databases from an online catalog (hatespeechdata.com) mixed with recorded MARVIN-user conversation dataset and MARVIN synthetic data (e.g. permutations of our own data), to train ChatGPT to identify three categories of messages: self-harm, insults, and normal (e.g., messages which intents are not self-harm or insult). We prompt-tuned the model and tested its performance with different prompts and the one-shot prompting technique. We quantified its performance with recall, precision, accuracy, and F1 score metrics. We then integrated ChatGPT into MARVIN’s classification tree through requests to the OpenAI servers. We constructed a 2-hour test guide of 14 scenarios and asked six testers, including three PWH and three professionals (e.g. two engineers and one doctor), to do each scenario, and then to fill out a two-item on conversation clarity and user satisfaction.

Results Using one-shot prompting and a prompt using the CO-START framework, ChatGPT attained a value of 96% across all the metrics. The hybrid ChatGPT-MARVIN model successfully generated appropriate responses to extreme messaging with emergency contacts, while relying on MARVIN’s original responses for messages with ‘normal’ intentions. When applying scenarios, testers considered MARVIN’s responses as clear and concise, and were satisfied with the responses and overall experience.

Conclusion This ‘anti-extreme module’ represents the first filter for MARVIN. Large language models such as ChatGPT can help identify extreme intentions like self-harm and insults and to generate appropriate responses for healthcare chatbots. Providing users with non-judgmental support

  • © 2024 Annals of Family Medicine, Inc. For the private, noncommercial use of one individual user of the Web site. All other rights reserved.
Previous
Back to top

In this issue

The Annals of Family Medicine: 22 (Supplement 1)
The Annals of Family Medicine: 22 (Supplement 1)
Vol. 22, Issue Supplement 1
20 Nov 2024
  • Table of Contents
  • Index by author
Download PDF
Article Alerts
Sign In to Email Alerts with your Email Address
Email Article

Thank you for your interest in spreading the word on Annals of Family Medicine.

NOTE: We only request your email address so that the person you are recommending the page to knows that you wanted them to see it, and that it is not junk mail. We do not capture any email address.

Enter multiple addresses on separate lines or separate them with commas.
Development of a ChatGPT-Powered Crisis and Suicidal Ideation Management Module for an HIV Self-Management Chatbot
(Your Name) has sent you a message from Annals of Family Medicine
(Your Name) thought you would like to see the Annals of Family Medicine web site.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
1 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Citation Tools
Development of a ChatGPT-Powered Crisis and Suicidal Ideation Management Module for an HIV Self-Management Chatbot
Sebastian Villanueva Yuanchao, Bertrand Lebouché, David Lessard
The Annals of Family Medicine Nov 2024, 22 (Supplement 1) 7035; DOI: 10.1370/afm.22.s1.7035

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
Get Permissions
Share
Development of a ChatGPT-Powered Crisis and Suicidal Ideation Management Module for an HIV Self-Management Chatbot
Sebastian Villanueva Yuanchao, Bertrand Lebouché, David Lessard
The Annals of Family Medicine Nov 2024, 22 (Supplement 1) 7035; DOI: 10.1370/afm.22.s1.7035
Twitter logo Facebook logo Mendeley logo
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Jump to section

  • Article
  • eLetters
  • Info & Metrics
  • PDF

Related Articles

  • No related articles found.
  • Google Scholar

Cited By...

  • No citing articles found.
  • Google Scholar

More in this TOC Section

  • Hepatitis C Micro-elimination Using Patient Navigation In a Regional Healthcare System
  • Understanding Barriers to Congenital Syphilis Prevention and Care Through Provider and Patient Perspectives
Show more Infectious diseases (not respiratory tract)

Similar Articles

Content

  • Current Issue
  • Past Issues
  • Early Access
  • Plain-Language Summaries
  • Multimedia
  • Podcast
  • Articles by Type
  • Articles by Subject
  • Supplements
  • Calls for Papers

Info for

  • Authors
  • Reviewers
  • Job Seekers
  • Media

Engage

  • E-mail Alerts
  • e-Letters (Comments)
  • RSS
  • Journal Club
  • Submit a Manuscript
  • Subscribe
  • Family Medicine Careers

About

  • About Us
  • Editorial Board & Staff
  • Sponsoring Organizations
  • Copyrights & Permissions
  • Contact Us
  • eLetter/Comments Policy

© 2025 Annals of Family Medicine