Kamalan C S

Cyberbullying detection workbench · 2025

SafeText

A deep-learning classifier for offensive text with a full analyst workflow: upload data, preview it, predict, visualise and review performance.

Concept illustration for SafeText

The vision

Give moderators a workbench, not just a model: bulk screening, single-message checks and a clear view of how the model performs.

Problem

Harassment detection tools are black boxes that work on one message at a time.

Solution

A TensorFlow/Keras classifier served from FastAPI, with single-text and bulk CSV prediction endpoints that return confidence scores. A Next.js workbench covers dataset upload, preview, analysis, prediction and performance pages.

Architecture

SafeText architectureCLIENTSEDGE & APISERVICESDATA & EXTERNALNext.js workbenchFastAPI/predict-text · /predict-fileKeras model
  • Next.js workbench to FastAPI
  • FastAPI to Keras model

Engineering highlights

  • Single and batch (CSV) inference endpoints
  • Confidence scores
  • Analyst workflow across six screens