Method and device for determining real-time running position of bus, electronic equipment and medium

By acquiring bus positioning data streams from multiple data sources, we establish a mapping relationship between positioning equipment and bus lines, which solves the problems of data instability and insufficient line coverage caused by a single data source, and achieves efficient and accurate real-time location of buses. Accurately determined.

CN118762547APending Publication Date: 2024-10-11BEIJING BAIDU MAPPING TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410804336.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing method for determining the real-time running position of buses relies on a single data source, which is prone to data source interruption, cannot guarantee data stability, and cannot fully cover the integrity of urban bus lines.

Method used

By obtaining data streams from at least two data sources in real time, based on the mapping relationship between positioning device identifiers and bus lines, the bus lines corresponding to the real-time running trajectories of each positioning device are determined, and the matching real-time running trajectories of each bus line are processed. to determine the real-time running location of the bus. This method includes predetermining the mapping relationship in an offline manner, and using technologies such as spatiotemporal aggregation and Viterbi algorithm to ensure the stability and coverage of the data source.

Benefits of technology

It improves the stability of the data source for determining the real-time running location of buses and the coverage of bus routes, ensuring the robustness and accuracy of real-time bus services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762547A_ABST
    Figure CN118762547A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for determining the real-time running position of a bus, electronic equipment and a medium, and relates to the computer technology and the intelligent traffic technology. According to the specific implementation scheme, data streams from at least two data sources are obtained in real time; determining a bus route corresponding to the real-time moving trajectory of each positioning device based on a mapping relationship between the positioning device identifier and the bus route; and processing the at least one real-time running track matched with each bus route so as to determine the real-time running position of at least one bus in the bus route. The stability of a data source can be ensured, and meanwhile the coverage rate of bus lines in a city is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to computer technology, specifically to intelligent transportation technology, and in particular to a method, device, electronic device and medium for determining the real-time running position of a bus. Background Art

[0002] Bus is one of the important public transportation in a city, and its real-time running trajectory plays an important role in the service and management of the urban bus system. Therefore, it is necessary to study a practical method to determine the real-time running position of the bus.

[0003] At present, the method of determining the real-time running position of buses is mainly to determine it through the bus positioning track points provided by a single data source. However, a single data source is prone to data source interruption and cannot guarantee the stability of the data. Secondly, a single data source cannot guarantee the integrity of a city's bus line construction. Summary of the invention

[0004] The present disclosure provides a method, device, electronic device and medium for determining the real-time running position of a bus, which ensures the stability of the data source and improves the coverage rate of the bus lines.

[0005] According to one aspect of the present disclosure, a method for determining a real-time running position of a bus is provided, the method comprising:

[0006] Acquire data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device;

[0007] Based on the mapping relationship between the positioning device identifier and the bus route, determine the bus route corresponding to the real-time running trajectory of each positioning device; wherein the mapping relationship is based on the historical data stream provided by the data source and is pre-determined in an offline manner;

[0008] At least one real-time running track matched by each bus line is processed to determine the real-time running position of at least one bus in the bus line.

[0009] Optionally, the process of determining the mapping relationship includes:

[0010] Extracting a real-time running track and a positioning device identifier of at least one bus-associated positioning device from each historical data stream of at least two data sources;

[0011] Perform spatiotemporal aggregation processing on the real-time running trajectory of each positioning device, and match the aggregation processing results with the bus routes;

[0012] The corresponding relationship between the positioning device and the bus line is determined according to the matching result, so as to establish a mapping relationship between the positioning device identifier and the corresponding bus line.

[0013] Optionally, each positioning device corresponds to one or more bus routes, and each bus route corresponds to one or more positioning devices.

[0014] Optionally, if there are multiple positioning devices corresponding to the bus line, after establishing a mapping relationship between the positioning device identifier and the corresponding bus line, the method further includes:

[0015] According to the data quality of the data sources to which the multiple positioning devices belong, the quality priority of the positioning devices is determined and recorded in the mapping relationship.

[0016] Optionally, the positioning device includes at least one of the following: global positioning system equipment, Beidou navigation system equipment, mobile communication positioning module, vehicle-mounted video surveillance equipment, odometer and speed sensor, and radio frequency identification equipment; the positioning device is configured in at least one of the following vehicle-mounted equipment: vehicle-mounted station announcement terminal, vehicle-mounted card swiping terminal, Internet of Vehicles terminal, and vehicle driving system.

[0017] Optionally, based on the mapping relationship between the positioning device identifier and the bus route, determining the bus route corresponding to the real-time running trajectory of each positioning device includes:

[0018] Extracting the positioning device identifier corresponding to each real-time running track from the data stream of each data source;

[0019] According to the positioning device identifiers, based on the mapping relationship between the positioning device identifiers and the bus routes, the bus routes corresponding to the positioning device identifiers are queried.

[0020] Optionally, processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes:

[0021] Acquire the real-time running track of the main positioning device from the real-time running track of at least one positioning device matched to each bus route; wherein the main positioning device is selected offline or online based on the data quality of the data source to which it belongs;

[0022] According to the real-time running track of the main positioning device, the real-time running position of the bus to which the main positioning device belongs in the bus route is determined.

[0023] Optionally, the method further includes:

[0024] If it is detected that the data stream of the main positioning device is missing data, or there is a deviation in the real-time running position of the bus determined based on the real-time running track of the main positioning device, then based on the mapping relationship between the positioning device identifier and the bus line, find the backup positioning device corresponding to the bus line;

[0025] Determine the real-time running position of the bus to which the backup positioning device belongs in the bus route according to the real-time running track of the backup positioning device found;

[0026] Optionally, the process of processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route further includes:

[0027] If the similarity between any real-time running track and the bus line does not meet the set conditions, then based on the positioning device identifier to which the real-time running track belongs, query the corresponding other bus lines based on the mapping relationship;

[0028] According to other bus routes matched by the queried positioning device identification, the real-time running track of the positioning device is bound to the other bus routes for processing.

[0029] Optionally, the method further includes:

[0030] Obtaining the auxiliary running track of the user positioning device and the corresponding bus route from the data streams of at least two data sources;

[0031] Optionally, the processing of at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes:

[0032] At least one real-time running track and auxiliary running track matched by each bus line are processed to determine the real-time running position of at least one bus in the bus line.

[0033] Optionally, processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes:

[0034] For at least one real-time running track matched by each bus line, running direction identification and real-time position estimation processing are performed to determine the real-time running position of at least one bus in the bus line.

[0035] Optionally, processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes:

[0036] The data stream of at least one real-time running trajectory matched by each bus line is distributed to a data processing service for processing to determine the real-time running position of at least one bus in the bus line; wherein there are multiple data processing services for processing the real-time running trajectories of different bus lines in parallel.

[0037] Optionally, processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes:

