Sentiment Reasoning for Healthcare
Please press ⭐ button and/or cite papers if you feel helpful.
Sentiment Reasoning pipeline
Abstract: Transparency in AI healthcare decision-making is crucial. By incorporating rationales to explain reason for each predicted label, users could understand Large Language Models (LLMs)’s reasoning to make better decision. In this work, we introduce a new task - Sentiment Reasoning - for both speech and text modalities, and our proposed multimodal multitask framework and the world's largest multimodal sentiment analysis dataset. Sentiment Reasoning is an auxiliary task in sentiment analysis where the model predicts both the sentiment label and generates the rationale behind it based on the input transcript. Our study conducted on both human transcripts and Automatic Speech Recognition (ASR) transcripts shows that Sentiment Reasoning helps improve model transparency by providing rationale for model prediction with quality semantically comparable to humans while also improving model's classification performance (+2% increase in both accuracy and macro-F1) via rationale-augmented fine-tuning. Also, no significant difference in the semantic quality of generated rationales between human and ASR transcripts. All code, data (five languages - Vietnamese, English, Chinese, German, and French) and models are published online.
Citation: Please cite this paper: https://arxiv.org/abs/2407.21054
@misc{Sentiment_Reasoning,
title={Sentiment Reasoning for Healthcare},
author={Khai-Nguyen Nguyen and Khai Le-Duc and Bach Phan Tat and Duy Le and Long Vo-Dang and Truong-Son Hy},
year={2024},
eprint={2407.21054},
url={https://arxiv.org/abs/2407.21054},
}
This repository contains scripts for automatic speech recognition (ASR) and sentiment reasoning using cascaded sequence-to-sequence (seq2seq) audio-language models. The provided scripts cover model preparation, training, inference, and evaluation processes, based on the dataset in the paper.
Dataset and Pre-trained Models:
🤗 HuggingFace Dataset: https://huggingface.co/datasets/leduckhai/Sentiment-Reasoning
🤗 HuggingFace Models: to be released soon!
Model Name | Description | Link |
---|---|---|
Vietnamese_Vistral-7B |
LLM fine-tuned on Vietnamese set | Hugging Face models |
English-LLM |
LLM fine-tuned on English set | to be released soon! |
French-LLM |
LLM fine-tuned on French set | to be released soon! |
German-LLM |
LLM fine-tuned on German set | to be released soon! |
Vietnamese-LLM |
LLM fine-tuned on Chinese set | to be released soon! |
Multilingual-LLM |
LLM fine-tuned on Multilingual set (5 languages) | to be released soon! |
Paperswithcodes to be released soon!
Sample data format used in Sentiment Reasoning dataset
Contact
Core developers:
Khai Le-Duc
University of Toronto, Canada
Email: [email protected]
GitHub: https://github.com/leduckhai
Khai-Nguyen Nguyen
This dude is smarter than me and thus deserves your attention :relaxed:
College of William and Mary, USA
GitHub: https://github.com/nkn002
Hugging Face: https://huggingface.co/knguyennguyen
Homepage: https://nkn002.github.io/