Previous Article in Journal
On Smart Cities and Triple-Helix Intermediaries: A Critical-Realist Perspective
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Knowledge Graph-Enhanced Hidden Markov Model for Personalized Travel Routing: Integrating Spatial and Semantic Data in Urban Environments

1
Hunan Key Laboratory of Geospatial Big Data Mining and Application, Hunan Normal University, Changsha 410081, China
2
School of Geographical Sciences, Hunan Normal University, Changsha 410081, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Smart Cities 2025, 8(3), 75; https://doi.org/10.3390/smartcities8030075
Submission received: 24 February 2025 / Revised: 19 April 2025 / Accepted: 22 April 2025 / Published: 24 April 2025

Abstract

:

Highlights:

What are the main findings?
  • We introduced a novel knowledge graph-based Hidden Markov Model (KHMM) that significantly enhances personalized route recommendations by effectively integrating spatial and semantic data from POIs.
  • By leveraging knowledge graphs, the KHMM expands the traditional Hidden Markov Model’s state space to capture multi-dimensional and higher-order relationships between POIs.
What are the implications of the main findings?
  • Improving adaptability to fluctuating user preferences and real-time travel conditions is crucial for developing intelligent transportation systems that can respond to the evolving needs of urban travelers, thereby fostering smarter cities.
  • Providing insights into factors influencing travel behavior deepens the understanding of how spatial and semantic relationships shape route selection, having far-reaching implications for transportation planners and urban policymakers implementing tailored solutions to enhance urban mobility and efficiency.

Abstract

Personalized urban services are becoming increasingly significant in smart city systems. This shift from intelligent transportation to smart cities broadens the scope of personalized services, encompassing not just travel but a wide range of urban activities and needs. This study proposes a knowledge graph-based Hidden Markov Model (KHMM) to improve personalized route recommendations by incorporating both spatial and semantic relationships between Points of Interest (POIs) in a unified decision-making framework. The KHMM expands the state space of the traditional Hidden Markov Model using a knowledge graph, enabling the integration of multi-dimensional POI information and higher-order relationships. This approach reflects the spatial complexity of urban environments while addressing user-specific preferences. The model’s empirical evaluation, focused on Changsha, China, examined how temporal variations in public attention to POIs influence route selection. The results show that incorporating dynamic temporal and spatial data significantly enhances the model’s adaptability to changing user behaviors, supporting real-time, personalized route recommendations. By bridging individual preferences and road network structures, this research provides key insights into the factors shaping travel behavior and contributes to the development of adaptive and responsive urban transportation systems. These findings highlight the potential of the KHMM to advance intelligent travel services, offering improved spatial accuracy and personalized route planning.

1. Introduction

Route recommendation has emerged as a pivotal research area in smart city systems, with increasing attention directed toward developing intelligent, personalized solutions [1,2]. This research area finds critical applications in next POI recommendation techniques [3,4,5,6,7], predicted destination identification [8,9,10], travel planning [11,12], and personalized route recommendations [13,14,15], providing both convenience and efficiency in daily life. With the ongoing advancements in intelligent technologies and big data analytics, the scope and utility of route recommendation systems are poised to expand significantly.
Developing travel routes that balance universal applicability with personalized customization requires leveraging advanced information technologies, real-time data, and intelligent analytical frameworks. The primary challenge lies in reconciling the heterogeneous preferences of individuals with the general requirements of a diverse user base. Achieving this balance necessitates sophisticated personalization methods capable of catering to diverse user preferences and contexts. Moreover, the increasing complexity of user needs has elevated the significance of understanding subjective emotions and preferences in personalized route recommendation tasks [16,17,18]. Research has demonstrated that extracting the complex, abstract patterns of user behavior and preferences from extensive datasets enables a deeper understanding of user interests, thereby enhancing the connection between users and POIs [19,20,21]. This connection underpins the development of personalized routes tailored to individual users [22]. Incorporating the emotional attributes of POIs alongside geographic properties provides additional insights into user sentiments, further improving the quality and relevance of personalized recommendations [23].
With the diversification of travel purposes and the expansion of road networks, traditional route planning algorithms, such as Dijkstra, A*, and Floyd–Warshall, face significant limitations in their computational efficiency and adaptability to dynamic contexts. These algorithms rely heavily on static data and predefined heuristics, rendering them inadequate for capturing the dynamic interplay of user preferences, trip purposes, and real-time road conditions. Moreover, their lack of a user-centric experiential design often results in less interpretable recommendations. Consequently, researchers have shifted toward more comprehensive approaches that prioritize the holistic travel experiences of users. Numerous methods have been proposed for generating personalized route recommendations [24,25,26]. Among these, recurrent neural networks (RNNs) have exhibited strong performance in location prediction tasks, with studies focusing on enhancing or hybridizing RNN models to improve POI prediction [27,28,29]. For instance, [30] proposed a personalized recommendation model leveraging semantic features extracted from tourists’ trajectories and travel contexts. Similarly, Hidden Markov Models (HMMs) have proven effective for modeling check-in sequences and addressing new POI recommendation challenges [31]. Deep learning techniques, with their capacity to integrate and analyze multi-faceted features, have further bolstered travel recommendation systems [32,33,34]. Additionally, multi-objective optimization strategies, including hybrid tabu search algorithms [35], greedy genetic algorithms [36], and Pareto-based approaches [37], have been actively explored to meet diverse user demands.
Despite these advances, several critical gaps remain in personalized route recommendation research. Existing studies predominantly emphasize the correlation between neighboring POIs, often neglecting longer temporal dependencies and spatiotemporal correlations when providing continuous POI recommendations. Additionally, these models frequently overlook the influence of temporal and environmental interactions on travel behavior. Integrating static and dynamic data more effectively is crucial for improving the quality and adaptability of travel recommendations. Knowledge representation and organization play a pivotal role in addressing these challenges. Knowledge graphs (KGs) emerge as a promising semantic network framework, capable of integrating and representing vast amounts of structured knowledge, including geographic information, POI features, user preferences, and other related attributes. By incorporating dynamic updates and rich semantic associations, KGs can overcome the limitations of traditional static data-driven algorithms, thereby enhancing the adaptability and real-time applicability of route planning methods.
Moreover, KGs facilitate the integration of diverse data sources, enabling the identification of latent correlations among POIs and fostering stronger knowledge relevance and information expansion. These capabilities allow for the more comprehensive modeling of user preferences and travel needs, thereby providing diverse and tailored recommendation options. As auxiliary information, KGs address challenges such as cold starts and data sparsity, significantly improving the performance and interpretability of recommendation systems [38]. Recent applications of KGs in recommendation systems underscore their potential to enrich the understanding of relationships among entities, such as geographic locations, POI attributes, user profiles, and traffic networks. This integration aids in analyzing urban travel problems, including POI recommendations [39,40] and personalized travel planning [41]. Additionally, KGs effectively capture user preferences by analyzing interactions across multiple types of entities and relationships, thereby enhancing user modeling for POI recommendation tasks [42]. For example, [43] utilized KGs to construct a preference-based knowledge graph, associating users with POI attributes and deriving similarity matrices for POI recommendations. Similarly, attention mechanisms have been integrated with KGs to improve sequential POI recommendations [44,45]. Recent studies have also leveraged KGs to optimize urban transportation networks [46,47] and enhance the performance of tourism recommendation systems [48,49].
However, existing studies largely focus on the relationship between POIs and users, often overlooking the multi-dimensional attributes of POIs, including both spatial and non-spatial factors, that are critical for addressing path-finding challenges in route recommendation tasks. These deficiencies may reduce the adaptability of recommendation algorithms to diverse scenarios in practical applications and affect the accuracy and effectiveness of personalized route recommendation. To address these limitations, we propose a novel KHMM framework that integrates both spatial and semantic relationships between POIs into a unified decision-making model for personalized route recommendation.
The proposed KHMM framework expands the state space of traditional Hidden Markov Models by incorporating knowledge graphs, enabling the integration of multi-dimensional POI information and higher-order relationships. Specifically, the framework leverages the associations among multi-dimensional POI attributes to dynamically map crowdsourced spatiotemporal data onto real-world road networks, thereby recommending optimal routes tailored to user preferences. The key contributions of this study are as follows:
  • We propose the KHMM, a personalized route recommendation method that combines knowledge graphs with an enhanced Hidden Markov Model to incorporate spatial and semantic relationships between POIs into a unified decision-making framework.
  • We constructed a POI-KG that captures the multi-dimensional attribute features of POIs, enhancing entity information, improving entity connectivity, and addressing the path-finding challenge through an enhanced correlation between spatial and non-spatial attributes.
  • We introduce a POI popularity index that accounts for public attention volumes across different time periods. This index integrates bidirectional weights within the KG, combining static and dynamic data while considering the impact of environmental interactions on travel patterns. This integration yields more accurate and context-aware route recommendations.
