[go: up one dir, main page]

CN111858806A - Passenger travel trajectory detection method, device, device and storage medium - Google Patents

Passenger travel trajectory detection method, device, device and storage medium Download PDF

Info

Publication number
CN111858806A
CN111858806A CN202010660878.3A CN202010660878A CN111858806A CN 111858806 A CN111858806 A CN 111858806A CN 202010660878 A CN202010660878 A CN 202010660878A CN 111858806 A CN111858806 A CN 111858806A
Authority
CN
China
Prior art keywords
passenger
travel
stations
riding
station
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.)
Pending
Application number
CN202010660878.3A
Other languages
Chinese (zh)
Inventor
杨光
石铁轩
喻小林
谭业申
樊仁节
周楚刚
张爽
叶丽云
吴凡
吴茂璠
郜俊霞
朱俊慧
王贝
朱力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Decode First Technology Co ltd
Original Assignee
Wuhan Decode First Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Decode First Technology Co ltd filed Critical Wuhan Decode First Technology Co ltd
Priority to CN202010660878.3A priority Critical patent/CN111858806A/en
Publication of CN111858806A publication Critical patent/CN111858806A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Remote Sensing (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明公开了一种乘客出行轨迹检测方法、装置、设备及存储介质,涉及城市交通数据挖掘技术领域,该方法包括:获取公交车的到离站信息和乘客的公交车刷卡数据;根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点;根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。本发明将乘客的公交车刷卡数据与公交车的到离站信息进行匹配从而确定乘客的乘车站点,进而确定乘客出行轨迹的起点和终点,以获取准确的乘客出行轨迹。

Figure 202010660878

The invention discloses a passenger travel trajectory detection method, device, equipment and storage medium, and relates to the technical field of urban traffic data mining. The method includes: acquiring bus arrival and departure information and passengers' bus card swiping data; Arrival and departure information and the bus card swiping data to determine the passenger's boarding station; obtain the passenger's boarding starting point and boarding destination according to the boarding station, and The vehicle end point determines the travel trajectory of the passenger. The invention matches the passenger's bus card swiping data with the bus's arrival and departure information to determine the passenger's boarding station, and then determines the starting point and end point of the passenger's travel trajectory, so as to obtain an accurate passenger's travel trajectory.

Figure 202010660878

Description

乘客出行轨迹检测方法、装置、设备及存储介质Passenger travel trajectory detection method, device, device and storage medium

技术领域technical field

本发明涉及城市交通数据挖掘技术领域,尤其涉及一种乘客出行轨迹检测方法、装置、设备及存储介质。The invention relates to the technical field of urban traffic data mining, and in particular, to a method, device, equipment and storage medium for passenger travel trajectory detection.

背景技术Background technique

公共交通是城市交通系统的主体,在城市交通发展中起着举足轻重的作用,合理的线路规划会使得城市的公交系统运行更有效率,有利于推进公交系统的良性发展,打造更具吸引力的城市公交系统,提高公交系统的竞争力为城市的发展注入动力。Public transportation is the main body of the urban transportation system and plays an important role in the development of urban transportation. Reasonable route planning will make the operation of the urban public transportation system more efficient, which is conducive to promoting the healthy development of the public transportation system and creating a more attractive public transportation system. Urban public transport system, improving the competitiveness of the public transport system injects impetus into the development of the city.

城市公交系统的本质是为了把乘客输送到目的地,因此,乘客出行轨迹公共交通管理者进行线路调整,车辆排班的主要参考依据。而目前在对乘客出行轨迹的挖掘上存在诸多困难,无法准确的获取乘客的出行轨迹。The essence of the urban public transport system is to transport passengers to their destinations. Therefore, the public transport manager of the passenger travel trajectory is the main reference for route adjustment and vehicle scheduling. At present, there are many difficulties in mining the travel trajectories of passengers, and it is impossible to accurately obtain the travel trajectories of passengers.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist the understanding of the technical solutions of the present invention, and does not mean that the above content is the prior art.

发明内容SUMMARY OF THE INVENTION

本发明的主要目的在于提供一种乘客出行轨迹检测方法、装置、设备及存储介质,旨在解决现有技术中对无法准确获取乘客出行轨迹的技术问题。The main purpose of the present invention is to provide a passenger travel trajectory detection method, device, equipment and storage medium, which aims to solve the technical problem that the passenger travel trajectory cannot be accurately obtained in the prior art.

为实现上述目的,本发明提供一种乘客出行轨迹检测方法,所述乘客出行轨迹检测方法包括以下步骤:In order to achieve the above object, the present invention provides a passenger travel trajectory detection method, the passenger travel trajectory detection method includes the following steps:

获取公交车的到离站信息和乘客的公交车刷卡数据;Obtain bus arrival and departure information and bus card swiping data of passengers;

根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点;Determine the boarding station of the passenger according to the arrival and departure information and the bus card swiping data;

根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。Acquire the starting point and ending point of the passenger's ride according to the bus stop, and determine the travel trajectory of the passenger according to the starting point and the ending point of the ride.

优选的,所述根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点的步骤,具体包括:Preferably, the step of determining the passenger's boarding station according to the arrival and departure information and the bus card swiping data specifically includes:

根据所述公交车刷卡数据确定所述乘客的刷卡时间和刷卡车辆;Determine the card-swiping time and the card-swiping vehicle of the passenger according to the bus card-swiping data;

根据所述到离站信息确定所述刷卡车辆在各站点的到离站时间段;Determine the arrival and departure time periods of the card-swiping vehicle at each station according to the arrival and departure information;

判断所述各站点的到离站时间段中是否存在包含所述刷卡时间的目标到离站时间段;Judging whether there is a target-to-departure time period including the card swipe time in the arrival and departure time periods of the stations;

若是,则判定所述目标到离站时间段对应的站点为所述乘客的乘车站点。If so, it is determined that the station corresponding to the time period from the target to the departure station is the passenger's boarding station.

优选的,所述判断所述各站点的到离站时间段中是否存在包含所述刷卡时间的目标到离站时间段的步骤之后,还包括:Preferably, after the step of judging whether there is a target arrival and departure time period including the card swiping time in the arrival and departure time periods of the stations, the method further includes:

若否,则根据第一预设值对所述刷卡时间进行修正,获得修正后的刷卡时间;If not, correcting the card swiping time according to the first preset value to obtain the corrected card swiping time;

判断所述各站点的到离站时间段中是否存在包含修正后的所述刷卡时间的目标到离站时间段;Judging whether there is a target arrival and departure time period including the revised card swiping time in the arrival and departure time periods of the stations;

若是,则判定所述目标到离站时间段对应的站点为所述乘客的乘车站点。If so, it is determined that the station corresponding to the time period from the target to the departure station is the passenger's boarding station.

优选的,所述根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹的步骤,具体包括:Preferably, the step of acquiring the starting point and ending point of the passenger according to the bus stop, and determining the travel trajectory of the passenger according to the starting point and the ending point of the bus, specifically includes:

获取公交车的线路信息;Get bus route information;

判断所述乘车站点的数量是否大于预设阈值;judging whether the number of the bus stops is greater than a preset threshold;

若是,则选取所述乘车站点中刷卡时间相邻的两个站点;If yes, then select two stations adjacent to the card swiping time in the bus station;

根据所述线路信息判断所述两个站点是否为直达站点;Determine whether the two sites are direct sites according to the line information;

若是,则将所述两个站点中刷卡时间在前的站点作为乘车起点,并将刷卡时间在后的站点作为乘车终点;If so, take the station with the first card swiping time among the two stations as the starting point of the ride, and take the station with the later card swiping time as the ride end point;

根据所述乘车起点和所述乘车终点获取所述乘客的出行路径;Obtain the travel route of the passenger according to the starting point of the ride and the end point of the ride;

在所述乘车站点中所有站点均被选取时,根据获取的所有出行路径确定所述乘客的出行轨迹。When all the stations in the boarding station are selected, the travel trajectory of the passenger is determined according to all the obtained travel routes.

优选的,所述判断所述乘车站点的数量是否大于预设阈值的步骤之后,还包括:Preferably, after the step of judging whether the number of the bus stops is greater than a preset threshold, the step further includes:

若否,则获取所述乘车站点所在线路的平均乘坐站点数;If not, obtain the average number of ride stops of the line where the ride station is located;

根据所述平均乘坐站点数,通过预设泊松分布模型获取下车站点;According to the average number of boarding stations, get off stations through a preset Poisson distribution model;

将所述乘车站点作为乘车起点,所述下车站点作为乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。The boarding station is used as the starting point of the boarding, the alighting station is used as the ending point of the boarding, and the travel trajectory of the passenger is determined according to the starting point and the ending point of the boarding.

优选的,所述根据所述乘车起点和所述乘车终点获取所述乘客的出行路径的步骤之后,还包括:Preferably, after the step of acquiring the travel route of the passenger according to the starting point and the ending point of the ride, the method further includes:

根据所述到离站信息确定从所述乘车起点到所述乘车终点所需的理论时间;Determine the theoretical time required from the starting point of the ride to the end point of the ride according to the arrival and departure information;

计算所述乘车起点对应的刷卡时间与所述乘车终点对应的刷卡时间之间的第一差值;calculating a first difference between the card swiping time corresponding to the starting point of the ride and the card swiping time corresponding to the ride end point;

判断所述第一差值与所述理论时间之间的第二差值是否小于第二预设值;judging whether the second difference between the first difference and the theoretical time is less than a second preset value;

若否,则判定所述出行路径为真实出行路径;If not, it is determined that the travel path is a real travel path;

相应的,所述在所述乘车站点中所有站点均被选取时,根据获取的所有出行路径的出行轨迹确定所述乘客的出行轨迹的步骤,具体包括:Correspondingly, the step of determining the travel trajectories of the passenger according to the obtained travel trajectories of all travel paths when all the stations in the boarding station are selected, specifically includes:

在所述乘车站点中所有站点均被选取时,根据获取的所有出行路径的出行轨迹确定所述乘客的出行轨迹。When all stations in the bus stop are selected, the travel trajectory of the passenger is determined according to the obtained travel trajectories of all travel routes.

优选的,所述根据所述线路信息判断所述两个站点是否为直达站点的步骤,具体包括:Preferably, the step of judging whether the two sites are direct sites according to the line information specifically includes:

根据所述线路信息判断所述两个站点是否处于同一公交线路上;Determine whether the two stations are on the same bus route according to the route information;

若是,则判定所述两个站点为直达站点;If so, it is determined that the two stations are direct stations;

若否,则判定所述两个站点不为直达站点。If not, it is determined that the two stations are not direct stations.

此外,为实现上述目的,本发明还提出一种乘客出行轨迹检测装置,所述乘客出行轨迹检测装置包括:In addition, in order to achieve the above purpose, the present invention also proposes a passenger travel trajectory detection device, the passenger travel trajectory detection device includes:

数据采集模块,用于获取公交车的到离站信息和乘客的公交车刷卡数据;The data collection module is used to obtain bus arrival and departure information and bus card swiping data of passengers;

站点确认模块,用于根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点;a station confirmation module, configured to determine the passenger's boarding station according to the arrival and departure information and the bus card swiping data;

轨迹确认模块,用于根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。The trajectory confirmation module is configured to acquire the passenger's starting point and the end of the ride according to the ride station, and determine the travel trajectory of the passenger according to the starting point and the end of the ride.

此外,为实现上述目的,本发明还提出一种乘客出行轨迹检测设备,所述乘客出行轨迹检测设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的乘客出行轨迹检测程序,所述乘客出行轨迹检测程序被所述处理器执行时实现如上述的乘客出行轨迹检测方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a passenger travel trajectory detection device, the passenger travel trajectory detection device includes: a memory, a processor, and a passenger stored in the memory and running on the processor. A travel trajectory detection program, when the passenger travel trajectory detection program is executed by the processor, implements the steps of the above-mentioned passenger travel trajectory detection method.

此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有乘客出行轨迹检测程序,所述乘客出行轨迹检测程序被处理器执行时实现如上述的乘客出行轨迹检测方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a storage medium on which a passenger travel trajectory detection program is stored, and when the passenger travel trajectory detection program is executed by a processor, the above-mentioned passenger travel trajectory detection method is implemented A step of.

本发明中,通过获取公交车的到离站信息和乘客的公交车刷卡数据;根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点;根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。本发明将乘客的公交车刷卡数据与公交车的到离站信息进行匹配从而确定乘客的乘车站点,进而确定乘客出行轨迹的起点和终点,以获取准确的乘客出行轨迹。In the present invention, the arrival and departure information of the bus and the bus card swiping data of the passenger are obtained; the passenger's boarding station is determined according to the arrival and departure information and the bus card swiping data; according to the boarding station Acquire the starting point and ending point of the passenger's ride, and determine the travel trajectory of the passenger according to the starting point and the ending point of the ride. The invention matches the passenger's bus card swiping data with the bus's arrival and departure information to determine the passenger's boarding station, and then determines the starting point and the end point of the passenger's travel trajectory, so as to obtain an accurate passenger's travel trajectory.

附图说明Description of drawings

图1是本发明实施例方案涉及的硬件运行环境的乘客出行轨迹检测设备的结构示意图;1 is a schematic structural diagram of a passenger travel trajectory detection device in a hardware operating environment involved in an embodiment of the present invention;

图2为本发明乘客出行轨迹检测方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the passenger travel trajectory detection method according to the present invention;

图3为本发明乘客出行轨迹检测方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of the second embodiment of the passenger travel trajectory detection method according to the present invention;

图4为本发明乘客出行轨迹检测装置第一实施例的结构框图。FIG. 4 is a structural block diagram of a first embodiment of a passenger travel trajectory detection device according to the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

参照图1,图1为本发明实施例方案涉及的硬件运行环境的乘客出行轨迹检测设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a passenger travel trajectory detection device of a hardware operating environment involved in an embodiment of the present invention.

如图1所示,该乘客出行轨迹检测设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display),可选用户接口1003还可以包括标准的有线接口、无线接口,对于用户接口1003的有线接口在本发明中可为USB接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(WIreless-FIdelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的存储器(Non-volatileMemory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the passenger travel trajectory detection device may include: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or may be a stable memory (Non-volatile Memory, NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

本领域技术人员可以理解,图1中示出的结构并不构成对乘客出行轨迹检测设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the passenger travel trajectory detection device, and may include more or less components than the one shown, or combine some components, or arrange different components .

如图1所示,认定为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及乘客出行轨迹检测程序。As shown in FIG. 1 , the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a passenger travel trajectory detection program.

在图1所示的乘客出行轨迹检测设备中,网络接口1004主要用于连接后台服务器,与所述后台服务器进行数据通信;用户接口1003主要用于连接用户设备;所述乘客出行轨迹检测设备通过处理器1001调用存储器1005中存储的乘客出行轨迹检测程序,并执行本发明实施例提供的乘客出行轨迹检测方法。In the passenger travel trajectory detection device shown in FIG. 1 , the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect the user equipment; the passenger travel trajectory detection device passes the The processor 1001 calls the passenger travel trajectory detection program stored in the memory 1005, and executes the passenger travel trajectory detection method provided by the embodiment of the present invention.

基于上述硬件结构,提出本发明乘客出行轨迹检测方法的实施例。Based on the above hardware structure, an embodiment of the passenger travel trajectory detection method of the present invention is proposed.

参照图2,图2为本发明乘客出行轨迹检测方法第一实施例的流程示意图,提出本发明乘客出行轨迹检测方法第一实施例。Referring to FIG. 2 , FIG. 2 is a schematic flowchart of the first embodiment of the method for detecting the travel trajectory of a passenger according to the present invention, and the first embodiment of the method for detecting the travel trajectory of the passenger according to the present invention is proposed.

在第一实施例中,所述乘客出行轨迹检测方法包括以下步骤:In the first embodiment, the passenger travel trajectory detection method includes the following steps:

步骤S10:获取公交车的到离站信息和乘客的公交车刷卡数据。Step S10: Acquire the arrival and departure information of the bus and the bus card swiping data of the passengers.

可以理解的是,本实施例的执行主体是所述乘客出行轨迹检测设备,所述乘客出行轨迹检测设备可以是PC终端或者服务器,本实施例对此不作限制。It can be understood that the execution subject of this embodiment is the passenger travel trajectory detection device, and the passenger travel trajectory detection device may be a PC terminal or a server, which is not limited in this embodiment.

需要说明的是,公交车的到离站信息可以包括公交车的班次、公交车运行路线上的站点信息以及公交车到达站点的时间和离开站点的时间等信息。公交车刷卡数据可以包括刷卡时间、刷卡机编号及卡号等信息。It should be noted that the arrival and departure information of the bus may include information such as the frequency of the bus, the station information on the bus running route, the time when the bus arrives at the station, and the time when the bus leaves the station. The bus card swiping data may include card swiping time, card swiping machine number and card number and other information.

步骤S20:根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点。Step S20: Determine the boarding station of the passenger according to the arrival and departure information and the bus card swiping data.

可以理解的是,通过公交车刷卡数据与到离站信息之间的匹配,能够确定乘客的乘车站点。乘车站点是指用户刷卡的站点,一般地,乘客会在上车时刷卡。It can be understood that, through the matching between the bus card swiping data and the arrival and departure information, the passenger's boarding station can be determined. The bus stop refers to a site where the user swipes the card. Generally, the passenger will swipe the card when getting on the bus.

在具体实现时,所述根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点的步骤,具体包括:根据所述公交车刷卡数据确定所述乘客的刷卡时间和刷卡车辆;根据所述到离站信息确定所述刷卡车辆在各站点的到离站时间段;判断所述各站点的到离站时间段中是否存在包含所述刷卡时间的目标到离站时间段;若是,则判定所述目标到离站时间段对应的站点为所述乘客的乘车站点。In a specific implementation, the step of determining the passenger's boarding station according to the arrival and departure information and the bus card swiping data specifically includes: determining the passenger's card swiping time and time according to the bus card swiping data. Card-swiping vehicle; determine the arrival-departure time period of the card-swiping vehicle at each station according to the arrival and departure information; determine whether there is a target arrival-departure time including the card-swiping time in the arrival and departure time period of each station segment; if yes, then determine that the station corresponding to the time period from the target to the departure station is the boarding station of the passenger.

需要说明的是,公交车刷卡数据中包含了乘客所有的刷卡记录,每一条刷卡记录中都有相应的刷卡时间和刷卡机编号,而每各刷卡机编号与唯一的一辆车公交对应,因此可以通过刷卡机编号来确定乘客所乘的公交车。It should be noted that the bus card swiping data includes all the card swiping records of passengers. Each card swiping record has the corresponding card swiping time and card swiping machine number, and each card swiping machine number corresponds to a unique bus. Therefore, The bus a passenger is on can be identified by the card number of the swipe machine.

需要说明的是,在确定乘客所乘的公交车后,根据到离站信息提取该公交车的运行信息,确定该公交车到达各站点及离开各站点的时间,进而根据乘客的刷卡数据确定上次站点。It should be noted that after determining the bus that the passenger takes, the operation information of the bus is extracted according to the arrival and departure information, and the time when the bus arrives at each station and leaves each station is determined, and then the bus is determined according to the passenger's card swiping data. secondary site.

具体实现时,可假设公交车到达第一站点的时间为t1,离开第一站点的时间为t2,到达第二站点的时间为t3,离开第二站的时间为t4,乘客刷卡时间为t。若t处于t1-t2之间,则可以确定乘客的上车站点为第一站点;若t处于t3-t4之间,则可以确定乘客的上车站点为第二站点。In specific implementation, it can be assumed that the time for the bus to arrive at the first station is t1, the time for leaving the first station is t2, the time for arriving at the second station is t3, the time for leaving the second station is t4, and the time for passengers to swipe the card is t. If t is between t1-t2, it can be determined that the passenger's boarding station is the first station; if t is between t3-t4, it can be determined that the passenger's boarding station is the second station.

为进一步准备判断乘客的上车站点,本实施例中,所述判断所述各站点的到离站时间段中是否存在包含所述刷卡时间的目标到离站时间段的步骤之后,还包括:若否,则根据第一预设值对所述刷卡时间进行修正,获得修正后的刷卡时间;判断所述各站点的到离站时间段中是否存在包含修正后的所述刷卡时间的目标到离站时间段;若是,则判定所述目标到离站时间段对应的站点为所述乘客的乘车站点。In order to further prepare for judging the passenger's boarding station, in this embodiment, after the step of judging whether there is a target-to-departure time period including the card swiping time in the arrival and departure time periods of the stations, the step further includes: If not, correct the card swiping time according to the first preset value to obtain the corrected card swiping time; determine whether there is a target arrival including the corrected card swiping time in the arrival and departure time periods of the stations. Departure time period; if yes, determine that the station corresponding to the target to the departure time period is the passenger's boarding station.

可以理解的是,乘客上车时有可能会忘记刷卡,会在车辆离开站台补刷,如刷卡时间t处于t2-t3之间。为了准确判断这部分乘客的上车站点,需要对刷卡时间t进行修正,例如,设置第一预设值为60s,考虑刷卡时间t-60s后是否处于处于t1-t2之间,若是则可以确定乘客的上车站点为第一站点。It is understandable that passengers may forget to swipe their cards when they get on the bus, and will re-swipe their cards when the vehicle leaves the platform. For example, the swiping time t is between t2 and t3. In order to accurately determine the boarding station of these passengers, it is necessary to correct the card swipe time t. For example, set the first preset value to 60s, and consider whether the card swipe time is between t1 and t2 after t-60s. If so, it can be determined. The passenger's boarding station is the first station.

步骤S30:根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。Step S30: Acquire the starting point and destination of the passenger according to the bus stop, and determine the travel trajectory of the passenger according to the starting point and the destination.

需要说明的是,根据刷卡时间只能确定乘客的上车站点,因此,需要根据人们的出行习惯确定乘客的乘车起点和乘车终点。大多数情况下,乘客会从地点A乘车前往地点B,此时乘车站点为A;一段时间后,乘客会从地点B乘车回到地点A,此时乘车站点为B,由此,可以将站点A作为乘车起点,站点B作为乘车终点,由此获得乘客的出行轨迹。It should be noted that only the passenger's boarding station can be determined according to the card swiping time. Therefore, it is necessary to determine the passenger's starting point and destination according to people's travel habits. In most cases, passengers will take the bus from point A to point B, at this time the bus stop is A; after a period of time, the passenger will take the bus from point B back to point A, at this time the bus stop is B, thus , the station A can be used as the starting point of the ride, and the station B can be used as the end point of the ride, so that the travel trajectory of the passenger can be obtained.

在第一实施例中,通过获取公交车的到离站信息和乘客的公交车刷卡数据;根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点;根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。本实施例将乘客的公交车刷卡数据与公交车的到离站信息进行匹配从而确定乘客的乘车站点,进而确定乘客出行轨迹的起点和终点,以获取准确的乘客出行轨迹。In the first embodiment, the arrival and departure information of the bus and the bus card swiping data of the passenger are obtained; the boarding station of the passenger is determined according to the arrival and departure information and the bus card swiping data; according to the The ride station acquires the ride start point and ride end point of the passenger, and determines the travel trajectory of the passenger according to the ride start point and the ride end point. In this embodiment, the passenger's bus card swiping data is matched with the bus's arrival and departure information to determine the passenger's boarding station, and then determine the start and end points of the passenger's travel trajectory to obtain an accurate passenger travel trajectory.

参照图3,图3为本发明乘客出行轨迹检测方法第二实施例的流程示意图,基于上述图2所示的第一实施例,提出本发明乘客出行轨迹检测方法的第二实施例。Referring to FIG. 3 , FIG. 3 is a schematic flowchart of the second embodiment of the passenger travel trajectory detection method of the present invention. Based on the first embodiment shown in FIG. 2 above, a second embodiment of the passenger travel trajectory detection method of the present invention is proposed.

在第二实施例中,所述步骤S30,具体包括:In the second embodiment, the step S30 specifically includes:

S301:获取公交车的线路信息。S301: Obtain the route information of the bus.

需要说明的是,公交车的线路信息包括公交车运行路线涉及的站点,站点之间的距离等信息。根据公交车运行路线涉及的站点还可以确定各站点所涉及的公交车路线。It should be noted that the route information of the bus includes information such as the stations involved in the running route of the bus, the distance between the stations, and the like. The bus routes involved in each station can also be determined according to the stations involved in the bus running route.

S302:判断所述乘车站点的数量是否大于预设阈值。S302: Determine whether the number of the bus stops is greater than a preset threshold.

需要说明的是,在考虑乘客的出行轨迹,本实施例是以一天时间为单位,根据一天内的刷卡数据确定乘客的出行轨迹。而在一天内,乘客的出行方式多种多样,还有可能乘客只刷了一次卡,因此根据乘客的乘车站点数量确定乘客的乘车习惯。在本实施例中,可设置预设阈值为1。It should be noted that, considering the travel trajectories of passengers, in this embodiment, a day is used as a unit, and the travel trajectories of passengers are determined according to the card swiping data in one day. In a day, passengers travel in various ways, and it is possible that passengers only swipe the card once, so the passenger's riding habits are determined according to the number of passengers' bus stops. In this embodiment, the preset threshold value can be set to 1.

S303:若是,则选取所述乘车站点中刷卡时间相邻的两个站点。S303: If yes, select two stations in the bus station whose card swiping time is adjacent.

可以理解的是,若乘客乘车站点大于1,也就满足确定乘车起点和乘车终点的基本要求,通过分析站点之间的关系确定乘车起点和乘车终点。It can be understood that if the passenger boarding station is greater than 1, the basic requirements for determining the starting point and the ending point of the bus are met, and the starting point and the ending point of the bus are determined by analyzing the relationship between the stations.

需要说明的是,若乘客乘车站点只有一个,也就无法满足确定乘车起点和乘车终点的基本要求,此时只能确定乘客的上车站点及乘车起点,而无法获的乘车终点。因此,本实施例采用预设泊松分布模型来预测乘客的下次站点。It should be noted that if there is only one passenger boarding station, the basic requirements for determining the starting point and the ending point of the bus cannot be met. end. Therefore, in this embodiment, a preset Poisson distribution model is used to predict the passenger's next stop.

在具体实现中,若乘客乘车站点不大于预设阈值,则获取所述乘车站点所在线路的平均乘坐站点数;根据所述平均乘坐站点数,通过预设泊松分布模型获取下车站点;将所述乘车站点作为乘车起点,所述下车站点作为乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。In a specific implementation, if the passenger's boarding station is not greater than a preset threshold, the average number of boarding stations on the line where the boarding station is located is obtained; according to the average number of boarding stations, the get-off station is obtained through a preset Poisson distribution model ; Take the ride station as the ride start point, the alight station as the ride end point, and determine the travel track of the passenger according to the ride start point and the ride end point.

需要说明的是,泊松分布模型所采用的公式如下:It should be noted that the formula used by the Poisson distribution model is as follows:

Figure BDA0002577496320000081
Figure BDA0002577496320000081

其中,λ为该乘车站点所在路线的乘客的平均乘坐站点数,可以通过这条线路上已知的出行轨迹来求出一个平均值;k是乘客所乘坐站点数。若一条线路站点数是e,有个乘客在第i个站点上车,首先根据出行轨迹在线路运行方向上分别找出后续的站点,然后根据所乘站点数找出每个站点下车概率,从而找到下车概率最大的站点作为下车站点,即该乘客本次乘车的乘车终点。Among them, λ is the average number of passenger stops on the route where the bus stop is located, and an average value can be obtained from the known travel trajectories on this route; k is the number of stops taken by passengers. If the number of stations on a line is e, and a passenger gets on the bus at the i-th station, firstly find the subsequent stations in the direction of the line according to the travel trajectory, and then find the probability of getting off at each station according to the number of stations taken, Thus, the station with the highest probability of getting off the bus is found as the getting-off station, that is, the end point of the passenger's current ride.

S304:根据所述线路信息判断所述两个站点是否为直达站点。S304: Determine whether the two stations are direct stations according to the line information.

需要说明的是,按照乘客的出行模式,乘客只会在同一车辆上下车,因此,上车站点和下车站点之间应是可以直达。It should be noted that, according to the travel mode of passengers, passengers will only get on and off in the same vehicle, so there should be direct access between the pick-up site and the drop-off site.

在具体实现时,所述根据所述线路信息判断所述两个站点是否为直达站点的步骤,具体可包括:根据所述线路信息判断所述两个站点是否处于同一公交线路上;若是,则判定所述两个站点为直达站点;若否,则判定所述两个站点不为直达站点。During specific implementation, the step of judging whether the two stations are direct stations according to the line information may specifically include: judging whether the two stations are on the same bus line according to the line information; if so, then It is determined that the two stations are direct stations; if not, it is determined that the two stations are not direct stations.

可以理解的是,在确定了上车站点和下车站点后,根据获取的线路信号可以直接确定上述两个站点是否位于同一条单线上,若是则判定可直达。此外,由于一般公交线路包括上下两条单线,而上车站点和下车站点分别处于两条单线上,此时,可将上车站点在下车站点所在单线上进行映射,若映射后的下车站点的属于上车站点运行方向的后续站点,则判定可直达。此外,由于乘客可能下车后会进行换乘,因此根据刷卡记录确定的下车站点可能与上车站点不在同一线路上,为了完整记录乘客的出行,需要将这种情况考虑。因此,本实施例在上车站点与下车站点不在同一线路上时,对下车地点按照预设距离值进行修正,由于换乘站点之间的距离不会很远,因此若下车地点附近存在于上车站点处于同一线路的站点,则可认为上车站点和下车站点可直达。It can be understood that, after the boarding station and the alighting station are determined, it can be directly determined whether the above two stations are located on the same single line according to the obtained line signal, and if so, it is determined that they can be directly reached. In addition, since the general bus line includes two single lines up and down, and the boarding station and the alighting station are on two single lines respectively, at this time, the boarding station can be mapped on the single line where the alighting station is located. Subsequent stations of the station that belong to the running direction of the boarding station are determined to be direct. In addition, since passengers may transfer after getting off the bus, the alighting station determined according to the card swiping record may not be on the same line as the boarding station. In order to completely record the travel of passengers, this situation needs to be considered. Therefore, in this embodiment, when the boarding site and the alighting site are not on the same line, the alighting site is corrected according to the preset distance value. If there is a station where the boarding station is on the same line, it can be considered that the boarding station and the alighting station can be directly reached.

S305:若是,则将所述两个站点中刷卡时间在前的站点作为乘车起点,并将刷卡时间在后的站点作为乘车终点。S305: If yes, take the station with the earlier card swiping time as the starting point of the ride among the two stations, and take the station with the later card swiping time as the ride end point.

可以理解的是,若所述两个站点是否为直达站点,则说明乘客在所述两个站点之间存在一次出现,显然,刷卡时间在前的站点为乘车起点,刷卡时间在后的站点为乘车终点。It can be understood that if the two stations are direct stations, it means that there is a passenger appearing between the two stations. Obviously, the station with the first card swiping time is the starting point of the bus, and the station with the later card swiping time is the starting point. for the end of the ride.

S306:根据所述乘车起点和所述乘车终点获取所述乘客的出行路径。S306: Acquire the travel route of the passenger according to the starting point of the ride and the end point of the ride.

可以理解的是,通过起点和终点可以确定出以条线段,因此,在两个站点所对应的公交线路上,以乘车起点作为一个端点以乘车终点作为另一端点,可以获得一段公交车的运行路线,并将该运行路线作为乘客的出行路径。It can be understood that a line segment can be determined by the starting point and the ending point. Therefore, on the bus lines corresponding to the two stations, with the starting point of the bus as one end point and the end point of the bus as the other end point, a bus segment can be obtained. , and use the running route as the travel route of the passenger.

需要说明的是,乘客的出行轨迹应当能够反映乘客的完整的出行目的,由于乘客一天之间可能不止于两条刷卡记录,因此需要确定乘客的每条刷卡记录之间的关系。当两个站点之间可直达时,说明两个站点可能属于乘客同一出行目的内,可以确定为一条出行路径。It should be noted that a passenger's travel trajectory should be able to reflect the passenger's complete travel purpose. Since a passenger may have more than two card swiping records in one day, it is necessary to determine the relationship between each passenger's card swiping records. When two stations can be directly connected, it means that the two stations may belong to the same travel purpose of passengers, and can be determined as a travel route.

为进一步判断两个站点是否属于乘客同一出行目的内,本实施例在获取出行路径之后,还包括:根据所述到离站信息确定从所述乘车起点到所述乘车终点所需的理论时间;计算所述乘车起点对应的刷卡时间与所述乘车终点对应的刷卡时间之间的第一差值;判断所述第一差值与所述理论时间之间的第二差值是否小于第二预设值;若否,则判定所述出行路径为真实出行路径。In order to further judge whether the two stations belong to the same travel purpose of passengers, after obtaining the travel route, the present embodiment further includes: determining the theory required from the starting point of the ride to the end point of the ride according to the arrival and departure information. time; calculate the first difference between the card swiping time corresponding to the starting point of the ride and the card swiping time corresponding to the ride end point; determine whether the second difference between the first difference and the theoretical time is is less than the second preset value; if not, it is determined that the travel path is a real travel path.

需要说明的是,理论时间是指假设乘客实际乘车时所需要的时间,例如从站点A到站点B需要10分钟。乘车起点对应的刷卡时间与所述乘车终点对应的刷卡时间之间的第一差值是根据刷卡时间确定的,当第一差值为12分钟时,相差2分钟,而下车站点实际是根据乘客上车刷卡确定的,在此时,说明乘客没有完成出行目的,为此出行路径为换乘的一部分。若第一差值为1小时,说明乘客以及完成了出行目的,判定所述出行路径为真实出行路径。It should be noted that the theoretical time refers to the time required by the assumption that passengers actually take the bus, for example, it takes 10 minutes to travel from station A to station B. The first difference between the card swiping time corresponding to the starting point of the ride and the card swiping time corresponding to the ride end point is determined according to the card swiping time. When the first difference is 12 minutes, the difference is 2 minutes. It is determined based on the passenger swiping the card on the bus. At this time, it means that the passenger has not completed the travel purpose, and the travel route is part of the transfer. If the first difference is 1 hour, it means that the passenger has completed the travel purpose, and it is determined that the travel route is a real travel route.

S307:在所述乘车站点中所有站点均被选取时,根据获取的所有出行路径确定所述乘客的出行轨迹。S307: When all the stations in the boarding station are selected, determine the travel trajectory of the passenger according to all the obtained travel routes.

可以理解的是,在确定了乘客的出行路径后,进一步需要确定乘客的出行轨迹。若乘客的出行路径只有一条,则判断该出行路径即为乘客的出行轨迹。而在乘客存在多条出行路径时,将所有的出行路径作为乘客的出行轨迹。It can be understood that, after the travel path of the passenger is determined, the travel trajectory of the passenger needs to be further determined. If there is only one travel path of the passenger, it is determined that the travel path is the travel trajectory of the passenger. When there are multiple travel paths for passengers, all travel paths are used as travel trajectories of passengers.

需要说明的是,在判断出乘客的出行路径中存在换乘时,需要将换乘的出行路径进行合并。如上述站点A与站点B之间的第一差值为12分钟,而理论时间为10分钟,说明乘客在站点B进行换乘。此时获取以站点B为上车站点的出行路径,如从站点B到站点C。将上述两条路径进行合并,获得一条完整的出行路径从A到C。It should be noted that when it is determined that there is a transfer in the travel route of the passenger, the travel routes of the transfer need to be combined. For example, the first difference between the above-mentioned station A and the station B is 12 minutes, and the theoretical time is 10 minutes, indicating that the passenger transfers at the station B. At this time, the travel route with station B as the boarding station is obtained, such as from station B to station C. Combine the above two paths to get a complete travel path from A to C.

在第二实施例中,根据乘客的出行模式对乘客的乘车站点进行分析,确定乘客的出行路径,并根据乘客的出行路径确定出行轨迹,能够准确的获取乘客出行轨迹为公交管理者进行线路优化提供参考依据,更好的服务于城市公交系统。In the second embodiment, the passenger's boarding station is analyzed according to the passenger's travel mode, the passenger's travel path is determined, and the travel trajectory is determined according to the passenger's travel path, so that the passenger's travel trajectory can be accurately obtained. The optimization provides a reference basis to better serve the urban public transport system.

此外,本发明实施例还提出一种存储介质,所述存储介质上存储有乘客出行轨迹检测程序,所述乘客出行轨迹检测程序被处理器执行时实现如上文所述的乘客出行轨迹检测方法的步骤。In addition, an embodiment of the present invention also provides a storage medium, where a passenger travel trajectory detection program is stored on the storage medium, and when the passenger travel trajectory detection program is executed by a processor, the above-described method for detecting a passenger travel trajectory is implemented. step.

此外,参照图4,本发明实施例还提出一种乘客出行轨迹检测装置,所述乘客出行轨迹检测装置包括:In addition, referring to FIG. 4 , an embodiment of the present invention further provides a passenger travel trajectory detection device, where the passenger travel trajectory detection device includes:

数据采集模块10,用于获取公交车的到离站信息和乘客的公交车刷卡数据;The data collection module 10 is used to obtain the arrival and departure information of the bus and the bus card swiping data of the passengers;

站点确认模块20,用于根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点;a station confirmation module 20, configured to determine the passenger's boarding station according to the arrival and departure information and the bus card swiping data;

轨迹确认模块30,用于根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。The trajectory confirmation module 30 is configured to acquire the starting point and the ending point of the passenger's boarding according to the boarding station, and determine the travel trajectory of the passenger according to the starting point and the ending point of the boarding.

在本实施例中,通过获取公交车的到离站信息和乘客的公交车刷卡数据;根据所述到离站信息和所述公交车刷卡数据确定所述乘客的乘车站点;根据所述乘车站点获取所述乘客的乘车起点和乘车终点,并根据所述乘车起点和所述乘车终点确定所述乘客的出行轨迹。本实施例将乘客的公交车刷卡数据与公交车的到离站信息进行匹配从而确定乘客的乘车站点,进而确定乘客出行轨迹的起点和终点,以获取准确的乘客出行轨迹。In this embodiment, the arrival and departure information of the bus and the bus card swiping data of the passenger are obtained; the boarding station of the passenger is determined according to the arrival and departure information and the bus card swiping data; The bus station acquires the starting point and the ending point of the passenger's ride, and determines the travel trajectory of the passenger according to the starting point and the ending point of the ride. In this embodiment, the passenger's bus card swiping data is matched with the bus's arrival and departure information to determine the passenger's boarding station, and then determine the start and end points of the passenger's travel trajectory to obtain an accurate passenger travel trajectory.

本发明所述乘客出行轨迹检测装置的其他实施例或具体实现方式可参照上述各方法实施例,此处不再赘述。For other embodiments or specific implementations of the device for detecting a passenger's travel trajectory according to the present invention, reference may be made to the foregoing method embodiments, which will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。词语第一、第二、以及第三等的使用不表示任何顺序,可将这些词语解释为名称。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order and may be interpreted as names.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器镜像(Read Only Memory image,ROM)/随机存取存储器(Random AccessMemory,RAM)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention essentially or the parts that contribute to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as a read-only memory image). Memory image, ROM)/random access memory (Random Access Memory, RAM, disk, CD), including several instructions to make a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc. ) to execute the methods described in the various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.

Claims (10)

1. A passenger travel track detection method is characterized by comprising the following steps:
acquiring arrival and departure information of a bus and bus card swiping data of passengers;
determining a bus station of the passenger according to the arrival and departure information and the bus card swiping data;
and acquiring a taking starting point and a taking terminal of the passenger according to the taking station, and determining a travel track of the passenger according to the taking starting point and the taking terminal.
2. The passenger travel track detection method according to claim 1, wherein the step of determining the passenger taking station according to the arrival and departure information and the bus card swiping data specifically comprises:
determining the card swiping time of the passenger and the card swiping vehicle according to the bus card swiping data;
determining the arrival and departure time periods of the card swiping vehicle at each station according to the arrival and departure information;
Judging whether a target arrival and departure time period containing the card swiping time exists in the arrival and departure time periods of the stations;
and if so, determining that the station corresponding to the target arrival and departure time period is the passenger riding station.
3. The passenger travel trajectory detection method according to claim 2, wherein after the step of determining whether the destination arrival/departure time period including the card swiping time exists in the arrival/departure time periods of the stations, the method further comprises:
if not, correcting the card swiping time according to a first preset value to obtain the corrected card swiping time;
judging whether a target arrival and departure time period containing the corrected card swiping time exists in the arrival and departure time periods of the stations;
and if so, determining that the station corresponding to the target arrival and departure time period is the passenger riding station.
4. The passenger travel track detection method according to claim 1, wherein the step of obtaining a riding start point and a riding end point of the passenger according to the riding station, and determining the travel track of the passenger according to the riding start point and the riding end point specifically comprises:
acquiring the line information of a bus;
Judging whether the number of the bus taking stations is larger than a preset threshold value or not;
if so, selecting two stations adjacent to the card swiping time in the bus taking stations;
judging whether the two stations are direct stations or not according to the line information;
if so, taking the station with the card swiping time in front of the two stations as a riding starting point, and taking the station with the card swiping time behind as a riding terminal;
acquiring a travel path of the passenger according to the riding starting point and the riding terminal;
and when all the stations in the riding stations are selected, determining the travel track of the passenger according to all the acquired travel paths.
5. The passenger travel trajectory detection method according to claim 4, wherein after the step of determining whether the number of riding stations is greater than a preset threshold, the method further comprises:
if not, acquiring the average number of riding stations of the line where the riding stations are located;
acquiring a get-off station through a preset poisson distribution model according to the average number of the taking stations;
and taking the riding station as a riding starting point and the getting-off station as a riding terminal, and determining the travel track of the passenger according to the riding starting point and the riding terminal.
6. The passenger travel trajectory detection method according to claim 4, wherein after the step of obtaining the travel path of the passenger according to the travel starting point and the travel ending point, the method further comprises:
determining theoretical time required from the riding starting point to the riding terminal according to the arrival and departure information;
calculating a first difference value between the card swiping time corresponding to the riding starting point and the card swiping time corresponding to the riding terminal;
judging whether a second difference between the first difference and the theoretical time is smaller than a second preset value or not;
if not, judging that the travel path is a real travel path;
correspondingly, when all stations in the riding stations are selected, the step of determining the travel track of the passenger according to the obtained travel tracks of all travel paths specifically comprises the following steps:
and when all the stations in the riding stations are selected, determining the travel track of the passenger according to the obtained travel tracks of all the travel paths.
7. The passenger travel trajectory detection method according to claim 4, wherein the step of determining whether the two stations are express stations according to the route information specifically comprises:
Judging whether the two stations are on the same bus line according to the line information;
if yes, judging the two stations as direct stations;
if not, the two sites are judged not to be direct sites.
8. A passenger travel trajectory detection device, characterized in that the passenger travel trajectory detection device includes:
the data acquisition module is used for acquiring the arrival and departure information of the bus and the bus card swiping data of passengers;
the station confirming module is used for determining a bus station of the passenger according to the arrival and departure information and the bus card swiping data;
and the track confirmation module is used for acquiring the riding starting point and the riding terminal of the passenger according to the riding station and determining the travel track of the passenger according to the riding starting point and the riding terminal.
9. A passenger travel locus detecting apparatus, characterized in that the passenger travel locus detecting apparatus comprises: a memory, a processor and a passenger travel trajectory detection program stored on the memory and executable on the processor, the passenger travel trajectory detection program when executed by the processor implementing the steps of the passenger travel trajectory detection method according to any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a passenger travel trajectory detection program, which when executed by a processor, implements the steps of the passenger travel trajectory detection method according to any one of claims 1 to 7.
CN202010660878.3A 2020-07-09 2020-07-09 Passenger travel trajectory detection method, device, device and storage medium Pending CN111858806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010660878.3A CN111858806A (en) 2020-07-09 2020-07-09 Passenger travel trajectory detection method, device, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010660878.3A CN111858806A (en) 2020-07-09 2020-07-09 Passenger travel trajectory detection method, device, device and storage medium

Publications (1)

Publication Number Publication Date
CN111858806A true CN111858806A (en) 2020-10-30

Family

ID=73153581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010660878.3A Pending CN111858806A (en) 2020-07-09 2020-07-09 Passenger travel trajectory detection method, device, device and storage medium

Country Status (1)

Country Link
CN (1) CN111858806A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597188A (en) * 2020-12-28 2021-04-02 广州羊城通有限公司 Passenger tracing method and device based on riding record
CN113207098A (en) * 2021-04-30 2021-08-03 Oppo广东移动通信有限公司 Site information determination method and device, mobile terminal and storage medium
CN113223319A (en) * 2021-03-25 2021-08-06 上海闻泰信息技术有限公司 Method and device for reminding rail transit of arriving at station and electronic equipment
CN114038225A (en) * 2021-11-08 2022-02-11 深圳市雪球科技有限公司 Bus route data processing method and device and electronic equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198104A (en) * 2013-03-25 2013-07-10 东南大学 Bus station origin-destination (OD) obtaining method based on urban advanced public transportation system
CN105320997A (en) * 2015-09-22 2016-02-10 上海川昱信息科技有限公司 Public transit passenger flow trajectory real-time tracking method based on big data
CN105788260A (en) * 2016-04-13 2016-07-20 西南交通大学 Public transportation passenger OD calculation method based on intelligent public transportation system data
CN106408058A (en) * 2016-11-22 2017-02-15 深圳大学 Rail transit network passenger flow tracking system
CN106529815A (en) * 2016-11-15 2017-03-22 同济大学 Estimation method of passenger trip spatial-temporal trajectory of urban rail transit network and application thereof
CN106777703A (en) * 2016-12-19 2017-05-31 杭州讯阳科技有限公司 A kind of bus passenger real-time analyzer and its construction method
CN106874432A (en) * 2017-01-24 2017-06-20 华南理工大学 A kind of public transport passenger trip space-time track extraction method
CN106897955A (en) * 2017-01-24 2017-06-27 华南理工大学 A kind of Public Transport Transfer recognition methods based on public transport OD data
CN108960684A (en) * 2018-08-17 2018-12-07 华南理工大学 A Closed Travel Chain Mining Method for Bus Passengers Based on Incomplete Trajectory Segments
CN109584555A (en) * 2018-12-13 2019-04-05 昆山市公共交通集团有限公司 Bus passenger get-off stop estimation method based on AFC data
CN110188923A (en) * 2019-05-06 2019-08-30 西南交通大学 A kind of multi-mode bus passenger flow projectional technique based on big data technology
CN110853156A (en) * 2019-11-18 2020-02-28 西南交通大学 Passenger OD identification method integrating bus GPS track and IC card data
CN111079875A (en) * 2019-12-17 2020-04-28 广州交通信息化建设投资营运有限公司 Public transport passenger flow monitoring method and device based on multi-source data and storage medium
CN111339159A (en) * 2020-02-24 2020-06-26 交通运输部科学研究院 Analysis and mining method for one-ticket public transportation data

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198104A (en) * 2013-03-25 2013-07-10 东南大学 Bus station origin-destination (OD) obtaining method based on urban advanced public transportation system
CN105320997A (en) * 2015-09-22 2016-02-10 上海川昱信息科技有限公司 Public transit passenger flow trajectory real-time tracking method based on big data
CN105788260A (en) * 2016-04-13 2016-07-20 西南交通大学 Public transportation passenger OD calculation method based on intelligent public transportation system data
CN106529815A (en) * 2016-11-15 2017-03-22 同济大学 Estimation method of passenger trip spatial-temporal trajectory of urban rail transit network and application thereof
CN106408058A (en) * 2016-11-22 2017-02-15 深圳大学 Rail transit network passenger flow tracking system
CN106777703A (en) * 2016-12-19 2017-05-31 杭州讯阳科技有限公司 A kind of bus passenger real-time analyzer and its construction method
CN106874432A (en) * 2017-01-24 2017-06-20 华南理工大学 A kind of public transport passenger trip space-time track extraction method
CN106897955A (en) * 2017-01-24 2017-06-27 华南理工大学 A kind of Public Transport Transfer recognition methods based on public transport OD data
CN108960684A (en) * 2018-08-17 2018-12-07 华南理工大学 A Closed Travel Chain Mining Method for Bus Passengers Based on Incomplete Trajectory Segments
CN109584555A (en) * 2018-12-13 2019-04-05 昆山市公共交通集团有限公司 Bus passenger get-off stop estimation method based on AFC data
CN110188923A (en) * 2019-05-06 2019-08-30 西南交通大学 A kind of multi-mode bus passenger flow projectional technique based on big data technology
CN110853156A (en) * 2019-11-18 2020-02-28 西南交通大学 Passenger OD identification method integrating bus GPS track and IC card data
CN111079875A (en) * 2019-12-17 2020-04-28 广州交通信息化建设投资营运有限公司 Public transport passenger flow monitoring method and device based on multi-source data and storage medium
CN111339159A (en) * 2020-02-24 2020-06-26 交通运输部科学研究院 Analysis and mining method for one-ticket public transportation data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597188A (en) * 2020-12-28 2021-04-02 广州羊城通有限公司 Passenger tracing method and device based on riding record
CN113223319A (en) * 2021-03-25 2021-08-06 上海闻泰信息技术有限公司 Method and device for reminding rail transit of arriving at station and electronic equipment
CN113207098A (en) * 2021-04-30 2021-08-03 Oppo广东移动通信有限公司 Site information determination method and device, mobile terminal and storage medium
CN113207098B (en) * 2021-04-30 2022-09-16 Oppo广东移动通信有限公司 Site information determination method and device, mobile terminal and storage medium
CN114038225A (en) * 2021-11-08 2022-02-11 深圳市雪球科技有限公司 Bus route data processing method and device and electronic equipment
CN114038225B (en) * 2021-11-08 2023-03-14 深圳市雪球科技有限公司 Bus route data processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN111858806A (en) Passenger travel trajectory detection method, device, device and storage medium
CN104134343B (en) A kind of passenger getting on/off time based on transportation card data and the acquisition methods of position
CN104884900B (en) Travel time information provides equipment and travel time information provides method
JP7063172B2 (en) Information processing device, vehicle adjustment method and vehicle adjustment program
CN105303245B (en) Traffic analysis system and traffic analysis method
CN107886723A (en) A kind of traffic trip survey data processing method
KR102288490B1 (en) Vehicle rental method, system and program based on limit waiting time
CN106228848B (en) A kind of parking navigation method and apparatus
CN106897955A (en) A kind of Public Transport Transfer recognition methods based on public transport OD data
CN110633975A (en) Travel control system, method and device in public transport and traffic payment method
CN107909180B (en) Processing method, equipment and readable medium for public transport travel
CN113766428A (en) Urban public transport passenger travel trajectory estimation method, system, terminal and storage medium
CN111259103A (en) Method, device, storage medium and equipment for recognizing riding state
CN112288160A (en) Travel scheme planning method and related equipment
JP2012242997A (en) Transfer time calculation system and transfer time calculation method
CN110610284A (en) Information processing method and information processing device
JPWO2019244403A1 (en) Content delivery system, content delivery method, management server, computer program, and content distribution server
CN113160542A (en) Riding method and device based on information feedback
Dock et al. Methodology to gather multimodal urban trip generation data
JP6568419B2 (en) Transportation route reproduction device for transportation, boarding management device, and computer program
CN105451174B (en) A kind of method for pushing and server of navigation routine
US12086737B2 (en) Information providing system, information providing device, and computer readable recording medium
CN110657817A (en) Method and device for recommending travel route
CN113688308B (en) Information pushing method, device, storage medium and server
CN115310640A (en) Method, device, equipment and storage medium for determining degree of congestion of bus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030