Skip to main content

Course project

Sizing and prototyping the infrastructure to process mobile phone data

Background

National statistical offices (NSOs) are adding alternative data sources to surveys and censuses. Mobile phone data (MPD) from mobile network operators (MNOs) is one of the most promising: it shows where people are and how they move, every day, for most of the population.

MPD is also big data. A medium-sized operator produces hundreds of millions to billions of records a day. Before an NSO can produce a single indicator, it needs servers, storage and software that can hold this data securely and process it on time. Few NSOs have that infrastructure today.

This project asks you to plan that infrastructure for your own country and to build a small working version of the processing pipeline.

The scenario

Your government has decided to use MPD to produce urban mobility indicators for its main cities. Ministries of transport and city planners want to know:

  • how many people are present in each part of the city by time of day
  • where people live and where they spend their working day
  • the main travel flows between areas (origin-destination matrices), and how they change on weekdays, weekends and holidays

The situation is as follows:

  1. A data sharing agreement is in place. The NSO will receive pseudonymised, record-level data from the country’s MNOs every day: call detail records (CDRs) and data session records, possibly signalling data later.
  2. The data will be hosted at the NSO. The data cannot leave the country. It will land on infrastructure inside the NSO, provided by the Ministry of ICT (or a government data centre).
  3. The Ministry of ICT has asked the NSO two questions. What infrastructure is needed (servers, cores, memory, storage), and what software stack will run on it?
  4. The NSO must show that it can process the data. Before the real data arrives, the NSO director wants a working prototype of the processing pipeline, built and tested on synthetic data.

Your team is the NSO’s technical working group. You answer the Ministry and build the prototype.

Your task

The project has two parts. Part A answers the Ministry. Part B shows that the NSO can process the data. You then use Part B to check the numbers in Part A.

Part A: infrastructure and software requirements

Estimate what the NSO needs to receive, store and process MPD for your country.

  1. Gather the inputs. Find your country’s number of mobile subscriptions and its main operators (telecom regulator reports, ITU statistics). Decide which record types the NSO will receive, how many months of data it keeps, and whether it processes data once (batch) or daily or weekly.
  2. Size the infrastructure with the MPD Server Sizing Calculator. Report the number of servers, vCPU, RAM and usable storage, and the expected processing time.
  3. Justify your assumptions. Explain each choice: subscriber numbers, roamers, record types, data period, on-premises or cloud. Say which assumptions matter most to the result.
  4. Propose a software stack. For each layer, name the tools and say why you chose them: storage (for example HDFS or object storage), processing (Spark), file formats (Parquet), orchestration and scheduling, access and security, and monitoring.

Part B: prototype data processing pipeline

Build a small PySpark pipeline on the synthetic CDRs provided in the course.

  1. Ingest: read the raw CSV files and save them as Parquet.
  2. Clean: remove duplicates and records with missing or invalid fields.
  3. Enrich: join the records to the cell locations and the city’s areas.
  4. Compute indicators: produce at least one urban mobility indicator, such as present population by area and hour, home location per subscriber, or an origin-destination matrix between areas.
  5. Benchmark: run the pipeline on two or three data sizes and record the time each takes.

Linking the two parts

Use your benchmark to test your Part A estimate. Extrapolate your processing time to your country’s daily data volume. Does it agree with the calculator? If not, explain why, and say whether you would change your infrastructure request.

Teams and deliverables

You work in small teams, with one country per team. Where possible, a team works on the country of one of its members.

Each team delivers:

  • A one-page requirements note for the Ministry of ICT (Part A): the inputs, the sizing results and the proposed software stack.
  • A notebook with the working pipeline and benchmark results (Part B).
  • A 10-minute presentation on Friday, followed by 5 minutes of questions.

The presentation covers:

  1. Your country and the key inputs you used
  2. The infrastructure you request and the software stack
  3. Your pipeline and the indicator it produces
  4. Your benchmark compared with the calculator’s estimate
  5. What your NSO would need, beyond hardware, to make this work (skills, agreements, security)

Timeline

Project work runs alongside the course modules. Each step comes after the sessions that prepare you for it.

Day Project step Prepared by
Mon 30 Nov Project introduced, teams formed, countries chosen (S4) Course overview
Tue 1 Dec Gather country inputs (S10) M1 Big Data Concepts and Platforms
Wed 2 Dec Size the infrastructure and propose the software stack, Part A (S13, S15) M4 The Hadoop Ecosystem
Thu 3 Dec Build and benchmark the pipeline, Part B (S18) M5 Apache Spark Fundamentals, M6 Spark DataFrames and Pipelines
Fri 4 Dec Finish the note, notebook and slides (S20); presentations from 13:30 (S21) All modules

Resources

  • MPD Server Sizing Calculator: open the calculator in your browser. No installation is needed. If the internet is slow or down, use an offline copy: open the calculator file on GitHub, click the Download raw file button (the download icon at the top right of the file), then double-click the downloaded file to open it in Chrome, Firefox or Edge. Opening the file directly on the GitHub page shows its code instead of the calculator.
  • Synthetic CDRs: dataset description: files, columns and how to link the records to cell locations.

All data in this project is synthetic. Real mobile phone data is personal data and is never used in the course.