Skip to content

Umme-Farwa/Brand_Reputation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KIKO Milano AI Reputation Monitoring System

Project Overview

This repository contains a fully functional, modular Multi-Agent AI System designed to monitor, analyze, and quantify the digital brand reputation of KIKO Milano. By mining unstructured multi-platform public discourse (Trustpilot and YouTube), the system automatically processes multilingual feedback, evaluates sentiment polarity, detects specific reputational threat categories, and generates actionable analytical dashboards for strategic decision-making.

Key Objectives

  • Multi-Platform Data Ingestion: Automating large-scale extraction of structured reviews from Trustpilot (via Apify) and public comments from YouTube (via YouTube Data API).
  • Multilingual Support & Translation: Automatically detecting European languages (Italian, French, German, Spanish, Dutch) and translating them to English for standardized processing.
  • Contextual Threat Detection: Identifying high-risk reputational threats including Fraud & Scam, Product Quality, Customer Service, and Health & Safety concerns.
  • Quantitative Validation & Reporting: Evaluating pipeline accuracy through precise empirical metrics and outputting visual trend dashboards[cite: 2].

Key Features

  • Fully automated multi-agent architecture orchestrated sequentially.
  • YouTube Data API & Trustpilot structured review integration.
  • Multilingual review translation with automated language identification.
  • Deep sentiment analysis pipeline using customized polarity scales.
  • Contextual rule-based threat detection with robust negation handling.
  • Automated report generation, validation metrics, and temporal analysis graphs.

Multi-Agent Architecture & Flow

The system runs on an agentic workflow orchestrated sequentially to manage data pipeline execution without duplication[cite: 2].

          ┌──────────────────────────────┐
          │      1. COLLECTOR AGENT      │ <── Ingests Trustpilot (Apify) & YouTube API
          └──────────────┬───────────────┘
                         │ ──> Generates: kiko_trustpilot_raw.xlsx & kiko_youtube_raw.csv
                         v
          ┌──────────────────────────────┐
          │        2. PARSER AGENT       │ <── Cleans text, detects language & translates
          └──────────────┬───────────────┘
                         │ ──> Generates Unified Format: kiko_final_integrated.csv
                         v
          ┌──────────────────────────────┐
          │    3. THREAT DETECTOR AGENT  │ <── Keyword mapping, sentiment filtering & rules
          └──────────────┬───────────────┘
                         │ ──> Generates: kiko_threat_report.csv
                         v
          ┌──────────────────────────────┐
          │      4. VALIDATION AGENT     │ <── Calculates precision & temporal trend lines
          └──────────────┬───────────────┘
                         │ ──> Generates: validation_metrics.txt & temporal_threat_analysis.png
                         v
          ┌──────────────────────────────┐
          │       5. REPORTER AGENT      │ <── Compiles donut charts & sentiment distribution
          └──────────────────────────────┘
                           ──> Generates Final Dashboard: kiko_reputation_report.png

Project Architecture & Roles

Agent Responsibility
Collector Agent Connects to Apify and YouTube Data API to harvest raw feedback while preserving critical metadata (timestamps, rating scores).
Parser Agent Uses LangDetect and Deep Translator to normalize text, remove duplicate entries, and assign base sentiment ratings using TextBlob.
Threat Detector Agent Evaluates contextual rule-based risks (e.g., mapping expressions regarding skin irritation to Health & Safety or delivery issues to Customer Service).
Validation Agent Tracks statistical validity, performing precision-oriented evaluations on flagged anomalies over time.
Reporter Agent Generates data-driven charts converting raw textual telemetry into visual executive assets.
Orchestrator Central controller that cleans legacy data caches and automates the complete pipeline sequentially.

Empirical Evaluation & Outputs

The system delivers a highly reliable baseline for threat classification, verified through manual auditing metrics.

Statistical Performance Summary

  • Total Reviews Analyzed: 658
  • Total Threats Flagged: 69
  • True Positives (Verified Risks): 60
  • System Precision Score: 86.96%

Threat Categories Tracked

The rule-based threat agent classifies data patterns with contextual negation handling under these dimensions:

  • Health & Safety Threats (e.g., skin irritation, allergic reactions)
  • Fraud & Scam Threats (e.g., stolen orders, fake profiles)
  • Product Quality Threats (e.g., damaged items, broken containers)
  • Customer Service Threats (e.g., refund issues, poor support channels)

Executed Pipeline Analytics (Output Graphs)

Below are the actual visual insights generated automatically by the pipeline and saved directly under the reports/ folder:

1. KIKO Brand Reputation Dashboard Report

This dashboard illustrates the threat distribution donut chart, average sentiment ratings mapped on a 1–5 scale, and cross-platform analysis between Trustpilot and YouTube.

KIKO Brand Reputation Report

2. Temporal Threat Analysis & Volume Trends

This chart tracks the chronological frequency and volume patterns of incoming reviews, highlighting specific timeline spikes where potential reputational threats were flagged.

Temporal Threat Analysis

Note: The model validation data, raw logs, and textual distribution summaries are documented concurrently inside reports/validation_metrics.txt.


⚙️ Quick Start Guide (Execution Steps for Evaluation)

Follow these precise instructions to provision the environment, resolve system dependencies, and execute the multi-agent orchestration layer.

Prerequisites

  • Python 3.8 or higher installed globally.
  • Internet access for real-time translation and dependency fetching.

Step 1: Clone the Repository

Open a terminal workspace or command prompt window and run:

git clone [https://github.com/Umme-Farwa/Brand_Reputation.git](https://github.com/Umme-Farwa/Brand_Reputation.git)
cd Brand_Reputation

Step 2:Initialize Virtual Environment

On Windows

python -m venv env
.\env\Scripts\activate

macOS / Linux

python3 -m venv env
source env/bin/activate

Install Project Dependencies

Install all dependencies:

pip install -r "Src/kiko agents/Requirements.txt"

IMPORTANT NOTE: Setup YouTube API Credentials Before running the Collector Agent, you must configure your personal Google Cloud Developer credentials for the YouTube Data API:

Obtain an API key from the Google Cloud Console.

Enable the YouTube Data API v3 for your project.

Open Src/kiko agents/kiko_collector_agent.py and replace the placeholder API key variable with your own credentials:

MY_KEY = "YOUR_ACTUAL_API_KEY_HERE"

Run the Multi-agent Pipeline

python "Src/kiko agents/Main.py"

The orchestrator (Main.py) automatically executes:

  1. Parser Agent
  2. Threat Detector Agent
  3. Validation Agent
  4. Reporter Agent

Technologies Used

  • Python (Core Environment)
  • Pandas (Data Engineering & Integration)
  • Matplotlib & Seaborn (Statistical Data Visualizations)
  • TextBlob (Sentiment Polarity Extraction)
  • Deep Translator & LangDetect (Language Processing Core)
  • YouTube Data API (Public Video Insights Extractor)

About

An AI-driven multi-agent system designed to monitor, analyze, and track the digital brand reputation and contextual threats for KIKO Milano using data from Trustpilot and YouTube.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages