A method for evaluating truck service level in high-speed service areas based on trajectory data
Patent Information
- Application Number
- CN202110468278.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-04-28
AI Technical Summary
Existing truck management technology cannot effectively support detailed management of truck trajectory data, leading to omissions and economic losses.
By using the wireless transmission system on the freight bus to collect GPS trajectory data in real time, preliminary cleaning and extraction of the initial stop points of trucks, stop points within the high-speed service area and truck traffic volume are established to establish service truck capacity indicators and set comprehensive dynamic weights to complete the process. High-speed service area service truck capability identification.
It improves the quality of truck management, simplifies the energy and time of human monitoring, and promotes the development of high-speed service areas.
Smart Images

Figure CN113138979B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of truck track recognition and judgment and truck management in a high-speed service area, and in particular to a method for evaluating the service level of trucks in a high-speed service area based on track data. Background Art
[0002] As a highway facility, highway service areas play an important role in ensuring driving safety, improving transportation efficiency, alleviating driving fatigue, vehicle maintenance, refueling, and dining. With the continuous development of social economy, the mileage of highways has increased year by year, the road network has been continuously improved, the number of cross-border long-distance transport vehicles has increased, and the number of service areas has continued to rise, showing the characteristics of large personnel mobility, large number of people, difficulty in risk prevention and control, and high social attention. How to ensure the safety of life and property of drivers and passengers has become the top priority of service area management.
[0003] With the rapid development of the logistics and freight industry, most trucks in the country are connected to the network service and have certain independent use rights to the track data of these trucks. With the rapid growth of the number of connected vehicles, massive data has followed. The existing management technology can no longer well support the frequent routes of trucks, vehicle-cargo matching and user information recommendation. What follows is the omission of detailed data management services for trucks, causing inevitable and considerable economic losses. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the above existing problems, the present invention is proposed.
[0006] Therefore, the present invention provides a method for evaluating the service level of trucks in a high-speed service area based on trajectory data, which can solve the problem of omissions caused by improper management of existing trucks.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: including, using the wireless transmission system on the freight bus to collect the GPS trajectory data of the truck in real time; performing preliminary cleaning on the GPS trajectory data of the truck, extracting the initial stop point of the truck, the stop point within the highway service area and the truck traffic volume on the highway; establishing the highway service area service truck capacity index, setting the highway service area index comprehensive dynamic weight, and completing the highway service area service truck capacity identification.
[0008] As a preferred solution of the method for evaluating the service level of trucks in high-speed service areas based on trajectory data described in the present invention, wherein: the truck GPS trajectory data includes the GPS response time and the real-time coordinate longitude and latitude of the GPS response; the GPS response time includes a time type field; the real-time coordinate longitude and latitude of the GPS response includes a floating point type field; when the truck GPS trajectory data is returned, the corresponding truck license plate number is used as the file name for the return operation, with yellow and blue representing the color of the license plate to reflect the size of the truck model, and the abbreviation representing the province, the letter code of each prefecture-level city and the license plate number are combined.
[0009] As a preferred solution of the method for evaluating the service level of trucks in high-speed service areas based on trajectory data described in the present invention, the preliminary cleaning includes deleting erroneous data, including data with invalid positioning longitude and latitude, and data with invalid positioning time; deleting GPS coordinates that are not within the research range; and performing data conversion on each field in the truck GPS trajectory data according to the field type format.
[0010] As a preferred solution of the method for evaluating the service level of trucks in high-speed service areas based on trajectory data of the present invention, wherein: extracting the initial stop point of the truck includes finding that within a period T, the stop point positions of the truck transportation are basically the same through the stop point features, defining the stop point as a point set S, and the point set S contains n points S n (n=1,2,3…n); calculate the point set S n The distance value between two points is calculated as follows:
[0011]
[0012] Among them, α=lat1-lat2, β=lon1-lon2, lon1, lat1 represent the longitude and latitude coordinates of one of the two points, and lon2, lat2 represent the longitude and latitude coordinates of the other point.
[0013] As a preferred solution of the method for evaluating the service level of trucks in a high-speed service area based on trajectory data described in the present invention, wherein: extracting the stop points within the scope of the high-speed service area includes, using web crawler technology, through a related map platform, grabbing POI points marked as service area fields within a determined range, and the main fields returned by the captured data include the latitude and longitude of the point coordinates and the name of the service area; adding the POI points to the geospatial map editing software through related GIS software, and performing manual inspection to screen whether the POI points are located near the highway, and deleting the POI points that are not near the highway; marking the POI points that belong to the high-speed service area after screening as p hs , for each p hsThe point uses GIS buffer technology to generate a circular buffer with a radius of 500 meters, marked as p hsb ; Using GIS spatial intersection technology, extract each circular buffer zone p hsb The stop points p included in real .
[0014] As a preferred solution of the method for evaluating the service level of trucks in highway service areas based on trajectory data described in the present invention, extracting the truck traffic volume on the highway includes identifying the direction in which the trajectory points are running on the road based on the trajectory points; processing the phenomenon that the trajectory points are counted at the same time when two roads intersect at an intersection; processing the road traffic volume and extracting the two-way road traffic volume.
[0015] As a preferred solution of the method for evaluating the service level of trucks in high-speed service areas based on trajectory data described in the present invention, the establishment of the high-speed service area service truck capacity indicators includes the average daily entry rate of trucks in the service area, the peak rate of trucks in the service area, the turnover rate of trucks in the service area and the vehicle model structure ratio of the service area.
[0016] As a preferred solution of the method for evaluating the service level of trucks in a high-speed service area based on trajectory data of the present invention, wherein: setting the comprehensive dynamic weight of the high-speed service area index includes determining the static index weight and the dynamic index weight; setting the static weight ω of each index i With dynamic weights for each indicator i Combined, the formula is as follows:
[0017] α i =λω i +(1-λ)s i
[0018] Among them, α i In the interval [0,1], and ∑α i =1, λ is the weight, which can generally be 0.5.
[0019] As a preferred solution of the method for evaluating the service level of trucks in high-speed service areas based on trajectory data of the present invention, it includes: normalizing according to the obtained index value, and the normalization formula is as follows:
[0020]
[0021] Multiply each normalized value by the corresponding weight and sum them up.
[0022] Score=∑α i *x i '
[0023] Among them, the Score value reflects the ability of the highway service area to serve trucks.
[0024] Beneficial effects of the present invention: The present invention clarifies the direction, route and stop position of trucks by identifying truck stop points and freight corridors, further improves the quality of truck management, simplifies the energy and time of manual monitoring, and promotes the development of high-speed service areas. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0026] Figure 1 A schematic diagram of a flow chart of a method for evaluating a truck service level in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0027] Figure 2 A schematic diagram of part of the running code of a method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0028] Figure 3 A schematic diagram of another part of the running code of the method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0029] Figure 4 A schematic diagram of another part of the running code of the method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0030] Figure 5 A schematic diagram of initial data of a method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0031] Figure 6 A schematic diagram of the spatial distribution of initial data of a method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0032] Figure 7 A preliminary data schematic diagram of a method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0033] Figure 8 A schematic diagram of trajectory point distance calculation of a method for evaluating a truck service level in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0034] Fig. 9 A schematic diagram of road trajectory point identification of a method for evaluating a truck service level in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0035] Fig.10 A schematic diagram of characteristics of truck stop points in a method for evaluating truck service levels in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0036] Fig.11 A schematic diagram of preliminary extraction of candidate stop points for trucks in a method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0037] Fig.12 A schematic diagram of global data of actual stop points of trucks in a method for evaluating service levels of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0038] Fig.13 A schematic diagram of high-speed services and stop points of a method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0039] Fig.14 A schematic diagram of trajectory point direction extraction of a method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0040] Fig.15 A schematic diagram of road section traffic volume extraction of a method for evaluating truck service level in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0041] Fig.16 A schematic diagram of bidirectional traffic volume extraction of a road section in a method for evaluating truck service level in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0042] Fig.17 A schematic diagram of highway traffic volume extraction of a method for evaluating truck service level in a highway service area based on trajectory data according to an embodiment of the present invention;
[0043] Fig.18 A schematic diagram of static weight operation of a method for evaluating a truck service level in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0044] Fig.19 A schematic diagram of the operation of the index clustering results of the method for evaluating the service level of trucks in a high-speed service area based on trajectory data according to an embodiment of the present invention;
[0045] Fig. 20A schematic diagram of the importance ranking of a random forest model of a method for evaluating truck service levels in a high-speed service area based on trajectory data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0048] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0049] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0050] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0051] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0052] Example 1
[0053] Reference Figure 1 to Figure 6 , which is the first embodiment of the present invention, provides a method for evaluating the service level of trucks in a high-speed service area based on trajectory data, which is characterized by: comprising:
[0054] S1: Use the wireless transmission system on the freight bus to collect the truck GPS track data in real time. It should be noted that the truck GPS track data includes:
[0055] GPS response time and real-time coordinates of GPS response, longitude and latitude;
[0056] GPS response time includes, a time type field;
[0057] The real-time coordinate longitude and latitude of the GPS response includes a floating point type field;
[0058] When the truck GPS trajectory data is returned, the corresponding truck license plate number is used as the file name. Yellow and blue represent the color of the license plate, reflecting the size of the truck model. It is composed of the abbreviation of the province, the letter code of each prefecture-level city and the license plate number.
[0059] S2: Perform preliminary cleaning of the truck GPS trajectory data to extract the initial stop point of the truck, the stop point within the expressway service area, and the truck traffic volume on the expressway. It should be noted that the preliminary cleaning includes:
[0060] Delete erroneous data, including data with invalid positioning latitude and longitude, and data with invalid positioning time;
[0061] Delete GPS coordinates that are not within the study range;
[0062] According to the field type format, data conversion is performed on each field in the truck GPS trajectory data.
[0063] Specifically, the initial stop points for truck extraction include:
[0064] Considering that the time interval and distance of GPS trajectory data of different trucks are different, the stop points can be extracted by combining the distance threshold between points and the number of stop points within a certain area of a city with the density clustering algorithm;
[0065] Through the stop point characteristics, it is found that within a period T, the stop point locations of truck transportation are basically the same. The stop points are defined as point set S, which contains n points S n (n=1,2,3…n);
[0066] Calculate the point set S n The distance value between two points is calculated as follows:
[0067]
[0068] Among them, α = lat1-lat2, β = lon1-lon2, lon1, lat1 represent the longitude and latitude coordinates of one of the two points, lon2, lat2 represent the longitude and latitude coordinates of the other point;
[0069] The distance threshold range of the stop point is set by the calculated distance value. The threshold setting method is as follows:
[0070] Calculate the minimum distance d1 between two adjacent points when the truck is driving on the road;
[0071] The minimum distance between two adjacent points outside the road where the truck trajectory points are located is d2, so the distance threshold The setting range can be in the interval (d1, d2], which is an interval that is open on the left and closed on the right;
[0072] The specific method for determining whether a trajectory point is on the road is as follows:
[0073] Using web crawler technology, we crawled the road network within the research scope. The type of road network returned is the geographic file line type, and the fields included mainly include road section id, road section level, and road section name;
[0074] Using GIS to generate buffer technology, the road network is generated with a distance d b The buffer zone is of the surface type, d b The value of can be adjusted according to actual needs;
[0075] The spatial connection technology in GIS is used to connect the trajectory points and the generated road buffer to select the point p in the trajectory point that is located in the road buffer. r , the remaining points are points outside the road and are p s ;
[0076] For the stop points, another feature of the point set S is that the point set S needs to contain the minimum number of points sam, that is, within a period of time T, the truck should stop in the area multiple times;
[0077] The value of sam can be divided according to different time periods T. For example, the value of sam should be greater than or equal to 10 in a month;
[0078] Determine the distance threshold After obtaining the minimum number of point sets sam, all trajectory points are identified and extracted using the unsupervised learning medium density clustering algorithm. The features after identification are as follows:
[0079] For the point set p that does not belong to the candidate stay points else Recorded as label -1, for point p on the candidate stop point ss Recorded as labels 1, 2, 3…n, n represents the total number of alternative stay points;
[0080] For the alternative stop point p ss Extract separately. When a truck loads or unloads goods or stops briefly at a stop point, there may be multiple similar points in a region within a certain period of time. Therefore, the stop point p is extracted according to different days and different periods of each day. ss Perform grouping to obtain the group point set p ssd ;
[0081] Filter out each p ssd The time difference Δt is calculated from the recorded time stime of the first entry into the service area and the recorded time etime of the last exit from the service area in the point set. The calculation formula of Δt is as follows:
[0082] Δt = stime - etime, which gives the time difference Δt of the truck at a certain alternative stop point at a certain time on a certain day;
[0083] According to Δt, select the points within this range where the stop time exceeds 5 minutes as the actual stop point p of the truck. real ;
[0084] Since the actual stop point should be a single point rather than a set of points, for p real The longitude and latitude coordinates of any point in the point set can be used as the longitude and latitude coordinates of a single actual stop point;
[0085] The actual single stop point p of the truck real , that is, the stop point of the truck in a certain area within a period of time T;
[0086] Actual stop point p real , the fields included include the time stime when the truck first enters, the time etime when the truck leaves, the time difference Δt, the license plate number of the truck, the longitude coordinate of the point, and the latitude coordinate of the point.
[0087] The stop points extracted from the expressway service area include:
[0088] Using web crawler technology, through the relevant map platform, crawl the POI points marked as service area fields within the determined range. The main fields returned by the crawled data include the latitude and longitude of the point coordinates and the name of the service area;
[0089] Use relevant GIS software to add POI points to geospatial map editing software, and conduct manual inspections to screen whether the POI points are located near highways, and delete POI points that are not near highways;
[0090] The POI points that belong to the highway service area after screening are marked as p hs , for each p hs The point uses GIS buffer technology to generate a circular buffer with a radius of 500 meters, marked as p hsb ;
[0091] Using GIS spatial intersection technology, extract each circular buffer zone p hsb The stop points p included in real .
[0092] Extracting highway truck traffic volume includes:
[0093] Identify the direction in which the trajectory point is running on the road according to the trajectory point;
[0094] Dealing with the phenomenon that trajectory points at intersections will be counted on two intersecting roads at the same time;
[0095] Process road traffic volume and extract two-way road traffic volume;
[0096] The trajectory points p are sorted according to time, and the sorted trajectory points are psort. Each time, the previous trajectory point is used as the coordinate origin to establish a two-dimensional Cartesian coordinate system;
[0097] The latter track point is based on the previous track point to perform angle recognition;
[0098] The calculation formula for angle recognition is as follows:
[0099] Convert the longitude and latitude coordinates lon1, lat1, lon2, lat2 of the front and rear track points into radians radlon1radlat1, radlon2 radlat2;
[0100] The inverse tangent function arctan2(y,x) is used to calculate the value and then convert it into degrees. y and x represent: y = sin(Δlon) × cos(radlat2), x = cos(radlat1) × sin(radlat2) - sin(radlat1) × cos(radlat2) × cos(Δlon), where Δlon = radlon2 - radlon1. The degree of each trajectory point based on the previous trajectory point is obtained, and its range is 0 to 360 degrees.
[0101] The angle degree is divided into eight ranges in the shape of a "meter", with the north direction being 1, and the clockwise directions being 2, 3, 4, 5, 6, 7, and 8. The principles of division are as follows:
[0102]
[0103] Extract the 360-degree orientation into 8 directions;
[0104] Perform spatial connection between the trajectory points and the road buffer again to extract the road links containing the trajectory points in the road section n , n represents the n roads extracted, for a certain i-th road link i The main fields it contains are segment ID, segment name, segment level, track point latitude and longitude, track point direction, track point time and track point direction. For each segment link n The grouping is based on the date, section ID, and direction of the track points. nk ;
[0105] The first case: intersections are recorded repeatedly in a continuous section ID. After grouping and statistics, link nk The ID of the middle section is r, and the ID of the continuous section is r i , the row in the middle does not belong to this continuous section r i The road section is denoted as r j , i≠j, process section r j The method is as follows:
[0106] Move the entire column of road section data r forward one row to get a new column r f , and then go back one row to get r b , if r appears in i of a row fi =r bi And r fi ≠r i , then the line can be filtered out that does not belong to the continuous sections before and after;
[0107] Delete the filtered road sections;
[0108] The second case: When the vehicle passes through two different roads before and after the intersection, the road in the other direction is recorded repeatedly at the same time. The previous continuous road section is recorded as r i , the next continuous section is r j , the repeated recorded road segment is r w ;
[0109] Move the entire column of road section data r forward one row to get a new column r f , and then go back one row to get r b , if r appears in i of a row fi ≠r bi And r fi ≠r i , then the road sections with repeated records can be filtered out;
[0110] Delete the selected road sections;
[0111] Change the total number of times a vehicle appears on a certain road section at a certain time to 1, and record it as a vehicle appearing on a certain road section at a certain time once;
[0112] Considering that a road section may be passed by a vehicle multiple times at multiple times on the same day, or multiple times on multiple days, but simply grouping by road section ID will ignore this phenomenon. Therefore, the specific solution to this problem is as follows:
[0113] Perform first-order difference processing on the road segment ID to obtain a new column K, that is, each time the next row minus the previous row is a difference value, and the first row is directly recorded as 1. Each time the vehicle travels on a continuous road, its first row is the number i, i is an arbitrary real value, and the last n-1 rows of the continuous road are all 0. When the vehicle changes the road, 0 will be changed to number i. Further processing of number i will turn all 1s, that is, for any row in column K
[0114] According to the road section ID and direction ID, the sum of K columns is grouped and counted hierarchically. The sum is the number of traffic statistics in different directions of the road section.
[0115] Further processing is performed on the total traffic volume of each road segment ID and direction ID, and the eight directions are converted into two-way roads;
[0116] The eight directions of each road section ID are arranged in ascending order, and then the first digit in each road section ID is determined. When the first digit of a road section ID is 1, it can be determined that the overall direction of the road section tends to be north-south. Therefore, the total traffic volume of direction IDs 1, 2, 3, and 8 is determined as the traffic volume of one direction of the road, and the total traffic volume of direction IDs 4, 5, 6, and 7 is determined as the road traffic volume in the other direction of the road.
[0117] Similarly, when the first digit of a road section ID is 2, it can be determined that the overall direction of the road section tends to be north-south and east-slightly or west-slightly. Therefore, the total traffic volume of direction IDs 2, 3, 4, and 5 is determined as the traffic volume of one direction of the road, and the total traffic volume of direction IDs 6, 7, and 8 is determined as the traffic volume of the other direction of the road.
[0118] When the first digit of a road section ID is 3, it can be determined that the overall direction of the road section tends to be east-west. Therefore, the total traffic volume of direction IDs 4 and 5 is considered as the traffic volume of one direction of the road, and the total traffic volume of direction IDs 6, 7, and 8 is considered as the traffic volume of the other direction of the road.
[0119] When the first digit of a road section ID is 4, it can be determined that the overall direction of the road section tends to be east-west and south-south or north-south. Therefore, the total traffic volume of direction IDs 5 and 6 is determined as the traffic volume of one direction of the road, and the total traffic volume of direction IDs 7 and 8 is determined as the traffic volume of the other direction of the road.
[0120] Get the bidirectional road truck traffic volume for each road segment ID, including the following fields: road segment ID, road segment level, road segment name, direction ID (bidirectional), and traffic volume of direction ID;
[0121] The road sections with the first-level highway grade were extracted, and the truck traffic volume (two-way) on the highway was extracted.
[0122] S3: Establish the capacity indicators for trucks in highway service areas, set the comprehensive dynamic weights of the indicators for highway service areas, and complete the identification of the capacity of trucks in highway service areas. It should also be noted that the capacity indicators for trucks in highway service areas include: the average daily rate of trucks entering the service area, the peak rate of trucks in the service area, the turnover rate of trucks in the service area, and the vehicle model structure ratio in the service area;
[0123] Truck entry rate in service area This indicator represents the average daily road truck traffic volume vol road The average number of people driving into the service area per day in The ratio of traffic volume
[0124] The road truck traffic volume is obtained based on the extracted highway truck traffic volume, that is, each highway service area buffer phsb Average daily traffic volume on nearby highways;
[0125] Daily average traffic into service area vol in The traffic volume is extracted based on the extracted stop points, that is, it is judged based on the first entry time in the stop point field attribute, and the average of the stop points in this service area every day is calculated. This average is the daily average entry into the service area vol in Traffic volume;
[0126] The peak rate of trucks in the service area indicates the number of trucks that stop during peak hours. h The number of trucks parked every day d Ratio
[0127] Number of trucks stopped during peak hourscn h The acquisition of the stop points in the extracted high-speed service area is judged. Since the obtained stop point data contains the time when the vehicle first enters the area and the time when it leaves the area, the value of this field is used to determine whether the vehicle stops during the peak period and to count the number of vehicles. The peak period here is generally expressed as the morning peak period (6:00-8:00) and the evening peak period (5:00-7:00);
[0128] Number of trucks parked every daycn d That is, the total number of trucks that stay at a certain highway service area every day. The judgment for each day is also based on the two time fields in the stop point;
[0129] Truck turnover rate in service area This indicator indicates the number of times a service area is used within 1 hour, that is, the number of times a truck stops within 1 hour. hour ;
[0130] The number of times a truck stops within 1 hour n hour The acquisition is determined by the time difference Δt contained in the stop points within the range of the extracted high-speed service area, that is, when Δt<=60min, it can be determined that the vehicle has only stopped in this service area for less than 1 hour;
[0131] Count all vehicles that meet the conditions and calculate the ratio to the total amount, which is the turnover rate;
[0132] Service area vehicle model ratio This indicator shows the ratio of large trucks to small trucks entering the service area.
[0133] The judgment of large trucks and small trucks is based on the license plate number contained in the highway stop point. That is, when the license plate number is yellow, the vehicle represented by the stop point can be determined as a large vehicle. When the license plate number is blue, the vehicle represented by the stop point can be determined as a small vehicle.
[0134] The static weight reflects the importance of different indicators in the indicator system. The determination methods include subjective weighting method and objective weighting method. The subjective weighting method can use the analytic hierarchy process (AHP method), the efficacy coefficient method, and the set value statistics method. The objective weighting method can use the entropy weight method, etc. Through the above methods, the static indicator weight ω of each indicator can be obtained. i ,∑ω i =1;
[0135] Calculate the index value of each highway service area, use the partition-based clustering algorithm in the unsupervised model, the k-means clustering algorithm, and divide each highway service area in combination with the index, and divide the calculated index value. The partition parameters can be manually adjusted according to the actual algorithm effect. Generally, the parameters can be set to 2, 3, 4, 5...n to obtain different categories of highway service areas. The number of categories is determined by the set parameters. Different categories are labels for each highway service area, so that the highway service area data is converted from unsupervised to supervised;
[0136] The random forest model in the supervised model is used to extract the dynamic weight of indicators. The tree model mainly uses the classification tree in the random forest model. The dependent variable of the model is the category label obtained by the partitioning clustering algorithm, and the independent variable is the established indicator.
[0137] The branching algorithm for each tree can use information gain or Gini coefficient, where the formulas for information gain and Gini coefficient are as follows:
[0138] Information Entropy:
[0139] Gini Index:
[0140] The supervised data obtained were trained using the 10-fold cross-validation method, that is, the data was divided into 10 parts, and 9 of them were used for training and 1 for validation in turn, and the cycle was repeated 10 times. The grid search algorithm was used to obtain the most appropriate parameter settings in the random forest model, and a no-pruning strategy was adopted;
[0141] For the trained model, extract the important contribution s of each indicator fed back in the model i ,∑s i =1, this important contribution s i Recorded as dynamic indicator weight.
[0142] Setting the comprehensive dynamic weight of highway service area indicators includes:
[0143] Determine the weights of static indicators and dynamic indicators;
[0144] The static weight ω of each indicatori With dynamic weights for each indicator i Combined, the formula is as follows:
[0145] α i =λω i +(1-λ)s i
[0146] Among them, α i In the interval [0,1], and ∑α i =1, λ is the weight, which can generally be 0.5.
[0147] Normalization is performed according to the obtained index value. The normalization formula is as follows:
[0148]
[0149] Multiply each normalized value by the corresponding weight and sum them up.
[0150] Score=∑α i *x i '
[0151] Among them, the Score value reflects the ability of the highway service area to serve trucks.
[0152] Example 2
[0153] Reference Figure 5 to Figure 20 , which is the second embodiment of the present invention, provides a test example of a method for evaluating the service level of trucks in a high-speed service area based on trajectory data, specifically comprising:
[0154] This embodiment takes the truck trajectory data passing through a certain province in 2021 as an example for example analysis. The main software used are Python programming software and QGIS open source geographic software.
[0155] (1) Introduction to initial data
[0156] Reference Figure 5 and Figure 6 , is the spatial distribution of the initial data and part of the initial data. The initial data contains three columns. The first column is the time, the second column is the latitude coordinate of the truck's instantaneous coordinates, and the third column is the longitude coordinate of the truck's instantaneous coordinates.
[0157] (2) Preliminary data cleaning
[0158] Reference Figure 7 ,According to the data cleaning method, the data was preliminarily cleaned using python software.
[0159] (3) Calculate the distance between trajectory points
[0160] Calculate the distance between the latitude and longitude coordinates of the vehicle, the result is as follows Figure 8 As shown, the two columns lon2 and lat2 represent the trajectory points of the vehicle at the next moment, and the column dis represents the spatial distance between the trajectory points in meters.
[0161] (4) Determine whether the trajectory point is on the road
[0162] Reference Fig. 9 , obtain road network data, use qgis open source software to generate road buffers, and combine spatial connection technology to obtain points in the road buffers.
[0163] (5) Extract alternative stop points for trucks
[0164] The spatial characteristics of truck stops are as follows: Fig.10 As shown in the figure, the stay points are point sets. The DBSCAN distance algorithm in the unsupervised clustering algorithm is used for preliminary extraction, and the distance threshold is determined to be 25m, and the minimum number of sample points is 10. The data obtains a new column "stay_point", which is characterized by the label of each stay point. Fig.11 , it is found that the values in the data "dis" distance column are all 0, which also indirectly verifies that the truck is stopping.
[0165] (6) Extract the actual stop point of the truck
[0166] Further extract the actual stop point of the truck, such as Fig.12 As shown, where “ptime” represents the time difference Δt.
[0167] (7) Extracting stop points within the highway service area
[0168] Reference Fig.13 ,According to the method, the trajectory points located in the highway service area are obtained.
[0169] (8) Extraction of highway traffic volume
[0170] The directions of the trajectory points are further extracted, such as Fig.14 As shown, the "degree" column is the angle value, the "dirID" column is the "meter" shaped range value, and the "direction" column is the specific direction of the trajectory point.
[0171] Reference Fig.15 , in order to extract the truck traffic volume in each direction of each road section, where “ID” is the road section ID number, “dirID” is the simplified direction ID, and “counts” represents the road traffic volume in a certain direction of the road section.
[0172] Reference Fig.16, which is the extracted two-way road traffic volume, where the first column is the road section ID, and the two columns "AB_flow" and "BA_flow" are the two-way road traffic volumes.
[0173] Reference Fig.17 , and further extracted the traffic volume of trucks on the highway.
[0174] (9) Quantitatively extract indicators of truck service at highway service areas
[0175] The indicators of 10 highway service areas are quantitatively extracted. See Table 1 below for details:
[0176] Table 1: Service area indicators.
[0177]
[0178]
[0179] (10) Comprehensive dynamic weight acquisition and service area capacity identification
[0180] Reference Fig.18 ,The static weight of each indicator is obtained by using the ,analytic hierarchy method. ,Analysis process: The consistency index and the random ,consistency index are both less than 0.1, which proves that the weight setting is reasonable.
[0181] The specific weight of each indicator is shown in Table 2 below.
[0182] Table 2: Static weights of indicators.
[0183] Average daily entry rate Truck peak rate Truck turnover rate Model structure ratio Weight 0.38 0.18 0.12 0.31
[0184] Calculate the dynamic indicator weights and use the K-means clustering algorithm to get the label of each service area. The results are as follows: Fig.19 As shown, the "Label" column is the clustering result, and it can be seen that the services are divided into two categories.
[0185] Reference Fig. 20 and Table 3, the random forest model is further used to solve the indicator weights.
[0186] Table 3: Dynamic weights of indicators.
[0187] Daily average entry rate Truck peak rate Truck turnover rate Model structure ratio Weight 0.16 0.12 0.12 0.59
[0188] The comprehensive index calculation formula is used to solve the most comprehensive index weight, where λ is taken as 0.5. The results are shown in Table 4.
[0189] Table 4: Comprehensive weights of indicators.
[0190] Average daily entry rate Truck peak rate Truck turnover rate Model structure ratio Weight 0.27. 0.15 0.12 0.45
[0191] Using the normalization formula, we get the index numbers shown in Table 5.
[0192] Table 5: Normalized service area indicators.
[0193]
[0194]
[0195] Finally, the score value of each service area was calculated according to the score formula. The results are shown in Table 6.
[0196] Table 6: Service differentiation values.
[0197]
[0198] According to the score values, it can be found that service area 5 has the best score and service area 4 has the lowest score. It can be seen that the method of the present invention can effectively distinguish the service levels of trucks in high-speed service areas.
[0199] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for evaluating the service level of trucks in a high-speed service area based on trajectory data, characterized in that: include, Use the wireless transmission system on the freight bus to collect the truck GPS trajectory data in real time; Preliminary cleaning of the truck GPS trajectory data is performed to extract the truck's initial stop point, the stop point within the expressway service area, and the truck traffic volume on the expressway; Establish the service truck capacity index of highway service areas, set the comprehensive dynamic weight of highway service area index, and complete the service truck capacity identification of highway service areas; The preliminary cleaning includes deleting erroneous data, including data with invalid positioning latitude and longitude, data with invalid positioning time, deleting GPS coordinates that are not within the research range, and performing data conversion on each field in the truck GPS track data according to the field type format; Using web crawler technology, through the relevant map platform, crawl the POI points marked as service area fields within the determined range. The main fields returned by the crawled data include the latitude and longitude of the point coordinates and the name of the service area; add the POI points to the geospatial map editing software through the relevant GIS software, and perform manual inspection to screen whether the POI points are located near the highway, and delete the POI points that are not near the highway; mark the POI points that belong to the highway service area after screening as p hs , for each p hs The point uses GIS buffer technology to generate a circular buffer with a radius of 500 meters, marked as p hsb ; Using GIS spatial intersection technology, extract each circular buffer zone p hsb The stop points p included in real ; The eight directions of each road section ID are arranged in ascending order, and then the first digit in each road section ID is determined. When the first digit of a road section ID is 1, it is determined that the overall direction of the road section tends to be north-south. Therefore, the total traffic volume of direction IDs 1, 2, 3, and 8 is determined as the traffic volume of one direction of the road, and the total traffic volume of direction IDs 4, 5, 6, and 7 is determined as the road traffic volume in the other direction of the road. Extracting highway truck traffic volume includes: Identify the direction in which the trajectory point is running on the road according to the trajectory point; Dealing with the phenomenon that trajectory points at intersections will be counted on two intersecting roads at the same time; Process road traffic volume and extract two-way road traffic volume; The trajectory point p is sorted according to time, and the sorted trajectory point is p sort , each time taking the previous trajectory point as the coordinate origin, a two-dimensional Cartesian coordinate system is established; The latter track point is based on the previous track point to perform angle recognition; The calculation formula for angle recognition is as follows: Convert the longitude and latitude coordinates lon1, lat1, lon2, lat2 of the front and rear track points into radians radlon1 radlat1, radlon2 radlat2; The inverse tangent function arctan2(y,x) is used to calculate the value and then convert it into degrees. y and x represent: y = sin(Δlon) × cos(radlat2), x = cos(radlat1) × sin(radlat2) - sin(radlat1) × cos(radlat2) × cos(Δlon), where Δlon = radlon2 - radlon1. The degree of each trajectory point based on the previous trajectory point is obtained, and its range is 0 to 360 degrees. The angle degree is divided into eight ranges in the shape of a "meter", with the north direction being 1, and the clockwise directions being 2, 3, 4, 5, 6, 7, and 8. The principles of division are as follows: Extract the 360-degree orientation into 8 directions; The truck GPS trajectory data includes GPS response time and real-time coordinate longitude and latitude of GPS response; The GPS response time includes a time type field; The real-time coordinate longitude and latitude of the GPS response includes a floating point type field; When the truck GPS track data is returned, the corresponding truck license plate number is used as the file name for the return operation. Yellow and blue represent the color of the license plate, reflecting the size of the truck model. It is composed of the abbreviation of the province, the letter code of each prefecture-level city and the license plate number. Extracting the initial stop point of the truck includes: Through the stop point feature, it is found that within a period T, the stop point position of the truck transportation is the same, and the stop point is defined as a point set S, which contains n points S n (n=1,2,3…n); Calculate the point set S n The distance value between two points is calculated as follows: Among them, α = lat1-lat2, β = lon1-lon2, lon1, lat1 represent the longitude and latitude coordinates of one of the two points, lon2, lat2 represent the longitude and latitude coordinates of the other point; Establishing the above-mentioned indicators of truck service capacity in the expressway service area includes the average daily truck entry rate in the service area, the truck peak rate in the service area, the truck turnover rate in the service area and the vehicle type structure ratio in the service area; Truck turnover rate in service area This indicator indicates the number of times a service area is used within 1 hour, that is, the number of times a truck stops within 1 hour. hour ; Service area vehicle model ratio This indicator shows the ratio of large trucks to small trucks entering the service area. Setting the comprehensive dynamic weight of the high-speed service area index includes: Determine the weights of static indicators and dynamic indicators; The static weight ω of each indicator i With dynamic weights for each indicator i Combined, the formula is as follows: a i =I am i +(1-λ)s i Among them, α i In the interval [0,1], and ∑α i =1, λ is the weight, which is 0.5; Normalization is performed according to the obtained index value. The normalization formula is as follows: Multiply each normalized value by the corresponding weight and sum them up. Score=∑α i *x i ' Among them, the Score value reflects the ability of the highway service area to serve trucks.
Citation Information
Patent Citations
Expressway operation comprehensive service quality real-time assessment method
CN103942410A
Positioning track stopping point extraction method
CN108168562A
A bicycle lane service level evaluation method based on shared bicycle track data
CN109816271A
Expressway service area quality of service dynamic evaluation method and system and equipment
CN110070718A
