๐ง NeuroLogic '26 โ NLP Datathon Submission
Three challenges. Three optimized pipelines. One architecture built to win.
๐ Table of Contents
- ๐ Performance Results
- ๐ฌ Approach & Methodology
- ๐ก Innovation & Creativity
- ๐ Real-World Impact & Utility
- โ๏ธ Documentation & Reproducibility
- ๐ Repository Structure
๐ Section 1 ยท Performance Results
All models were evaluated on an 80/20 Stratified Train-Validation Split to ensure class-balanced, fair assessment. Metrics are reported exactly as specified per challenge.
๐ Consolidated Score Dashboard

Challenge-by-Challenge Breakdown
๐จ Challenge 1 โ Disaster Tweet Classification
Objective: Binary classification of social media text to rapidly identify real-world disaster events for emergency response.
Reported Metric: Macro F1-Score
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ Macro F1-Score โ 0.8341 โ
โ โ
โ Split : 80/20 Stratified Train-Validation โ
โ Classes : Binary (Real Disaster / Not Disaster) โ
โ Handling: class_weight='balanced' (no SMOTE) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Validation Proof:

๐ฐ Challenge 2 โ Fake News Detection
Objective: Classification of news articles as reliable or misleading based on combined title and body-text semantic analysis.
Reported Metric: Accuracy
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ Validation Accuracy โ 0.9967 โ
โ 5-Fold CV Accuracy โ 0.9981 โ Cross-validated โ
โ โ
โ Split : 80/20 Stratified Train-Validation โ
โ CV Method : 5-Fold Stratified Cross-Validation โ
โ Classes : Binary (TRUE / FALSE) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
Cross-validation was performed specifically to rule out overfitting and prove statistical stability across all data splits.
Validation Proof:

Cross-Validation Proof (5-Fold):

๐ Challenge 3 โ Multilingual Toxic Comment Classification
Objective: Binary classification to identify toxicity across mixed English and Hindi text using offline character-level boundary detection.
Reported Metric: ROC-AUC
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ Mean ROC-AUC Score โ 0.9855 โ
โ โ
โ Split : 80/20 Stratified Train-Validation โ
โ Languages: English + Hindi (code-mixed) โ
โ Method : Offline โ zero external API calls โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Validation Proof:

