Add README.md
Browse files
README.md
CHANGED
|
@@ -1,112 +1,203 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
-
features:
|
| 4 |
-
- name: incident_id
|
| 5 |
-
dtype: int64
|
| 6 |
-
- name: year
|
| 7 |
-
dtype: int64
|
| 8 |
-
- name: month
|
| 9 |
-
dtype: int64
|
| 10 |
-
- name: day
|
| 11 |
-
dtype: float64
|
| 12 |
-
- name: country_code
|
| 13 |
-
dtype: string
|
| 14 |
-
- name: country
|
| 15 |
-
dtype: string
|
| 16 |
-
- name: region
|
| 17 |
-
dtype: string
|
| 18 |
-
- name: district
|
| 19 |
-
dtype: string
|
| 20 |
-
- name: city
|
| 21 |
-
dtype: string
|
| 22 |
-
- name: un
|
| 23 |
-
dtype: int64
|
| 24 |
-
- name: ingo
|
| 25 |
-
dtype: int64
|
| 26 |
-
- name: icrc
|
| 27 |
-
dtype: int64
|
| 28 |
-
- name: nrcs_and_ifrc
|
| 29 |
-
dtype: int64
|
| 30 |
-
- name: nngo
|
| 31 |
-
dtype: int64
|
| 32 |
-
- name: other
|
| 33 |
-
dtype: int64
|
| 34 |
-
- name: nationals_killed
|
| 35 |
-
dtype: int64
|
| 36 |
-
- name: nationals_wounded
|
| 37 |
-
dtype: int64
|
| 38 |
-
- name: nationals_kidnapped
|
| 39 |
-
dtype: int64
|
| 40 |
-
- name: nationals_detained
|
| 41 |
-
dtype: int64
|
| 42 |
-
- name: total_nationals
|
| 43 |
-
dtype: int64
|
| 44 |
-
- name: internationals_killed
|
| 45 |
-
dtype: int64
|
| 46 |
-
- name: internationals_wounded
|
| 47 |
-
dtype: int64
|
| 48 |
-
- name: internationals_kidnapped
|
| 49 |
-
dtype: int64
|
| 50 |
-
- name: internationals_detained
|
| 51 |
-
dtype: int64
|
| 52 |
-
- name: total_internationals
|
| 53 |
-
dtype: int64
|
| 54 |
-
- name: total_killed
|
| 55 |
-
dtype: int64
|
| 56 |
-
- name: total_wounded
|
| 57 |
-
dtype: int64
|
| 58 |
-
- name: total_kidnapped
|
| 59 |
-
dtype: int64
|
| 60 |
-
- name: total_detained
|
| 61 |
-
dtype: int64
|
| 62 |
-
- name: total_affected
|
| 63 |
-
dtype: int64
|
| 64 |
-
- name: gender_male
|
| 65 |
-
dtype: int64
|
| 66 |
-
- name: gender_female
|
| 67 |
-
dtype: int64
|
| 68 |
-
- name: gender_unknown
|
| 69 |
-
dtype: int64
|
| 70 |
-
- name: means_of_attack
|
| 71 |
-
dtype: string
|
| 72 |
-
- name: attack_context
|
| 73 |
-
dtype: string
|
| 74 |
-
- name: location
|
| 75 |
-
dtype: string
|
| 76 |
-
- name: latitude
|
| 77 |
-
dtype: float64
|
| 78 |
-
- name: longitude
|
| 79 |
-
dtype: float64
|
| 80 |
-
- name: motive
|
| 81 |
-
dtype: string
|
| 82 |
-
- name: actor_type
|
| 83 |
-
dtype: string
|
| 84 |
-
- name: actor_name
|
| 85 |
-
dtype: string
|
| 86 |
-
- name: details
|
| 87 |
-
dtype: string
|
| 88 |
-
- name: verified
|
| 89 |
-
dtype: string
|
| 90 |
-
- name: source
|
| 91 |
-
dtype: string
|
| 92 |
-
- name: esa_source
|
| 93 |
-
dtype: string
|
| 94 |
-
- name: esa_processed
|
| 95 |
-
dtype: string
|
| 96 |
splits:
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
num_bytes: 12807
|
| 102 |
-
num_examples: 20
|
| 103 |
-
download_size: 58984
|
| 104 |
-
dataset_size: 62822
|
| 105 |
-
configs:
|
| 106 |
-
- config_name: default
|
| 107 |
-
data_files:
|
| 108 |
-
- split: train
|
| 109 |
-
path: data/train-*
|
| 110 |
-
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
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
annotations_creators:
|
| 3 |
+
- no-annotation
|
| 4 |
+
language_creators:
|
| 5 |
+
- found
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
license: cc-by-4.0
|
| 9 |
+
multilinguality:
|
| 10 |
+
- monolingual
|
| 11 |
+
size_categories:
|
| 12 |
+
- n<1K
|
| 13 |
+
source_datasets:
|
| 14 |
+
- original
|
| 15 |
+
task_categories:
|
| 16 |
+
- tabular-classification
|
| 17 |
+
- other
|
| 18 |
+
task_ids: []
|
| 19 |
+
tags:
|
| 20 |
+
- africa
|
| 21 |
+
- humanitarian
|
| 22 |
+
- hdx
|
| 23 |
+
- electric-sheep-africa
|
| 24 |
+
- aid-worker-security
|
| 25 |
+
- aid-workers
|
| 26 |
+
- conflict-violence
|
| 27 |
+
- nga
|
| 28 |
+
pretty_name: "Nigeria - Aid Worker Security Database"
|
| 29 |
dataset_info:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
splits:
|
| 31 |
+
- name: train
|
| 32 |
+
num_examples: 79
|
| 33 |
+
- name: test
|
| 34 |
+
num_examples: 19
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
---
|
| 36 |
+
|
| 37 |
+
# Nigeria - Aid Worker Security Database
|
| 38 |
+
|
| 39 |
+
**Publisher:** Humanitarian Outcomes · **Source:** [HDX](https://data.humdata.org/dataset/aid-worker-security-database-nga) · **License:** `cc-by` · **Updated:** 2026-04-10
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## Abstract
|
| 44 |
+
|
| 45 |
+
This dataset shows aid worker security incidents in Nigeria. Annually, the data for the previous year undergoes a verification process. Data for the current year is provisional. For incident descriptions, please download data directly from [www.aidworkersecurity.org](www.aidworkersecurity.org)
|
| 46 |
+
|
| 47 |
+
Each row in this dataset represents discrete events or incidents. Data was last updated on HDX on 2026-04-10. Geographic scope: **NGA**.
|
| 48 |
+
|
| 49 |
+
*Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
|
| 50 |
+
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
## Dataset Characteristics
|
| 54 |
+
|
| 55 |
+
| | |
|
| 56 |
+
|---|---|
|
| 57 |
+
| **Domain** | Conflict and security |
|
| 58 |
+
| **Unit of observation** | Discrete events or incidents |
|
| 59 |
+
| **Rows (total)** | 99 |
|
| 60 |
+
| **Columns** | 46 (30 numeric, 16 categorical, 0 datetime) |
|
| 61 |
+
| **Train split** | 79 rows |
|
| 62 |
+
| **Test split** | 19 rows |
|
| 63 |
+
| **Geographic scope** | NGA |
|
| 64 |
+
| **Publisher** | Humanitarian Outcomes |
|
| 65 |
+
| **HDX last updated** | 2026-04-10 |
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## Variables
|
| 70 |
+
|
| 71 |
+
**Geographic** — `year` (range 2004.0–2026.0), `day` (range 1.0–31.0), `country_code` (NG), `country` (Nigeria), `region` (Borno, Zamfara, Federal Capital Territory) and 7 others.
|
| 72 |
+
|
| 73 |
+
**Temporal** — `month` (range 1.0–12.0).
|
| 74 |
+
|
| 75 |
+
**Demographic** — `gender_male`, `gender_female`, `gender_unknown`.
|
| 76 |
+
|
| 77 |
+
**Outcome / Measurement** — `total_nationals` (range 0.0–46.0), `total_internationals` (range 0.0–4.0), `total_killed`, `total_wounded`, `total_kidnapped` and 2 others.
|
| 78 |
+
|
| 79 |
+
**Identifier / Metadata** — `incident_id` (range 306.0–5809.0), `nationals_kidnapped` (range 0.0–6.0), `internationals_kidnapped` (range 0.0–3.0), `actor_name`, `source` and 2 others.
|
| 80 |
+
|
| 81 |
+
**Other** — `un` (range 0.0–46.0), `ingo` (range 0.0–10.0), `icrc` (range 0.0–1.0), `nrcs_and_ifrc` (range 0.0–14.0), `nngo` (range 0.0–3.0) and 11 others.
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
## Quick Start
|
| 86 |
+
|
| 87 |
+
```python
|
| 88 |
+
from datasets import load_dataset
|
| 89 |
+
|
| 90 |
+
ds = load_dataset("electricsheepafrica/africa-aid-worker-security-database-nga")
|
| 91 |
+
train = ds["train"].to_pandas()
|
| 92 |
+
test = ds["test"].to_pandas()
|
| 93 |
+
|
| 94 |
+
print(train.shape)
|
| 95 |
+
train.head()
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## Schema
|
| 101 |
+
|
| 102 |
+
| Column | Type | Null % | Range / Sample Values |
|
| 103 |
+
|---|---|---|---|
|
| 104 |
+
| `incident_id` | int64 | 0.0% | 306.0 – 5809.0 (mean 3699.4141) |
|
| 105 |
+
| `year` | int64 | 0.0% | 2004.0 – 2026.0 (mean 2021.4343) |
|
| 106 |
+
| `month` | int64 | 0.0% | 1.0 – 12.0 (mean 6.5657) |
|
| 107 |
+
| `day` | float64 | 2.0% | 1.0 – 31.0 (mean 15.3608) |
|
| 108 |
+
| `country_code` | object | 0.0% | NG |
|
| 109 |
+
| `country` | object | 0.0% | Nigeria |
|
| 110 |
+
| `region` | object | 1.0% | Borno, Zamfara, Federal Capital Territory |
|
| 111 |
+
| `district` | object | 5.1% | Maiduguri, Mobbar, Monguno |
|
| 112 |
+
| `city` | object | 10.1% | Rann, Monguno, Damasak |
|
| 113 |
+
| `un` | int64 | 0.0% | 0.0 – 46.0 (mean 0.8687) |
|
| 114 |
+
| `ingo` | int64 | 0.0% | 0.0 – 10.0 (mean 1.0) |
|
| 115 |
+
| `icrc` | int64 | 0.0% | 0.0 – 1.0 (mean 0.0101) |
|
| 116 |
+
| `nrcs_and_ifrc` | int64 | 0.0% | 0.0 – 14.0 (mean 0.1818) |
|
| 117 |
+
| `nngo` | int64 | 0.0% | 0.0 – 3.0 (mean 0.4141) |
|
| 118 |
+
| `other` | int64 | 0.0% | 0.0 – 1.0 (mean 0.0101) |
|
| 119 |
+
| `nationals_killed` | int64 | 0.0% | 0.0 – 9.0 (mean 0.7374) |
|
| 120 |
+
| `nationals_wounded` | int64 | 0.0% | 0.0 – 37.0 (mean 0.8485) |
|
| 121 |
+
| `nationals_kidnapped` | int64 | 0.0% | 0.0 – 6.0 (mean 0.7879) |
|
| 122 |
+
| `nationals_detained` | int64 | 0.0% | 0.0 – 1.0 (mean 0.0303) |
|
| 123 |
+
| `total_nationals` | int64 | 0.0% | 0.0 – 46.0 (mean 2.404) |
|
| 124 |
+
| `internationals_killed` | int64 | 0.0% | 0.0 – 1.0 (mean 0.0303) |
|
| 125 |
+
| `internationals_wounded` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
|
| 126 |
+
| `internationals_kidnapped` | int64 | 0.0% | 0.0 – 3.0 (mean 0.0505) |
|
| 127 |
+
| `internationals_detained` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
|
| 128 |
+
| `total_internationals` | int64 | 0.0% | 0.0 – 4.0 (mean 0.0808) |
|
| 129 |
+
| `total_killed` | int64 | 0.0% | |
|
| 130 |
+
| `total_wounded` | int64 | 0.0% | |
|
| 131 |
+
| `total_kidnapped` | int64 | 0.0% | |
|
| 132 |
+
| `total_detained` | int64 | 0.0% | |
|
| 133 |
+
| `total_affected` | int64 | 0.0% | |
|
| 134 |
+
| `gender_male` | int64 | 0.0% | |
|
| 135 |
+
| `gender_female` | int64 | 0.0% | |
|
| 136 |
+
| `gender_unknown` | int64 | 0.0% | |
|
| 137 |
+
| `means_of_attack` | object | 0.0% | Kidnapping, Shooting, Bodily assault |
|
| 138 |
+
| `attack_context` | object | 0.0% | Ambush, Raid, Individual attack |
|
| 139 |
+
| `location` | object | 0.0% | Road, Office/compound, Public location |
|
| 140 |
+
| `latitude` | float64 | 0.0% | |
|
| 141 |
+
| `longitude` | float64 | 0.0% | |
|
| 142 |
+
| `motive` | object | 1.0% | Unknown, Economic, Political |
|
| 143 |
+
| `actor_type` | object | 0.0% | Non-state armed group: Regional, Unknown, Criminal |
|
| 144 |
+
| `actor_name` | object | 0.0% | |
|
| 145 |
+
| `details` | object | 0.0% | |
|
| 146 |
+
| `verified` | object | 0.0% | |
|
| 147 |
+
| `source` | object | 0.0% | |
|
| 148 |
+
| `esa_source` | object | 0.0% | |
|
| 149 |
+
| `esa_processed` | object | 0.0% | |
|
| 150 |
+
|
| 151 |
+
---
|
| 152 |
+
|
| 153 |
+
## Numeric Summary
|
| 154 |
+
|
| 155 |
+
| Column | Min | Max | Mean | Median |
|
| 156 |
+
|---|---|---|---|---|
|
| 157 |
+
| `incident_id` | 306.0 | 5809.0 | 3699.4141 | 3855.0 |
|
| 158 |
+
| `year` | 2004.0 | 2026.0 | 2021.4343 | 2022.0 |
|
| 159 |
+
| `month` | 1.0 | 12.0 | 6.5657 | 7.0 |
|
| 160 |
+
| `day` | 1.0 | 31.0 | 15.3608 | 15.0 |
|
| 161 |
+
| `un` | 0.0 | 46.0 | 0.8687 | 0.0 |
|
| 162 |
+
| `ingo` | 0.0 | 10.0 | 1.0 | 0.0 |
|
| 163 |
+
| `icrc` | 0.0 | 1.0 | 0.0101 | 0.0 |
|
| 164 |
+
| `nrcs_and_ifrc` | 0.0 | 14.0 | 0.1818 | 0.0 |
|
| 165 |
+
| `nngo` | 0.0 | 3.0 | 0.4141 | 0.0 |
|
| 166 |
+
| `other` | 0.0 | 1.0 | 0.0101 | 0.0 |
|
| 167 |
+
| `nationals_killed` | 0.0 | 9.0 | 0.7374 | 0.0 |
|
| 168 |
+
| `nationals_wounded` | 0.0 | 37.0 | 0.8485 | 0.0 |
|
| 169 |
+
| `nationals_kidnapped` | 0.0 | 6.0 | 0.7879 | 0.0 |
|
| 170 |
+
| `nationals_detained` | 0.0 | 1.0 | 0.0303 | 0.0 |
|
| 171 |
+
| `total_nationals` | 0.0 | 46.0 | 2.404 | 1.0 |
|
| 172 |
+
|
| 173 |
+
---
|
| 174 |
+
|
| 175 |
+
## Curation
|
| 176 |
+
|
| 177 |
+
Raw data was downloaded from HDX via the CKAN API and converted to Parquet. Column names were lowercased and standardised to snake_case. Common missing-value markers (`N/A`, `null`, `none`, `-`, `unknown`, `no data`, `#N/A`) were unified to `NaN`. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
|
| 178 |
+
|
| 179 |
+
---
|
| 180 |
+
|
| 181 |
+
## Limitations
|
| 182 |
+
|
| 183 |
+
- Data originates from Humanitarian Outcomes and has not been independently validated by ESA.
|
| 184 |
+
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
|
| 185 |
+
- Refer to the [original HDX dataset page](https://data.humdata.org/dataset/aid-worker-security-database-nga) for the publisher's own methodology notes and caveats.
|
| 186 |
+
|
| 187 |
+
---
|
| 188 |
+
|
| 189 |
+
## Citation
|
| 190 |
+
|
| 191 |
+
```bibtex
|
| 192 |
+
@dataset{hdx_africa_aid_worker_security_database_nga,
|
| 193 |
+
title = {Nigeria - Aid Worker Security Database},
|
| 194 |
+
author = {Humanitarian Outcomes},
|
| 195 |
+
year = {2026},
|
| 196 |
+
url = {https://data.humdata.org/dataset/aid-worker-security-database-nga},
|
| 197 |
+
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
|
| 198 |
+
}
|
| 199 |
+
```
|
| 200 |
+
|
| 201 |
+
---
|
| 202 |
+
|
| 203 |
+
*[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*
|