Smart city data processing method and system based on digital twin

Through the digital twin platform, the traffic capacity of road vehicles and the bus parking points are predicted, which solves the congestion problem caused by bus dispatch during peak hours, and achieves efficient traffic in congested sections and passengers get on and off the bus.

CN118629198BActive Publication Date: 2024-11-19YANCHENG KUANGYING INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410605330.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-11-19
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

In smart cities, fixed route dispatch of buses during peak hours leads to congestion. When buses frequently arrive at the station and stop, vehicles behind cannot move forward, which affects traffic efficiency and may cause accidents.

Method used

Through the digital twin platform, the bus capacity is monitored in real time, the bus stops are predicted, and alternative stations are set up in congested sections. The bus stops at the alternative stations to avoid the vehicles behind them and improve traffic efficiency.

Benefits of technology

It effectively avoids the situation where the rear vehicles are blocked when the bus stops at the station, improves traffic efficiency, and completes passengers getting on and off while waiting for the red light, reducing driving emotional stress and accident risk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629198B_ABST
    Figure CN118629198B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and specifically discloses a smart city data processing method and system based on digital twins, comprising the following steps: Step S1: obtaining urban roads according to an urban road digital twin platform, dividing the urban roads into several sections according to traffic lights, and obtaining section information of the sections; Step S2: obtaining the length and width of the vehicle body to obtain the vehicle capacity of the section in real time, and when the number of consecutive acquisitions of the vehicle capacity of the section greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, obtaining the congestion time period and the congested section; Step S3: obtaining the forward distance of the convoy at each round of green light according to the front line and the pre-front line; when the bus arrives at the tail of the convoy from the rightmost lane, each average forward distance along the forward direction starting from the starting line is recorded as a predicted stopping point; Step S4: selecting the predicted stopping point closest to the bus stop from all the predicted stopping points as a replacement site for the bus stop.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a smart city data processing method and system based on digital twins. Background Art

[0002] A smart city is an urban development model that uses advanced technologies and information and communication technologies to improve urban operating efficiency, optimize resource utilization, and improve the quality of life of residents; these technologies include the Internet of Things, big data analysis, artificial intelligence, cloud computing, etc.; the goal of a smart city is to achieve more efficient urban management and services by connecting various urban systems and facilities.

[0003] In the data processing of smart cities, various urban infrastructure and services can be monitored, controlled and optimized through the Internet; for example, the transportation system can optimize traffic flow and improve traffic efficiency through real-time data analysis.

[0004] In the prior art, the dispatching of buses in cities is mostly to maintain fixed routes, and increase the frequency of bus departures on routes with a high number of passengers getting on and off during peak hours. However, in actual situations, routes during peak hours are often in congested roads, and the distance between private cars on the road is small and the moving speed is slow. Due to the increase in the number of bus departures during peak hours, it is easy for multiple buses to accumulate in congested sections. Moreover, in congested sections, when a bus stops at a station during passage, the rear vehicles cannot continue to move forward, and the road is congested and it is difficult to change lanes. In addition, since the bus models are large, when a bus in a congested section needs to change lanes, it seriously affects the normal passage of private cars in the remaining lanes. The above situations greatly affect the traffic efficiency and are likely to affect the driver's driving mood, thereby causing accidents and conflicts. Summary of the invention

[0005] The purpose of the present invention is to provide a smart city data processing method and system based on digital twins to solve the above technical problems.

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] The smart city data processing method based on digital twins includes the following steps:

[0008] Step S1: obtaining an urban road according to the urban road digital twin platform provided by the Urban Planning Bureau, dividing the urban road into several sections according to traffic lights, and obtaining section information of the section; the section information includes the section width k, the section length s, and the number of vehicles n;

[0009] Step S2: according to the road section information, the vehicle capacity of the road section is obtained in real time; and a vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of the road section is continuously obtained to be greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the congestion time period of the road section is determined, and the road section in the congestion time period is recorded as a congested road section;

