From Pre-labeling to Production: Engineering Lessons from a Machine Learning Pipeline in the Public Sector
By: Ronivaldo Ferreira , Guilherme da Silva , Carla Rocha and more
Potential Business Impact:
Builds trustworthy government AI for everyone.
Machine learning is increasingly being embedded into government digital platforms, but public-sector constraints make it difficult to build ML systems that are accurate, auditable, and operationally sustainable. In practice, teams face not only technical issues like extreme class imbalance and data drift, but also organizational barriers such as bureaucratic data access, lack of versioned datasets, and incomplete governance over provenance and monitoring. Our study of the Brasil Participativo (BP) platform shows that common engineering choices -- like using LLMs for pre-labeling, splitting models into routed classifiers, and generating synthetic data -- can speed development but also introduce new traceability, reliability, and cost risks if not paired with disciplined data governance and human validation. This means that, in the public sector, responsible ML is not just a modeling problem but an institutional engineering problem, and ML pipelines must be treated as civic infrastructure. Ultimately, this study shows that the success of machine learning in the public sector will depend less on breakthroughs in model accuracy and more on the ability of institutions to engineer transparent, reproducible, and accountable data infrastructures that citizens can trust.
Similar Papers
Machine Learning Pipeline for Software Engineering: A Systematic Literature Review
Software Engineering
Finds software bugs faster and more accurately.
Engineering the Law-Machine Learning Translation Problem: Developing Legally Aligned Models
Computers and Society
Helps AI follow laws while still working well.
Enhancing software product lines with machine learning components
Software Engineering
Builds smarter computer programs with changeable parts.