Henishma commited on
Commit
9c35d25
·
verified ·
1 Parent(s): 2c14c44

Create README.md

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