[0010] Step S3: respectively obtain images of the congested road section at the beginning and end of the green light; mark all the vehicles in the front row in the image at the end of the green light, and connect the marks to obtain the front line; and determine the positions of all the above vehicles in the image at the beginning of the green light, re-mark and connect all the vehicles to obtain the pre-front line; obtain the distance between the front line and the pre-front line, and record it as the forward distance of the convoy at the green light of this round;

[0011] When the bus arrives at the end of the convoy from the rightmost lane, the advance distance of the convoy {L1, L2, ..., L r}, where L1 represents the forward distance of the convoy at the first round of green lights, and r is the number of green lights that have appeared in the congestion period before the bus enters the tail of the convoy; and the average forward distance L of the convoy is obtained; the front of the bus is taken as the starting line, and each L distance along the forward direction from the starting line is recorded as a predicted stopping point;

[0012] Step S4: Obtain the standard deviation σ of the advance distance, where: ;

[0013] Get the location of the bus stop in the congested road section, and select the predicted stopping point closest to the bus stop from all the predicted stopping points; take the nearest predicted stopping point as the midpoint, and extend a distance σ from the midpoint in the forward and backward directions to obtain an area, which is recorded as the alternative station of the bus stop. The bus completes the stop at the alternative station.

[0014] As a further solution of the present invention: in step S1, the process of dividing the road section includes:

[0015] Selecting the location of a traffic light on a city road, taking the location of the traffic light as a node, and obtaining a plurality of nodes on the city road;

[0016] Every two adjacent nodes are recorded as a road section, and several road sections are obtained.

[0017] As a further solution of the present invention: in step S2, the process of setting the vehicle capacity threshold includes:

[0018] In the urban road digital twin platform, the vehicle capacity of the road section at different times is obtained, and the average speed V=s / t required for vehicles to pass through the road section under the corresponding vehicle capacity is obtained, where t is the time for the vehicle to pass through the road section;

[0019] By matching the vehicle capacity with the average speed one by one, we can obtain the point set {(D1, V1), (D2, V2), ..., (D m , V m )}, where m is the number of vehicle capacities obtained, and (D1, V1) represents the average speed corresponding to the first vehicle capacity;

[0020] Set the congestion speed threshold range to [0km / h, 10km / h], select all the vehicle capacities whose average speeds belong to the congestion speed threshold range in the point set, and record them as the congestion vehicle capacity, then the vehicle capacity threshold of the road section is obtained. , where j is the number of congested vehicle capacities, Dc i represents the capacity of the i-th congested vehicle.

[0021] As a further solution of the present invention: in step S2, the process of determining the congested time period and the congested road section includes:

[0022] Get the length and width of the vehicle and record them as h1 and h2 respectively, and obtain the vehicle capacity of the road section in real time ;

[0023] A vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of a road section is greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the time corresponding to the first acquisition is taken as the start time, and the time corresponding to the Nth acquisition is taken as the end time. The time between the start time and the end time is recorded as the congestion time period, and the road section in the congestion time period is recorded as the congested road section. As a further solution of the present invention: in step S2, the process of setting the number threshold includes:

[0024] Set a time interval threshold Tit, and Tit∈(0s, 5s). In the process of obtaining the vehicle capacity of the road section in real time, obtain the vehicle capacity of the road section once every time interval threshold;

[0025] Set the time period threshold T, and T≥10min, then the number threshold Nt=60T / Tit.

[0026] As a further solution of the present invention: in step S3, the process of obtaining the front line and the pre-front line includes:

[0027] After marking the vehicle, each mark is regarded as a point to obtain a discrete point diagram, and the discrete point diagram is fitted according to the least square method to obtain a regression line, which is the front line or the pre-front line.

[0028] As a further solution of the present invention: in step S3, the process of determining that the bus has reached the rear of the fleet includes:

