File size: 10,070 Bytes
6ee070d 8761094 6e21e21 6ee070d | 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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | ---
license: cc-by-4.0
language:
- en
tags:
- healthcare
- nigeria
- lassa-fever
- viral-hemorrhagic-fever
- infectious-disease
- epidemiology
- outbreak-surveillance
- public-health
- disease-surveillance
- nigeria-health-data
- west-africa
- time-series
- time-series-forecasting
- epidemic-modeling
- predictive-modeling
- health-data-science
---
# NCDC Lassa Fever Weekly Timeseries Dataset (Nigeria, 2020–2025)
**Version:** 1.0
**Maintainer:** Emmanuel Niyi-Oriolowo
**License:** CC BY 4.0
**Last Updated:** 01-12-2025
---
## **1. Overview**
This repository provides a consolidated and standardized dataset of weekly Lassa fever surveillance data in Nigeria from 2020 to 2025. The dataset is derived from the Nigeria Centre for Disease Control (NCDC) Weekly Epidemiological Reports, which are published as PDF documents.
The primary objective of this dataset is to offer a clean, machine-readable time series suitable for epidemiological analysis, infectious disease modeling, trend assessment, and public-health forecasting.
The dataset includes:
- Weekly suspected, confirmed, probable, and fatal cases
- Epidemiological year and week numbers
- Standardized ISO week start and end dates
- Report identifiers and direct links to source documents
- Documentation of data inconsistencies and extraction anomalies
---
## **2. Files Included**
This repository contains raw extracted outputs, intermediate processed files, finalized datasets, documentation, and reproducible scripts. The structure and purpose of each file are described below.
---
### **2.1 Data Files**
### **Raw Extraction Outputs**
These files represent the initial outputs obtained directly from automated PDF extraction tools. They retain missing values and noise from the source reports.
1. **`lassa_fever_timeseries_data_extracted_with_null.csv`**
Raw extracted data containing missing values as obtained from PDF parsing.
2. **`lassa_fever_timeseries_data_extracted_null_filled.csv`**
Same as above, but with missing values filled or inferred during early preprocessing.
### **Intermediate Cleaning Outputs**
These files represent partially processed datasets used during the cleaning and validation pipeline.
1. **`lassa_fever_timeseries_intermediate.csv`**
Intermediate dataset produced after structural cleaning, week alignment, and normalization steps.
### **Final Datasets**
These files represent the complete and fully validated datasets intended for analysis and publication.
1. **`lassa_fever_timeseries_full.csv`**
Comprehensive dataset containing all variables, including cumulative counts, metadata fields, extraction notes, and source references.
2. **`lassa_fever_timeseries_minimal.csv`**
Reduced dataset containing only essential epidemiological variables (e.g., week, year, confirmed cases, deaths) for lightweight modeling and rapid prototyping.
---
### **2.2 Documentation**
### **`docs/` Directory**
Contains human-readable documentation describing the dataset, methodology, and metadata.
- **`data_dictionary.md`**
Detailed descriptions of all variables, including definitions, units, formatting conventions, and expected value ranges.
- **`methodology.md`**
A comprehensive description of the data extraction, cleaning, validation, and quality assurance procedures used to construct the final dataset.
- **`dataset_card.json`**
Machine-readable metadata containing schema definitions, field types, and high-level dataset descriptors consistent with modern dataset documentation standards.
---
### **2.3 Scripts**
All scripts used in the data ingestion and cleaning pipeline are provided to ensure reproducibility.
- **`data_ingestion_extended.ipynb`**
Notebook detailing PDF download, report identification, and extraction routines (including OCR and table parsing).
- **`data_cleaning.ipynb`**
Notebook implementing cleaning procedures, standardization of epidemiological weeks, cumulative variable generation, and anomaly detection.
All scripts are located in the **`scripts/`** directory.
---
## **3. Dataset Structure**
---
| **Column** | **Type** | **Constraints** | **Example** | **Notes** |
|------------------------|--------------|-------------------------------|-------------------------------------------------|-----------------------------------|
| `epi_year` | Integer | ≥ 2020 | 2024 | Epidemiological year |
| `epi_week` | Integer | 1 ≤ week ≤ 53 | 12 | WHO epi week |
| `week_start_date` | Date | YYYY-MM-DD format | 2024-03-18 | Monday of epi week |
| `week_end_date` | Date | YYYY-MM-DD format | 2024-03-24 | Sunday of epi week |
| `suspected_cases` | Integer | ≥ 0 | 87 | Clinical/epidemiological criteria |
| `confirmed_cases` | Integer | ≥ 0, ≤ suspected_cases | 42 | Laboratory-confirmed |
| `probable_cases` | Integer | ≥ 0, ≤ suspected_cases | 5 | Died/absconded without testing |
| `deaths` | Integer | ≥ 0, ≤ (confirmed + probable) | 8 | Lassa fever-attributed deaths |
| `extraction_method` | String | "manual" or "automated" | "automated" | Extraction method used |
| `extraction_timestamp` | DateTime | YYYY-MM-DD HH:MM:SS | 2024-03-25 14:32:01 | When extraction occurred |
| `report_pdf_url` | String (URL) | Valid URL format | [https://ncdc.gov.ng/](https://ncdc.gov.ng/)... | Source PDF link |
## **4. Data Source**
All observations originate from the **Nigeria Centre for Disease Control (NCDC)** Weekly Epidemiological Reports (2020–2025). These reports constitute the authoritative national source for Lassa fever surveillance in Nigeria.
Each observation in the dataset is directly traceable to a specific PDF document using its `report_pdf_url`.
---
## **5. Methodology**
### **5.1 Data Acquisition**
PDFs were downloaded from the NCDC’s publicly accessible archive. Report identifiers were recorded to establish an audit trail and ensure reproducibility.
### **5.2 Data Extraction**
Data were extracted using a combination of automated and manual techniques:
- `pdfplumber` for structured tables and well-formatted reports
- Manual correction for reports with irregular formatting, inconsistent layouts, or non-tabular data presentation
### **5.3 Data Cleaning and Standardization**
Several steps were undertaken to harmonize the dataset:
- Conversion of all reporting weeks to ISO-standard start and end dates
- Normalization of variable names and data types
- Handling of missing, duplicated, or irregular weeks
- Reconciliation of discrepancies with NCDC annual summaries when available
### **5.4 Quality Assurance**
Quality checks included:
- Verification of week-to-week temporal continuity
- Detection of duplicate or misaligned week numbers
- Annotation of anomalies
---
## **6. Potential Applications**
This dataset is suitable for a wide range of analytical and modeling tasks, including:
- Time-series forecasting of infectious disease incidence
- Seasonal and cyclical pattern analysis
- Case fatality ratio estimation
- Outbreak detection and anomaly identification
- Public-health policy evaluation
- Machine learning model development and benchmarking
- Comparative epidemiology across years or regions
---
## **7. Example Usage (Python)**
```python
import pandas as pd
df = pd.read_csv("lassa_fever_weekly_nigeria_2020_2025.csv")
df['week_start_date'] = pd.to_datetime(df['week_start_date'])
# Example: simple weekly confirmed case time series
confirmed_ts = df.set_index('week_start_date')['confirmed_cases']
confirmed_ts.plot(figsize=(12, 4))
```
---
## **8. Limitations**
- Considerable variation in PDF formatting, especially for reports from 2021–2022, required manual intervention.
- Some epidemiological weeks are missing in the official reports and are documented accordingly.
- Probable cases are inconsistently reported across years.
- Cumulative counts reset at the start of each epidemiological year.
These limitations should be taken into account when performing temporal or cross-year comparisons.
---
## **9. Licensing**
This dataset is released under the **Creative Commons Attribution 4.0 International (CC BY 4.0)** license.
Under this license, users are permitted to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, including commercial use
Provided that appropriate credit is given to the dataset creator.
For full licensing terms, refer to the `LICENSE` file or the official license documentation.
---
## **10. Citation**
Users of this dataset should cite it as follows:
```
Niyi-Oriolowo, E. (2025). NCDC Lassa Fever Weekly Timeseries Dataset (Nigeria, 2020–2025).
[https://www.kaggle.com/datasets/emmanuelniyioriolowo/ncdc-lassa-fever-timeseries-20202025](https://www.kaggle.com/datasets/emmanuelniyioriolowo/ncdc-lassa-fever-timeseries-20202025)
```
---
## **11. Contact**
For questions, corrections, or contributions:
**Emmanuel Niyi-Oriolowo**
GitHub: [https://github.com/EmmanuelNiyi](https://github.com/YOUR_USERNAME)
Email: emmanuelniyioriolowo@gmail.com |