ONION: From "Emotional Trash Can" to "Pattern Library"
Inspiration: Finding the Signal in the Noise
While many people use journals merely as "emotional trash cans" to vent stress, this often provides only temporary relief rather than leading to fundamental personal growth. We aim for ONION to be a "Pattern Library" where users can face their inner selves objectively. By visualizing recurring "stimulus-response" mechanisms through data, we built a tool that empowers users to understand themselves more deeply and break free from negative psychological cycles.
Key Features of ONION
Multimodal Dynamic Journaling Users can record their daily experiences through diverse formats, including text, photos, and even handwritten sketches, capturing the full context of their emotions.
Real-time AI Insights The AI instantly analyzes each entry to provide immediate emotional feedback and personalized psychological solutions tailored to the user's current state.
Holistic Psychological Report By synthesizing months of longitudinal data, the platform generates a comprehensive report. It identifies recurring psychological triggers—such as self-deprecation following specific social interactions—to map out the user’s mental landscape.
The Mind Tree (Visual Growth System) A visual representation of the user’s psychological journey. The tree evolves and grows in real-time as the user engages in deeper self-reflection, making mental progress tangible.
Interactive Reflection Chatbot Users can engage in a deep-dive conversation with an AI chatbot to ask follow-up questions about their journal analysis, facilitating a multi-layered exploration of their inner thoughts.
How I Built It: Leveraging Gemini3’s Architecture
The core of ONION is built upon the Google Gemini ecosystem, which provided the necessary technical depth for a comprehensive psychological companion.
1. Multimodal
Gemini3’s OCR ability to interpret handwritten notes and daily photos—even those that are somewhat blurry—enables a seamless transition from analog reflection to digital insight.
2. Multilingual Integration
Users can express their emotions in their most natural 'inner voice,' whether they mix multiple languages or use specific cultural idioms.
3. Long-Context Synthesis
To map out a user's 'Holistic Psychological Report' months of data must be analyzed simultaneously. Leveraging Gemini3’s industry-leading long-context window, ONION processes a series of diary entries to uncover correlations that remain invisible in short-term analysis.
4. Big Five Personality Trait Extraction
We utilize the Gemini3 API to quantify the Big Five personality traits—Openness, Conscientiousness, Extraversion, Agreeableness, and Neuroticism—directly from the user's diary data. These extracted metrics are seamlessly integrated as growth parameters for the "Mind Tree." Consequently, the tree’s specific shape, aesthetics, and growth patterns are dynamically determined by the user’s unique psychological profile.
To quantify this, we model the psychological shift as: $$\Delta \Psi = \int_{t_{start}}^{t_{end}} G(S_{multimodal}, P_{BigFive}) dt$$
Onion Service Diagram
Challenges Faced
- Quantifying the Intangible Beyond Binary Sentiments Challenge A major hurdle was how to represent complex human emotions. Simply assigning a "-1" to "sadness" or a "+1" to "happiness" felt like a gross oversimplification that risked distorting the user’s nuanced psychological state.
Solution: Instead of simplistic sentiment scoring, we integrated the Big Five personality framework. We interpret emotions not as "good" or "bad," but as expressions of individual traits. For instance, a high Neuroticism score is not visualized as a negative value; instead, it is translated into specific "Mind Tree" characteristics, such as "delicate and deep sensitivity," allowing users to embrace their traits as unique growth attributes rather than flaws.
- The "Why so serious?" Safety Filter Block Since ONION deals with deep psychological topics and mental health, we found that Gemini’s default safety filters sometimes blocked user inputs containing negative emotional keywords (e.g., "I feel depressed" or "I feel hopeless").
Solution: To allow the AI to function as a validating counselor rather than a restrictive gatekeeper, we configured the safety_settings to BLOCK_NONE for specific categories. This optimization ensures the AI accepts and empathizes with negative feelings instead of shutting down the conversation, providing a safer space for honest expression.
The Impact We Made
A Sustainable Ecosystem for Self-Reflection and Mental Management
Our greatest achievement is not merely showcasing technical prowess, but providing users with a practical, everyday environment where they can genuinely nurture and manage their mental well-being. We have successfully transitioned the AI from a complex tool into a meaningful gift—a companion that empowers users to care for their inner selves consistently.
What We Learned
We are well aware of the growing concerns regarding the impact of AI on the human psyche. However, our journey with ONION has reinforced our belief in a necessary paradigm shift. While we acknowledge that AI carries inherent risks if left unchecked, we have discovered that when thoughtfully designed and ethically managed, it becomes a "new opportunity"—a tool for healing that is more secure and innovative than any previous technology. Ultimately, technology must serve humanity; in the field of mental health, AI has the potential to transition from a cold algorithm into the warmest, most attentive companion for the human heart.
What's next for Onion
Multimodal Voice Journaling: We plan to go beyond text by implementing voice-to-diary technology. This feature will not only transcribe speech but also analyze the emotional tone and cadence of the user's voice to capture even deeper layers of their psychological state.
Philosophical Persona Chatbots: To provide deeper existential support, we intend to introduce specialized chatbots infused with the personas of great philosophers, such as Friedrich Nietzsche and Marcus Aurelius. This will allow users to receive counseling rooted in profound human wisdom and diverse values.
Mobile App Expansion: We are moving toward a native mobile environment to ensure that mental care is accessible anytime, anywhere. This expansion will focus on integrating ONION seamlessly into the user’s daily routine for more consistent and effective emotional management.
Built With
- fastapi
- gemini3
- javascript
- jwt
- mogodb
- node.js
- pydantic
- python
- react
- render
- tailwindcss
- three.js
- vercel
- vite


Log in or sign up for Devpost to join the conversation.