Next Article in Journal
Real-Time Detection of Hole-Type Defects on Industrial Components Using Raspberry Pi 5
Previous Article in Journal
Intelligent Active and Reactive Power Management for Wind-Based Distributed Generation in Microgrids via Advanced Metaheuristic Optimization
Previous Article in Special Issue
An Interval Fuzzy Linear Optimization Approach to Address a Green Intermodal Routing Problem with Mixed Time Window Under Capacity and Carbon Tax Rate Uncertainty
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis of Spatiotemporal Characteristics of Intercity Travelers Within Urban Agglomeration Based on Trip Chain and K-Prototypes Algorithm

1
Research Institute of Highway Ministry of Transport, Beijing 100088, China
2
State Key Lab of Intelligent Transportation System, Beijing 100088, China
*
Author to whom correspondence should be addressed.
Appl. Syst. Innov. 2025, 8(4), 88; https://doi.org/10.3390/asi8040088
Submission received: 17 May 2025 / Revised: 12 June 2025 / Accepted: 23 June 2025 / Published: 26 June 2025

Abstract

In the rapid process of urbanization, urban agglomerations have become a key driving factor for regional development and spatial reorganization. The formation and development of urban agglomerations rely on communication between cities. However, the spatiotemporal characteristics of intercity travelers are not fully grasped throughout the entire trip chain. This study proposes a spatiotemporal analysis method for intercity travel in urban agglomerations by constructing origin-to-destination (OD) trip chains using smartphone data, with the Beijing–Tianjin–Hebei urban agglomeration as a case study. The study employed Cramer’s V and Spearman correlation coefficients for multivariate feature selection, identifying 12 key variables from an initial set of 20. Then, optimal cluster configuration was determined via silhouette analysis. Finally, the K-prototypes algorithm was applied to cluster 161,797 intercity trip chains across six transportation corridors in 2019 and 2021, facilitating a comparative spatiotemporal analysis of travel patterns. Results show the following: (1) Intercity travelers are predominantly males aged 19–35, with significantly higher weekday volumes; (2) Modal split exhibits significant spatial heterogeneity—the metro predominates in Beijing while road transport prevails elsewhere; (3) Departure hubs’ waiting times increased significantly in 2021 relative to 2019 baselines; (4) Increased metro mileage correlates positively with extended intra-city travel distances. The results substantially contribute to transportation planning, particularly in optimizing multimodal hub operations and infrastructure investment allocation.

1. Introduction

Urban agglomerations have emerged as pivotal engines for regional economic growth and spatial reorganization in the context of accelerating global urbanization [1,2]. These agglomerations facilitate regional integration through resource consolidation, industrial synergy, and population concentration [3,4]. In China, strategic initiatives such as the Transport Power Construction Outline [5] and the 14th Five-Year Plan for Transportation Development [6] underscore the imperative to develop integrated transportation networks within urban agglomerations. Priorities include enhancing multimodal connectivity, advancing intelligent infrastructure, and optimizing intercity travel efficiency to foster coordinated regional development [7]. However, these objectives are impeded by multifaceted challenges, including inefficiencies in transportation systems and environmental capacity limitations [8]. In this context, analyzing intercity travel characteristics has become a critical approach for optimizing transportation planning and enhancing residents’ quality of life [9]. Intercity trip chains, functioning as dynamic networks linking nodes within agglomerations, not only capture spatiotemporal mobility behaviors but also inform data-driven strategies for resource allocation and multimodal optimization [10,11]. The COVID-19 pandemic has further reshaped mobility trends, underscoring the urgency of continuous monitoring and adaptive strategies to address evolving travel demands [12,13]. Due to the pandemic, in Spain, travel volume dropped dramatically while public transportation was extremely affected and private cars were relatively less affected [14]. The travel volume in most countries decreased [15,16]. The number of travelers who travelled for education, to visit friends, and for personal care decreased the most among all the purposes for travel in the Netherlands [17]. In China’s Greater Bay Area, it was found by analyzing mobile phone data that, in comparison to advantaged groups, socially disadvantaged groups experienced a steeper decline in travel mobility during the pandemic’s peak but a more significant recovery afterward [18].
Previous studies have achieved significant progress in analyzing intercity travel characteristics. Smart card data, valued for their accessibility and wide availability, have become a predominant big-data source in public transit research, enabling analyses of spatiotemporal commuting patterns and large-scale demand modeling [19]. When integrated with GPS trajectories, these data can reconstruct detailed trip sequences, though inferring trip purposes remains challenging [20]. To address this, Minimum Entropy Rate (MER) methods optimize sequence uncertainty and enhance origin–destination estimation [21]. Machine learning techniques (e.g., sequence alignment, decision trees) further identify recurrent mobility patterns in transit datasets [22,23], while discrete choice models quantify mode selection dynamics and comfort trade-offs in trip chains [24]. Concurrently, investigations into high-speed rail network development and its spatial interactions with urban agglomerations [25], along with analyses of multimodal travel decision-making processes [26], have significantly advanced theoretical frameworks for regional transportation planning. Despite these achievements, there are still some limitations. While traditional survey instruments effectively capture detailed trip characteristics, including purpose and mode choice [27], their implementation faces practical challenges, including substantial costs, limited spatial coverage, and low response rates, hindering their ability to represent population-wide mobility patterns at the urban agglomeration scale [28]. Furthermore, insufficient coverage of transient populations and non-commuting trips exacerbates sampling biases. From an analytical perspective, conventional clustering methods (e.g., K-means, K-modes) demonstrate limited efficacy when processing mixed data types, frequently producing suboptimal classifications due to their inability to effectively handle heterogeneous variables [29]. Current variable selection methods, often relying on simplified correlation measures, fail to adequately capture complex relationships between categorical and numerical features [30]. Additionally, the sensitivity of clustering algorithms to initialization parameters frequently results in locally optimal solutions [31]. Perhaps most significantly, prevailing research paradigms tend to examine transportation modes in isolation or focus on static spatial–temporal parameters, neglecting the dynamic interactions between multimodal systems, temporal fluctuations, and individual behavioral variations [26,32].
This study proposes the K-prototypes clustering framework for comprehensive trip chain analysis, addressing two key research gaps: incomplete trip chain data acquisition and information loss in reconstruction. The methodology integrates three technical innovations: (1) mobile signaling data for complete origin–destination chain generation, (2) an entropy-weighted mechanism to balance numerical and categorical variable contributions, and (3) the density peak theory for optimal cluster initialization. For feature selection, a novel hybrid approach combining Cramer’s V coefficient (for categorical associations) and Spearman’s rank correlation (for ordinal relationships) is implemented to identify the most discriminative variables characterizing intercity travel behavior patterns. The Beijing–Tianjin–Hebei urban agglomeration, a nationally strategic region with functional integration and a Beijing-centered multi-tiered transportation network, serves as an empirical testbed. The framework is empirically validated using the Beijing–Tianjin–Hebei metropolitan region as a case study, analyzing anonymized mobile signaling data (2019–2021) across six major corridors. A 12-variable dataset is analyzed through silhouette coefficient optimization, revealing critical insights into multimodal transfer dynamics, individual behavioral variations, and transportation hub performance. These findings provide valuable implications for urban mobility optimization and sustainable development strategies [33,34], demonstrating the framework’s effectiveness in complex urban transportation analysis.
The rest of the paper is organized as follows: Section 2 provides an overview of the study area, data collection, and methodology for generating intercity trip chains, including the extraction and processing of smartphone data to capture spatiotemporal mobility behaviors. To address the aforementioned research questions, Section 3 details the analytical framework, encompassing variable selection using the Cramer’s V–Spearman correlation coefficient method; determination of the optimal number of clusters via the Silhouette Coefficient; and the application of the K-prototypes algorithm for clustering mixed data types. Section 4 presents a discussion of the results, comparing temporal and spatial characteristics of intercity trip chains across different directions and years, while contextualizing the findings within the broader literature on urban mobility and transportation planning. Section 5 concludes the paper with highlights of the theoretical contributions.

2. Study Area and Trip Chain Data

2.1. Study Area

