A subway station feature mining method based on two-stage clustering

By combining the two-stage clustering and 0-1 regression model with the time distribution and spatial characteristics of passenger flow at subway stations, the problem of incomplete station classification in the existing technology is solved, and more refined station management and operation support are achieved.

CN118332509BActive Publication Date: 2024-10-11NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410760200.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-11
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The existing technology fails to effectively combine the passenger flow time characteristics and surrounding spatial characteristics of subway stations in the classification of urban rail transit stations, resulting in incomplete classification results and an inability to accurately explain the relationship between the causes of passenger flow and spatial characteristics.

Method used

A subway station characteristic mining method based on two-stage clustering is used, combined with the FCM algorithm and 0-1 regression model, to cluster the passenger flow time distribution and spatial characteristics of the subway station, correct the service scope, and design a 0-1 regression model to Combine time characteristics and space characteristics.

Benefits of technology

It achieves a more refined classification and management of subway stations, provides more accurate operational decision support and theoretical basis for land use, and improves the scientific nature of station type operation management and facility construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332509B_ABST
    Figure CN118332509B_ABST
Patent Text Reader

Abstract

The present invention discloses a subway station feature mining method based on two-stage clustering, based on the optimal number of clusters K 2. The FCM algorithm is used to perform the second step clustering on the subway station passenger flow matrix, and the clustering results based on the subway station passenger flow matrix are obtained as the time characteristics; the subway stations are classified based on the clustering results of the subway passenger flow level and the clustering results based on the subway station passenger flow matrix, and the Voronoi diagram is used to correct the service range of the subway station, and the 0-1 regression method is used to obtain the spatial characteristics of different types of stations. The present invention combines the FCM algorithm, clusters subway stations from the two perspectives of passenger flow level and passenger flow time distribution law, uses the Voronoi diagram to correct the service range of subway stations, and designs a 0-1 regression model, which can help public transportation operators to classify subway stations more accurately, provide decision support for the operation and management of different types of stations, and provide a theoretical basis for the construction of facilities and land use around subway stations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a subway station feature mining method based on two-stage clustering, and belongs to the field of spatiotemporal data technology mining. Background Art

[0002] Urban rail transit is an important part of public transportation. It is favored by all sectors of society and has developed rapidly due to its advantages of efficiency, convenience, punctuality, safety and reliability. Urban rail transit stations are not only key nodes of the rail transit network, but also an important part of the urban structure. Affected by travel activities, there are significant differences between stations. Therefore, fine classification of stations and mining the temporal and spatial characteristics of subway stations based on this can provide a reference for fine management of subway stations, such as flow prediction, flow control, and surrounding facility construction and land use.

[0003] Research on the classification of urban rail transit stations mainly focuses on the following aspects: 1) Classification based on land use characteristics within the service area of ​​subway stations. This method can reflect the spatial characteristics within the service area of ​​subway stations, but it requires a reasonable division of the service area of ​​subway stations and requires a large amount of land use data and POI (Points of Interest) data. 2) Classification based on the temporal fluctuation characteristics of passenger flow at subway stations. This method can reflect the temporal characteristics of passenger flow at subway stations. The classification standard is simple and intuitive, but it requires a large amount of card swiping data for entry and exit. 3) Classification based on the transportation attributes of subway stations themselves, such as the number of connected bus lines, the distance from the central area, whether it is a transfer station, etc. However, this method does not take into account the land use characteristics around subway stations and the temporal fluctuation characteristics of passenger flow at subway stations. Although the classification standard is clear, it is relatively one-sided.

[0004] The existing methods consider the spatial characteristics within the service area of ​​subway stations from the cause level, and explain the possible causes of subway station passenger flow; from the result level, they consider the temporal characteristics of subway station passenger flow and explain the specific characteristics of subway station passenger flow. However, the spatial characteristics within the service area of ​​subway stations will create the temporal characteristics of subway station passenger flow, and the temporal characteristics of subway station passenger flow will in turn promote the spatial characteristics within the service area of ​​subway stations. Considering only the spatial characteristics cannot explain the actual temporal characteristics of subway station passenger flow; considering only the temporal characteristics can only explain the surface characteristics of subway station passenger flow from the result level but cannot explain the reasons for its formation.

[0005] Therefore, technical personnel in this field urgently need to combine the actual passenger flow characteristics of subway stations with the spatial characteristics of the subway stations' surrounding areas to solve the technical problem of incomplete mining of subway station characteristics. Summary of the invention

[0006] Objective: To overcome the shortcomings of the prior art, the present invention provides a subway station feature mining method based on two-stage clustering, which takes into account the temporal distribution characteristics of passenger flow and the passenger flow level, improves the accuracy of the division of the service scope of subway stations, designs a 0-1 regression model, and classifies the types of subway stations in a refined manner, so as to help public transportation operators to more accurately classify subway stations, mine the temporal and spatial characteristics of different types of stations, provide decision support for the operation and management of different types of stations, and provide a theoretical basis for the construction of facilities and land use around subway stations.

[0007] Technical solution: To solve the above technical problems, the technical solution adopted by the present invention is:

[0008] A subway station feature mining method based on two-stage clustering includes the following steps:

[0009] Step 1: Obtain subway station card swiping data, count the time distribution of subway station passenger flow, and determine the effective clustering period.

[0010] Step 2: Calculate the average daily inbound passenger flow and average daily outbound passenger flow of the subway station in each period within the effective clustering period, and obtain the subway station passenger flow matrix and the logarithmic vector of the total passenger flow of the subway station.

[0011] Step 3: Use the FCM algorithm on the logarithmic vector of the total passenger flow at the subway station and use the elbow rule to obtain the optimal number of clusters K for the first step of clustering. 1 .

[0012] Step 4: Based on the optimal number of clusters K 1 ,The FCM algorithm is used to perform the first step clustering of the logarithmic vector of the total passenger flow of each subway station, and the clustering result based on the subway passenger flow level is obtained.

[0013] Step 5: Use the FCM algorithm on the subway station passenger flow matrix, use the elbow rule and calculate the silhouette coefficient to evaluate the clustering effect and obtain the optimal number of clusters K for the second step of clustering. 2 .

[0014] Step 6: Based on the optimal number of clusters K 2 ,The FCM algorithm is used to perform the second step clustering of the subway station passenger flow matrix, and the clustering result based on the subway station passenger flow matrix is ​​obtained as the time characteristic.

[0015] Step 7: Classify subway stations based on the clustering results of subway passenger flow level and subway station passenger flow matrix, use Voronoi diagram to correct the service range of subway stations, and use 0-1 regression method to obtain the spatial characteristics of different types of stations.

[0016] As a preferred solution, the step 1 specifically includes:

[0017] Step 1.1: Read the subway historical card swiping data for several consecutive days, the subway historical card swiping data includes but is not limited to five fields: date, entry time, exit time, entry station and exit station;

[0018] Step 1.2: Based on the historical subway card swiping data obtained, count the average daily passenger flow of each subway station in each time period , average daily outbound passenger flow , where 1 represents entering the station, 2 represents leaving the station, i is the subway station number, and t is the time period number;

