Inspiration
Most skincare shoppers buy products based on marketing buzzwords on the front label—like "10% Niacinamide" or "Anti-Aging Miracle"—only to experience irritation, worsening breakouts, or wasted money. Consumers don't need another generic LLM hallucinating medical claims; they need clinical-grade formulation analysis evaluated against their unique skin needs right before purchase.
What it does
SkinSafe provides an end-to-end compatibility decision before checkout:
- Clinical Skin Profile: Analyzes a selfie using the YouCam Skin Analysis API to diagnose real skin concerns like enlarged pores, dark circles, and sensitivity.
- Smart Label Screening: Uses Gemini Vision AI to verify packaging. If a user scans the front marketing side, it rejects the scan and prompts for the actual chemical formulation.
- Deterministic Safety Engine: Evaluates the full chemical formulation from the back label against the user's personal YouCam profile. It identifies beneficial active matches, flags comedogenic or irritating ingredients, and outputs a strict Buy, Maybe, or Skip verdict with AM/PM routine suggestions.
How we built it
- Skin Diagnostics: YouCam Skin Analysis REST API (File upload -> Create Task -> Poll Task)
- Packaging OCR: Google Gemini 1.5 Flash Vision AI
- Rule Engine: Custom deterministic safety matching logic written in Node.js/JavaScript (ensuring reproducible, hallucination-free decisions)
- Backend: Node.js, Express, Multer, dotenv
- Frontend: Clean, responsive vanilla JavaScript and CSS dashboard
Challenges we ran into
- Marketing Label False Positives: Many users accidentally scan the front of a bottle. We engineered strict prompt boundaries for the Vision model so it explicitly rejects front packaging when no formal cosmetic formulation is present.
- Avoiding Medical Hallucinations: Large language models can hallucinate contradictory medical advice. We solved this by strictly decoupling text extraction from decision-making: Gemini handles text parsing, while our internal rule engine handles 100% of the safety and compatibility scoring.
Accomplishments that we're proud of
- Resilient Architecture: Even during external AI service load spikes, our local deterministic engine continues to safely classify ingredients and provide instant user guidance without crashing.
- True Pre-Purchase Value: Bridging the gap between YouCam's clinical skin metrics and real-world cosmetic packaging labels.
What we learned
How to integrate YouCam's REST API into modern retail workflows and how to safely govern generative AI using deterministic validation layers.
What's next for SkinSafe
- Direct barcode scanning integration with international cosmetic formulation registries.
- Cross-product AM/PM routine analysis to catch ingredient clashes (e.g., Retinol + AHA/BHA conflicts).
Built With
- css3
- express.js
- gemini-api
- html5
- javascript
- node.js
- rest-api
- vision-ai
- youcam-api