The rest of this paper is organized as follows: Section 2 introduces the KHMM, presenting the model’s architecture and working principles in detail. Section 3 reports experimental results for a real-world road network. Finally, Section 4 provides a discussion and conclusions.

2. Methodology

This study proposes a KHMM for generating practical and personalized travel route recommendations. As illustrated in Figure 1, the KHMM framework integrates multivariate data, including POIs, public recommendation data, road network data, and POI attribute data, to establish a crowdsourced geospatial information base. Geospatial associations are reconstructed using topological and spatial connections, while POIs are categorized into distinct groups based on their attributes to construct a travel KG. The KG calculates weights based on POI attributes to establish attribute-level associations among POIs. Finally, a two-layer HMM is employed to identify candidate points within the actual road network, enabling the generation of dynamic and personalized travel routes. The proposed method is detailed in the following subsections.

2.1. Problem Statement

We first introduce several notations related to personalized route recommendations. Considering a set of subjects, S, a person, u, is interested in a small subset of S, denoted as S u = s u 1 ,   s u 2 ,   ,   s u n u S u , where n u represents the number of subjects of interest to u. For each subject, s u i S u , there exists a set of m i POIs, denoted as P s u i = p s u i 1 ,   p s u i 2 ,   ,   p s u i m i P s u i , where P is the universal set of POIs. As previously mentioned, the public attention to each element in P s u i may vary significantly. Among these, k i elements in P s u i receive major public recommendations and are termed core POIs, denoted as P ^ s u i = p ^ s u i 1 ,   p ^ s u i 2 ,   ,   p ^ s u i k i P s u i . Personalized route recommendations for u should prioritize traversing as many core POIs as possible, ordered by interest, i.e., R u S u . Inspired by previous studies on route recommendations [50], practical routes are also constrained by the road network structures connecting core POIs across various values of P ^ s u , namely P ^ s u ’s road constraints. Therefore, we mathematically define the recommended routes as
R u p ^ s u 1 ,   p ^ s u 2 ,   ,   p ^ s u n u | p ^ s u i P s u i
The goal of the personalized route recommendation problem is to maximize user satisfaction. To achieve this, we aimed to maximize the overall public recommendation score of POIs while minimizing the route distance, following the user’s preferred subject order. In this context, public recommendations act as hard negative samples that contrast with personal interests, adding complexity to the task. Our model learns to extract the public’s cognitive knowledge of POIs, predicting which POIs in S u are likely to be valued without requiring any information about future target POIs from the user. Consequently, although the ground truth of core POIs is constructed using historical public comments, our model remains effective in satisfying personal interests.

2.2. Definition of Foundations in Route Planning

Definition 1 (POI Subject).
Each POI is associated with a set of characteristics, referred to as feature words. These characteristics represent POI tag information, which describes the textual data associated with the POI. POIs sharing identical features and characteristics are grouped into the same category. For example, POIs with the attribute label “higher education institution” are categorized as a “University.” Consequently, POIs with this type of attribute label are classified under the “University” category. Let S denote the set of subjects. A subset of subjects for a user, u, is denoted as S u = s u 1 ,   s u 2 ,   ,   s u n u S u .
Definition 2 (Subject Access Sequence).
A subject access sequence is a set of POI subjects representing the sequence of POI subjects accessed by a user based on their personal preferences. Formally, it is defined as a set of user-selected subject sequences, S u = s u 1 ,   s u 2 ,   ,   s u i . Once a user completes the subject selection process, the access sequence is considered to have been determined. The relationship between the subjects and their corresponding POIs is defined as s u i p s u i 1 ,   p s u i 2 ,   ,   p s u i m i .
Definition 3 (Projection Point).
POIs are typically not located directly on roads. During route calculation, each POI is projected onto the nearest road segment [51]. The projected position of a POI, p s u i m i , in an adjacent road section is referred to as a projection point, denoted as x m i , j . Since a POI may have multiple adjacent road sections, it can generate multiple projection points. The projection point p r o j ( p s u i m i , r j ) is calculated by determining the shortest distance from the POI to the road segment. The relationship between a POI and its projection points is defined as p s u i m i = ( x 1 , j ,   x 2 , j ,   ,   x m i , j ) . A distance threshold is established based on the spatial relationship between the POI and the road segment, and projection points are calculated only for adjacent road sections within this threshold. Figure 2 illustrates the projection of two POIs onto a road network. For instance, p s u i 1 has two projection points in adjacent road sections, while p s u i 2 has three projection points.

2.3. Construction of Knowledge Graph

Integrating KGs with POIs enables the discovery of rich semantic relationships among POIs, facilitating the exploration of their connections. Consequently, KGs can significantly enhance the quality of personalized recommendations. POIs inherently possess extensive spatiotemporal information and exhibit strong spatial relevance. Analyzing the correlations between POIs using their spatiotemporal relationships is crucial for generating effective recommendations. This subsection elaborates on the construction of the POI-KG. A knowledge network is established by building a POI knowledge base and investigating the correlations between POIs. The degree of association between POIs is more comprehensively represented as the amount of POI tag information in the KG increases, enabling a deeper understanding of the underlying information. The correlation analysis evaluates the proximity between POIs and their attributes, leading to the construction of a weighted, directed KG. Finally, the A* algorithm is employed to identify the shortest route within the KG.

2.3.1. The Fundamentals of KGs

We can construct a POI knowledge base using POI entities, their attributes, and the relationships between them, such as their category, address, and time. As semantic networks, KGs exhibit significant expressive power and modeling flexibility. They can effectively model real-world entities, concepts, attributes, and relationships. A KG is a comprehensive knowledge network composed of nodes and edges. Nodes represent concepts or entities, while edges indicate semantic relationships between entities and concepts. The fundamental structure of a KG is represented as G = ( E ,   R ,   A ) , which encodes the triples of ‘entity-relationship-entity’ and ‘entity-attribute-attribute value’ [52]. E denotes entities, the basic elements in the KG, and primarily refers to subjects and POIs. A represents attributes, which describe the properties, characteristics, and features of POIs, such as addresses and categories. R denotes relationships, which connect two entities or entities and their properties, capturing the associations between them.
The entity and attribute knowledge in a POI-KG is extracted from diverse sources and structures, primarily sourced from encyclopedic web pages, such as Baidu Encyclopedia and Wikipedia, as well as professional travel websites. POI entities and attributes were identified by analyzing related studies. Table 1 provides detailed information about POI attributes, which include the unique POI identifier (PID), name, subject, address, ticket price, construction time, surrounding POIs, opening hours, and other relevant attributes. Additionally, the attribute data corresponding to different POIs and subjects may vary. This study selected Changsha City in Hunan Province as a case study to construct the POI attribute database.

2.3.2. Building POI-KG