[0019] Step 1.3: Calculate the average daily passenger flow of all subway stations during period t , I is the total number of subway stations; the average daily passenger flow distribution of subway stations in each time period is counted, and a line graph of the average daily passenger flow distribution of subway stations is drawn. According to the distribution line graph, the time period T corresponding to the passenger flow distribution density greater than the density threshold is selected as the effective clustering period.

[0020] As a preferred solution, the step 2 specifically includes:

[0021] Step 2.1: From , Intercept Part, get the daily average inbound passenger flow and daily average outbound passenger flow in the effective clustering period T;

[0022] Step 2.2: Take the average daily inbound passenger flow in the effective clustering period T as the first column and the average daily outbound passenger flow as the second column to obtain the subway station passenger flow matrix ; The passenger flow matrix The sum of the same column is the total passenger flow vector of the subway station , calculate the natural logarithm of the total passenger flow vector of the subway station to obtain the logarithmic vector of the total passenger flow of the subway station ; Among them, T 0 represents the first clustering period, T 1 represents the last clustering period;

[0023] Step 2.3: Generate a vector dataset of the total passenger flow at subway stations , where x i is the sample point, and its expression is: ; Generate subway station passenger flow matrix data set F= ,in .

[0024] As a preferred solution, the step 3 specifically includes:

[0025] Step 3.1: Cluster the total passenger flow logarithmic vector dataset X of the subway station and set the number of clusters , N1 N is the upper limit of cluster number, 2 is the lower limit number of clusters;

[0026] Step 3.2: Based on the number of clusters N, calculate the cluster center C of each cluster n , and its calculation formula is: ; Where m is the membership factor; for Cluster Center The membership degree of , which satisfies the conditions: ;

[0027] Step 3.3: Based on cluster center C n , calculate the sample point x i The membership degree of the cluster center is calculated as follows:

[0028] ;

[0029] Among them, C j represents the jth cluster center;

[0030] Step 3.4: Based on cluster center C n and membership , construct the objective function , and solve the objective function Get the clustering result of the first step of clustering; among them, the objective function The calculation formula is as follows:

[0031] ;

[0032] represents the Euclidean distance;

[0033] Step 3.5: Draw a line graph of distortion degree and number of clusters based on the clustering results of the first step of clustering, and use the elbow rule to obtain the optimal number of clusters for the first step of clustering. .

[0034] As a preferred solution, the objective function The methods include:

[0035] Substitute the cluster center and membership into the objective function Start iteration, the iteration process is as follows:

[0036] a) Set the range of cluster numbers , set the membership factor m, set the maximum number of iterations, and set the error range;

[0037] b) Initialize membership , the conditions must be met ;

[0038] c) According to the degree of membership Calculate the cluster center C n ;

[0039] d) The membership degree and cluster center C n Substitute the objective function y 1 Calculate the function value y 1 ;

[0040] e) According to the cluster center C n Calculate membership ;

[0041] f) According to the degree of membership Calculate cluster centers ;

[0042] g) The membership degree and cluster centers Substitute the objective function y 1 Calculate function value ,calculate ,when If it is within the error range, it is considered that the objective function has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result of the first step of clustering is output, otherwise jump to e);

[0043] Based on the cluster center C n , calculate the degree of distortion of each cluster, and the calculation formula is as follows:

[0044] ;

[0045] d n is the degree of distortion of each cluster, and is the cluster center and The sum of the squares of the Euclidean distance; calculate the total distortion degree D of the number of clusters N N , and its calculation formula is: , and obtain the total distortion degree D under the number of clusters N N , draw D N -N line graph, the optimal number of clusters K for the first step of clustering is obtained by the elbow rule 1 .

[0046] As a preferred solution, the step 4 specifically includes:

[0047] Step 4.1: Optimal number of clusters K based on the first step of clustering 1 , initialize the membership ; Membership factor m, maximum number of iterations, error range;

[0048] Step 4.2: Based on membership , calculate the cluster center ;

[0049] Step 4.3: Based on membership , cluster center C n Calculate the function value y 2 :

[0050] ;

[0051] Step 4.4: Based on cluster center C n , calculate the membership , and its calculation formula is:

[0052] ;

[0053] Step 4.5: Based on membership , calculate the cluster center ;

[0054] Step 4.6: Based on membership , cluster center Calculate function value

[0055] ;

[0056] Step 4.7: Calculation ,when If y is within the error range, 2 If the iteration reaches the minimum value or the number of iterations reaches the upper limit, the iteration is stopped and the clustering result based on the subway passenger flow level is output. Otherwise, jump to step 4.4.

[0057] As a preferred solution, the step 5 specifically includes:

[0058] Step 5.1: Cluster the subway station passenger flow matrix dataset F and set the number of clusters N ∈ [ N 1 , N 2 ] , where N 1 N is the upper limit of cluster number, 2 is the lower limit number of clusters;

[0059] Step 5.2: Based on the number of clusters N, calculate the cluster center C of each cluster n , the calculation formula is:

[0060] ;

[0061] in, f i For cluster center C n The membership degree of , which satisfies the conditions: ;

[0062] Step 5.3: Based on cluster center C n , calculate the sample point f i The membership degree of the cluster center is calculated as follows:

[0063] ;

[0064] Step 5.4: Based on cluster center C n and membership , introduce the objective function , and solve the objective function Get the clustering result of the second step clustering; among them, the objective function The calculation formula is as follows:

[0065] ;

[0066] Step 5.5: Draw a line graph of distortion degree and number of clusters based on the clustering results of the second step, and use the elbow rule to get the number of clusters in the second step. ;

[0067] Step 5.6: Calculate the number of clusters according to the second step Draw a line graph of silhouette coefficient and number of clusters to evaluate the number of clusters in the second step The clustering effect of the second step clustering is obtained. 2 .

[0068] As a preferred solution, the objective function The methods include:

[0069] The cluster center C n and membership Substitute into the objective function Start iteration, the iteration process is as follows:

[0070] a) Set the range of cluster numbers , set the membership factor m, set the maximum number of iterations, and set the error range;

[0071] b) Initialize membership , the conditions must be met ;

[0072] c) According to the degree of membership Calculate the cluster center C n ;

[0073] d) The membership degree and cluster center C n Substitute into the objective function Calculate the function value y 3 ;

[0074] e) According to the cluster center C n Calculate membership ;

[0075] f) According to the degree of membership Calculate cluster centers ;

[0076] g) The membership degree and cluster centers Substitute into the objective function Calculate function value ,calculate ,when If it is within the error range, it is considered that the objective function has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result of the second step clustering is output, otherwise jump to e);

[0077] Based on the cluster center C n , calculate the degree of distortion of each cluster, and the calculation formula is as follows:

[0078] ;

[0079] d n is the degree of distortion of each cluster, and is the cluster center and The sum of the squares of the Euclidean distance; calculate the total distortion degree D of the number of clusters N N , the calculation formula is: , and obtain the total distortion degree D under the number of clusters N N , draw D N —N line graph, the number of clusters K in the second step is obtained by the elbow rule 2 ;

[0080] According to the second step clustering number Draw a line graph of silhouette coefficient and number of clusters to evaluate the number of clusters in the second step The clustering effect of the second step clustering is obtained. 2 , specifically including:

