Skip to content
Vega Data

Case study · Government · 2020 to 2023

National road-safety observatory

A national road-safety observatory built from seven government data feeds

For a national road-safety authority in the GCC, we joined crash, ambulance, hospital, damage-cost, traffic-sensor, weather and demographic data into one platform, with locally calibrated crash-prediction models and bilingual decision dashboards. Delivered continuously from 2020 to 2023.

Map of the national road network covered by the observatory, about 18,000 segments
The national road network in the observatory, drawn from its own geodata.
government and operational data feeds joined in one warehouse
7
Measured in delivery or live datagovernment and operational data feeds joined in one warehouse
commits across four years of continuous delivery
3,100+
Measured in delivery or live datacommits across four years of continuous delivery
administrative regions covered
13
Measured in delivery or live dataadministrative regions covered
road types with locally calibrated crash-prediction models
3
Measured in delivery or live dataroad types with locally calibrated crash-prediction models
  • Measured in delivery or live dataMeasured in delivery or live data
  • Measured in prototype testsMeasured in prototype tests
  • Modelled estimateModelled estimate

The challenge

The authority's mandate was to cut road deaths, and the evidence sat in separate agencies. The transport ministry held crash records, the ambulance service held dispatch and arrival times, the health sector held hospital outcomes, damage assessors held repair costs and roadside sensors counted traffic. Each answered part of the question of where and why people die on the roads. None could answer it alone.

What we built

  • One warehouse for seven feeds. Crash records, ambulance timings, hospital outcomes, vehicle-damage costs, traffic sensors (volume, average speed and 15 vehicle classes per lane), historical weather and national demographics, loaded into a distributed in-memory SQL warehouse.
  • Ingestion analysts run themselves. A no-code pipeline builder connects MySQL, PostgreSQL, MongoDB, Cassandra and Kafka sources, accepts CSV, Excel and Esri geodatabase uploads of up to 5 GB, and shows the status of every pipeline.
  • Decision dashboards in Arabic and English. About 60 analytical views, a safety-performance-indicator dashboard, quarterly reports and a crash-cost calculator based on the value of a statistical life.
  • Crash prediction engineers can audit. Safety Performance Functions calibrated to local roads predict total, fatal-and-injury and damage-only crashes per year on multilane roads, freeways and two-lane roads, from traffic volume, speed, lane count, median and shoulder width and lighting. A recommender ranks countermeasures by their crash modification factors and the quality of the evidence behind them.
  • An assistant prototype. In 2023 we added question answering over the observatory's reports, with a locally hosted model option for sensitive data.

Why statistical models

Road engineers sign off on interventions that cost millions. They need models whose coefficients they can read and challenge, and Safety Performance Functions are the established method in highway-safety practice. We calibrated them to local roads and kept every term visible.

Delivery and DevOps

The platform shipped continuously for four years: 3,128 commits from about ten engineers between April 2020 and December 2023, with branch-per-developer work and reviewed pull requests. Services ran in Docker containers behind nginx and were managed with Rancher, which let us move the whole platform onto the client's own in-country infrastructure without a rewrite.

Results

  • Crash, response, health and cost data joined in one warehouse covering all 13 administrative regions.
  • 460 priority hotspots identified on the national network. See how we found them.
  • Quarterly reports in Arabic and English generated from the platform.

Platform and infrastructure

This platform runs on the client's in-country infrastructure, as data-residency rules require. The same containerised pattern, a distributed SQL warehouse with ingestion services managed by Rancher, is what we now run on Azure Virtual Machines for our capital-markets work.

Government · 2020 to 2026

Ranking 460 crash hotspots with geospatial analysis and deep learning

Geospatial analysis and deep-learning risk models that place every crash on a national road network, score risk for every segment, and rank 460 priority hotspots on 142 roads, each with candidate countermeasures.

460priority hotspots identified on 142 national roads

Read the case study

Government · 2026

Every citizen proposal from Egypt Forum 2026, read in full

Vega Data built Kelmet Masr in collaboration with Egypt's Ministry of Foreign Affairs. It turns 5,620 published proposals, about 1.8 million words written by 3,535 citizens, into an analysis that the ministry, the Prime Minister's office and any citizen can search and read.

5,620published proposals read in full, with no sampling

Read the case study

Tell us the decision you need to make.

Describe the decision, the data you hold and your timeline. A senior engineer reads every message.