Figure 3 illustrates the flowchart of POI-KG construction. The process begins with knowledge extraction from the captured data sources, which includes entity extraction, relationship extraction, and attribute extraction. The second step involves defining the POI ontology, a semantic data model that specifies the types of entities within a domain and describes their properties. The POI ontology serves as a framework for incorporating information about individual POIs, enabling the creation of instances for each ontology relationship. Subsequently, the KG employs a top-down approach to identify POI entities, achieving entity definition. Attributes are categorized into primary and secondary attributes based on their association with POIs. Primary attributes include categories that reflect the relevance of entities to each other, such as the subject, construction time, and surrounding POIs. Secondary attributes describe the unique features of POIs, such as their address and name. The attribute labels are further refined based on the unique characteristics of each POI to highlight distinctions among various POI types. Next, the attributes and relationships between entities and attributes are established. Finally, as knowledge accumulates, these entities and their interconnections are integrated into a comprehensive POI-KG.
Figure 4a depicts a unidirectional POI-KG, illustrating the semantic relationships between POIs and their attributes. The attributes of a POI include its name, subject, category, address, attraction level, construction time, opening hours, characteristics, ticket price, surrounding POIs, relevant POIs, surrounding transportation facilities, the recommended duration of a visit, suitable seasons for visiting, and contact information. There are three sizes of nodes: the largest nodes represent subjects, the medium-sized nodes represent POIs, and the smallest nodes represent attribute entities. Additionally, different colors in the diagram denote various entities and attributes, while edges represent semantic relationships between entities and attributes. Entities can be linked through shared attributes, establishing associations between different entities. A POI-KG strengthens the connections between POIs, weaving the knowledge web together more tightly and enabling knowledge path queries between entities.

2.3.3. Calculation of Edge Weight

The primary objective of constructing a KG is to analyze the associations between POIs to generate personalized recommendations. To achieve this, we introduced POI recommendation degrees and valid data derived from survey questionnaires to determine the edge weights in the POI-KG. These surveys were designed to capture individuals’ preferences for POIs and their selection criteria based on various attributes. The collected indices were then utilized to construct a bidirectional edge weight function, which quantified the weight of each edge. These edge weights reflected the strength of the interrelationships between the nodes connected by each edge.
When constructing a KG, certain POI attributes are exclusive and closely tied to specific POIs, while others may connect with surrounding nodes through shared attributes or relationships. To deepen these connections, we assigned weights to the edges, quantifying the similarity and strength of associations between POIs. This weight design enhanced the KG’s semantic richness and reasoning capabilities. In Figure 4b, the weight relationships between a POI and its attributes are depicted, with larger values indicating stronger correlations. For instance, the probability that the scenic area connects to Orange Island is 1.9810, signifying that Orange Island has a popularity index of 1.9810. Since Orange Island is classified as a scenic spot, the probability of it connecting to the scenic spot category is 1. Other relationships involved attributes such as the name, subject category, attraction level, construction time, surrounding POIs, and related POIs.
A questionnaire was introduced to determine the weights of POIs and attribute nodes. The questionnaire included standard socio-demographic variables such as gender, age, income, and work or study status [53]. Respondents from diverse groups were asked about the attributes of attractions they considered when planning a tour. Based on the questionnaire results, the average score for each attribute was calculated and normalized to assign weights to each attribute. The following analysis examines the impact of various attributes on POI selection:
  • Popularity index of a POI: Users exhibited varying levels of interest and search activity for different POIs, leading to the generation of a POI popularity index. In this study, we utilized the 360 Trends Index [54] to calculate the popularity index of POIs. To ensure comparability across datasets, each theme was treated as a separate dataset, and the data were standardized using z-scores, enabling cross-dataset comparison and analysis. Additionally, considering the spatial autocorrelation of the area and the spatial correlations among POIs within a region, we employed the Kriging interpolation method to estimate values for POIs lacking index data. Finally, a constant related to the data range was added to all values to ensure they remained positive. The formula for calculating the POI popularity index is defined as follows:
    R ( P s u i ) = H p ^ s u i k i μ σ + f
    where H p ^ s u i k i represents the value of the 360 Trends Index. R ( P s u i ) denotes the transformed value. μ is the mean score of the entire sample space. σ is the standard deviation of the entire sample space. f is a constant related to the data range, ensuring all values remain positive.
  • The rank of a POI. The rank of a POI typically represents its attraction level, signifying the overall quality of the location. Users often consider this rank when visiting a site. We calculated the weight of POI rankings based on the analysis of data from the collected questionnaires. The formula for calculating the rank of a POI is defined as follows:
    R r a n k = n r a n k N
    where n r a n k represents the number of people who selected the indicator. N represents the total number of participants. According to the questionnaire survey data, the value of R r a n k was 0.27.
  • Construction time. Each POI has a corresponding time of construction. Different POIs may share the same construction time, establishing a correlation between them. Based on the analysis of data from the questionnaire, the weight of the construction time R c o n was calculated to be 0.24.
  • Opening hours. POIs and scenic spots have specific operating hours. Some are open all day, while others operate within fixed periods. For instance, museums generally close on Mondays and have established daily opening and closing times. POIs with different themes may share the same opening hours, suggesting a correlation between them. Based on the results of the questionnaire survey, the weight of the opening hours R o p e n in the POI KG was 0.18.
  • Surrounding POIs. Users often want to learn about other nearby POIs when visiting a particular one. Therefore, POIs that feature a wide range of nearby attractions are more likely to capture users’ interest. In the POI-KG, the correlation between POIs was strengthened by introducing the consideration of attribute relationships among nearby POIs. This attribute was calculated by considering a POI as the center of a circle, setting a reasonable radius as the threshold for buffer analysis, and taking into account the spatial location relationship of the POI. The edge weights of surrounding POIs were calculated using the POI popularity index as the weight value.
  • Related POIs. When individuals search for a POI online, related POIs will appear. These POIs may be thematically relevant or geographically related to the target location, reflecting specific needs or interests at a given geographical point. The edge weights of these relevant POIs were calculated using the POI popularity index as the weight value.

2.3.4. Knowledge Graph Path Planning Based on A*

The KG constructed represents a weighted directed graph, which can be converted into an adjacency matrix and stored as arrays containing node and edge information. The A* (A Star) algorithm, renowned for its effectiveness in path-finding and graph traversal, was employed due to its notable performance and accuracy. Especially in directed graphs with weighted edges, A* can excel at efficiently computing the shortest path among multiple nodes. Consequently, we utilized the A* algorithm to search for the shortest path within the KG of POIs.
Based on the definition of entity–attribute relationships, the relationships were considered edges, and the above formula was used to calculate the weight coefficients of each edge. A weighted directed KG was constructed, and the shortest distance between nodes could be found according to the weight coefficients of the edges. We used a weighted adjacency matrix to represent the topology. The adjacency matrix was a two-dimensional array. It was based on using nodes and attributes in the KG to form the set vertex (n), and the relationship between them formed the edge (r). If there was a relationship between entities, the weights were set for the edges. If there was no edge, the weight was infinite. Where G r = ( V ,   E ) is a directed graph, V = 1 ,   2 ,   ,   N with N > = 1 , and let c : E ( G r ) R be an arbitrary weight function on the edges of G r . G r is stored as an adjacency matrix with n vertices; therefore, the adjacency matrix A is an n n square matrix defined as
a r c [ i ] [ j ] = W i j ,   ( v i ,   v j ) E 0 ,   i = j
The user-selected subject access sequence is taken as the input target, and the sequence is followed to find the shortest path sequentially. The algorithm will first confirm an intermediate node for given target nodes. It then judges whether the shortest distance between the two target nodes is less than the sum of the distances from the first target node to the intermediate node and then to the second target node. If the condition is met, the intermediate node is on the shortest path and the route is updated. Finally, the calculation of the shortest path is complete. The final output path is represented as s u b j e c t P O I a t t r i b u t e P O I s u b j e c t , which contains the POIs and attributes. The POIs, which are candidate points, will be used as hidden states in the two-layer HMM described in Section 2.4. The optimal route is calculated by combining these results with data on the road network.