[0029] Get the distance between each vehicle in the fleet, get the average distance Ad, and get the standard deviation σ1 of all the distances; then get the distance threshold range (0, Ad+σ1);

[0030] The rear of the last vehicle on the rightmost lane of the convoy is obtained in real time in the image and recorded as the tail line; when the speed of the bus is 0 and is at a distance (0, Ad+σ1) behind the tail line, the bus is recorded as arriving at the tail of the convoy.

[0031] As a further solution of the present invention: a smart city data processing system based on digital twins includes the following modules:

[0032] City information acquisition module: obtains city roads according to the city road digital twin platform provided by the Urban Planning Bureau, divides the city roads into several sections according to traffic lights, and obtains the section information of the sections; the section information includes the section width k, the section length s, and the number of vehicles n;

[0033] Congested road section determination module: according to the road section information, the vehicle capacity of the road section is obtained in real time; and a vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of the road section is continuously obtained to be greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the congested time period of the road section is determined, and the road section in the congested time period is recorded as a congested road section;

[0034] Predictive parking module: obtain images of the congested road section at the beginning and end of the green light respectively; mark all the vehicles in the front row in the image at the end of the green light, and connect the marks to obtain the front line; determine the positions of all the above vehicles in the image at the beginning of the green light, re-mark and connect all the vehicles to obtain the pre-front line; obtain the distance between the front line and the pre-front line, and record it as the forward distance of the team at the green light of this round;

[0035] When the bus arrives at the end of the convoy from the rightmost lane, the advance distance of the convoy {L1, L2, ..., L r}, where L1 represents the forward distance of the convoy at the first round of green lights, and r is the number of green lights that have appeared in the congestion period before the bus enters the tail of the convoy; and the average forward distance L of the convoy is obtained; the front of the bus is taken as the starting line, and each L distance along the forward direction from the starting line is recorded as a predicted stopping point;

[0036] Station replacement module: Get the standard deviation σ of the advance distance, where: ;

[0037] Get the location of the bus stop in the congested road section, and select the predicted stopping point closest to the bus stop from all the predicted stopping points; take the nearest predicted stopping point as the midpoint, and extend a distance σ from the midpoint in the forward and backward directions to obtain an area, which is recorded as the alternative station of the bus stop. The bus completes the stop at the alternative station.

[0038] Beneficial effects of the present invention:

[0039] In the prior art, the dispatching of buses in cities is mostly to maintain fixed routes, and increase the frequency of buses on routes with a high number of passengers getting on and off during peak hours; however, in actual situations, routes during peak hours are often in congested roads, where private cars are closely spaced and move slowly. Due to the increase in the number of bus departures during peak hours, it is easy for multiple buses to pile up in congested sections; and in congested sections, when a bus stops at a station during travel, the vehicles behind it cannot continue to move forward, and it is difficult to change lanes due to congestion; in addition, because buses are large in size, when a bus in a congested section needs to change lanes, it seriously affects the private cars in the remaining lanes. Normal traffic; the above situations greatly affect the traffic efficiency and easily affect the driver's driving mood, thus causing accidents and conflicts; compared with the prior art, the present invention obtains the forward distance of the convoy under each round of green light in the congested section, and predicts all the predicted stopping points of the bus according to the position of entering the tail of the convoy; and obtains the position of the bus stop in the congested section, and selects the predicted stopping point closest to the bus stop position among all the predicted stopping points as the alternative station for the bus stop; this method can avoid the situation where the rear vehicles cannot continue to move forward when the bus stops at the station during the passage of the congested section, and completes the boarding and alighting of passengers while the bus is waiting for the red light, thereby improving the traffic efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The present invention will be further described below in conjunction with the accompanying drawings.

[0041] Figure 1 It is a structural schematic diagram of the smart city data processing method and system based on digital twins of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] See also Figure 1 As shown, the present invention is a smart city data processing method based on digital twins, comprising the following steps:

[0044] Step S1: obtaining an urban road according to the urban road digital twin platform provided by the Urban Planning Bureau, dividing the urban road into several sections according to traffic lights, and obtaining section information of the section; the section information includes the section width k, the section length s, and the number of vehicles n;

[0045] It is worth noting that the process of obtaining the road section width includes: when there are often parking or vendors on both sides of the road section, the width of the road section occupied by parking and vendors is recorded as the occupied width Ok; a number of road section nodes are selected in the road section, and the effective width Ek=k-Ok at each road section node is obtained, and the average value of the effective width of each road section node is obtained as the road section width of the road section;

[0046] The process of dividing the road section includes:

[0047] Selecting the location of a traffic light on a city road, taking the location of the traffic light as a node, and obtaining a plurality of nodes on the city road;

[0048] Every two adjacent nodes are recorded as a road section, and several road sections are obtained;

[0049] Step S2: according to the road section information, the vehicle capacity of the road section is obtained in real time; and a vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of the road section is continuously obtained to be greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the congestion time period of the road section is determined, and the road section in the congestion time period is recorded as a congested road section;

[0050] The process of setting the vehicle capacity threshold includes:

[0051] In the urban road digital twin platform, the vehicle capacity of the road section at different times is obtained, and the average speed V=s / t required for vehicles to pass through the road section under the corresponding vehicle capacity is obtained, where t is the time for the vehicle to pass through the road section;

[0052] By matching the vehicle capacity with the average speed one by one, we can obtain the point set {(D1, V1), (D2, V2), ..., (D m , V m )}, where m is the number of vehicle capacities obtained, and (D1, V1) represents the average speed corresponding to the first vehicle capacity;

[0053] It should be further explained that the road conditions of different sections will indeed lead to differences in vehicle capacity during congestion; the width of the road, the number of lanes, the turning design, etc. will affect the number of vehicles it can accommodate. For example, compared with a two-way four-lane highway, a multi-lane highway will have different operating characteristics in terms of traffic flow, speed and headway; including the geographical location of the section, the surrounding environment, weather conditions, etc., may all have an impact on traffic flow; therefore, the vehicle capacity thresholds of different sections are different, and the vehicle capacity of the same section at different times will also be different; set the congestion speed threshold range to [0km / h, 10km / h], select all the vehicle capacities whose corresponding average speeds belong to the congestion speed threshold range in the point set, and record them as the congested vehicle capacity, then the vehicle capacity threshold of the section is obtained , where j is the number of congested vehicle capacities, Dc i represents the capacity of the i-th congested vehicle;

[0054] It is understandable that the degree of traffic congestion is closely related to vehicle speed. Generally, when the vehicle speed is less than 10 km / h, it can be considered that the road traffic is already in a congested state. According to the severity of traffic congestion, we have formulated the following national traffic congestion level classification standard table to uniformly evaluate and manage the traffic congestion level in different regions:

[0055] Level 1 congestion: The road capacity is seriously overloaded, and the traffic flow is more than -200% higher than the road design index; the traffic speed is extremely slow, the average driving speed is less than 10 kilometers per hour, the traffic jam is serious, and the traffic flow cannot proceed normally. Emergency measures must be taken immediately, such as increasing traffic police force, adjusting traffic light time, etc. Level 2 congestion: The road capacity is overloaded, and the traffic flow is more than 150% higher than the road design index; the traffic speed is slow, and the average driving speed is less than 20 kilometers per hour; the traffic jam is obvious, and the traffic flow is affected to a certain extent. Corresponding measures need to be taken to alleviate the congestion, such as adding traffic signs, strengthening patrols, etc. Level 3 congestion: The road capacity is close to saturation, and the traffic flow is more than 100% higher than the road design index; the traffic speed is slow, and the traffic is The average driving speed is lower than 30 kilometers per hour, traffic congestion is slight, and vehicle driving is subject to certain restrictions; Level 4 congestion: road capacity is close to saturation, and traffic flow is close to or slightly higher than the road design index; traffic speed is normal, the average driving speed is between 30-40 kilometers per hour, and the traffic flow is relatively smooth, but traffic bottlenecks may occur. It is necessary to continuously monitor traffic conditions and rationally plan traffic development. Traffic congestion can be alleviated by improving traffic signals and optimizing traffic routes. Level 5 congestion: road capacity is not saturated, traffic flow is lower than the road design index, traffic speed is normal, and the average driving speed is above 40 kilometers per hour; traffic is smooth and there is no obvious traffic congestion; therefore, the congestion speed threshold range is set to [0km / h, 10km / h], and it is in level 1 congestion at this time;

