Disaster Tweet Classification

Feb 27, 2026 · 1 min read
projects

A binary text classification pipeline that distinguishes real disaster-related tweets from casual ones using the Kaggle Disaster Tweets dataset of 7,613 pre-labelled posts. The workflow covers text preprocessing (lowercasing, URL/mention removal, stop-word removal, lemmatisation), feature extraction with TF-IDF, baseline comparison between Logistic Regression and Linear SVC, and hyperparameter tuning via GridSearchCV, reaching 83% accuracy after tuning.

The project also includes an honest error analysis: the model handles explicit disaster keywords and factual, news-like language well, but struggles with figurative language, sarcasm, and short tweets where context is doing most of the work. This bag-of-words ceiling motivates the natural next step toward word embeddings or transformer-based models like BERTweet.

Built locally in VS Code as part of Masterschool’s NLP module.

Annelize Krause
Authors
Data Analyst
Data analyst with a commercial law degree, a hands-on operations background, and full-time data analytics training completed in 2026. I work AI-native, turning messy operational data into analysis-ready datasets and dashboards people actually use, with a compliance-aware lens few analysts bring.