TL;DR
In the critical early hours of a humanitarian crisis, quickly extracting quantitative data (such as the number of people displaced or tons of aid needed) from unstructured reports is vital for saving lives. This paper introduces a newly annotated dataset of over 4,300 humanitarian quantities and a custom NLP pipeline that leverages dependency parsing to accurately extract numbers and their associated units. The open-source model significantly outperforms existing baselines, particularly in reports from specific regions like the Dominican Republic and various African nations.
What Problem Does This Paper Address?
During a humanitarian emergency, the first 24 to 72 hours are critical for response coordination. Decision-makers rely heavily on "secondary data"—unstructured text documents like news articles, situation reports, and rapid assessments—to understand the scale of a crisis.
While current Natural Language Processing (NLP) platforms can classify qualitative themes (e.g., identifying that a paragraph discusses "WASH" or "Shelter"), they lack open-source, traceable tools to extract quantitative metrics (e.g., "2,946 people affected"). Closed-source large language models (LLMs) are sometimes used, but their high cost and opaque training data make them less ideal for evidence-based, accountable humanitarian action. The authors tackle this gap by creating a dedicated dataset and a transparent, rule-based extraction pipeline.
Methods
The authors design a multi-stage NLP pipeline using the spaCy library:
- Number Extraction: Combines spaCy's Named Entity Recognition (NER) for numerical types (cardinals, quantities, money, percentages) with a custom
EntityRulerto filter out irrelevant numbers (like dates or page numbers) and standardize formats. - Unit Extraction: Instead of assuming the unit is simply the word immediately following a number, the pipeline analyzes the sentence's dependency parsing tree. It identifies the noun phrase subtree containing the number, strips out the number itself, and isolates the candidate unit.
- Filtering: To boost precision, the authors implement a heuristic that discards any extracted numbers that fail to link to a valid predicted unit, effectively filtering out false-positive number detections from the first stage.
Datasets
The study introduces a newly annotated subset derived from HumSet, a massive multilingual collection of humanitarian crisis documents (2018–2021).
- From over 90,000 raw English entries, the authors filtered and sampled 780 unique excerpts stratified across different sectors and countries.
- Three domain experts annotated this dataset, yielding 4,352 detailed quantity annotations across six labels: Number, Unit, Modifier, and three event types (EventP for people-impacting events, EventA for assistance, and EventO for others).
Key Insights and Ideas
- Context is King: Extracting a number alone is useless without its unit and modifier. Interestingly, 11% of numbers in the dataset don't have a direct unit because multiple numbers often share a single unit token in complex sentences.
- Syntactic Trees Beat Proximity: Humanitarian text is messy. By using dependency parsing trees, the pipeline can capture non-contiguous relationships where words or punctuation separate a number from its unit, outperforming simple distance-based baselines.
- Geographic and Sector Variability: The pipeline's performance gains weren't uniform. It excelled in well-documented sectors like Shelter and WASH (Water, Sanitation, and Hygiene) but struggled more in Nutrition and Food Security, highlighting how domain-specific language patterns affect information extraction.
Key Results
- Number Extraction: The proposed pipeline achieved a strict F1-score of 0.79 (0.83 fuzzy) without token concatenation, and a recall of up to 0.91 under fuzzy matching when consecutive numeral tokens were concatenated.
- Unit Extraction: The final model ("Filter & discard numbers w/o predicted units") achieved an F1-score of 0.60 across all matches (and 0.71 when evaluated strictly on correctly identified numbers).
- Precision vs. Span Length: While a naive subtree approach frequently found the correct unit, it captured too much text, resulting in an average character distance of 55 characters from the true unit. The authors' filtered approach slashed this distance to just 14 characters, making the output far more precise and usable.
- Regional Improvements: The model showed an average F1 improvement of 0.16 over the baseline across all countries, peaking at a 0.42 point improvement for documents concerning the Dominican Republic.
Limitations and Future Work
- Sector Imbalances: The pipeline requires further refinement for complex categories like food security and nutrition, where quantities are often expressed in more abstract or varied terms.
- Under-represented Locales: Performance was lower or harder to verify in regions with fewer documents in the training set, suggesting a need for targeted data collection in under-represented areas.
- Semantic Grouping: The current system relies heavily on linguistic syntax. The authors suggest that future work could integrate semantic language models (like a fine-tuned HumBERT) to group diverse unit terms (e.g., "households", "families", "individuals") conceptually rather than just syntactically.
Summary updated