An end‑to‑end NLP system for detecting cyberbullying in Telugu social media comments using BERT‑based transformer models, with support for Telugu script, Tenglish, and code‑mixed Telugu–English text.
Python
2
7 commits
updated Mar 28, 2026
An end-to-end NLP system for detecting cyberbullying in Telugu social media comments using Transformer-based language models.
Cyberbullying and abusive language have become a significant problem on social media platforms. While many automated moderation systems exist for English, regional languages such as Telugu remain underrepresented in NLP research and moderation tools.
Telugu social media content presents unique challenges:
This project develops a machine learning pipeline for detecting cyberbullying in Telugu comments, combining modern Transformer-based NLP models with a custom curated dataset and an interactive prediction interface.
The system aims to assist in automated moderation and toxicity detection for Telugu digital platforms.
The primary goals of this project are:
The system follows a modular NLP pipeline:
Raw Social Media Comments
│
▼
Data Cleaning & Normalization
│
▼
Dataset Balancing
│
▼
Train / Validation / Test Split
│
▼
Transformer Model Training
│
▼
Model Evaluation
│
▼
Real-Time Prediction Interface
The preprocessing pipeline standardizes noisy social media text using:
Social media datasets often contain more non-toxic comments than toxic ones.
To prevent bias toward the majority class, the dataset is balanced using controlled undersampling techniques.
Multiple Transformer models are fine-tuned for binary classification:
Toxic (Cyberbullying)
Non-Toxic
Fine-tuning uses:
The project benchmarks several BERT-family transformer models:
| Model | Description |
|---|---|
| IndicBERT | Pretrained on multiple Indic languages |
| IndicBERTv2 | Improved Indic multilingual transformer |
| Multilingual BERT (mBERT) | Trained on 100+ languages |
| DistilBERT | Lightweight distilled version of BERT |
| XLM-RoBERTa | Large multilingual transformer trained on massive corpora |
| BERT-Mini / Tiny | Compact models for faster inference |
These models allow comparison between:
Model performance is evaluated using several classification metrics:
These metrics provide a balanced evaluation for binary toxicity detection tasks.
Model performance and training behaviour were analyzed using multiple visualizations.
A Streamlit-based application is provided for interactive predictions.
The interface supports:
This allows researchers and developers to experiment with cyberbullying detection in real time.
cyberbullying-detection-in-telugu
│
├── app.py # Streamlit application entry point
├── README.md # Project documentation
├── LICENSE
│
├── utils # Utility modules
│ ├── model_utils.py
│ ├── data_balancing.py
│ ├── data_summary.py
│ ├── model_evaluation.py
│ └── recent_words.txt
│
└── images # Documentation images
├── proposed_system.png
├── training_loss.png
└── confusion_matrices.png
Note:
Dataset and training scripts are temporarily excluded from this repository due to an ongoing research publication.
# Clone repository
git clone https://github.com/jayavanth18/cyberbullying-detection-in-telugu.git
cd cyberbullying-detection-in-telugu
# Create virtual environment (Windows)
python -m venv venv
# Activate environment
venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run application
streamlit run app.py
The dataset used in this project is not included in this repository.
Reason:
After publication, the dataset and additional training utilities will be made available.
This project is licensed under the MIT License.
⭐ If you found this repository useful, consider giving it a star!
An end‑to‑end NLP system for detecting cyberbullying in Telugu social media comments using BERT‑based transformer models, with support for Telugu script, Tenglish, and code‑mixed Telugu–English text.
Python
2
7 commits
updated Mar 28, 2026
An end-to-end NLP system for detecting cyberbullying in Telugu social media comments using Transformer-based language models.
Cyberbullying and abusive language have become a significant problem on social media platforms. While many automated moderation systems exist for English, regional languages such as Telugu remain underrepresented in NLP research and moderation tools.
Telugu social media content presents unique challenges:
This project develops a machine learning pipeline for detecting cyberbullying in Telugu comments, combining modern Transformer-based NLP models with a custom curated dataset and an interactive prediction interface.
The system aims to assist in automated moderation and toxicity detection for Telugu digital platforms.
The primary goals of this project are:
The system follows a modular NLP pipeline:
Raw Social Media Comments
│
▼
Data Cleaning & Normalization
│
▼
Dataset Balancing
│
▼
Train / Validation / Test Split
│
▼
Transformer Model Training
│
▼
Model Evaluation
│
▼
Real-Time Prediction Interface
The preprocessing pipeline standardizes noisy social media text using:
Social media datasets often contain more non-toxic comments than toxic ones.
To prevent bias toward the majority class, the dataset is balanced using controlled undersampling techniques.
Multiple Transformer models are fine-tuned for binary classification:
Toxic (Cyberbullying)
Non-Toxic
Fine-tuning uses:
The project benchmarks several BERT-family transformer models:
| Model | Description |
|---|---|
| IndicBERT | Pretrained on multiple Indic languages |
| IndicBERTv2 | Improved Indic multilingual transformer |
| Multilingual BERT (mBERT) | Trained on 100+ languages |
| DistilBERT | Lightweight distilled version of BERT |
| XLM-RoBERTa | Large multilingual transformer trained on massive corpora |
| BERT-Mini / Tiny | Compact models for faster inference |
These models allow comparison between:
Model performance is evaluated using several classification metrics:
These metrics provide a balanced evaluation for binary toxicity detection tasks.
Model performance and training behaviour were analyzed using multiple visualizations.
A Streamlit-based application is provided for interactive predictions.
The interface supports:
This allows researchers and developers to experiment with cyberbullying detection in real time.
cyberbullying-detection-in-telugu
│
├── app.py # Streamlit application entry point
├── README.md # Project documentation
├── LICENSE
│
├── utils # Utility modules
│ ├── model_utils.py
│ ├── data_balancing.py
│ ├── data_summary.py
│ ├── model_evaluation.py
│ └── recent_words.txt
│
└── images # Documentation images
├── proposed_system.png
├── training_loss.png
└── confusion_matrices.png
Note:
Dataset and training scripts are temporarily excluded from this repository due to an ongoing research publication.
# Clone repository
git clone https://github.com/jayavanth18/cyberbullying-detection-in-telugu.git
cd cyberbullying-detection-in-telugu
# Create virtual environment (Windows)
python -m venv venv
# Activate environment
venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run application
streamlit run app.py
The dataset used in this project is not included in this repository.
Reason:
After publication, the dataset and additional training utilities will be made available.
This project is licensed under the MIT License.
⭐ If you found this repository useful, consider giving it a star!