A berth dynamic allocation method based on deep learning and objective weighting method
Through deep learning and CRITIC objective weighting method, multiple parking modes are combined to realize dynamic allocation of parking spaces, which solves the problems of single parking mode and low operating efficiency in the existing technology, improves parking efficiency and convenience, and promotes the improvement of urban parking management. Sustainability.
Patent Information
- Application Number
- CN202411002853.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-25
AI Technical Summary
The existing parking model lacks an efficient parking allocation strategy, resulting in serious parking problems. Information barriers make resource utilization between parking lots and drivers inefficient, affecting the sustainable development of urban transportation.
Adopting a dynamic parking allocation method based on deep learning and the CRITIC objective weighting method, combined with first-come-first-served, first-served, first-served and auction reservation modes, the demand for parking spaces is predicted through deep neural networks, and a comprehensive evaluation system for parking spaces is built to realize the parking space allocation. Optimal proportion decision-making and dynamic allocation.
It optimizes the allocation of parking resources, improves parking efficiency and convenience, and promotes the fairness and sustainable development of urban parking management.
Smart Images

Figure CN118538034B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and smart parking, and in particular to a berth dynamic allocation method based on deep learning and objective weighting method. Background Art
[0002] With the continuous advancement of urbanization, the number of motor vehicles continues to grow, and the resulting parking problem is becoming more and more serious. Parking difficulties will not only increase cruising traffic and cause traffic congestion, but also cause environmental pollution. This restricts the sustainable development of the city's comprehensive transportation system, especially in bustling commercial areas, densely populated areas and transportation hubs, where the contradiction between supply and demand for parking spaces is particularly prominent. At present, the parking model adopted in most areas is first-come, first-served. Although this model is widely used and residents are familiar with it, it lacks an efficient parking space allocation strategy, and there is an information barrier between parking lots and parking drivers, which makes the parking problem more and more serious.
[0003] In order to solve this problem, many scholars have begun to explore diversified parking management models, among which the smart parking model has attracted widespread attention due to its high efficiency, safety and convenience. Smart parking is divided into shared parking and reserved parking. Shared parking encourages residents to provide idle parking spaces to residents in need for a fee, and improves the utilization efficiency of parking spaces by staggered parking, thus achieving the purpose of alleviating parking difficulties. Reserved parking is aimed at residents who use public parking lots, relying on the reserved parking platform to realize the real-time release of parking space information, breaking the information barrier between parking lots and parking drivers, and improving the parking space turnover rate, thereby alleviating the parking difficulty problem.
[0004] Reservation is the prerequisite for realizing the contribution of parking resources. Many scholars have conducted in-depth research on the first-booked, first-served mechanism and the auction reservation mechanism. Studies have shown that the first-booked, first-served mechanism is fairer, but the market efficiency is low due to the lack of price management, while the auction reservation mechanism is the opposite. In view of this, this method proposes a hybrid parking mode that includes first-come, first-served, first-booked, first-served and auction reservations to meet diversified parking needs. Among them, the first-come, first-served mode uses target detection for vehicles in the parking lot, outputs parking space information and electronic maps of the parking lot to the reservation parking platform in real time, and records historical period parking data, providing users with a rich parking experience, providing managers with a more convenient management method, and enabling the platform to better predict future parking quantities and parking space allocation ratios.
[0005] The allocation of parking spaces in the three parking mechanisms (i.e., first-come, first-served, first-booked, first-served, and auctioned) under the mixed parking mode is particularly important. This issue will not only affect the overall revenue of the reservation parking platform, but also affect the residents' parking experience and driving travel costs. Based on this, this method proposes a comprehensive evaluation index for parking space ratio. Taking into account the total revenue of the reservation parking platform, the per capita parking evaluation index of five types of residents, and the driving travel cost, a comprehensive evaluation system for parking space ratio under the mixed parking mode is established. Based on the CRITIC objective weighting method, a comprehensive evaluation model for parking space ratio is constructed. The optimization problem of parking space ratio under the mixed parking mode is deeply discussed to promote the fairness and sustainable development of urban parking management. Summary of the invention
[0006] In view of the above problems existing in the prior art, the present invention proposes a berth dynamic allocation method based on deep learning and objective weighting method, which has a reasonable design, solves the shortcomings of the prior art and has good effects.
[0007] A berth dynamic allocation method based on deep learning and objective weighting method comprises the following steps:
[0008] S1. Obtain traditional parking lot data, including the total number of parking spaces and vehicle characteristics, build a parking lot vehicle detection model based on the improved CenterNet network model, and monitor the changes in the number of vehicles in the parking lot area in real time;
[0009] S2. Establish a mixed parking mode, including a non-reservation mode and a reservation mode. The non-reservation mode is a first-come, first-served parking mode, and the reservation mode includes a first-reservation, first-served parking mode and an auction reservation parking mode;
[0010] Set two parameters and , The percentage of parking spaces that are on a first-come, first-served basis, , The number of parking spaces is on a first-come, first-served basis. is the total number of parking spaces, The percentage of parking spaces that are first-served, , The number of parking spaces is based on a first-come, first-served basis. is the total number of parking spaces in the reservation mode, and the proportion of parking spaces reserved by auction is ;
[0011] S3. Conduct a trial run on a parking lot that implements a mixed parking mode, and use the data obtained from the trial run to train a deep neural network. The trained deep neural network can predict the proportion of parking spaces in the parking lot on a certain day in the future, denoted as and ;
[0012] S4. Build a comprehensive evaluation system for parking space ratio. Use the CRITIC objective weighting method to build a comprehensive evaluation model for the parking space ratio of mixed parking modes. Get the optimal parking space ratio of the three modes, denoted as and ;
[0013] S5. Yes and Compare them. If the difference between the two is less than or equal to 0.2, then and Perform dynamic berth allocation. If the difference between the two is greater than 0.2, Based on the data provided by the National Parking Authority, a secondary allocation is made to the two parking modes: first-booked, first-served and auction reservation.
[0014] Furthermore, the S1 comprises the following sub-steps:
[0015] S11, collecting the total number of parking spaces in the parking lot captured by the fixed camera and inputting it into the parking reservation platform;
[0016] S12, collecting parking lot pictures or videos taken by fixed cameras, and annotating the vehicles in the pictures using manual annotation tools to form an original data set;
[0017] S13, the improved CenterNet network model includes an improved feature extraction network ResNet-50, an upsampling network DeConv, a prediction network Head and an improved loss function, the improved feature extraction network ResNet-50 includes an RFB preliminary feature extraction module, four ResBlock modules ResBlock_1~ResBlock_4, and a CA attention mechanism module, wherein the RFB module consists of three 1×1 parallel convolution modules, three 3×3 convolution modules, a 5×5 convolution module, an expanded convolution layer and a residual module; the prediction network Head includes a heat map prediction network, a width and height prediction network and a center point bias prediction network; the improved Loss loss function takes into account the overlapping area, center point distance and aspect ratio of the bounding box regression;
[0018] S14, the original data set in S12 is used as the training set to input into the improved CenterNet for training. The model training is divided into the freezing stage and the unfreezing stage. The number of iterations is set to 100 and the learning rate is , the learning rate decays in a cosine function type. Different learning rates and batch training sizes are appropriately set according to the changing trend of the loss function L during training. The training is terminated when the specified number of iterations is reached, and a parking lot vehicle detection model is obtained.
[0019] S15, marking the vehicles detected by the parking lot vehicle detection model with boxes, and inputting the parking lot electronic map into the parking reservation platform for users and staff to view in real time;
[0020] S16. Count the number of detected vehicles, subtract the number of detected vehicles from the total number of parking spaces to obtain the remaining number of parking spaces, and output it to the parking reservation platform for display.
[0021] Furthermore, in S3, the number of vehicles detected within a period of time is collected as the historical parking data of the parking lot, which specifically includes the following steps:
[0022] S31. Carry out trial operation of parking lots adopting mixed parking mode, open the reservation function in advance, and record the number of parking lots that adopt mixed parking mode on the first day. , berths are evenly allocated, that is, , , and published on the parking reservation platform, users can make reservations in advance. At the end of the first day, the number of real first-come, first-served parking spaces on that day is counted through the parking lot vehicle detection model. , Number of parking spaces on a first-come, first-served basis and auction the number of reserved parking spaces , and update it in the database;
[0023] S32, predicted The calculation formula for the daily first-come-first-served parking space demand and parking mode parking space ratio is:
[0024] ; (2)
[0025] in, For the predicted The demand for parking spaces on a first-come, first-served basis. The first prediction based on deep neural network in traditional parking mode The demand for parking spaces on a first-come, first-served basis. For the The number of first-served parking spaces is real. No. The actual number of auctioned parking spaces. For the predicted Percentage of parking spaces on a first-come, first-served basis, For the The percentage of parking spaces that are booked first and served first on a daily basis;
[0026] When At the end of the day, the final first-come-first-served parking space ratio will be Update in the database, Use equal division to obtain Days of appointment requirements;
[0027] S33, repeat this cycle until the Days, the trial run was stopped to obtain historical parking data under different conditions based on mixed parking patterns;
[0028] S34. Extract features from historical parking data, including parking quantity, weekdays, weekends, holidays, weather, and seasonal information, and construct a training set.
[0029] Furthermore, in S3, the deep neural network is trained using a training set, specifically including:
[0030] First, forward propagation is performed to output the interactive relationship between the historical parking data of the parking lot in the form of linear combination. , the calculation formula is:
[0031] ; (3)
[0032] in, is the weight matrix, is the input vector, which contains information such as the number and time of historical parking. is the bias term;
[0033] Will Send to the ReLU activation function to achieve nonlinear changes , the calculation formula is:
[0034] ; (4)
[0035] in, is the predicted number of parking lots;
[0036] Loss function in predicting neural network The difference between the predicted value and the actual value is calculated using the mean square error (MSE) method. The calculation formula is:
[0037] ; (5)
[0038] in, is the actual number of parking lots, is the sample size;
[0039] Calculate the back propagation error, that is, propagate the error back to each layer through the chain layer, and calculate the error of each layer , the specific calculation formula is:
[0040] ; (6)
[0041] in, represent The derivative of
[0042] Calculate the loss function against the weights and bias The specific calculation formula of the gradient is:
[0043] ; (7)
[0044] ; (8)
[0045] Update weights via stochastic gradient descent (SGD) and bias , the specific calculation formula is:
[0046] ; (9)
[0047] ; (10)
[0048] in, represents the updated weight, represents the updated bias, Represents the learning rate, which controls the step size of parameter update;
[0049] Continue to iterate and update network parameters until convergence, and obtain a trained deep neural network;
[0050] Input whether a future day is a weekday and weather conditions, and use the trained deep neural network to predict the proportion of first-come, first-served parking spaces on a future day.
[0051] Furthermore, the S4 comprises the following sub-steps:
[0052] S41. Build a comprehensive evaluation system for parking space share based on the total revenue index of the reservation parking platform, the per capita parking evaluation index of five types of users, and the driving travel cost index;
[0053] S42. Based on the comprehensive evaluation system of parking space ratio, the CRITIC objective weighting method is used to build a comprehensive evaluation model for the parking space ratio of mixed parking modes, and the optimal parking space ratio of the three parking modes is obtained.
[0054] Furthermore, the comprehensive evaluation system of berth proportion in S41 is specifically as follows:
[0055] Benefits of first-come, first-served parking The calculation formula is:
[0056] ; (11)
[0057] in, The percentage of parking spaces that are on a first-come, first-served basis, Represents the total number of parking spaces; Represents the fee drivers need to pay under the first-come, first-served parking model;
[0058] Benefits of first-served parking model The calculation formula is:
[0059] ; (12)
[0060] in, The percentage of parking spaces that are first-served, Fees paid to drivers on a first-come, first-served basis;
[0061] For parking spaces in the parking lot that adopts the auction reservation mode, the calculation method of the VCG auction mechanism is adopted. When many users auction the same parking space, assuming that after one round of auction, the final amount that the user who successfully reserves needs to pay is , the specific calculation formula is:
[0062] ; (13)
[0063] in, Indicates user Reserve a berth of The auction price for the time period; represents the set of users who have successfully made an auction reservation. Represents the total revenue obtained by the reservation parking platform after a round of auction; Indicates no user The revenue obtained by the reservation parking platform after a round of auction;
[0064] Therefore, the auction reservation parking model revenue It is the sum of the final payment prices of all successful bidders. The specific calculation formula is:
[0065] ; (14)
[0066] in, Representative Users who successfully bid Fees to be paid;
[0067] In order to balance the market efficiency and fairness of the reservation parking platform and meet the diversified parking needs, , the total revenue of the reservation parking platform at this time The calculation formula is:
[0068] ; (15)
[0069] The five types of user per capita parking evaluation index indicators include the per capita parking evaluation index indicator for low-income users, the per capita parking evaluation index indicator for lower-middle-income users, the per capita parking evaluation index indicator for middle-income users, the per capita parking evaluation index indicator for higher-middle-income users, and the per capita parking evaluation index indicator for high-income users;
[0070] No. Class User Parking rating index The specific calculation formula is:
[0071] ; (16)
[0072] in, Representative User For The parking experience evaluation indicators include convenience, safety and parking lot service quality, namely =3;
[0073] The user The cost of driving Including fuel costs, parking fees, driving time costs and walking time costs, the calculation formula is:
[0074] ; (17)
[0075] in, Represents the fuel cost per unit mileage of driving. Representative User Actual driving distance, Represents the actual fuel cost incurred during the trip; represents the cost incurred by the user when using a certain parking method. The specific calculation formula is shown in formula (18): Representative User The wage rate is the ratio of the user's monthly income to the working hours, in yuan / hour; Represents the user's driving time. Represents the walking time of the user from the parking lot to the destination;
[0076] ; (18)
[0077] in, The fees are incurred on a first-come, first-served basis. For the fees incurred on a first-come, first-served basis, Fees incurred during auction reservation.
[0078] Furthermore, in S42, the comprehensive evaluation model of the proportion of parking spaces in mixed parking modes is specifically as follows: the CRITIC objective weighting method is used to compare the internal variability of the seven evaluation indicators in S41 and the conflict between the evaluation indicators to calculate the objective weights, and the objective weights are used to decide the optimal parking space ratio. and The optimal proportion of , the specific steps are as follows;
[0079] and Taking o as the step length, based on the comprehensive evaluation system of parking space proportion under the mixed parking mode, the values corresponding to the seven evaluation indicators under different proportion schemes are calculated and the original matrix is constructed, that is, ,in Indicates A proportion plan, is the number of proportion solutions, Indicates indicators;
[0080] A dimensionless method is used to deal with the parking space ratio of a mixed parking lot. First, positive and negative indicators are distinguished to ensure the rationality of the weight distribution of each indicator and the accuracy of the comprehensive evaluation results. The positive indicator means that the larger the indicator, the better, while the negative indicator is the opposite. Among the seven indicators, the total revenue indicator of the reservation parking platform and the per capita parking evaluation index indicator of the five types of residents are positive indicators, and the driving travel cost indicator is a negative indicator. The specific calculation formula for indicator processing is:
[0081] (19)
[0082] in, For the Line The values of column index data after volume-free rigidification; For the Column original data value; , Respectively Maximum and minimum values in the column;
[0083] The matrix obtained by dimensionless processing is used to calculate the standard deviation of each indicator to obtain the variability of the indicator. The specific calculation formula is:
[0084] ; (20)
[0085] in, For the The standard deviation calculated for each indicator;
[0086] The correlation coefficient is formed by the correlation between the indicators, and the The conflict between an indicator and other indicators is calculated by the following formula:
[0087] ;(twenty one)
[0088] in, Indicates The conflict between the indicators; To evaluate the seven indicators and The correlation coefficient matrix between the indicators;
[0089] Combined with the variability of this indicator And the conflicts among the indicators The objective weight of each indicator is calculated. The specific calculation formula is:
[0090] ;(twenty two)
[0091] In the formula, Indicates The amount of comprehensive information contained in each indicator. The larger the value, the greater the The more important an indicator is in this evaluation, the more weight it will be assigned; For the The objective weight value of each indicator;
[0092] According to the objective weight value of each indicator, the comprehensive evaluation index of different parking space ratios in the mixed parking mode is calculated. , the group of proportion values with the highest score is determined to be the optimal berth proportion solution, and its specific calculation formula is:
[0093] (twenty three).
[0094] Furthermore, the S5 comprises the following sub-steps:
[0095] S51. Based on the historical cycle data in S1, predict the proportion of first-come, first-served parking spaces on a certain day in the future , based on S4, we get the optimal ratio of a set of mixed parking spaces and ,judge and Is the difference greater than 0.2? If it is less than or equal to 0.2, the optimal proportion of mixed parking spaces is and , if it is greater than 0.2, execute S52;
[0096] S52, As a benchmark, Perform dynamic allocation to achieve a suboptimal state.
[0097] Further, in S52, firstly, according to S41, hour, The values corresponding to the seven evaluation indicators when different values are taken, and then the comprehensive evaluation index is selected according to S42 The highest proportion plan is to achieve the suboptimal parking space proportion in the mixed parking mode through secondary allocation, thus realizing dynamic allocation of parking spaces.
[0098] Beneficial technical effects brought by the present invention:
[0099] In order to solve the problem of single parking mode and low operating efficiency in traditional parking lots, this paper proposes a dynamic allocation method of parking spaces based on deep learning and objective weighting method. On the basis of the first-come-first-served parking mode, two reservation parking modes (first-served and auction reservation) are introduced. The deep neural network and CRITIC objective weighting method are used to realize the comprehensive decision-making and dynamic allocation of parking space proportions in the mixed parking mode, optimize the allocation of parking resources, improve parking efficiency and convenience, and provide new ideas for the practical application of different reservation parking strategies. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] Figure 1 It is a schematic diagram of the hybrid parking mode in the present invention.
[0101] Figure 2 This is an interface diagram for detecting vehicles through a parking lot vehicle detection model in the present invention.
[0102] Figure 3 It is a flow chart of the trial operation of a parking lot implementing a hybrid parking mode in the present invention.
[0103] Figure 4 The flowchart of obtaining the optimal berth ratio result in the present invention.
[0104] Figure 5 The flowchart of obtaining the suboptimal berth ratio result in the present invention.
[0105] Figure 6 It is a schematic diagram of the comprehensive evaluation system of berth proportion in the present invention.
[0106] Figure 7 It is a weight diagram of each indicator in the comprehensive evaluation system in the embodiment of the present invention. DETAILED DESCRIPTION
[0107] The specific implementation of the present invention is further described below in conjunction with specific embodiments:
[0108] A berth dynamic allocation method based on deep learning and objective weighting method comprises the following steps:
[0109] S1. Obtain traditional parking lot data, including the total number of parking spaces and vehicle characteristics, build a parking lot vehicle detection model based on the improved CenterNet network model, and monitor the changes in the number of vehicles in the parking lot area in real time;
[0110] S2. Establish a mixed parking mode, such as Figure 1 As shown, it includes non-reservation mode and reservation mode. The non-reservation mode is a first-come, first-served parking mode, and the reservation mode includes first-reservation, first-served and auction reservation parking modes.
[0111] Set two parameters and , The percentage of parking spaces that are on a first-come, first-served basis, , The number of parking spaces is on a first-come, first-served basis. is the total number of parking spaces, The percentage of parking spaces that are first-served, , The number of parking spaces is based on a first-come, first-served basis. is the total number of parking spaces in the reservation mode, and the proportion of parking spaces reserved by auction is ;
[0112] S3. Conduct a trial run on a parking lot that implements a mixed parking mode, and use the data obtained from the trial run to train a deep neural network. The trained deep neural network can predict the proportion of parking spaces in the parking lot on a certain day in the future, denoted as and ;
[0113] S4. Build a comprehensive evaluation system for parking space ratio. Use the CRITIC objective weighting method to build a comprehensive evaluation model for the parking space ratio of mixed parking modes. Get the optimal parking space ratio of the three modes, denoted as and ;
[0114] S5. Yes and Compare them. If the difference between the two is less than or equal to 0.2, then and Perform dynamic berth allocation. If the difference between the two is greater than 0.2, Based on the data provided by the National Parking Authority, a secondary allocation is made to the two parking modes: first-booked, first-served and auction reservation.
[0115] Specifically, S1 includes the following sub-steps:
[0116] S11, collecting the total number of parking spaces in the parking lot captured by the fixed camera and inputting it into the parking reservation platform;
[0117] S12, collecting parking lot pictures or videos taken by fixed cameras, and annotating the vehicles in the pictures using manual annotation tools to form an original data set;
[0118] S13. The improved CenterNet network model includes an improved feature extraction network ResNet-50, an upsampling network DeConv, a prediction network Head and an improved loss function. The improved feature extraction network ResNet-50 includes an RFB preliminary feature extraction module, four ResBlock modules ResBlock_1~ResBlock_4, and a CA attention mechanism module, wherein the RFB module consists of three 1×1 parallel convolution modules, three 3×3 convolution modules, a 5×5 convolution module, an expanded convolution layer and a residual module; the prediction network Head includes a heat map prediction network, a width and height prediction network and a center point bias prediction network; the improved Loss loss function takes into account the overlapping area, center point distance and aspect ratio of the bounding box regression;
[0119] The process of improved CenterNet network model detection is as follows:
[0120] The image of each frame passes through the RFB lightweight deep learning module in turn, and after parallel convolution and wormhole convolution, it is stacked through the Concat operation to output feature map I; the feature map is input into ResBlock_1, ResBlock_2, ResBlock_3 and ResBlock_4 to output feature map II; feature map II is input into the CA attention mechanism to further focus on the spatial information and channel information in the feature, and obtain the global attention feature map; the global attention feature map is input into the upsampling network DeConv for upsampling, and the feature map III is output; feature map III is respectively input into the heat map prediction network, the width and height prediction network and the center point bias prediction network for prediction box regression; when calculating the loss function of the regression prediction box, in addition to considering the center point bias and bounding box size of the predicted target box, the overlapping area, center point distance and aspect ratio of the bounding box regression are also considered. At this time, the loss function of the entire network is The formula satisfied is:
[0121] ; (1)
[0122] in, is the intersection-over-union ratio of the predicted box and the true box; It is the Euclidean distance calculation; They are the center point, width, and height of the real frame respectively; They are the center point, width, and height of the prediction box respectively; They are the minimum diagonal distance between two boxes, the width of the minimum circumscribed matrix, and the height of the minimum circumscribed matrix.
[0123] S14, the original data set in S12 is used as the training set to input into the improved CenterNet for training. The model training is divided into the freezing stage and the unfreezing stage. The number of iterations is set to 100 and the learning rate is , the learning rate decays in a cosine function type. Different learning rates and batch training sizes are appropriately set according to the changing trend of the loss function L during training. The training is terminated when the specified number of iterations is reached, and a parking lot vehicle detection model is obtained.
[0124] S15, marking the vehicles detected by the parking lot vehicle detection model with boxes, such as Figure 2 As shown, the electronic map of the parking lot is input into the parking reservation platform for users and staff to view in real time;
[0125] S16. Count the number of detected vehicles, subtract the number of detected vehicles from the total number of parking spaces to obtain the remaining number of parking spaces, and output it to the parking reservation platform for display.
[0126] Specifically, in S2, the first-book-first-served parking mode is as follows: 24 hours a day is divided into T time periods, and users make reservations on the parking platform according to their needs to reserve any consecutive time periods in the next three days. When the reservation is successful, the ground lock will be activated to reserve the parking space for the reservation period. When the user recognizes the valid license plate number through the parking lot gate, the ground lock will be lowered and the parking space will be used by the user;
[0127] The auction reservation parking mode is specific as follows: the parking spaces for auction reservations will be published in advance on the reservation parking platform, and users submit reservation applications based on the estimates they provide. The price of a parking space under this mode depends on the bid of each driver for the parking space. If the number of users who reserve parking spaces in the same time period is greater than the number of parking spaces under this mode, parking spaces will be acquired in order of bids from high to low.
[0128] Specifically, in S3, the number of vehicles detected within a period of time is collected as the parking lot historical parking data, such as Figure 3 As shown, the specific steps include:
[0129] S31. Carry out trial operation of parking lots adopting mixed parking mode, open the reservation function in advance, and record the number of parking lots that adopt mixed parking mode on the first day. , berths are evenly allocated, that is, , , and published on the parking reservation platform, users can make reservations in advance. At the end of the first day, the number of real first-come, first-served parking spaces on that day is counted through the parking lot vehicle detection model. , Number of parking spaces on a first-come, first-served basis and auction the number of reserved parking spaces , and update it in the database;
[0130] S32, predicted The calculation formula for the daily first-come-first-served parking space demand and parking mode parking space ratio is:
[0131] ; (2)
[0132] in, For the predicted The demand for parking spaces on a first-come, first-served basis. The first prediction based on deep neural network in traditional parking mode The demand for parking spaces on a first-come, first-served basis is calculated. The traditional parking mode is that all parking spaces are on a first-come, first-served basis. The historical parking data under the traditional parking mode within a period of time is obtained and features are extracted to construct a training set and train the deep neural network. For the The number of first-served parking spaces is real. No. The actual number of auctioned parking spaces. For the predicted Percentage of parking spaces on a first-come, first-served basis, For the The percentage of parking spaces that are booked first and served first on a daily basis;
[0133] When At the end of the day, the final first-come-first-served parking space ratio will be Update in the database, Use equal division to obtain The reservation demand of the day is collected to collect the historical parking space ratios corresponding to different conditions over a period of time;
[0134] S33, repeat this cycle until the Days, the trial run was stopped to obtain historical parking data under different conditions based on mixed parking patterns;
[0135] S34. Extract features from historical parking data, including parking quantity, weekdays, weekends, holidays, weather, and seasonal information, and construct a training set.
[0136] The deep neural network is trained using the training set, including:
[0137] First, forward propagation is performed to output the interactive relationship between the historical parking data of the parking lot in the form of linear combination. , the calculation formula is:
[0138] ; (3)
[0139] in, is the weight matrix, is the input vector, which contains information such as the number and time of historical parking. is the bias term;
[0140] Will Send to the ReLU activation function to achieve nonlinear changes , the calculation formula is:
[0141] ; (4)
[0142] in, is the predicted number of parking lots;
[0143] Loss function in predicting neural network The difference between the predicted value and the actual value is calculated using the mean square error (MSE) method. The calculation formula is:
[0144] ; (5)
[0145] in, is the actual number of parking lots, is the sample size;
[0146] Calculate the back propagation error, that is, propagate the error back to each layer through the chain layer, and calculate the error of each layer , the specific calculation formula is:
[0147] ; (6)
[0148] in, represent The derivative of
[0149] Calculate the loss function against the weights and bias The specific calculation formula of the gradient is:
[0150] ; (7)
[0151] ; (8)
[0152] Update weights via stochastic gradient descent (SGD) and bias , the specific calculation formula is:
[0153] ; (9)
[0154] ; (10)
[0155] in, represents the updated weight, represents the updated bias, Represents the learning rate, which controls the step size of parameter update;
[0156] Continue to iterate and update network parameters until convergence, and obtain a trained deep neural network;
[0157] Input whether a future day is a weekday and weather conditions, and use the trained deep neural network to predict the proportion of first-come, first-served parking spaces on a future day.
[0158] Specifically, Figure 4 As shown, S4 includes the following sub-steps:
[0159] S41. Based on the total revenue index of the reservation parking platform, the per capita parking evaluation index index of five types of users, and the driving travel cost index, a comprehensive evaluation system for parking space share is established, such as Figure 6 As shown;
[0160] The comprehensive evaluation system for berth share is as follows:
[0161] Benefits of first-come, first-served parking The calculation formula is:
[0162] ; (11)
[0163] in, The percentage of parking spaces that are on a first-come, first-served basis, Represents the total number of parking spaces; Represents the fee drivers need to pay under the first-come, first-served parking model;
[0164] Benefits of first-served parking model The calculation formula is:
[0165] ; (12)
[0166] in, The percentage of parking spaces that are first-served, Fees paid to drivers on a first-come, first-served basis;
[0167] For parking spaces in the parking lot that adopts the auction reservation mode, the calculation method of the VCG auction mechanism is adopted. When many users auction the same parking space, assuming that after one round of auction, the final amount that the user who successfully reserves needs to pay is , the specific calculation formula is:
[0168] ; (13)
[0169] in, Indicates user Reserve a berth of The auction price for the time period; represents the set of users who have successfully made an auction reservation. Represents the total revenue obtained by the reservation parking platform after a round of auction; Indicates no user The revenue obtained by the reservation parking platform after a round of auction;
[0170] Therefore, the auction reservation parking model revenue It is the sum of the final payment prices of all successful bidders. The specific calculation formula is:
[0171] ; (14)
[0172] in, Representative Users who successfully bid Fees to be paid;
[0173] In order to balance the market efficiency and fairness of the reservation parking platform and meet the diversified parking needs, , the total revenue of the reservation parking platform at this time The calculation formula is:
[0174] ; (15)
[0175] The five types of user per capita parking evaluation index indicators include the per capita parking evaluation index indicator for low-income users, the per capita parking evaluation index indicator for lower-middle-income users, the per capita parking evaluation index indicator for middle-income users, the per capita parking evaluation index indicator for upper-middle-income users, and the per capita parking evaluation index indicator for high-income users;
[0176] No. Class User Parking rating index The specific calculation formula is:
[0177] ; (16)
[0178] in, Representative User For The parking experience evaluation indicators include convenience, safety and parking lot service quality, namely =3;
[0179] user The cost of driving Including fuel costs, parking fees, driving time costs and walking time costs, the calculation formula is:
[0180] ; (17)
[0181] in, Represents the fuel cost per unit mileage of driving. Representative User Actual driving distance, Represents the actual fuel cost incurred during the trip; represents the cost incurred by the user when using a certain parking method. The specific calculation formula is shown in formula (18): Representative User The wage rate is the ratio of the user's monthly income to the working hours, in yuan / hour; Represents the user's driving time. Represents the walking time of the user from the parking lot to the destination;
[0182] ; (18)
[0183] in, The fees are incurred on a first-come, first-served basis. For the fees incurred on a first-come, first-served basis, Fees incurred during auction reservation.
[0184] S42. Based on the comprehensive evaluation system of parking space ratio, the CRITIC objective weighting method is used to build a comprehensive evaluation model for the parking space ratio of mixed parking modes, and the optimal parking space ratio of the three parking modes is obtained.
[0185] The comprehensive evaluation model of mixed parking mode parking space ratio is as follows: the CRITIC objective weighting method is used to compare the internal variability of the seven evaluation indicators in S41 and the conflict between the evaluation indicators to calculate the objective weights, and the objective weights are used to make decisions. and The optimal proportion of , the specific steps are as follows;
[0186] and Taking o as the step length, based on the comprehensive evaluation system of parking space proportion under the mixed parking mode, the values corresponding to the seven evaluation indicators under different proportion schemes are calculated and the original matrix is constructed, that is, ,in Indicates A proportion plan, is the number of proportion solutions, Indicates indicators;
[0187] A dimensionless method is used to deal with the parking space ratio of a mixed parking lot. First, positive and negative indicators are distinguished to ensure the rationality of the weight distribution of each indicator and the accuracy of the comprehensive evaluation results. The positive indicator means that the larger the indicator, the better, while the negative indicator is the opposite. Among the seven indicators, the total revenue indicator of the reservation parking platform and the per capita parking evaluation index indicator of the five types of residents are positive indicators, and the driving travel cost indicator is a negative indicator. The specific calculation formula for indicator processing is:
[0188] (19)
[0189] in, For the Line The values of column index data after volume-free rigidification; For the Column original data value; , Respectively Maximum and minimum values in the column;
[0190] The matrix obtained by dimensionless processing is used to calculate the standard deviation of each indicator to obtain the variability of the indicator. The specific calculation formula is:
[0191] ; (20)
[0192] in, For the The standard deviation calculated for each indicator;
[0193] The correlation coefficient is formed by the correlation between the indicators, and the The conflict between an indicator and other indicators is calculated by the following formula:
[0194] ;(twenty one)
[0195] in, Indicates The conflict between the indicators; To evaluate the seven indicators and The correlation coefficient matrix between the indicators;
[0196] Combined with the variability of this indicator And the conflicts among the indicators The objective weight of each indicator is calculated. The specific calculation formula is:
[0197] ;(twenty two)
[0198] In the formula, Indicates The amount of comprehensive information contained in each indicator. The larger the value, the greater the The more important an indicator is in this evaluation, the more weight it will be assigned; For the The objective weight value of each indicator;
[0199] According to the objective weight value of each indicator, the comprehensive evaluation index of different parking space ratios in the mixed parking mode is calculated. , the group of proportion values with the highest score is determined to be the optimal berth proportion solution, and its specific calculation formula is:
[0200] (twenty three).
[0201] Specifically, Figure 5 As shown, S5 includes the following sub-steps:
[0202] S51. Based on the historical cycle data in S1, predict the proportion of first-come, first-served parking spaces on a certain day in the future , based on S4, we get the optimal ratio of a set of mixed parking spaces and ,judge and Is the difference greater than 0.2? If it is less than or equal to 0.2, the optimal proportion of mixed parking spaces is and , if it is greater than 0.2, execute S52;
[0203] S52, As a benchmark, Perform dynamic allocation to achieve a suboptimal state.
[0204] First, calculate according to S41 hour, The values corresponding to the seven evaluation indicators when different values are taken, and then the comprehensive evaluation index is selected according to S42 The highest proportion plan is to achieve the suboptimal parking space proportion in the mixed parking mode through secondary allocation, thus realizing dynamic allocation of parking spaces.
[0205] In order to more clearly illustrate the analysis method of the comprehensive decision-making index of berth proportion in the hybrid mode, the present invention uses the data in Table 1 as the initial data for numerical experiments.
[0206] Table 1 Initial data table of comprehensive decision-making indicators for berth share
[0207] ;
[0208] For the original data, after dimensionless preprocessing by formula (19), the indicator variability is processed by formula (20). The calculated standard deviation reflects the difference fluctuation of the values within each indicator. The specific calculation matrix result is:
[0209] ;(twenty four)
[0210] The index conflict is calculated by formula (21), and the specific calculation result matrix is:
[0211] ; (25)
[0212] According to formula (22), the weight matrix of each indicator in the comprehensive evaluation system can be obtained. The specific calculation result matrix is shown in formula (26). The significance of calculating the weight is to reflect the importance of the indicator in the decision-making process. The greater the weight, the more dominant the indicator is in the evaluation system. Figure 7 It can be seen that the weight corresponding to the per capita parking evaluation index of low-income drivers is the largest, that is, this indicator is the most important.
[0213] ; (26)
[0214] According to the above results, the comprehensive evaluation index of the 16 berth ratio schemes in Table 1 can be calculated. The specific calculation result matrix is:
[0215] ; (27)
[0216] It can be seen from the results of formula (27) that the comprehensive evaluation index of the tenth allocation method in the numerical experiment is the largest, that is, The proportion method is optimal.
[0217] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A berth dynamic allocation method based on deep learning and objective weighting method, characterized in that: The following steps are involved: S1. Obtain traditional parking lot data, including the total number of parking spaces and vehicle characteristics, build a parking lot vehicle detection model based on the improved CenterNet network model, and monitor the changes in the number of vehicles in the parking lot area in real time; S2. Establish a mixed parking mode, including a non-reservation mode and a reservation mode. The non-reservation mode is a first-come, first-served parking mode, and the reservation mode includes a first-reservation, first-served parking mode and an auction reservation parking mode; Set two parameters and , The percentage of parking spaces that are on a first-come, first-served basis, , The number of parking spaces is on a first-come, first-served basis. is the total number of parking spaces, The percentage of parking spaces that are first-served, , The number of parking spaces is based on a first-come, first-served basis. is the total number of parking spaces in the reservation mode, and the proportion of parking spaces reserved by auction is ; S3. Conduct a trial run on a parking lot that implements a mixed parking mode, and use the data obtained from the trial run to train a deep neural network. The trained deep neural network can predict the proportion of parking spaces in the parking lot on a certain day in the future, denoted as and ; S4. Build a comprehensive evaluation system for parking space ratio. Use the CRITIC objective weighting method to build a comprehensive evaluation model for the parking space ratio of mixed parking modes. Get the optimal parking space ratio of the three modes, denoted as and ; S5. Yes and Compare them. If the difference between the two is less than or equal to 0.2, then and Perform dynamic berth allocation. If the difference between the two is greater than 0.2, Based on the benchmark, the two parking modes of first-booked-first-served and auction-booked are secondary allocated; The S1 comprises the following sub-steps: S11, collecting the total number of parking spaces in the parking lot captured by the fixed camera and inputting it into the parking reservation platform; S12, collecting parking lot pictures or videos taken by fixed cameras, and annotating the vehicles in the pictures using manual annotation tools to form an original data set; S13, the improved CenterNet network model includes an improved feature extraction network ResNet-50, an upsampling network DeConv, a prediction network Head and an improved loss function, the improved feature extraction network ResNet-50 includes an RFB preliminary feature extraction module, four ResBlock modules ResBlock_1~ResBlock_4, and a CA attention mechanism module, wherein the RFB module consists of three 1×1 parallel convolution modules, three 3×3 convolution modules, a 5×5 convolution module, an expanded convolution layer and a residual module; the prediction network Head includes a heat map prediction network, a width and height prediction network and a center point bias prediction network; the improved Loss loss function takes into account the overlapping area, center point distance and aspect ratio of the bounding box regression; S14, the original data set in S12 is used as the training set to input into the improved CenterNet for training. The model training is divided into the freezing stage and the unfreezing stage. The number of iterations is set to 100 and the learning rate is , the learning rate decays in a cosine function type. Different learning rates and batch training sizes are appropriately set according to the changing trend of the loss function L during training. The training is terminated when the specified number of iterations is reached, and a parking lot vehicle detection model is obtained. S15, marking the vehicles detected by the parking lot vehicle detection model with boxes, and inputting the parking lot electronic map into the parking reservation platform for users and staff to view in real time; S16, counting the number of detected vehicles, subtracting the number of detected vehicles from the total number of parking spaces to obtain the remaining number of parking spaces, and outputting the remaining number of parking spaces to the parking reservation platform for display; The S4 comprises the following sub-steps: S41. Build a comprehensive evaluation system for parking space share based on the total revenue index of the reservation parking platform, the per capita parking evaluation index of five types of users, and the driving travel cost index; S42. Based on the comprehensive evaluation system of parking space ratio, the CRITIC objective weighting method is used to build a comprehensive evaluation model of parking space ratio for mixed parking modes, and the optimal parking space ratio for the three parking modes is obtained; The comprehensive evaluation system for berth proportion in S41 is specifically as follows: Benefits of first-come, first-served parking The calculation formula is: ;(11) in, The percentage of parking spaces that are on a first-come, first-served basis, Represents the total number of parking spaces; Represents the fee drivers need to pay under the first-come, first-served parking model; Benefits of first-served parking model The calculation formula is: ;(12) in, The percentage of parking spaces that are first-served, Fees paid to drivers on a first-come, first-served basis; For parking spaces in the parking lot that adopts the auction reservation mode, the calculation method of the VCG auction mechanism is adopted. When many users auction the same parking space, assuming that after one round of auction, the final amount that the user who successfully reserves needs to pay is , the specific calculation formula is: ;(13) in, Indicates user Reserve a berth of The auction price for the time period; represents the set of users who have successfully made an auction reservation. It represents the total revenue obtained by the reservation parking platform after a round of auction; Indicates no user The revenue obtained by the reservation parking platform after a round of auction; Therefore, the auction reservation parking model revenue It is the sum of the final payment prices of all successful bidders. The specific calculation formula is: ;(14) in, Representative Users who successfully bid Fees to be paid; In order to balance the market efficiency and fairness of the reservation parking platform and meet the diversified parking needs, , the total revenue of the reservation parking platform at this time The calculation formula is: ;(15) The five types of user per capita parking evaluation index indicators include the per capita parking evaluation index indicator for low-income users, the per capita parking evaluation index indicator for lower-middle-income users, the per capita parking evaluation index indicator for middle-income users, the per capita parking evaluation index indicator for higher-middle-income users, and the per capita parking evaluation index indicator for high-income users; No. Class User Parking rating index The specific calculation formula is: ;(16) in, Representative User For The parking experience evaluation indicators include convenience, safety and parking lot service quality, namely =3; The user The cost of driving Including fuel costs, parking fees, driving time costs and walking time costs, the calculation formula is: ;(17) in, Represents the fuel cost per unit mileage of driving. Representative User Actual driving distance, Represents the actual fuel cost incurred during the trip; represents the cost incurred by the user when using a certain parking method. The specific calculation formula is shown in formula (18): Representative User The wage rate is the ratio of the user's monthly income to the working hours, in yuan / hour; Represents the user's driving time. Represents the walking time of the user from the parking lot to the destination; ;(18) in, The fees are incurred on a first-come, first-served basis. For the fees incurred on a first-come, first-served basis, Fees incurred in auction booking; In S42, the comprehensive evaluation model of mixed parking mode parking space ratio is specifically as follows: the CRITIC objective weighting method is used to compare the internal variability of the seven evaluation indicators in S41 and the conflict between the evaluation indicators to calculate the objective weights, and the objective weights are used to decide the and The optimal proportion of , the specific steps are as follows; and Taking o as the step length, based on the comprehensive evaluation system of parking space proportion under the mixed parking mode, the values corresponding to the seven evaluation indicators under different proportion schemes are calculated and the original matrix is constructed, that is, ,in Indicates A proportion plan, is the number of proportion solutions, Indicates indicators; A dimensionless method is used to deal with the parking space ratio of a mixed parking lot. First, positive and negative indicators are distinguished to ensure the rationality of the weight distribution of each indicator and the accuracy of the comprehensive evaluation results. The positive indicator means that the larger the indicator, the better, while the negative indicator is the opposite. Among the seven indicators, the total revenue indicator of the reservation parking platform and the per capita parking evaluation index indicator of the five types of residents are positive indicators, and the driving travel cost indicator is a negative indicator. The specific calculation formula for indicator processing is: (19) in, For the Line The values of column index data after volume-free rigidification; For the Column original data value; , Respectively Maximum and minimum values in the column; The matrix obtained by dimensionless processing is used to calculate the standard deviation of each indicator to obtain the variability of the indicator. The specific calculation formula is: ;(20) in, For the The standard deviation calculated for each indicator; The correlation coefficient is formed by the correlation between the indicators, and the The conflict between an indicator and other indicators is calculated by the following formula: ;(21) in, Indicates The conflict between the indicators; To evaluate the seven indicators and The correlation coefficient matrix between the indicators; Combined with the variability of this indicator And the conflicts among the indicators The objective weight of each indicator is calculated. The specific calculation formula is: ;(22) In the formula, Indicates The amount of comprehensive information contained in each indicator. The larger the value, the greater the The more important an indicator is in this evaluation, the more weight it will be assigned; For the The objective weight value of each indicator; According to the objective weight value of each indicator, the comprehensive evaluation index of different parking space ratios in the mixed parking mode is calculated. , the group of proportion values with the highest score is determined to be the optimal berth proportion solution, and its specific calculation formula is: (23)。 2. According to claim 1, a method for dynamic berth allocation based on deep learning and objective weighting method is characterized in that: In S3, the number of vehicles detected within a period of time is collected as the historical parking data of the parking lot, which specifically includes the following steps: S31. Carry out trial operation of parking lots adopting mixed parking mode, open the reservation function in advance, and record the number of parking lots that adopt mixed parking mode on the first day. , berths are evenly allocated, that is, , , and published on the parking reservation platform, users can make reservations in advance. At the end of the first day, the number of real first-come, first-served parking spaces on that day is counted through the parking lot vehicle detection model. , Number of parking spaces on a first-come, first-served basis and auction the number of reserved parking spaces , and update it in the database; S32, predicted The calculation formula for the daily first-come-first-served parking space demand and parking mode parking space ratio is: ;(2) in, For the predicted The demand for parking spaces on a first-come, first-served basis. The first prediction based on deep neural network in traditional parking mode The demand for parking spaces on a first-come, first-served basis. For the The number of first-served parking spaces is real. No. The actual number of auctioned parking spaces. For the predicted Percentage of parking spaces on a first-come, first-served basis, For the The percentage of parking spaces that are booked first and served first on a daily basis; When At the end of the day, the final first-come, first-served parking space ratio will be Update in the database, Use equal division to obtain Days of appointment requirements; S33, repeat this cycle until the Days, the trial run was stopped to obtain historical parking data under different conditions based on mixed parking patterns; S34. Extract features from historical parking data, including parking quantity, weekdays, weekends, holidays, weather, and seasonal information, and construct a training set.
3. The method for dynamic berth allocation based on deep learning and objective weighting method according to claim 2 is characterized in that: In S3, the deep neural network is trained using the training set, which specifically includes: First, forward propagation is performed to output the interactive relationship between the historical parking data of the parking lot in the form of linear combination. , the calculation formula is: ;(3) in, is the weight matrix, is the input vector, which contains information such as the number and time of historical parking. is the bias term; Will Send to the ReLU activation function to achieve nonlinear changes , the calculation formula is: ;(4) in, is the predicted number of parking lots; Loss function in predicting neural network The difference between the predicted value and the actual value is calculated using the mean square error (MSE) method. The calculation formula is: ;(5) in, is the actual number of parking lots, is the sample size; Calculate the back propagation error, that is, propagate the error back to each layer through the chain layer, and calculate the error of each layer , the specific calculation formula is: ;(6) in, represent The derivative of Calculate the loss function against the weights and bias The specific calculation formula of the gradient is: ;(7) ;(8) Update weights via stochastic gradient descent (SGD) and bias , the specific calculation formula is: ;(9) ;(10) in, represents the updated weight, represents the updated bias, Represents the learning rate, which controls the step size of parameter update; Continue to iterate and update network parameters until convergence to obtain a trained deep neural network; Input whether a future day is a weekday and weather conditions, and use the trained deep neural network to predict the proportion of first-come, first-served parking spaces on a future day.
4. The method for dynamic berth allocation based on deep learning and objective weighting method according to claim 3 is characterized in that: The S5 comprises the following sub-steps: S51. Based on the historical cycle data in S1, predict the proportion of first-come, first-served parking spaces on a certain day in the future , based on S4, we get the optimal ratio of a set of mixed parking spaces and ,judge and Is the difference greater than 0.2? If it is less than or equal to 0.2, the optimal proportion of mixed parking spaces is and , if it is greater than 0.2, execute S52; S52, As a benchmark, Perform dynamic allocation to achieve a suboptimal state.
5. The method for dynamic berth allocation based on deep learning and objective weighting method according to claim 4 is characterized in that: In S52, firstly, according to S41, hour, The values corresponding to the seven evaluation indicators when different values are taken, and then the comprehensive evaluation index is selected according to S42 The highest proportion plan is to achieve the suboptimal parking space proportion in the mixed parking mode through secondary allocation, thus realizing dynamic allocation of parking spaces.
Citation Information
Patent Citations
Intelligent parking platform and intelligent parking method
CN105701551A
Intelligent parking berth reservation strategy optimization method based on Agent simulation
CN108417031A
Method for establishing parking space optimal distribution model in intelligent closed parking lot operation mode
CN112037560A
Share-ride vehicle demand prediction device, share-ride vehicle demand prediction method, and program
CN112602110A
Intelligent parking lot
CN113990098A
