
EdTech Hub went looking for the strongest evidence that AI improves how education ministries in low- and middle-income countries deliver services. The system with the most documented impact runs on a formula David Gale and Lloyd Shapley published in 1962.
That finding deserves more attention than anything else in the report.
EdTech Hub’s learning brief files Sierra Leone’s teacher deployment tool under AI. It concludes there is “clear evidence that centralising teacher allocation using AI algorithms can be beneficial.” The brief deserves credit for its honesty elsewhere. It admits there are very few direct examples of tools embedded at a ministry or systems level and that much of AI’s promise rests on speculation or optimism.
I agree with the brief’s limitations section. I disagree with where it filed its best example.
If the most successful ministry system in a survey of AI is mostly six-decade-old matching math, the lesson for donors is about data and governance, and the AI label points them at the wrong budget line.
Sign Up Now for more ICT4education insights
Sierra Leone’s Algorithm Is Gale-Shapley
In 2024, Sierra Leone’s Teaching Service Commission used the algorithm to place 2,341 new teachers. Fab Inc.’s 2020 paper for the Education Workforce Initiative describes the matching engine as a generalisation of the Gale-Shapley algorithm. EdTech Hub’s own 2022 blog post on the project called it a model based on a Nobel-winning intervention from the health sector.
That intervention is the same 1962 formula.
When the Royal Swedish Academy gave Shapley and Alvin Roth the 2012 economics prize, its press release said redesigned systems for matching new doctors with hospitals and students with schools are all based on the Gale-Shapley algorithm.
Marian Abu, the TSC’s Director of Teacher Management, explained the logic in a December 2024 interview with EdTech Hub’s Madleen Frazer. The algorithm ranks schools by pupil-to-teacher ratio and learning outcomes, then matches school and teacher preferences. When two teachers want the same post, it favours women first, then stronger qualifications and longer service. The TSC also capped moves at 5km from a teacher’s previous school.
Those are rules a commission wrote down.
EdTech Hub’s project page describes the tool both ways. It says the algorithm “is informed by and improved by AI” and, in the next sentence, that it applies “a set of pre-determined rules and conditions.” I could not find a public description of what the AI component does.
Political Pain Made It Work
The algorithm arrived after two failed approaches.
Abu said the TSC recruited 2,000 teachers in 2019 and assigned them to schools randomly. Parliamentarians and the public pushed back because the TSC could not justify its choices. In 2020, the TSC asked the World Bank to build a recruitment portal and used it to hire 5,000 teachers. The portal helped but still left deployment problems.
The algorithm answered a question the TSC had already been punished for getting wrong. It gave the commission a rule it could defend in public.
The results favour the TSC.
It met most of its priorities, and new teachers went to schools with worse pupil-to-payroll-teacher ratios and to more remote schools, per EdTech Hub’s project summary. That is a pre/post comparison with no control group. It is still more evidence of system-level impact than any other example in the brief.
A Missing School ID Number Broke It
The failure came from the data. Newly approved schools that had not yet received a school identification number did not exist as far as the algorithm could tell. Teachers volunteering at those schools were added to the payroll and deployed elsewhere. Abu said those schools ended up worse off than before the algorithm.
About 14% of the teachers deployed by the algorithm were affected by missing school ID numbers.
EdTech Hub’s 2025 policy brief found the same pattern across the exercise. Teacher records were inconsistent, and officials used to discretionary control over placements resisted automated decisions.
A smarter model would have made the same mistake. Gale-Shapley cannot match a teacher to a school that is missing from the list, and neither can a neural network.
Fund the School Registry Before the Model
Read the brief’s other ministry examples with this in mind.
- Tanzania is beginning to introduce a national framework.
- India plans to explore automated teacher transfers.
- Bangladesh launched an initiative that aims to build a central platform.
- Mexico has a strategy.
These are intentions, and the brief reports them as such. Sierra Leone is the one place where a ministry ran a system at national scale and measured what happened.
Ministries and their funders should treat the school master list as the first deliverable. Assign the ID number when the school is approved, and keep teacher records current. Health ministries learned this with human resource information systems, and Uganda’s education sector copied its Ministry of Health to digitise workforce records.
Sierra Leone’s commission got its biggest win from a formula published in 1962, and its biggest loss from a missing ID number.


Thank You