Back to Home

Case study / Civil-registry digitisation

ProdiGy, Madagascar

Processing capacity up 25%, coordination roles cut from 10 to 2, and, for the first time, measured visibility across the whole chain.

−80%

coordination roles, formerly line managers (10 → 2)

+25%

processing capacity (100,000 → 125,000 records/day)

Facts

Client context
Studia, subcontractor on the ProdiGy programme
Location
Madagascar
Role
Project lead, solution architecture, then tech lead (code review, mentoring)
Built
Orchestrated flow with n8n, Python modules, Apache Superset dashboards
Scale
Over 30 million paper records, 4 developers, about 6 months

Context

The ProdiGy programme set out to digitise Madagascar's civil registry: over 30 million paper records to scan and then digitalise. Studia, a subcontractor on the programme, had two problems: it could not predict when production would be finished, and its production lines had insufficient yield.

The register is the root of the civil registry. Each year has several volumes, and a volume is a physical 64-page book, scanned flat: one double page per scan, plus the first and last pages on their own. A scan holds 1 to 4 records.

Data model: register, volume, scan, record.
Register, volume, scan, record: each level carries a status in the target. Open full size

A: Analyse

The workflow was almost entirely manual. A scan truck travelled from commune to commune; scans, stored on disks or USB sticks, were carried to Antananarivo. At the production centre, each line of about 10 operators, supervised by a line manager, processed a volume end to end: scan preparation, binarisation, cutting into records, drop on an SFTP server, batch sending to Recital AI (which had trained a specific model for Studia), manual loading of the results into QuickAct, then residual data entry.

The friction fell into three families.

  • Supply: raw material travelled physically and had to arrive faster than it was processed, otherwise the chain could stall for days.
  • Line yield: frequent context switching, idle time caused by batching (waiting for Recital, for scans, for colleagues), a cap of 256 binarised scans per send to Recital's API, very time-consuming scan preparation, manual loading into QuickAct.
  • Steering: no metrics before QuickAct, hence no visibility between scanning and data entry.
Initial flow, largely manual, with its friction points.
The flow when I arrived: physical transport, manual preparation, batch capped at 256 scans, no metrics before QuickAct. Open full size

F: Frame

The framing rests on six choices, each answering a point of the diagnosis. The target fits in one sentence: an orchestrated flow, driven by the data model, where each unit moves forward as soon as it is ready, without waiting for the volume.

  • No visibility before QuickAct: every volume, scan and record carries a status from the start, readable in Apache Superset dashboards.
  • Volume batches and waiting between operators: process the scan and the record independently of the volume, since the metadata is in the database. Production runs as a pull flow.
  • Cap of 256 scans to Recital: call Recital just in time, over HTTPS, as work flows.
  • Time-consuming manual preparation: automate preparation, binarisation and cutting.
  • Physical transport from the communes: reroute the trucks to covered locations, which send their scans directly over SFTP.
  • Context switching and non-specialised lines: move from end-to-end lines to three specialised teams.

I: Implement

The engagement lasted about six months: two weeks of analysis, two weeks of framing, then five months of implementation. I worked directly with the CEO of Studia, with four Studia developers. I led the project and designed the architecture, then acted as tech lead, with code review and mentoring.

The target flow: the truck scans and sends the scans over SFTP from a covered location; n8n detects the arrival, creates the volume and scans in the database with their initial status and starts production without intervention; it calls the Python modules for preparation, binarisation and cutting, and statuses advance at each step; Recital is called as soon as a record is ready, and its result feeds the data model directly.

  • Preparation, binarisation and record-cutting modules, all in Python, called one by one by n8n.
  • n8n watches the incoming SFTP folder, creates volumes, scans and records in the database and advances their statuses.
  • Just-in-time call to Recital over HTTPS, per scan or per record.
  • Apache Superset dashboards reading the statuses in the database.
  • Organisation: three specialised teams replace the 10-operator lines: upstream quality control, residual data entry in QuickAct, final quality control of the register.
Target flow orchestrated by n8n.
The target flow: each scan, then each record, moves on as soon as it is ready, without waiting for the volume. Open full size
Organisation before and after.
From end-to-end lines of 10 operators to three specialised teams. Open full size
Project team and timeline.
Team and timeline: about six months, four Studia developers. Open full size

S: Solve

Production is steered by Apache Superset dashboards giving a precise view of progress at volume, scan and record level. That visibility was missing before QuickAct; it is the basis for planning, one of Studia's two initial problems. There is no longer a capped batch or waiting between operators.

Processing capacity is measured from the arrival of scans to validation after QuickAct; it is a capacity, not an observed average output.

Have a process like this?