Riau Province has a population of 6,642,874 and a diverse geography, which poses significant challenges in optimizing Islamic preaching activities. Traditional assignment methods often lead to inefficiencies due to misalignment between the preacher’s expertise and congregational needs, as well as logistical issues. This study integrates K-Means clustering and DBSCAN algorithms with interactive geographic visualization to optimize the assignment of preachers to mosques. We collected 435 data points, including 185 mosques and 250 preachers. K-Means was evaluated using the Elbow Method and Silhouette Score, identifying 10 clusters as optimal with a Silhouette Score of 0.435654. However, K-Means does not handle outliers effectively, as indicated by zero outliers in all configurations. DBSCAN was tested with various epsilon (eps) and minimum sample values. The optimal configuration with eps of 1.5 and 5 minimum samples resulted in 10 clusters with a Silhouette Score of 0.381108 and 60 outliers. DBSCAN effectively manages outliers and varying densities. Although K-Means is advantageous for its simplicity and higher Silhouette Scores, it is unable to handle outliers effectively. DBSCAN provides robust clustering for noisy data. Therefore, it can be concluded that hybridizing unsupervised learning algorithms with geographic visualization can potentially improve the effectiveness of preaching activities in Riau Province and enhance preacher assignment.
Read full abstract