The Beijing–Tianjin–Hebei urban agglomeration is one of the four important international terminal clusters in China’s comprehensive national transport network [35]. Moreover, it serves as a capital economic circle and holds significant importance as the political and cultural center, contributing significantly to China’s development. Beijing is the political center of the China [36], gathering top research institutions and universities in China [37]. Eight major railway stations, including Beijing Station and Beijing South Station, are connected to the national high-speed rail network [38]. The Beijing–Tianjin intercity railway will achieve 5–10 min public transportation operation [39]. The operating mileage of the subway exceeded 727 km in 2024, making it one of the most densely populated rail transit networks in the world [40]. Tianjin is the core area of northern international shipping, with hubs such as Tianjin Station and Binhai Station connecting the Beijing–Shanghai and Tianjin–Qinhuangdao high-speed railways [41]. The subway mileage of Tianjin was about 233 km in 2024. Shijiazhuang is the capital of Hebei Province, undertaking Beijing’s non-capital function [42]. The subway mileage of Shijiazhuang was 76.5 km in 2024. The three cities are the three most important cities in the urban agglomeration [43]. Meanwhile, the intercity communication between Beijing, Tianjin, and Shijiazhuang is the most frequent within the urban agglomeration. Therefore, this study investigated the travel behavior of travelers using the high-speed railway for intercity travel between Beijing, Tianjin, and Shijiazhuang, within the Beijing–Tianjin–Hebei urban agglomeration as shown in Figure 1. The red part in Figure 1 represents the location of Beijing–Tianjin–Hebei urban agglomeration in China.

2.2. Trip Chain Data

In this study, a trip chain refers to the whole process of intercity travel [44], which includes travel within the origin city, intercity travel by using a high-speed railway, and travel within the destination city, as shown in Figure 2. Regarding the travel process from City A to Terminal A, travelers departing from Beijing have longer travel distances and are more likely to choose subway transportation [45], because Beijing has the largest urban area and the longest subway mileage among the three cities. Regarding the intercity travel process using a high-speed railway, it takes 30 min between Beijing and Tianjin, 80 min between Beijing and Shijiazhuang, and 130 min between Tianjin and Shijiazhuang. Regarding the travel process from Terminal B to City B, travelers arriving at Beijing experience the most developed public transportation system and congested roads. The travel process from City B to City A has the same pattern as the travel process from City A to City B. A trip chain contains a lot of information, such as travel time, space trajectory, mode of transportation, and so on, and is accompanied by the whole process of travel.
The raw data used to generate trip chains is smartphone data, and it is collected from the platform of Data-as-a-Service (DAAS) which is operated by one of the Chinese communication operators with a 30% market share within the Beijing–Tianjin–Hebei urban agglomeration. Based on this smartphone data, the intercity trip chains between three cities were extracted through three steps: identifying intercity travelers, extracting travel features within the city, and generating intercity trip chains [46]. There are 19 variables included in the trip chains as shown in Table 1.
This study analyzed intercity travel data for May 2019 and May 2021, which are before the outbreak of COVID-19 and the period of the post-COVID-19 phase, respectively. Unlike other countries, Chinese residents resumed travel, and the tourism industry was gradually recovering since April 2020 [47]. China had entered into a special and unique recovering period that was distinct from the other countries that were still experiencing serious impacts from COVID-19. China observes a five-day holiday in May for Labor Day, but it does not include longer breaks like winter or summer vacations that can cause changes in daily travel patterns. May also offers a favorable climate for travel [48]. Therefore, the data includes holidays, weekends, and workdays simultaneously and is representative to some extent. This study collected a total of twelve datasets from six directions over 2 years, amounting to 161,797 trip chains as shown in Table 2.

3. Methods

In this study, the Cramer’s V–Spearman correlation coefficient method was used for variable selection [49]. The silhouette coefficient method was used to determine the number of clusters [50]. The K-prototypes algorithm was used to cluster intercity trip chains [51].

3.1. Variable Selection for Clustering Based on Cramer’s V—Spearman Correlation Coefficient

The trip chains data used in this study consist of twenty variables, and there are two main challenges if all of them are used for cluster analysis [52]. First, high dimensionality can lead to the “curse of dimensionality” during clustering. Second, significant correlations between variables may affect the accuracy and efficiency of the clustering process. To address these issues, a variable selection process is implemented to eliminate highly correlated variables while retaining those that significantly impact the clustering results [53].
Common methods for calculating correlation include Spearman’s correlation coefficient, the Pearson correlation coefficient, Cramer’s V coefficient, the chi-square test, and covariance. Spearman’s coefficient is suitable for categorical data or data that does not fully adhere to a normal distribution [54]. It is less sensitive to outliers and does not impose strict data requirements. Pearson’s coefficient is applicable for analyzing linear relationships between continuous variables, requiring normally distributed data and assuming linearity between variables [55]. Cramer’s V is used to assess correlations between discrete, unordered data [56]. The chi-square test primarily compares proportions among two or more samples and examines the association between categorical variables [57]. Covariance measures the relationship between two continuous random variables [58].
Because the twenty variables describing trip chains include both unordered categorical and numerical variables, a single method cannot calculate the correlation between all variables. Therefore, a combined method based on Cramer’s V and Spearman was applied in this study. The correlation coefficient between six unordered categorical variables, which were Weekday, Gender, Type-O, Type-D, Mode-O, and Mode-D, was calculated using the Cramer’s V coefficient method. In this study, as the numerical variables were grouped variables with a small range of values, they could be regarded as ordered categorical variables. Therefore, the Spearman method was applied to calculate correlations among numerical variables, as well as between unordered categorical and numerical variables. The specific calculation methods are outlined below:
  • Cramer’s V coefficient method
Cramer’s V coefficient method was introduced by Karl Cramer in 1946 and is calculated based on Pearson’s chi-square statistics, considering the total sample size and degrees of freedom. The specific formula is as follows:
V = χ 2 n × m i n ( r 1 , c 1 )
χ 2 = O E 2 E
where χ2 is the chi-square statistic obtained from a contingency table formed by two categorical variables, n represents the total sample size, r is the number of categories for the first variable, c is the number of categories for the second variable, min (r − 1, c − 1) denotes the smaller of the two values derived from reducing the counts of each categorical variable by one, O indicates the observed frequency, and E signifies the expected frequency. The value of Cramer’s V coefficient ranges from 0 to 1. The value of Cramer’s V coefficient being less than 0.3 indicates a weak correlation between the two variables, while a value greater than 0.6 suggests a strong correlation.
2.
Spearman correlation coefficient
The Spearman correlation coefficient is defined as the Pearson correlation coefficient for ordinal variables. For sample size n, the original data are transformed into ranks, and the correlation coefficient ρ is calculated as follows:
ρ = i   ( x i x ¯ ) ( y i y ¯ ) i   ( x i x ¯ ) 2 i   ( y i y ¯ ) 2
where x i is the i-th value of the variable x, x ¯ is the average value of x, y i is the i-th value of the variable y, and y ¯ is the average value of y. The absolute value of ρ indicates the strength of the rank correlation between the two variables. A positive ρ indicates a positive correlation, while a negative ρ indicates a negative correlation. When ρ = 1, it indicates a completely correlated relationship between the two variables. When ρ is between 0.8 and 1, it indicates a strong correlation. When ρ is between 0.5 and 0.8, it indicates a moderate correlation. When ρ is between 0.3 and 0.5, it indicates a weak correlation. When ρ is less than 0.3, it generally reflects a very weak correlation that can be nearly negligible.

3.2. Silhouette Coefficient Method

As an unsupervised learning algorithm, the K-prototypes algorithm requires an appropriate method to determine the number of clusters, that is, the value of K, which directly impacts the effectiveness of the clustering results. The elbow method [59] and silhouette coefficient [60] are mostly used to calculate the value of K. The elbow method is based on observing the trend of the sum of squared errors (SSE) across different K values to identify the optimal K value. However, the elbow method may be somewhat subjective in selecting the optimal K value, as the determination of the elbow point depends on the judgment of the observer [61]. In some instances, the decreasing trend of SSE may not be obvious, making it difficult to identify the elbow point. In contrast, the silhouette coefficient is generally considered to be more objective and accurate since it considers both cohesion and separation factors, measuring how similar a sample point is to other points in its cluster and how well it separates from different clusters [62]. Consequently, this study adopts the silhouette coefficient method to determine the optimal number of clusters K for the K-prototypes algorithm. The steps for calculating the silhouette coefficient are as follows:
Step 1: Select a point denoted as x i ( m ) from cluster m. Within the same cluster, calculate the distances between point x i ( m ) and all other points x j ( m ) to identify the average of these distances within the cluster, which is a ( i ) , reflecting the intra-cluster cohesion of the m cluster, as shown in Equation (4), where n m is the total number of samples in cluster m.
a ( i ) = 1 n m j = 1 n m   x i ( m ) x j ( m ) 2
Step 2: Let x j ( c ) be the point in cluster c, j = 1, 2, …, n c . Calculate the average distance between x i ( m ) and x j ( c ) , and then identify the minimum average distance b ( i ) by traversing all other clusters, as outlined in Equation (5). This reflects the separation between clusters, where K is the number of clusters.
b ( i ) = m i n 1 n c j = 1 n c   x i ( m ) x j ( c ) 2 , c = 1,2 , , m 1 , m + 1 , K
Step 3: The silhouette coefficient s ( i ) is determined by both inter-cluster dispersion and intra-cluster cohesion, as shown in Equation (6).
s ( i ) = b ( i ) a ( i ) m a x ( a ( i ) , b ( i ) )
Step 4: Calculate the average silhouette coefficient of all sample data to obtain the overall silhouette coefficient. The value of the silhouette coefficient should range from 0 to 1. As it approaches 1, the clustering results are more in line with the actual situation.

3.3. K-Prototypes Algorithm

Since the variables involved in trip chains include both categorical data, such as gender and mode of transportation, as well as numerical data, such as travel distance and travel time, clustering methods like K-means for numerical data and K-modes for categorical data are no longer suitable for clustering trip chains in this study [63]. The K-prototypes algorithm is a well-established method for clustering mixed data types [64]. It builds upon the framework of the K-means algorithm while integrating features of the K-modes algorithm. By adjusting parameters, it balances the relative importance of categorical and numerical data during the clustering process. This approach is both simple and highly efficient, making it widely used in clustering tasks that involve mixed datasets.
Let X = x 1 , x 2 , , x n denote the set of intercity trip chains, which comprise n pieces of data. Each x i is characterized by attribute A = { a 1 , a 2 , a m r , a m r + 1 , a m r + m c } , where the first m r attribute is numerical, and the subsequent attributes are categorical. Let V = { v j | 1 j m } denote the set of values for all attributes, where v j is the set of values for attribute a j , a j A . When 1 ≤ j m r , v j corresponds to numerical values. When m r jm, v j corresponds to categorical values, v j = { v j 1 , v j 2 , , v j n j } , where n j is the number of categorical values for attribute a j . Let C = { C 1 , C 2 , , C k } denote the set of clusters, where K is the number of clusters. p l ( v j t ) denotes the proportion of value v j t ( 1 t n j ) in cluster C l   ( l = 1 ,   2 , , K ) , as outlined in Equation (7).
p l ( v j t ) = { x i | f ( x i , a j ) = v j t , x i C l } / | C l | 0 p l ( v j n j ) 1 t = 1 n j p l ( v j t ) = 1
Let Z = { z 1 , z 2 , , z k } denote the set of cluster centers, where z l is the center of cluster C l . For each center z l ( 1 l k ) , the following conditions apply:
f ( z l , a j ) = x i C l   f ( x i , a j ) x i C l | C l | ,   1 j m r v j t ,   m r < j m
where v j t denotes the most frequent value of attribute a j within cluster C l . The dissimilarity between x i and cluster center z l is calculated as follows:
D ( x i , z l ) = D r ( x i , z l ) + γ D c ( x i , z l ) D r ( x i , z l ) = j = 1 m r   ( f ( x i , a j ) f ( z l , a j ) ) 2 D c ( x i , z l ) = j = m r + 1 m   δ ( f ( x i , a j ) , f ( z l , a j ) )
where D r ( x i , z l ) is the dissimilarity for numerical attributes, D c x i , z l is the dissimilarity for categorical attributes, and γ is a weight that controls the contributions of numerical and categorical attributes. δ ( x , y ) is defined as follows:
δ ( x , y ) = 1 , x = y 0 , x y
The objective function of the K-prototypes algorithm can be defined as follows:
F = l = 1 k   i = 1 n   w l i D l ( x i , z l )
The value of w l i is 0 or 1, where 1 indicates that x i is assigned to cluster l , and 0 indicates that x i is assigned to cluster l . Each data is partitioned and assigned to only one cluster. In summary, the steps for implementing the K-prototypes algorithm are as follows:
Step 1: Randomly select K pieces of data from dataset X = x 1 , x 2 , , x n as the initial cluster centers. The initial cluster center set is Z = { z 1 , z 2 , , z k } .
Step 2: Calculate the distance D ( x i , z l ) between x i and Z l , which is the cluster center.
Step 3: According to the minimum value of D ( x i , z l ) , assign x i to the corresponding cluster where Z l is located.
Step 4: After assigning all x i to the corresponding cluster, recalculate the cluster centers of each cluster based on the cluster updating method for numerical and categorical data.
Step 5: Repeat Step 2, Step 3, and Step 4 until the clustering criterion function converges.
Step 6: Finish the algorithm and generate the results.

4. Results and Discussion

4.1. Variable Selection

The correlation coefficient calculations were performed using IBM Statistical Package for the Social Sciences 26 on a Lenovo laptop with an Intel(R) Core (TM) i7-10750H 2.60 GHz CPU and 32.0 GB of RAM. To fairly compare the characteristics of different trip chain datasets, it is important to select the same variables to conduct clustering. Therefore, the twelve trip chain datasets were grouped for correlation analysis. In this study, Cramer’s V method is employed to analyze the relationships between six unordered categorical variables: Weekday, Gender, Type-O, Mode-O, Mode-D, and Type-D. The Spearman method is applied to analyze the remaining 13 variables and the correlations between the 6 categorical variables and the 13 variables. The results are as shown in Table 3.
In Table 3, the correlation coefficients between the six variables, which are MOT-O, THub-O, De-O, THub-D, De-D, and MOT-D, are all greater than 0.9, with significance test p-values of less than 0.05, leading to the rejection of the null hypothesis and indicating a strong correlation among these variables [65]. Meanwhile, these six variables are all time-related variables, including departure time, arrival time, hub departure time, hub arrival time, and arrival time. Therefore, only one of them will be selected as the variable for clustering. Considering that the departure time from the origin is the starting point of the trip chain and determines the other five variables, MOT-O is selected for clustering. Table 3 shows that the correlation coefficient between DS-O and Tr-T-O is 0.754, and the correlation coefficient between DS-D and Tr-T-D is 0.758. Both results have passed the significance test and indicate a moderate correlation. Given that independent time-related variables are involved in this study and that transportation mode and travel distance can be used to estimate travel time, DS-O and DS-D are selected for clustering. In summary, this study selects 12 variables for clustering analysis: 6 categorical variables (Weekday, Gender, Type-O, Mode-O, Type-D, and Mode-D) and 6 numerical variables (Age, MOT-O, Ds-O, Wt-O, Wt-D, and Ds-D).

4.2. Optimal Number of Clusters

Based on the twelve trip chain datasets, the silhouette coefficient method is applied using the mathematical programming software Python 3.5 on a Lenovo laptop with an Intel(R) Core (TM) i7-10750H 2.60 GHz CPU and 32.0 GB of RAM to identify the optimal number of clusters. This study calculated the silhouette scores corresponding to cluster numbers K ranging from two to ten. The results are as shown in Figure 3.
Figure 3 shows the results of silhouette coefficients corresponding to different cluster numbers K ranging from two to ten for twelve datasets. The numerical value of the silhouette coefficient is related to the clustering effect and the K value corresponding to the maximum silhouette coefficient is the optimal number of clusters. Based on the silhouette coefficients presented in Figure 3, the optimal number of clusters (optimal value of K) for intercity trip chains with six directions in two years is as shown in Table 4. The dataset with the highest number of clusters is Beijing–Shijiazhuang while the dataset with the least number of clusters is Tianjin–Shijiazhuang.

4.3. Clustering Results Analysis

This study conducted a detailed comparative analysis of trip chains from temporal and spatial perspectives.

4.3.1. Comparative Analysis of Intercity Trip Chains from a Temporal Perspective

Table 5 shows the most frequently clustering centers of intercity trip chains between Beijing and Tianjin in May 2019 and May 2021. In the Beijing to Tianjin direction, the age distribution of travelers changed from 25–29 years old in 2019 to 19–24 years in 2021. Due to the COVID-19 pandemic in 2021, companies had strict control over personnel travel, resulting in an increased proportion of travel by students who were relatively less controlled. The departure time shifted from 8 AM–9 AM to 7 AM–8 AM. Young people who aimed to travel may have had the tendency to depart relatively early. The waiting time at the departure hub increased from 20–25 min to 30–35 min [66]. In 2021, COVID-19 epidemic prevention and control measures were still ongoing. Railway stations may have had increased security checks and health code verification processes, resulting in passengers needing to arrive early and waiting times being extended. In the Tianjin to Beijing direction, the age distribution of travelers shifted from 25–29 years in 2019 to 30–34 years in 2021. Perhaps due to the pandemic, it had become more difficult for young people to find jobs, and the main force of travel had shifted to middle-aged people. The departure times changed from 10 AM–11 AM to 12 PM–1 PM. The group aged 30 to 34 may have generally enjoyed flexible working hours, avoiding rush hour and choosing to depart at noon to avoid traffic pressure.
Table 6 outlines the characteristics of the predominant trip chains from Beijing to Shijiazhuang in 2019 and 2021. For the Beijing to Shijiazhuang direction, compared to 2019, the type of arrival location shifted from visiting to residential in 2021. Under the impact of the epidemic, the demand for tourism travel had decreased, while the demand for stability in cross city living had increased. The age distribution of travelers changed from 30–34 years to 19–24 years, same with the direction from Shijiazhuang to Beijing. The trend of younger population mobility between Beijing and Shijiazhuang may have been related to the sharing of university resources and the employment market. In 2019, the group aged 30 to 35 may have mainly focused on tourism and business travel, and in 2021, the proportion of the younger residential group increased. The departure time shifted from 1 PM–2 PM to 8 AM–9 AM. Young people had the tendency to depart earlier, which is consistent with the Beijing–Tianjin direction. The waiting times at both the departure and arrival hubs decreased. This was because the transportation systems in Beijing and Shijiazhuang had become more efficient and convenient.
Table 7 delineates the key attributes of the primary trip chain patterns observed between Tianjin and Shijiazhuang during the years 2019 and 2021. In the Tianjin to Shijiazhuang direction, the gender distribution of travelers changed from female to male in 2021. In the coordinated development of industries in the Beijing–Tianjin–Hebei urban agglomeration in 2021, Shijiazhuang may have undertaken male dominated industries such as manufacturing and infrastructure in Tianjin, leading to a surge in the demand for male labor commuting or deployment. The waiting time at the departure hub decreased. On the one hand, the experience of the Beijing–Tianjin intercity railway was extended to the Tianjin–Shijiazhuang line, with increasing train length and frequency during peak hours in 2021. On the other hand, the popularity of self-service ticketing and electronic tickets had increased, reducing the manual verification process. The waiting time at the arrival hub increased. Shijiazhuang may have implemented stricter arrival inspections in 2021, resulting in longer waiting times. For the Shijiazhuang to Tianjin direction, the waiting time at the arrival hub decreased in 2021 compared to 2019, with other changes being minimal. This was because the transportation system of Tianjin had become more efficient and convenient, and the manual verification process was reduced.

4.3.2. Comparative Analysis of Intercity Trip Chains from a Spatial Perspective

This study examines the most common categories of trip chains from different years and directions to compare the characteristics of trip chains in the same year across various directions. Table 8 presents the characteristics of the predominant trip chains in different directions for 2019. The data indicate that the primary travel dates for travelers across all directions were weekdays, with male travelers dominating except in the Tianjin to Shijiazhuang direction. The departure type was consistently residential, while the arrival locations were mostly residential, except for Shijiazhuang, categorized as visiting. The main mode of travel from Beijing was the subway [67], while road travel was predominant from other cities, with road transport also used for arrivals.
Travelers between Beijing and Tianjin were primarily aged 25 to 29, while those between Beijing and Shijiazhuang were mainly aged 30 to 34, and travelers between Tianjin and Shijiazhuang were mostly aged 19 to 24. The age differences reflect distinct intercity dynamics, with the commuting population dominating Beijing–Tianjin travel, business individuals prevailing in Beijing–Shijiazhuang travel, and students characterizing Tianjin–Shijiazhuang travel. For directions other than Beijing to Shijiazhuang, travel times predominantly occurred in the morning. The distinct travel times reflect its longer distance and diversified travel purposes apart from short commutes. Due to the large urban scale of Beijing, the travel distance within Beijing is typically between 5 and 10 km, while travel distances within Tianjin and Shijiazhuang are generally under 5 km. Regarding waiting times at departure hubs, the Beijing to Tianjin direction had the shortest waiting time, under 30 min, while the Shijiazhuang to Tianjin direction had the longest waiting time of 50–55 min. On the one hand, compared to using road transportation for travel, using the subway could more accurately control passengers’ travel time [68]. This was because the schedules of subway trains were fixed, while the schedules of buses were random, depending on the possible congestion of roads [69]. Beijing had a subway system with a mileage of 699.5 km while Shijiazhuang’s subway mileage was 30.3 km in 2019. Therefore, most travelers in Shijiazhuang had to choose road transportation. Travelers were more likely to allocate sufficient time for travel in order to avoid missing the train, resulting in excessively long waiting times at the station. On the other hand, there are more than 400 direct high-speed trains running every 10 min, daily between Beijing South station and Tianjin station. Therefore, it was as convenient for passengers to take the high-speed rail as to take the subway. Travelers could leave soon after arriving at the station. The waiting times at departure hubs of Tianjin to Beijing direction were 5 min more than the opposite direction. This was because Beijing had a more developed subway system than Tianjin. In 2019, the operating mileage of the Beijing subway was 699.5 km and that of the Tianjin subway was 235 km. Although Tianjin had a shorter subway mileage than Beijing, it was still better than Shijiazhuang. So, the waiting times at departure hubs of Tianjin to Shijiazhuang were 10 min less than the opposite direction. Since passengers went directly to their destinations after arriving at the hub, the waiting times at arrival hubs were similar. For intercity travel to Beijing, which has a larger scale compared to other cities, the travel distance within the destination city is typically between 5 and 10 km, while other destinations are generally under 5 km.
Table 9 outlines the characteristics of the most common trip chains for various directions in 2021. The data shows that travelers for the predominant trip chains across all directions primarily travelled on weekdays, with male travelers dominating. Both departure and arrival locations were residential. This pattern aligns with typical business travel trends, where weekday mobility is workforce-driven and gender disparities persist in professional activity participation. Based on Beijing’s mature metro network, the main mode of travel from Beijing was the subway, while road travel was predominant from other cities, and urban travel within the destination city was primarily by road [70]. For the Tianjin to Beijing direction, travelers were mainly aged 30 to 34, while in other directions, the age distribution was predominantly 19 to 24, reflecting Beijing’s dominance as a core job market attracting career professionals. Except for the Tianjin to Beijing direction, where departure times were between 12 PM and 1 PM, all other directions had departures in the morning for commuting. Due to the large urban scale of Beijing, the distances for urban trips departing from Beijing are typically between 5 and 10 km, while for other directions, it is generally under 5 km. For urban trips arriving in Beijing, the distance is also typically between 5 and 10 km, with other directions being generally under 5 km.

5. Conclusions

A well-organized and well-operated transportation system plays an important role in supporting communication and motivating the sustainable socioeconomic development of an urban agglomeration [71]. Intercity travel is an integral part of the entire urban agglomeration transportation system [72]. Analyzing the personalities of intercity travelers and the spatial–temporal characteristics of intercity travel behavior in urban agglomerations can provide support for the planning and management of transportation systems in urban agglomerations.
In this study, a combined method of variable selection, determination of clustering number, and improved K-prototypes was applied to analyze the personalities of intercity travelers and the spatial–temporal characteristics of intercity travel behavior. Firstly, to deal with unordered categorical and numerical variables simultaneously, a combined method based on Cramer’s V and the Spearman correlation coefficient was applied to eliminate highly correlated variables while retaining those that significantly impacted the clustering results. This study conducted a variable selection process on 20 variables containing 161,797 trip chains. Based on the calculated correlation coefficient results, 12 variables that had a significant impact on the travel characteristics of intercity behavior were selected, and 8 variables were filtered out. Secondly, the silhouette coefficient method was applied to determine the optimal number of clusters for each trip chain dataset. A total of 12 trip chain datasets had their optimal number of clusters identified. Thirdly, the K-prototypes algorithm was applied to cluster trip chain datasets, which contained both numerical and categorical data. Finally, a detailed comparative analysis of trip chains from temporal and spatial perspectives was conducted to identify the personality and behavior of intercity travelers. We found that the majority of intercity travelers were male, with an age range from 19 to 35, in the context of different travel directions across various transportation corridors in 2019 and 2021. People were most likely to travel between two cities on weekdays. The average travel distance within the city increased with the increase in subway mileage. Compared with 2019, travelers spent more time at the departure hub in 2021. Overall, this study’s primary contribution is to propose an excellent applicable method for analyzing the characteristics and behaviors of intercity travelers within urban agglomerations from the perspective of an entire trip chain based on smartphone data. The research results can provide a reference for the government to optimize the transportation system and for enterprises to promote the level of transportation management.
There are also some limitations in this study. Firstly, although the complete intercity trip chain for urban agglomerations includes personal attributes, travel time, travel mode, travel distance, and other information of travelers, the classification of travel modes was not precise enough, and only smartphone data was used. In the future, if possible, we would use GPS, POI, and other multi-source data to improve the accuracy of trip chain recognition. Secondly, this study identified travelers’ characteristics and behaviors from an objective perspective. In the future, we would investigate travelers’ travel intentions and preferences from a subjective perspective. By combining subjective and objective quantitative analyses, we can provide better support for traffic management departments and enterprises.

Author Contributions

Conceptualization, S.Y. and Y.L.; Data curation, S.Y. and Y.L.; Formal analysis, S.Y.; Funding acquisition, Y.L.; Investigation, S.H.; Methodology, S.Y.; Project administration, Y.L.; Software, S.Y. and S.H.; Supervision, Y.L.; Validation, S.Y.; Writing—original draft, S.Y.; Writing—review and editing, Y.L., Proofreading, S.Y., Y.L. and S.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the State Key Lab of Intelligent Transportation System under project grant number 2024-Z013.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Fang, C.; Yu, D. Urban agglomeration: An evolving concept of an emerging phenomenon. Landsc. Urban Plan. 2017, 162, 126–136. [Google Scholar] [CrossRef]
  2. Liu, X.; Zheng, L.; Wang, Y. Revealing the roles of climate, urban form, and vegetation greening in shaping the land surface temperature of urban agglomerations in the Yangtze River Economic Belt of China. J. Environ. Manag. 2025, 377, 124602. [Google Scholar] [CrossRef] [PubMed]
  3. Dai, L.; Luo, J. Effects of spatial structure on carbon emissions of urban agglomerations in China. Cities 2025, 163, 106021. [Google Scholar] [CrossRef]
  4. Wang, C.; Wu, J.; Wu, S. Urban agglomeration policy and coordinated road infrastructure development. Transp. Res. Part A 2025, 195, 104433. [Google Scholar] [CrossRef]
  5. The Central Committee of the Communist Party of China and the State Council have issued the Transport Power Construction Outline. Available online: https://www.gov.cn/gongbao/content/2019/content_5437132.html (accessed on 4 April 2025).
  6. Notice of the State Council on issuing the 14th Five-Year Plan for Transportation Development. Available online: https://www.gov.cn/zhengce/zhengceku/2022-01/18/content_5669049.html (accessed on 4 April 2025).
  7. Guo, L.; Tang, M.; Wu, Y.; Bao, S.; Wu, Q. Government-led regional integration and economic growth: Evidence from a quasi-natural experiment of urban agglomeration development planning policies in China. Cities 2025, 156, 105482. [Google Scholar] [CrossRef]
  8. Zhao, Y.; Xu, D.; Mao, Z. Across the city boundaries: Exploring the impact of neighborhood environment on intercity commuters’ life satisfaction. Transp. Res. Part D Transp. Environ. 2024, 136, 104433. [Google Scholar] [CrossRef]
  9. Wang, L.; Shao, J. How does regional integration policy affect urban energy efficiency? A quasi-natural experiment based on policy of national urban agglomeration. Energy 2025, 319, 135003. [Google Scholar] [CrossRef]
  10. Deng, Y.; Wang, J.; Gao, C.; Li, X.; Wang, Z.; Li, X. Assessing temporal-spatial characteristics of urban travel behaviors from multiday smart-card data. Physica A 2021, 576, 126058. [Google Scholar] [CrossRef]
  11. Wang, H.; Huang, H.J. Effects of high-speed rail on intercity travels, utility and social welfare in urban agglomerations: A game-theoretic perspective. Transp. Res. Part E 2024, 192, 103800. [Google Scholar] [CrossRef]
  12. Li, T.; Wang, J.; Huang, J.; Yang, W.; Chen, Z. Exploring the dynamic impacts of COVID-19 on intercity travel in China. J. Transp. Geogr. 2021, 95, 103153. [Google Scholar] [CrossRef]
  13. Wei, S.; Pan, J. Spatiotemporal characteristics of residents’ intercity travel in China under the impact of COVID-19 pandemic. Cities 2024, 152, 105206. [Google Scholar] [CrossRef]
  14. Patra, S.S.; Chilukuri, B.R.; Vanajakshi, L. Analysis of road traffic pattern changes due to activity restrictions during COVID-19 pandemic in Chennai. Transp. Lett. 2021, 13, 473–481. [Google Scholar] [CrossRef]
  15. Aloi, A.; Alonso, B.; Benavente, J.; Cordera, R.; Echániz, E.; González, F.; Ladisa, C.; Lezama-Romanelli, R.; López-Parra, Á.; Mazzei, V.; et al. Effects of the COVID-19 Lockdown on Urban Mobility: Empirical Evidence from the City of Santander (Spain). Sustainability 2020, 12, 3870. [Google Scholar] [CrossRef]
  16. Muley, D.; Ghanim, M.S.; Mohammad, A.; Kharbeche, M. Quantifying the impact of COVID–19 preventive measures on traffic in the State of Qatar. Transp. Policy 2021, 103, 45–59. [Google Scholar] [CrossRef]
  17. Shamshiripour, A.; Rahimi, E.; Shabanpour, R.; Mohammadian, A. How is COVID-19 reshaping activity-travel behavior? Evidence from a comprehensive survey in Chicago. Transp. Res. Interdiscip. Perspect. 2020, 7, 100216. [Google Scholar] [CrossRef] [PubMed]
  18. Yao, W.B.; Yu, J.Q.; Yang, Y.; Chen, N.; Jin, S.; Hu, Y.W.; Bai, C.C. Understanding travel behavior adjustment under COVID-19. Commun. Transp. Res. 2022, 2, 100068. [Google Scholar] [CrossRef]
  19. Welch, T.F.; Widita, A. Big data in public transportation: A review of sources and methods. Transp. Rev. 2019, 39, 795–818. [Google Scholar] [CrossRef]
  20. Yan, X.; Levine, J.; Zhao, X. Integrating ridesourcing services with public transit: An evaluation of traveler responses combining revealed and stated preference data. Transp. Res. Part C 2019, 105, 683–696. [Google Scholar] [CrossRef]
  21. Lei, D.; Chen, X.; Cheng, L.; Zhang, L.; Wang, P.; Wang, K. Minimum entropy rate-improved trip-chain method for origin–destination estimation using smart card data. Transp. Res. Part C 2021, 130, 103307. [Google Scholar] [CrossRef]
  22. Ko, E.; Lee, S.; Jang, K.; Kim, S. Changes in inter-city car travel behavior over the course of a year during the COVID-19 pandemic: A decision tree approach. Cities 2024, 146, 104758. [Google Scholar] [CrossRef]
  23. Kumar, P.; Khani, A.; He, Q. A robust method for estimating transit passenger trajectories using automated data. Transp. Res. Part C 2018, 95, 731–747. [Google Scholar] [CrossRef]
  24. Rahman, F.; Mazumder, R.J.R.; Kabir, S.; Hadiuzzaman, M. An exploratory analysis of factors affecting comfort level of work trip chaining and mode choice: A case study for Dhaka City. Transp. Dev. Econ. 2020, 6, 11. [Google Scholar] [CrossRef]
  25. Wang, Z.; Ye, X.; Ma, X. Does the clusters of high-speed railway network match the urban agglomerations? A case study in China. Socioecon. Plann. Sci. 2024, 95, 101968. [Google Scholar] [CrossRef]
  26. Feng, Y.; Zhao, J.; Sun, H.; Wu, J.; Gao, Z. Choices of intercity multimodal passenger travel modes. Phys. A 2022, 600, 127500. [Google Scholar] [CrossRef]
  27. Cui, C.; Wu, X.; Liu, L.; Zhang, W. The spatial-temporal dynamics of daily intercity mobility in the Yangtze River Delta: An analysis using big data. Habitat Int. 2020, 106, 102174. [Google Scholar] [CrossRef]
  28. Bautista, H.; Dorian, A. Individual, household, and urban form determinants of trip chaining of non-work travel in México City. J. Transp. Geogr. 2022, 98, 103227. [Google Scholar] [CrossRef]
  29. Li, X.; Shi, L.; Shi, Y.; Tang, J.; Zhao, P.; Wang, Y.; Chen, J. Exploring interactive and nonlinear effects of key factors on intercity travel mode choice using XGBoost. Appl. Geogr. 2024, 166, 103264. [Google Scholar] [CrossRef]
  30. Cécile, S.; Clément, D.; Camelia, G. Variable selection methods for Log-Gaussian Cox processes: A case-study on accident data. Spat. Stat. 2024, 61, 100831. [Google Scholar]
  31. Wang, Y.; Tian, C.; Zhang, Z.; Li, K.; Chung, K.L.; Yang, B. Clustering algorithm for experimental datasets using global sensitivity-based affinity propagation (GSAP). Combust. Flame. 2024, 259, 113121. [Google Scholar] [CrossRef]
  32. Tatah, L.; Foley, L.; Oni, T.; Pearce, M.; Lwanga, C.; Were, V.; Assah, F.; Wasnyo, Y.; Mogo, E.; Okello, G.; et al. Comparing travel behaviour characteristics and correlates between large and small Kenyan cities (Nairobi versus Kisumu). J. Transp. Geogr. 2023, 110, 103625. [Google Scholar] [CrossRef]
  33. Yang, H.; Lv, S.; Guo, B.; Dai, J.; Wang, P. Uncovering spatiotemporal human mobility patterns in urban agglomerations: A mobility field based approach. Phys. A 2024, 637, 129571. [Google Scholar] [CrossRef]
  34. Cats, O.; Ferranti, F. Unravelling the spatial properties of individual mobility patterns using longitudinal travel data. J. Urban Mobil. 2022, 2, 100035. [Google Scholar] [CrossRef]
  35. Ma, W.; Gao, H. Impact of high-speed railway network improvement on consumption synergy in Beijing-Tianjin-Hebei region. Transp. Policy 2024, 158, 29–41. [Google Scholar] [CrossRef]
  36. Wang, W.; Wu, F.; Zhang, F. Assembling state power through rescaling: Inter-jurisdictional development in the Beijing-Tianjin Zhongguancun Tech Town. J. Polit. Geogr. 2024, 112, 103131. [Google Scholar] [CrossRef]
  37. Zhao, M.; Ji, Y.; Xie, J.; Yin, P.; Liu, J. Understanding patterns of adaptive comfort behavior in university graduate research offices–––A case study of a university in Beijing. Energy Build. 2024, 307, 113945. [Google Scholar] [CrossRef]
  38. Peng, H.; Li, Y.; Niu, X.; Tang, H.; Meng, X.; Li, Z.; Wan, K.; Li, W.; Song, W. Characteristics analysis of leakage diseases of Beijing underground subway stations based on the field investigation and data statistics. Transp. Geotech. 2024, 48, 101317. [Google Scholar] [CrossRef]
  39. Zhao, N.; Zhang, Y.; Chen, X.; Xiao, J.; Lu, Y.; Zhai, W.; Zhai, G. Resilience measurement and enhancement of population mobility network in Beijing-Tianjin-Hebei urban agglomeration under extreme rainfall impact. J. Transp. Geogr. 2025, 126, 104253. [Google Scholar] [CrossRef]
  40. Zou, L.; Wang, Z.; Guo, R.; Zhao, L.; Ma, L. Urban dynamics unveiled: A comprehensive analysis of Beijing’s subway evolution over the past decade. Tunn. Undergr. Space Technol. 2025, 157, 106284. [Google Scholar] [CrossRef]
  41. Kang, L.; Xiao, Y.; Sun, H.; Wu, J.; Luo, S.; Buhigiro, N. Nsabimana Buhigiro, Decisions on train rescheduling and locomotive assignment during the COVID-19 outbreak: A case of the Beijing-Tianjin intercity railway. Decis. Support Syst. 2022, 161, 113600. [Google Scholar] [CrossRef]
  42. Zhang, X.; Liu, Y.; Chen, Y.; Liu, J. Identification and integration of ventilation corridors in Shijiazhuang City, China. Sustain. Cities Soc. 2024, 112, 105543. [Google Scholar] [CrossRef]
  43. Wang, Z.; Liang, L.; Sun, Z.; Wang, X. Spatiotemporal differentiation and the factors influencing urbanization and ecological environment synergistic effects within the Beijing-Tianjin-Hebei urban agglomeration. J. Environ. Manag. 2019, 243, 227–239. [Google Scholar] [CrossRef]
  44. Li, X.; Zhang, S.; Wu, Y.; Wang, Y.; Wang, W.; Chen, X. Exploring influencing factors of intercity mode choice from view of entire travel chain. J. Adv. Transp. 2021, 2021, 9454873. [Google Scholar] [CrossRef]
  45. Rao, J.; Lin, H.; Ma, J.; Chai, Y. Exploring the relationships among life satisfaction, neighborhood satisfaction and travel satisfaction in Beijing. Travel Behav. Soc. 2025, 39, 100979. [Google Scholar] [CrossRef]
  46. Yu, S.; Li, B.; Liu, D. Exploring the Public Health of Travel Behaviors in High-Speed Railway Environment during the COVID-19 Pandemic from the Perspective of Trip Chain: A Case Study of Beijing-Tianjin-Hebei Urban Agglomeration, China. Int. J. Environ. Res. Public Health 2023, 20, 1416. [Google Scholar] [CrossRef] [PubMed]
  47. Stopher, P.R.; Daigler, V.; Griffith, S. Smartphone app versus GPS Logger: A comparative study. Transp. Res. Procedia 2018, 32, 135–145. [Google Scholar] [CrossRef]
  48. Yu, D.D.; Matthews, L.; Scott, D.; Li, S.; Guo, Z.Y. Climate suitability for tourism in China in an era of climate change: A multiscale analysis using holiday climate index. Curr. Issues Tour. 2022, 25, 2269–2284. [Google Scholar] [CrossRef]
  49. Akoglu, H. User’s guide to correlation coefficients. Turk. J. Emerg. Med. 2018, 18, 91–93. [Google Scholar] [CrossRef] [PubMed]
  50. Dinh, D.T.; Fujinami, T.; Huynh, V.N. Estimating the optimal number of clusters in categorical data clustering by silhouette coefficient. In Knowledge and Systems Sciences; Springer: Singapore, 2019; pp. 1–17. [Google Scholar]
  51. Soria, J.; Chen, Y.; Stathopoulos, A. K-prototypes segmentation analysis on large-scale ridesourcing trip data. Transp. Res. Rec. 2020, 2674, 383–394. [Google Scholar] [CrossRef]
  52. Huang, Y.; Gao, L.; Ni, A.; Liu, X. Analysis of travel mode choice and trip chain pattern relationships based on multi-day GPS data: A case study in Shanghai, China. J. Transp. Geogr. 2021, 93, 103070. [Google Scholar] [CrossRef]
  53. Omar, N.; Aly, H.; Little, T. Optimized feature selection based on a least-redundant and highest-relevant framework for a solar irradiance forecasting model. IEEE Access 2022, 10, 48643–48659. [Google Scholar] [CrossRef]
  54. Ali Abd Al-Hameed, K. Spearman’s correlation coefficient in statistical analysis. Int. J. Nonlinear Anal. Appl. 2022, 13, 3249–3255. [Google Scholar]
  55. Meybodi, E.E.; DastBaravarde, A.; Hussain, S.K.; Karimdost, S. Machine-learning method applied to provide the best predictive model for rock mass deformability modulus (Em). Environ. Earth Sci. 2023, 82, 149. [Google Scholar] [CrossRef]
  56. Sapra, R.L.; Saluja, S. Understanding statistical association and correlation. Curr. Med. Res. Pract. 2021, 11, 31–38. [Google Scholar] [CrossRef]
  57. Miola, A.C.; Miot, H.A. Comparing categorical variables in clinical and experimental studies. J. Vasc. Bras. 2022, 21, e20210225. [Google Scholar] [CrossRef] [PubMed]
  58. Ahmadzade, H.; Gao, R. Covariance of uncertain random variables and its application to portfolio optimization. J. Ambient Intell. Humaniz. Comput. 2020, 11, 2613–2624. [Google Scholar] [CrossRef]
  59. Surya, F.S.; Mutasowifin, A. Selection of agricultural industry stocks by application of K-means algorithm with Elbow method. BIO Web Conf. 2025, 171, 04003. [Google Scholar]
  60. Du, P.; Li, F.; Shao, J. Multi-agent reinforcement learning clustering algorithm based on silhouette coefficient. Neurocomputing. 2024, 596, 127901. [Google Scholar] [CrossRef]
  61. Syakur, M.A.; Khotimah, B.K.; Rochman, E.M.S.; Satoto, B.D. Integration of K-Means Clustering Method and Elbow Method for Identification of the Best Customer Profile Cluster. IOP Conf. Series Mater. Sci. Eng. 2018, 336, 012017. [Google Scholar] [CrossRef]
  62. Bagirov, A.; Aliguliyev, R.; Sultanova, N. Finding compact and well-separated clusters: Clustering using silhouette coefficients. Pattern Recognit. 2022, 135, 109144. [Google Scholar] [CrossRef]
  63. Jun, L.; Tingjin, L.; Kai, L. A forward k-means algorithm for regression clustering. Inf. Sci. 2025, 711, 122105. [Google Scholar]
  64. Akay, Z.; Güzin, Y. Clustering the mixed panel dataset using Gower’s distance and K-prototypes algorithms. Commun. Stat. Simul. Comput. 2018, 47, 3031–3041. [Google Scholar] [CrossRef]
  65. Schneider, J.W. Null hypothesis significance tests: A mix-up of two different theories—The basis for widespread confusion and numerous misinterpretations. Scientometrics 2015, 102, 411–432. [Google Scholar] [CrossRef]
  66. Tao, D.; Ning, J.; Shoufeng, M.; Shu, X.; Ghim, P.O.; Peng, L.; Hai, H. Impacts of intercity com-muting on travel characteristics and urban performances in a two-city system. Transp. Res. Part E 2022, 164, 102792. [Google Scholar]
  67. Wu, J.; Liao, H. Weather, travel mode choice, and impacts on subway ridership in Beijing. Transp. Res. Part A 2020, 135, 264–279. [Google Scholar] [CrossRef]
  68. Qin, T.; Dong, W.; Huang, H. Perceptions of space and time of public transport travel associated with human brain activities: A case study of bus travel in Beijing. Comput. Environ. Urban 2023, 99, 101919. [Google Scholar] [CrossRef]
  69. Yang, X.; Qu, L.; Li, Y.; Kang, Y. Alighting and boarding time prediction in different types of waiting areas at subway stations. Tunn. Undergr. Space Technol. 2023, 141, 105337. [Google Scholar] [CrossRef]
  70. Nezir, A.; Ali, O.K.; Muhammet, D. The impacts of COVID-19 on travel behavior and initial perception of public transport measures in Istanbul. Decis. Anal. J. 2022, 2, 100029. [Google Scholar]
  71. Yannis, G.; Chaziris, A. Transport system and infrastructure. Transp. Res. 2022, 60, 6–11. [Google Scholar] [CrossRef]
  72. Zheng, W.; Du, N.; Wang, X. Understanding the city-transport system of urban agglomeration through improved space syntax analysis. Int. Reg. Sci. Rev. 2022, 45, 161–187. [Google Scholar] [CrossRef]
Figure 1. Study area: Beijing–Tianjin–Hebei urban agglomeration.
Figure 1. Study area: Beijing–Tianjin–Hebei urban agglomeration.
Asi 08 00088 g001
Figure 2. Schematic diagram of urban agglomeration trip chain.
Figure 2. Schematic diagram of urban agglomeration trip chain.
Asi 08 00088 g002
Figure 3. (a) Silhouette coefficient of intercity trip chain from Beijing to Tianjin (May 2019); (b) Silhouette coefficient of intercity trip chain from Tianjin to Beijing (May 2019); (c) Silhouette coefficient of intercity trip chain from Beijing to Shijiazhuang (May 2019); (d) Silhouette coefficient of intercity trip chain from Shijiazhuang to Beijing (May 2019); (e) Silhouette coefficient of intercity trip chain from Tianjin to Shijiazhuang (May 2019); (f) Silhouette coefficient of intercity trip chain from Shijiazhuang to Tianjin (May 2019); (g) Silhouette coefficient of intercity trip chain from Beijing to Tianjin (May 2021); (h) Silhouette coefficient of intercity trip chain from Tianjin to Beijing (May 2021); (i) Silhouette coefficient of intercity trip chain from Beijing to Shijiazhuang (May 2021); (j) Silhouette coefficient of intercity trip chain from Shijiazhuang to Beijing (May 2021); (k) Silhouette coefficient of intercity trip chain from Tianjin to Shijiazhuang (May 2021); (l) Silhouette coefficient of intercity trip chain from Shijiazhuang to Tianjin (May 2021).
Figure 3. (a) Silhouette coefficient of intercity trip chain from Beijing to Tianjin (May 2019); (b) Silhouette coefficient of intercity trip chain from Tianjin to Beijing (May 2019); (c) Silhouette coefficient of intercity trip chain from Beijing to Shijiazhuang (May 2019); (d) Silhouette coefficient of intercity trip chain from Shijiazhuang to Beijing (May 2019); (e) Silhouette coefficient of intercity trip chain from Tianjin to Shijiazhuang (May 2019); (f) Silhouette coefficient of intercity trip chain from Shijiazhuang to Tianjin (May 2019); (g) Silhouette coefficient of intercity trip chain from Beijing to Tianjin (May 2021); (h) Silhouette coefficient of intercity trip chain from Tianjin to Beijing (May 2021); (i) Silhouette coefficient of intercity trip chain from Beijing to Shijiazhuang (May 2021); (j) Silhouette coefficient of intercity trip chain from Shijiazhuang to Beijing (May 2021); (k) Silhouette coefficient of intercity trip chain from Tianjin to Shijiazhuang (May 2021); (l) Silhouette coefficient of intercity trip chain from Shijiazhuang to Tianjin (May 2021).
Asi 08 00088 g003aAsi 08 00088 g003b
Table 1. Description of trip chain data variables.
Table 1. Description of trip chain data variables.
No.VariableDescriptionInformation Fields
1WeekdayType of the day1: Holiday
2: Weekend
3: Weekday
2GenderThe sex of the traveler1: Male
2: Female
3AgeThe age of the traveler1: 0–18
2: 19–24
3: 25–29
4: 30–34
5: 35–39
4Type-OOrigin Type1: Residence
5Type-DDestination Type2: Work
3: Visit
6Mode-OTransportation mode of origin city1: Road transport
7Mode-DTransportation mode of destination city2: Railway
3: Airplane
4: Subway
5: Others
8MOT-ODeparture time from origin city1: 0:00–1:00
9MOT-DArrival time at destination city2: 1:00–2:00
10THub-OArrival time at origin city hub3: 2:00–3:00
11THub-DArrival time at destination city hub4:3:00–4:00
12De-ODeparture time from origin city hub
13De-DDeparture time from destination city hub23: 23:00–24:00
14Ds-OTravel distance within origin city1: 0–5 km
15Ds-DTravel distance within destination city2: 5–10 km
3: 10–25 km
16Tr-T-OTravel time within origin city1: 0–5 min
17Tr-T-DTravel time within destination city2: 5–10 min
18Wt-OWaiting time at origin city hub3: 10–15 min
19Wt-DWaiting time at the destination city hub4:15–20 min
Table 2. The data size.
Table 2. The data size.
May 2019May 2021
DirectionNumber of Trip ChainsPercentageNumber of Trip ChainsPercentage
Beijing–Tianjin36,92042.11%27,51837.13%
Tianjin–Beijing34,10038.89%20,19927.25%
Beijing–Shijiazhuang69657.94%10,95614.78%
Shijiazhuang–Beijing39644.52%782910.56%
Tianjin–Shijiazhuang30583.49%41265.57%
Shijiazhuang–Tianjin26753.05%34874.70%
Total87,682100%74,115100%
Table 3. Correlation coefficients of each attribute.
Table 3. Correlation coefficients of each attribute.
WeekdayGenderAgeCostMOT-OType-OMode-ODs-OTr-T-OTHub-OWt-ODe-OThub-DWt-DDe-DMode-DDs-DTr-T-DMOT-DType-DWeekday
Weekdayr1.0000.0600.1200.0620.1300.1390.018−0.051−0.0310.127−0.1240.1130.093−0.0890.0850.0190.0670.0350.0860.1241.000
Sig.0.0000.0000.0000.0000.0000.0000.0030.0000.0000.0000.0000.0000.0000.0000.0000.0020.0000.0000.0000.0000.000
Genderr0.0601.000−0.013−0.049−0.0080.0240.013−0.017−0.020−0.0110.017−0.009−0.0100.010−0.0090.018−0.052−0.028−0.0110.0230.060
Sig.0.0000.0000.0100.0000.1080.0000.0120.0010.0000.0430.0010.0870.0650.0590.0900.0010.0000.0000.0350.0000.000
Ager0.120−0.0131.000−0.126−0.0090.039−0.113−0.115−0.109−0.0190.028−0.016−0.014−0.044−0.019−0.076−0.023−0.024−0.0200.0480.120
Sig.0.0000.0100.0000.0000.0910.0000.0000.0000.0000.0000.0000.0020.0090.0000.0000.0000.0000.0000.0000.0000.000
Costr0.062−0.049−0.1261.000−0.0200.007−0.0420.0100.013−0.020−0.010−0.021−0.030−0.030−0.0320.0060.0040.003−0.0330.0050.062
Sig.0.0000.0000.0000.0000.0000.1580.0000.0470.0160.0000.0650.0000.0000.0000.0000.2300.4400.6240.0000.3000.000
MOT-Or0.130−0.008−0.009−0.0201.0000.012−0.006−0.177−0.1130.990−0.0100.9840.957−0.1270.952−0.0320.0770.0280.950−0.0380.130
Sig.0.0000.1080.0910.0000.0000.0210.2900.0000.0000.0000.0550.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
Type-Or0.1390.0240.0390.0070.0121.0000.015−0.0240.0140.010−0.0400.0060.002−0.0140.0010.010−0.018−0.0190.0000.0560.139
Sig.0.0000.0000.0000.1580.0210.0000.0160.0000.0070.0540.0000.2470.6910.0070.8070.1320.0010.0000.9440.0000.000
Mode-Or0.0180.013−0.113−0.042−0.0060.0151.0000.2930.4740.036−0.0910.0240.0190.0000.0180.079−0.0200.0130.0190.0110.018
Sig.0.0030.0120.0000.0000.2900.0160.0000.0000.0000.0000.0000.0000.0000.9480.0000.0000.0000.0140.0000.1300.003
Ds-Or−0.051−0.017−0.1150.010−0.177−0.0240.2931.0000.745−0.1050.009−0.104−0.0980.035−0.0960.0320.0050.003−0.095−0.006−0.051
Sig.0.0000.0010.0000.0470.0000.0000.0000.0000.0000.0000.0790.0000.0000.0000.0000.0000.3400.5780.0000.2180.000
Tr-T-Or−0.031−0.020−0.1090.013−0.1130.0140.4740.7451.000−0.020−0.012−0.022−0.0290.017−0.0280.0550.0110.024−0.026−0.008−0.031
Sig.0.0000.0000.0000.0160.0000.0070.0000.0000.0000.0000.0200.0000.0000.0010.0000.0000.0380.0000.0000.1410.000
THub-Or0.127−0.011−0.019−0.0200.9900.0100.036−0.105−0.0201.000−0.0100.9900.962−0.1260.956−0.0270.0790.0310.954−0.0410.127
Sig.0.0000.0430.0000.0000.0000.0540.0000.0000.0000.0000.0630.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
Wt-Or−0.1240.0170.028−0.010−0.010−0.040−0.0910.009−0.012−0.0101.0000.0930.0400.0260.043−0.023−0.008−0.0040.042−0.001−0.124
Sig.0.0000.0010.0000.0650.0550.0000.0000.0790.0200.0630.0000.0000.0000.0000.0000.0000.1100.4410.0000.8930.000
De-Or0.113−0.009−0.016−0.0210.9840.0060.024−0.104−0.0220.9900.0931.0000.960−0.1240.956−0.0300.0770.0300.954−0.0400.113
Sig.0.0000.0870.0020.0000.0000.2470.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
Thub-Dr0.093−0.010−0.014−0.0300.9570.0020.019−0.098−0.0290.9620.0400.9601.000−0.1150.991−0.0400.0780.0200.989−0.0530.093
Sig.0.0000.0650.0090.0000.0000.6910.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
Wt-Dr−0.0890.010−0.044−0.030−0.127−0.0140.0000.0350.017−0.1260.026−0.124−0.1151.000−0.028−0.054−0.069−0.084−0.031−0.055−0.089
Sig.0.0000.0590.0000.0000.0000.0070.9480.0000.0010.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
De-Dr0.085−0.009−0.019−0.0320.9520.0010.018−0.096−0.0280.9560.0430.9560.991−0.0281.000−0.0450.0720.0120.994−0.0610.085
Sig.0.0000.0900.0000.0000.0000.8070.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0180.0000.0000.000
Mode-Dr0.0190.018−0.0760.006−0.0320.0100.0790.0320.055−0.027−0.023−0.030−0.040−0.054−0.0451.0000.3450.410−0.0180.0130.019
Sig.0.0020.0010.0000.2300.0000.1320.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0370.002
Ds-Dr0.067−0.052−0.0230.0040.077−0.018−0.0200.0050.0110.079−0.0080.0770.078−0.0690.0720.3451.0000.6580.115−0.0170.067
Sig.0.0000.0000.0000.4400.0000.0010.0000.3400.0380.0000.1100.0000.0000.0000.0000.0000.0000.0000.0000.0010.000
Tr-T-Dr0.035−0.028−0.0240.0030.028−0.0190.0130.0030.0240.031−0.0040.0300.020−0.0840.0120.4100.6581.0000.075−0.0220.035
Sig.0.0000.0000.0000.6240.0000.0000.0140.5780.0000.0000.4410.0000.0000.0000.0180.0000.0000.0000.0000.0000.000
MOT-Dr0.086−0.011−0.020−0.0330.9500.0000.019−0.095−0.0260.9540.0420.9540.989−0.0310.994−0.0180.1150.0751.000−0.0620.086
Sig.0.0000.0350.0000.0000.0000.9440.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
Type-Dr0.1240.0230.0480.005−0.0380.0560.011−0.006−0.008−0.041−0.001−0.040−0.053−0.055−0.0610.013−0.017−0.022−0.0621.0000.124
Sig.0.0000.0000.0000.3000.0000.0000.1300.2180.1410.0000.8930.0000.0000.0000.0000.0370.0010.0000.0000.0000.000
Table 4. The optimal number of clusters for intercity trip chains.
Table 4. The optimal number of clusters for intercity trip chains.
TimeDirectionOptimal Value of KMaximum Silhouette Coefficient
May 2019Beijing–Tianjin50.204
Tianjin–Beijing50.201
Beijing–Shijiazhuang40.197
Shijiazhuang–Beijing40.218
Tianjin–Shijiazhuang40.234
Shijiazhuang–Tianjin30.233
May 2021Beijing–Tianjin40.192
Tianjin–Beijing50.216
Beijing–Shijiazhuang60.188
Shijiazhuang–Beijing40.213
Tianjin–Shijiazhuang30.251
Shijiazhuang–Tianjin40.251
Table 5. Beijing—Tianjin direction in different years accounted for the most trip chain characteristics.
Table 5. Beijing—Tianjin direction in different years accounted for the most trip chain characteristics.
Beijing–TianjinTianjin–Beijing
May 2019May 2021May 2019May 2021
Weekday3333
Gender1111
Type-O1111
Mode-O4411
Mode-D1111
Type-D1111
Age6567
MOT-O871012
Ds-O2211
Wt-O5766
Wt-D7656
Ds-D1122
Percentage55.7%54.99%47.7%49.50%
Table 6. Beijing–Shijiazhuang direction in different years accounted for the most trip chain characteristics.
Table 6. Beijing–Shijiazhuang direction in different years accounted for the most trip chain characteristics.
Beijing–ShijiazhuangShijiazhuang–Beijing
May 2019May 2021May 2019May 2021
Weekday3333
Gender1111
Type-O1111
Mode-O4411
Mode-D1111
Type-D0101
Age7575
MOT-O13877
Ds-O2211
Wt-O10976
Wt-D7577
Ds-D1122
Percentage52.6%41.39%45.4%58.76%
Table 7. Tianjin–Shijiazhuang direction in different years accounted for the most trip chain characteristics.
Table 7. Tianjin–Shijiazhuang direction in different years accounted for the most trip chain characteristics.
Tianjin–ShijiazhuangShijiazhuang–Tianjin
May 2019May 2021May 2019May 2021
Weekday3333
Gender2111
Type-O1111
Mode-O1111
Mode-D1111
Type-D0111
Age5555
MOT-O871011
Ds-O1111
Wt-O971111
Wt-D6876
Ds-D1111
Percentage47.6%60.98%67.9%57.14%
Table 8. Characteristics of the trip chain with the largest proportion of different travel directions in 2019.
Table 8. Characteristics of the trip chain with the largest proportion of different travel directions in 2019.
AttributesBeijing–
Tianjin
Tianjin–
Beijing
Beijing–
Shijiazhuang
Shijiazhuang–BeijingTianjin–
Shijiazhuang
Shijiazhuang–Tianjin
Weekday333333
Gender111121
Type-O111111
Mode-O414111
Mode-D111111
Type-D110001
Age667755
MOT-O810137810
Ds-O212111
Wt-O56107911
Wt-D757767
Ds-D121211
Percentage55.7%47.7%52.6%45.4%47.6%67.9%
Table 9. Characteristics of the trip chain with the largest proportion of different travel directions in 2021.
Table 9. Characteristics of the trip chain with the largest proportion of different travel directions in 2021.
AttributesBeijing–
Tianjin
Tianjin–
Beijing
Beijing–
Shijiazhuang
Shijiazhuang–BeijingTianjin–
Shijiazhuang
Shijiazhuang–Tianjin
Weekday333333
Gender111111
Type-O111111
Mode-O414111
Mode-D111111
Type-D111111
Age575555
MOT-O71287711
Ds-O212111
Wt-O7696711
Wt-D665786
Ds-D121211
Percentage54.99%49.50%41.39%58.76%60.98%57.14%
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

