Key Message
Machine learning models, particularly XGBoost, demonstrated superior performance in predicting healthcare costs among older adults in Indonesia. Nonlinear relationships between outpatient visits, severity, and diagnoses highlight the limitations of conventional linear approaches. These findings support the integration of advanced predictive models into national health insurance systems to improve cost management and resource allocation.