All projects

Case study 08 / Data & ML

Social listening platform

A pipeline that collects Facebook and Instagram comments across 8+ cosmetics brands, tags each one with a fine-tuned BERT classifier, and reports the results in a dashboard.

Role
AI Engineer / Architect: pipeline, model, dashboard
Timeline
Enterprise project · TODO: dates
Stack
Python · Graph API · PostgreSQL · BERT (PyTorch) · FastAPI / Flask · Docker

01Problem

Marketing and customer-care teams across 8+ cosmetics brands had no systematic way to monitor high volumes of Facebook and Instagram comments. Delivery complaints, pricing questions and negative sentiment were hard to spot before they escalated.

02Solution & architecture

  • Collection: one scraper pulls comments from each brand's Facebook and Instagram Graph API.
  • Storage: comments are normalized into a PostgreSQL schema organized per brand and per platform.
  • Classification: a fine-tuned BERT model gives each comment one tag; its 11 classes map to a 9-category business taxonomy (FAQ, availability, delivery, pricing, competition, engagement, tone, filter, positive/negative).
  • Reporting: a dashboard with cross-brand analysis and exportable PDF reports.
Facebook and Instagram Graph API comments flow through a unified scraper into PostgreSQL stored per brand and platform, then a BERT classifier maps 11 model classes to 9 business categories, feeding a dashboard with PDF reports.
Comments flow from both platforms into one schema, get a single business tag, and surface in the dashboard.

03Demo

04Results

  • 8+

    cosmetics brands monitored

  • 2platforms

    Facebook and Instagram in one schema

  • 11 → 9

    model classes mapped to business categories, one tag per comment

05What I'd improve next

  • Platform signal: keep comment threading and reaction types, which the shared schema currently drops.
  • Alerts: notify customer care when delivery complaints or negative comments spike for a brand.
  • Retraining loop: let reviewers correct tags in the dashboard and feed those corrections back into fine-tuning.

Enterprise project. The demo is a recording of the internal system, shared with George's approval; confidential details beyond what it shows are not published.