[0056] The process of determining the congested time period and the congested road section includes:

[0057] Get the length and width of the vehicle and record them as h1 and h2 respectively, and obtain the vehicle capacity of the road section in real time ;

[0058] A vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of a road section is continuously obtained to be greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the time corresponding to the first acquisition is taken as the start time, and the time corresponding to the Nth acquisition is taken as the end time. The time between the start time and the end time is recorded as the congestion time period, and the road section in the congestion time period is recorded as the congested road section;

[0059] It is worth noting that the congestion time period includes the date and time, and the date is marked as a weekday or a holiday; the congestion time on weekdays and holidays is different, which is determined by people's travel habits and activity arrangements. On weekdays, people usually go to and from get off work in a fixed time period, resulting in traffic congestion during peak hours in the morning and evening. For example, the morning peak usually occurs from 7:30 to 8:30, and the evening peak occurs in a certain time period in the afternoon. In addition, the congestion duration on weekdays may vary depending on the road section, and some places may have longer congestion time; people's travel time and purpose on holidays are more diversified, no longer limited to going to and from get off work, but include leisure, tourism, etc.; this may lead to a wider distribution of congestion time, no longer concentrated in specific morning and evening time periods. Holiday congestion is often related to the flow of people in tourist attractions, commercial areas or activity locations, and congestion may occur throughout the day;

[0060] The process of setting the number threshold includes:

[0061] Set a time interval threshold Tit, and Tit∈(0s, 5s). In the process of obtaining the vehicle capacity of the road section in real time, obtain the vehicle capacity of the road section once every time interval threshold;

[0062] Set the time period threshold T, and T≥10min, then the number threshold Nt=60T / Tit;

[0063] It is understandable that for congestion that can be cleared in a short time, it does not affect the overall travel efficiency, so the time period threshold T is set to ≥ 10min;

[0064] Step S3: respectively obtain images of the congested road section at the beginning and end of the green light; mark all the vehicles in the front row in the image at the end of the green light, and connect the marks to obtain the front line; and determine the positions of all the above vehicles in the image at the beginning of the green light, re-mark and connect all the vehicles to obtain the pre-front line; obtain the distance between the front line and the pre-front line, and record it as the forward distance of the convoy at the green light of this round;

[0065] When the bus arrives at the end of the convoy from the rightmost lane, the advance distance of the convoy {L1, L2, ..., L r}, where L1 represents the forward distance of the convoy at the first round of green lights, and r is the number of green lights that have appeared in the congestion period before the bus enters the tail of the convoy; and the average forward distance L of the convoy is obtained; the front of the bus is taken as the starting line, and each L distance along the forward direction from the starting line is recorded as a predicted stopping point;

[0066] The process of obtaining the front line and the pre-front line includes:

[0067] After marking the vehicle, each mark is regarded as a point to obtain a discrete point graph, and the discrete point graph is fitted according to the least square method to obtain a regression line, which is the front line or the pre-front line;

