Skip to content
← All projects

Social intelligence · Speech · NLP · Vision

DzInsight

A local-first social intelligence platform for Algerian content across five platforms: Darija transcription, sentiment, entities, video vision, RAG reports.

Status
Completed
Role
Master's capstone, built end to end
Year
2026
Code
Private repository

Overview

DzInsight is the platform I built for my Master's capstone, between February and June 2026 (534 commits). It downloads Algerian content from TikTok, Instagram, YouTube, Facebook and Telegram, transcribes speech, reads comments and frames, measures sentiment and produces reports you can question in a chat.

Problem

Algerian conversations online happen in Darija: in Arabic script and Latin letters, in speech as much as in text, across five platforms. Tools built for Modern Standard Arabic, French or English miss most of it, and sending this data to outside services is often not acceptable.

Objectives

  • Analyse videos, profiles and comments from five platforms in one place.
  • Transcribe Darija speech and classify Darija sentiment.
  • Extract what appears in video frames.
  • Generate reports, and answer questions about them with retrieval.
  • Keep a local fallback for the language model.

My role and contributions

Master's capstone, built end to end

  • Designed and built the full system: back end, models, front ends and reports.
  • Platform analyzers for TikTok, Instagram, YouTube (videos, profiles, live streams), Facebook and Telegram.
  • Speech, sentiment, entity and vision pipelines.
  • RAG report assistant and LLM fallback chain.

Technical architecture

Drawn from the project's real components, in the order data moves through them.

  1. Discovery

    YouTube Data API · SerpAPI · Apify

  2. Platform analyzers

    • TikTok
    • Instagram
    • YouTube
    • Facebook
    • Telegram
  3. Understanding

    • faster-whisper
    • Sentiment
    • NER
    • YOLO · DeepFace · EasyOCR
  4. FastAPI + JWT

    SQLite storage

  5. LLM report

    Groq Llama · Ollama fallback

  6. RAG chat · PDF

    MiniLM + MMR · BM25 fallback

Technology stack

PythonFastAPISQLiteReact 19ViteTailwind CSSfaster-whisperTransformersYOLODeepFaceEasyOCRMediaPipesentence-transformersGroqOllama

Implementation details

Darija transcription
faster-whisper with a Darija fine-tune of Whisper large-v3-turbo (anaszil/whisper-large-v3-turbo-darija), selected when Arabic is detected; standard Whisper large-v3-turbo handles French and English.
Sentiment
DziriBERT sentiment (alger-ia/dziribert_sentiment), CAMeLBERT-mix sentiment and multilingual XLM-R sentiment for comments and transcripts.
Entities
Named-entity extraction modules per platform (core/ner.py) feed the reports.
Video vision
YOLO object detection, DeepFace face and emotion analysis, EasyOCR for on-screen text and MediaPipe.
RAG report assistant
paraphrase-multilingual-MiniLM-L12-v2 embeddings with cosine similarity and MMR, and a BM25 fallback when embeddings are unavailable.
LLM chain
Llama 3.3 70B and Llama 3.1 8B on Groq, with a local Ollama Llama 3.2 3B fallback.
Platform
FastAPI with JWT authentication and SQLite, separate React 19 client and admin apps, and PDF reports with proper Arabic text shaping (uharfbuzz).

Screenshots and demonstrations

Screenshots for this project are being prepared.

Results and evaluation

  • Delivered as a working Master's capstone covering all five platforms.
  • No formal benchmark is published.

Limitations

  • SQLite storage and a single-node deployment: built for one analyst team, not for scale.
  • Depends on third-party platform access and APIs that can change.
  • Private repository.

Future improvements

  • Release the Darija sentiment and RAG modules as standalone public tools.
  • Evaluate the sentiment models on a labelled Darija test set.

Next project

NAJDA