Accurate emergency department (ED) triage depends on timely interpretation of clinical information, yet Indonesian anamnesis records are often unstructured. This study developed a hybrid IndoBERT and Random Forest framework to extract clinical entities and classify patients into Green, Yellow, and Red triage categories. IndoBERT was fine-tuned for named entity recognition (NER) using a beginning, inside, outside annotation scheme. Extracted entities were converted into 27 features and combined with six vital-sign measurements and the Glasgow Coma Scale, producing 34 classifier inputs. After cleaning, the triage dataset contained 47,807 records; the NER dataset contained 29,870 unique sentences after deduplication. The NER model achieved a weighted F1-score of 0.9997. On 9,562 test records, Random Forest achieved an accuracy of 0.9662 and a weighted F1-score of 0.9666, exceeding the predefined performance thresholds. A web-based prototype demonstrated the integration of clinical data entry, entity extraction, and triage prediction. The framework provides a structured approach to using Indonesian clinical narratives for triage decision support. Broader external validation and prospective clinical evaluation are required before operational deployment
Copyrights © 2026