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:
๐๐๐ฅ๐๐จ๐ฆ๐ ๐๐ง๐ ๐๐ง๐ข๐ญ๐ข๐๐ฅ ๐๐ง๐ญ๐๐ซ๐๐๐ญ๐ข๐จ๐ง 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.
๐๐๐๐ ๐๐ฎ๐๐ฌ๐ญ๐ข๐จ๐ง๐ง๐๐ข๐ซ๐ 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.
๐๐๐ฏ๐๐ซ๐ข๐ญ๐ฒ-๐๐๐ฌ๐๐ ๐๐ฎ๐ข๐๐๐ง๐๐ 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.
๐๐ง๐ญ๐๐ซ๐๐๐ญ๐ข๐ฏ๐ ๐๐ก๐๐ญ ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ 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.
๐๐จ๐ง๐ญ๐๐ฑ๐ญ๐ฎ๐๐ฅ ๐๐๐ฌ๐ฉ๐จ๐ง๐ฌ๐๐ฌ 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.
๐ ๐ซ๐ข๐๐ง๐๐ฅ๐ฒ ๐๐ฅ๐จ๐ฌ๐ฎ๐ซ๐ 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.
๐๐จ๐ง๐ญ๐ข๐ง๐ฎ๐จ๐ฎ๐ฌ ๐๐ง๐ญ๐๐ซ๐๐๐ญ๐ข๐จ๐ง 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
๐๐๐ฒ ๐๐๐ง๐๐๐ข๐ญ๐ฌ
-:๐๐๐ซ๐ฌ๐จ๐ง๐๐ฅ๐ข๐ณ๐๐ ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ: Tailored advice and resources based on the user's depression severity.
-๐๐ฑ๐ฉ๐๐ซ๐ญ ๐๐ฎ๐ข๐๐๐ง๐๐:Incorporates the knowledge base from the Pubmed research articles on perinatal depression and the guideline documents recommended by member countries of OECD.
-๐๐ฌ๐๐ซ-๐ ๐ซ๐ข๐๐ง๐๐ฅ๐ฒ ๐๐ง๐ญ๐๐ซ๐๐๐๐: 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.
-๐๐ง๐ ๐จ๐ข๐ง๐ ๐๐ฏ๐๐ข๐ฅ๐๐๐ข๐ฅ๐ข๐ญ๐ฒ: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:
1.๐๐ญ๐ซ๐๐๐ฆ๐ฅ๐ข๐ญ: For creating an interactive web application interface that is easy to navigate.
2.๐๐ฎ๐ ๐ ๐ข๐ง๐ ๐ ๐๐๐ ๐ฌ๐๐ง๐ญ๐๐ง๐๐ ๐ญ๐ซ๐๐ง๐ฌ๐๐จ๐ซ๐ฆ๐๐ซ๐ฌ: To leverage pre-trained embedding models for creating embeddings for the PDF documents. ๐๐๐ง๐ ๐๐ก๐๐ข๐ง: To build a chatbot application to connect with Groq cloud API for accessing the LLMs.
3.๐ ๐๐๐๐ (๐ ๐๐๐๐๐จ๐จ๐ค ๐๐ ๐๐ข๐ฆ๐ข๐ฅ๐๐ซ๐ข๐ญ๐ฒ ๐๐๐๐ซ๐๐ก): To create an efficient retrieval-augmented generation (RAG) system for accessing relevant information quickly.
4.๐๐ฒ๐ญ๐ก๐จ๐ง:As the primary programming language for integrating different components and building the backend logic.
5.๐๐๐: To enhance the visual appeal and user experience of the application.
6.๐๐๐ซ๐ค๐๐จ๐ฐ๐ง: For documenting and presenting the project details in a structured format.
๐๐ญ๐๐ฉ๐ฌ ๐ญ๐จ ๐๐ฎ๐ข๐ฅ๐ ๐ญ๐ก๐ ๐๐ซ๐จ๐ฃ๐๐๐ญ:
1.๐๐๐ฌ๐ข๐ ๐ง: Understanding the needs of the target users and designing a solution that addresses those needs effectively.
2.๐๐๐ญ๐ ๐๐จ๐ฅ๐ฅ๐๐๐ญ๐ข๐จ๐ง: Gathering and preparing relevant data for Advanced RAG retrieval techniques.
3.๐๐จ๐๐๐ฅ ๐๐ง๐ญ๐๐ ๐ซ๐๐ญ๐ข๐จ๐ง:Integrating the RAG with the chatbot application using LLMs.
4.๐๐ง๐ญ๐๐ซ๐๐๐๐ ๐๐๐ฏ๐๐ฅ๐จ๐ฉ๐ฆ๐๐ง๐ญ: Building the user interface using Streamlit and enhancing it with custom CSS.
5.๐๐๐ฌ๐ญ๐ข๐ง๐ ๐๐ง๐ ๐๐๐๐ข๐ง๐๐ฆ๐๐ง๐ญ: Iteratively testing the application and refining it based on feedback within the team.
Challenges we ran into
1.๐๐จ๐๐๐ฅ ๐๐๐ซ๐๐จ๐ซ๐ฆ๐๐ง๐๐: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.
2.๐๐ฌ๐๐ซ ๐๐ฑ๐ฉ๐๐ซ๐ข๐๐ง๐๐: Designing an intuitive and supportive interface that encourages user engagement without causing additional stress or anxiety.
3.๐๐ง๐ญ๐๐ ๐ซ๐๐ญ๐ข๐จ๐ง:Seamlessly integrating various technologies (Streamlit, FAISS, Langchain) to create a cohesive and efficient system.
4.๐๐๐๐ฅ๐๐๐ข๐ฅ๐ข๐ญ๐ฒ: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
๐๐ฌ๐๐ซ-๐๐๐ง๐ญ๐ซ๐ข๐ ๐๐๐ฌ๐ข๐ ๐ง: 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.
๐๐๐๐ ๐๐ฎ๐๐ฌ๐ญ๐ข๐จ๐ง๐ง๐๐ข๐ซ๐ ๐๐ง๐ญ๐๐ ๐ซ๐๐ญ๐ข๐จ๐ง: 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.
๐๐๐ฏ๐๐ง๐๐๐ ๐๐ ๐๐ฆ๐ฉ๐ฅ๐๐ฆ๐๐ง๐ญ๐๐ญ๐ข๐จ๐ง: 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.
๐๐๐ข๐ฅ๐จ๐ซ๐๐ ๐๐๐ง๐ญ๐๐ฅ ๐๐๐๐ฅ๐ญ๐ก ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ: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.
๐๐จ๐ง๐ญ๐ข๐ง๐ฎ๐จ๐ฎ๐ฌ ๐๐ง๐ญ๐๐ซ๐๐๐ญ๐ข๐จ๐ง ๐๐ง๐ ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ: 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 learned
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
๐๐ง๐ก๐๐ง๐๐๐ ๐๐๐ซ๐ฌ๐จ๐ง๐๐ฅ๐ข๐ณ๐๐ญ๐ข๐จ๐ง: 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.
๐๐ฑ๐ฉ๐๐ง๐๐๐ ๐๐๐ฌ๐จ๐ฎ๐ซ๐๐ ๐๐ข๐๐ซ๐๐ซ๐ฒ: 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.
๐๐ฎ๐ฅ๐ญ๐ข๐ฅ๐ข๐ง๐ ๐ฎ๐๐ฅ ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ: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.
๐๐ง๐ญ๐๐ ๐ซ๐๐ญ๐ข๐จ๐ง ๐ฐ๐ข๐ญ๐ก ๐๐ซ๐จ๐๐๐ฌ๐ฌ๐ข๐จ๐ง๐๐ฅ ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ: 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.
๐๐จ๐๐ข๐ฅ๐ ๐๐ฉ๐ฉ ๐๐๐ฏ๐๐ฅ๐จ๐ฉ๐ฆ๐๐ง๐ญ: 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.
๐๐ฌ๐๐ซ ๐๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐ญ๐ฒ ๐๐ง๐ ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ ๐๐ซ๐จ๐ฎ๐ฉ๐ฌ: 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.
๐๐๐ญ๐ ๐๐ซ๐ข๐ฏ๐๐๐ฒ ๐๐ง๐ ๐๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ ๐๐ง๐ก๐๐ง๐๐๐ฆ๐๐ง๐ญ๐ฌ: 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.
๐ ๐๐๐๐๐๐๐ค-๐๐ซ๐ข๐ฏ๐๐ง ๐๐ฆ๐ฉ๐ซ๐จ๐ฏ๐๐ฆ๐๐ง๐ญ๐ฌ: 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.