2.4. Two-Layer Hidden Markov Model

A two-layer HMM is the core framework of the KHMM, with its state space comprising the observation state, hidden state, observation probability, and transition probability. It involves a dual stochastic process, effectively modeling random jump systems [55]. Consequently, we utilized an improved two-layer HMM method, combined with a KG, to model the route planning process. Figure 5 illustrates the KHMM. This model consists of three state space layers, differing from the traditional model through the incorporation of a KG between the observed and hidden states. Initially, the observed state space consists of user-determined access sequences, O u i , represented by the class of POIs. The observed states find the shortest path in the KG, where the output POI becomes the candidate point. The hidden state space is divided into two layers: the first layer includes POIs outputted from the KG, and the second layer comprises projection points. Transition probabilities between the hidden states are calculated in the second layer, while emission probabilities are determined between the observed and hidden states.

2.4.1. Construction of KHMM

  • Observations. The observation state space comprises several POI subjects. Users choose a sequence of POI subjects to visit based on their preferences. This sequence is a set of observation sequences ( O u 1 ,   O u 2 ,   O u 3 ,   ,   O u i ) where each observable state, O u i , represents a subject.
  • Hidden States. The hidden state space of this model is a structure with two layers. The first layer comprises the POI nodes output from the KG, forming a POI set. These POIs are treated as candidate points, denoted as ( p s u i 1 ,   p s u i 2 ,   ,   p s u i m i ) . The second layer is made up of the projection points x m i , j of the candidate points, denoted as ( x 1 , j ,   x 2 , j ,   ,   x m i , j ) .
  • Emission Probabilities. The emission probability is generated between the hidden and observed states, representing the probability distribution in this system state. In a real road network, each POI, p s u i m i , generates an emission probability, p ( p s u i m i | x m i , j ) , in the adjacent road segment r j . The projection point is expressed as x m i , j . The distance between the POI and the projection is calculated using the great circle distance, denoted as | | p s u i m i x m i , j | | g c . The emission probability is defined by the following formula [50]:
    p ( p s u i m i | x m i , j ) = p ( p s u i m i ) 1 2 π δ c e 0.5 p s u i m i x m i , j g c δ c 2
  • Transition Probabilities. The transition probability matrix indicates the chances of a state changing from one to another. It is represented as the probability of projected points in a hidden state undergoing a state transfer at different times. Specifically, the projection point of a POI, p s u i m i , on a road segment is indicated as x m i , j . The projection point of the next POI p s u i + 1 m i + 1 is denoted by x m i + 1 , j . The “route distance” is defined as | | x m i , j x m i + 1 , j | | r o u t e , which is the shortest path between the two projection positions. The distance between two candidate points is determined using the great circle distance, indicated as | | p s u i m i p s u i + 1 m i + 1 | | g c . The route distance between the projected points is compared to the great circle distance between POIs. In our experiments, a shorter road path distance between a pair of matched projected points closely aligned with the distance between the POIs [56]. The trend in the absolute value of the difference between the POI’s great circle distance and the path distance of the projection points was calculated, conforming to the exponential probability distribution given by Equation (6).
    p ( d t ) = 1 γ e d t / γ
    d t = p s u i m i p s u i + 1 m i + 1 g c x m i , j x m i + 1 , j r o u t e t i m e i n t e r v a l t i m e i n t e r v a l
    t i m e i n t e r v a l = x m i , j x m i + 1 , j r o u t e v e l o c i t y
    The γ parameter accounts for the difference between the route distance and the great circle distance. The t i m e i n t e r v a l is generally obtained using the ratio of the route distance | | x m i , j x m i + 1 , j | | r o u t e to the standard speed limit of urban roads, v e l o c i t y . A vehicle speed of 40km/h was used as the reference value to perform the calculation. The parameters are explained in detail in the Experimental Section.

2.4.2. Generation of Recommended Routes

The KHMM generates routes using the path-finding principle of the Viterbi algorithm [57]. This algorithm identifies the most likely sequence of hidden states through dynamic programming, thereby revealing the path with the highest probability. A key characteristic of the Viterbi algorithm is that it ensures the sub-routes between each node are optimal. The maximum probability of the path between each state node is calculated recursively as a product of probabilities. After determining the path at each step, the optimal route is identified through backtracking.
In our work, the model was provided with a set of observations to identify the observed states. The POI in the KG output formed the first hidden layer, which served as the starting point for the Viterbi algorithm. The first hidden layer then determined the elements of the second layer’s projection points. Identifying the most probable sequence of hidden states was a critical aspect of this process. The second layer calculated the probability of a transition between observed and hidden states for each observed state. This involved identifying the maximum-probability path using the Viterbi algorithm. The path with the highest probability represented the optimal route, and the output node corresponded to the best projection point.

3. Experiments

This section presents experiments conducted to evaluate the effectiveness of the KHMM for personalized route recommendation using real-world datasets. First, we describe the experimental dataset, data preprocessing steps, and parameter configurations. Next, we analyze the results obtained using the KHMM approach. Finally, we compare the performance of the KHMM method with that of traditional methods and provide a detailed analysis of the findings. The experiments were conducted in a controlled environment using Python 3.8, ArcGIS 10.8, and QGIS 3.10.0.

3.1. Experimental Data

This study selected Changsha, Hunan Province, as the study area and obtained spatiotemporal data from crowdsourced sources, including POIs, road networks, OpenStreetMap (OSM), POI popularity indices, and POI attributes. A total of 300 POIs were selected as target sites to ensure the authenticity and validity of the experimental results. These POIs, primarily city tourism sites, were acquired using Baidu Map and OSM, with positional information extracted for road network analysis. To avoid data duplication, the collected POI data were processed to remove redundancies. Large scenic areas, which often contain multiple attractions, were treated as single POI clusters or, in the case of well-known landmarks, as individual POIs. Based on their attributes, the POIs were categorized into 21 themes: Museums/Exhibition Halls, City Parks/Squares, Urban Landmarks, Universities, Zoological and Botanical Gardens, scenic spots, Shopping Centers, Exhibition Centers, Sports Centers, Memorials, Transportation Hub Stations, Churches, Theaters, Technology/Art Galleries, Commercial Plazas, Commercial and Cultural Streets, Temples, Libraries, Historical Sites, Amusement Parks, and Secondary Schools.
The road network for Changsha was obtained using the OSM platform. OSM is a free and collaborative mapping service that allows users to modify, update, and improve map data. The road network consisted of multiple road segments: G = ( r 1 , r 2 , , r j ) . Each road segment included a unique Feature ID (FID) value, start and end points, length, and starting coordinates.
The POI popularity index was derived from the 360 Trends Index, a comprehensive big data platform that monitors internet users’ browsing, search, and social media activity. This index reflects users’ search behavior and interest levels in specific keywords over time, providing insights into trending topics, user needs, and the demographic attributes of keyword searchers. Additionally, the 360 Trends Index is updated in real time, enabling access to search popularity data for different periods and facilitating a timely understanding of changing user interests. The monthly values from the 360 Trends Index for selected POIs in 2022 are presented in Table 2, illustrating their variation over time.
An online questionnaire was designed to gather user preferences for POIs and their choice of POI attributes. The questionnaire comprised 56 questions divided into three groups to collect specific and balanced information without favoring any particular POI or theme. To ensure data validity and maintain a consistent response rate, 180 questionnaires were distributed, resulting in 147 valid responses. The reliability of the survey participants and content was ensured by the completion of the questionnaire within a short time frame.
The data sources for the POI-KG included encyclopedic web pages such as Baidu Encyclopedia, Wikipedia, Qunar, Ctrip, and attraction-related websites. The attributes of the POIs encompassed their name, subject, category, address, attraction level, construction time, opening hours, characteristics, ticket price, surrounding POIs, relevant POIs, nearby transportation facilities, the recommended duration of a visit, suitable seasons for visiting, and contact information. The POI knowledge graph was constructed using Neo4j [58] for storing and visualizing nodes and attributes. By uncovering entities and relationships between POIs and their attributes, the constructed POI knowledge base included 3724 node labels and 9300 relationships.

