Artificial Intelligence for Predicting Waiting Times in Specialized Healthcare Regulation: A Machine Learning Study Using Real-World Data from the Brazilian Unified Health System

Long waiting times hinder timely access to specialised care in Brazil’s Unified Health System (SUS), and municipal services need analytical support to find bottlenecks and unequal access. This study evaluated machine learning models for predicting outpatient waiting time, defined as the number of days between a request and the appointment date. It used real-world SUS records from SIMEC / Programa Eficiência in Juazeiro do Norte, Ceará, Brazil. The data were cleaned by removing corrupted dates and impossible waiting times, standardising categories and handling missing values. Temporal, patient and demand features were then derived. XGBoost, Random Forest and LightGBM regression models were trained with cross-validation and hyperparameter tuning. XGBoost performed best (R² = 0.75), followed by Random Forest (0.72) and LightGBM (0.70). The two leading predictors were referral by the regulator (20.0% of feature importance) and service-provider availability (17.6%). Median waits were longer for municipal referral pathways (83–105 days) than for regulator/SESAU referrals (7–13 days). Rheumatology (202 days), paediatric neurology (177 days) and several ophthalmology exams (160–169 days) had the longest median waits. In the fitted model, vacancy reallocation (−26.5 days) and SESAU referral (−18.3 days) were associated with shorter predicted waits, and having few service providers (+7.8 days) with longer ones. These associations are not causal. Machine learning can support waiting-time prediction and bottleneck detection in municipal SUS services. The next steps are integration into SIMEC, prospective evaluation, and monitoring for bias, transparency and equitable access.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-08
DOI
https://doi.org/10.5281/zenodo.24062965
Primary Topic
Healthcare Operations and Scheduling Optimization
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Artificial Intelligence for Predicting Waiting Times in Specialized Healthcare Regulation: A Machine Learning Study Using Real-World Data from the Brazilian Unified Health System

Roberto Rodrigues Ramos, José Nairton Coelho da Silva, Deborah Macedo dos Santos, Leonor Ferreira et al.
Zenodo (CERN European Organization for Nuclear Research)
Healthcare Operations and Scheduling Optimization
article

Artificial Intelligence for Predicting Waiting Times in Specialized Healthcare Regulation: A Machine Learning Study Using Real-World Data from the Brazilian Unified Health System

Roberto Rodrigues Ramos, José Nairton Coelho da Silva, Deborah Macedo dos Santos, Leonor Ferreira, Thiago Bessa Pontes, Rafaela Margarida Ferreira
article en

Abstract

Long waiting times hinder timely access to specialised care in Brazil’s Unified Health System (SUS), and municipal services need analytical support to find bottlenecks and unequal access. This study evaluated machine learning models for predicting outpatient waiting time, defined as the number of days between a request and the appointment date. It used real-world SUS records from SIMEC / Programa Eficiência in Juazeiro do Norte, Ceará, Brazil. The data were cleaned by removing corrupted dates and impossible waiting times, standardising categories and handling missing values. Temporal, patient and demand features were then derived. XGBoost, Random Forest and LightGBM regression models were trained with cross-validation and hyperparameter tuning. XGBoost performed best (R² = 0.75), followed by Random Forest (0.72) and LightGBM (0.70). The two leading predictors were referral by the regulator (20.0% of feature importance) and service-provider availability (17.6%). Median waits were longer for municipal referral pathways (83–105 days) than for regulator/SESAU referrals (7–13 days). Rheumatology (202 days), paediatric neurology (177 days) and several ophthalmology exams (160–169 days) had the longest median waits. In the fitted model, vacancy reallocation (−26.5 days) and SESAU referral (−18.3 days) were associated with shorter predicted waits, and having few service providers (+7.8 days) with longer ones. These associations are not causal. Machine learning can support waiting-time prediction and bottleneck detection in municipal SUS services. The next steps are integration into SIMEC, prospective evaluation, and monitoring for bias, transparency and equitable access.

Zenodo (CERN European Organization for Nuclear Research)
Iscte – Instituto Universitário de Lisboa (PT), Universidade Federal do Cariri (BR)
Good health and well-being
Healthcare Operations and Scheduling Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon