File size: 1,362 Bytes
9c35d25 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
---
language:
- en
---
Source: CrisisMMD dataset (Alam et al., 2017)
✅Original Labels (8 classes from annotations):
Infrastructure and utility damage
Vehicle damage
Rescue, volunteering, or donation efforts
Affected individuals
Injured or dead people
Missing or found people
Other relevant information
Not humanitarian
✅Label Preprocessing (Class Merging):
Vehicle damage merged into Infrastructure and utility damage
Missing or found people merged into Affected individuals
Not humanitarian retained as a separate class
Removed very low-frequency categories (e.g., "Missing or found people" as a separate class)
✅Final Label Set (5 classes total):
Infrastructure and utility damage
Rescue, volunteering, or donation efforts
Affected individuals
Injured or dead people
Not humanitarian
✅Multimodal Consistency:
Selected only those posts where text and image annotations matched
Resulted in a total of 8,219 consistent samples:
Train set: 6,574 posts
Test set: 1,644 posts
✅ Preprocessing Done Text:
Tokenized using BERT tokenizer (bert-base-uncased)
Extracted input_ids and attention_mask
Image:
Processed using ResNet-50
Extracted 2048-dimensional image features
The preprocessed data was saved in PyTorch .pt format:
train_human.pt and test_human.pt
Each contains: input_ids, attention_mask, image_vector, and label |