Yu, S.; Liu, Y.; Hu, S. Analysis of Spatiotemporal Characteristics of Intercity Travelers Within Urban Agglomeration Based on Trip Chain and K-Prototypes Algorithm. Appl. Syst. Innov. 2025, 8, 88. https://doi.org/10.3390/asi8040088

AMA Style

Yu S, Liu Y, Hu S. Analysis of Spatiotemporal Characteristics of Intercity Travelers Within Urban Agglomeration Based on Trip Chain and K-Prototypes Algorithm. Applied System Innovation. 2025; 8(4):88. https://doi.org/10.3390/asi8040088

Chicago/Turabian Style

Yu, Shuai, Yuqing Liu, and Song Hu. 2025. "Analysis of Spatiotemporal Characteristics of Intercity Travelers Within Urban Agglomeration Based on Trip Chain and K-Prototypes Algorithm" Applied System Innovation 8, no. 4: 88. https://doi.org/10.3390/asi8040088

APA Style

Yu, S., Liu, Y., & Hu, S. (2025). Analysis of Spatiotemporal Characteristics of Intercity Travelers Within Urban Agglomeration Based on Trip Chain and K-Prototypes Algorithm. Applied System Innovation, 8(4), 88. https://doi.org/10.3390/asi8040088

Article Metrics

Back to TopTop