3.2. Parameter Settings

In our route recommendation approach, δ c and γ are key parameters [56], determined by the positional measurements between POIs and their projection points. The parameter δ c is related to the emission probability, with its value derived from the difference in the great circle distance between the POI and the projected point. A higher value of δ c indicates lower confidence in the positional measurement. Conversely, γ represents the difference between the great circle distance of POIs and the route distance of the projected points. The value of γ varies across different groups of experimental subjects and is influenced by the data collected from these subjects. We employed the median absolute deviation (MAD) to estimate these parameters, as defined by the following equations:
δ c = 1.4826 × m e d i a n t t p s u i m i x m i , j g c
γ = m e d i a n t p s u i m i p s u i + 1 m i + 1 g c x m i , j x m i + 1 , j r o u t e ln 2
These parameters were estimated directly from the experimental data in this study. Based on the experimental data, the value of δ c was determined to be 35.95 m. The value of γ , however, was specific to each group of experimental subjects.

3.3. Validity Analysis

Volunteers were recruited to participate in the development of personalized travel itineraries. Figure 6 shows the user-friendly interface, enabling volunteers to easily select travel subjects of interest and determine visit sequences based on their preferences. Three representative user plans created by these volunteers were selected to test the applicability and feasibility of the KHMM model.
We also examined the impact of POI recommendation indices from different periods on route recommendations. The POI popularity indices from February, May, August, and November were selected as parameter indicators for the calculations. First, the recommendation index was used as the edge weight, and the A* algorithm was applied to find the shortest path in the KG based on the visit sequences. Second, the output POIs represented the first hidden state, determining the second hidden element in the KHMM. Finally, the user obtained a complete optimal path within the road network.
Based on the subjects and visit sequences from the first group of experiments, the shortest route was output in the POI-KG. As illustrated in Figure 7, large pink nodes represented subjects while small nodes represented POIs, with different colors indicating different POI categories. Edge weights in the KG were based on the popularity indices of POIs from different months, reflecting variations in the POI outputs for different subjects across the months. Figure 8 depicts the personalized route recommendation output from the KHMM. The POIs from the POI-KG served as the first hidden state in the KHMM, which were then mapped to the actual road network to calculate the optimal projection position. Finally, a complete optimal route was recommended based on the user’s visit sequence.
Figure 8a shows the optimal recommended route for February, with numbers indicating the sequence of projection points. Identifying the projection points illustrated the importance of and priorities in route selection. For example, IFS had three projection positions in the road network: IFS 1, IFS 2, and IFS 3. Combining the location analysis of the previous IFS POI and the next POI, IFS 2 was selected as the optimal projection point. This selection was based not only on the geographical appropriateness but also on the convenience of the route. The distances between sequential projection points also influenced the selection of projection points. Figure 8b shows the recommended route for May, c for August, and d for December.
Figure 9 and Figure 10 show the optimal path results for experiment 2 and experiment 3. As is evident from the results, there were distinctions between the recommended routes in different months. This reflects the dynamic adjustment of POIs in routes over time. Such variations occur because each POI receives different levels of public attention at different times, and its search volume and popularity fluctuate. For example, some seasonal attractions may be popular in certain months and relatively quiet in others. The existence of such time sensitivity necessitates the consideration of seasonal and time-sensitive factors when planning itineraries to ensure that the recommended routes are both reasonable and attractive. Moreover, different environments and access sequences also influence the selection of POIs. The construction of travel routes is not simply a matter of stacking POIs but must account for the connections between them. When faced with different subject access sequences, intermediate nodes adapt to changes in the front and back nodes, optimizing the efficiency and attractiveness of the route. This adaptation responds to changing user needs and provides more personalized and dynamic POI recommendations.
On the other hand, the POI popularity index may have small values in one month but increase rapidly in another month. An increase in the popularity index raises the recommendation rate. However, the most popular POI does not necessarily represent the best choice for the subject. Distance factors and other additional influencing factors are also considered to calculate the best route. Most candidates correspond to the maximum recommendation value of POIs within the subject. This clearly demonstrates that the POI popularity index is a significant influencing factor in route recommendation.
This method reflects the dynamic changes in routes and captures their variation over time by comprehensively considering the recommendation degree values of POIs over different time scales. In practical applications, people’s interest in and demand for locations change over time. As an important indicator, the POI popularity index intuitively reflects this trend. Therefore, by combining the POI popularity index and POI attribute information for correlation analysis, users can receive more personalized and timely route recommendation services. This method improves the user’s travel experience, enhances the accuracy and practicality of route recommendations, and provides better route options suited to the user’s interests and current time context.
The POI-KG structure enhances the connections between POIs by leveraging POI attributes to reveal public preferences and construct a preference matrix. This structure not only captures the static attributes of POIs but also dynamically reflects the changing trends in public interest. The KG helps identify relationships between the public, users, and POIs. Integrating the POI popularity index with a KG increases the relevance of the data. By capturing dynamic changes in POI indices and their broader context within the KG, we gain insights into the factors influencing user preferences and behaviors, leading to more contextually meaningful recommendations.
Users can further define their preferences based on attributes such as the POI type, ticket requirements, and attraction level, rather than just selecting topics of interest. For example, if a user prefers to visit free POIs, the system will avoid suggesting POIs that require a ticket. In the POI-KG, nodes that require a ticket to be purchased will be skipped. In our initial experiments, routing results based on May and November indicated that Yuelu Academy and Tianxin Pavilion required tickets. The personalized route recommendations were re-routed to satisfy the user’s preferences, resulting in recommendations for Changsha Museum, Yuelu Mountain, IFS, and Wenheyou.

3.4. Comparative Experimental Analysis

The proposed KHMM model was compared with three baseline methods: a HMM, the A* algorithm, and the Top POI Popularity approach.
  • HMM: A raw HMM relies on an initial state probability, a transition probability matrix, and an observation probability matrix. It uses POIs’ geographic locations to model data features, mapping positions to road segments to estimate POI states and predict sequences.
  • A* Algorithm: A* is a widely used path-finding and graph traversal algorithm that identifies the optimal path from a start node to a goal node in a graph or network. It minimizes the total cost for paths with multiple nodes.
  • Top POI Popularity: This method selects POIs with the highest popularity index within a subject area, using these as the basis for route planning.
The performance of these methods was evaluated using heuristic-based metrics [32], including the following:
  • POI Popularity: The sum of popularity indices for POIs along the recommended route.
  • Number of POI Similarities: The number of POIs consistent with the highest-ranked POIs in terms of popularity.
  • Route Distance: The total distance traveled for the recommended itinerary.
  • POI Recommendation Number: The total number of POIs recommended to the user during the itinerary.
Figure 11, Figure 12 and Figure 13 illustrate the routes generated by the KHMM and the baseline methods. In these figures, (a) shows the route generated by the KHMM, (b) shows the route generated by the HMM, (c) shows the route generated by A*, and (d) shows the route based on the highest POI popularity index. The results for the KHMM, HMM, A*, and Top POI Popularity were evaluated using the aforementioned metrics.
Figure 14 displays the total popularity indices of POIs for paths recommended across different months. The KHMM method consistently achieved high recommendation indices, with most suggested POIs ranking well within the overall index. In contrast, the HMM and A* yielded lower popularity indices, indicating that these methods overlook the degree of recommendation of POIs during path planning, potentially missing popular and worthwhile locations.
Figure 15 shows that the KHMM excelled in maintaining consistency with the most highly recommended POIs for each topic. Its recommendations shared over 50% similarity with the Top POI Popularity results, better matching top-ranked attractions. This demonstrates the KHMM’s ability to meet user expectations for highly popular destinations. In contrast, the HMM and A* yielded lower satisfaction levels.
Figure 16 presents the total route distances generated by the four methods. The HMM consistently produced the longest distances, likely because it prioritized state transition probabilities over distance optimization. The Top POI Popularity also failed to optimize the journey length effectively. While A* generated the shortest routes, the KHMM struck a balance, offering reasonable distances that considered user needs and the overall experience.
Figure 17 shows that the KHMM recommended more POIs than the standard method, which aligned POI counts with subject counts. For example, in the third experiment, the KHMM recommended six POIs per subject but output twelve POIs based on the POI-KG’s popularity index. By leveraging the KG’s rich information, the KHMM extended recommendations beyond specific visit topics, enabling users to discover related and potentially connected destinations. This enhanced the accuracy, diversity, and personalization of travel recommendations.