[0081] a) Based on the clustering results, calculate the single sample point f of cluster n i Cohesion , the calculation formula is:

[0082] ;

[0083] In the formula, is the sample point f i The sum of the Euclidean distances of other sample points f in cluster n, q is the total number of sample points in cluster n;

[0084] b) Based on the clustering results, calculate the single sample point f of cluster n i The minimum average distance b between sample points in other clusters except this cluster i , the calculation formula is:

[0085] ;

[0086] In the formula, is the sample point f i With other cluster sample points The sum of the Euclidean distances of is the total number of sample points in other clusters other than cluster n;

[0087] c) Based on a i , b i , calculate the single sample point f of cluster n i The silhouette coefficient s i , the calculation formula is:

[0088] ;

[0089] d) Silhouette coefficient s based on a single sample point in cluster n i , calculate the silhouette coefficient of cluster n , the calculation formula is:

[0090] ;

[0091] e) Silhouette coefficient based on cluster n , calculate the silhouette coefficient of the number of clusters N, the calculation formula is:

[0092] ;

[0093] Draw -N line graph, evaluate the clustering effect of different cluster numbers N, and get the optimal cluster number K for the second step clustering 2 .

[0094] As a preferred solution, the step 6 specifically includes:

[0095] Step 6.1: Optimal number of clusters K based on the second step clustering 2 , initialize the membership ; Membership factor m, maximum number of iterations, error range;

[0096] Step 6.2: Based on membership , calculate the cluster center ;

[0097] Step 6.3: Based on membership , cluster center C n Calculate the function value y4 :

[0098] ;

[0099] Step 6.4: Based on the cluster center C n , calculate the membership , the calculation formula is:

[0100] ;

[0101] Step 6.5: Based on membership , calculate the cluster center ;

[0102] Step 6.6: Based on membership , cluster center Calculate function value :

[0103] ;

[0104] Step 6.7: Calculation ,when If y is within the error range, 4 If the iteration reaches the minimum value or the number of iterations reaches the upper limit, the iteration stops and the clustering result based on the subway station passenger flow matrix is ​​output. Otherwise, jump to step 6.4.

[0105] Step 6.8: According to the clustering result based on the subway station passenger flow matrix, the law of subway station passenger flow fluctuation over time is obtained as the time characteristic.

[0106] As a preferred solution, the step 7 specifically includes:

[0107] Step 7.1: Record the set of subway stations as , where p i represents the i-th subway station. Based on the coordinates of the subway station, the subway station service radius r is divided into the inner layer , outer layer , is the first radius threshold, is the second radius threshold, merging the inner layer and the outer layer into subway station p i Our services ;

[0108] Step 7.2: Construct the Voronoi diagram V of the area based on the coordinates of the subway stations vor ;

[0109] Step 7.3: Calculate the intersection of the subway station service range and the regional Voronoi diagram to obtain the subway station service range based on the Voronoi diagram. :

[0110] ;

[0111] in, Any geographic point p in satisfies:

[0112] ;

[0113] According to service scope Get the intersection boundary between the subway station service area and the regional Voronoi diagram;

[0114] When the distance between the intersection boundary and the subway station is less than or equal to hour, The area enclosed by the inner boundary and the intersecting boundary is The inner area of The area enclosed by the inner boundary, outer boundary and intersecting boundary is The outer region;

[0115] When the distance between the intersection boundary and the subway station is greater than hour, The inner area of The inner area of The area enclosed by the inner boundary, outer boundary and intersecting boundary is The outer region of

[0116] When there are no intersecting boundaries, The inner area of The inner area of The outer region of outer area.

[0117] statistics The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI within the inner and outer layers;

[0118] Step 7.4: Based on the clustering results of subway passenger flow level and the clustering results of subway station passenger flow matrix, a 0-1 regression method is used to perform regression analysis to obtain the spatial characteristics of different types of stations, including:

[0119] a) The clustering results of the first and second steps are , , combining the two-stage clustering results pairwise, we have ;

[0120] b) The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI within the inner layer are used as independent variables. ,by The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI in the outer range are used as independent variables. ;

[0121] c) Based on , for each clustering result Perform regression analysis and set The dependent variable corresponding to the subway station is 1, which does not belong to The dependent variable corresponding to the subway station is 0, and the regression model is:

[0122] ;

[0123] Among them, i is the subway station, Z ij represents the j-th independent variable of subway station i, is the coefficient of the independent variable j, is the intercept, is a random error;

[0124] d) Set the independent variables of each subway station separately , independent variable Substitute into the regression model and find Inner and Outer ,when greater than 0, Corresponding The inner independent variable has a positive promoting effect. Less than 0, Corresponding The inner independent variable produces a reverse inhibition effect. greater than 0, Corresponding The outer independent variable has a positive promoting effect. Less than 0, Corresponding The outer independent variables produce reverse inhibition effects; the positive promotion and reverse inhibition effects produced by the independent variables are taken as spatial characteristics.

[0125] Beneficial effect: The present invention provides a subway station feature mining method based on two-stage clustering. The present invention uses a two-step clustering framework in combination with the FCM algorithm to cluster subway stations from the two perspectives of passenger flow level and passenger flow time distribution law, uses the Voronoi diagram to correct the service scope of the subway station, and designs a 0-1 regression model, which can more accurately help public transportation operators to more accurately classify subway stations, provide decision support for the operation and management of different types of stations, and provide a theoretical basis for the construction of facilities and land use around subway stations.

[0126] The present invention applies the fuzzy C-means clustering (FCM) algorithm to the clustering of subway stations. Due to the fuzziness of the algorithm, the type of station pays more attention to the membership degree between the station and the cluster center, making the clustering result more flexible; the present invention deeply mines the historical card swiping records of subway stations from the two perspectives of passenger flow time distribution characteristics and passenger flow level, and uses a two-stage clustering method for clustering. Compared with the existing clustering method, its clustering result is more comprehensive; the present invention divides the service radius of the subway station into two layers, inner and outer, and corrects the service range of the subway station in combination with the Voronoi diagram, which can more accurately divide the real service range of the subway station and reflect the characteristics of the surrounding area of ​​the subway station; the present invention proposes a 0-1 regression model in combination with the two-stage clustering, which combines the temporal characteristics of the subway station passenger flow with the spatial characteristics within the service range of the subway station. Compared with the traditional method, it takes both time and space into consideration, and mines the characteristics of the subway station more comprehensively. BRIEF DESCRIPTION OF THE DRAWINGS

[0127] Figure 1 It is a schematic diagram of the process of the present invention.

[0128] Figure 2 It is a time distribution diagram of the total passenger flow in and out of the subway station.

[0129] Figure 3 It is the first step clustering distortion degree map.

[0130] Figure 4 It is the second step clustering distortion degree map.

[0131] Figure 5 It is the second step clustering silhouette coefficient graph.

[0132] Figure 6 This is a comparison chart before and after the service scope was revised.

[0133] Figure 7 YesP 1 Passenger flow distribution map of this type of site.

[0134] Figure 8 YesP 2 Passenger flow distribution map of this type of site.

[0135] Fig. 9 YesP 3 Passenger flow distribution map of this type of site.

[0136] Fig.10 YesP 4 Passenger flow distribution map of this type of site. DETAILED DESCRIPTION

[0137] The following is a clear and complete description of the technical solutions in the examples of the present invention in conjunction with the accompanying drawings in the examples of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the protection scope of the present invention.

[0138] The present invention will be further described below in conjunction with specific embodiments.

[0139] Embodiment 1:

[0140] This embodiment introduces a subway station feature mining method based on two-stage clustering, including the following steps:

[0141] Step 1: Obtain subway station card swiping data, count the time distribution of subway station passenger flow, and determine the effective clustering period.

[0142] Step 2: Calculate the average daily inbound passenger flow and average daily outbound passenger flow of the subway station in each period within the effective clustering period, and obtain the subway station passenger flow matrix and the logarithmic vector of the total passenger flow of the subway station.

[0143] Step 3: Use the FCM algorithm on the logarithmic vector of the total passenger flow at the subway station and use the elbow rule to obtain the optimal number of clusters K for the first step of clustering. 1 .

[0144] Step 4: Based on the optimal number of clusters K 1 ,The FCM algorithm is used to perform the first step clustering of the logarithmic vector of the total passenger flow of each subway station, and the clustering result based on the subway passenger flow level is obtained.

[0145] Step 5: Use the FCM algorithm on the subway station passenger flow matrix, use the elbow rule and calculate the silhouette coefficient to evaluate the clustering effect and obtain the optimal number of clusters K for the second step of clustering. 2 .

[0146] Step 6: Based on the optimal number of clusters K 2 ,The FCM algorithm is used to perform the second step clustering of the subway station passenger flow matrix, and the clustering result based on the subway station passenger flow matrix is ​​obtained as the time characteristic.

[0147] Step 7: Classify subway stations based on the clustering results of subway passenger flow level and subway station passenger flow matrix, use Voronoi diagram to correct the service range of subway stations, and use 0-1 regression method to obtain the spatial characteristics of different types of stations.

[0148] Furthermore, the step 1 specifically includes:

[0149] Step 1.1: Read the subway historical card swiping data for several consecutive days, wherein the subway historical card swiping data includes but is not limited to five fields: date, entry time, exit time, entry station, and exit station.

[0150] Step 1.2: Based on the historical subway card swiping data obtained, count the average daily passenger flow of each subway station in each time period , average daily outbound passenger flow , where 1 represents entering the station, 2 represents leaving the station, i is the subway station number, and t is the time period number.

[0151] Step 1.3: Calculate the average daily passenger flow of all subway stations during period t , I is the total number of subway stations. The average daily passenger flow distribution of subway stations in each period is counted, and a line graph of the average daily passenger flow distribution of subway stations is drawn. According to the distribution line graph, the period T corresponding to the passenger flow distribution density greater than the density threshold is selected as the effective clustering period.

[0152] As a preferred solution, the step 2 specifically includes:

[0153] Step 2.1: From , Intercept Part, the average daily inbound passenger flow and the average daily outbound passenger flow in the effective clustering period T are obtained.

[0154] Step 2.2: Take the average daily inbound passenger flow in the effective clustering period T as the first column and the average daily outbound passenger flow as the second column to obtain the subway station passenger flow matrix . The passenger flow matrix The sum of the same column is the total passenger flow vector of the subway station , calculate the natural logarithm of the total passenger flow vector of the subway station to obtain the logarithmic vector of the total passenger flow of the subway station Among them, T 0 represents the first clustering period, T 1 Indicates the last clustering period.

[0155] Step 2.3: Generate a vector dataset of the total passenger flow at subway stations , where x i is the sample point, and its expression is: Generate subway station passenger flow matrix dataset F = ,in .

[0156] As a preferred solution, the step 3 specifically includes:

[0157] Step 3.1: Cluster the total passenger flow logarithmic vector dataset X of the subway station and set the number of clusters , N 1 N is the upper limit of cluster number, 2 is the lower limit of cluster number.

[0158] Step 3.2: Based on the number of clusters N, calculate the cluster center C of each cluster n , and its calculation formula is: . Among them, m is the membership factor, m>1, the larger m is, the more fuzzy the membership is; for Cluster Center The membership degree of , which satisfies the conditions: .

[0159] Step 3.3: Based on cluster center C n , calculate the sample point x i The membership degree of the cluster center is calculated as follows:

[0160]

[0161] Among them, C j represents the jth cluster center.

[0162] Step 3.4: Based on cluster center C n and membership , construct the objective function , and solve the objective function Get the clustering result of the first step of clustering. Among them, the objective function The calculation formula is as follows:

[0163]

[0164] represents the Euclidean distance.

[0165] The objective function to be solved The methods include:

[0166] Substitute the cluster center and membership into the objective function Start iteration, the iteration process is as follows:

[0167] a) Set the range of cluster numbers , set the membership factor m, set the maximum number of iterations, and set the error range.

[0168] b) Initialize membership , the conditions must be met .

[0169] c) According to the degree of membership Calculate the cluster center C n .

[0170] d) The membership degree and cluster center C n Substitute the objective function y 1 Calculate the function value y 1 .

[0171] e) According to the cluster center C n Calculate membership .

[0172] f) According to the degree of membership Calculate cluster centers .

[0173] g) The membership degree and cluster centers Substitute the objective function y 1 Calculate function value ,calculate ,when If it is within the error range, it is considered that the objective function has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result of the first step of clustering is output, otherwise jump to e).

[0174] Step 3.5: Draw a line graph of distortion degree and number of clusters based on the clustering results of the first step of clustering, and use the elbow rule to obtain the optimal number of clusters for the first step of clustering. .

[0175] Based on the cluster center C n , calculate the degree of distortion of each cluster, and the calculation formula is as follows:

[0176]

[0177] d n is the degree of distortion of each cluster, and is the cluster center and The sum of the squares of the Euclidean distance. Calculate the total distortion D of the number of clusters N N , and its calculation formula is: , and obtain the total distortion degree D under the number of clusters N N , draw D N -N line graph, the optimal number of clusters K for the first step of clustering can be obtained by the elbow rule 1 .

[0178] As a preferred solution, the step 4 specifically includes:

[0179] Step 4.1: Optimal number of clusters K based on the first step of clustering 1 , initialize the membership The membership factor m, maximum number of iterations, and error range are the same as those in step 3.4.

[0180] Step 4.2: Based on membership , calculate the cluster center .

[0181] Step 4.3: Based on membership , cluster center C n Calculate the function value y 2 :

[0182]

[0183] Step 4.4: Based on cluster center C n , calculate the membership , and its calculation formula is:

[0184]

[0185] Step 4.5: Based on membership , calculate the cluster center .

[0186] Step 4.6: Based on membership , cluster center Calculate function value :

[0187] .

[0188] Step 4.7: Calculation ,when If y is within the error range, 2 If the iteration reaches the minimum value or the number of iterations reaches the upper limit, the iteration is stopped and the clustering result based on the subway passenger flow level is output. Otherwise, jump to step 4.4.

[0189] As a preferred solution, the step 5 specifically includes:

[0190] Step 5.1: Cluster the subway station passenger flow matrix dataset F and set the number of clusters , where N 1 N is the upper limit of cluster number, 2 is the lower limit of cluster number.