[0038] The Viterbi algorithm is used to process multiple real-time operation trajectories matched by each bus line to identify repeated real-time operation trajectories and perform deduplication processing.

[0039] According to another aspect of the present disclosure, a device for determining a real-time running position of a bus is provided, the device comprising:

[0040] A bus data stream acquisition module is used to acquire data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device;

[0041] A mapping relationship module, used to determine the bus route corresponding to the real-time running track of each positioning device based on the mapping relationship between the positioning device identifier and the bus route; wherein the mapping relationship is pre-determined in an offline manner based on the historical data stream provided by the data source;

[0042] The position determination module is used to process at least one real-time running track matched by each bus line to determine the real-time running position of at least one bus in the bus line.

[0043] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0044] at least one processor; and

[0045] a memory communicatively connected to the at least one processor; wherein,

[0046] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for determining the real-time operating position of a bus as described in any one of the embodiments of the present disclosure.

[0047] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute a method for determining a real-time operating position of a bus as described in any one of the embodiments of the present disclosure.

[0048] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements a method for determining a real-time operating position of a bus as described in any one of the embodiments of the present disclosure.

[0049] According to the technical solution disclosed in the present invention, the stability of the data source can be guaranteed, while the coverage rate of bus routes in the city is improved.

[0050] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0052] Figure 1 This is a process of a method for determining the real-time running position of a bus provided according to an embodiment of the present disclosure;

[0053] Figure 2A is a flowchart of a process for determining a mapping relationship provided according to an embodiment of the present disclosure;

[0054] Figure 2B is a schematic diagram of real-time trajectory points of a bus provided by a positioning device according to an embodiment of the present disclosure;

[0055] Figure 3 is a flow chart of another method for determining the real-time running position of a bus provided according to an embodiment of the present disclosure;

[0056] Figure 4 is a flow chart of another method for determining the real-time running position of a bus provided according to an embodiment of the present disclosure;

[0057] Figure 5 is a flow chart of another method for determining the real-time running position of a bus provided according to an embodiment of the present disclosure;

[0058] Figure 6 is a flowchart of a method for determining a real-time running position of a bus provided in an embodiment of the present disclosure;

[0059] Figure 7 It is a structural schematic diagram of a device for determining the real-time running position of a bus provided according to an embodiment of the present disclosure;

[0060] Figure 8 The block diagram is a block diagram of an electronic device used to implement the method for determining the real-time running position of a bus according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0061] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0062] Figure 1 This is a flow chart of a method for determining the real-time running position of a bus provided in an embodiment of the present disclosure. The embodiment of the present disclosure can be applied to the case of determining the real-time running position of a bus during the operation of the bus. It can be used to determine the real-time running position of at least one bus running in one or more bus routes. Preferably, the real-time running position of each bus in a large number of bus routes is obtained in units of provinces and cities, and then used to provide to bus services such as electronic maps and navigation.

[0063] The method of the embodiment of the present disclosure may be performed by a device for determining the real-time running position of a bus, which may be implemented in hardware and / or software and may be integrated into a computing device that carries the function of determining the real-time running position of the bus, such as a server of a bus operator. Figure 1 As shown, the method of this embodiment may include:

[0064] S110, acquiring data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device;

[0065] S120, based on the mapping relationship between the positioning device identifier and the bus route, determining the bus route corresponding to the real-time running trajectory of each positioning device; wherein the mapping relationship is based on the historical data stream provided by the data source and is pre-determined in an offline manner;

[0066] S130: Process at least one real-time running track matched by each bus line to determine the real-time running position of at least one bus in the bus line.

[0067] In this embodiment, the data source may refer to the data owner who provides the location information data of the real-time running track of the bus, and each data stream may include the real-time running track and positioning device identification of at least one bus-related positioning device. Optionally, the bus-related positioning device may refer to the positioning device set in the bus, and the real-time running track of the positioning device may include the positioning timestamp and the track point coordinates.

[0068] Optionally, the positioning device may include at least one of the following: a global positioning system (GPS) device, a Beidou navigation system device, a mobile communication (such as a GSM / GPRS module) positioning module, a vehicle-mounted video monitoring device, an odometer and a speed sensor, and a radio frequency identification device, etc. The positioning device may be configured in at least one of the following vehicle-mounted devices: a vehicle-mounted station announcement terminal, a vehicle-mounted card swiping terminal, a vehicle networking terminal, and a vehicle driving system, etc.

[0069] Usually, multiple positioning devices may be set up in a bus, all of which serve as bus-associated positioning devices. For example, a service provider that provides station announcement services will install an on-board station announcement terminal on the bus. The on-board station announcement terminal will be equipped with a positioning function module to report the vehicle's running trajectory to the station announcement service provider in real time, so that the station announcement server can obtain the real-time running trajectory of each station announcement terminal, that is, the corresponding real-time running trajectory of the bus. Other positioning devices with positioning functions are similar to this, and different service providers or vehicle manufacturers will also obtain the real-time running trajectory collected by the positioning device. Since the positioning devices installed on each bus are not exactly the same, the data stream of each data source will not completely cover all bus routes, and there are also situations where the data streams of multiple data sources correspond to the same bus route.

[0070] The real-time running trajectory of the data source may have recorded the corresponding bus line logo or bus logo, but there may be no clear correspondence. In order to process the data stream at high speed to determine the real-time running position of the bus, the mapping relationship between the positioning device of the real-time running trajectory and the bus line can be obtained in advance in an offline manner. Since the owner of each data source is usually the party that provides the positioning device, the positioning device logo and the trajectory point coordinates collected by the positioning device can be directly obtained as the real-time running trajectory, and the corresponding relationship between the positioning device logo and the real-time running trajectory is recorded in the data stream.

[0071] In an optional implementation of the disclosed embodiment, based on the mapping relationship between the positioning device identifier and the bus route, determining the bus route corresponding to the real-time operation trajectory of each positioning device includes: extracting the positioning device identifier corresponding to each real-time operation trajectory from the data stream of each data source; according to the positioning device identifier, based on the mapping relationship between the positioning device identifier and the bus route, querying the bus route corresponding to each positioning device identifier.

[0072] Through the mapping relationship between the positioning device identifier and the bus route determined in advance in an offline manner, the data stream to which at least one positioning device corresponding to each bus route belongs can be quickly determined by query, and then the real-time running track included in the data stream can be processed. This reduces the amount of real-time online task processing and improves the efficiency of determining the real-time running track of the bus.

[0073] Figure 2A This is a flow chart of a method for determining the real-time running position of a bus according to another embodiment of the present disclosure. Based on the above embodiment, this embodiment further explains the process of determining the mapping relationship between the positioning device identifier and the bus route. Figure 2A As shown, the process of determining the mapping relationship may include:

[0074] S210, extracting a real-time running track and a positioning device identifier of at least one bus-associated positioning device from each historical data stream of at least two data sources;

