Road state prediction method and device, storage medium and electronic equipment
By receiving road condition prediction requests and obtaining driving trajectory statistics, the system automatically predicts road conditions, solving the problem of untimely road condition updates and improving the real-time performance and accuracy of the navigation system.
Patent Information
- Application Number
- CN202211202767.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-29
AI Technical Summary
In existing technologies, road conditions are not updated in a timely manner, which prevents vehicles from being aware of changes in road conditions and affects navigation efficiency.
By receiving road condition prediction requests, the system obtains driving trajectory statistics for the target time period and uses this data to automatically predict road conditions, avoiding manual data collection and enabling automatic determination of road traffic conditions.
It enables efficient and accurate prediction of road conditions, improves the real-time performance and accuracy of the navigation system, and avoids the timeliness issues of manually collected data.
Smart Images

Figure CN115456299B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for predicting road conditions, a storage medium, and an electronic device. Background Technology
[0002] With the continuous development of society and economy, the transportation system is becoming more and more perfect, the popularity of cars is constantly increasing, and at the same time, with the development of mobile Internet technology, mobile map navigation applications are becoming more and more popular, which has provided great convenience for people's daily travel.
[0003] However, road conditions are constantly changing. For example, some roads may be under construction or under temporary traffic control. When these conditions exist, vehicles cannot pass.
[0004] Existing methods for detecting changes in road networks typically require manual data collection to identify sections of roads where traffic conditions have changed. However, this method suffers from poor timeliness. For example, for temporarily closed road sections, manual data collection usually only detects that the road's traffic condition has changed to "impassable," but it's difficult to accurately determine when the road will become passable again. Therefore, methods based on manual road network data collection suffer from the problem of untimely road condition updates.
[0005] In other words, there is currently no effective solution to the problem of untimely updates to road conditions in the aforementioned technologies. Summary of the Invention
[0006] This invention provides a method and apparatus for predicting road conditions, a storage medium, and an electronic device, to at least solve the technical problem of untimely updates to road conditions in related technologies.
[0007] According to one aspect of the present invention, a method for predicting road conditions is provided, comprising: receiving a road condition prediction request, wherein the road condition prediction request is used to predict the road condition of a target road; obtaining, according to the road condition prediction request, driving trajectory statistics generated on the target road within a target time period, wherein the driving trajectory statistics are the result data obtained by statistically analyzing driving trajectories formed by driving in different driving directions on the target road, and the target time period is the time period prior to receiving the road condition prediction request; and predicting the road condition of the target road based on the driving trajectory statistics.
[0008] According to another aspect of the present invention, a road condition prediction apparatus is also provided, comprising: a receiving unit for receiving a road condition prediction request, wherein the road condition prediction request is used to predict the road condition of a target road; an acquiring unit for acquiring, according to the road condition prediction request, driving trajectory statistics generated on the target road within a target time period, wherein the driving trajectory statistics are the result data obtained by statistically analyzing driving trajectories formed by driving in different driving directions on the target road, and the target time period is the time period prior to receiving the road condition prediction request; and a prediction unit for predicting the road condition of the target road based on the driving trajectory statistics.
[0009] According to another aspect of the present invention, a storage medium is also provided, the storage medium including a stored program, wherein the program executes any one of the road state prediction methods in the embodiments of the present invention when it is run.
[0010] According to another aspect of the present invention, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes any one of the road state prediction methods in the embodiments of the present invention through the computer program.
[0011] In this embodiment of the invention, a road condition prediction request is received, wherein the road condition prediction request is used to predict the road condition of a target road; based on the road condition prediction request, statistical data on driving trajectories generated on the target road within a target time period are obtained, wherein the statistical data on driving trajectories formed by driving in different directions on the target road are statistically obtained, and the target time period is the time period before the road condition prediction request is received; the road condition of the target road is predicted based on the statistical data on driving trajectories on the target road within the target time period; thus, based on the above steps, upon receiving the road condition prediction request, the traffic condition of the target road is automatically determined according to the statistical data on driving trajectories on the target road within the target time period, thereby avoiding the need for manual collection of road traffic condition change data, realizing automatic determination of the road condition of the target road, solving the technical problem of untimely updates to road conditions in related technologies, and thus achieving the technical effect of efficiently and accurately predicting the road condition of the target road. Attached Figure Description
[0012] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0013] Figure 1This is a schematic diagram of the hardware environment for a road condition prediction method according to an embodiment of the present invention;
[0014] Figure 2 This is a flowchart of an optional road condition prediction method according to an embodiment of the present invention;
[0015] Figure 3 This is a schematic diagram of an optional road condition prediction method according to an embodiment of the present invention;
[0016] Figure 4 This is a schematic diagram of another optional road condition prediction method according to an embodiment of the present invention;
[0017] Figure 5 This is a schematic diagram of another optional road condition prediction method according to an embodiment of the present invention;
[0018] Figure 6 This is a schematic diagram of another optional road condition prediction method according to an embodiment of the present invention;
[0019] Figure 7 This is a flowchart of another optional road condition prediction method according to an embodiment of the present invention;
[0020] Figure 8 This is a schematic diagram of an optional road condition prediction device according to an embodiment of the present invention; and
[0021] Figure 9 This is a structural block diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] According to one aspect of the present invention, a method for predicting road conditions is provided. As an optional implementation, the above-described method for predicting road conditions can be applied, but is not limited to, to applications such as... Figure 1 The road condition prediction system shown consists of server 102 and terminal device 104. For example... Figure 1As shown, server 102 is connected to terminal device 104 via network 110. This network may include, but is not limited to, wired networks and wireless networks. The wired network includes local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). The wireless network includes Bluetooth, Wi-Fi, and other networks enabling wireless communication. The terminal device may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablets, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, in-vehicle devices, etc. The terminal device may have navigation applications installed, such as a navigation app, a navigation mini-program, a location app, etc. The terminal device also includes a display, a processor, and a memory. The display shows the interface of the navigation application, such as the current navigation route. The processor processes received navigation requests; for example, given the current location and the requested target location, the navigation app displays the navigation route from the current location to the target location. The memory stores offline map data. It is understood that after obtaining the user's route request in the aforementioned terminal device 104, the terminal device 104 determines multiple candidate navigation routes. Then, the terminal device 104 can send a road status prediction request carrying the candidate navigation routes to the server 102 via network 110. Upon receiving the road status prediction request from the terminal device 104, the server 102 obtains the driving trajectory statistics generated on the target road within the target time period before the current moment based on the road identifier of the target road carried in the request, and predicts the road status of the target road based on the driving trajectory statistics. Further, after determining the road status of the target road, the prediction result is sent to the terminal device 104 so that the terminal device 104 can determine the target navigation route based on the prediction result. The terminal device 104 can receive the prediction result returned by the server 102 via network 110 and prioritize displaying the target navigation route determined based on the prediction, while displaying other candidate navigation routes as alternatives. Furthermore, in response to the navigation route selection operation, navigation information can be broadcast according to the selected navigation route. The aforementioned server 102 can be a single server, a server cluster composed of multiple servers, or a cloud server. The aforementioned server includes a database and a processing engine. The processing engine is used to obtain statistical data on the driving trajectory generated on the target road within the target time period prior to the current moment, based on the current navigation information.
[0025] According to one aspect of the present invention, the road condition prediction system described above may further perform the following steps: Terminal device 104 performs step S102 to obtain a navigation request; then performs step S104 to generate current navigation information; then performs step S106 to send a road condition prediction request to server 102 via network 110, wherein the road condition prediction request carries the target road in the navigation information; server 102 performs steps S108 to S112 to receive the road condition prediction request, wherein the road condition prediction request is used to predict the road condition of the target road; according to the road condition prediction request, it obtains driving trajectory statistics generated on the target road within a target time period, wherein the driving trajectory statistics are the result data obtained by statistically analyzing driving trajectories formed by driving in different directions on the target road, and the target time period is the time period before receiving the road condition prediction request; the road condition of the target road is predicted based on the driving trajectory statistics. Next, server 102 performs step S114 to send the prediction result to terminal device via network 110; upon receiving the prediction result, terminal device 104 determines the target navigation route based on the prediction result. It is understandable that if the terminal device 104 is a device with sufficient computing power, the above steps S108 to S112 can also be performed in the terminal device 104.
[0026] In this embodiment of the invention, a road condition prediction request is received, wherein the road condition prediction request is used to predict the road condition of a target road; based on the road condition prediction request, statistical data on driving trajectories generated on the target road within a target time period are obtained, wherein the statistical data on driving trajectories formed by driving in different directions on the target road are statistically obtained, and the target time period is the time period before the road condition prediction request is received; the road condition of the target road is predicted based on the statistical data on driving trajectories on the target road within the target time period; thus, based on the above steps, upon receiving the road condition prediction request, the traffic condition of the target road is automatically determined according to the statistical data on driving trajectories on the target road within the target time period, thereby avoiding the need for manual collection of road traffic condition change data, realizing automatic determination of the road condition of the target road, solving the technical problem of untimely updates to road conditions in related technologies, and thus achieving the technical effect of efficiently and accurately predicting the road condition of the target road.
[0027] Figure 2 This is a flowchart of an optional road condition prediction method according to an embodiment of the present invention, such as... Figure 2 As shown, the method may include the following steps:
[0028] S202, Receive a road condition prediction request, wherein the road condition prediction request is used to predict the road condition of the target road;
[0029] S204, Based on the road condition prediction request, obtain the driving trajectory statistics generated on the target road within the target time period. The driving trajectory statistics are the result data obtained by statistically analyzing the driving trajectories formed by driving in different directions on the target road. The target time period is the time period before the road condition prediction request is received.
[0030] S206 predicts the road condition of the target road based on driving trajectory statistics.
[0031] It is understood that this embodiment can be used in driving navigation scenarios. For example, before step S202 of this embodiment, a navigation request can be obtained first. The navigation request includes current location information and target location information, so as to determine the current navigation information based on the current location information and target location information, that is, to determine the driving navigation route from the first location to the second location based on the navigation request. Further, the target road whose road state is to be predicted is determined based on the road information in the navigation information. For example, if the navigation route from the current location A to the target location B is a→b→c→d, the target road can be determined as "Road a", "Road b", "Road c", and "Road d" in sequence, and the road state of "Road a", "Road b", "Road c", and "Road d" can be predicted in sequence. Finally, the final navigation route is determined based on the predicted road state.
[0032] In another alternative approach, the method described above can also be used for automatic updates of road network data. For example, before step S202 of this embodiment, a road network status data update request can be obtained, which includes the road identifier to be updated, so as to determine the target road whose road status is to be predicted based on the road identifier. After the road status of the target road is predicted by the above method, the road status of the target road is automatically synchronized in the road network data.
[0033] In this embodiment, after obtaining the road condition prediction request, the driving trajectory statistics generated on the target road within the target time period are further obtained based on the road condition prediction request.
[0034] The target time period mentioned above can be a preset time period, such as one hour, one day, or one week. Alternatively, the time period can be determined based on the target road. For example, if the target road has high traffic volume, a shorter time period, such as one hour, can be selected; if the target road has low traffic volume, a longer time period, such as one day, can be selected. In yet another option, a reference traffic volume value can be preset, and the target time period matching the target road can be determined based on this value. For example, setting a reference traffic flow value of 100 vehicles means that, given a target road, the time required for 100 vehicles to pass normally on that road is estimated based on the average daily traffic flow of that road over the past month. If the average daily traffic flow of the target road is 100, then "one day" is defined as the current target time period, and statistical data on the travel trajectory of that target road from the current time to the past day is obtained. If the average daily traffic flow of the target road is 50, then "2 days" is defined as the current target time period, and statistical data on the travel trajectory of that target road from the current time to the past 2 days is obtained. This allows for the determination of the target time period based on the average traffic flow of the target road, improving the accuracy of road condition prediction.
[0035] It is understood that the aforementioned driving trajectory information refers to the trajectory information provided by the user driving on the target road within the target time period prior to the current time. It is also understood that the aforementioned trajectory information is obtained by matching the real-time GPS positioning information provided by the user against the road network. It should be noted that because the real-time GPS positioning information provided by the user may experience location drift, it may not be possible to directly match it with route information in the road network. Therefore, after obtaining the provided real-time GPS positioning information, a trajectory matching operation can be performed first to obtain accurate driving trajectory information.
[0036] As an optional approach, the trajectory information mentioned above may include trajectory location information, trajectory generation time information, and operation information of driving control operations performed by the user in the trajectory. The above information types are only examples and do not limit the actual trajectory information obtained in this embodiment.
[0037] Based on the trajectory information provided by users driving on the target road within the target time period prior to the current time, statistical results can be further obtained. It is understood that the aforementioned statistical results may include information such as vehicle traffic flow on the target road, vehicle traffic flow that performed U-turns on the target road, and vehicle traffic flow that performed through-travel operations on the target road. The above data types are merely examples and do not limit the actual trajectory information obtained in this embodiment.
[0038] The following explains the road conditions mentioned above. Road conditions may include, but are not limited to, indicators of road traffic status, such as free-flowing, congested, or closed. It is understood that road condition is a known basic attribute of a road, such as a significant decrease in traffic capacity due to road construction, impassable due to road closure, impassable due to changes in traffic rules, or impassable for certain vehicle types due to poor road conditions. By obtaining the road condition of the target road, the navigation route can be further modified or its priority adjusted based on the road condition. For example, among multiple candidate navigation routes, if route A has congested roads, the navigation priority of route A is reduced; if route B has closed roads, the navigation display of route B is canceled; if route C is completely free-flowing, route C is given priority for navigation display.
[0039] The following combination Figure 3 A specific scenario of the above-described embodiments of this application will be described. For example, in a navigation scenario, such as... Figure 3 As shown, assuming the current navigation request is to travel from point A to point B, as follows... Figure 3 The diagram shows two possible navigation routes, Route 1 and Route 2 (and several other routes not shown). Further, Route 1 and Route 2 are identified as candidate routes, and the roads within these candidate routes are sequentially used as target roads to generate road state prediction requests carrying road identifiers for the target roads. Then, based on the driving trajectory statistics corresponding to each of the two routes, the final target driving navigation route is determined.
[0040] The following explanation uses Route 1 as an example. Route 1 passes through at least four intersections: a, b, c, d, and e. In this embodiment, the road segment between two intersections is used as the target road for trajectory analysis. For example, the first road between intersections a and b is analyzed first, that is, the driving trajectory statistics generated on the first road within the target time period (e.g., within one day) before the current time are obtained, and the road condition of the first road is predicted based on the driving trajectory data corresponding to the first road. Similarly, the driving trajectory statistics of the second road between intersections b and c, the third road between intersections c and d, and the fourth road between intersections d and e are obtained respectively, and the road condition of each road is predicted based on the driving trajectory statistics, thereby determining the smooth flow status of Route 1. Similarly, the smooth flow status of Route 2 is obtained according to the above method. Assuming that Route 2 includes a closed section of road, that is, the smooth flow status of Route 2 is lower than that of Route 1, Route 1 is then used as the recommended driving navigation route.
[0041] Through the above-described embodiments of this application, a road condition prediction request is received, wherein the road condition prediction request is used to predict the road condition of a target road; based on the road condition prediction request, statistical data on driving trajectories generated on the target road within a target time period are obtained, wherein the statistical data on driving trajectories generated by driving in different directions on the target road are statistically analyzed, and the target time period is the time period before the road condition prediction request is received; the road condition of the target road is predicted based on the statistical data on driving trajectories generated on the target road within a target time period; thereby, based on the above steps, upon receiving a road condition prediction request, the traffic condition of the target road is automatically determined based on the statistical data on driving trajectories generated on the target road within a target time period, thereby avoiding the need for manual collection of road traffic condition change data, realizing automatic determination of the road condition of the target road, solving the technical problem of untimely updates to road conditions in related technologies, and thus achieving the technical effect of efficiently and accurately predicting the road condition of the target road.
[0042] As an optional implementation, before obtaining the driving trajectory statistics generated on the target road within the target time period based on the road condition prediction request, the user's GPS trajectory information can be matched with the roads in the road network data. Optionally, a geometry-based matching method, a probability-based matching method, or a Markov chain-based matching method can be used. As a preferred method, a matching-based method can be used to match the user-provided GPS trajectory data with the road data in the road network, which may include the following steps:
[0043] S1, obtain the distance value between the coordinates of the current trajectory point and the candidate road;
[0044] S2, obtain the cosine value of the angle between the current driving direction and the candidate road;
[0045] S3, obtain the weighted sum of the confidence coefficient and the above distance value and cosine value as the confidence level of the candidate road.
[0046] Specifically, in combination Figure 4 The above method will be explained. During the target's journey, its position in the road network is determined based on the GPS location information provided by the target, as shown by point P, and its direction of travel is shown by the dotted line. The next step is to determine the actual route matched to the target in the road network. For example... Figure 4 As shown, the optimal match between a trajectory point p and a road is determined using the distance d from the trajectory point p to the road on the map and the angle α between the trajectory direction and the road. The distances from the trajectory point to road l1 and road l2 are d1 and d2, respectively, and the angles are a1 and a2. Obviously, d1 is less than d2 and a1 is less than a2. The optimal matching degree is calculated by weighting w1*d + w2*cos(a), where w1 and w2 are normalized weights. It is easy to determine that the optimal match is between the trajectory point and road l2.
[0047] As an optional implementation, after obtaining the driving trajectory statistics generated on the target road within the target time period according to the road condition prediction request, the method further includes:
[0048] S1, extract the trajectory features and road connection features of the driving trajectory formed on the target road from the driving trajectory statistics. The trajectory features are used to indicate the traffic type of the driving trajectory formed on the target road, and the road connection features are used to indicate the proportion of vehicles entering the target road from object roads that are directly connected to the target road.
[0049] S2 determines the road status of the target road based on trajectory features and road connection features.
[0050] The trajectory features and road connection features described above are explained below. In this embodiment, the trajectory features may include through-trajectory features and U-turn features, and the connection features may include first-order connection features.
[0051] Specifically, after matching the GPS points returned by the user to the road, the sequence and direction of the roads traversed by the user can be obtained. First, the two directions of a road are denoted as + and -, respectively. Assuming the user traverses roads (A+, B+, B-, C+, D-), then the penetration amount can be calculated once for roads A and C, and the U-turn amount can be calculated once for road B. In another optional implementation, the operation data of the user's U-turn operation can be obtained to increase the operation count of U-turn operations on roads where U-turn operation data has appeared. Next, the penetration amount and U-turn amount of all trajectories on road A within a certain period of a day are added together to obtain the penetration amount and U-turn amount of road A within a day. It can be understood that, in this embodiment, the above penetration amount and U-turn amount can be determined as trajectory features.
[0052] The following combination Figure 5 The transfer ratio of the first-order connector path mentioned above is explained. For example... Figure 5 As shown, road B runs between intersections a and d, road C runs between intersections b and d, road D runs between intersections c and d, and road A runs between intersections d and e. Therefore, road A has three first-order connecting roads: B, C, and D. Assuming the total penetration of roads B, C, and D towards road A (in the direction of the arrow) is G, and g of these penetrations enter road A, then the transfer ratio of the first-order connecting roads is g / G, and the total penetration of the first-order connecting roads is G.
[0053] Through the above-described embodiments of this application, trajectory features and road connection features of the driving trajectory formed on the target road are extracted from driving trajectory statistics. The trajectory features indicate the traffic type of the driving trajectory formed on the target road, and the road connection features indicate the proportion of vehicles entering the target road from object roads directly connected to it. Based on the trajectory features and road connection features, the road state of the target road is determined, thereby determining the road features based on the vehicle driving trajectory data. Obtaining vehicle navigation information data through navigation software is easier and more accurate, with a wider coverage, ensuring the accuracy of feature extraction.
[0054] As an optional implementation, the method for determining the road state of the target road based on trajectory features and road connectivity features includes:
[0055] S1, if the road crossing traffic statistics value in the trajectory features is greater than or equal to the first threshold, the road status of the target road is determined to be in a smooth road state. The road crossing traffic statistics value is used to indicate the statistics value of the entire road covered by the driving trajectory generated within the target time period.
[0056] S2, if the road crossing traffic statistics value in the trajectory features is less than the first threshold, the road status of the target road is determined to be in a road closed state based on the road turning traffic statistics value in the trajectory features. The road turning traffic statistics value is used to indicate the statistics value of the driving trajectory generated within the target time period that covers part of the target road.
[0057] In this embodiment, the status of a target road can be determined based on road traffic statistics. For example, if the road traffic statistics are greater than or equal to a certain threshold within the target statistical period, the target road is considered to be in a smooth state. If the road traffic statistics are less than a certain threshold, the target road can be further determined to be closed by combining the road U-turn traffic statistics.
[0058] Understandably, the aforementioned road turning statistics can be used to indicate the number of U-turn events occurring on the target road. Since vehicles typically make U-turns to leave impassable road sections, these statistics can indicate the number of U-turn events on the target road, and the number of U-turn events can be used to determine whether the target road is closed. In one alternative approach, if the road passage statistics are less than a first threshold and the road turning statistics are greater than a target threshold, it can be determined that the number of passage events on the target road is low, while the number of U-turn events is high. Therefore, the number of U-turn events can be used to determine whether the target road is closed.
[0059] Through the above-described embodiments of this application, the road status of the target road is determined to be in a smooth state when the road penetration traffic statistics value in the trajectory features is greater than or equal to a first threshold, and the road status of the target road is determined to be in a closed state based on the road turn-off traffic statistics value in the trajectory features when the road penetration traffic statistics value in the trajectory features is less than the first threshold, thereby quickly determining the road status of the target road and improving the efficiency of road status determination.
[0060] As an optional implementation, determining that the target road is in a closed state based on the road turning traffic statistics in the trajectory features when the road penetration traffic statistics in the trajectory features are less than the first threshold includes:
[0061] S1, when the road through traffic statistics value is less than the first threshold and the road U-turn traffic statistics value is greater than the second threshold, the first traffic index is determined based on the road through traffic statistics value and the road U-turn traffic statistics value;
[0062] S2, when the road crossing traffic statistics in the trajectory features are less than the first threshold, the first-order road transfer ratio in the road connection features is less than the third threshold, and the first-order connection trajectory number statistics are greater than the fourth threshold, the second traffic index is determined based on the first-order road transfer ratio and the first-order connection trajectory number statistics. The first-order road transfer ratio is used to indicate the ratio between the trajectory number statistics and the first-order connection trajectory number statistics. The trajectory number statistics are used to indicate the number of driving trajectories entering the target road within the target time period. The first-order connection trajectory number statistics are used to indicate the number of driving trajectories entering the object road directly connected to the target road before entering the target road.
[0063] S3, if the first traffic index is greater than the second traffic index, determine that the target road is in a partially closed state.
[0064] S4, if the first traffic index is less than the second traffic index, determine that the target road is in a state of complete road closure.
[0065] The road closure status includes partial road closure and complete road closure.
[0066] The following combination Figure 6 The above method is explained below. In this embodiment, the driving trajectory statistics of the target road over a period of time (one hour / several hours / one day / multiple days) are used to extract the driving trajectory features and connectivity features of the target road. Specifically, the penetration amount (g_num) and U-turn amount (r_num) are used as trajectory features, and the first-order connecting road transfer ratio (t_rate) and the first-order connecting road penetration amount sum (g_t_sum) are used as road connectivity features. Wherein, the penetration amount (g_num) is the sum of the number of vehicle penetration events on the target road within the target time period, the U-turn amount (r_num) is the sum of the number of vehicle U-turn events on the target road within the target time period, the first-order connecting road transfer ratio (t_rate) is the ratio of the penetration amount on the target road to the penetration amount of the first-order connected road set within the target time period, and the first-order connecting road penetration amount sum (g_t_sum) is the sum of the penetration amounts of the first-order connected roads to the target road within the target time period.
[0067] In this embodiment, if the road through traffic statistics in the trajectory features are less than the first threshold and the road turn traffic statistics in the trajectory features are greater than the second threshold, it can be determined that the target road is suspected to be a closed road where U-turns are allowed. Furthermore, a first traffic index is determined based on the road through traffic statistics and the road turn traffic statistics to indicate the probability that the target road is a closed road where U-turns are allowed.
[0068] If the road penetration statistics in the trajectory features are less than the first threshold, and the first-order road transfer ratio in the road connection features is less than the third threshold and the first-order connection trajectory number statistics are greater than the fourth threshold, then the target road can be determined to be a closed road that cannot be turned around, i.e., a fully closed road. Furthermore, based on the first-order road transfer ratio and the first-order connection trajectory number statistics, a second traffic index is determined to indicate the probability that the target road is a closed road that cannot be turned around.
[0069] Furthermore, when the target road is suspected to be both a closed road with U-turns and a closed road with no U-turns, the road condition of the target road is finally determined based on the comparison between the first traffic index and the second traffic index.
[0070] As an optional implementation, the determination of the first traffic index based on road through traffic statistics and road U-turn traffic statistics includes:
[0071] S1, obtain the statistical sum of the road through traffic statistics, the road U-turn traffic statistics, and the reference thresholds that match the road U-turn traffic statistics;
[0072] S2, obtain the ratio of the road turning traffic statistics to the total statistics;
[0073] S3, determine the first passage index based on the ratio.
[0074] As an optional implementation, the determination of the second traffic index based on the first-order road transition ratio and the statistical value of the number of first-order connecting trajectories includes:
[0075] S1, obtain the weighted sum between the first-order road transfer ratio and the reference ratio that matches the statistical value of the number of first-order connecting trajectories;
[0076] S2, determine the second passage index based on the weighted summation result.
[0077] As an optional implementation, after extracting the trajectory features and road connection features of the driving trajectory formed on the target road from the driving trajectory statistics, the method further includes:
[0078] S1, if the road crossing traffic statistics in the trajectory features are greater than or equal to the first threshold, set the first traffic index and the second traffic index as the target values;
[0079] S2, if the road turn-off traffic statistics in the trajectory features are less than or equal to the second threshold, set the first traffic index to the target value;
[0080] S3, if the proportion of first-order road transfers in the road connectivity features is greater than or equal to the third threshold, the second traffic index is set to the target value.
[0081] S3, if the statistical value of the number of first-order connection trajectories mentioned above is less than or equal to the fourth threshold, the second passage index is set as the target value.
[0082] The following provides a detailed explanation of how the first and second traffic indices are calculated.
[0083] like Figure 6 As shown, when a road is partially closed, it typically requires a high U-turn radius and a low penetration radius, meaning it needs to meet the following conditions:
[0084] g_num<5&r_num>5&r_num>3*g_num;
[0085] In other words, if the target road meets the above conditions, the target road is suspected to be in a partially closed state. If the target road does not meet the above conditions, p_close_reverse = 0, meaning the target road is not in a partially closed state.
[0086] Furthermore, if the target road meets the above conditions but is suspected of being partially closed, the confidence level is calculated as follows:
[0087] p_close_reverse=min(1,r_num / (r_num+g_num)+r_num / 50)
[0088] It should be noted that the probability value calculated by the above method through the min function is less than or equal to 1, and the confidence level is corrected by the correction amount r_num / 50, indicating that the greater the U-turn amount, the greater the probability that the road is in a partially closed state.
[0089] When a road is completely closed, it typically requires a low transfer rate and a low penetration rate, meaning it needs to meet the following conditions.
[0090] g_num<5&t_rate<0.2&g_t_sum>10;
[0091] In other words, if the target road meets the above conditions, it is suspected that the target road is in a fully closed state. If the target road does not meet the above conditions, p_close_transfer = 0, meaning the target road is not in a fully closed state.
[0092] Furthermore, if the target road meets the above conditions but is suspected of being completely closed, the confidence level is calculated as follows:
[0093] p_close_transfer=min(1,(1–t_rate)+g_t_sum / 50)
[0094] It should be noted that in the above calculation method, the probability value obtained by the above method is less than or equal to 1 by the min function constraint, and the confidence is corrected by the correction amount g_t_sum / 50, indicating that the greater the penetration of the first-order connecting road, the greater the probability that the road is in a completely closed state.
[0095] Using the method described above in this application, when the road-through traffic statistics in the trajectory features are less than a first threshold and the road-turn traffic statistics in the trajectory features are greater than a second threshold, a first traffic index is determined based on the road-through traffic statistics and the road-turn traffic statistics. The road-through traffic statistics indicate the statistical value of the entire target road covered by the driving trajectory generated within the target time period, and the road-turn traffic statistics indicate the statistical value of the driving trajectory generated within the target time period covering a portion of the target road. When the road-through traffic statistics in the trajectory features are less than the first threshold, and the first-order road transfer ratio in the road connection features is less than a third threshold and the first-order connection trajectory number statistics are greater than a fourth threshold, a first traffic index is determined based on the first-order road transfer ratio and the first-order connection trajectory number statistics. A second traffic index is defined, where the first-order road transfer ratio indicates the ratio between the first-order connection trajectory count and the first-order connecting trajectory count; the trajectory count indicates the number of driving trajectories entering the target road within the target time period; and the first-order connecting trajectory count indicates the number of driving trajectories entering object roads directly connected to the target road before entering the target road. If the first traffic index is greater than the second traffic index, the target road is determined to be in a partially closed state; if the first traffic index is less than the second traffic index, the target road is determined to be in a fully closed state. Thus, by using two different models and based on specific judgment conditions, the closure type of the road can be accurately determined, improving the accuracy of road condition identification.
[0096] As an optional implementation, after predicting the road condition of the target road based on driving trajectory statistics, the method further includes: upon receiving a navigation request associated with the target road, determining a target navigation route based on the road condition of the target road, wherein the navigation request carries a reference navigation route, and the reference navigation route includes the target road.
[0097] As an optional method, determining the target navigation route based on the road conditions of the target road includes:
[0098] S1, if the driving trajectory statistics indicate that the conditions for passage are met, determine that the road status of the target road is in a passable state, and determine the reference navigation route as the target navigation route;
[0099] S2, when the driving trajectory statistics indicate that the first road closure condition is met, the road status of the target road is determined to be in a partially closed state, the target road in the reference navigation route is replaced with the first candidate road, and the updated reference navigation route is determined as the target navigation route, wherein the first candidate road is in a passable state.
[0100] S3, if the driving trajectory statistics indicate that the second road closure condition is met, determine that the target road is in a fully closed state, replace the target road in the reference navigation route with the second candidate road, and determine the updated reference navigation route as the target navigation route, wherein the second candidate road is in a passable state.
[0101] It is understood that in this embodiment, when the current navigation information is obtained, the traffic status of multiple target roads included in the navigation route in the current navigation information will be quickly obtained according to the above method. If there is a partial or complete closure status among the multiple target roads, the partially or completely closed status in the navigation route will be replaced with the reference road in the traffic status, thereby providing the user with an accurate navigation route in a timely manner.
[0102] Through the above-described embodiments of this application, when the driving trajectory statistics indicate that the road condition meets the traffic requirements, the road status of the target road is determined to be open, and the reference navigation route is determined as the target navigation route; when the driving trajectory statistics indicate that the road condition meets the first road closure condition, the road status of the target road is determined to be partially closed, the target road in the reference navigation route is replaced with a first candidate road, and the updated reference navigation route is determined as the target navigation route, wherein the first candidate road is open; when the driving trajectory statistics indicate that the road condition meets the second road closure condition, the road status of the target road is determined to be fully closed, the target road in the reference navigation route is replaced with a second candidate road, and the updated reference navigation route is determined as the target navigation route, wherein the second candidate road is open. This invention updates dynamic road network data in a timely manner by calculating changes in road capacity. Through the above-described embodiments of this application, during vehicle navigation, the navigation system is helped to avoid roads with poor traffic capacity, improving the user experience.
[0103] The following combination Figure 7 The flowchart shown illustrates a specific and complete embodiment of this application.
[0104] For example, in step S702, input data: road data, user trajectory;
[0105] In step S702, the input features are first prepared. This mainly involves acquiring trajectory data, specifically user navigation information uploaded by navigation software, including navigation routes and user driving routes.
[0106] Next, as in step S704, road feature processing and calculation;
[0107] In step S704, the obtained road features include traffic flow features: that is, calculating the penetration amount, U-turn amount, and transfer ratio of a user on a certain road through trajectory road matching.
[0108] First, trajectory map matching is performed. The data used are trajectory data and map road data. The trajectory data is the data generated during the vehicle's journey and uploaded to the platform by the navigation software. The map road data is a data set that reflects the characteristics of each road. There are many methods for trajectory map matching, such as geometry-based matching, probability-based matching, and Markov chain-based matching. Here, we use the geometry matching method.
[0109] like Figure 4 As shown, the best match between the trajectory and the road is determined by the distance d from the trajectory point p to the road on the map and the angle a between the trajectory direction and the road. The distances from the trajectory point to road l1 and road l2 are d1 and d2, respectively, and the angles are a1 and a2. Obviously, d1 is less than d2 and a1 is less than a2. The optimal matching degree is calculated by weighted calculation w1*d+w2*cos(a), where w1 and w2 are normalized weights. The optimal match is when the trajectory point matches to l2.
[0110] Next, the penetration and U-turn amounts are calculated. After matching the GPS points returned by the user onto the road, the order and direction of the roads traversed by the user can be obtained. The two directions of a road are denoted as + and -. Assuming the user traverses road A+–B+-B-–C+–D-, then the penetration amount can be calculated once for roads A and C, and the U-turn amount can be calculated once for road B. The penetration and U-turn amounts of all trajectories of road A within a certain period of a day are added together to obtain the penetration and U-turn amounts of road A in that specific time period.
[0111] Next, calculate the transfer ratio of the first-order connecting roads and the sum of the penetration amounts of the first-order connecting roads. Assume that there are three first-order connecting roads B, C, and D for road A, and the total penetration amount of B, C, and D is G. Among them, g vehicles enter road A. Then, the transfer ratio of the first-order connecting roads of road A is g / G, and the sum of the penetration amounts of the first-order connecting roads is G.
[0112] Road conditions: Known basic road attributes, such as road construction causing a significant decrease in traffic capacity, road closures causing impassability, changes in traffic rules, and poor road conditions preventing certain vehicle types from passing.
[0113] Next, as in step S706, the road traffic status is determined based on the traffic capacity model;
[0114] like Figure 6 As shown, the statistical features of user operation records over a period of time (one hour / several hours / one day / multiple days) are: penetration rate (g_num), U-turn rate (r_num), first-order connector transfer rate (t_rate), and first-order connector penetration sum (g_t_sum).
[0115] In the U-turn closure model, excavating road closures using the U-turn model requires a high U-turn margin and a low penetration margin, and must meet the following conditions:
[0116] g_num<5&r_num>5&r_num>3*g_num;
[0117] Otherwise, p_close_reverse = 0
[0118] When the conditions are met:
[0119] p_close_reverse=min(1,r_num / (r_num+g_num)+r_num / 50)
[0120] In the transfer closure model, using the transfer model to excavate road closures requires a low transfer ratio and a low penetration amount, and must meet the following conditions:
[0121] g_num<5&t_rate<0.2&g_t_sum>10;
[0122] Otherwise, p_close_transfer = 0
[0123] When the conditions are met:
[0124] p_close_transfer=min(1,(1–t_rate)*g_t_sum / 50).
[0125] Finally, as in step S708, output the form and probability of changes in road capacity.
[0126] It is understandable that the above method can be used to obtain the probability that the target road is in a closed state for turning or a closed state for turning around. In this embodiment, the state with the higher probability can be output.
[0127] The method described in this application receives a road condition prediction request, which is used to predict the road condition of a target road. Based on the road condition prediction request, it obtains statistical data on driving trajectories generated on the target road within a target time period. This statistical data is obtained by statistically analyzing driving trajectories formed by driving in different directions on the target road, and the target time period is the time period prior to receiving the road condition prediction request. The method then predicts the road condition of the target road based on the driving trajectory statistical data. Thus, upon receiving a road condition prediction request, the method automatically determines the traffic condition of the target road based on the driving trajectory statistical data within the target time period. This avoids the need for manual collection of road traffic condition change data, achieves automatic determination of the target road's condition, solves the technical problem of untimely road condition updates in related technologies, and ultimately achieves the technical effect of efficiently and accurately predicting the road condition of the target road.
[0128] Compared with existing solutions, the above implementation method also has the following technical advantages:
[0129] First, data acquisition is simple; relying on navigation software, a large amount of data can be acquired over a wide range, resulting in low data collection costs and broad coverage.
[0130] Secondly, the calculation is simple and the features are clear. Existing solutions require a large number of features for calculation, and their usability needs to be evaluated, such as weather and whether the road capacity is saturated. They are also computationally complex, requiring the construction of multi-layered statistical analysis models, resulting in accurate but impractical traffic capacity calculations. This solution can utilize a large amount of data, and classifying traffic capacity into poor and normal categories can meet the needs of vehicle navigation. It is computationally simple, and existing traffic capacity data in the map can provide support. Obtaining vehicle navigation information data through navigation software is easy and reliable, and has a wide coverage. Furthermore, the calculation method of this invention is minimally affected by a single trajectory and has strong resistance to interference from abnormal data.
[0131] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0132] According to another aspect of the present invention, a road condition prediction apparatus for implementing the above-described road condition prediction method is also provided. For example... Figure 8 As shown, the device includes:
[0133] The receiving unit 802 is configured to receive a road condition prediction request, wherein the road condition prediction request is used to predict the road condition of a target road.
[0134] The acquisition unit 804 is used to acquire driving trajectory statistics generated on the target road within the target time period according to the road condition prediction request. The driving trajectory statistics are the result data obtained by statistically analyzing the driving trajectories formed by driving in different driving directions on the target road. The target time period is the time period before the road condition prediction request is received.
[0135] The prediction unit 806 is used to predict the road condition of the target road based on driving trajectory statistics.
[0136] Optionally, in this embodiment, the implementation of each of the above-mentioned unit modules can be referred to the above-mentioned method embodiments, which will not be repeated here.
[0137] According to another aspect of the present invention, an electronic device for implementing the above-described road condition prediction method is also provided, the electronic device being... Figure 9 The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. Figure 9 As shown, the electronic device includes a memory 902 and a processor 904. The memory 902 stores a computer program, and the processor 904 is configured to execute the steps of any of the above method embodiments through the computer program.
[0138] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0139] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0140] S1, Receive a road condition prediction request, wherein the road condition prediction request is used to predict the road condition of the target road;
[0141] S2, obtain driving trajectory statistics generated on the target road within the target time period according to the road condition prediction request. The driving trajectory statistics are the result data obtained by statistically analyzing the driving trajectories formed by driving in different directions on the target road. The target time period is the time period before the road condition prediction request is received.
[0142] S3 is used to predict the road condition of the target road based on driving trajectory statistics.
[0143] Alternatively, as those skilled in the art will understand, Figure 9The structure shown is for illustrative purposes only. Electronic devices can also be in-vehicle terminals, smartphones (such as Android phones, iOS phones, etc.), tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 9 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 9 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 9 The different configurations shown.
[0144] The memory 902 can be used to store software programs and modules, such as the program instructions / modules corresponding to the road condition prediction method and device in this embodiment of the invention. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, thereby realizing the aforementioned road condition prediction method. The memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 902 may further include memory remotely located relative to the processor 904, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 902 may be used, but is not limited to, to store image recognition models for identifying entities, event information corresponding to entity objects, and other information. As an example, such as... Figure 9 As shown, the memory 902 may include, but is not limited to, the receiving unit 802, the acquisition unit 804, and the prediction unit 806 in the road state prediction device. Furthermore, it may include, but is not limited to, other module units in the road state prediction device, which will not be elaborated upon in this example.
[0145] Optionally, the transmission device 906 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 906 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 906 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0146] In addition, the aforementioned electronic device also includes a display 908 and a connection bus 910 for connecting the various module components in the aforementioned electronic device.
[0147] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0148] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.
[0149] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0150] According to one aspect of this application, a computer-readable storage medium is provided, from which a processor of a computer device reads computer instructions, and the processor executes the computer instructions, causing the computer device to perform the aforementioned road state prediction method.
[0151] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0152] S1, Receive a road condition prediction request, wherein the road condition prediction request is used to predict the road condition of the target road;
[0153] S2, obtain driving trajectory statistics generated on the target road within the target time period according to the road condition prediction request. The driving trajectory statistics are the result data obtained by statistically analyzing the driving trajectories formed by driving in different directions on the target road. The target time period is the time period before the road condition prediction request is received.
[0154] S3 is used to predict the road condition of the target road based on driving trajectory statistics.
[0155] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0156] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0157] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0158] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0159] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0160] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0161] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for predicting road conditions, characterized in that, include: Receive a road condition prediction request for predicting the road condition of a target road; According to the road condition prediction request, obtain the driving trajectory statistics generated on the target road within the target time period. The driving trajectory statistics are the result data obtained by statistically analyzing the driving trajectories formed by driving on the target road in different driving directions. The target time period is the time period before the road condition prediction request is received. The driving trajectory statistics include road through traffic statistics, road U-turn traffic statistics, first-order connecting trajectory count statistics, and first-order road transfer ratio. The road through traffic statistics are the statistical results of driving trajectories covering all sections of the target road. The road U-turn statistics are the statistical results of driving trajectories covering a portion of the target road. The first-order connecting trajectory count statistics are the statistical results of the number of driving trajectories that enter object roads directly connected to the target road before entering the target road. The first-order road transfer ratio is the sum of the trajectory count statistics and the first-order connecting trajectory count statistics. The ratio between the calculated values, wherein the trajectory quantity statistics are the statistical values of the number of driving trajectories entering the target road within the target time period; when the road through traffic statistics are less than a first threshold and the road U-turn traffic statistics are greater than a second threshold, the statistical sum of the road through traffic statistics, the road U-turn traffic statistics, and the reference threshold matching the road U-turn traffic statistics is obtained, and the ratio of the road U-turn traffic statistics to the statistical sum is obtained, and a first traffic index is determined based on the ratio, wherein the first traffic index is used to indicate the probability that the target road is a closed road where U-turns are allowed; When the road penetration statistics are less than the first threshold, the first-order road transfer ratio is less than the third threshold, and the first-order connecting trajectory number statistics are greater than the fourth threshold, a weighted summation result is obtained between the first-order road transfer ratio and a reference ratio that matches the first-order connecting trajectory number statistics. A second traffic index is determined based on the weighted summation result, wherein the second traffic index is used to indicate the probability that the target road is a closed road with no U-turns. If the road traffic statistics value is less than the first threshold and the first traffic index is greater than the second traffic index, the road status of the target road is determined to be partially closed. If the road traffic statistics value is less than the first threshold and the first traffic index is less than the second traffic index, the road status of the target road is determined to be a fully closed state.
2. The method according to claim 1, characterized in that, The method further includes: If the road traffic statistics value is greater than or equal to the first threshold, the road status of the target road is determined to be in a smooth traffic state.
3. The method according to claim 1, characterized in that, After extracting the road through traffic statistics, road U-turn traffic statistics, first-order connecting trajectory number statistics, and first-order road transfer ratio from the driving trajectory statistics, the method further includes: If the road traffic statistics value is greater than or equal to the first threshold, the first traffic index and the second traffic index are set to target values; If the road U-turn traffic statistics value is less than or equal to the second threshold, the first traffic index is set to the target value. If the first-order road transfer ratio is greater than or equal to the third threshold, the second traffic index is set to the target value; If the statistical value of the number of first-order connection trajectories is less than or equal to the fourth threshold, the second passage index is set to the target value.
4. The method according to claim 1, characterized in that, After predicting the road condition of the target road based on the first traffic index, the second traffic index, and the road through traffic statistics, the method further includes: Upon receiving a navigation request associated with the target road, a target navigation route is determined based on the road conditions of the target road, wherein the navigation request carries a reference navigation route, which includes the target road.
5. The method according to claim 4, characterized in that, Determining the target navigation route based on the road conditions of the target road includes: If the driving trajectory statistics indicate that the conditions for passage are met, it is determined that the road status of the target road is open to traffic, and the reference navigation route is determined as the target navigation route; If the driving trajectory statistics indicate that the first road closure condition is met, it is determined that the road status of the target road is in a partially closed state. The target road in the reference navigation route is replaced with a first candidate road, and the updated reference navigation route is determined as the target navigation route, wherein the first candidate road is in a passable state. If the driving trajectory statistics indicate that the second road closure condition is met, it is determined that the target road is in a fully closed state. The target road in the reference navigation route is replaced with the second candidate road, and the updated reference navigation route is determined as the target navigation route, wherein the second candidate road is in a passable state.
6. A road condition prediction device, characterized in that, include: The receiving unit is used to receive a road condition prediction request for predicting the road condition of a target road. The acquisition unit is configured to acquire driving trajectory statistics generated on the target road within a target time period according to the road condition prediction request. The driving trajectory statistics are the result data obtained by statistically analyzing the driving trajectories formed by driving in different driving directions on the target road. The target time period is the time period before the road condition prediction request is received. The prediction unit is used to determine that the road status of the target road is in a partially closed state when the road penetration statistics value is less than a first threshold and the first traffic index is greater than a second traffic index; and to determine that the road status of the target road is in a fully closed state when the road penetration statistics value is less than the first threshold and the first traffic index is less than the second traffic index. The device is further configured to, after obtaining driving trajectory statistics generated on the target road within a target time period according to the road condition prediction request, extract the road through traffic statistics, road U-turn traffic statistics, first-order connecting trajectory quantity statistics, and first-order road transfer ratio from the driving trajectory statistics. The road through traffic statistics are the statistical results of driving trajectories covering all road segments of the target road, the road U-turn statistics are the statistical results of driving trajectories covering some road segments of the target road, the first-order connecting trajectory quantity statistics are the statistical results of the number of driving trajectories entering object roads directly connected to the target road before entering the target road, the first-order road transfer ratio is the ratio between the trajectory quantity statistics and the first-order connecting trajectory quantity statistics, and the trajectory quantity statistics are the statistical results of the number of driving trajectories entering the target road within the target time period. The device is further configured to, after extracting the road through traffic statistics, road U-turn traffic statistics, first-order connecting trajectory number statistics, and first-order road transfer ratio from the driving trajectory statistics, when the road through traffic statistics are less than the first threshold and the road U-turn traffic statistics are greater than the second threshold, obtain a statistical sum of the road through traffic statistics, the road U-turn traffic statistics, and a reference threshold matching the road U-turn traffic statistics, and obtain the ratio of the road U-turn traffic statistics to the statistical sum, and determine the first passage based on the ratio. The traffic index is defined as follows: First, the traffic index indicates the probability that the target road is a closed road where U-turns are permitted; when the road penetration statistics are less than the first threshold, the first-order road transfer ratio is less than the third threshold, and the first-order connecting trajectory number statistics are greater than the fourth threshold, a weighted summation of the first-order road transfer ratio and a reference ratio matching the first-order connecting trajectory number statistics is obtained, and a second traffic index is determined based on the weighted summation result, wherein the second traffic index indicates the probability that the target road is a closed road where U-turns are not permitted.
7. A storage medium, characterized in that, The storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 5.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the method described in any one of claims 1 to 5 through the computer program.
Citation Information
Patent Citations
Road closing detection method based on multi-feature fusion
CN113554869A