[0191] Step 5.2: Based on the number of clusters N, calculate the cluster center C of each cluster n , the calculation formula is:

[0192]

[0193] in, is the membership degree of fi to the cluster center Cn, which satisfies the conditions: .

[0194] Step 5.3: Based on cluster center C n , calculate the sample point f i The membership degree of the cluster center is calculated as follows:

[0195]

[0196] Step 5.4: Based on cluster center C n and membership , introduce the objective function , and solve the objective function The clustering result of the second step clustering is obtained. Among them, the objective function The calculation formula is as follows:

[0197]

[0198] The objective function to be solved The methods include:

[0199] The cluster center C n and membership Substitute into the objective function Start iteration, the iteration process is as follows:

[0200] a) Set the range of cluster numbers , set the membership factor m, set the maximum number of iterations, and set the error range.

[0201] b) Initialize membership , the conditions must be met .

[0202] c) According to the degree of membership Calculate the cluster center C n .

[0203] d) The membership degree and cluster center C n Substitute into the objective function Calculate the function value y 3 .

[0204] e) According to the cluster center C n Calculate membership .

[0205] f) According to the degree of membership Calculate cluster centers .

[0206] g) The membership degree and cluster centers Substitute into the objective function Calculate function value ,calculate ,when If it is within the error range, it is considered that the objective function has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result of the second step clustering is output, otherwise jump to e).

[0207] Step 5.5: Draw a line graph of distortion degree and number of clusters based on the clustering results of the second step, and use the elbow rule to get the number of clusters in the second step. .

[0208] Based on the cluster center C n , calculate the degree of distortion of each cluster, and the calculation formula is as follows:

[0209]

[0210] d n is the degree of distortion of each cluster, and is the cluster center and The sum of the squares of the Euclidean distance. Calculate the total distortion D of the number of clusters N N , the calculation formula is: , and obtain the total distortion degree D under the number of clusters N N , draw D N —N line graph, the number of clusters K in the second step is obtained by the elbow rule 2 .

[0211] Step 5.6: Calculate the number of clusters according to the second step Draw a line graph of silhouette coefficient and number of clusters to evaluate the number of clusters in the second step The clustering effect of the second step clustering is obtained. 2 .

[0212] a) Based on the clustering results, calculate the single sample point f of cluster n i Cohesion , the calculation formula is:

[0213]

[0214] In the formula, is the sample point f iThe sum of the Euclidean distances of other sample points f in cluster n, and q is the total number of sample points in cluster n.

[0215] b) Based on the clustering results, calculate the single sample point f of cluster n i The minimum average distance b between samples in other clusters except this cluster i , the calculation formula is:

[0216]

[0217] In the formula, is the sample point f i With other cluster sample points The sum of the Euclidean distances of is the total number of sample points in other clusters other than cluster n.

[0218] c) Based on a i , b i , calculate the single sample point f of cluster n i The silhouette coefficient s i , the calculation formula is:

[0219]

[0220] d) Silhouette coefficient s based on a single sample point in cluster n i , calculate the silhouette coefficient of cluster n , the calculation formula is:

[0221]

[0222] e) Silhouette coefficient based on cluster n , calculate the silhouette coefficient of the number of clusters N, the calculation formula is:

[0223]

[0224] Draw -N line graph, evaluate the clustering effect of different cluster numbers N, and get the optimal cluster number K for the second step clustering 2 .

[0225] As a preferred solution, the step 6 specifically includes:

[0226] Step 6.1: Optimal number of clusters K based on the second step clustering 2 , initialize the membership The membership factor m, maximum number of iterations, and error range are the same as those in step 5.4.

[0227] Step 6.2: Based on membership , calculate the cluster center .

[0228] Step 6.3: Based on membership , cluster center C n Calculate the function value y 4 :

[0229]

[0230] Step 6.4: Based on the cluster center C n , calculate the membership , the calculation formula is:

[0231]

[0232] Step 6.5: Based on membership , calculate the cluster center .

[0233] Step 6.6: Based on membership , cluster center Calculate function value :

[0234] .

[0235] Step 6.7: Calculation ,when If y is within the error range, 4 If the iteration reaches the minimum value or the number of iterations reaches the upper limit, the iteration is stopped and the clustering result based on the subway station passenger flow matrix is ​​output. Otherwise, jump to step 6.4.

[0236] Step 6.8: According to the clustering result based on the subway station passenger flow matrix, the law of subway station passenger flow fluctuation over time is obtained as the time characteristic.

[0237] As a preferred solution, the step 7 specifically includes:

[0238] Step 7.1: Record the set of subway stations as , where p i represents the i-th subway station. Based on the coordinates of the subway station, the subway station service radius r is divided into the inner layer ( , unit: meter), outer layer ( , unit: meter), is the first radius threshold, is the second radius threshold, merging the inner layer and the outer layer into subway station p i Our services .

[0239] Always hope to stop at the subway stationi Our services Any geographic point p in the service range satisfies the following conditions, so it is necessary to To make corrections:

[0240]

[0241] in, represents the jth subway station.

[0242] Step 7.2: Construct the Voronoi diagram V of the area based on the coordinates of the subway stations vor .

[0243] Step 7.3: Calculate the intersection of the subway station service range and the regional Voronoi diagram to obtain the subway station service range based on the Voronoi diagram. :

[0244]

[0245] Any geographic point p in satisfies:

[0246]

[0247] According to service scope Get the intersection boundary between the subway station service area and the regional Voronoi diagram.

[0248] When the distance between the intersection boundary and the subway station is less than or equal to hour, The area enclosed by the inner boundary and the intersecting boundary is The inner area of The area enclosed by the inner boundary, outer boundary and intersecting boundary is The outer region;

[0249] When the distance between the intersection boundary and the subway station is greater than hour, The inner area of The inner area of The area enclosed by the inner boundary, outer boundary and intersecting boundary is outer area.

[0250] When there are no intersecting boundaries, The inner area of The inner area of The outer region of outer area.

[0251] statistics The residential population density, working population density, work-type POI density, commercial POI density, catering POI density, and science, education, culture, and health POI density within the inner and outer layers.

[0252] Step 7.4: Based on the clustering results of subway passenger flow level and the clustering results of subway station passenger flow matrix, the 0-1 regression method is used to perform regression analysis to obtain the spatial characteristics of different types of stations. The process is as follows:

[0253] a) The clustering results of the first and second steps are , , combining the two-stage clustering results pairwise, we have .

[0254] b) The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI within the inner layer are used as independent variables. ,by The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI in the outer range are used as independent variables. .

[0255] c) Based on , for each clustering result Perform regression analysis and set The dependent variable corresponding to the subway station is 1, which does not belong to The dependent variable corresponding to the subway station is 0, and the regression model is:

[0256]

[0257] Among them, i is the subway station, Z ij represents the j-th independent variable of subway station i, is the coefficient of the independent variable j, is the intercept, is a random error.

[0258] d) Set the independent variables of each subway station separately , independent variable Substitute into the regression model and find Inner and Outer ,when greater than 0, Corresponding The inner independent variable has a positive promoting effect. Less than 0, Corresponding The inner independent variable produces a reverse inhibition effect. greater than 0, Corresponding The outer independent variable has a positive promoting effect. Less than 0, Corresponding The outer independent variables produce reverse inhibition. The positive promotion and reverse inhibition produced by the independent variables are regarded as spatial characteristics.

[0259] Embodiment 2:

[0260] 1. Obtain the card swiping data at subway stations, count the time distribution of passenger flow at subway stations, and determine the effective clustering period.

[0261] 159 subway stations in Nanjing were selected to count the average daily passenger flow at each subway station during time period t. and average daily outbound passenger flow , according to the formula Calculate the sum of the average daily inbound and outbound passenger flow of all subway stations in time period t, and determine the effective clustering period T based on the time distribution of the total passenger flow.

[0262] In step 1, it is necessary to obtain subway station card swiping data. The subway IC card swiping data for ten days from two working weeks (excluding weekends) from April 8 to 19, 2019 were selected. The data attributes include five fields: date, exit time, entry time, entry station, and exit station. After excluding weekend data and abnormal data, a total of 13,131,609 data items are obtained. The specific data format is shown in Table 1.

[0263] Table 1 Subway IC card swiping data

[0264]

[0265] According to the data in Table 1, the total inbound and outbound passenger flows of all stations in each period of the day are counted, and a line graph of passenger flow distribution is drawn, as shown in Figure 2 .according to Figure 2 The subsequent clustering period is determined to be T=5:00~23:00.

[0266] 2. Calculate the average daily inbound passenger flow and the average daily outbound passenger flow of the subway station in each hour period within the clustering period, and obtain the subway station passenger flow matrix, total passenger flow vector, and total passenger flow logarithm vector.

[0267] Calculate the average daily inbound passenger flow and average daily outbound passenger flow of the subway station in each hour period from 05:00 to 23:00, take the average daily inbound passenger flow as the first column of the matrix and the average daily outbound passenger flow as the second column of the matrix, and get the passenger flow matrix of the subway station For example, the passenger flow matrix of Maigaoqiao Station is: According to the formula , the passenger flow matrix The total passenger flow vector is obtained by summing the same columns, and then according to the formula , calculate the natural logarithm of the passenger flow matrix, such as the total passenger flow logarithm vector of Maigaoqiao Station is Finally, the total passenger flow vector dataset is generated , passenger flow matrix dataset .

[0268] 3. Use the FCM algorithm on the total passenger flow vector data set X and use the elbow rule to determine the number of clusters in the first step.

[0269] Set the number of clusters to 2~15, the membership factor m=2, and the error range to 10 -5 , the maximum number of iterations is 150, for each cluster number , initialize the membership matrix as:

[0270] , the sum of each column is 1, satisfying the condition:

[0271] Substitute the cluster number range, membership factor, error range, maximum number of iterations, and initial membership matrix into step 3. Calculate the degree of distortion of each execution result and draw a line graph of distortion degree and number of clusters. Figure 3 .according to Figure 3 , the first step is to select the number of clusters cluster.

[0272] 4. Based on the optimal number of clusters ,The FCM algorithm is used to perform the first step clustering of the logarithmic vector of the total passenger flow of each subway station.

[0273] Set the number of clusters in the first step of clustering to 3, the membership factor m=2, and the error range 10 -5 , the maximum number of iterations is 150, and the membership matrix is ​​initialized as: , the sum of each column is 1, satisfying the condition: Substitute the cluster number range, membership factor, error range, maximum number of iterations, and initial membership matrix into step 4, and output the first step clustering results. The three types are V 1 ,V 2 ,V 3 The descriptive explanation is shown in Table 2.

[0274] Table 2 Descriptive statistics of the first step clustering results

[0275]

[0276] 5. Use the FCM algorithm on the passenger flow matrix, determine the number of clusters in the second step according to the elbow rule, and calculate the silhouette coefficient to evaluate the clustering effect.

[0277] Set the number of clusters to 2~15 clusters, set the membership factor m=1.2, and the error range to 10 -9 , the maximum number of iterations is 1000 times, for each cluster number ( ), initialize the membership matrix as , the sum of each column is 1, satisfying the condition: .

[0278] Substitute the cluster number range, membership factor, error range, maximum number of iterations, and initial membership matrix into step 5. Calculate the degree of distortion of each execution result and draw a line graph of distortion degree-cluster number as shown below: Figure 4 ,according to Figure 4 choose Calculate the silhouette coefficient and draw a line graph of silhouette coefficient-number of clusters to judge the clustering effect. Figure 5 ,according to Figure 5 Knowable It is about 0.2, and the clustering effect is good.

[0279] 6. Based on the optimal number of clusters K 2 ,The FCM algorithm is used to perform the second step clustering of the passenger flow matrix of each subway station to obtain the time characteristics of different types of stations.

[0280] Set the number of clusters in the second step to Class, membership factor m=1.2, error range 10 -9 , the maximum number of iterations is 1000, and the membership matrix is ​​initialized as: , the sum of each column is 1, satisfying the condition: , substitute the cluster number range, membership factor, error range, maximum number of iterations, and initial membership matrix into step 6, and output the clustering results of the second step. The four types are recorded as P 1 ,P 2 ,P 3 ,P 4 The descriptive statistics are shown in Table 3.

[0281] Table 3 Descriptive statistics of clustering results in the second step

[0282]

[0283] 7. Based on the two-step clustering results, the subway stations are classified and a 0-1 regression method is designed to explore the spatial characteristics of different types of stations.

[0284] Based on 159 subway stations in Nanjing, the Nanjing Voronoi diagram V is constructed.vor , dividing the subway station service area , including the inner service area ( , unit: meter), outer service area ( , unit: meter), find The service area of ​​the revised subway station is as follows: Figure 6 shown.

[0285] Metro station service area after statistical correction The residential population density, working population density, work-type POI density, commercial POI density, catering POI density, and science, education, culture, and health POI density within the inner and outer layers.

[0286] Combining the two-step clustering results, subway stations are divided into 12 types. The statistics of the number of each type are shown in Table 4.

[0287] Table 4 Clustering results of subway stations

[0288]

[0289] Based on the two-step clustering results, The residential population density, working population density, work-type POI density, commercial POI density, catering POI density, and science, education, culture, and health POI density within the inner and outer layers are used as independent variables, and a 0-1 regression model is designed as follows. The regression results are shown in Table 5.

[0290]

[0291] Table 5 Regression results

[0292]

[0293] Based on the regression results, it can be found that even if they belong to the same type of P-type subway stations, the environmental factors that shape their station types are different due to the different levels of passenger flow; even if they are the same type of independent variables, they may play a completely different role in shaping the type of subway stations due to their different locations, for example: V 2 P 4 For type sites, the density of the inner layer commercial POIs has a reverse inhibitory effect on the shaping of this type of subway station, while the density of the outer layer commercial POIs has a positive promoting effect on the shaping of this type of subway station.

[0294] P 1 ~P 4 The line graph of passenger flow distribution of the station is as follows Figure 7~Figure 10As shown in Table 6, the vertical axis is the normalized result of passenger flow Min-Max, with inbound passenger flow being positive and outbound passenger flow being negative. Combining the regression analysis results with the passenger flow distribution line chart, the spatial characteristics of subway stations are explored, as shown in Table 6.