[0068] It can be understood that after considering each mark as a point, a point is randomly selected as the origin, the interval of the number axis is randomly set, and a rectangular coordinate system is established with the origin, so that all points can be recorded as a coordinate point to obtain a discrete point diagram; the coordinates of the center point are obtained according to the average value of the horizontal coordinates of each coordinate point and the average value of the vertical coordinates; a regression equation is set, and the slope and intercept of the regression equation are unknown coefficients, and the center point is substituted into the regression equation, and the values ​​of the slope and intercept are obtained according to the least squares method, and the final regression equation is obtained, which is recorded as the regression line of the discrete point diagram;

[0069] It should be further explained that, according to the rectangular coordinate system established above, the straight line equations of the front row line and the pre-front row line are obtained, and according to the distance formula between the two straight lines, the distance between the front row line and the pre-front row line is calculated;

[0070] The process of determining that the bus has arrived at the rear of the fleet includes:

[0071] Get the distance between each vehicle in the fleet, get the average distance Ad, and get the standard deviation σ1 of all the distances; then get the distance threshold range (0, Ad+σ1);

[0072] The rear of the last vehicle on the rightmost lane of the convoy is obtained in real time in the image and recorded as the tail line; when the speed of the bus is 0 and it is at a distance (0, Ad+σ1) behind the tail line, the bus is recorded as arriving at the tail of the convoy;

[0073] It is understandable that the area of ​​the convoy in a congested section may not occupy the entire section. Most of the congested sections are unblocked within a certain distance just after entering the section. After approaching the congested convoy, the speed of traffic begins to slow down. Therefore, in a congested section, the bus starts to get congested when it enters the tail of the convoy, and the bus stops before entering the tail of the convoy can stop as usual.

[0074] Step S4: Obtain the standard deviation σ of the advance distance, where: ;

[0075] Get the location of the bus stop in the congested section, and select the predicted stop point closest to the bus stop from all predicted stop points; take the nearest predicted stop point as the midpoint, and extend the distance σ in the forward and backward directions from the midpoint to obtain an area, which is recorded as the alternative station of the bus stop. The bus completes the stop at the alternative station;

[0076] It should be further explained that the process of passengers getting on and off the bus at the alternative station includes: reminding all passengers of the congested time period of the road section; during the congested time period, for passengers who want to get off the bus, when they arrive at the alternative station, the bus stop corresponding to the alternative station is broadcasted on the bus broadcasting to remind the passengers to get off; for passengers waiting to get on the bus at the bus stop, the predicted location of the alternative station is displayed on the screen at the bus stop, and the passengers go to the alternative station according to the displayed location of the alternative station;

[0077] It is understandable that there is often an error between the predicted parking point and the actual parking point, so the selected alternative station is a range centered on the predicted parking point and is displayed to the passengers so that they can prepare in advance;

[0078] It can be understood that the present invention obtains the forward distance of the convoy under each round of green lights in the congested section, and predicts all the predicted stopping points of the bus according to the position of entering the tail of the convoy; and obtains the position of the bus stop in the congested section, and selects the predicted stopping point closest to the bus stop position among all the predicted stopping points as the alternative station to the bus stop; this method can avoid the situation where the rear vehicles cannot continue to move forward when the bus stops at the station during the passage of congested sections, and complete the boarding and alighting of passengers while the bus is waiting for the red light, thereby improving the traffic efficiency.

[0079] The smart city data processing system based on digital twins includes the following modules:

[0080] Urban information acquisition module: obtains urban roads based on the urban road digital twin platform provided by the Urban Planning Bureau, divides urban roads into several sections according to traffic lights, and obtains section information of the sections; the section information includes section width k, section length s, and number of vehicles n; congested section determination module: obtains the length and width of the vehicle body and records them as h1 and h2 respectively, and obtains the vehicle capacity of the section in real time ; Set a vehicle capacity threshold and a number threshold. When the number of times that the vehicle capacity of a road section is continuously obtained to be greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the congestion time period is obtained according to the time corresponding to the Nth acquisition, and the road section in the congestion time period is recorded as a congested road section;

[0081] Prediction parking module: in the congested time period, respectively obtain images of the congested road section at the beginning and end of the green light; mark all the vehicles in the front row in the image at the end of the green light, and connect the marks to obtain the front line; and obtain the positions of all the above vehicles in the image at the beginning of the green light, re-mark and connect all the vehicles to obtain the pre-front line; obtain the distance between the front line and the pre-front line, and record it as the forward distance of the team at the green light of this round;

[0082] When the bus arrives at the end of the convoy from the rightmost lane, the average forward distance L of the convoy before the current time in the congested section is obtained in real time; and the front of the bus is taken as the starting line, and each L distance along the forward direction from the starting line is recorded as a predicted stopping point;

[0083] Station replacement module: obtains the location of the bus stop within the congested road section, selects the predicted stopping point closest to the bus stop from all predicted stopping points as the replacement station for the bus stop, and passengers get on and off the bus at the replacement station.

[0084] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A smart city data processing method based on digital twins, characterized in that: The following steps are involved: Step S1: obtaining an urban road according to the urban road digital twin platform provided by the Urban Planning Bureau, dividing the urban road into several sections according to traffic lights, and obtaining section information of the section; the section information includes the section width k, the section length s, and the number of vehicles n; Step S2: obtaining the vehicle capacity of the road section in real time according to the road section information; A vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of the road section is greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the congestion time period of the road section is determined, and the road section in the congestion time period is recorded as a congested road section; Step S3: respectively obtain images of the congested road section at the beginning and end of the green light; mark all the vehicles in the front row in the image at the end of the green light, and connect the marks to obtain the front line; and determine the positions of all the above vehicles in the image at the beginning of the green light, re-mark and connect all the vehicles to obtain the pre-front line; obtain the distance between the front line and the pre-front line, and record it as the forward distance of the convoy at the green light of this round; When the bus arrives at the end of the convoy from the rightmost lane, the advance distance of the convoy {L1, L2, ..., L r }, where L1 represents the forward distance of the convoy at the first round of green lights, and r is the number of green lights that have appeared in the congestion period before the bus enters the tail of the convoy; and the average forward distance L of the convoy is obtained; the front of the bus is taken as the starting line, and each L distance along the forward direction from the starting line is recorded as a predicted stopping point; Step S4: Obtain the standard deviation σ of the advance distance, where: ; Get the location of the bus stop in the congested road section, and select the predicted stopping point closest to the bus stop from all the predicted stopping points; take the nearest predicted stopping point as the midpoint, and extend a distance σ from the midpoint in the forward and backward directions to obtain an area, which is recorded as the alternative station of the bus stop. The bus completes the stop at the alternative station.

2. The method for processing smart city data based on digital twins according to claim 1 is characterized in that: In step S1, the process of dividing the road section includes: Selecting the location of a traffic light on a city road, taking the location of the traffic light as a node, and obtaining a plurality of nodes on the city road; Every two adjacent nodes are recorded as a road section, and several road sections are obtained.

3. The method for processing smart city data based on digital twins according to claim 1 is characterized in that: In step S2, the process of setting the vehicle capacity threshold includes: In the urban road digital twin platform, the vehicle capacity of the road section at different times is obtained, and the average speed V=s / t required for vehicles to pass through the road section under the corresponding vehicle capacity is obtained, where t is the time for the vehicle to pass through the road section; By matching the vehicle capacity with the average speed one by one, we can obtain the point set {(D1, V1), (D2, V2), ..., (D m , V m )}, where m is the number of vehicle capacities obtained, and (D1, V1) represents the average speed corresponding to the first vehicle capacity; Set the congestion speed threshold range to [0km / h, 10km / h], select all the vehicle capacities whose average speeds belong to the congestion speed threshold range in the point set, and record them as the congestion vehicle capacity, then the vehicle capacity threshold of the road section is obtained. , where j is the number of congested vehicle capacities, Dc i represents the capacity of the i-th congested vehicle.

4. The method for processing smart city data based on digital twins according to claim 1 is characterized in that: In step S2, the process of determining the congested time period and the congested road section includes: Get the length and width of the vehicle and record them as h1 and h2 respectively, and obtain the vehicle capacity of the road section in real time ; A vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of a road section is continuously obtained to be greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the time corresponding to the first acquisition is taken as the start time, and the time corresponding to the Nth acquisition is taken as the end time. The time between the start time and the end time is recorded as the congested time period, and the road section within the congested time period is recorded as the congested road section.

5. The method for processing smart city data based on digital twins according to claim 1, characterized in that: In step S2, the process of setting the number threshold includes: Set a time interval threshold Tit, and Tit∈(0s, 5s). In the process of obtaining the vehicle capacity of the road section in real time, obtain the vehicle capacity of the road section once every time interval threshold; Set the time period threshold T, and T≥10min, then the number threshold Nt=60T / Tit.

6. The method for processing smart city data based on digital twins according to claim 1 is characterized in that: In step S3, the process of obtaining the front line and the pre-front line includes: After marking the vehicle, each mark is regarded as a point to obtain a discrete point diagram, and the discrete point diagram is fitted according to the least square method to obtain a regression line, which is the front line or the pre-front line.

7. The method for processing smart city data based on digital twins according to claim 1 is characterized in that: In step S3, the process of determining that the bus has reached the rear of the convoy includes: Get the distance between each vehicle in the fleet, get the average distance Ad, and get the standard deviation σ1 of all the distances; then get the distance threshold range (0, Ad+σ1); The rear of the last vehicle on the rightmost lane of the convoy is obtained in real time in the image and recorded as the tail line; when the speed of the bus is 0 and is at a distance (0, Ad+σ1) behind the tail line, the bus is recorded as arriving at the tail of the convoy.

8. The system of the smart city data processing method based on digital twin according to claim 1 comprises the following modules: City information acquisition module: obtains city roads according to the city road digital twin platform provided by the Urban Planning Bureau, divides the city roads into several sections according to traffic lights, and obtains the section information of the sections; the section information includes the section width k, the section length s, and the number of vehicles n; Congested road section determination module: obtaining the vehicle capacity of the road section in real time according to the road section information; A vehicle capacity threshold and a number threshold are set. When the number of times that the vehicle capacity of the road section is greater than the vehicle capacity threshold is N, and N is greater than or equal to the number threshold, the congestion time period of the road section is determined, and the road section in the congestion time period is recorded as a congested road section; Predictive parking module: obtain images of the congested road section at the beginning and end of the green light respectively; mark all the vehicles in the front row in the image at the end of the green light, and connect the marks to obtain the front line; determine the positions of all the above vehicles in the image at the beginning of the green light, re-mark and connect all the vehicles to obtain the pre-front line; obtain the distance between the front line and the pre-front line, and record it as the forward distance of the team at the green light of this round; When the bus arrives at the end of the convoy from the rightmost lane, the advance distance of the convoy {L1, L2, ..., L r }, where L1 represents the forward distance of the convoy at the first round of green lights, and r is the number of green lights that have appeared in the congestion period before the bus enters the tail of the convoy; and the average forward distance L of the convoy is obtained; the front of the bus is taken as the starting line, and each L distance along the forward direction from the starting line is recorded as a predicted stopping point; Station replacement module: Get the standard deviation σ of the advance distance, where: ; Get the location of the bus stop in the congested road section, and select the predicted stopping point closest to the bus stop from all the predicted stopping points; take the nearest predicted stopping point as the midpoint, and extend a distance σ from the midpoint in the forward and backward directions to obtain an area, which is recorded as the alternative station of the bus stop. The bus completes the stop at the alternative station.