PCS← Back to projects

Multimodal AI · Case study

Hate & Threat Detection in Forensics

A reproducible, image-centric forensic pipeline that distinguishes embedded text, associated message context, and image-only evidence before producing a traceable case-level decision record.

Forensic workflow showing evidence intake, parallel visual, OCR, and contextual analysis, weighted fusion, and an auditable decisionMultimodal AI

Project overview

Hate & Threat Detection in Forensics

A reproducible, image-centric forensic pipeline that distinguishes embedded text, associated message context, and image-only evidence before producing a traceable case-level decision record.

3 signalsimage, OCR, and associated-message evidence fused
PythonOpenCLIPDeBERTa v3 zero-shotTesseract OCRTransformersWeighted score fusionCSV evidence logspytest
Context
Multimodal digital forensics
Role
Author and developer
Evidence
Image, OCR, and associated SMS text
Output
Fused decision CSV with source scores
Paper
arXiv:2604.08609 (2026)

The problem

Forensic meaning is often split across several evidence sources

A single image can contain visual symbols, embedded text, and surrounding language that change the interpretation of a case. A single-model decision can miss this context and make it difficult for an analyst to understand which evidence influenced the result.

The system

Specialized analysis before transparent score fusion

The pipeline first determines whether the image contains embedded text, nearby message context, both, or neither. It then routes only the available modalities through OpenCLIP and DeBERTa before preserving source scores in the final output.

Compact forensic evidence workflow showing image and message intake, parallel OpenCLIP, OCR, and contextual SMS analysis, image-only or multimodal routing, weighted fusion, and an auditable decision record
Available signals are fused with explicit weights: image 1.0, associated-message text 1.2, and OCR text 1.0. Missing modalities receive zero weight.

What I built

A reproducible pipeline built for analyst inspection

01

Created source-aware routing for visual evidence, OCR-derived text, and associated language.

02

Applied OpenCLIP-based visual scoring and DeBERTa-based language analysis within one controlled workflow.

03

Implemented score-level fusion across multiple evidence signals without hiding the contributing sources.

04

Added CSV evidence logging so cases, model outputs, and fused assessments can be inspected after a run.

05

Structured the project for command-line execution, repeatable experiments, and regression testing.

06

Documented the research system and connected the public implementation to the paper.

Quality and evaluation

Traceability supports both error analysis and responsible use

The workflow keeps modality-specific outputs available for error analysis instead of presenting only a final label.

The system is research software that supports forensic review. Its assessments require human interpretation and should not be treated as autonomous legal or investigative conclusions.

Technology

PythonOpenCLIPDeBERTa v3 zero-shotTesseract OCRTransformersWeighted score fusionCSV evidence logspytest

Evidence

Read the paper and inspect the reproducible pipeline

PaperDetection of Hate and Threat in Digital Forensics: A Case-Driven Multimodal ApproachSourceReproducible pipeline, run order, and tests on GitHub