[0075] S220, performing spatiotemporal aggregation processing on the real-time running trajectory of each positioning device, and matching the aggregation processing result with the bus route;

[0076] S230: Determine the corresponding relationship between the positioning device and the bus line according to the matching result, thereby establishing a mapping relationship between the positioning device identifier and the corresponding bus line.

[0077] In this embodiment, each positioning device may correspond to one or more bus routes, and each bus route may correspond to one or more positioning devices. For example, in an actual scenario, a bus that is bound to a positioning device may be dispatched to run different bus routes, so each bus route may have one or more buses.

[0078] Specifically, the real-time operation tracks and corresponding positioning device identifiers of each bus-associated positioning device can be extracted from the historical data streams within the most recent set time period provided by at least two data sources. The most recent set time period is, for example, one week or one month. All the extracted real-time operation tracks of each positioning device are subjected to spatiotemporal aggregation processing, that is, the time dimension and space dimension are aggregated according to the timestamps and coordinates of each track point in the real-time operation track. The real-time operation track of the positioning device after spatiotemporal aggregation processing is matched with the existing bus line, and the corresponding relationship between the positioning device and the existing bus line is determined according to the matching result, so as to establish a mapping relationship between the positioning device identifier and the corresponding bus line. If there is no existing bus line, and the real-time operation track in the aggregation processing result meets the set new conditions, the line corresponding to this real-time operation track can be added as a new bus line. Set the new conditions, such as the real-time operation track in the aggregation processing result, corresponding to the bus operation time period, and the route is coherent and complete, so as to indicate that there is a high probability of a new bus line. The embodiment of the present disclosure does not limit the setting of the new conditions.

[0079] In an optional implementation, matching the aggregation processing result with the bus route may include: performing linear similarity matching processing on the aggregation processing result and the road network segment or trajectory point coordinate sequence to which the existing bus route belongs.

[0080] The process of establishing the mapping relationship may include an initialization process and a subsequent update process. After the mapping relationship between the existing bus routes and the bus-related positioning device identifiers has been established, the bus routes and the bus positioning devices may be added, reduced, or changed, so the historical data stream may be identified regularly to update the mapping relationship.

[0081] If a bus has multiple positioning devices, it is equivalent to having positioning devices with repeated running trajectories. During spatiotemporal aggregation, the timestamps of the real-time running trajectories of different positioning devices can be compared, and the real-time running trajectories with a time interval less than the set threshold can be regarded as repeated real-time running trajectories. Figure 2B As shown, the green and yellow buses are both real-time trajectory points of the buses provided by different positioning devices. Since the timestamps of the real-time trajectory points are close, they can be identified as having repeated real-time operation trajectories. Therefore, the quality priority of each positioning device with repeated real-time operation trajectories can be further determined. The quality priority determines which positioning device provides the real-time operation trajectory to be used first when determining the real-time operation position of the bus online. Specifically, in another optional implementation, if there are multiple positioning devices corresponding to a bus line, then after establishing a mapping relationship between the positioning device identifier and the corresponding bus line, it also includes: determining the quality priority of the positioning device based on the data quality of the data sources to which the multiple positioning devices belong, and recording it in the mapping relationship.

[0082] Optionally, the quality priority is used to distinguish the data quality of the data stream, and can be determined according to the data quality priority of the data source and / or the positioning device pre-set by a person skilled in the art. According to the quality priority of the positioning device determined, the positioning device with the highest quality priority can be used as the main positioning device, and the remaining positioning devices can be used as backup positioning devices in order of quality priority, and recorded in the mapping relationship. Data quality reflects the data quality of the data source or the data quality of the determined real-time running trajectory. The basis for determining the data quality may include at least one of the following: data packet reporting time interval, trajectory point online rate and trajectory point coverage rate; wherein the trajectory point online rate is: the number of matching trajectory points in the real-time running trajectory and the bus line trajectory, and the proportion of all trajectory points in the real-time running trajectory; the trajectory point coverage rate is: the number of matching trajectory points in the real-time running trajectory and the bus line trajectory, and the proportion of all trajectory points in the bus line trajectory. For example, the data packet reporting time interval refers to the average time interval for periodically providing trajectory point data packets in the data source. The bus line trajectory refers to the line trajectory point sequence corresponding to the bus line, which can be obtained in advance through other means and stored in the database for standby. For example, a bus route trajectory may include 1200 continuous trajectory points to describe the driving position of the bus along the bus route. The matching of the trajectory points in the real-time running trajectory and the trajectory points in the bus route means that the distance difference between the two trajectory points is less than the set threshold, and the two trajectory points are considered to be highly matched in position when they are close to a certain degree, that is, as the matching trajectory points in the real-time running trajectory. The online rate of trajectory points refers to the proportion of matching trajectory points in all trajectory points of the real-time running trajectory. For example, a real-time running trajectory has 1000 trajectory points, of which 800 trajectory points are matching trajectory points, then the online rate of trajectory points = 800 / 1000 = 80%. The coverage rate of trajectory points refers to the proportion of the number of matching trajectory points in all trajectory points of the bus route trajectory. As in the above example, the coverage rate of trajectory points = 800 / 1200 = 66.7%. The determination of data quality can be determined by overall identification for each data source, that is, the data quality of all real-time running trajectories of the data source can be determined uniformly, or the real-time running trajectory of each positioning device in the data source can be individually identified and determined.

[0083] The solution of this embodiment establishes the mapping relationship between the positioning device identifiers and the bus routes in multiple data sources in an offline manner, which can more comprehensively cover as many bus routes as possible.

[0084] For example, data source A provides the real-time operation track of the first type of positioning device on the buses of 7 routes in a city, and data source B provides the real-time operation track of the second type of positioning device on the buses of 9 routes in the city. Five of the routes are the same, and the other routes are not repeated. Then there are actually 11 routes in the historical data streams of data sources A and B, and the real-time operation tracks of 5 routes are repeated. For the real-time operation tracks provided by the bus-associated positioning devices on these 5 repeated routes, the quality priority can be determined, and the positioning device with the highest quality priority is used as the main positioning device, and the remaining positioning devices are sorted according to the quality priority and used as backup positioning devices in turn.

[0085] In the embodiment of the present disclosure, by recording the quality priority of the positioning device in the mapping relationship, it can be ensured that the positioning data of the positioning device with the highest quality priority is obtained first, avoiding the processing of a large number of repeated trajectories during online processing and occupying computing power. In addition, a master-slave redundancy mechanism is established through the quality priority of the positioning device, which can improve the stability of providing real-time location data services.

[0086] Figure 3 FIG. 1 is a flowchart of another method for determining the real-time running position of a bus according to an embodiment of the present disclosure. This embodiment is an optional solution proposed based on the above embodiment. Figure 3 As shown, the method for determining the real-time running position of a bus provided in this embodiment may include:

[0087] S310, acquiring data streams from at least two data sources in real time;

[0088] S320, based on the mapping relationship between the positioning device identifier and the bus route, determining the bus route corresponding to the real-time running trajectory of each positioning device;

[0089] S330, acquiring the real-time running track of the main positioning device from the real-time running track of at least one positioning device matched to each bus route;

[0090] S340: Determine the real-time running position of the bus to which the main positioning device belongs in the bus route according to the real-time running track of the main positioning device.

[0091] Among them, the main positioning device can be selected offline or online based on the data quality of the data source to which it belongs. In one embodiment, when the data scale of the data stream is greater than or equal to the preset scale threshold, that is, when the data scale of the data stream is large, the main positioning device can be selected offline based on the priority of the data quality of the data source to which it belongs. When the data scale of the data stream is less than the preset scale threshold, that is, when the data scale of the data stream is small, the main positioning device can be selected online based on the data quality of the data source. For example, the data quality of the data source and / or positioning device can be determined based on the data interval of the data indicated by the data stream and the matching degree of the positioning point in the real-time running trajectory in the data stream.

[0092] By determining the main positioning device based on the data size of the data stream, the determination efficiency of the main positioning device can be determined when the data volume is large, and the determination quality of the main positioning device can be ensured when the data volume is small.

[0093] Specifically, the real-time running trajectory of the main positioning device can be obtained from the real-time running trajectory of at least one positioning device matched on each bus route, and the real-time running position of the bus belonging to the main positioning device in the bus route can be determined based on the real-time running trajectory provided by the main positioning device.

[0094] In an optional implementation of the present embodiment, if it is monitored that there is missing data in the data stream of the main positioning device, or there is a deviation in the real-time operating position of the bus determined based on the real-time operating trajectory of the main positioning device, then based on the mapping relationship between the positioning device identifier and the bus line, the backup positioning device corresponding to the bus line is searched; based on the real-time operating trajectory of the backup positioning device found, the real-time operating position of the bus to which the backup positioning device belongs in the bus line is determined.

[0095] Specifically, when determining the real-time running position of a bus online, data streams provided by multiple data sources will be received simultaneously. The data stream of the main positioning device can be extracted for processing based on the mapping relationship and quality priority, while the data streams of other backup positioning devices with mapping relationships do not need to be extracted and processed, thereby saving computing power. If it is detected that there is data missing in the data stream of the main positioning device, or there is a deviation in the real-time running position of the bus determined based on the real-time running trajectory of the main positioning device, the data stream switching operation of the main positioning device and the backup positioning device is completed.

[0096] The data loss in the data stream of the main positioning device can be identified and judged by various conditions. For example, if the data stream is interrupted for a set long period of time, it is considered as data loss. The deviation of the real-time running position of the bus determined based on the real-time running trajectory of the main positioning device can also be identified and judged by various conditions. For example, the interval between the determined real-time running position points is greater than the set threshold, or the deviation between the trajectory points of the bus line is greater than the set threshold, etc.

[0097] Through the active-standby redundancy mechanism established during offline operation, active-standby switching is performed when the real-time running trajectory data quality of the main positioning device is poor, ensuring the stability of data provided by the data source, thereby improving the stability of real-time bus services.

[0098] Figure 4 It is a flowchart of another method for determining the real-time running position of a bus provided according to an embodiment of the present disclosure. This embodiment is an optional solution proposed on the basis of the above-mentioned embodiment.

[0099] like Figure 4 As shown, the method for determining the real-time running position of a bus provided in this embodiment may include:

[0100] S410, acquiring data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device;

[0101] S420, based on the mapping relationship between the positioning device identifier and the bus route, determining the bus route corresponding to the real-time running trajectory of each positioning device; wherein the mapping relationship is based on the historical data stream provided by the data source and is pre-determined in an offline manner;

[0102] S430, processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route;

[0103] The process of processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route also includes:

[0104] S440, if the similarity between any real-time running trajectory and the bus route does not meet the set condition, then query other corresponding bus routes based on the mapping relationship based on the positioning device identifier to which the real-time running trajectory belongs;

[0105] S450: According to other bus routes matched by the queried positioning device identifier, the real-time running track of the positioning device is bound to the other bus routes for processing.

[0106] As mentioned above, buses may be dispatched to travel on different bus routes, so when establishing a mapping relationship, a mapping relationship between a bus-associated positioning device and multiple bus routes can be established. Multiple bus routes can further set association priorities, that is, the positioning device is preferentially associated with that bus route. For example, the association priority can be determined according to the time of the real-time running trajectory collected by the positioning device. For example, the closer the trajectory time is to the current time, the higher the association priority. In this way, the real-time running trajectory of the positioning device can be obtained, and the bus route with the highest association priority can be processed first. If the real-time running trajectory does not match the route with the highest association priority, the bus may be temporarily dispatched, and it can be switched to other bus routes with a mapping relationship and continue to be processed. If the bus route with a mapping relationship for the positioning device cannot be found, the bus route to which the positioning device belongs can be identified online or the real-time running trajectory collected by the positioning device can be abandoned.

[0107] The above-mentioned positioning device for switching routes can be a main positioning device or a backup positioning device, and both can identify the similarity between the real-time running trajectory of the positioning device and the bus route online and switch the binding relationship accordingly. There can be multiple triggering conditions for identifying similarity. For example, if the determined real-time running position of the bus has an abnormal deviation, or the real-time running position of the bus cannot be calculated and determined, there may be a problem that the binding relationship between the positioning device and the running route is incorrect.

[0108] Among them, the set conditions for identifying the matching degree can be used to indicate the matching degree between the real-time running trajectory and the bus line, such as the matching degree between the trajectory points between the real-time running trajectory and the bus line.

[0109] By matching the real-time running trajectory with other bus routes when the similarity between the real-time running trajectory and the bus route does not meet the set conditions, it is ensured that the real-time running position of the bus can be displayed on the correct bus route, thereby improving the robustness of the real-time bus service.

[0110] Figure 5 2 is a flow chart of another method for determining the real-time running position of a bus according to an embodiment of the present disclosure. This embodiment is an optimization scheme proposed on the basis of the above embodiment, and also includes an auxiliary positioning method. Figure 5 As shown, the method for determining the real-time running position of a bus provided in this embodiment may include:

[0111] S510, acquiring data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device, and also includes an auxiliary running track of a user positioning device;

[0112] S520: Obtain an auxiliary running track of the user positioning device and a corresponding bus route from data streams of at least two data sources;

[0113] S530, based on the mapping relationship between the positioning device identifier and the bus route, determining the bus route corresponding to the real-time running trajectory of each positioning device; wherein the mapping relationship is based on the historical data stream provided by the data source and is pre-determined in an offline manner;

[0114] S540: Process at least one real-time running track and auxiliary running track matched by each bus line to determine the real-time running position of at least one bus in the bus line.

[0115] In addition to the fixed positioning devices on the bus, there can also be user positioning devices carried by the driver or passengers, such as mobile phones. Based on the identity or behavior of the user, the trajectory related to the bus travel can be screened and determined from the large number of mobile trajectories collected by the user positioning device as an auxiliary operation trajectory. For example, if the user queries the bus line based on the electronic map and turns on the navigation, it can be regarded as the position trajectory collected by the user positioning device when the user is in the bus line navigation state, which is the auxiliary operation trajectory matched with the bus. The bus line corresponding to the auxiliary operation trajectory can also be further determined based on the bus line navigation state. The matching relationship between the auxiliary operation trajectory and the bus line can also be determined by matching with the line trajectory based on an offline or online method. In practical applications, due to the uncertainty of the auxiliary operation trajectory provided by the user positioning device, it is preferably used as auxiliary data for determining the real-time position of the bus.

[0116] Optionally, at least one real-time running track and auxiliary running track matched by each bus line are processed to determine the real-time running position of at least one bus in the bus line. The real-time running track provided by the bus-associated positioning device can be processed together with the auxiliary running track to identify the real-time running position of the bus, or the real-time running track and the auxiliary running track can be set to have different weights to identify the real-time running position of the bus. For example, the data stream provided by the main positioning device may have a large time interval for reporting data packets, or the distance interval of the real-time running track points of the bus provided is far. In this interval, the track points in the auxiliary running track can be extracted to supplement the real-time running position of the bus, or the track point positions in the auxiliary running track and the track point positions in the real-time running track provided by the positioning device can be aggregated to calculate the real-time running position of the bus.

[0117] Alternatively, when there are abnormal conditions in the real-time running position of the bus determined based on the real-time running track, an auxiliary running track can be added to identify the real-time running position of the bus. The abnormal condition is, for example, that the interval between the coordinate points of the identified real-time running position is greater than the set value, that is, the density is insufficient; or the abnormal condition is that the coordinate points of the identified real-time running position are missing, etc.

[0118] By using at least one real-time running trajectory and auxiliary running trajectory matched by the bus route, when the real-time running trajectory of the positioning device is not good, the auxiliary running trajectory of the user positioning device is supplemented to determine the real-time running position of at least one bus in the bus route, thereby improving the fault tolerance of the real-time running trajectory and ensuring the stability of the real-time bus service.

[0119] On the basis of the aforementioned embodiments, processing at least one real-time running trajectory matched by each bus line to determine the real-time running position of at least one bus in the bus line may specifically include: performing running direction identification and real-time position calculation processing on at least one real-time running trajectory matched by each bus line to determine the real-time running position of at least one bus in the bus line.

[0120] There are many algorithms for running direction identification and real-time position estimation. Specifically, direction identification can be performed for at least one real-time running track matched by each bus line to determine whether the bus is running in an upward or downward direction; the real-time position estimation process can be based on the current track point in the real-time running track, the moving direction of the bus and the current moving speed of the bus, predicting one or more subsequent track points to determine the real-time running position of at least one bus in the bus line. This makes up for the deficiency of too large spacing between track points in the real-time running track.

[0121] By identifying the running direction and calculating the real-time position of the bus, poor data quality in the real-time running trajectory can be avoided. For example, when the data interval of the trajectory data is too large or there is a short interruption in the data source, the real-time running trajectory of the bus can still be obtained, ensuring the stability of the real-time bus service.

[0122] Based on the aforementioned embodiments, optionally, processing at least one real-time running trajectory matched by each bus line to determine the real-time running position of at least one bus in the bus line specifically includes: distributing the data stream of at least one real-time running trajectory matched by each bus line to a data processing service for processing to determine the real-time running position of at least one bus in the bus line.

[0123] There may be multiple data processing services for parallel processing of real-time operation trajectories of different bus lines.

[0124] Specifically, the data stream of the real-time running trajectory of at least one bus in different bus routes can be distributed to different data processing services according to the route dimension, so that different data processing services can respectively process the data stream of at least one real-time running trajectory matched by different bus routes to determine the real-time running position of at least one bus in the bus route. Preferably, a distributed lock can be used between the data processing service and the data source in the same city to ensure that the data source in the same city can obtain the data stream by the same data processing service. Specifically, a data processing service is equivalent to an independently run instance that can process the data stream of one bus route or multiple bus routes. The data stream of a bus route is usually only allocated to one data processing service to avoid conflicts when multiple data processing services are processing at the same time.

[0125] By distributing the data stream of at least one real-time running trajectory matched by the bus line to different data processing services for parallel processing according to the bus line dimension, the data processing efficiency is improved.

[0126] Based on the aforementioned embodiments, it is optional to process at least one real-time running trajectory matched by each bus line to determine the real-time running position of at least one bus in the bus line, specifically including: using Viterbi algorithm to process multiple real-time running trajectories matched by each bus line to identify repeated real-time running trajectories and perform deduplication processing.

[0127] Specifically, for the multiple real-time operating trajectories corresponding to each bus line obtained in real time, the Viterbi algorithm (hidden Markov model) can be used to judge the driving position of the vehicle on the bus line online in real time, identify the operating trajectories belonging to the same bus in the multiple real-time operating trajectories, and deduplicate the trajectory points.

[0128] Usually, during offline processing, duplicate real-time bus operation trajectories can be checked for duplication and their priorities can be recorded. Duplicate real-time bus operation trajectories may not be extracted during online processing. However, offline processing may not be completely duplicative, so a secondary duplication check can be performed online. By deduplicating multiple real-time operation trajectories matched by each bus line online according to the Viterbi algorithm, the uniqueness of the real-time operation trajectories is ensured, ensuring the robustness of the real-time bus service.

[0129] Figure 6The flowchart of the method for determining the real-time running position of a bus provided in the embodiment of the present disclosure is combined with the introduction of the aforementioned embodiment. In the embodiment of the present disclosure, the data sources are firstly integrated, and then offline processing is performed to perform space-time matching of vehicles and establish a mapping relationship between vehicle positioning devices and routes; in the online processing branch, the real-time running trajectory of the bus route is obtained from the data source as the real-time running status. In this process, means such as binding roads, direction identification and trajectory point calculation can be adopted; the process of obtaining the real-time running trajectory of the bus route from the data source can be determined based on the mapping relationship obtained offline, and the mapping relationship can record the positioning device identifiers corresponding to overlapping vehicles, newly added vehicles, and newly added routes; then, the trajectory point increments are integrated based on the real-time running trajectory of the positioning device bound to the bus route; the real-time running trajectory can also be deduplicated twice; and finally the real-time running position of the generated bus is output.