[0295] Table 6 Spatial characteristics of subway stations

[0296]

[0297] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A subway station feature mining method based on two-stage clustering, characterized in that: The following steps are involved: Step 1: Obtain the card swiping data at subway stations, count the time distribution of passenger flow at subway stations, and determine the effective clustering period; Step 2: Calculate the daily average inbound passenger flow and daily average outbound passenger flow of the subway station in each period within the effective clustering period, and obtain the subway station passenger flow matrix and the logarithmic vector of the total passenger flow of the subway station; Step 3: Use the FCM algorithm on the logarithmic vector of the total passenger flow at the subway station and use the elbow rule to obtain the optimal number of clusters K1 in the first step of clustering; Step 4: Based on the optimal number of clusters K1, the FCM algorithm is used to perform the first step clustering on the logarithmic vector of the total passenger flow of each subway station to obtain the clustering result based on the subway passenger flow level; Step 5: Use the FCM algorithm on the subway station passenger flow matrix, use the elbow rule and calculate the silhouette coefficient to evaluate the clustering effect and obtain the optimal number of clusters K2 for the second step of clustering; Step 6: Based on the optimal number of clusters K2, the FCM algorithm is used to perform the second step clustering on the subway station passenger flow matrix, and the clustering result based on the subway station passenger flow matrix is ​​obtained as the time characteristic; Step 7: Classify subway stations based on the clustering results of subway passenger flow level and subway station passenger flow matrix, use Voronoi diagram to correct the service range of subway stations, and use 0-1 regression method to obtain the spatial characteristics of different types of stations; The step 7 specifically includes: Step 7.1: Let the set of subway stations be P = [p1, p2, ... p i ,…p I ], where p i represents the i-th subway station. Based on the coordinates of the subway station, the subway station service radius r is divided into an inner layer 0<r≤λ1 and an outer layer λ1<r≤λ2, where λ1 is the first radius threshold and λ2 is the second radius threshold. The inner layer and the outer layer are merged into the subway station p i Service scopeΩ i ; Step 7.2: Construct the Voronoi diagram V of the area based on the coordinates of the subway stations vor ; Step 7.3: Calculate the intersection of the subway station service range and the regional Voronoi diagram to obtain the subway station service range based on the Voronoi diagram. in, Any geographic point p in satisfies: According to service scope Get the intersection boundary between the subway station service area and the regional Voronoi diagram; When the distance between the intersection boundary and the subway station is less than or equal to λ1, Ω i The area enclosed by the inner boundary and the intersecting boundary is The inner region, Ω i The area enclosed by the inner boundary, outer boundary and intersecting boundary is The outer region of When the distance between the intersection boundary and the subway station is greater than λ1, Ω i The inner area of The inner region, Ω i The area enclosed by the inner boundary, outer boundary and intersecting boundary is The outer region of When there is no intersecting boundary, Ω i The inner area of The inner region, Ω i The outer region of The outer region of statistics The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI within the inner and outer layers; Step 7.4: Based on the clustering results of subway passenger flow level and the clustering results of subway station passenger flow matrix, a 0-1 regression method is used to perform regression analysis to obtain the spatial characteristics of different types of stations, including: a) The clustering results of the first and second steps are Combining the two-stage clustering results pairwise, we have b) The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI within the inner layer are used as independent variables. by The density of residential population, working population, work POI, commercial POI, catering POI, science, education, culture and health POI in the outer layer are used as independent variables. c) Based on For each clustering result V m P n Perform regression analysis and set V m P n The dependent variable corresponding to the subway station is 1, which does not belong to V m P n The dependent variable corresponding to the subway station is 0, and the regression model is: Among them, i is the subway station, Z ij represents the j-th independent variable of subway station i, β j is the coefficient of the independent variable j, β0 is the intercept, ε i is a random error; d) Set the independent variables of each subway station separately Independent Variable Substitute into the regression model and find Inner and Outer when greater than 0, Corresponding The inner independent variable has a positive promoting effect. Less than 0, Corresponding The inner independent variable produces a reverse inhibition effect. greater than 0, Corresponding The outer independent variable has a positive promoting effect. Less than 0, Corresponding The outer independent variables produce reverse inhibitory effects; the positive promotion and reverse inhibitory effects produced by the independent variables are regarded as spatial characteristics.

2. The subway station feature mining method based on two-stage clustering according to claim 1 is characterized by: The step 1 specifically includes: Step 1.1: Read the subway historical card swiping data for several consecutive days, the subway historical card swiping data includes but is not limited to five fields: date, entry time, exit time, entry station and exit station; Step 1.2: Based on the historical subway card swiping data obtained, count the average daily passenger flow of each subway station in each time period Average daily outbound passenger flow Among them, 1 represents entering the station, 2 represents leaving the station, i is the subway station number, and t is the time period number; Step 1.3: Calculate the average daily passenger flow of all subway stations during period t I is the total number of subway stations; the average daily passenger flow distribution of subway stations in each time period is counted, and a line graph of the average daily passenger flow distribution of subway stations is drawn. According to the distribution line graph, the time period T corresponding to the passenger flow distribution density greater than the density threshold is selected as the effective clustering period.

3. The subway station feature mining method based on two-stage clustering according to claim 2 is characterized by: The step 2 specifically includes: Step 2.1: From The part t∈T is intercepted to obtain the daily average inbound passenger flow and daily average outbound passenger flow in the effective clustering period T; Step 2.2: Take the average daily inbound passenger flow in the effective clustering period T as the first column and the average daily outbound passenger flow as the second column to obtain the subway station passenger flow matrix The passenger flow matrix f i The sum of the same column is the total passenger flow vector of the subway station Take the natural logarithm of the total passenger flow vector of the subway station to get the logarithmic vector of the total passenger flow of the subway station Among them, T0 represents the first clustering period, and T1 represents the last clustering period; Step 2.3: Generate the total passenger flow logarithmic vector dataset X = [x1, x2, ..., x i ,…,x I ],i∈I, where x i is the sample point, and its expression is: Generate subway station passenger flow matrix data set F = [f1,f2,…,f i ,…,f I ],in 4. The subway station feature mining method based on two-stage clustering according to claim 1 is characterized by: The step 3 specifically includes: Step 3.1: Cluster the total passenger flow logarithm vector data set X of the subway station, and set the number of clusters N∈[N1,N2], where N1 is the upper limit of the cluster number and N2 is the lower limit of the cluster number; Step 3.2: Based on the number of clusters N, calculate the cluster center C of each cluster n , and its calculation formula is: Among them, m is the membership factor; u ni For x i Cluster center C n The membership degree of , which satisfies the conditions: Step 3.3: Based on cluster center C n , calculate the sample point x i The membership degree of the cluster center is calculated as follows: Among them, C j represents the jth cluster center; Step 3.4: Based on cluster center C n and membership u ni , construct the objective function y1, and solve the objective function y1 to obtain the clustering result of the first step of clustering; the calculation formula of the objective function y1 is as follows: |||| represents Euclidean distance; Step 3.5: Draw a line graph of distortion degree and number of clusters based on the clustering results of the first step of clustering, and use the elbow rule to obtain the optimal number of clusters K1 for the first step of clustering.