4. Discussion and Conclusions

This paper introduces a novel KHMM framework that integrates spatial and semantic relationships between POIs into a unified decision-making model for personalized route recommendations. By expanding the state space of a traditional HMM through the incorporation of knowledge graphs, the KHMM enables the integration of multi-dimensional POI information and higher-order relationships. The construction of a POI-KG establishes finer-grained relationships between POI entities and their attributes, enriching the dimensionality of POI data and enhancing their interconnectivity. Additionally, the introduction of a POI popularity index provides insights into public behavior and attention levels at different times. By combining POI attributes with user behavior data, the KHMM offers a deeper understanding of the connections between POIs and their relationships with users.

4.1. Embedding the Popularity Index Enhances Route Recommendations

Our case study in Changsha demonstrates the effectiveness of embedding the POI popularity index into the recommendation framework. As a quantitative measure of public attention to specific locations over time, the index reveals trends in POI popularity and their temporal variations. In the experiments, we collected data across different months to investigate the impact of time scales on the recommendation results. The findings indicate that POI recommendation values and suggested routes vary with time, underscoring the critical role of temporal dynamics in recommendation systems. This provides empirical support for optimizing future algorithms.
In practical applications, the user interest and demand for locations evolve over time. The POI popularity index captures these trends, enabling the KHMM to outperform traditional methods by aligning recommendations with public preferences. By incorporating dynamic temporal data, the KHMM enhances user satisfaction and ensures the timeliness of recommended routes.

4.2. Context-Aware Route Recommendations

The KHMM embeds a knowledge graph into a two-layer HMM, expanding the state space to leverage associations between multi-dimensional POI attributes. Crowdsourced spatiotemporal data are dynamically mapped onto the road network, enabling personalized route recommendations based on user preferences. The results demonstrate that incorporating dynamic temporal and spatial data improves the model’s adaptability to changing user behaviors, supporting real-time, context-aware recommendations. By bridging individual preferences and road network structures, our research offers key insights into the factors shaping travel behavior and contributes to the development of adaptive urban transportation systems.
Furthermore, the POI popularity index integrates bidirectional weights within the knowledge graph, combining static and dynamic data while accounting for environmental interactions. This integration yields more accurate and context-aware recommendations, highlighting the KHMM’s potential to advance intelligent travel services with improved spatial accuracy and personalized planning.
While the proposed KHMM model demonstrates satisfactory performance, further research is needed to incorporate additional factors. Future work will explore a broader range of entity data and relationships between entities and attributes. With the diversification of social platforms and user needs, new data sources for evaluating POIs and travel factors—such as transportation modes, travel times, and budgets—have emerged. Incorporating these factors will enhance route flexibility and recommendation accuracy, paving the way for more robust and adaptive travel planning systems.

Author Contributions

