CN110751831B - Travel mode identification method and device, computer equipment and storage medium - Google Patents
Travel mode identification method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110751831B CN110751831B CN201910958194.9A CN201910958194A CN110751831B CN 110751831 B CN110751831 B CN 110751831B CN 201910958194 A CN201910958194 A CN 201910958194A CN 110751831 B CN110751831 B CN 110751831B
- Authority
- CN
- China
- Prior art keywords
- travel
- user
- identified
- travel mode
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000004891 communication Methods 0.000 claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 29
- 238000012216 screening Methods 0.000 claims description 12
- 238000003909 pattern recognition Methods 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000010295 mobile communication Methods 0.000 description 5
- 238000012567 pattern recognition method Methods 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004140 cleaning Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000004931 aggregating effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0108—Measuring and analyzing of parameters relative to traffic conditions based on the source of data
- G08G1/012—Measuring and analyzing of parameters relative to traffic conditions based on the source of data from other sources than vehicle or roadside beacons, e.g. mobile networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/26—Government or public services
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0125—Traffic data processing
- G08G1/0133—Traffic data processing for classifying traffic situation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Analytical Chemistry (AREA)
- Tourism & Hospitality (AREA)
- Chemical & Material Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Navigation (AREA)
- Traffic Control Systems (AREA)
Abstract
The application relates to a travel mode identification method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data; determining an initial travel mode of a user to be identified according to application program use data; determining a travel path of a user to be identified according to the user positioning position information and a preset road network map; and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified. The existing data resources of mobile operators are fully utilized, so that the travel mode of a user is more accurately identified; meanwhile, the travel path and the travel mode of residents are effectively recovered, the data acquisition time period is wide, the data are representative, and the accuracy of travel mode identification is greatly improved.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a travel mode identification method and apparatus, a computer device, and a storage medium.
Background
With the acceleration of the urbanization process, the situation of urban traffic congestion is more severe day by day, and the development of cities is influenced; to solve the problem, the unreasonable layout in traffic planning is found by analyzing the travel behaviors of the residents starting from the daily travel mode of the residents.
At present, the travel mode of people is generally judged by using a method for measuring and calculating the flow of people and traffic, and then the travel behavior of urban residents is obtained; however, the problems of high acquisition difficulty, unrepresentative data and the like of data such as the human flow and the vehicle flow exist, so that the accuracy of travel mode identification is low at present.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a travel pattern recognition method, apparatus, computer device and storage medium for solving the above technical problems.
A travel pattern recognition method, the method comprising:
acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
determining an initial travel mode of the user to be identified according to the application program use data;
determining a travel path of the travel user to be identified according to the user positioning position information and a preset road network map;
and determining the target travel mode of the travel user to be identified according to the travel path of the travel user to be identified and the initial travel mode.
In one embodiment, the determining an initial travel mode of the user to be identified according to the application usage data includes:
extracting application program identification information corresponding to a preset trip mode from the application program use data;
inquiring a preset matching table according to the application program identification information; the preset matching table stores the corresponding relation between the application program identification information and the initial travel mode;
and determining the initial travel mode of the user to be identified from the preset matching table.
In one embodiment, the user positioning location information carries corresponding time information;
determining the travel path of the travel user to be identified according to the user positioning position information and a preset road network map, wherein the determining comprises the following steps:
obtaining the staying position of the trip user to be identified according to the user positioning position information and the time information;
acquiring the stay time of the to-be-identified trip user at the stay position, and screening the working position and the living position of the to-be-identified trip user from the stay position according to the stay time of the to-be-identified trip user at the stay position;
determining a road network node corresponding to the working position in the preset road network map as a first road network node; determining a road network node corresponding to the living position in the preset road network map as a second road network node;
and obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map.
In one embodiment, the obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map includes:
generating a plurality of paths connecting the first road network node and the second road network node according to the preset road network map;
respectively counting the actual path distances of the paths;
and screening out a path with the minimum actual path distance from the plurality of paths as the travel path of the user to be identified.
In one embodiment, the determining the target travel mode of the to-be-identified travel user according to the travel path of the to-be-identified travel user and the initial travel mode includes:
if the initial travel mode of the user to be identified is private car travel, obtaining travel characteristic information of the user to be identified according to the travel path of the user to be identified;
correcting the initial travel mode according to the travel characteristic information of the travel user to be identified to obtain a target travel mode of the travel user to be identified;
and/or the presence of a gas in the gas,
and if the initial travel mode of the travel user to be identified is bus travel, correcting the initial travel mode according to the travel path of the travel user to be identified to obtain the target travel mode of the travel user to be identified.
In one embodiment, the travel characteristic information of the user to be identified includes a travel distance and a travel average speed;
if the initial travel mode of the user to be identified is private car travel, correcting the initial travel mode according to the travel characteristic information of the user to be identified to obtain the target travel mode of the user to be identified, including:
if the travel distance is greater than or equal to a preset distance, determining that the target travel mode of the user to be identified is social vehicle travel;
if the travel distance is smaller than the preset distance and the average travel speed is greater than or equal to a first speed, determining that the target travel mode of the user to be identified is social vehicle travel;
if the travel distance is smaller than the preset distance, and the average travel speed is smaller than the first speed and is greater than or equal to a second speed, correcting the initial travel mode according to the travel path of the user to be identified to obtain a target travel mode of the user to be identified;
and if the travel distance is smaller than the preset distance and the average travel speed is smaller than the second speed, determining that the target travel mode of the user to be identified is non-motor vehicle travel.
In one embodiment, the modifying the initial travel mode according to the travel path of the to-be-identified travel user to obtain the target travel mode of the to-be-identified travel user includes:
matching the travel path of the travel user to be identified with a preset bus operation path;
and if the travel path of the travel user to be identified is successfully matched with a preset bus operation path, confirming that the target travel mode of the travel user to be identified is bus travel.
In one embodiment, before the step of matching the travel route of the travel user to be identified with a preset bus operation route, the method further includes:
acquiring bus operation data;
extracting bus positioning information in the bus operation data;
correcting the positioning information of the public transport vehicle according to the preset road network map;
and obtaining the preset bus operation route according to the corrected bus positioning information.
An travel pattern recognition apparatus, the apparatus comprising:
the communication data acquisition module is used for acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
an initial travel mode determining module, configured to determine an initial travel mode of the user to be identified according to the application usage data;
the travel path determining module is used for determining a travel path of the travel user to be identified according to the user positioning position information and a preset road network map;
and the target travel mode determining module is used for determining the target travel mode of the travel user to be identified according to the travel path of the travel user to be identified and the initial travel mode.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
determining an initial travel mode of the user to be identified according to the application program use data;
determining a travel path of the travel user to be identified according to the user positioning position information and a preset road network map;
and determining the target travel mode of the travel user to be identified according to the travel path of the travel user to be identified and the initial travel mode.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
determining an initial travel mode of the user to be identified according to the application program use data;
determining a travel path of the travel user to be identified according to the user positioning position information and a preset road network map;
and determining the target travel mode of the travel user to be identified according to the travel path of the travel user to be identified and the initial travel mode.
According to the travel mode identification method, the travel mode identification device, the computer equipment and the storage medium, the mobile terminal communication data of the user to be identified are obtained; the mobile terminal communication data comprises user positioning position information and application program use data; determining an initial travel mode of a user to be identified according to application program use data; determining a travel path of a user to be identified according to the user positioning position information and a preset road network map; and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified. According to the method, the existing data resources of a mobile operator are fully utilized to obtain the initial travel mode and the travel path of the travel user to be identified, and then the initial travel mode and the travel path of the travel user to be identified are used for carrying out secondary identification judgment on the travel mode of a resident, so that the travel mode of the user is more accurately identified, and the accuracy of travel mode identification is improved; meanwhile, the travel path and the travel mode of residents are effectively recovered, the data acquisition time period is wide, the data are representative, and the accuracy of travel mode identification is greatly improved.
Drawings
Fig. 1 is a block diagram of a data structure of a travel pattern recognition method according to an embodiment;
fig. 2 is a schematic flow chart of a travel pattern recognition method according to an embodiment;
fig. 3 is a schematic flow chart illustrating a step of determining a travel path of a user to be identified in one embodiment;
FIG. 4 is a flowchart illustrating steps of determining a target travel mode of a user to be identified in one embodiment;
fig. 5 is a schematic flow chart illustrating a step of obtaining a target travel mode of a user to be identified if an initial travel mode of the user to be identified is private car travel in one embodiment;
FIG. 6 is a flowchart illustrating the step of revising data identified as other travel modes in one embodiment;
FIG. 7 is a flowchart illustrating steps for obtaining a pre-defined bus route under operation in one embodiment;
fig. 8 is a schematic structural diagram of a travel pattern recognition apparatus according to an embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that the terms "first \ second \ third" related to the embodiments of the present invention only distinguish similar objects, and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may exchange a specific order or sequence when allowed. It should be understood that the terms first, second, and third, as used herein, are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or otherwise described herein.
The terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The travel mode identification method provided by the application can be applied to the application environment shown in fig. 1. According to the method, mobile terminal communication data generated by a mobile terminal device 11 and stored in a mobile operator database 12 are acquired, data analysis is carried out in a server 13 to obtain an initial travel mode of a travel user to be identified, a travel path of the travel user to be identified is determined according to user positioning position information and a preset road network map, and a target travel mode of the travel user is further identified according to the travel path of the travel user to be identified and the initial travel mode.
In one embodiment, the mobile terminal communication data is generated by the mobile terminal device 11 making a call or using a data network service, and includes user positioning location information and application program usage data, where the user positioning location information may indicate a geographic location where a user uses the mobile communication service and generates mobile communication data, and may be obtained by means of GPS or the like or by means of comprehensive calculation of locations of a single or multiple base stations connected to the mobile terminal held by the user, and a specific obtaining manner is not limited in the present invention; the method comprises the steps that a government department provides road network map data which comprises basic road network information of cities or rural areas, POIs (Point of Interest), Chinese can be translated into Interest points, in a geographic information system, one POI can be a house, a shop, a mailbox, a bus station and the like), various traffic operation data (including subway operation data) and the like, and the road network map data in the region can represent the traffic condition in the region; the bus operation data provided by the bus operation company comprises passenger card swiping data with user identification information and GPS (global positioning system) positioning data in the operation of the bus, and the bus operation data also comprises operation data of a subway; the data of the card swiping time of the user for getting on or off the vehicle, the station for getting on/off the vehicle, the amount spent and the like can be obtained from the data of the card swiping of the passenger; the GPS positioning data can obtain the actual operation route of the bus, and the change conditions of the speed of the bus at different time periods are used for matching by combining time information and a user path. Through a series of processing steps of mobile terminal communication data, road network map data provided by a government department and vehicle operation data provided by a public transport operation company, the existing data resources of a mobile operator are fully utilized to identify and judge the travel modes of residents, the travel paths and the travel modes of the residents are recovered, the data acquisition time period is wide, the data are representative, and the accuracy of travel mode identification is greatly improved.
The embodiment of the invention provides a travel mode identification method, a travel mode identification device, computer equipment and a storage medium, which are respectively explained in detail as follows:
in an embodiment, as shown in fig. 2, a travel mode identification method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step S21, obtaining mobile terminal communication data of the trip user to be identified; the mobile terminal communication data includes user location information and application usage data.
In this step, mobile terminal communication data is generated by the user while using the mobile terminal device, and stored in the mobile operator database; the user positioning position information is determined by the position of the mobile terminal equipment; the application data is extracted from a usage record of an application installed by a user on the mobile terminal using the mobile terminal by generating a record of traffic in the mobile communication data. The trip user to be identified refers to user data which is not identified by the method or analyzed for data in a certain time period. Before the mobile terminal communication data of the trip user to be identified is used, the extracted mobile terminal communication data is encrypted, and a mobile phone number field in the mobile terminal communication data provided by a mobile operator is encrypted to ensure the privacy of the user; and secondly, matching the positioning position information in the communication data of the mobile terminal provided by the mobile operator into a preset map so as to protect the position privacy of the user. And finally, updating all numbers and position information in the mobile operator data according to the encrypted information, and ensuring that the association relation among the user positioning position information, the application program use data and the mobile phone number field is unchanged.
In the specific implementation, the user positioning position information with the user identification and the application program use data with the user identification are extracted from the mobile terminal communication data of the trip user to be identified, and the user positioning position information and the application program use data are always kept in an associated state.
The embodiment makes full use of the existing data resources of the mobile operators, does not need to collect data, has abundant data, and greatly improves the accuracy of travel mode identification.
And step S22, determining the initial travel mode of the user to be identified according to the application program use data.
In this step, the initial travel mode refers to a result obtained by preliminary judgment of the travel mode of the user.
In the specific implementation, data information generated when a user uses an application program is extracted, information such as the name of the application program used by the user, the use duration of the application program, the use place of the application program and the like is obtained from the data information, and the mode of the user going out at a certain time can be preliminarily judged. For example, when a user goes out, the user can obtain that the user inquires about a subway line or a bus line through the data of an application program related to the bus, such as Guangzhou subway client, Beijing all-purpose card APP and the like, and further can directly obtain specific riding information; similarly, the data of various taxi taking software can obtain that the user is going out in a taxi taking mode, and the various map navigation data can judge that the user is likely going out in a taxi taking mode.
According to the embodiment, the characteristics that the practical travel mode of the user can be embodied by using the application program use data are utilized, the travel mode is preliminarily classified, and the accuracy of travel mode identification is improved.
Step S23, determining the travel path of the travel user to be identified according to the user positioning position information and the preset road network map.
In this step, the preset road network map refers to map data to which other information is added on the basis of original map data; wherein, the other information can be public traffic network information, rail traffic information, POI information and the like; the travel path of the user to be identified refers to a path which can reflect the position change of the user and is obtained based on a series of extracted user positioning position information, travel time information and the like of the user. The user positioning location information specifically refers to the location information where the user is located within a period of time, and may be a series of data points with coordinates.
In the specific implementation, the preset road network map is obtained by dividing original map data into square networks to prepare for subsequent mobile terminal communication data processing (the width can be about 100-500 meters); downloading an xml map file from an OSM open source map; processing the xml file into road network node coordinates, and generating a road network node attribute table; and finally, constructing an adjacent matrix of the road network and drawing the road network. Extracting a series of city functional areas such as shops, industries, parks, government service facilities, schools, traffic facilities and the like in the road network node attribute table; the node number of the functional area corresponds to the node number in the road network node coordinate; and finally, corresponding the functional area micro-regions to obtain the attributes of the micro-regions. Extracting the coordinates of the bus stops from a bus net information table and matching the coordinates to a road network map with micro-regional attributes; establishing a bus network adjacency matrix according to the adjacency relation of bus passing stations and a bus network information table; according to the stations with the line connection relationship between two stations in the bus network adjacency matrix, the actual distance between the stations is calculated by combining the paths in the actual road network. Matching the user positioning position information to a preset road network map according to coordinates, then carrying out data cleaning on the user positioning position information, removing error data, and connecting the error data into a line according to a certain rule, thus obtaining the travel path of the user to be identified.
According to the embodiment, the preset road network map is combined according to the user positioning position information, so that the travel path of the user to be identified conforms to the actual road network condition, and the accuracy of travel mode identification is improved.
And step S24, determining the target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified.
In this step, the target travel mode of the user to be identified is a travel mode that can be determined after the initial travel mode is further determined by combining other determination conditions on the basis of the initial travel mode.
For example, the user a uses the guangzhou subway client twice in the traveling process, the position change conforms to the route of the road network, the speed is high, the distance is long, the user can be judged to be subway traveling according to the traveling characteristic information, and the target traveling mode of the user to be identified is bus traveling.
According to the method and the device, the travel mode is further identified on the basis of the initial travel mode, and the accuracy of travel mode identification is improved.
According to the travel mode identification method, the travel mode identification device, the computer equipment and the storage medium, the mobile terminal communication data of the user to be identified are obtained; the mobile terminal communication data comprises user positioning position information and application program use data; determining an initial travel mode of a user to be identified according to application program use data; determining a travel path of a user to be identified according to the user positioning position information and a preset road network map; and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified. According to the method, the existing data resources of a mobile operator are fully utilized to obtain the initial travel mode and the travel path of the travel user to be identified, and then the initial travel mode and the travel path of the travel user to be identified are used for carrying out secondary identification judgment on the travel mode of a resident, so that the travel mode of the user is more accurately identified, and the accuracy of travel mode identification is improved; meanwhile, the travel path and the travel mode of residents are effectively recovered, the data acquisition time period is wide, the data are representative, and the accuracy of travel mode identification is greatly improved.
In an embodiment, the step S22, determining an initial travel mode of the user to be identified according to the application usage data includes: extracting application program identification information corresponding to a preset trip mode from application program use data; inquiring a preset matching table according to the application program identification information; the preset matching table stores the corresponding relation between the application program identification information and the initial travel mode; and determining the initial travel mode of the travel user to be identified from the preset matching table.
In this step, the preset matching table is a list of correspondence between stored application identification information, such as an application name, and an initial travel mode.
In specific implementation, the name of the application program is extracted from the application program use data, and then the corresponding travel mode is found in the matching table according to the name. For example, data information generated when the user uses the application program is extracted, information such as the name, the use duration, the use place and the like of the application program used by the user is obtained from the data information, and the mode of the user going out for a certain time can be preliminarily judged. For example, applications are classified as: class 1, application names associated with private car usage (e.g., meter parking, traffic 12123, little bear consumption, biguat car wash, etc.); class 2, application names associated with a taxi (e.g., drip taxi, haroun windmill, etc.); class 3, application name associated with taking a bus (e.g., bus public number where the bus came in, and where WeChat was noted). Next, the user with the class 1 usage record is identified as the "initial travel mode is the user for the social vehicle", the user with the class 2 usage record is labeled as the "initial travel mode is the user for the social vehicle", and the user with the class 3 usage record is labeled as the "public travel".
In the embodiment, the habit of the user when selecting the travel mode can be accurately reflected by the application program name, and the initial travel mode of the user to be identified is determined by using the application program usage data, so that the accuracy of travel mode identification is improved.
In one embodiment, as shown in fig. 3, the user positioning location information also carries corresponding time information; then, in step S23, determining the travel route of the user to be identified according to the user positioning location information and the preset road network map, where the determining step includes:
and step S31, obtaining the staying position of the trip user to be identified according to the user positioning position information and the time information.
And step S32, obtaining the stay time of the trip user to be identified at the stay position, and screening the working position and the living position of the trip user to be identified from the stay position according to the stay time of the trip user to be identified at the stay position.
Step S33, determining a road network node corresponding to the working position in a preset road network map as a first road network node; and determining the corresponding road network node of the living position in the preset road network map as a second road network node.
Step S34, obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map.
In this embodiment, the dwell point is a point where the user stays long and the dwell user is more dense.
In specific implementation, firstly identifying a residence point of a user; in order to ensure the purity of the data, the LOF algorithm can be used for cleaning outliers in the data points; and clustering the data points by using a K-means algorithm. Aggregating the stay time by using the user number, and selecting the stay time in the time period of 10:00 to 16:00 as a job site of the stay site, namely a place corresponding to the working position; similarly, the time is taken as the residence point of the residence point in the time period from 01:00 to 05:00, namely the place corresponding to the residence position. And the road network node corresponding to the working position in the preset road network map is used as a first road network node, and the road network node corresponding to the living position in the preset road network map is used as a second road network node. The two nodes are combined with preset map data, and all selectable paths from the working position to the living position or from the living position to the working position of a user can be obtained by applying a path analysis function in a GIS (geographic information system), wherein the selectable path refers to a path selection result in a reasonable range. For example, the user Z will have the working position W and the living position H at 10-19 o 'clock and the user Z will always have the working position W and the living position H at 2-6 o' clock in the morning. And when the working position W reaches the living position H, the ABC street can be walked, the ABD street can be walked, and the travel path of the user Z to be identified is further judged from the route ABC and the route ABD.
According to the embodiment, the attribute of the position where the user stays can be accurately judged by determining the stay time of the user in a certain place, and the accuracy of travel mode identification is improved.
In an embodiment, in the step S34, obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node, and the preset road network map includes: generating a plurality of paths connecting the first road network node and the second road network node according to a preset road network map; respectively counting the actual path distances of a plurality of paths; and screening out the path with the minimum actual path distance from the plurality of paths as the travel path of the user to be identified.
In specific implementation, the actual conditions, such as one-way and two-way roads, construction, whether the roads are suitable for walking, specific traffic rules, and the like, need to be considered for obtaining the path. The method comprises the steps of obtaining selectable paths between working positions and living positions corresponding to a first road network node and a second road network node by utilizing a preset road network map, and obtaining the actual distance of each path by utilizing the GIS analysis method because actual road network data are utilized. And selecting a path corresponding to the minimum distance from the actual path distances as a travel path of the user to be identified.
In the embodiment, in a general situation, people tend to select the fastest and most direct route to the destination, the invention utilizes the actual length of the road, extracts all selectable routes and calculates the distance, and the obtained travel path of the user to be identified can be close to a real situation to the greatest extent.
In an embodiment, as shown in fig. 4, in the step S24, determining the target travel mode of the user to be identified according to the travel path of the user to be identified and the initial travel mode, includes:
step S41, if the initial travel mode of the travel user to be identified is private car travel, obtaining travel characteristic information of the travel user to be identified according to the travel path of the travel user to be identified; and correcting the initial travel mode according to the travel characteristic information of the travel user to be identified to obtain the target travel mode of the travel user to be identified.
Step S42, if the initial travel mode of the travel user to be identified is bus travel, the initial travel mode is corrected according to the travel path of the travel user to be identified, and the target travel mode of the travel user to be identified is obtained.
In this embodiment, the travel characteristics refer to relevant parameters, such as speed, average speed, acceleration, direction, and the like, related to the user to be identified when traveling. Correction refers to a means of adjusting and updating the original information after obtaining further information to obtain a more accurate or easier-to-use result.
In the concrete implementation, the initial travel mode of the user to be identified is private car travel, parameters such as speed, average speed and the like identified as private car travel are obtained by combining the travel path of the user to be identified, and whether the result identified as private car travel in front is accurate is judged again, for example, the travel path of the private car is not consistent with the ground road, mostly straight, crosses the ground road, can be further compared with the subway line, and then the result is corrected to be subway travel and is reclassified as a public transport user; and if the matching degree of the moving speed and the moving path with the travel path of the user to be identified is above a threshold value, determining that the initial travel mode and the target travel mode are both private car travel.
Bus users are large in quantity and have complicated lines, and bus trips are handled independently for distinguishing with other trip modes. If the initial travel mode of the user to be identified is bus travel, the user to be identified can be identified in advance as a bus travel mode changed into other travel modes after correction; similarly, if the bus travel rule is not met after the comparison with the route, the travel characteristics and the like, other results can be identified again.
According to the method, the initial travel modes after preliminary classification of the mobile communication data are combined with actual factors to be judged again and corrected, so that the accuracy of the identification result is guaranteed, and the travel modes such as private car travel and bus travel can be accurately identified.
In an embodiment, as shown in fig. 5, in step S41, if the initial travel mode of the user to be identified is private car travel, the step S corrects the initial travel mode according to the travel characteristic information of the user to be identified to obtain a target travel mode of the user to be identified, including:
and step S51, if the travel distance is greater than or equal to the preset distance, determining that the target travel mode of the user to be identified is social vehicle travel.
And step S52, if the travel distance is less than the preset distance and the average travel speed is greater than or equal to the first speed, determining that the target travel mode of the user to be identified is social vehicle travel.
And step S53, if the travel distance is less than the preset distance, and the average travel speed is less than the first speed and greater than or equal to the second speed, correcting the initial travel mode according to the travel path of the user to be identified to obtain the target travel mode of the user to be identified.
And step S54, if the trip distance is less than the preset distance and the average trip speed is less than the second speed, determining that the target trip mode of the user to be identified is non-motor vehicle trip.
In this embodiment, the social vehicle trip refers to other motor vehicle trip modes distinguished from public transportation, such as a driving trip or a taxi trip; in a practical situation, people can select different travel modes according to the distance of travel, the distance of the travel distance is a preset distance, for example, people can generally select social cars to travel at a distance exceeding 5 kilometers, and can generally select public transport travel within 5 kilometers; similarly, the speeds of different travel modes are necessarily different, for example, the average speed is more than 30km/h, which is usually the travel of the social vehicle. The first speed is the right end point of the average speed section corresponding to a certain travel mode, i.e., the end point with the largest numerical value, and the second speed is the left end point of the average speed section, i.e., the end point with the smallest numerical value.
In the specific implementation, a preset distance is set as a condition for social vehicle travel, and social vehicle travel is identified when the preset distance is greater than the value; if the distance does not reach the preset distance, but the speed is greater than or equal to the preset first speed, the social vehicle is also identified as going out; and if the preset distance is not reached and the speed is between the first speed and the second speed, correcting the preset distance and trying to match with other travel modes by combining with the travel route.
For example, if the preset distance is set to be 5km, the first speed is set to be 30km/h, the second speed is set to be 5km/h, and if the travel distance is greater than or equal to 5km, the vehicle is firstly identified as a social vehicle travel; if the travel distance is less than 5km but the average speed is more than or equal to 30km/h, identifying the social vehicle as traveling; if the travel distance is less than 5km, the average speed is more than or equal to 5km and less than 30km, the bus travel is corrected; and if the commuting distance is less than 5km and the average speed is less than 5km/h, identifying a non-motor vehicle travel mode such as walking or bicycle travel.
According to the embodiment, the target travel mode can be judged more accurately by setting the preset distance, the first speed and the second speed, and the accuracy of travel mode identification is improved.
In an embodiment, in step S42, the modifying the initial travel mode according to the travel path of the user to be identified to obtain the target travel mode of the user to be identified includes: matching a travel path of a user to be identified with a preset bus operation path; and if the travel path of the travel user to be identified is successfully matched with the preset bus operation path, determining that the target travel mode of the travel user to be identified is bus travel.
In this embodiment, the preset bus operation route refers to bus operation route data with more data characteristics after the bus route is matched with an actual road network, bus operation data, bus positioning information and the like.
In the specific implementation, the initial travel mode or the corrected travel route is identified as a bus travel route and is matched with a preset bus operation route, and if the matching is successful, the target travel mode of the travel user to be identified is determined as bus travel; if the matching is not successful, the data is corrected, and the data can be identified as other travel modes or discarded. Specifically, as shown in fig. 6, user age data and the like in the mobile communication data may be acquired, and data identified as other travel modes may be corrected again;
specifically, for other users:
if the travel distance is more than 18km, the speed is more than 30km/h, and the travel is identified and corrected as driving travel (namely, social vehicle travel, the same below); the speed is less than or equal to 30km/h, and the bus trip is identified and corrected;
the travel distance is between 4km and 18km, the travel is identified and corrected as bus travel above the age of 60 years, the travel is under the age of 60 years, the speed is 6km to 18km for riding (namely, the travel of a non-motor vehicle, the same below the same), the speed is greater than 30km/h for driving, and the speed is between 18 km/h and 30km/h for bus;
when the travel distance is less than 4km and the age is less than 50 years old or more than 60 years old, walking is performed at a speed of less than 6km/h, riding is performed at a speed of between 6 and 16km/h, and public transportation is performed at a speed of more than 16 km/h;
when the travel distance is less than 4km and the age is between 15 and 60 years, the driving is carried out at the speed of more than 30km/h, the public transportation is carried out at the speed of between 20 and 30km/h, the riding is carried out at the speed of between 5 and 20km/h, and the walking is carried out at the speed of less than 5 km/h.
The embodiment matches the travel route of the travel user to be identified with the preset bus operation route, so that the accurate identification of the bus user is realized, and the accuracy of travel mode identification is improved.
In an embodiment, as shown in fig. 7, before the step S42, before the step S matches the travel route of the travel user to be identified with the preset bus operation route, the method further includes:
step S71, acquiring bus operation data;
step S72, extracting bus positioning information in the bus operation data;
step S73, correcting the bus positioning information according to the preset road network map;
and step S74, obtaining a preset bus operation route according to the corrected bus positioning information.
In the specific implementation, data cleaning is carried out according to the public transport vehicle positioning information provided by the public transport group, and the public transport vehicle positioning information with errors is removed; secondly, matching the positioning information of the buses to a preset road network map, correcting the positioning information of the buses again, and recovering the drifting positioning information of the buses according to the relationship of the positioning information of the buses before and after the buses; and finally, matching the stop positions in the corrected bus positioning information and the route stop information to obtain a preset bus operation path.
By matching the public transport operation line with the preset road network map, the position change rule of the public transport vehicle is easy to observe, and meanwhile, the comparison is convenient, so that the accuracy of identifying the travel mode is improved
In the embodiments, the mobile terminal communication data of the trip user to be identified is acquired; the mobile terminal communication data comprises user positioning position information and application program use data; determining an initial travel mode of a user to be identified according to application program use data; determining a travel path of a user to be identified according to the user positioning position information and a preset road network map; and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified. According to the method, the existing data resources of a mobile operator are fully utilized to obtain the initial travel mode and the travel path of the travel user to be identified, and then the initial travel mode and the travel path of the travel user to be identified are used for carrying out secondary identification judgment on the travel mode of a resident, so that the travel mode of the user is more accurately identified, and the accuracy of travel mode identification is improved; meanwhile, the travel path and the travel mode of residents are effectively recovered, the data acquisition time period is wide, the data are representative, and the accuracy of travel mode identification is greatly improved.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided a travel pattern recognition apparatus including: a communication data obtaining module 81, an initial travel mode determining module 82, a travel path determining module 83, and a target travel mode determining module 84, where:
the communication data acquisition module 81 is configured to acquire mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
an initial travel mode determining module 82, configured to determine an initial travel mode of the user to be identified according to the application usage data;
the travel path determining module 83 is configured to determine a travel path of a travel user to be identified according to the user positioning position information and a preset road network map;
and a target trip mode determining module 84, configured to determine a target trip mode of the trip user to be identified according to the trip path of the trip user to be identified and the initial trip mode.
In one embodiment, the initial travel mode determining module 82 is further configured to extract application identification information corresponding to a preset travel mode from the application usage data; inquiring a preset matching table according to the application program identification information; the preset matching table stores the corresponding relation between the application program identification information and the initial travel mode; and determining the initial travel mode of the travel user to be identified from the preset matching table.
In one embodiment, the travel path determining module 83 is further configured to obtain a staying position of the travel user to be identified according to the user positioning position information and the time information; the method comprises the steps of obtaining the stay time of a user to be identified in a stay position, and screening the working position and the living position of the user to be identified from the stay position according to the stay time of the user to be identified in the stay position; determining a road network node corresponding to the working position in a preset road network map as a first road network node; determining a corresponding road network node of the living position in a preset road network map as a second road network node; and obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map.
In one embodiment, the travel path determining module 83 is further configured to generate a plurality of paths connecting the first road network node and the second road network node according to a preset road network map; respectively counting the actual path distances of a plurality of paths; and screening out the path with the minimum actual path distance from the plurality of paths as the travel path of the user to be identified.
In one embodiment, the target travel mode determining module 84 is further configured to, if the initial travel mode of the to-be-identified travel user is private car travel, obtain travel characteristic information of the to-be-identified travel user according to the travel path of the to-be-identified travel user; correcting the initial travel mode according to travel characteristic information of the travel user to be identified to obtain a target travel mode of the travel user to be identified;
in an embodiment, the target travel mode determining module 84 is further configured to, if the initial travel mode of the to-be-identified travel user is bus travel, modify the initial travel mode according to the travel path of the to-be-identified travel user, so as to obtain the target travel mode of the to-be-identified travel user.
In one embodiment, the target travel mode determining module 84 is further configured to determine that the target travel mode of the user to be identified is social vehicle travel if the travel distance is greater than or equal to the preset distance; if the travel distance is smaller than the preset distance and the average travel speed is greater than or equal to the first speed, determining that the target travel mode of the user to be identified is social vehicle travel; if the travel distance is smaller than the preset distance, and the average travel speed is smaller than the first speed and is greater than or equal to the second speed, correcting the initial travel mode according to the travel path of the user to be identified to obtain a target travel mode of the user to be identified; and if the travel distance is smaller than the preset distance and the average travel speed is smaller than the second speed, determining that the target travel mode of the user to be identified is the non-motor vehicle travel.
In one embodiment, the target travel mode determining module 84 is further configured to match the travel route of the travel user to be identified with a preset bus operation route; and if the travel path of the travel user to be identified is successfully matched with the preset bus operation path, determining that the target travel mode of the travel user to be identified is bus travel.
In one embodiment, the travel mode identification device further comprises an operation path acquisition module, which is used for acquiring operation data of the bus; extracting bus positioning information in bus operation data; correcting the positioning information of the public transport vehicle according to a preset road network map; and obtaining a preset bus operation path according to the corrected bus positioning information.
In the embodiments, the mobile terminal communication data of the trip user to be identified is acquired; the mobile terminal communication data comprises user positioning position information and application program use data; determining an initial travel mode of a user to be identified according to application program use data; determining a travel path of a user to be identified according to the user positioning position information and a preset road network map; and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified. The method fully utilizes the existing data resources of the mobile operators, identifies and judges the travel modes of the residents, and comprehensively reflects different travel behaviors of the residents in different time periods by recovering the travel paths and the travel modes of the residents. The analysis result can be used for carrying out satisfaction degree analysis on the existing public traffic network condition, guiding the implementation of reasonable layout of traffic planning and having guiding significance for improving the public service level of the city.
For the specific definition of the travel mode identification device, reference may be made to the above definition of the travel mode identification method, which is not described herein again. All or part of the modules in the travel mode identification device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing travel mode identification data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a travel pattern recognition method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
determining an initial travel mode of a user to be identified according to application program use data;
determining a travel path of a user to be identified according to the user positioning position information and a preset road network map;
and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified.
In one embodiment, the processor, when executing the computer program, further performs the steps of: extracting application program identification information corresponding to a preset trip mode from application program use data; inquiring a preset matching table according to the application program identification information; the preset matching table stores the corresponding relation between the application program identification information and the initial travel mode; and determining the initial travel mode of the travel user to be identified from the preset matching table.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining the staying position of the user to be identified according to the user positioning position information and the time information; the method comprises the steps of obtaining the stay time of a user to be identified in a stay position, and screening the working position and the living position of the user to be identified from the stay position according to the stay time of the user to be identified in the stay position; determining a road network node corresponding to the working position in a preset road network map as a first road network node; determining a corresponding road network node of the living position in a preset road network map as a second road network node; and obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map.
In one embodiment, the processor, when executing the computer program, further performs the steps of: generating a plurality of paths connecting the first road network node and the second road network node according to a preset road network map; respectively counting the actual path distances of a plurality of paths; and screening out the path with the minimum actual path distance from the plurality of paths as the travel path of the user to be identified.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the initial travel mode of the user to be identified is private car travel, obtaining travel characteristic information of the user to be identified according to the travel path of the user to be identified; and correcting the initial travel mode according to the travel characteristic information of the travel user to be identified to obtain the target travel mode of the travel user to be identified.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the initial travel mode of the travel user to be identified is bus travel, correcting the initial travel mode according to the travel path of the travel user to be identified to obtain the target travel mode of the travel user to be identified.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the travel distance is greater than or equal to the preset distance, determining that the target travel mode of the user to be identified is social vehicle travel; if the travel distance is smaller than the preset distance and the average travel speed is greater than or equal to the first speed, determining that the target travel mode of the user to be identified is social vehicle travel; if the travel distance is smaller than the preset distance, and the average travel speed is smaller than the first speed and is greater than or equal to the second speed, correcting the initial travel mode according to the travel path of the user to be identified to obtain a target travel mode of the user to be identified; and if the travel distance is smaller than the preset distance and the average travel speed is smaller than the second speed, determining that the target travel mode of the user to be identified is the non-motor vehicle travel.
In one embodiment, the processor, when executing the computer program, further performs the steps of: matching a travel path of a user to be identified with a preset bus operation path; and if the travel path of the travel user to be identified is successfully matched with the preset bus operation path, determining that the target travel mode of the travel user to be identified is bus travel.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring bus operation data; extracting bus positioning information in bus operation data; correcting the positioning information of the public transport vehicle according to a preset road network map; and obtaining a preset bus operation path according to the corrected bus positioning information.
In the embodiments, the mobile terminal communication data of the trip user to be identified is acquired; the mobile terminal communication data comprises user positioning position information and application program use data; determining an initial travel mode of a user to be identified according to application program use data; determining a travel path of a user to be identified according to the user positioning position information and a preset road network map; and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified. The method fully utilizes the existing data resources of the mobile operators, identifies and judges the travel modes of the residents, and comprehensively reflects different travel behaviors of the residents in different time periods by recovering the travel paths and the travel modes of the residents. The analysis result can be used for carrying out satisfaction degree analysis on the existing public traffic network condition, guiding the implementation of reasonable layout of traffic planning and having guiding significance for improving the public service level of the city.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
determining an initial travel mode of a user to be identified according to application program use data;
determining a travel path of a user to be identified according to the user positioning position information and a preset road network map;
and determining a target travel mode of the travel user to be identified according to the travel path and the initial travel mode of the travel user to be identified.
In one embodiment, the computer program when executed by the processor implements the steps of: extracting application program identification information corresponding to a preset trip mode from application program use data; inquiring a preset matching table according to the application program identification information; the preset matching table stores the corresponding relation between the application program identification information and the initial travel mode; and determining the initial travel mode of the travel user to be identified from the preset matching table.
In one embodiment, the computer program when executed by the processor implements the steps of: obtaining the staying position of the user to be identified according to the user positioning position information and the time information; the method comprises the steps of obtaining the stay time of a user to be identified in a stay position, and screening the working position and the living position of the user to be identified from the stay position according to the stay time of the user to be identified in the stay position; determining a road network node corresponding to the working position in a preset road network map as a first road network node; determining a corresponding road network node of the living position in a preset road network map as a second road network node; and obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map.
In one embodiment, the computer program when executed by the processor implements the steps of: generating a plurality of paths connecting the first road network node and the second road network node according to a preset road network map; respectively counting the actual path distances of a plurality of paths; and screening out the path with the minimum actual path distance from the plurality of paths as the travel path of the user to be identified.
In one embodiment, the computer program when executed by the processor implements the steps of: if the initial travel mode of the user to be identified is private car travel, obtaining travel characteristic information of the user to be identified according to the travel path of the user to be identified; and correcting the initial travel mode according to the travel characteristic information of the travel user to be identified to obtain the target travel mode of the travel user to be identified.
In one embodiment, the computer program when executed by the processor implements the steps of: and if the initial travel mode of the travel user to be identified is bus travel, correcting the initial travel mode according to the travel path of the travel user to be identified to obtain the target travel mode of the travel user to be identified.
In one embodiment, the computer program when executed by the processor implements the steps of: if the travel distance is greater than or equal to the preset distance, determining that the target travel mode of the user to be identified is social vehicle travel; if the travel distance is smaller than the preset distance and the average travel speed is greater than or equal to the first speed, determining that the target travel mode of the user to be identified is social vehicle travel; if the travel distance is smaller than the preset distance, and the average travel speed is smaller than the first speed and is greater than or equal to the second speed, correcting the initial travel mode according to the travel path of the user to be identified to obtain a target travel mode of the user to be identified; and if the travel distance is smaller than the preset distance and the average travel speed is smaller than the second speed, determining that the target travel mode of the user to be identified is the non-motor vehicle travel.
In one embodiment, the computer program when executed by the processor implements the steps of: matching a travel path of a user to be identified with a preset bus operation path; and if the travel path of the travel user to be identified is successfully matched with the preset bus operation path, determining that the target travel mode of the travel user to be identified is bus travel.
In one embodiment, the computer program when executed by the processor implements the steps of: acquiring bus operation data; extracting bus positioning information in bus operation data; correcting the positioning information of the public transport vehicle according to a preset road network map; and obtaining a preset bus operation path according to the corrected bus positioning information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (11)
1. A travel mode identification method is characterized by comprising the following steps:
acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
determining an initial travel mode of the user to be identified according to the application program use data;
determining a travel path of the travel user to be identified according to the user positioning position information and a preset road network map; the user positioning position information carries corresponding time information, and the time information is used for determining a residence point of the trip user to be identified; the resident point is used for determining a travel path of the travel user to be identified;
and determining the target travel mode of the travel user to be identified according to the travel path of the travel user to be identified and the initial travel mode.
2. The method according to claim 1, wherein the determining an initial travel mode of the user to be identified according to the application usage data includes:
extracting application program identification information corresponding to a preset trip mode from the application program use data;
inquiring a preset matching table according to the application program identification information; the preset matching table stores the corresponding relation between the application program identification information and the initial travel mode;
and determining the initial travel mode of the user to be identified from the preset matching table.
3. The method of claim 1,
determining the travel path of the travel user to be identified according to the user positioning position information and a preset road network map, wherein the determining comprises the following steps:
obtaining the staying position of the trip user to be identified according to the user positioning position information and the time information;
acquiring the stay time of the to-be-identified trip user at the stay position, and screening the working position and the living position of the to-be-identified trip user from the stay position according to the stay time of the to-be-identified trip user at the stay position;
determining a road network node corresponding to the working position in the preset road network map as a first road network node; determining a road network node corresponding to the living position in the preset road network map as a second road network node;
and obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map.
4. The method according to claim 3, wherein obtaining the travel path of the travel user to be identified according to the first road network node, the second road network node and the preset road network map comprises:
generating a plurality of paths connecting the first road network node and the second road network node according to the preset road network map;
respectively counting the actual path distances of the paths;
and screening out a path with the minimum actual path distance from the plurality of paths as the travel path of the user to be identified.
5. The method according to claim 1, wherein the determining a target travel mode of the user to be identified according to the travel path of the user to be identified and the initial travel mode comprises:
if the initial travel mode of the user to be identified is private car travel, obtaining travel characteristic information of the user to be identified according to the travel path of the user to be identified;
correcting the initial travel mode according to the travel characteristic information of the travel user to be identified to obtain a target travel mode of the travel user to be identified;
and/or the presence of a gas in the gas,
and if the initial travel mode of the travel user to be identified is bus travel, correcting the initial travel mode according to the travel path of the travel user to be identified to obtain the target travel mode of the travel user to be identified.
6. The method according to claim 5, wherein the travel characteristic information of the user to be identified comprises a travel distance and a travel average speed;
if the initial travel mode of the user to be identified is private car travel, correcting the initial travel mode according to the travel characteristic information of the user to be identified to obtain the target travel mode of the user to be identified, including:
if the travel distance is greater than or equal to a preset distance, determining that the target travel mode of the user to be identified is social vehicle travel;
if the travel distance is smaller than the preset distance and the average travel speed is greater than or equal to a first speed, determining that the target travel mode of the user to be identified is social vehicle travel;
if the travel distance is smaller than the preset distance, and the average travel speed is smaller than the first speed and is greater than or equal to a second speed, correcting the initial travel mode according to the travel path of the user to be identified to obtain a target travel mode of the user to be identified;
and if the travel distance is smaller than the preset distance and the average travel speed is smaller than the second speed, determining that the target travel mode of the user to be identified is non-motor vehicle travel.
7. The method according to claim 6, wherein the step of correcting the initial travel mode according to the travel path of the user to be identified to obtain the target travel mode of the user to be identified comprises:
matching the travel path of the travel user to be identified with a preset bus operation path;
and if the travel path of the travel user to be identified is successfully matched with a preset bus operation path, confirming that the target travel mode of the travel user to be identified is bus travel.
8. The method according to claim 7, before matching the travel route of the travel user to be identified with a preset bus operation route, further comprising:
acquiring bus operation data;
extracting bus positioning information in the bus operation data;
correcting the positioning information of the public transport vehicle according to the preset road network map;
and obtaining the preset bus operation route according to the corrected bus positioning information.
9. An travel pattern recognition apparatus, characterized in that the apparatus comprises:
the communication data acquisition module is used for acquiring mobile terminal communication data of a user to be identified; the mobile terminal communication data comprises user positioning position information and application program use data;
an initial travel mode determining module, configured to determine an initial travel mode of the user to be identified according to the application usage data;
the travel path determining module is used for determining a travel path of the travel user to be identified according to the user positioning position information and a preset road network map; the user positioning position information carries corresponding time information, and the time information is used for determining a residence point of the trip user to be identified;the dwell point is used to determine theA travel path of a user to be identified;
and the target travel mode determining module is used for determining the target travel mode of the travel user to be identified according to the travel path of the travel user to be identified and the initial travel mode.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910958194.9A CN110751831B (en) | 2019-10-10 | 2019-10-10 | Travel mode identification method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910958194.9A CN110751831B (en) | 2019-10-10 | 2019-10-10 | Travel mode identification method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110751831A CN110751831A (en) | 2020-02-04 |
CN110751831B true CN110751831B (en) | 2021-01-22 |
Family
ID=69277825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910958194.9A Active CN110751831B (en) | 2019-10-10 | 2019-10-10 | Travel mode identification method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110751831B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113723979A (en) * | 2020-05-26 | 2021-11-30 | 百度在线网络技术(北京)有限公司 | Commuting preference analysis method, mining method, device, equipment and medium |
CN112017433B (en) * | 2020-08-17 | 2021-12-07 | 长安大学 | System and method for correcting congestion degree display result of electronic map |
CN112261093B (en) * | 2020-09-30 | 2022-09-02 | 浙江网商银行股份有限公司 | Man-vehicle data matching method and device |
CN113256830B (en) * | 2021-05-07 | 2022-02-22 | 广州红海云计算股份有限公司 | Intelligent real-time attendance checking method and device of attendance checking management device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110362A (en) * | 2011-02-01 | 2011-06-29 | 世纪战斧节能环保技术(北京)有限公司 | Method and system for processing travel route planning |
CN102708680A (en) * | 2012-06-06 | 2012-10-03 | 北京交通大学 | Commute travel mode identification method based on AGPS technology |
CN105809962A (en) * | 2016-06-13 | 2016-07-27 | 中南大学 | Traffic trip mode splitting method based on mobile phone data |
KR101742043B1 (en) * | 2016-11-15 | 2017-05-31 | 한국과학기술정보연구원 | Apparatus and method for travel mode choice prediction |
CN107622467A (en) * | 2017-10-09 | 2018-01-23 | 北京航空航天大学 | A kind of commuter schema extraction method and device |
CN108171973A (en) * | 2017-12-27 | 2018-06-15 | 东南大学 | A kind of traffic trip mode identification method based on mobile phone grid data |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008090348A (en) * | 2006-09-29 | 2008-04-17 | Nissan Diesel Motor Co Ltd | Operation controller for commercial vehicle, and operation control system using the same |
CN106096800A (en) * | 2016-07-19 | 2016-11-09 | 北京小米移动软件有限公司 | Trip advisory information method for pushing and device |
CN106446208B (en) * | 2016-09-30 | 2019-07-26 | 东南大学 | A kind of smart phone trip mode recognition methods considering road network compatible degree |
CN106679683B (en) * | 2016-11-26 | 2018-06-29 | 深圳壹账通智能科技有限公司 | Obtain the method and device of trip information |
CN109727452A (en) * | 2019-01-08 | 2019-05-07 | 江苏交科能源科技发展有限公司 | Trip proportion accounting method based on mobile phone signaling data |
-
2019
- 2019-10-10 CN CN201910958194.9A patent/CN110751831B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110362A (en) * | 2011-02-01 | 2011-06-29 | 世纪战斧节能环保技术(北京)有限公司 | Method and system for processing travel route planning |
CN102708680A (en) * | 2012-06-06 | 2012-10-03 | 北京交通大学 | Commute travel mode identification method based on AGPS technology |
CN105809962A (en) * | 2016-06-13 | 2016-07-27 | 中南大学 | Traffic trip mode splitting method based on mobile phone data |
KR101742043B1 (en) * | 2016-11-15 | 2017-05-31 | 한국과학기술정보연구원 | Apparatus and method for travel mode choice prediction |
CN107622467A (en) * | 2017-10-09 | 2018-01-23 | 北京航空航天大学 | A kind of commuter schema extraction method and device |
CN108171973A (en) * | 2017-12-27 | 2018-06-15 | 东南大学 | A kind of traffic trip mode identification method based on mobile phone grid data |
Non-Patent Citations (1)
Title |
---|
基于智能手机大数据的交通出行方式识别研究;李 喆;《计算机应用研究》;20161231;第33卷(第12期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110751831A (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110751831B (en) | Travel mode identification method and device, computer equipment and storage medium | |
Hess et al. | Developing advanced route choice models for heavy goods vehicles using GPS data | |
CN101275841B (en) | Feature information collecting apparatus and feature information collecting method | |
CN101361106B (en) | Traffic information providing system using digital map for collecting traffic information and method thereof | |
US20200152061A1 (en) | Method and system for computing parking occupancy | |
CN106969777A (en) | Path prediction meanss and path Forecasting Methodology | |
US20120016577A1 (en) | Method and system for determining interest contents based on travel route information | |
CN101842823A (en) | Method and system for the use of probe data from multiple vehicles to detect real world changes for use in updating a map | |
JP2009503638A (en) | Method, apparatus and system for modeling a road network graph | |
CN101256083A (en) | Method for selecting urban traffic network path based on dynamic information | |
CN104121918A (en) | Real-time path planning method and system | |
CN107871400B (en) | Road network information updating method and device | |
US11085791B2 (en) | Method, apparatus, and computer program product for on-street parking localization | |
CN108806244B (en) | Image transmission apparatus, method and non-transitory storage medium | |
CN108921173A (en) | A kind of deep learning method of combination OSM and remote sensing image extraction overpass | |
CN113360543B (en) | Method, device, equipment and storage medium for identifying repeated routes of public transportation | |
CN103793763A (en) | Optimal bus taking route excavating system based on big data and cloud computing | |
US20180315304A1 (en) | Non-transitory storage medium storing image transmission program, image transmission device, and image transmission method | |
JP3848113B2 (en) | Road guide device, program, and portable terminal device | |
CN108520028B (en) | DPI data-based user geographic position feature extraction method and system | |
KR102377652B1 (en) | Pedestrian traffic information providing system and method using controlled traffic signal informationttg | |
Tian et al. | Identifying residential and workplace locations from transit smart card data | |
CN103021166B (en) | Method and device for traffic weather information processing | |
Efentakis et al. | Crowdsourcing turning restrictions for OpenStreetMap. | |
Domingues et al. | Space and time matter: An analysis about route selection in mobility traces |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |