Skip to content

Missing Women On the Streets: Evidence from Mumbai

Notifications You must be signed in to change notification settings

geosensing/streetscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streetscope: Measuring Street-level Conditions From Wearable Camera Transects

Analyzing gender representation and infrastructure quality in Mumbai and Navi Mumbai using GoPro wearable camera footage.

Key Findings

Proportion Women

City Images Unweighted Weighted Ped. Sex Ratio
Mumbai 2,740 0.147 0.160 238.8
Navi Mumbai 389 0.131 0.131 219.7

Women are significantly underrepresented in public spaces, comprising only 13-16% of visible people. The pedestrian sex ratio (females per 1000 males) is far below census baselines (Mumbai: 838, Navi Mumbai: 910).

By Mode

City Pedestrians (unweighted) Pedestrians (weighted) Two-wheelers (unweighted) Two-wheelers (weighted)
Mumbai 0.185 0.193 0.071 0.083
Navi Mumbai 0.186 0.180 0.045 0.050

Proportion of women is consistently lower among two-wheeler riders than pedestrians.

Infrastructure

Footpath:

City Paved Paved-Blocked No Sidewalk N
Mumbai 1,150 (59%) 324 (17%) 459 (24%) 1,938
Navi Mumbai 217 (74%) 17 (6%) 60 (20%) 294

Litter:

City Yes Construction Debris No N
Mumbai 256 (78%) 57 (17%) 16 (5%) 329
Navi Mumbai 54 (93%) 3 (5%) 1 (2%) 58

Lane Markings:

City Yes No N
Mumbai 1,602 (99%) 12 (1%) 1,614
Navi Mumbai 318 (100%) 0 318

Potholes:

City Yes No N
Mumbai 30 (54%) 26 (46%) 56
Navi Mumbai 3 (75%) 1 (25%) 4

Note: Infrastructure annotations are sparse - not all images have all fields.

Data Pipeline

GoPro Videos
     |
scripts/extract_exif.py         Extract EXIF metadata from videos
     |
scripts/extract_gps_timeseries.py   Parse GPS data from EXIF files
     |
scripts/extract_frames.py       Extract frames at regular intervals
     |
scripts/compress_frames.py      Compress frames for annotation
     |
Label Studio                    Human annotation of images
     |
scripts/analysis/*.ipynb        Analysis and visualization

Setup

System Tools

# macOS
brew install ffmpeg exiftool

# Ubuntu
sudo apt-get install ffmpeg exiftool

Python Packages

pip install pandas Pillow tqdm
pip install opencv-python  # optional fallback for video info

Usage

# 1. Extract EXIF metadata from videos
python scripts/extract_exif.py \
    --input /path/to/videos \
    --exif-output exif/ \
    --metadata-csv video_metadata.csv

# 2. Extract GPS timeseries from EXIF files
python scripts/extract_gps_timeseries.py \
    --input exif/ \
    --output gps_timeseries.csv

# 3. Extract frames every 10 seconds
python scripts/extract_frames.py \
    --input /path/to/videos \
    --output frames/ \
    --log frame_log.txt \
    --report extraction_report.csv \
    --every-seconds 10

# 4. Compress frames for annotation
python scripts/compress_frames.py \
    --input frames/ \
    --output annotation_frames/ \
    --resolution 1280x720 \
    --quality 75

# 5. Run analysis notebooks
jupyter notebook scripts/analysis/mumbai_annotations.ipynb
jupyter notebook scripts/analysis/navi_mumbai_annotations.ipynb

Data

  • Mumbai: 2,740 annotated images from GoPro transects
  • Navi Mumbai: 389 annotated images from GoPro transects
  • Annotation fields: men_count, women_count, men_twowheeler, women_twowheeler, footpath, lane_markings, potholes, litter, bus_station, railway_station, street_vendor

Directory Structure

annotation_frames/      Compressed frames for Label Studio
data/                   Data files (CSVs)
exif/                   EXIF metadata files
frames/                 Extracted video frames
labelstudio/            Label Studio JSON exports
output/                 HTML visualizations (maps, heatmaps)
scripts/
  analysis/             Jupyter notebooks for analysis
  extract_exif.py       Extract EXIF from videos
  extract_gps_timeseries.py   Parse GPS from EXIF
  extract_frames.py     Extract frames from videos
  compress_frames.py    Compress frames for annotation

Output Files

File Description
output/mumbai_annotations_map.html Interactive map of Mumbai annotations
output/navi_mumbai_annotations_map.html Interactive map of Navi Mumbai annotations
output/mumbai_sex_ratio_heatmap.html Mumbai sex ratio heatmap
output/navi_mumbai_sex_ratio_heatmap.html Navi Mumbai sex ratio heatmap
output/mumbai_heatmap.html GPS point density heatmap
output/mumbai_route_map.html Route visualization
data/mumbai_annotations_with_exif.csv Merged annotation and GPS data

License

MIT

About

Missing Women On the Streets: Evidence from Mumbai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •