Brazil’s open-source AI auditor for congressional expenses
Serenata de Amor uses machine learning to flag suspicious spending by Brazilian politicians and nudges citizens to hold them accountable.

What it does
Serenata de Amor is a Brazilian civic-tech initiative that applies data science to public administration. Its main component, Rosie, is an artificial intelligence that analyzes expenses from Brazil’s Chamber of Deputies, Federal Senate, and municipalities to surface suspicious patterns. The findings are served through Jarbas, a web interface where citizens inspect receipts and suspicions, while Rosie also engages directly with politicians on Twitter.
The interesting bit
The project treats government oversight as a data pipeline: raw spending data goes in, anomalies come out, and public pressure follows. What makes it unusual is the deliberate pairing of automated detection with human-scale accountability—an algorithm that doesn’t just crunch numbers but names names in public.
Key highlights
- Rosie audits expenses from Brazil’s Chamber of Deputies, Federal Senate, and municipalities.
- Jarbas runs continuously, serving expenditure data and suspicion details around the clock.
- The team maintains a separate
serenata-toolboxpackage for dataset generation and reuse. - The project is explicitly designed for any country with open spending data, though Brazil is the primary focus.
Caveats
- Updates are infrequent: the README states the project has expanded into new efforts and core infrastructure now runs manually only about once a month.
- The maintainers acknowledge the technical stack is legacy—“not the best stack ever”—and direct new contributors seeking active work to the Querido Diário project.
Verdict
Worth exploring if you care about civic tech, government transparency, or applied ML in the public interest. Skip it if you need an actively maintained codebase to build on today.
Frequently asked
- What is okfn-brasil/serenata-de-amor?
- Serenata de Amor uses machine learning to flag suspicious spending by Brazilian politicians and nudges citizens to hold them accountable.
- Is serenata-de-amor open source?
- Yes — okfn-brasil/serenata-de-amor is open source, released under the MIT license.
- What language is serenata-de-amor written in?
- okfn-brasil/serenata-de-amor is primarily written in Python.
- How popular is serenata-de-amor?
- okfn-brasil/serenata-de-amor has 4.6k stars on GitHub.
- Where can I find serenata-de-amor?
- okfn-brasil/serenata-de-amor is on GitHub at https://github.com/okfn-brasil/serenata-de-amor.