Rail transit clearing method, device, equipment and medium based on user portrait
By building user portrait models and deep neural networks, analyzing passenger travel data and calculating effective path costs, the accuracy problem of sorting methods in urban rail transit has been solved, and more accurate fare allocation and benefit distribution have been achieved.
Patent Information
- Application Number
- CN202011639244.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-31
AI Technical Summary
Existing rail transit sorting methods cannot accurately allocate fare revenue, especially in urban rail transit barrier-free transfer environments. Traditional route planning algorithms cannot fully reflect the impact of passenger travel behavior and service levels, and do not take individual passengers into account. attributes and travel attributes.
By obtaining the effective path set, a user profile model of passenger travel is constructed, including fact labels, model labels and prediction labels, the effective path cost is calculated, the path and line allocation ratio is determined based on the cost, and the clearing ratio is finally determined. This method combines deep neural networks to analyze passenger travel data, mine user characteristics, integrate comprehensive cost models, and construct a personalized classification model.
It improves the accuracy of the sorting results, enables more accurate distribution of ticket revenue, meets the high requirements for multi-line transfers of urban rail transit, takes into account passenger preferences and service levels, and achieves a reasonable distribution of benefits.
Smart Images

Figure CN112734206B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traffic data processing, and in particular to a rail transit clearing method, device, equipment and medium based on user portrait. Background Art
[0002] In recent years, the urban rail transit network has developed rapidly with its diversified construction in stages and lines, and the scale of the network has gradually expanded. In order to enhance safe operation and management and improve the service level for passengers, urban rail transit lines are generally jointly built and operated by multiple different investors. Therefore, it has become a very important issue to reasonably distribute the benefits of transfer ticket revenues of different lines. Therefore, whether a mature and accurate clearing method can be constructed to protect the interests of different investment and operation entities and reasonably distribute ticket revenue is of great significance to the development of urban rail transit.
[0003] The rapid development of urban rail transit has gradually formed a large-scale urban transportation network structure, and the number of transfer points and transfer routes between different lines has also continued to increase. At the same time, due to the barrier-free transfer method adopted by urban rail transit, passengers can transfer between different lines without leaving the station, and the requirements for the clearing system are becoming higher and higher.
[0004] At present, there are three types of clearing models: manual clearing model, ideal clearing model, and passenger path-based clearing model. The manual clearing model mainly manually formulates the clearing ratio of each operating line for all paths on the traffic volume (OD). This method is only applicable to the initial operation when there are few lines operated by a single entity, and the accuracy of manual clearing is poor. The ideal clearing model assumes that in an ideal situation, the travel path of each passenger can be accurately recorded, for example, a card is swiped once at each transfer station to record the path information, so that the face value revenue can be allocated to each line or operating entity according to the path information record. This clearing model is the most accurate in theory, but it is difficult to implement for the time being due to technical means and is not operational. The passenger path-based clearing method determines the proportion of each valid path selected by the passenger in the OD pair based on the travel behavior characteristics of the passenger, and further calculates the deserved income of each line or operating entity.
[0005] Due to the barrier-free transfer characteristics of urban rail transit, it is impossible to obtain the precise riding routes of passengers and conduct accurate sorting. Therefore, the core of the sorting method is to find the proportion of each effective route and the proportion of each line in the effective route. Most traditional route planning algorithms are based on single optimal goals such as shortest time and minimum number of transfers. They cannot fully reflect the impact of rail transit service level variables (travel time, transfer time, number of transfers, in-car congestion, etc.) on passengers' travel route selection behavior, and cannot provide travel routes that meet their choice preferences based on their social attributes. Moreover, they do not consider the relationship between passengers' personal attributes, travel attributes and passengers' route selection intentions. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a rail transit clearing method, device, equipment and medium based on user portrait with high accuracy.
[0007] One aspect of the present invention provides a rail transit clearing method based on user portraits, comprising:
[0008] Get the valid path set;
[0009] Constructing a user portrait model of passenger travel according to the valid path set; wherein the user portrait model includes fact labels, model labels and prediction labels;
[0010] Determining the effective path cost of each effective path in the effective path set according to the user portrait model;
[0011] Determining a path allocation ratio and a line allocation ratio according to the effective path cost;
[0012] A clearing ratio is determined according to the path allocation ratio and the line allocation ratio.
[0013] Preferably, the obtaining of a valid path set includes:
[0014] Determine the initial vertex;
[0015] Determine an adjacent point that is adjacent to the initial vertex and has not been visited;
[0016] Constructing a user travel path according to the initial vertex and the adjacent points;
[0017] According to the travel time and transfer number constraints, the user travel paths are screened to obtain a valid path set.
[0018] Preferably, the step of constructing a user portrait model of passenger travel according to the valid path set includes:
[0019] Acquire user travel information; the user travel information includes user travel time, user travel frequency, user travel station, user travel path, user travel area and user travel distance;
[0020] Building a user portrait model based on the user travel information;
[0021] The user portrait model includes fact labels, model labels and prediction labels;
[0022] The fact labels include but are not limited to the type of travel card number, travel activity and travel loyalty;
[0023] The model tags include but are not limited to the user's workplace and residence sites;
[0024] The predicted labels include but are not limited to age, gender and job type.
[0025] Preferably, determining the effective path cost of each effective path in the effective path set according to the user portrait model includes:
[0026] Get the travel time of passengers;
[0027] Obtain the transfer fee and number of transfers for passengers;
[0028] Obtain the congestion cost of passenger travel;
[0029] Determine various cost weight coefficients of the user according to the user portrait model;
[0030] The effective path cost is calculated based on the travel time, transfer fee, number of transfers and congestion fee, as well as the weight coefficients of various costs.
[0031] Preferably, the calculation formula of the effective path cost is:
[0032] T i (k) = α i t o +β i Nt trans +γ i t crowd
[0033] Among them, t o represents the travel time; t trans is the transfer fee; N is the number of transfers; t crowd is the congestion cost; αt o represents the time cost; β i Nt trans represents the transfer cost; γ i t crowd represents the congestion cost; αi ,β i ,γ i represents the cost weight coefficient of passenger i.
[0034] Preferably, determining the path allocation ratio and the line allocation ratio according to the effective path cost includes:
[0035] Normalizing the effective path cost to obtain a path allocation ratio;
[0036] Determine the route ratio based on the number of stations or mileage of the route in the path;
[0037] The normalized calculation formula is:
[0038]
[0039] is the allocation ratio of path k corresponding to passenger i between OD stations; T i (k) represents the comprehensive cost of passenger i’s travel time for path k;
[0040] The calculation formula of the line ratio is:
[0041]
[0042] is the allocation ratio corresponding to line j in the OD inter-site path k, n j (k) is the number of stations contained in line j in path k.
[0043] Preferably, determining the clearing ratio according to the path allocation ratio and the line allocation ratio includes:
[0044] The path allocation ratio and the line allocation ratio are weighted and multiplied, and then summed to obtain the path line ratio of each route;
[0045] The path line ratios of the various routes are normalized to obtain the clearing ratio.
[0046] Another aspect of the present invention provides a rail transit sorting device based on user portraits, comprising:
[0047] An acquisition module is used to obtain a valid path set;
[0048] A model building module, used to build a user portrait model of passenger travel according to the effective path set; wherein the user portrait model includes fact labels, model labels and prediction labels;
[0049] A first determination module, configured to determine an effective path cost of each effective path in the effective path set according to the user portrait model;
[0050] A second determination module is used to determine a path allocation ratio and a line allocation ratio according to the effective path cost;
[0051] The third determination module is used to determine the clearing ratio according to the path allocation ratio and the line allocation ratio.
[0052] Another aspect of the present invention provides an electronic device, including a processor and a memory;
[0053] The memory is used to store programs;
[0054] The processor executes the program to implement the method described above.
[0055] Another aspect of the present invention provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.
[0056] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.
[0057] The embodiment of the present invention obtains a valid path set; constructs a user portrait model of passenger travel based on the valid path set; wherein the user portrait model includes fact labels, model labels and prediction labels; determines the effective path cost of each valid path in the valid path set based on the user portrait model; determines the path allocation ratio and the line allocation ratio based on the effective path cost; determines the clearing ratio based on the path allocation ratio and the line allocation ratio. The present invention improves the accuracy of the clearing results. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0059] Figure 1 A flowchart of the steps of a rail transit clearing method based on user portrait provided by an embodiment of the present invention;
[0060] Figure 2 A schematic diagram of a deep neural network model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0062] In view of the problems existing in the prior art, the present invention mines passenger travel data, and proposes effective path allocation schemes for different passengers and constructs a sorting model based on comprehensive consideration of deterministic factors such as ride time, transfer time, number of transfers, and degree of congestion in the car, as well as uncertain factors such as passenger personal attributes and travel attributes. Compared with traditional methods, the method can mine user travel characteristics by analyzing different passenger travel data, obtain passenger personal attributes and travel attributes, and construct a passenger travel user portrait. The method mines the potential correlation of features by combining deep neural networks, obtains different passengers' preferences for time, convenience, and comfort factors, integrates the comprehensive cost model of passenger travel, and constructs a personalized sorting model for rail transit passengers.
[0063] The embodiment of the present invention provides a rail transit clearing method based on user portrait, such as Figure 1 As shown, the method includes:
[0064] Get the valid path set;
[0065] Constructing a user portrait model of passenger travel according to the valid path set; wherein the user portrait model includes fact labels, model labels and prediction labels;
[0066] Determining the effective path cost of each effective path in the effective path set according to the user portrait model;
[0067] Determining a path allocation ratio and a line allocation ratio according to the effective path cost;
[0068] A clearing ratio is determined according to the path allocation ratio and the line allocation ratio.
[0069] Preferably, the obtaining of a valid path set includes:
[0070] Determine the initial vertex;
[0071] Determine an adjacent point that is adjacent to the initial vertex and has not been visited;
[0072] Constructing a user travel path according to the initial vertex and the adjacent points;
[0073] According to the travel time and transfer number constraints, the user travel paths are screened to obtain a valid path set.
[0074] Preferably, the step of constructing a user portrait model of passenger travel according to the valid path set includes:
[0075] Acquire user travel information; the user travel information includes user travel time, user travel frequency, user travel station, user travel path, user travel area and user travel distance;
[0076] Building a user portrait model based on the user travel information;
[0077] The user portrait model includes fact labels, model labels and prediction labels;
[0078] The fact labels include but are not limited to the type of travel card number, travel activity and travel loyalty;
[0079] The model tags include but are not limited to the user's workplace and residence sites;
[0080] The predicted labels include but are not limited to age, gender and job type.
[0081] Preferably, determining the effective path cost of each effective path in the effective path set according to the user portrait model includes:
[0082] Get the travel time of passengers;
[0083] Obtain the transfer fee and number of transfers for passengers;
[0084] Obtain the congestion cost of passenger travel;
[0085] Determine various cost weight coefficients of the user according to the user portrait model;
[0086] The effective path cost is calculated based on the travel time, transfer fee, number of transfers and congestion fee, as well as the weight coefficients of various costs.
[0087] Preferably, the calculation formula of the effective path cost is:
[0088] T i (k) = α i t o +β i Nt trans +γ i t crowd
[0089] Among them, t o represents the travel time; t transis the transfer fee; N is the number of transfers; t crowd is the congestion cost; αt o represents the time cost; β i Nt trans represents the transfer cost; γ i t crowd represents the congestion cost; α i ,β i ,γ i represents the cost weight coefficient of passenger i.
[0090] Preferably, determining the path allocation ratio and the line allocation ratio according to the effective path cost includes:
[0091] Normalizing the effective path cost to obtain a path allocation ratio;
[0092] Determine the route ratio based on the number of stations or mileage of the route in the path;
[0093] The normalized calculation formula is:
[0094]
[0095] is the allocation ratio of path k corresponding to passenger i between OD stations; T i (k) represents the comprehensive cost of passenger i’s travel time for path k;
[0096] The calculation formula of the line ratio is:
[0097]
[0098] is the allocation ratio corresponding to line j in the OD inter-site path k, n j (k) is the number of stations contained in line j in path k.
[0099] Preferably, determining the clearing ratio according to the path allocation ratio and the line allocation ratio includes:
[0100] The path allocation ratio and the line allocation ratio are weighted and multiplied, and then summed to obtain the path line ratio of each route;
[0101] The path line ratios of the various routes are normalized to obtain the clearing ratio.
[0102] The implementation process of the rail transit clearing method of the present invention is described in detail below, including the following steps:
[0103] 1. Get a valid path
[0104] The specific steps of effective path search are as follows: first, start from an initial vertex v, then visit each unvisited adjacent point from this vertex in turn, find all connected paths between OD pairs in the traffic network topology graph that meet the effective physical path constraints, and output them; repeat the above process until all vertices in the graph have been visited, then the algorithm ends.
[0105] From the perspective of travel time and transfer, the present invention makes the following assumptions about the effective physical path of passengers:
[0106] 1) The number of transfers is the most intuitive experience of the cost of a route for passengers. Each additional transfer consumes more time and energy. Therefore, routes with too many transfers are generally not acceptable to passengers. Therefore, it is assumed that the maximum number of transfers acceptable to passengers does not exceed a.
[0107] 2) When the path between OD is not unique, the path with a travel time much longer than the shortest path is generally not considered by the passengers. That is, the travel time of the path acceptable to the passengers generally fluctuates within a certain range of the shortest travel time. Therefore, it is assumed that the travel time of the effective path is no more than δ (δ>1) times the travel time of the shortest path between OD.
[0108] 2. Build a passenger user profile
[0109] The passenger user portrait construction method includes the following steps:
[0110] 1) Data preprocessing
[0111] Through a series of data preprocessing such as data quality assessment, data cleaning, data integration, and data transformation, research samples are provided for user travel behavior analysis.
[0112] 2) Site attribute mining
[0113] Site attributes are one of the important dimensions for studying user travel purposes, and can be used to obtain user travel preferences and purpose labels. First, based on urban POI data, with the site as the center and a certain distance as the radius, the regional attributes of the circle around the site are obtained; then, keyword extraction algorithms such as the TF-IDF algorithm are used to determine the attribute weights of each site block, and the site attribute labels of different independent blocks are obtained; finally, user travel preference labels are mined.
[0114] 3) User travel behavior characteristics
[0115] Based on the user's original travel records, travel tags are established from the perspectives of time and space.
[0116] a) Based on the time dimension, user travel behavior characteristics can be analyzed statistically to find out the user behavior characteristic labels such as passenger travel frequency and travel distance, and the travel behavior characteristics can be mainly divided into two aspects: activity and loyalty.
[0117] Activity: calculated based on the average number of days passengers travel during all hours, weekdays, holidays, and weekends;
[0118] Loyalty: calculated based on the average number of days between users’ use of the subway.
[0119] b) Based on the user travel behavior characteristics in the spatial dimension, by analyzing the user's OD data, the user's residence and workplace sites can be mined, and the workplace and residence sites can be mapped to the corresponding areas and POI attributes, and the user's work type label, economic strength label, etc. can be obtained.
[0120] 4) Construction of user portrait system
[0121] The user portrait labels are further sorted into different levels and model categories, and the labels are divided from two dimensions: personal attributes and travel attributes.
[0122] 3. Calculate the effective path cost
[0123] t trans Transfer fee:
[0124]
[0125] In the formula, represents the transfer travel time at n transfer stations, Indicates the transfer waiting time;
[0126] t o Ride time and transfer time:
[0127] t o =t s +t trans
[0128] Where, t s is the train running time for this path, t trans Spend time on transfers;
[0129] t crowd Congestion charges:
[0130] t crowd =C s ·t o
[0131]
[0132] In the formula, Cs Additional charge for overcrowding; x s is the passenger flow of road section i; Z s is the number of seats in the urban rail train; m is the rated passenger capacity of the urban rail train. A and B are different correction coefficients.
[0133] α i ,β i ,γ i Calculation method of cost weight coefficient of passenger i:
[0134] like Figure 2 As shown, the embodiment of the present invention uses the passenger user portrait features to train a deep neural network model, and then can obtain the passenger cost weight coefficient.
[0135] Specifically: the input layer is the passenger's personal attributes and travel attribute characteristics. Personal attributes include: age, gender, user type, etc., and travel attributes include: travel activity, travel preference area, travel habits, etc.; the network transmits information through full connections between layers to explore the potential correlation between each passenger's label features; the output layer passes through the softmax function to output the user's travel preference category, and the corresponding category labels are time, portability, and comfort.
[0136] Select the last hidden layer of the network containing three neurons as the cost weight coefficient of the passenger
[0137] 4. Calculate the path and line allocation ratio
[0138] 1) Normalize the comprehensive path cost of the valid path candidate set. The formula is as follows:
[0139]
[0140] is the allocation ratio of path k corresponding to passenger i between OD stations;
[0141] 2) Determine the route ratio based on the number of stations or mileage in the route:
[0142]
[0143] is the allocation ratio corresponding to line j in the OD inter-site path k, n j (k) is the number of stations contained in line j in path k;
[0144] 5. Calculate the clearing ratio
[0145] The path ratio and the line ratio are weighted and then summed to obtain the path line ratio as the clearing result.
[0146]
[0147] in, is the clearing result of route j corresponding to passenger i in path k between OD stations;
[0148] is the clearing result of line j between OD stations;
[0149] The Q corresponding to each line OD After normalization, the clearing ratio of each line between OD stations can be obtained.
[0150] The embodiment of the present invention further provides a rail transit sorting device based on user portrait, comprising:
[0151] An acquisition module is used to obtain a valid path set;
[0152] A model building module, used to build a user portrait model of passenger travel according to the effective path set; wherein the user portrait model includes fact labels, model labels and prediction labels;
[0153] A first determination module, configured to determine an effective path cost of each effective path in the effective path set according to the user portrait model;
[0154] A second determination module is used to determine a path allocation ratio and a line allocation ratio according to the effective path cost;
[0155] The third determination module is used to determine the clearing ratio according to the path allocation ratio and the line allocation ratio.
[0156] An embodiment of the present invention further provides an electronic device, including a processor and a memory;
[0157] The memory is used to store programs;
[0158] The processor executes the program to implement the method described above.
[0159] An embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.
[0160] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.
[0161] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0162] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0163] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0164] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0165] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0166] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0167] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0168] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0169] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A rail transit clearing method based on user portrait, characterized in that: include: Get a set of valid paths; According to the effective path set, a user portrait model of passenger travel is constructed; wherein the user portrait model includes fact labels, model labels and prediction labels; the fact labels include the type of travel card number, travel activity and travel loyalty; the model labels include the user's workplace and residence sites; the prediction labels include age, gender and work type; Determining the effective path cost of each effective path in the effective path set according to the user portrait model; Determining a path allocation ratio and a line allocation ratio according to the effective path cost; Determining a clearing ratio according to the path allocation ratio and the line allocation ratio; The determining, according to the user portrait model, the effective path cost of each effective path in the effective path set includes: Calculate the effective path cost based on travel time, transfer fees, number of transfers and congestion costs, as well as various cost weight coefficients; The calculation steps of the cost weight coefficient include: Through the passenger's user portrait model, a deep neural network model is trained; Selecting the last hidden layer of the deep neural network model containing three neurons as the cost weight coefficient of the passenger; The calculation formula of the effective path cost is: T i (k)=α i t o +β i Nt trans +γ i t crowd Among them, t o represents the travel time; t trans is the transfer fee; N is the number of transfers; t crowd is the congestion cost; α i t o represents the time cost; β i Nt trans represents the transfer cost; γ i t crowd represents the congestion cost; α i ,β i ,γ i represents the cost weight coefficient of passenger i.
2. The rail transit clearing method based on user portrait according to claim 1 is characterized in that: The obtaining of a valid path set includes: Determine the initial vertex; Determine an adjacent point that is adjacent to the initial vertex and has not been visited; Constructing a user travel path according to the initial vertex and the adjacent points; According to the travel time and transfer number constraints, the user travel paths are screened to obtain a valid path set.
3. The rail transit clearing method based on user portrait according to claim 1 is characterized in that: The step of constructing a user portrait model of passenger travel according to the valid path set includes: Acquire user travel information; the user travel information includes user travel time, user travel frequency, user travel station, user travel path, user travel area and user travel distance; Building a user portrait model based on the user travel information; The user portrait model includes fact labels, model labels and prediction labels.
4. The rail transit clearing method based on user portrait according to claim 1 is characterized in that: The determining, according to the user portrait model, the effective path cost of each effective path in the effective path set includes: Get the travel time of passengers; Obtain the transfer fee and number of transfers for passengers; Obtain the congestion cost of passenger travel; Determine various cost weight coefficients of the user according to the user portrait model; The effective path cost is calculated based on the travel time, transfer fee, number of transfers and congestion fee, as well as the weight coefficients of various costs.
5. The rail transit clearing method based on user portrait according to claim 1 is characterized in that: The determining of the path allocation ratio and the line allocation ratio according to the effective path cost includes: Normalizing the effective path cost to obtain a path allocation ratio; Determine the route allocation ratio based on the number of stations or mileage of the route in the path; The normalized calculation formula is: is the allocation ratio of path k corresponding to passenger i between OD stations; T i (k) represents the comprehensive cost of passenger i’s travel time for path k; The calculation formula of the line allocation ratio is: is the allocation ratio corresponding to line j in the OD inter-site path k, n j (k) is the number of stations contained in line j in path k.
6. The rail transit clearing method based on user portrait according to claim 1 is characterized in that: The determining the clearing ratio according to the path allocation ratio and the line allocation ratio includes: The path allocation ratio and the line allocation ratio are weighted and multiplied and then summed to obtain the path line ratio of each line; The path line ratio of each line is normalized to obtain the clearing ratio.
7. The rail transit sorting device based on user portrait is characterized by: include: An acquisition module is used to obtain a valid path set; A model building module is used to build a user portrait model of passenger travel according to the effective path set; wherein the user portrait model includes fact labels, model labels and prediction labels; the fact labels include the type of travel card number, travel activity and travel loyalty; the model labels include the user's workplace and residence sites; the prediction labels include age, gender and job type; A first determination module, configured to determine an effective path cost of each effective path in the effective path set according to the user portrait model; A second determination module is used to determine a path allocation ratio and a line allocation ratio according to the effective path cost; A third determining module, configured to determine a clearing ratio according to the path allocation ratio and the line allocation ratio; The first determining module is specifically configured to: Calculate the effective path cost based on travel time, transfer fees, number of transfers and congestion costs, as well as various cost weight coefficients; The steps of calculating the cost weight coefficient include: Through the passenger's user portrait model, a deep neural network model is trained; Selecting the last hidden layer of the deep neural network model containing three neurons as the cost weight coefficient of the passenger; The calculation formula of the effective path cost is: T i (k)=α i t o +β i Nt trans +γ i t crowd Among them, t o represents the travel time; t trans is the transfer fee; N is the number of transfers; t crowd is the congestion cost; α i t o represents the time cost; β i Nt trans represents the transfer cost; γ i t crowd represents the congestion cost; α i ,β i ,γ i represents the cost weight coefficient of passenger i.
8. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Distribution method for urban rail transit
CN103761589A