๐ฌ Section 2 ยท Approach & Methodology
All three challenges share a unified architectural philosophy, with targeted adaptations per task.
Core Architecture (Shared Across All Challenges)
Raw Text
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Text Preprocessing โ โ Lowercasing, noise removal,
โ (preprocess.py) โ URL stripping, normalization
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ TF-IDF Vectorization โ โ Converts cleaned text into
โ (Word N-gram or Char N-gram) โ high-dimensional sparse features
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Soft-Voting Ensemble โ โ Combines probabilistic outputs
โ LightGBM + LR + Naive Bayes โ from multiple diverse learners
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
Prediction (Binary Classification)
Per-Challenge Methodology
| Component |
Challenge 1 |
Challenge 2 |
Challenge 3 |
| Vectorizer |
Word N-gram TF-IDF |
Word N-gram TF-IDF |
Char N-gram TF-IDF |
| Max Features |
15,000 |
20,000 |
25,000 |
| Primary Model |
LightGBM |
LightGBM (300 trees) |
LightGBM |
| Ensemble |
LightGBM + LR + NB |
LightGBM (solo) |
LightGBM + LR |
| Ensemble Type |
Soft-Voting |
โ |
Soft-Voting |
| Class Imbalance |
class_weight='balanced' |
N/A |
N/A |
| Validation |
80/20 Stratified |
80/20 + 5-Fold CV |
80/20 Stratified |
Preprocessing Pipeline (src/preprocess.py)
A single, reusable preprocessing module is shared across all three challenges to ensure consistency. Key operations:
- Lowercasing and Unicode normalization
- URL, mention, and hashtag removal
- Punctuation and whitespace normalization
- Preserves character-level patterns needed for Challenge 3's char N-gram model
๐ก Section 3 ยท Innovation & Creativity
Innovation 1 โ Soft-Voting Ensemble with Orthogonal Learners
Rather than relying on a single model, Challenges 1 and 3 deploy a Soft-Voting Ensemble that combines learners with fundamentally different inductive biases:
- LightGBM โ Captures complex non-linear feature interactions via gradient boosting
- Logistic Regression โ Provides strong linear baseline, regularizes the ensemble
- Multinomial Naive Bayes (Ch-1) โ Excels on sparse, high-dimensional text data
The soft vote averages predicted probabilities โ not hard class labels โ meaning the ensemble benefits from each model's confidence, not just its decision boundary. This approach statistically reduces variance without increasing bias.
Innovation 2 โ Character N-gram TF-IDF for Multilingual Toxicity (Challenge 3)
This is the most architecturally significant decision in the submission. Instead of using a translation API (the naive approach), we use Character-level N-grams with char_wb analyzer and range (2, 5):
- Natively captures Hindi morphological roots and English abbreviations in the same vector space
- Handles Hinglish code-mixing (e.g.,
"yaar tu bahut toxic hai") without any language detection
- Detects phonetic spelling variations and leetspeak that word-level models miss entirely
- Zero latency overhead โ no network call, no API key, no rate limit
This eliminates the need for translation entirely โ a deliberate architectural trade-off that improves latency, privacy, and reliability simultaneously.
Innovation 3 โ Class Imbalance Handled Without Synthetic Data (Challenge 1)
Disaster tweet datasets have significant class imbalance. The common approach is SMOTE (synthetic oversampling), which introduces artificial data points and can skew the decision boundary. Instead, we apply class_weight='balanced' across all ensemble members, which mathematically adjusts loss functions to penalize minority-class errors more heavily โ achieving balanced learning without altering the original data distribution.
Innovation 4 โ Cross-Validation as Proof of Generalization (Challenge 2)
A 5-Fold Stratified Cross-Validation was conducted in addition to the train-validation split โ not because it was required, but because 0.9967 accuracy demands proof it isn't overfitting. The CV accuracy of 0.9981 across all folds confirms the model generalizes consistently. This level of rigor is an intentional design choice.
๐ Section 4 ยท Real-World Impact & Utility
The Problem with State-of-the-Art LLMs for These Tasks
Modern NLP defaults to large transformer models (BERT, GPT, etc.). For the classification tasks in this datathon, that choice introduces:
- ๐ธ High cost โ GPU inference at scale is expensive
- ๐ข High latency โ Seconds per inference, unacceptable for real-time moderation
- ๐ก API dependency โ Failure modes outside your control
- ๐ Privacy risk โ Sending user content to external APIs
Why This Architecture is Production-Ready
| Real-World Requirement |
This Solution |
| Inference latency |
< 10 milliseconds (TF-IDF + LightGBM) |
| Hardware needed |
Standard CPU โ no GPU required |
| Cloud cost |
Free Tier eligible (AWS EC2 t2.micro / Oracle Cloud) |
| Offline capability |
โ
Fully offline โ no internet required at inference |
| RAM requirement |
< 8 GB โ runs on standard laptops and edge devices |
| Multilingual support |
โ
Native โ no translation API for Hindi/English |
| Containerization |
โ
Docker-ready โ stateless, dependency-pinned |
Real-World Deployment Scenarios
- ๐จ Challenge 1 โ Live disaster alert filtering for emergency response systems and social media monitoring dashboards
- ๐ฐ Challenge 2 โ Real-time news feed moderation pipeline for content platforms and fact-checking services
- ๐ Challenge 3 โ Inline comment moderation for Indian social media platforms handling Hindi-English code-mixed content
โ๏ธ Section 5 ยท Documentation & Reproducibility
What Is Included
| Deliverable |
Status |
Location |
| Challenge 1 predictions |
โ
|
outputs/Disaster_no_label.csv |
| Challenge 2 predictions |
โ
|
outputs/FakeNews_no_labels.csv |
| Challenge 3 predictions |
โ
|
outputs/toxic_no_label_evaluation.csv |
| Validation metric screenshots |
โ
|
results/ directory |
| Executive summary visual |
โ
|
results/executive_summary.png |
| Dependency file |
โ
|
requirements.txt |
| Reusable preprocessing module |
โ
|
src/preprocess.py |
Step-by-Step: Reproduce All Results
Prerequisites: Python 3.10+, Git
Step 1 โ Clone the repository
git clone https://github.com/RootDeveloperDS/NeuroLogic26_Submission.git
cd NeuroLogic26_Submission
Step 2 โ Set up virtual environment
Windows: