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:

  1. 𝐖𝐞𝐥𝐜𝐨𝐦𝐞 𝐚𝐧𝐝 𝐈𝐧𝐢𝐭𝐢𝐚𝐥 𝐈𝐧𝐭𝐞𝐫𝐚𝐜𝐭𝐢𝐨𝐧 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.

  2. 𝐄𝐏𝐃𝐒 𝐐𝐮𝐞𝐬𝐭𝐢𝐨𝐧𝐧𝐚𝐢𝐫𝐞 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.

  3. 𝐒𝐞𝐯𝐞𝐫𝐢𝐭𝐲-𝐁𝐚𝐬𝐞𝐝 𝐆𝐮𝐢𝐝𝐚𝐧𝐜𝐞 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.

  4. 𝐈𝐧𝐭𝐞𝐫𝐚𝐜𝐭𝐢𝐯𝐞 𝐂𝐡𝐚𝐭 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 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.

  5. 𝐂𝐨𝐧𝐭𝐞𝐱𝐭𝐮𝐚𝐥 𝐑𝐞𝐬𝐩𝐨𝐧𝐬𝐞𝐬 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.

  6. 𝐅𝐫𝐢𝐞𝐧𝐝𝐥𝐲 𝐂𝐥𝐨𝐬𝐮𝐫𝐞 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.

  7. 𝐂𝐨𝐧𝐭𝐢𝐧𝐮𝐨𝐮𝐬 𝐈𝐧𝐭𝐞𝐫𝐚𝐜𝐭𝐢𝐨𝐧 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.

Built With

Share this project:

Updates

Submission history