Conceptualization, T.W.; methodology, Z.Z., J.Q. and T.W.; software, Z.Z.; validation, Z.Z. and J.Q.; formal analysis, Z.Z. and J.Q.; investigation, Z.Z. and J.Q.; resources, T.W.; data curation, Z.Z. and J.Q.; writing—original draft preparation, Z.Z. and J.Q.; writing—review and editing, T.W.; visualization, Z.Z.; supervision, T.W.; project administration, J.Q.; funding acquisition, T.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Scientific Research Foundation of Hunan Provincial Education Department under Grant 22B0054.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kumar, P.; Hariharan, K.; Manikandan, M. Hybrid long short-term memory deep learning model and Dijkstra’s Algorithm for fastest travel route recommendation considering eco-routing factors. Transp. Lett. 2023, 15, 926. [Google Scholar]
  2. Luo, J.; Duan, X. Intelligent recommendation of personalised tourist routes based on improved discrete particle swarm. Int. J. Comput. Sci. Eng. 2022, 25, 598–606. [Google Scholar]
  3. Bin, C.; Gu, T.; Sun, Y.; Chang, L. A personalized POI route recommendation system based on heterogeneous tourism data and sequential pattern mining. Multimed. Tools Appl. 2019, 78, 35135–35156. [Google Scholar] [CrossRef]
  4. Lu, Y.S.; Shih, W.Y.; Gau, H.Y.; Chung, K.C.; Huang, J.L. On successive point-of-interest recommendation. World Wide Web 2019, 22, 1151–1173. [Google Scholar] [CrossRef]
  5. Liu, Y.; Yang, Z.; Li, T.; Wu, D. A novel POI recommendation model based on joint spatiotemporal effects and four-way interaction. Appl. Intell. 2022, 52, 5310–5324. [Google Scholar] [CrossRef]
  6. He, X.; He, W.; Liu, Y.; Lu, X.; Xiao, Y.; Liu, Y. ImNext: Irregular Interval Attention and Multi-task Learning for Next POI Recommendation. Knowl.-Based Syst. 2024, 293, 111674. [Google Scholar] [CrossRef]
  7. Yao, Y.; Guo, Z.; Dou, C.; Jia, M.; Hong, Y.; Guan, Q.; Luo, P. Predicting mobile users’ next location using the semantically enriched geo-embedding model and the multilayer attention mechanism. Comput. Environ. Urban Syst. 2023, 104, 102009. [Google Scholar] [CrossRef]
  8. Yao, L.; Wang, J.; Wang, X.; Chen, A.; Wang, Y. V2X routing in a VANET based on the hidden Markov model. IEEE Trans. Intell. Transp. Syst. 2017, 19, 889–899. [Google Scholar] [CrossRef]
  9. Lassoued, Y.; Monteil, J.; Gu, Y.; Russo, G.; Shorten, R.; Mevissen, M. A hidden Markov model for route and destination prediction. In Proceedings of the 2017 IEEE 20th International Conference on Intelligent Transportation Systems (ITSC), Yokohama, Japan, 16–19 October 2017; pp. 1–6. [Google Scholar]
  10. Liu, S.; Wang, L. A self-adaptive point-of-interest recommendation algorithm based on a multi-order Markov model. Future Gener. Comput. Syst. 2018, 89, 506–514. [Google Scholar] [CrossRef]
  11. Chen, C.; Zhang, S.; Yu, Q.; Ye, Z.; Ye, Z.; Hu, F. Personalized travel route recommendation algorithm based on improved genetic algorithm. J. Intell. Fuzzy Syst. 2021, 40, 4407–4423. [Google Scholar] [CrossRef]
  12. Xu, Y.; Hu, T.; Li, Y. A travel route recommendation algorithm with personal preference. In Proceedings of the 2016 12th International Conference on Natural Computation, Fuzzy Systems and Knowledge Discovery (Icnc-Fskd), Changsha, China, 13–15 August 2016; pp. 390–396. [Google Scholar]
  13. Huang, J.; Liu, Y.; Chen, Y.; Jia, C. Dynamic recommendation of POI sequence responding to historical trajectory. ISPRS Int. J. Geo-Inf. 2019, 8, 433. [Google Scholar] [CrossRef]
  14. Halder, S.; Lim, K.H.; Chan, J.; Zhang, X. Deep learning of dynamic POI generation and optimisation for itinerary recommendation. In ACM Transactions on Recommender Systems; Association for Computing Machinery: New York, NY, USA, 2023. [Google Scholar]
  15. Noorian, A.; Harounabadi, A.; Ravanmehr, R. A novel Sequence-Aware personalized recommendation system based on multidimensional information. Expert Syst. Appl. 2022, 202, 117079. [Google Scholar] [CrossRef]
  16. Bin, C.; Gu, T.; Sun, Y.; Chang, L.; Sun, W.; Sun, L. Personalized POIs travel route recommendation system based on tourism big data. In PRICAI 2018: Trends in Artificial Intelligence: 15th Pacific Rim International Conference on Artificial Intelligence, Nanjing, China, 28–31 August 2018; Springer International Publishing: Berlin/Heidelberg, Germany, 2018; pp. 290–299. [Google Scholar]
  17. Lim, K.H.; Chan, J.; Karunasekera, S.; Leckie, C. Personalized itinerary recommendation with queuing time awareness. In Proceedings of the 40th international ACM SIGIR Conference on Research and Development in Information Retrieval, Tokyo, Japan, 7–11 August 2017; pp. 325–334. [Google Scholar]
  18. Fang, J.; Meng, X. URPI-GRU: An approach of next POI recommendation based on user relationship and preference information. Knowl.-Based Syst. 2022, 256, 109848. [Google Scholar] [CrossRef]
  19. Chen, J.; Ye, W.; Kang, S. Learning user preferences from Multi-Contextual Sequence influences for next POI recommendation. Electron. Res. Arch. 2024, 32, 486–504. [Google Scholar] [CrossRef]
  20. Ren, J.; Gan, M. Mining dynamic preferences from geographical and interactive correlations for next POI recommendation. Knowl. Inf. Syst. 2023, 65, 183–206. [Google Scholar] [CrossRef]
  21. Wang, J.; Huang, Z.; Liu, Z. SQPMF: Successive point of interest recommendation system based on probability matrix factorization. Appl. Intell. 2024, 54, 680–700. [Google Scholar] [CrossRef]
  22. Xu, X.; Wang, L.; Zhang, S.; Li, W.; Jiang, Q. Modelling and Optimization of Personalized Scenic Tourism Routes Based on Urgency. Appl. Sci. 2023, 13, 2030. [Google Scholar] [CrossRef]
  23. Zhao, G.; Lou, P.; Qian, X.; Hou, X. Personalized location recommendation by fusing sentimental and spatial context. Knowl.-Based Syst. 2020, 196, 105849. [Google Scholar] [CrossRef]
  24. Yochum, P.; Chang, L.; Gu, T.; Zhu, M. An adaptive genetic algorithm for personalized itinerary planning. IEEE Access 2020, 8, 88147–88157. [Google Scholar] [CrossRef]
  25. Wang, X.; Liu, Y.; Zhou, X.; Wang, X.; Leng, Z. A point-of-interest recommendation method exploiting sequential, category and geographical influence. ISPRS Int. J. Geo-Inf. 2022, 11, 80. [Google Scholar] [CrossRef]
  26. Fan, J.; Pan, C.; Geng, Y.; Li, S. A privacy-preserving time-aware method for next poi recommendation. Electronics 2023, 12, 3208. [Google Scholar] [CrossRef]
  27. An, J.; Li, G.; Jiang, W. NRDL: Decentralized user preference learning for privacy-preserving next POI recommendation. Expert Syst. Appl. 2024, 239, 122421. [Google Scholar] [CrossRef]
  28. Thaipisutikul, T.; Chen, Y.N. An improved deep sequential model for context-aware POI recommendation. Multimed. Tools Appl. 2024, 83, 1643–1668. [Google Scholar] [CrossRef]
  29. Zhao, P.; Luo, A.; Liu, Y.; Xu, J.; Li, Z.; Zhuang, F.; Sheng, V.S.; Zhou, X. Where to go next: A spatio-temporal gated network for next poi recommendation. IEEE Trans. Knowl. Data Eng. 2020, 34, 2512–2524. [Google Scholar] [CrossRef]
  30. Mou, N.; Jiang, Q.; Zhang, L.; Niu, J.; Zheng, Y.; Wang, Y.; Yang, T. Personalized tourist route recommendation model with a trajectory understanding via neural networks. Int. J. Digit. Earth 2022, 15, 1738–1759. [Google Scholar] [CrossRef]
  31. Kuang, L.; Tu, S.; Zhang, Y.; Yang, X. Providing privacy preserving in next POI recommendation for Mobile edge computing. J. Cloud Comput. 2020, 9, 10. [Google Scholar] [CrossRef]
  32. Halder, S.; Lim, K.H.; Chan, J.; Zhang, X. A survey on personalized itinerary recommendation: From optimisation to deep learning. Appl. Soft Comput. 2024, 152, 111200. [Google Scholar] [CrossRef]
  33. He, W. Application of light sensor localization based on deep learning algorithm in tourist path recommendation in cultural scenic spots. Opt. Quantum Electron. 2024, 56, 238. [Google Scholar] [CrossRef]
  34. Huang, X. Personalized travel route recommendation model of intelligent service robot using deep learning in big data environment. J. Robot. 2022, 2022(1), 7778592. [Google Scholar] [CrossRef]
  35. Han, B.; Zheng, X.; Guan, M.; Sun, L.; Zhang, Y. Personalized Route Recommendation with Hybrid Tabu Search algorithm Based on Crowdsensing. Int. J. Intell. Syst. 2023, 2023, 3054888. [Google Scholar] [CrossRef]
  36. Paulavičius, R.; Stripinis, L.; Sutavičiūtė, S.; Kočegarov, D.; Filatovas, E. A novel greedy genetic algorithm-based personalized travel recommendation system. Expert Syst. Appl. 2023, 230, 120580. [Google Scholar] [CrossRef]
  37. Zheng, X.; Han, B.; Ni, Z. Tourism Route Recommendation Based on A Multi-Objective Evolutionary algorithm Using Two-Stage Decomposition and Pareto Layering. IEEE/CAA J. Autom. Sin. 2023, 10, 486–500. [Google Scholar] [CrossRef]
  38. Song, W.; Duan, Z.; Yang, Z.; Zhu, H.; Zhang, M.; Tang, J. Explainable knowledge graph-based recommendation via deep reinforcement learning. arXiv 2019, arXiv:1906.09506. [Google Scholar]
  39. Chen, W.; Wan, H.; Guo, S.; Huang, H.; Zheng, S.; Li, J.; Lin, S.; Lin, Y. Building and exploiting spatial–temporal knowledge graph for next POI recommendation. Knowl.-Based Syst. 2022, 258, 109951. [Google Scholar] [CrossRef]
  40. Qian, T.; Liu, B.; Nguyen, Q.V.H.; Yin, H. Spatiotemporal representation learning for translation-based POI recommendation. ACM Trans. Inf. Syst. (TOIS) 2019, 37, 1–24. [Google Scholar] [CrossRef]
  41. Su, X.; He, J.; Ren, J.; Peng, J. Personalized Chinese Tourism Recommendation algorithm Based on Knowledge Graph. Appl. Sci. 2022, 12, 10226. [Google Scholar] [CrossRef]
  42. Hu, B.; Ye, Y.; Zhong, Y.; Pan, J.; Hu, M. Transmkr: Translation-based knowledge graph enhanced multi-task point-of-interest recommendation. Neurocomputing 2022, 474, 107–114. [Google Scholar] [CrossRef]
  43. Liu, Z.; Zhang, D.; Zhang, C.; Bian, J.; Deng, J.; Shen, G.; Kong, X. KDRank: Knowledge-driven user-aware POI recommendation. Knowl.-Based Syst. 2023, 278, 110884. [Google Scholar] [CrossRef]
  44. Cui, Y.; Sun, H.; Zhao, Y.; Yin, H.; Zheng, K. Sequential-knowledge-aware next POI recommendation: A meta-learning approach. ACM Trans. Inf. Syst. (TOIS) 2021, 40, 1–22. [Google Scholar] [CrossRef]
  45. Guo, Q.; Sun, Z.; Zhang, J.; Theng, Y.L. An attentional recurrent neural network for personalized next location recommendation. In Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA, 7–12 February 2020; Volume 34, pp. 83–90. [Google Scholar]
  46. Sun, T.; Xu, J.; Hu, C. An efficient algorithm of star subgraph queries on urban traffic knowledge graph. Data Sci. Eng. 2022, 7, 383–401. [Google Scholar] [CrossRef]
  47. Li, C.; He, W.; Yao, H.; Mai, T.; Wang, J.; Guo, S. Knowledge graph aided network representation and routing algorithm for LEO satellite networks. IEEE Trans. Veh. Technol. 2022, 72, 5195–5207. [Google Scholar] [CrossRef]
  48. Fang, H.; Chen, C.; Long, Y.; Xu, G.; Xiao, Y. DTCRSKG: A Deep Travel Conversational Recommender System Incorporating Knowledge Graph. Mathematics 2022, 10, 1402. [Google Scholar] [CrossRef]
  49. Gao, J.; Peng, P.; Lu, F.; Claramunt, C.; Xu, Y. Towards travel recommendation interpretability: Disentangling tourist decision-making process via knowledge graph. Inf. Process. Manag. 2023, 60, 103369. [Google Scholar] [CrossRef]
  50. Wu, T.; Zeng, Z.; Qin, J.; Xiang, L.; Wan, Y. An Improved HMM-Based Approach for Planning Individual Routes Using Crowd Sourcing Spatiotemporal Data. Sensors 2020, 20, 6938. [Google Scholar] [CrossRef]
  51. Tao, W.; Longgang, X.; Jianya, G. Updating Road Networks by Local Renewal from GPS Trajectories. ISPRS Int. J. Geo-Inf. 2016, 5, 163. [Google Scholar] [CrossRef]
  52. Xu, Z.; Sheng, Y.; He, L.; Wang, Y. Review on Knowledge Graph Techniques. Dianzi Keji Daxue Xuebao/J. Univ. Electron. Sci. Technol. China 2016, 18, 589–606. [Google Scholar]
  53. Arentze, T.; Kemperman, A.; Aksenov, P. Estimating a latent-class user model for travel recommender systems. Inf. Technol. Tour. 2018, 19, 61–82. [Google Scholar] [CrossRef]
  54. Qihoo360. 360 Trend Index. 2019. Available online: https://trends.so.com/ (accessed on 10 September 2022).
  55. Shen, H.; Zhang, Y.; Wang, J.; Cao, J.; Rutkowski, L. Observer-based control for discrete-time hidden semi-Markov jump systems. IEEE Trans. Autom. Control 2022, 68, 6255–6261. [Google Scholar] [CrossRef]
  56. Newson, P.; Krumm, J. Hidden Markov map matching through noise and sparseness. In Proceedings of the 17th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, Seattle, WA, USA, 4–6 November 2009; pp. 336–343. [Google Scholar]
  57. Viterbi, A.J. Error bounds for convolutional codes and an asymptotically optimum decoding algorithm. IEEE Trans. Informat. Theory 1967, 13, 260–269. [Google Scholar] [CrossRef]
  58. Miller, J.J. Graph database applications and concepts with Neo4j. In Proceedings of the Southern Association for Information Systems Conference, Atlanta, GA, USA, 8–9 March 2013; Volume 2324. [Google Scholar]