5. The subway station feature mining method based on two-stage clustering according to claim 4 is characterized by: The method for solving the objective function y1 specifically includes: Substitute the cluster center and membership degree into the objective function y1 to start iteration. The iteration process is as follows: a) Set the number of clusters in the range [N1, N2], the membership factor m, the maximum number of iterations, and the error range; b) Initialize the membership u ni , the conditions must be met c) According to the membership degree u ni Calculate the cluster center C n ; d) Set the membership degree u ni and cluster center C n Substitute the objective function y1 to calculate the function value y1; e) According to the cluster center C n Calculate the membership u′ ni ; f) According to the membership degree u′ ni Calculate the cluster center C′ n ; g) Set the membership degree u′ ni and cluster center C′ n Substitute the objective function y1 to calculate the function value y′1, and calculate Δy1=y′1-y1. When Δy1 is within the error range, it is considered that the objective function has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result of the first step of clustering is output, otherwise jump to e); Based on the cluster center C n , calculate the degree of distortion of each cluster, and the calculation formula is as follows: d n is the degree of distortion of each cluster, and is the cluster center C n With x i The sum of the squares of the Euclidean distance; calculate the total distortion degree D of the number of clusters N N , and its calculation formula is: Get the total distortion degree D under the number of clusters N N , draw D N -N line graph, the optimal number of clusters K1 for the first step of clustering can be obtained by the elbow rule.

6. The subway station feature mining method based on two-stage clustering according to claim 1 is characterized by: The step 4 specifically includes: Step 4.1: Initialize the membership based on the optimal number of clusters K1 obtained in the first step of clustering Membership factor m, maximum number of iterations, error range; Step 4.2: Based on the membership u ni , calculate the cluster center Step 4.3: Based on the membership u ni , cluster center C n Calculate the function value y2: Step 4.4: Based on cluster center C n , calculate the membership u′ ni , and its calculation formula is: Step 4.5: Based on the membership u′ ni , calculate the cluster center Step 4.6: Based on the membership u′ ni , cluster center C′ n Calculate the function value y′2 Step 4.7: Calculate Δy2=y′2-y2. When Δy2 is within the error range, it is considered that y2 has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result based on the subway passenger flow level is output. Otherwise, jump to step 4.

4.

7. The subway station feature mining method based on two-stage clustering according to claim 1 is characterized by: The step 5 specifically includes: Step 5.1: Cluster the subway station passenger flow matrix data set F and set the number of clusters N∈[N1,N2], where N1 is the upper limit of the number of clusters and N2 is the lower limit of the number of clusters; Step 5.2: Based on the number of clusters N, calculate the cluster center C of each cluster n , the calculation formula is: Among them, u ni f i For cluster center C n The membership degree of , which satisfies the conditions: Step 5.3: Based on cluster center C n , calculate the sample point f i The membership degree of the cluster center is calculated as follows: Step 5.4: Based on cluster center C n and membership u ni , introduce the objective function y3, and solve the objective function y3 to obtain the clustering result of the second step clustering; the calculation formula of the objective function y3 is as follows: Step 5.5: Draw a line graph of distortion degree and number of clusters based on the clustering results of the second step, and use the elbow rule to get the number of clusters K2 in the second step; Step 5.6: Draw a line graph of silhouette coefficient and number of clusters based on the number of clusters K2 in the second step, evaluate the clustering effect of the number of clusters K2 in the second step, and obtain the optimal number of clusters K2 for the second step.

8. The subway station feature mining method based on two-stage clustering according to claim 7 is characterized by: The method for solving the objective function y3 specifically includes: The cluster center C n and membership u ni Substitute the objective function y3 to start iteration, and the iteration process is as follows: a) Set the number of clusters in the range [N1, N2], the membership factor m, the maximum number of iterations, and the error range; b) Initialize the membership u ni , the conditions must be met c) According to the membership degree u ni Calculate the cluster center C n ; d) Set the membership degree u ni and cluster center C n Substitute the objective function y3 to calculate the function value y3; e) According to the cluster center C n Calculate the membership u′ ni ; f) According to the membership degree u′ ni Calculate the cluster center C′ n ; g) Set the membership degree u′ ni and cluster center C′ n Substitute the objective function y3 to calculate the function value y′3, and calculate Δy3=y′3-y3. When Δy3 is within the error range, it is considered that the objective function has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result of the second step of clustering is output, otherwise jump to e); Based on the cluster center C n , calculate the degree of distortion of each cluster, and the calculation formula is as follows: d n is the degree of distortion of each cluster, and is the cluster center C n With f i The sum of the squares of the Euclidean distance; calculate the total distortion degree D of the number of clusters N N , the calculation formula is: Get the total distortion degree D under the number of clusters N N , draw D N —N line graph, the number of clusters K2 in the second step is obtained by the elbow rule; The method of drawing a line graph of silhouette coefficient-clustering number according to the cluster number K2 of the second step, evaluating the clustering effect of the cluster number K2 of the second step, and obtaining the optimal cluster number K2 of the second step clustering specifically includes: a) Based on the clustering results, calculate the single sample point f of cluster n i The cohesion a i , the calculation formula is: In the formula, ∑||f i -f|| is the sample point f i The sum of the Euclidean distances of other sample points f in cluster n, q is the total number of sample points in cluster n; b) Based on the clustering results, calculate the single sample point f of cluster n i The minimum average distance b between sample points in other clusters except this cluster i , the calculation formula is: In the formula, ∑||f i -f′|| is the sample point f i The sum of the Euclidean distances to other cluster sample points f′, q′ is the total number of other cluster sample points that are not cluster n; c) Based on a i , b i , calculate the single sample point f of cluster n i The silhouette coefficient s i , the calculation formula is: d) Silhouette coefficient s based on a single sample point in cluster n i , calculate the silhouette coefficient S′ of cluster n n , the calculation formula is: e) Silhouette coefficient S′ based on cluster n n , calculate the silhouette coefficient of the number of clusters N, the calculation formula is: Draw S N -N line chart, evaluates the clustering effect of different cluster numbers N, and obtains the optimal cluster number K2 for the second step of clustering.

9. The subway station feature mining method based on two-stage clustering according to claim 1, characterized in that: The step 6 specifically includes: Step 6.1: Initialize the membership based on the optimal number of clusters K2 obtained in the second step of clustering Membership factor m, maximum number of iterations, error range; Step 6.2: Based on the membership u ni , calculate the cluster center Step 6.3: Based on the membership u ni , cluster center C n Calculate the function value y4: Step 6.4: Based on the cluster center C n , calculate the membership u′ ni , the calculation formula is: Step 6.5: Based on the membership u′ ni , calculate the cluster center Step 6.6: Based on the membership u′ ni , cluster center C′ n Calculate the function value y′4: Step 6.7: Calculate Δy4=y′4-y4. When Δy4 is within the error range, it is considered that y4 has been iterated to the minimum value, or when the number of iterations reaches the upper limit, the iteration is stopped and the clustering result based on the subway station passenger flow matrix is ​​output. Otherwise, jump to step 6.

4. Step 6.8: According to the clustering result based on the subway station passenger flow matrix, the law of subway station passenger flow fluctuation over time is obtained as the time characteristic.