AcneSol is an intelligent full-stack skincare consultation platform that analyzes facial images and lifestyle factors to generate highly personalized skincare routines. By combining computer vision, retrieval-augmented generation (RAG), and large language models, AcneSol provides evidence-based recommendations tailored to each user's acne type, severity, and daily habits.
AcneSol integrates multiple AI components to simulate a structured dermatology consultation.
The system performs the following tasks:
- Analyzes facial images using a custom-trained MobileNetV2 model.
- Detects acne type and severity (such as Blackheads, Papules, Pustules, and Cystic Acne).
- Collects lifestyle information including sleep, stress, diet, and skincare habits.
- Retrieves evidence-based dermatology knowledge using TF-IDF and cosine similarity.
- Generates personalized morning and night skincare routines.
- Recommends suitable ingredients and products.
- Provides a conversational AI assistant for follow-up questions.
- Presents all results through a modern and responsive web interface.
The application combines traditional machine learning, deep learning, and generative AI to deliver professional-grade skincare guidance from home.
- 🧠 Smart Severity Assessment: Re-ordered pipeline that combines image analysis with lifestyle factors for precise, evidence-based grading.
- ✏️ Human-in-the-Loop Correction: Allows users to manually override AI misidentifications via a premium "EDIT" UI, triggering an immediate re-analysis.
- 🎨 Premium UI/UX: Fully responsive, glassmorphic React interface featuring fluid animations and mobile-optimized consultation flows.
- 🔍 RAG-Powered Insights: Uses Retrieval Augmented Generation (RAG) to pull evidence-based advice from a curated dermatology knowledge base.
- 💬 AI Chat Assistant: Follow-up support to ask questions about your routine or specific ingredients.
- Python
- FastAPI
- TensorFlow
- Keras
- MobileNetV2
- Groq SDK
- Llama 3.3 70B
- Scikit-learn
- TF-IDF Vectorizer
- Pillow
- React 18
- Vite
- Tailwind CSS
- Framer Motion
- Lucide React
User Uploads Image and Answers Lifestyle Questions
↓
React Frontend
↓
FastAPI Backend
↓
Image Preprocessing (Pillow)
↓
MobileNetV2 Acne Classification Model
↓
Lifestyle Response Normalization
↓
TF-IDF Knowledge Retrieval (RAG)
↓
Llama 3 Personalized Reasoning
↓
Structured JSON Response
↓
Results Dashboard + AI Chat
A MobileNetV2 convolutional neural network analyzes uploaded facial images and predicts acne type and severity.
A TF-IDF-based retriever searches a curated dermatology knowledge base for relevant evidence and treatment guidance.
Llama 3.3, accessed through the Groq API, combines image predictions, retrieved knowledge, and lifestyle data to generate personalized skincare recommendations.
- The user uploads a facial image.
- The user answers a structured lifestyle questionnaire.
- The frontend sends all data to the FastAPI backend.
- The image is resized and normalized using Pillow.
- MobileNetV2 predicts the acne condition and confidence score.
- TF-IDF retrieves relevant dermatology content.
- Llama 3 generates a detailed skincare routine.
- The backend returns a structured JSON response.
- The frontend displays routines, recommendations, and supporting explanations.
- The user can ask follow-up questions through the AI chat assistant.
AcneSol uses a decoupled deployment architecture.
- Backend deployed on Render
- Frontend deployed on Vercel
- Environment variables used for API configuration
- Memory-optimized model loading for low-resource hosting
- Lazy loading for frontend pages and components
- Weights-only model loading to reduce RAM usage
- TF-IDF retrieval for lightweight RAG
- Dynamic API URLs using environment variables
- Cached model and retriever initialization
AcneSol/
├── api/ # FastAPI application and endpoints
├── models/ # Trained MobileNetV2 model files
├── rag/ # TF-IDF knowledge base and retrieval logic
├── services/ # LLM and recommendation services
├── frontend/ # React application
├── assets/ # Images and static resources
├── requirements.txt # Python dependencies
└── README.md
- The system provides educational guidance, not medical diagnosis.
- Results depend on image quality, lighting, and user responses.
- Recommendations may not replace professional dermatological consultation.
- Support for additional skin conditions
- Multi-language recommendations
- Progress tracking and routine history
- Ingredient compatibility analysis
- Mobile application support
AcneSol is an AI-powered educational tool and does not provide medical diagnosis or treatment. Users should consult a qualified dermatologist for persistent or severe skin concerns.
❤️ Built by Vani Rudra.