[0130] The technical solution of the disclosed embodiment predetermines the mapping relationship between the positioning device identifier and the bus route through the historical data stream of at least two data sources in an offline manner, so that the mapping relationship integrates the mapping relationship between the bus route and the positioning device identifier provided by at least two data sources, thereby improving the coverage rate of the bus routes covered by the generated mapping relationship, making the real-time bus service more robust, and determining the real-time running position of the bus based on multiple data sources, ensuring the stability of the data service provided by the data source, thereby improving the stability of the real-time bus service.

[0131] The technical solutions provided in the above embodiments of the present disclosure can be combined and adopted based on actual needs. An optional example is provided below for specific description:

[0132] S1. In the process of determining the real-time running position of the bus based on the real-time running trajectory collected by the main positioning device, if the bus is identified to be in a set geographical location area based on the real-time running position and the map road network data, then switch to the position calculation mode;

[0133] Set a geographic location area, such as a tunnel area or an area with dense buildings, where there may be obstruction and signal loss. This area will affect the collection or transmission of the location signal. Even if the location signal data can be obtained, there may be a large deviation.

[0134] S2. The real-time running track collected by the main positioning device matched with the bus route can be combined with other source data to calculate the real-time running position of the bus;

[0135] Other source data include but are not limited to: existing bus route tracks, current bus speed and direction, etc. In this area, even if there is a real-time running track, there may be a large error in the position of the track point, so it is also possible to switch to using only the extrapolation method to determine the real-time running position of the bus.

[0136] S3, when the bus leaves the set geographical location area based on the current real-time running position of the bus, switching to a mode of using the real-time running track collected by the main positioning device to determine the real-time running position of the bus;

[0137] S4. When it is detected that the real-time running track collected by the main positioning device is missing, execute the operation of S5;

[0138] The specific monitoring indicators of the missing real-time running track collected by the main positioning device can be: if the data stream of the data source to which the main positioning data belongs is not obtained within the set time period, or if the real-time running position determined based on the real-time running track collected by the main positioning device and the deviation degree from the bus line track reaches the set threshold, it is determined that the real-time running track is missing;

[0139] S5, identifying whether there is a valid auxiliary running trajectory, if so, executing S6, otherwise executing S7;

[0140] S6. If there is a valid auxiliary running track, determining the real-time running position of the bus based on the track points of the auxiliary running track;

[0141] The so-called effective auxiliary running trajectory is an auxiliary running trajectory that meets the validity conditions and is screened from the auxiliary running trajectories provided by a large number of users. For example, the validity conditions include: the matching degree between the trajectory points in the auxiliary running trajectory and the trajectory points in the bus line trajectory reaches a set threshold;

[0142] S7. If there is no valid auxiliary operation track, searching for a backup positioning device corresponding to the bus line based on the mapping relationship between the positioning device identifier and the bus line;

[0143] S8. Determine the real-time running position of the bus to which the backup positioning device belongs in the bus route according to the real-time running track of the backup positioning device found.

[0144] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0145] Figure 7 is a schematic diagram of the structure of a device for determining the real-time running position of a bus provided by an embodiment of the present disclosure. Figure 7The device for determining the real-time running position of a bus provided in the embodiment of the present disclosure may include:

[0146] The bus data stream acquisition module 710 is used to acquire data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device;

[0147] A mapping relationship module 720 is used to determine the bus route corresponding to the real-time running track of each positioning device based on the mapping relationship between the positioning device identifier and the bus route; wherein the mapping relationship is pre-determined in an offline manner based on the historical data stream provided by the data source;

[0148] The position determination module 730 is used to process at least one real-time running track matched by each bus line to determine the real-time running position of at least one bus in the bus line.

[0149] Through the mapping relationship between the positioning device identifier and the bus route determined in advance in an offline manner, the data stream to which at least one positioning device corresponding to each bus route belongs can be quickly determined by query, and then the real-time running track included in the data stream can be processed. This reduces the amount of real-time online task processing and improves the efficiency of determining the real-time running track of the bus.

[0150] Optionally, the device further includes a mapping relationship determination module, the mapping relationship determination module including:

[0151] An offline extraction unit, used to extract the real-time running track and the positioning device identification of at least one bus-related positioning device from each historical data stream of at least two data sources;

[0152] The spatiotemporal aggregation unit is used to perform spatiotemporal aggregation processing on the real-time running trajectory of each positioning device and match the aggregation processing result with the bus route;

[0153] The mapping relationship generating unit is used to determine the corresponding relationship between the positioning device and the bus line according to the matching result, so as to establish a mapping relationship between the positioning device identifier and the corresponding bus line.

[0154] Optionally, each positioning device corresponds to one or more bus routes, and each bus route corresponds to one or more positioning devices.

[0155] Optionally, the mapping relationship determination module further includes: a priority determination unit, configured to determine the quality priority of the positioning device according to the data quality of the data sources to which the plurality of positioning devices belong, and record the priority in the mapping relationship;

[0156] The basis for determining the data quality includes at least one of the following: a time interval for reporting data packets, an online rate of track points, and a coverage rate of track points;

[0157] The online rate of the track points is: the number of track points matching the real-time running track and the bus line track, and the proportion of all track points in the real-time running track;

[0158] The track point coverage rate is: the number of matching track points between the real-time running track and the bus line track, and the proportion of all track points in the bus line track.

[0159] Optionally, the positioning device includes at least one of the following: global positioning system equipment, Beidou navigation system equipment, mobile communication positioning module, vehicle-mounted video surveillance equipment, odometer and speed sensor, and radio frequency identification equipment; the positioning device is configured in at least one of the following vehicle-mounted equipment: vehicle-mounted station announcement terminal, vehicle-mounted card swiping terminal, Internet of Vehicles terminal, and vehicle driving system.

[0160] Optionally, the mapping relationship module 720 includes:

[0161] An online extraction unit, used for extracting the positioning device identification corresponding to each real-time running track from the data stream of each data source;

[0162] The bus route query unit is used to query the bus routes corresponding to the positioning device identifiers according to the positioning device identifiers and based on the mapping relationship between the positioning device identifiers and the bus routes.

[0163] Optionally, the location determination module 730 includes:

[0164] A master device trajectory acquisition unit, used to acquire the real-time running trajectory of the master positioning device from the real-time running trajectory of at least one positioning device matched to each bus route; wherein the master positioning device is selected offline or online based on the data quality of the data source to which it belongs;

[0165] The first position determination unit determines the real-time running position of the bus to which the main positioning device belongs in the bus route according to the real-time running track of the main positioning device.

[0166] Optionally, the location determination module 730 further includes:

[0167] A primary-backup switching unit is used to search for a backup positioning device corresponding to the bus line based on a mapping relationship between the positioning device identifier and the bus line if it is detected that there is data missing in the data stream of the primary positioning device, or there is a deviation in the real-time running position of the bus determined based on the real-time running trajectory of the primary positioning device;

[0168] The second position determination unit is used to determine the real-time running position of the bus to which the backup positioning device belongs in the bus route according to the real-time running track of the backup positioning device found.

[0169] Optionally, the location determination module 730 further includes:

[0170] A route switching unit, configured to query other corresponding bus routes based on the mapping relationship based on the positioning device identifier to which the real-time running trajectory belongs if the similarity between any real-time running trajectory and the bus route does not meet the set conditions;

[0171] The route switching processing unit is used to bind the real-time running track of the positioning device to other bus routes for processing according to other bus routes matched by the positioning device identification found out.

[0172] Optionally, the device further comprises:

[0173] The user data stream acquisition module is used to acquire the auxiliary running track of the user positioning device and the corresponding bus route from the data streams of at least two data sources.

[0174] Optionally, the location determination module 730 further includes:

[0175] The third position determination unit is used to process at least one real-time running track and auxiliary running track matched by each bus line to determine the real-time running position of at least one bus in the bus line.

[0176] Optionally, the location determination module 730 further includes:

[0177] The fourth position determination unit is used to perform running direction identification and real-time position estimation processing on at least one real-time running track matched by each bus line, so as to determine the real-time running position of at least one bus in the bus line.

[0178] Optionally, the location determination module 730 further includes:

[0179] A parallel processing unit is used to distribute the data stream of at least one real-time running trajectory matched by each bus line to a data processing service for processing, so as to determine the real-time running position of at least one bus in the bus line; wherein, there are multiple data processing services for parallel processing of the real-time running trajectories of different bus lines.

[0180] Optionally, the location determination module 730 further includes:

[0181] The deduplication unit is used to process multiple real-time operation trajectories matched by each bus line using the Viterbi algorithm to identify repeated real-time operation trajectories and perform deduplication processing.

[0182] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0183] Figure 8 A schematic block diagram of an example electronic device 810 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0184] like Figure 8 As shown, the device 810 includes a computing unit 811, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 812 or a computer program loaded from a storage unit 818 into a random access memory (RAM) 813. In the RAM 813, various programs and data required for the operation of the device 810 can also be stored. The computing unit 811, the ROM 812, and the RAM 813 are connected to each other via a bus 814. An input / output (I / O) interface 815 is also connected to the bus 814.

[0185] A number of components in the device 810 are connected to the I / O interface 815, including: an input unit 816, such as a keyboard, a mouse, etc.; an output unit 817, such as various types of displays, speakers, etc.; a storage unit 818, such as a disk, an optical disk, etc.; and a communication unit 819, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 819 allows the device 810 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0186] The computing unit 811 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 811 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 811 performs the various methods and processes described above, such as a method for determining the real-time running position of a bus. For example, in some embodiments, the method for determining the real-time running position of a bus may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 818. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 810 via the ROM 812 and / or the communication unit 819. When the computer program is loaded into the RAM 813 and executed by the computing unit 811, one or more steps of the method for determining the real-time running position of the bus described above may be performed. Alternatively, in other embodiments, the computing unit 811 may be configured to execute the method for determining the real-time operating position of the bus in any other appropriate manner (for example, by means of firmware).

[0187] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0188] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0189] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0190] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0191] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0192] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services. The server may also be a server of a distributed system, or a server combined with a blockchain.

[0193] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, knowledge graph technology, and other major directions.

[0194] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.

[0195] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and this document does not limit this.

[0196] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for determining the real-time running position of a bus, comprising: Acquire data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device; Based on the mapping relationship between the positioning device identifier and the bus route, determine the bus route corresponding to the real-time running trajectory of each positioning device; wherein the mapping relationship is based on the historical data stream provided by the data source and is pre-determined in an offline manner; At least one real-time running track matched by each bus line is processed to determine the real-time running position of at least one bus in the bus line.

2. The method according to claim 1, wherein: The process of determining the mapping relationship includes: Extracting a real-time running track and a positioning device identifier of at least one bus-associated positioning device from each historical data stream of at least two data sources; Perform spatiotemporal aggregation processing on the real-time running trajectory of each positioning device, and match the aggregation processing results with the bus routes; The corresponding relationship between the positioning device and the bus line is determined according to the matching result, so as to establish a mapping relationship between the positioning device identifier and the corresponding bus line.

3. The method according to claim 2, wherein: Each positioning device corresponds to one or more bus routes, and each bus route corresponds to one or more positioning devices.

4. The method according to claim 3, wherein: If there are multiple positioning devices corresponding to the bus line, after establishing a mapping relationship between the positioning device identifier and the corresponding bus line, the method further includes: Determine the quality priority of the positioning devices according to the data quality of the data sources to which the plurality of positioning devices belong, and record the priority in the mapping relationship; The basis for determining the data quality includes at least one of the following: a time interval for reporting data packets, an online rate of track points, and a coverage rate of track points; The online rate of the track points is: the number of track points matching the real-time running track and the bus line track, and the proportion of all track points in the real-time running track; The track point coverage rate is: the number of matching track points between the real-time running track and the bus line track, and the proportion of all track points in the bus line track.

5. The method according to any one of claims 1 to 4, wherein: The positioning device includes at least one of the following: a global positioning system device, a Beidou navigation system device, a mobile communication positioning module, a vehicle-mounted video monitoring device, an odometer and a speed sensor, and a radio frequency identification device; The positioning device is configured in at least one of the following vehicle-mounted devices: a vehicle-mounted station announcement terminal, a vehicle-mounted card swiping terminal, a vehicle networking terminal, and a vehicle driving system.

6. The method according to claim 1, wherein: Based on the mapping relationship between the positioning device identifier and the bus route, determining the bus route corresponding to the real-time running trajectory of each positioning device includes: Extracting the positioning device identifier corresponding to each real-time running track from the data stream of each data source; According to the positioning device identifiers, based on the mapping relationship between the positioning device identifiers and the bus routes, the bus routes corresponding to the positioning device identifiers are queried.

7. The method according to claim 6, wherein: Processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes: Acquire the real-time running track of the main positioning device from the real-time running track of at least one positioning device matched to each bus route; wherein the main positioning device is selected offline or online based on the data quality of the data source to which it belongs; According to the real-time running track of the main positioning device, the real-time running position of the bus to which the main positioning device belongs in the bus route is determined.

8. The method according to claim 7, wherein: Also includes: If it is detected that the data stream of the main positioning device is missing data, or there is a deviation in the real-time running position of the bus determined based on the real-time running track of the main positioning device, then based on the mapping relationship between the positioning device identifier and the bus line, find the backup positioning device corresponding to the bus line; According to the real-time running track of the found backup positioning device, the real-time running position of the bus to which the backup positioning device belongs in the bus route is determined.

9. The method according to claim 1, wherein: The process of processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route also includes: If the similarity between any real-time running track and the bus line does not meet the set conditions, then based on the positioning device identifier to which the real-time running track belongs, query the corresponding other bus lines based on the mapping relationship; According to other bus routes matched by the queried positioning device identification, the real-time running track of the positioning device is bound to the other bus routes for processing.

10. The method according to claim 1, wherein: Also includes: Obtaining the auxiliary running track of the user positioning device and the corresponding bus route from the data streams of at least two data sources; Accordingly, the processing of at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes: At least one real-time running track and auxiliary running track matched by each bus line are processed to determine the real-time running position of at least one bus in the bus line.

11. The method according to claim 1, wherein: Processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes: For at least one real-time running track matched by each bus line, running direction identification and real-time position estimation processing are performed to determine the real-time running position of at least one bus in the bus line.

12. The method according to claim 1, wherein: Processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes: The data stream of at least one real-time running trajectory matched by each bus line is distributed to a data processing service for processing to determine the real-time running position of at least one bus in the bus line; wherein there are multiple data processing services for processing the real-time running trajectories of different bus lines in parallel.

13. The method according to claim 1, wherein: Processing at least one real-time running track matched by each bus route to determine the real-time running position of at least one bus in the bus route includes: The Viterbi algorithm is used to process multiple real-time operation trajectories matched by each bus line to identify repeated real-time operation trajectories and perform deduplication processing.

14. A device for determining the real-time running position of a bus, comprising: A bus data stream acquisition module is used to acquire data streams from at least two data sources in real time; each data stream includes a real-time running track and a positioning device identifier of at least one bus-related positioning device; A mapping relationship module, used to determine the bus route corresponding to the real-time running track of each positioning device based on the mapping relationship between the positioning device identifier and the bus route; wherein the mapping relationship is pre-determined in an offline manner based on the historical data stream provided by the data source; The position determination module is used to process at least one real-time running track matched by each bus line to determine the real-time running position of at least one bus in the bus line.

15. The device according to claim 14, wherein: The system further includes a mapping relationship determination module, the mapping relationship determination module including: An offline extraction unit, used to extract the real-time running track and the positioning device identification of at least one bus-related positioning device from each historical data stream of at least two data sources; The spatiotemporal aggregation unit is used to perform spatiotemporal aggregation processing on the real-time running trajectory of each positioning device and match the aggregation processing result with the bus route; The mapping relationship generating unit is used to determine the corresponding relationship between the positioning device and the bus line according to the matching result, so as to establish a mapping relationship between the positioning device identifier and the corresponding bus line.

16. The device according to claim 15, wherein: Each positioning device corresponds to one or more bus routes, and each bus route corresponds to one or more positioning devices.

17. The device according to claim 16, wherein: The mapping relationship determination module further includes: A priority determination unit, configured to determine the quality priority of the positioning device according to the data quality of the data sources to which the plurality of positioning devices belong, and record the priority in the mapping relationship; The basis for determining the data quality includes at least one of the following: a time interval for reporting data packets, an online rate of track points, and a coverage rate of track points; The online rate of the track points is: the number of track points matching the real-time running track and the bus line track, and the proportion of all track points in the real-time running track; The track point coverage rate is: the number of matching track points between the real-time running track and the bus line track, and the proportion of all track points in the bus line track.

18. The device according to any one of claims 14 to 17, wherein: The positioning device includes at least one of the following: a global positioning system device, a Beidou navigation system device, a mobile communication positioning module, a vehicle-mounted video monitoring device, an odometer and a speed sensor, and a radio frequency identification device; The positioning device is configured in at least one of the following vehicle-mounted devices: a vehicle-mounted station announcement terminal, a vehicle-mounted card swiping terminal, a vehicle networking terminal, and a vehicle driving system.

19. The device according to claim 14, wherein: The mapping relationship module includes: An online extraction unit, used for extracting the positioning device identification corresponding to each real-time running track from the data stream of each data source; The bus route query unit is used to query the bus routes corresponding to the positioning device identifiers according to the positioning device identifiers and based on the mapping relationship between the positioning device identifiers and the bus routes.

20. The device according to claim 19, wherein The position determination module comprises: A master device trajectory acquisition unit, used to acquire the real-time running trajectory of the master positioning device from the real-time running trajectory of at least one positioning device matched to each bus route; wherein the master positioning device is selected offline or online based on the data quality of the data source to which it belongs; The first position determination unit determines the real-time running position of the bus to which the main positioning device belongs in the bus route according to the real-time running track of the main positioning device.

21. The device according to claim 20, wherein: The position determination module further includes: A primary-backup switching unit is used to search for a backup positioning device corresponding to the bus line based on a mapping relationship between the positioning device identifier and the bus line if it is detected that there is data missing in the data stream of the primary positioning device, or there is a deviation in the real-time running position of the bus determined based on the real-time running trajectory of the primary positioning device; The second position determination unit is used to determine the real-time running position of the bus to which the backup positioning device belongs in the bus route according to the real-time running track of the backup positioning device found.

22. The device according to claim 14, wherein: The position determination module further includes: A route switching unit, configured to query other corresponding bus routes based on the mapping relationship based on the positioning device identifier to which the real-time running trajectory belongs if the similarity between any real-time running trajectory and the bus route does not meet the set conditions; The route switching processing unit is used to bind the real-time running track of the positioning device to other bus routes for processing according to other bus routes matched by the positioning device identification found out.

23. The device according to claim 14, wherein: Also includes: A user data stream acquisition module, used to acquire the auxiliary running track of the user positioning device and the corresponding bus route from the data streams of at least two data sources; Correspondingly, the location determination module further includes: The third position determination unit is used to process at least one real-time running track and auxiliary running track matched by each bus line to determine the real-time running position of at least one bus in the bus line.

24. The device according to claim 14, wherein: The position determination module further includes: The fourth position determination unit is used to perform running direction identification and real-time position estimation processing on at least one real-time running track matched by each bus line, so as to determine the real-time running position of at least one bus in the bus line.

25. The device according to claim 14, wherein: The position determination module further includes: A parallel processing unit is used to distribute the data stream of at least one real-time running trajectory matched by each bus line to a data processing service for processing, so as to determine the real-time running position of at least one bus in the bus line; wherein, there are multiple data processing services for parallel processing of the real-time running trajectories of different bus lines.

26. The device according to claim 14, wherein: The position determination module further includes: The deduplication unit is used to process multiple real-time operation trajectories matched by each bus line using the Viterbi algorithm to identify repeated real-time operation trajectories and perform deduplication processing.

27. An electronic device comprising: a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for determining the real-time operating position of a bus according to any one of claims 1-13.

28. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the method for determining the real-time operating position of a bus according to any one of claims 1-13.

29. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the method for determining the real-time running position of a bus according to any one of claims 1-13.

Citation Information

Cited By

  • Vehicle positioning data correction method and device, electronic equipment and storage medium

    CN119146981A