Typhoid fever requires precise handling and identification. Manual identification based on symptoms and health data has limitations, thus necessitating a structured early prediction model. This study aims to build and evaluate a web-based decision support system for the early diagnosis of typhoid fever using the Random Forest algorithm. The data used consists of 486 secondary medical records from Baranti Health Center, including 383 positive typhoid samples and 103 negative samples. The data was divided using the Stratified Random Split method with an 80:20 ratio, allocating 388 samples for training data and 98 samples for testing data. The model was constructed using 500 decision trees with Gini Impurity index and subsequently integrated into a web application using the Flask framework and MySQL database. The testing results indicate an accuracy of 94.9%, precision of 95.0%, recall of 98.7%, F1-score of 96.8%, and AUC of 97.7%. Feature Importance analysis using the Mean Decrease Gini method reveals that the presence of red spots, with an importance value of 35.5%, and nosebleeds, with a value of 34.4%, are features utilized in the model's prediction process. Therefore, the Random Forest model can be implemented in a web-based application to support the early prediction of typhoid fever based on symptoms and user health data.
Copyrights © 2027