Medical Interviewer is an AI platform designed to simulate medical interviews based on psychological and medical knowledge. This platform is meant for educational, research, and preliminary assessment purposes but should not be used as a substitute for professional medical advice.
- This is a simulation tool, and information shared is confidential but should not include sensitive data.
- Always seek professional medical advice from qualified healthcare providers.
- Conducts interviews with medically relevant and psychologically informed questions.
- Interviews can be customized by selecting different interviewers with unique backgrounds and approaches:
- Sarah: Compassionate experience in trauma and family therapy.
- Aaron: Direct and specialized in stress management, trauma, and military-related cases.
- Uses LangChain to create NLP chains that drive the interview and report generation processes.
- Understands user input and generates contextually relevant follow-up questions.
- Enables voice-based conversation by converting text to speech (TTS) and transcribing user responses using Whisper speech-to-text technology.
- Automatically generates detailed medical reports based on the interview session.
- Users can download the report in PDF format.
- Users can upload TXT, PDF, or DOCX files, and the system will generate a report from the document's content.
- Supports interviews and report generation in multiple languages.
- Utilizes RAG to retrieve relevant data from indexed medical and psychological resources such as DSM-5, PDM-2, Big Five Traits, etc., ensuring contextually accurate interview questions.
- Choose an interviewer (Sarah or Aaron).
- Start the interview in either text or voice format.
- The system will guide you through a series of questions, designed to simulate a medical interview.
- Navigate to the "Upload Document" tab.
- Upload your medical document (TXT, PDF, or DOCX).
- Generate a report based on the content of the document, which will be available for download.
- Customize your experience by enabling or disabling audio interaction.
- Choose between available interviewers, each providing a unique style and focus.
The system uses a combination of:
- NLP for question generation and contextual relevance.
- FAISS Indexing for document similarity and retrieval of relevant medical knowledge.
- RAG to ensure contextually relevant and accurate interview processes.
- Gradio for the user interface, allowing text and audio inputs with real-time responses.
- Whisper and TTS for audio interaction, enabling real-time simulated voice-based interviews.
To run the application locally:
-
Clone the repository:
git clone https://github.com/ruslanmv/ai-medical-chatbot cd ./ai-medical-chatbot/8-Interviewer/hf
-
Install the dependencies:
pip install -r requirements.txt
-
Launch the application:
python app.py
This project is licensed under the MIT License. See the LICENSE file for more details.