Abstract
Social media platforms like Twitter offer a wealth of real-time data for situational awareness, yet extracting actionable intelligence is challenging due to the scarcity of GPS metadata and the high volume of noisy, multilingual content. This paper introduces a real-time support platform designed to detect and geolocate events by processing live Twitter streams. The system integrates language filtering, lexical normalization, and a Multinomial Naive Bayes classifier to estimate tweet locations from text alone. By treating the world as a grid and learning regional linguistic patterns, the platform allows users to visualize event clusters on an interactive map with dynamic confidence thresholds.
Introduction
Real-time situational awareness is critical for monitoring events such as traffic congestion, product launches, or natural disasters. Twitter serves as a primary source for this data, but two major hurdles exist: missing metadata and the sheer scale of noise. Less than 1% of tweets contain explicit GPS "geotags," and the stream is a "firehose" of slang, abbreviations, and multiple languages. While existing tools like Ushahidi facilitate manual reporting, they lack integrated Natural Language Processing (NLP) modules for automated, high-volume data filtering and geolocation. This research bridges the gap by developing a platform that automates the pipeline from raw tweet ingestion to mapped, high-confidence event notifications.
System Architecture and Methods
The platform employs a four-stage pipeline to transform raw data into actionable intelligence:
- Querying: Users define keywords to pull live streams from the Twitter Streaming API.
- Language Filtering: The system utilizes
langid.py, a fast Naive Bayes classifier, to isolate English messages from the global stream. - Lexical Normalization: An optional dictionary-based step converts "noisy" tokens (e.g., "soooo" to "so") into standard forms, improving readability and downstream processing.
- Probabilistic Geolocation: The core innovation involves a Multinomial Naive Bayes classifier trained on approximately 1 million geotagged tweets. The world is discretized into 0.1-degree latitude/longitude cells. The model learns local dialects and regional terms (e.g., "jawn" in Philadelphia) to predict the origin cell of non-geotagged tweets.
The user interface (Figure 1) provides a real-time map visualization where event clusters are displayed. A key feature is the "prediction accuracy threshold" slider, which allows users to balance recall and precision by filtering out low-confidence geolocation guesses.
Experimental Results
The system's performance was evaluated using a user-level geolocation dataset focused on the continental United States. The researchers found that the choice of features significantly impacts model performance.
As shown in Figure 2, prediction accuracy peaks at approximately 37% when using around 36,000 features (words) selected via Information Gain. Beyond this point, accuracy begins to decline, suggesting that rare or idiosyncratic terms introduce more noise than predictive signal. The system successfully integrates these NLP modules into a loosely coupled, asynchronous architecture, ensuring the front-end map updates in real-time without performance degradation.
Discussion and Future Work
While the platform demonstrates the feasibility of text-based geolocation for event detection, several areas for improvement remain. The current lexical normalization relies on simple dictionary lookups; future iterations will explore context-sensitive normalization to distinguish between homographic slang and coordinates. Additionally, the authors plan to implement query expansion to capture "noisy" variants of search terms (e.g., "earthquak" for "earthquake"). Finally, moving toward a hybrid model that combines message-level text analysis with historical user location data could further enhance geolocation precision.
Summary updated