Figure 1. Overview of KHMM.
Figure 1. Overview of KHMM.
Smartcities 08 00075 g001
Figure 2. Projection of POIs onto adjacent road sections.
Figure 2. Projection of POIs onto adjacent road sections.
Smartcities 08 00075 g002
Figure 3. The construction flow of a POI-KG.
Figure 3. The construction flow of a POI-KG.
Smartcities 08 00075 g003
Figure 4. Schematic diagram of POI-KG.
Figure 4. Schematic diagram of POI-KG.
Smartcities 08 00075 g004
Figure 5. Knowledge-based Hidden Markov Model.
Figure 5. Knowledge-based Hidden Markov Model.
Smartcities 08 00075 g005
Figure 6. Personalized subject selection and route planning.
Figure 6. Personalized subject selection and route planning.
Smartcities 08 00075 g006
Figure 7. The shortest path output in the KG.
Figure 7. The shortest path output in the KG.
Smartcities 08 00075 g007
Figure 8. Route recommendation results for experiment 1.
Figure 8. Route recommendation results for experiment 1.
Smartcities 08 00075 g008
Figure 9. Route recommendation results for experiment 2.
Figure 9. Route recommendation results for experiment 2.
Smartcities 08 00075 g009
Figure 10. Route recommendation results for experiment 3.
Figure 10. Route recommendation results for experiment 3.
Smartcities 08 00075 g010
Figure 11. Route results of comparison experiment 1.
Figure 11. Route results of comparison experiment 1.
Smartcities 08 00075 g011
Figure 12. Route results of comparison experiment 2.
Figure 12. Route results of comparison experiment 2.
Smartcities 08 00075 g012
Figure 13. Route results of comparison experiment 3.
Figure 13. Route results of comparison experiment 3.
Smartcities 08 00075 g013
Figure 14. The sum of POIs’ popularity indices for a recommended route.
Figure 14. The sum of POIs’ popularity indices for a recommended route.
Smartcities 08 00075 g014
Figure 15. The number of POI similarities.
Figure 15. The number of POI similarities.
Smartcities 08 00075 g015
Figure 16. Total distance of the route.
Figure 16. Total distance of the route.
Smartcities 08 00075 g016
Figure 17. The number of POIs recommended using the KHMM method.
Figure 17. The number of POIs recommended using the KHMM method.
Smartcities 08 00075 g017
Table 1. POI properties of websites.
Table 1. POI properties of websites.
POI Properties
NameCategoryAddressRecommended Duration of Visit
TicketCharacteristicOpening HoursCollection of Cultural Relics
Relevant PeopleFamous LandmarksAttraction LevelSuitable Season for Visiting
Relevant POIsSurrounding POIsConstruction TimeSurrounding Transportation Facilities
Table 2. A partial example of POI data based on the 360 Trend Index.
Table 2. A partial example of POI data based on the 360 Trend Index.
NameJanFebMarAprMayJuneJulyAugSepOctNovDec
Hunan Provincial Museum17114691435362366446586433348217140113
Changsha Museum25373830323999844826199
Orange Island8074123123178184305299302186122112
Yuelu Mountain8187130120236217732323295242202160
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zeng, Z.; Qin, J.; Wu, T. A Knowledge Graph-Enhanced Hidden Markov Model for Personalized Travel Routing: Integrating Spatial and Semantic Data in Urban Environments. Smart Cities 2025, 8, 75. https://doi.org/10.3390/smartcities8030075

AMA Style

Zeng Z, Qin J, Wu T. A Knowledge Graph-Enhanced Hidden Markov Model for Personalized Travel Routing: Integrating Spatial and Semantic Data in Urban Environments. Smart Cities. 2025; 8(3):75. https://doi.org/10.3390/smartcities8030075

Chicago/Turabian Style

Zeng, Zhixuan, Jianxin Qin, and Tao Wu. 2025. "A Knowledge Graph-Enhanced Hidden Markov Model for Personalized Travel Routing: Integrating Spatial and Semantic Data in Urban Environments" Smart Cities 8, no. 3: 75. https://doi.org/10.3390/smartcities8030075

APA Style

Zeng, Z., Qin, J., & Wu, T. (2025). A Knowledge Graph-Enhanced Hidden Markov Model for Personalized Travel Routing: Integrating Spatial and Semantic Data in Urban Environments. Smart Cities, 8(3), 75. https://doi.org/10.3390/smartcities8030075

Article Metrics

Back to TopTop