Inspiration
The inspiration for MamaMind stemmed from the recognition of the profound impact perinatal depression can have on new and expecting mothers. Understanding that many mothers face challenges in seeking timely and effective support, we aimed to create a digital solution that offers immediate, accessible, and empathetic mental health assistance. Our goal was to bridge the gap in mental health services and provide a supportive tool that mothers can rely on during one of the most critical times in their lives.
What it does
MamaMind is an intelligent mental health chatbot designed to provide support and assistance to individuals experiencing perinatal depression. The application offers a range of functionalities tailored to help users understand, manage, and alleviate their mental health challenges through a friendly and supportive interface. Here's a breakdown of its key features and capabilities:
Welcome and Initial Interaction Upon launching the application, users are greeted with a warm welcome message that sets a comforting tone for their interaction. The chatbot introduces itself and offers users the option to engage in a mental health assessment through the Edinburgh Postnatal Depression Scale (EPDS) questionnaire.
EPDS Questionnaire If users choose to proceed with the EPDS questionnaire, MamaMind guides them through a series of questions designed to evaluate their depression severity. The responses are collected, scored, and analyzed to provide an accurate assessment of the user's mental health status.
Severity-Based Guidance Based on the results of the EPDS questionnaire, MamaMind categorizes the severity of the user's depression and offers tailored guidance and resources. This personalized approach ensures that users receive appropriate advice and support based on their specific needs.
Interactive Chat Support Users can engage in an open-ended conversation with MamaMind by typing their concerns and questions into the chat input. The chatbot leverages advanced natural language processing techniques to understand the user's input and provide relevant responses. It uses knowledge of cognitive behavioral therapy, meditation techniques, mindfulness practices, and other therapeutic methods to guide users through their feelings and improve their well-being.
Contextual Responses MamaMind employs a Retrieval-Augmented Generation (RAG) with query decomposition method to retrieve relevant information from a pre-built knowledge base of 84 PubMed articles, guideline documents recommended by OECD member countries related to perinatal depression and reliable resources such as WHO and NIMH totaling 104 documents. This ensures that the responses are contextually accurate and informative. The chatbot uses the retrieved context, along with the user's input and severity level, to generate comprehensive and helpful responses.
Friendly Closure When users decide to end the conversation, MamaMind ensures a friendly and supportive closure. It responds positively to expressions of gratitude and offers a parting message that encourages users to return whenever they need further assistance.
Continuous Interaction MamaMind is designed to facilitate continuous interaction. It asks relevant follow-up questions to maintain the conversation flow and provide ongoing support. The chatbot remains available to answer any new questions or concerns users might have.
Key Benefits -Personalized Support: Tailored advice and resources based on the user's depression severity. -Expert Guidance: Incorporates the knowledge base from the Pubmed research articles on perinatal depression and the guideline documents recommended by member countries of OECD. -User-Friendly Interface: Easy-to-use chat interface. -Contextual Accuracy: Utilizes RAG using query decomposition to enhance the responses from the LLM and also ensuring accurate and reliable responses. -Ongoing Availability: Always available for continuous support and interaction. MamaMind aims to create a safe and supportive environment for individuals experiencing perinatal depression, offering them the tools and resources needed to navigate their mental health journey.
How we built it
The project was built using a combination of advanced AI technologies and user-friendly web development tools:
- Streamlit: For creating an interactive web application interface that is easy to navigate.
- Hugging Face sentence transformers: To leverage pre-trained embedding models for creating embeddings for the PDF documents. -Langchain: To build a chatbot application to connect with Groq cloud API for accessing the LLMs.
- FAISS (Facebook AI Similarity Search): To create an efficient retrieval-augmented generation (RAG) system for accessing relevant information quickly.
- Python: As the primary programming language for integrating different components and building the backend logic.
- CSS: To enhance the visual appeal and user experience of the application.
- Markdown: For documenting and presenting the project details in a structured format.
Steps to Build the Project:
- Design: Understanding the needs of the target users and designing a solution that addresses those needs effectively.
- Data Collection: Gathering and preparing relevant data for Advanced RAG retrieval techniques.
- Model Integration: Integrating the RAG with the chatbot application using LLMs.
- Interface Development: Building the user interface using Streamlit and enhancing it with custom CSS.
- Testing and Refinement: Iteratively testing the application and refining it based on feedback within the team.
Challenges we ran into
- Model Performance: Prompt engineering and the refinement using RAG along with query decomposition method for the language model to provide accurate and empathetic responses specific to perinatal depression.
- User Experience: Designing an intuitive and supportive interface that encourages user engagement without causing additional stress or anxiety.
- Integration: Seamlessly integrating various technologies (Streamlit, FAISS, Langchain) to create a cohesive and efficient system.
- Scalability: Ensuring that the application can handle multiple users and large volumes of data without compromising performance.
Despite these challenges, the development of MamaMind was a rewarding experience that underscored the potential of technology in making a positive impact on mental health.
Accomplishments that we're proud of
User-Centric Design: We successfully created an intuitive and user-friendly interface that ensures a seamless experience for individuals seeking mental health support. The design is tailored to be comforting and easy to navigate, making it accessible for users of all ages and backgrounds.
EPDS Questionnaire Integration: Integrating the Edinburgh Postnatal Depression Scale (EPDS) into the chatbot was a significant achievement. This feature allows users to self-assess their mental health and receive personalized guidance based on their responses, providing a valuable tool for early detection and intervention.
Advanced AI Implementation: By leveraging advanced natural language processing and machine learning models, we were able to create a chatbot that understands and responds to user inputs with high accuracy and empathy. The use of Retrieval-Augmented Generation (RAG) ensures that the information provided is both relevant and helpful.
Tailored Mental Health Support: The chatbot's ability to offer personalized advice based on the severity of the user's depression is a major accomplishment. This ensures that each user receives the appropriate level of support and resources, enhancing the effectiveness of the intervention.
Continuous Interaction and Support: We designed MamaMind to facilitate continuous engagement, asking relevant follow-up questions to maintain a supportive conversation flow. This ongoing interaction helps users feel heard and supported throughout their mental health journey.
What we learnt
Through the development of MamaMind, we gained valuable insights into the complexities of mental health, particularly perinatal depression. We learned about the various therapeutic approaches that can be used to support mental well-being, including cognitive behavioral therapy, mindfulness practices, and meditation techniques. Additionally, we deepened my understanding of Large Language models, Retrieval Augmented Generation(RAG) using query decomposition method and the integration of AI models to deliver personalized and contextually relevant advice. This project also highlighted the importance of user-centered design in creating a tool that is both effective and easy to use.
What's next for MamaMind
Enhanced Personalization: We plan to further enhance the personalization of MamaMind by incorporating more detailed user profiles and preferences. This will allow the chatbot to provide even more tailored support and resources based on individual needs.
Expanded Resource Library: We aim to expand the knowledge base and resource library, including more comprehensive information on various mental health topics, self-help techniques, and support services. This will ensure that users have access to a wider range of information and tools.
Multilingual Support: To make MamaMind accessible to a broader audience, we plan to introduce multilingual support. This will enable users from different linguistic backgrounds to receive mental health support in their preferred language.
Integration with Professional Support: We are exploring the possibility of integrating MamaMind with professional mental health services. This could include features such as connecting users with licensed therapists or providing direct referrals to mental health professionals for further assistance.
Mobile App Development: In addition to the web-based application, we aim to develop a mobile app version of MamaMind. This will provide users with the convenience of accessing mental health support on-the-go, enhancing the accessibility and reach of the application.
User Community and Support Groups: We plan to create a user community and support groups within the application. This will allow users to connect with others who are experiencing similar challenges, fostering a sense of community and mutual support.
Data Privacy and Security Enhancements: Ensuring the privacy and security of user data is a top priority. We will continue to enhance our data protection measures to safeguard user information and maintain trust.
Feedback-Driven Improvements: We will continue to gather and act on user feedback to make ongoing improvements to MamaMind. This iterative approach will help us refine the application and ensure it continues to meet the evolving needs of its users.
MamaMind is committed to providing effective, empathetic, and accessible mental health support for individuals experiencing perinatal depression. We are excited about the future and the potential to make a meaningful impact on the well-being of our users.
Thank you for reading about MamaMind. I hope this project can inspire others to leverage technology in addressing critical mental health issues and providing support to those in need.
Log in or sign up for Devpost to join the conversation.