Abstract
With the widespread use of mobile phones, users can share their location and activity anytime, anywhere, as a form of check-in data. These data reflect user features. Long-term stability and a set of user-shared features can be abstracted as user roles. This role is closely related to the users’ social background, occupation, and living habits. This study makes four main contributions to the literature. First, user feature models from different views for each user are constructed from the analysis of the check-in data. Second, the K-means algorithm is used to discover user roles from user features. Third, a reinforcement learning algorithm is proposed to strengthen the clustering effect of user roles and improve the stability of the clustering result. Finally, experiments are used to verify the validity of the method. The results show that the method can improve the effect of clustering by 1.5∼2 times, and improve the stability of the cluster results about 2∼3 times of the original. This method is the first time to apply reinforcement learning to the optimization of user roles in mobile applications, which enhances the clustering effect and improves the stability of the automatic method when discovering user roles.
Introduction
The proliferation of mobile devices has enabled the collection of vast amounts of "check-in" data, providing a window into user behaviors and social patterns. These patterns, when abstracted, form "user roles"—stable behavioral profiles such as "Urban Practitioner" or "Night Food Lover." Identifying these roles is crucial for personalized services and urban planning. However, traditional clustering methods like K-means often suffer from instability; different initializations can lead to inconsistent role assignments. This paper addresses the need for a high-quality, stable method for user role discovery by combining traditional clustering with Reinforcement Learning (RL).
Methodology: A Hybrid RL-Clustering Approach
The proposed method utilizes a multi-stage pipeline to transform raw data into stable user roles, as illustrated in the flowchart below.
- Feature Vectorization: Raw check-in data is converted into a User Context View Preference Set (UFS), capturing user preferences across various temporal and categorical dimensions (e.g., activity type vs. time of day).
- Initial Discovery: K-means++ is employed to generate an initial set of user roles. While K-means++ improves upon standard K-means by optimizing initial centroid placement, it still lacks the desired level of stability for production environments.
- Reinforcement Learning Optimization: To refine these initial clusters, the authors introduce an RL framework. In this model, the state is defined by the current user-role assignments, and actions involve reassigning users to different roles. The reward function is based on the Silhouette Coefficient, which measures cluster cohesion and separation. Through iterative "polishing," the RL agent optimizes the cluster boundaries until a stable, high-quality state is reached.
Experimental Results
The method was validated using one real-world dataset (Foursquare NYC with over 227,000 check-ins) and two large synthetic datasets to ensure scalability and data independence.
- Enhanced Quality: The RL optimization nearly doubled the clustering quality, raising the average Silhouette Coefficient from approximately 0.3 to over 0.7.
- Superior Stability: Traditional K-means++ exhibited significant randomness, with up to 20% of users changing roles between runs. The RL-enhanced method reduced this instability to less than 5%.
- Interpretability: The system successfully identified human-readable roles. For example, "Noon Outdoor Activists" showed peak activity in parks during midday, while "Early Morning Revelers" were most active in nightlife categories after midnight.
Discussion and Future Work
While the RL optimization significantly improves results, it introduces additional computational overhead; for very large datasets, convergence can take significant time. Furthermore, the performance is sensitive to specific hyperparameters, which currently require manual tuning through experimental trial and error. Future research will explore Deep Reinforcement Learning (DRL) architectures and the integration of more diverse user features beyond time and location to further enrich the discovered roles.
Summary updated