Browse flagged government expense claims through the Jarbas web interface to investigate questionable spending by Brazilian lawmakers.
Run Rosie to analyze a fresh batch of public expense data and automatically surface statistically unusual claims.
Extend the notebooks with custom analysis to find spending patterns across legislators, regions, or spending categories.
Use this project as a reference architecture for building civic transparency tools that combine open government data with ML anomaly detection.
Requires downloading large government datasets and configuring cloud credentials to run Rosie's analysis pipeline.
Operacao Serenata de Amor is a Brazilian civic technology project that uses machine learning to scan public records of government spending and flag suspicious expenses. The main focus is on the expense claims submitted by members of the Brazilian Chamber of Deputies and Federal Senate, the lawmakers who represent the public. The project makes this data accessible and understandable for ordinary citizens. The heart of the project is a system called Rosie, an automated tool that analyzes expense data and identifies claims that look unusual, such as a meal receipt at an implausible price or a travel expense for a destination that does not match the legislator's schedule. Rosie has a Twitter account where findings get posted publicly. A separate web tool called Jarbas lets anyone browse these expenses and see which ones have been flagged, serving as the interface where citizens can investigate further and, if they choose, contact their representatives about questionable spending. The technical side is built in Python and hosted on cloud servers. The expense data comes from open government data portals. Rosie is run manually about once a month, and the Jarbas website stays online continuously so the public can always access the data. The codebase is split across several GitHub repositories: this main one holds Rosie and Jarbas, while a separate installable package handles dataset generation and a collection of community notebooks contains exploratory analysis. The project was founded in 2016 by a small team and grew with contributions from the open-source and civic tech communities in Brazil. It is part of the Data Science for Civic Innovation Programme run by Open Knowledge Brasil, an organization that promotes open data and civic participation. The README notes that the project is no longer receiving frequent updates, as the team has moved energy toward other initiatives. People interested in active collaboration are directed to a related project called Querido Diario, which works with official government publications. Contributions to fix bugs or make improvements are still welcome through the project's Discord.
← okfn-brasil on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.