Parking lot vehicle traffic control method, device and storage medium
Through real-time traffic video analysis and parking space occupancy prediction, combined with the dynamic exit lane allocation scheme, the problem of lane congestion during peak periods in the parking lot is solved, traffic efficiency is improved, rapid entry and exit are achieved, and lane pressure is reduced.
Patent Information
- Application Number
- CN202410877425.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing vehicle traffic control methods in parking lots lead to lane congestion and low traffic efficiency during peak periods, especially when entering or leaving vehicles need to queue up for scanning, billing and payment, resulting in congestion at the entrance and exit lanes of the parking lot.
Collect real-time traffic video through cameras, analyze lane congestion, turn on quick entry or exit mode, guide vehicles to destination parking spaces based on parking space occupancy prediction, and optimize vehicle exit paths through dynamic exit lane allocation schemes or departure path induced planning algorithms.
It effectively reduces congestion in the parking lot and exit lanes, improves vehicle traffic efficiency, avoids vehicles staying in the parking lot or exit lanes for a long time, and improves the overall traffic capacity of the parking lot.
Smart Images

Figure CN118430335B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of traffic control, and in particular to a method, device and storage medium for controlling the passage of vehicles in a parking lot. Background Art
[0002] At present, whether it is a residential area or a physical building in the city, such as a hotel, supermarket, etc., many are equipped with parking lots to facilitate vehicle users to park for daily use or consumption. These parking lots generally have gates at the entrances and exits, and cameras are installed next to the gates. Vehicles must be captured by the camera after the license plate of the vehicle is captured before they can enter or leave the parking lot. However, for some parking lots, with more and more vehicles entering or leaving the parking lot, especially during rush hours or holidays, due to various factors, such as scanning QR codes, checking license plate numbers, checking fees and billing, entering amounts and payment passwords, cash change, and payment to open the gate, etc., the existing parking lot vehicle access control method requires vehicle users to drive and queue up at the entrance and exit of the parking lot, resulting in lane congestion and greatly reduced traffic efficiency. Summary of the invention
[0003] The present application provides a parking lot vehicle traffic control method, device and storage medium, which can improve the traffic efficiency of the parking lot.
[0004] In one aspect, the present application provides a method for controlling vehicle traffic in a parking lot, the method comprising:
[0005] The camera collects real-time video of vehicles entering and leaving the parking lot;
[0006] Analyze the real-time traffic flow video, and determine whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the analysis results of the real-time traffic flow video;
[0007] If the lanes that must be passed through the entrance and exit of the parking lot are not congested, the normal entry and exit mode is turned on;
[0008] If the lanes that must be passed through the entrance and exit of the parking lot are congested, a quick entry mode or a quick exit mode is activated so that vehicles currently entering and exiting the parking lot can quickly enter and exit the entrance and exit of the parking lot;
[0009] When the quick entry mode is turned on, the currently entering vehicle is guided to the destination parking space based on the prediction of the parking space occupancy of the parking lot;
[0010] When the quick exit mode is turned on, the vehicle about to exit the parking lot is guided to leave the parking lot at the corresponding exit based on a dynamic exit lane allocation scheme or an exit path induction planning algorithm.
[0011] On the other hand, the present application provides a parking lot vehicle passage control device, the device comprising:
[0012] The acquisition module is used to collect real-time video of vehicles entering and leaving the parking lot through cameras;
[0013] A judgment module, used for analyzing the real-time traffic flow video, and judging whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the analysis result of the real-time traffic flow video;
[0014] The first opening module is used to open the normal entry and exit mode if the lanes that must be passed through the entrance and exit of the parking lot are not congested;
[0015] The second opening module is used to open the fast entry mode or the fast exit mode if the lane that must be passed through the entrance and exit of the parking lot is congested, so that the vehicles currently entering and leaving the parking lot can quickly enter and exit the entrance and exit of the parking lot;
[0016] A first guiding module is used to guide the currently entering vehicle to the destination parking space based on the prediction of the parking space occupancy of the parking lot after the quick entry mode is turned on;
[0017] The second guidance module is used to guide the vehicle about to exit the parking lot to the corresponding exit of the parking lot based on a dynamic exit lane allocation scheme or an exit path induction planning algorithm when the quick exit mode is turned on.
[0018] In a third aspect, the present application provides a device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the technical solution of the above-mentioned parking lot vehicle traffic control method when executing the computer program.
[0019] In a fourth aspect, the present application provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the technical solution of the above-mentioned parking lot vehicle passage control method.
[0020] From the technical solution provided by the present application, it can be seen that when it is judged that the lanes that must be passed through the entrance and exit of the parking lot are congested, the fast entry mode or the fast exit mode is turned on; further, when the fast entry mode is turned on, the current entering vehicle is guided to the destination parking space based on the prediction of the parking space occupancy of the parking lot; when the fast exit mode is turned on, the vehicle that is about to leave is guided to the corresponding exit of the parking lot to leave based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm. On the one hand, when it is judged that the lanes that must be passed through the entrance and exit of the parking lot are congested, the fast entry mode or the fast exit mode is turned on, so that the current vehicle can quickly enter and exit the parking lot entrance and exit; on the other hand, based on the prediction of the parking space occupancy of the parking lot, the current entering vehicle is guided to the destination parking space, which effectively avoids the long-term stay of the entering vehicle in the parking lot, and objectively reduces the congestion of the lanes in the parking lot, and based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm, the vehicle that is about to leave is guided to the corresponding exit of the parking lot to leave, which effectively avoids the long-term stay of the leaving vehicle in the parking lot, and can also reduce the congestion of the parking lot exit lane. In summary, the technical solution of the present application effectively improves the vehicle traffic efficiency in the parking lot. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 is a flow chart of a parking lot vehicle passage control method provided by an embodiment of the present application;
[0023] Figure 2 It is a structural schematic diagram of a parking lot vehicle passage control device provided in an embodiment of the present application;
[0024] Figure 3 It is a schematic diagram of the structure of the server provided in the embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] In this specification, adjectives such as first and second may be used only to distinguish one element or action from another element or action, without necessarily requiring or implying any actual such relationship or order. Where circumstances permit, reference to an element or component or step (etc.) should not be interpreted as being limited to only one of the elements, components, or steps, but may be one or more of the elements, components, or steps, etc.
[0027] In this specification, for the convenience of description, the sizes of various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0028] At present, whether it is a residential area or a physical building in the city, such as a hotel, supermarket, etc., many are equipped with parking lots to facilitate vehicle users to park for daily use or consumption. These parking lots generally have gates at the entrances and exits, and cameras are installed next to the gates. Vehicles must be captured by the camera after the license plate of the vehicle is captured before they can enter or leave the parking lot. However, for some parking lots, with more and more vehicles entering or leaving the parking lot, especially during rush hours or holidays, due to various factors, such as scanning QR codes, checking license plate numbers, checking fees and billing, entering amounts and payment passwords, cash change, and payment to open the gate, etc., the existing parking lot vehicle access control method requires vehicle users to drive and queue up at the entrance and exit of the parking lot, resulting in lane congestion and greatly reduced traffic efficiency.
[0029] In view of the above problems of the prior art, this application proposes a parking lot vehicle traffic control method, which can improve the traffic efficiency of the parking lot. Figure 1 As shown, it mainly includes steps S101 to S106, which are described in detail as follows:
[0030] Step S101: Collect real-time video of vehicles entering and leaving the parking lot through a camera.
[0031] In the embodiment of the present application, the video of the traffic in and out of the parking lot can be collected in real time by the camera installed near the entrance and exit of the parking lot, including the number of vehicles, driving speed and vehicle density in the parking lot entrance and exit lanes (i.e., the parking lot entrance lane and the parking lot exit lane, where the parking lot entrance lane refers to the lane leading to the parking lot entrance, and the parking lot exit lane refers to the lane leading to the parking lot exit); of course, other sensors, such as non-visual sensors such as ground sensors, can also be combined to assist in obtaining this information. Subsequently, the visual information collected by the camera and the information collected by other non-visual sensors such as ground sensors can be combined to analyze the traffic situation together.
[0032] Step S102: Analyze the real-time traffic video, and determine whether the lanes that must be passed through the entrance and exit of the parking lot are congested based on the analysis results of the real-time traffic video.
[0033] It should be noted that the real-time traffic video collected by the camera in the aforementioned step S101 can be analyzed by the local terminal or uploaded to the background (generally a powerful server) for analysis by the background, and this application does not limit this. In the embodiment of the present application, it is possible to judge whether the lanes that must be passed through the entrance and exit of the parking lot are congested from the data of multiple dimensions such as the traffic volume, speed, occupancy rate, queue length and delay time on the lanes that must be passed through the entrance and exit of the parking lot. For example, when the occupancy rate of the lanes that must be passed through the entrance and exit of the parking lot (i.e., the proportion of space occupied by vehicles on the road, reflecting the saturation of the road) is too high, it is difficult for vehicles to pass normally and congestion is likely to occur, so that the occupancy rate can be used to judge whether the lanes that must be passed through the entrance and exit of the parking lot are congested; for example, when the length of the queue of vehicles in the lanes that must be passed through the entrance and exit of the parking lot is too long, it indicates that this point has become a congestion bottleneck, affecting the passage of the upstream road, so the length of the queue can be used to judge whether the lanes that must be passed through the entrance and exit of the parking lot are congested, and so on.
[0034] Step S103: If the lanes that must be passed through the parking lot entrance and exit are not congested, the normal entrance and exit mode is turned on.
[0035] If the real-time traffic video analysis shows that the lanes leading to the parking lot entrance and exit are not congested, then the current vehicles entering and exiting the parking lot will not affect subsequent vehicles entering and exiting the parking lot, and the normal entry and exit mode can be enabled.
[0036] Step S104: If the lanes that must be passed through the parking lot entrance and exit are congested, a quick entry mode or a quick exit mode is activated to allow vehicles currently entering and exiting the parking lot to quickly enter and exit the parking lot entrance and exit.
[0037] If the analysis of real-time traffic video shows that the lanes that are necessary for the parking lot entrance and exit are already congested, turning on the normal entry and exit mode will aggravate the congestion. At this time, the fast entry mode or fast exit mode should be turned on, for example, contactless passage and payment, so that vehicles currently entering and exiting the parking lot can quickly enter and exit the parking lot entrance and exit, thereby alleviating the current congestion in the lanes that are necessary for the parking lot entrance and exit.
[0038] Step S105: When the quick entry mode is turned on, the currently entering vehicle is guided to the destination parking space based on the prediction of the parking space occupancy situation in the parking lot.
[0039] Although the current vehicle can quickly enter the parking lot entrance after the quick entry mode is turned on, objectively alleviating the congestion of the parking lot entrance lane. However, if the vehicle enters the parking lot and circles aimlessly, and cannot quickly enter the target parking space, then after a certain number of vehicles enter, it is highly likely to cause congestion in the lanes in the parking lot, and even cause congestion in the lanes that must be passed through the parking lot entrance again. Therefore, in an embodiment of the present application, when the quick entry mode is turned on, the current entering vehicle can be guided to the destination parking space based on the prediction of the parking lot parking space occupancy. As an embodiment of the present application, guiding the current entering vehicle to the destination parking space based on the prediction of the parking lot parking space occupancy can be achieved through steps S1051 to S1054, as described in detail as follows:
[0040] Step S1051: Obtain the occupancy status data of each parking space in the parking lot in real time.
[0041] In the embodiment of the present application, sensors and cameras installed at parking spaces in the parking lot can be used to collect the occupancy status data of each parking space in real time. Since the status of a parking space is either occupied or free, which belongs to binary logic, logical "1" can be used to indicate that the parking space is occupied, and logical "0" can be used to indicate that the parking space is free. In other words, for the first i parking spaces, including t Occupancy status data at all times It can be expressed as:
[0042]
[0043] Step S1052: inputting the occupancy status data of each parking space in the parking lot into the trained parking space occupancy prediction model, and using the trained parking space occupancy prediction model to predict the probability of each parking space in the parking lot being occupied at a certain time in the future.
[0044] In the embodiment of the present application, the trained parking space occupancy prediction model is obtained after training a model based on a certain algorithm (such as LSTM, GRU, etc.). For the specific training method, please refer to the description of the subsequent embodiments. It should be noted that before the occupancy status data of each parking space in the parking lot is input into the trained parking space occupancy prediction model, the occupancy status data of each parking space can be pre-processed by cleaning, denoising and standardization, and converted into time series data, that is, for the first i parking spaces, and their occupancy status time series It can be expressed as:
[0045]
[0046] For i parking spaces at all times t Probability of being occupied It can be expressed as:
[0047]
[0048] in, Indicates that the parking space occupancy prediction model has been trained.
[0049] Step S1053: Based on the probability of each parking space being occupied in the parking lot, the occupancy status data of each parking space and the destination position of the current entering vehicle, a parking space set consisting of the parking spaces closest to the destination position of the current entering vehicle and with the lowest occupancy probability is recommended to the current entering vehicle.
[0050] When the current vehicle enters the parking lot, its destination location can be obtained (using D Then, according to the probability of each parking space being occupied, , Occupancy status data of each parking space and the destination location of the current incoming vehicle D , recommends a set of parking spaces that are closest to the destination of the current vehicle and have the lowest probability of being occupied to the current vehicle (using R Indicates that, and, assuming that the set has k parking spaces):
[0051]
[0052] The above collection R Any parking space Must meet:
[0053]
[0054] in, Indicates vacant parking spaces To destination D The distance Indicates parking spaces in a parking lot The probability of occupancy, min ( ) is a minimum function, which means to find the minimum value of the expression in the brackets. It should be noted that in the above embodiment, the "free parking spaces" in "all free parking spaces in the parking lot" are based on the i The occupancy status data of each parking space is the occupancy status data of the aforementioned embodiment. To judge.
[0055] Step S1054: Sending a set of parking spaces closest to the destination position of the currently entering vehicle and having the lowest occupancy probability to the user of the currently entering vehicle to guide the currently entering vehicle to any parking space in the set of parking spaces.
[0056] Specifically, the parking space set closest to the destination of the current vehicle and with the lowest probability of being occupied can be selected through the smartphone application or the in-vehicle navigation system. R Sent to the user of the current vehicle entering the parking lot to guide the current vehicle to any parking space in the parking space set .
[0057] As another embodiment of the present application, based on the prediction of parking space occupancy in the parking lot, guiding the currently entering vehicle to the destination parking space can be achieved through steps S'1051 to S'1055, as described in detail as follows:
[0058] Step S'1051: Obtain the parking space reservation request of the current incoming vehicle.
[0059] In the embodiment of the present application, the parking space reservation request of the current entering vehicle is a request information sent in advance to the parking lot management system before the current entering vehicle arrives at the parking lot, which includes the estimated arrival time of the current entering vehicle. T , length of stay in the parking lot L and parking lot destination D , etc.; the backend can obtain the parking space reservation request of the current entering vehicle through the parking lot management system.
[0060] Step S'1052: Obtain the reservation status of the virtual parking space pool from the management system of the parking lot.
[0061] In the embodiment of the present application, the parking lot management system maintains a virtual parking space pool, recording the reservation status and expected idle time of each parking space. Since the status of a parking space is either reserved or unreserved, that is, it belongs to binary logic, therefore, logic "1" can be used to indicate that the parking space is reserved, and logic "0" can be used to indicate that the parking space is unreserved. In other words, for the first i Parking spaces, their reserved status It can be expressed as:
[0062]
[0063] No. i Estimated parking space availability time It can be expressed as:
[0064]
[0065] in, t Indicates the current moment, Indicates j The vehicle in i The expected parking time for each parking space is The expression shows that if i parking spaces at the current timet Has been j Vehicle reservations, and j The expected parking time for a vehicle is , then i Parking spaces are expected to be Free time; i parking spaces at the current time t If no reservation is made, i parking spaces are expected to be t For example, suppose that at the current moment t 10:00 a.m., i Parking spaces have been j Vehicle reservation, j The vehicle is expected to park for 2 hours (i.e. =2 hours), then i Estimated vacancy time for parking spaces = 10:00 am + 2 hours = 12:00 pm. i If a parking space is not reserved at 10:00 a.m., its estimated free time is It is 10:00 in the morning.
[0066] Step S'1053: Determine a set of candidate parking spaces according to the parking space reservation request of the current incoming vehicle and the reservation status of the virtual parking space pool.
[0067] Specifically, according to the parking space reservation request of the current incoming vehicle and the reservation status of the virtual parking space pool, the parking space with an estimated idle time earlier than the estimated arrival time of the current incoming vehicle and closest to the destination can be selected. k parking spaces as a set of candidate parking spaces C :
[0068]
[0069] For the candidate parking space set C Any parking space in the candidate The following conditions must be met:
[0070]
[0071] in, Indicates candidate parking spaces The reservation status, Indicates candidate parking spaces The estimated arrival time of the current vehicle T The expected idle probability, is the preset probability threshold, Indicates vacant parking spaces To destination D distance, and It should also satisfy and , min ( ) is the minimum function, which means to find the minimum value of the expression in the brackets. The above conditions show that: for each candidate parking space , which is the estimated arrival time of the current incoming vehicle T The estimated idle probability Should be greater than or equal to the preset probability threshold , can be included in the consideration of parking space allocation. In this way, it can ensure that the parking space allocated to the vehicle has high availability when it arrives, reducing the risk of parking space reservation failure. It should be noted that the preset probability threshold The value of can be adjusted according to the actual situation and management needs of the parking lot. The higher the threshold, the stricter the screening of candidate parking spaces, the higher the reservation success rate, but the number of available parking spaces may decrease; the lower the threshold, the wider the selection range of candidate parking spaces, the more available parking spaces, but the risk of reservation failure may also increase. Therefore, the preset probability threshold The value of needs to be balanced between usability and risk.
[0072] Step S'1054: Select a target parking space from the candidate parking space set, wherein the target parking space is the parking space with the lowest probability of being occupied at the estimated arrival time of the current incoming vehicle output by the trained parking space occupancy prediction model.
[0073] When selecting a target parking space from the candidate parking space set, and the target parking space is the parking space with the lowest probability of being occupied at the estimated arrival time of the current incoming vehicle output by the trained parking space occupancy prediction model, it means that the selected parking space is of course the candidate parking space set obtained in the above embodiment. C Secondly, the selected parking space must also meet the condition that the probability of being occupied at the estimated arrival time of the current incoming vehicle output by the trained parking space occupancy prediction model is the lowest. If it means:
[0074]
[0075] in, Based on the previously trained parking space occupancy prediction model Get, that is , is a mathematical function, which means finding
[0076] Get the candidate parking space with the minimum value .
[0077] Step S'1055: Send the destination parking space to the user of the current vehicle entering the parking lot, so as to guide the current vehicle entering the parking lot to the destination parking space.
[0078] After obtaining the destination parking space, in addition to sending the destination parking space to the user of the current vehicle entering the parking lot, for example, the parking lot management system sends it to the App of the user of the current vehicle entering the parking lot through the network, the location of the destination parking space, the reserved time period, etc. are also sent together. At the same time, the parking lot management system updates the reservation status and expected idle time of the corresponding parking space in the virtual parking pool.
[0079] After obtaining the destination parking space, in addition to sending the destination parking space to the user of the current vehicle entering the parking lot, for example, the parking lot management system sends it to the App of the user of the current vehicle entering the parking lot through the network, the location of the destination parking space, the reserved time period, etc. are also sent together. At the same time, the parking lot management system updates the reservation status and expected idle time of the corresponding parking space in the virtual parking pool.
[0080] As mentioned above, the trained parking space occupancy prediction model in the above embodiment is obtained by training the parking space occupancy prediction model. Specifically, the training method is as follows: Steps S1 to S4:
[0081] Step S1: Collect parking space occupancy history data of the parking lot.
[0082] In the embodiment of the present application, the collected parking lot historical parking space occupancy data includes information such as the occupancy status, timestamp, vehicle type, and dwell time of each parking space; these collected data can be divided into a training set, a validation set, and a test set. Furthermore, the parking space occupancy historical data can be cleaned, denoised, and normalized, and specifically, the parking space occupancy status can be converted into a binary variable (i.e., 0 for free, 1 for occupied), the timestamp can be converted into a cyclic feature (such as hours, weeks, etc.), and continuous variables (such as dwell time) can be standardized, and so on.
[0083] Step S2: extract key features of parking space occupancy from the parking space occupancy history data to obtain a parking space occupancy feature vector.
[0084] Extracting the key features of parking space occupancy means extracting the key features that affect parking space occupancy, such as time features (hours, days of the week, etc.), parking space location features (distance from the entrance, floor, etc.), vehicle features (model, brand, etc.), environmental features (weather, temperature, etc.), etc. Encode these extracted key features, such as one-hot encoding, embedding, etc., to obtain the parking space occupancy feature vector.
[0085] Step S3: Input the parking space occupancy feature vector into the following parking space occupancy prediction model for training:
[0086]
[0087] in, is the Logistic function (its prototype is ), y represents the probability of a parking space being occupied, x represents the parking space occupancy feature vector input to the parking space occupancy prediction model, and b denote the weight vector and bias term respectively.
[0088] Step S4: After each round of training, the performance of the parking space occupancy prediction model is evaluated, and the weight vector of the parking space occupancy prediction model is updated according to the following formula until the parking space occupancy prediction model converges or the performance reaches the expected level:
[0089]
[0090] in, is the weight vector before updating, is the updated weight vector, is the learning rate, Represents the gradient of the loss function of the parking space occupancy prediction model with respect to the weight.
[0091] In the weight vector update formula of the above parking space occupancy prediction model, the learning rate It is an important hyperparameter of the machine learning model. The so-called hyperparameter is a parameter set before model training, which needs to be adjusted based on experience or experiments to obtain the best model performance. In addition to the learning rate, other common hyperparameters include the number of hidden layers, the number of hidden units, the regularization coefficient, the dropout rate, the batch size, and so on. Among them, the learning rate determines the magnitude of the weight update in each iteration. A higher learning rate can speed up the convergence speed, but it may cause the optimization process to be unstable and difficult to converge to the optimal solution. A lower learning rate can ensure stable convergence, but the training time is longer. In an embodiment of the present application, the learning rate of the weight vector update formula of the above-mentioned parking space occupancy prediction model is The selection can be made through an attenuation scheme or an adaptive adjustment scheme, wherein the attenuation scheme can be a piecewise constant attenuation or an exponential attenuation, which is described in detail below.
[0092] Piecewise constant decay learning rate The training process is divided into several stages, each of which uses a different learning rate. In other words, the learning rate remains unchanged within each stage, but decays by a certain factor when crossing stages. The specific process includes:
[0093] 1. Determine the decay stage and decay factor. For example, decay once every 50 epochs, and the decay factor is 0.1.
[0094] 2. In each stage, the learning rate remains unchanged, that is:
[0095]
[0096] in, For the t The learning rate for each epoch, is the initial learning rate,
[0097] For the i The starting epoch of each stage, is the attenuation factor.
[0098] Exponentially decaying learning rate It means that the learning rate decays over time in the form of an exponential function, and the decay rate is controlled by hyperparameters. The specific process includes: Determine the initial learning rate and decay rate (usually 0.9~0.999); in each epoch, update the learning rate as follows:
[0099]
[0100] in, For the t The learning rate for each epoch, is the initial learning rate, is the attenuation rate.
[0101] The adaptive adjustment scheme of the learning rate refers to a method of automatically adjusting the learning rate of each parameter according to the gradient information in the model training process, thereby accelerating convergence and improving training stability. Specifically, the adaptive adjustment scheme of the learning rate includes the following steps S1 and S2:
[0102] Step S1: Initialize the first-order moment estimate of the parameters , second-order moment estimate , time step t =0;
[0103] Step S2: In each iteration, for each parameter Perform the following process:
[0104] Computing Gradients ,in, is the loss function;
[0105] Update the first moment estimate:
[0106] Update the second moment estimate:
[0107] Modified first moment estimate:
[0108] Modified second moment estimate:
[0109] Update parameters:
[0110] in, and is the attenuation rate (usually taken as =0.9, =0.999 ), is the initial learning rate (usually 0.001), is the smoothing term (usually , e is the natural base), t is the time step, Express Find the square root.
[0111] The above-mentioned adaptive adjustment scheme of learning rate adaptively sets different learning rates for each parameter. The learning rate of parameters that are updated frequently is smaller, and the learning rate of parameters that are updated infrequently is larger. This can accelerate convergence and reduce oscillation. At the same time, it is insensitive to the initial value of the learning rate and has strong robustness.
[0112] Step S106: When the quick exit mode is turned on, the vehicle about to exit the parking lot is guided to the corresponding exit of the parking lot based on the dynamic exit lane allocation plan or the exit path induction planning algorithm.
[0113] Although after the quick exit mode is turned on, the vehicles about to exit (i.e., the vehicles that will leave the parking lot from the parking lot exit) can exit the parking lot exit quickly, which objectively reduces the congestion of the parking lot exit lanes. However, if the vehicles about to exit circle aimlessly and cannot quickly reach the parking lot exit, then after the number of vehicles about to exit reaches a certain number, it is highly likely to cause congestion in the lanes in the parking lot, and even reversely cause congestion in the lanes that must be passed through the parking lot exit. Therefore, in an embodiment of the present application, when the quick exit mode is turned on, the vehicles about to exit are guided to leave the parking lot at the corresponding exit based on the dynamic exit lane allocation scheme or the departure path induction planning algorithm. As an embodiment of the present application, based on the dynamic exit lane allocation scheme, guiding the vehicles about to exit to leave the parking lot at the corresponding exit can be achieved through steps S1061 to S1064, as described in detail as follows:
[0114] Step S1061: Estimate the time it takes for each vehicle to arrive at the parking lot exit based on the status of the vehicle in the parking lot.
[0115] Specifically, the position, speed and other status information of each vehicle in the parking lot can be tracked and located in real time through vehicle positioning sensors, vehicle speed sensors, etc., and the time it takes to reach the parking lot exit can be estimated. as follows:
[0116]
[0117] in, Indicates the current moment, Indicates the distance from the vehicle to the parking lot exit. Indicates the average speed of the vehicle.
[0118] Step S1062: Based on the time when each vehicle arrives at the parking lot exit, predict the vehicle departure demand of each exit lane of the parking lot in the future period of time.
[0119] After obtaining the time when each vehicle arrives at the parking lot exit, the vehicle departure demand for each exit lane of the parking lot in the future can be predicted based on the time when each vehicle arrives at the parking lot exit and taking into account lane occupancy status, time period, weather conditions and other data. , the prediction model can be expressed as:
[0120]
[0121] in, Indicates the impact on parking lot i The characteristic vector of the vehicle departure demand for the exit lanes, including the time it takes for each vehicle to arrive at the parking lot exit , lane occupancy status, time period and weather conditions, etc.
[0122] Step S1063: Dynamically allocate exit lanes according to the predicted vehicle departure demand of each exit lane and the time for each vehicle to arrive at the parking lot exit, so as to minimize the waiting time of each exit lane.
[0123] Specifically, the exit lanes are dynamically allocated according to the predicted vehicle departure demand of each exit lane and the time for each vehicle to arrive at the parking lot exit, so that the waiting time of each exit lane is minimized. This can be achieved based on the following minimum cost maximum flow model, where:
[0124] The lane assignment objective function of the model is as follows:
[0125]
[0126] The constraints are as follows:
[0127]
[0128] in, To find the sum function, Indicates i The number of vehicles assigned to the exit lanes, is a trade-off factor that balances maximum flow and minimum cost. Indicates i The weight of each exit lane (e.g., congestion level) can be determined based on the length of the exit lane, the number of vehicles leaving the exit lane, and the number of vehicles leaving the exit lane. and other relevant factors, Indicates the number of vehicles entering the parking lot, Indicates the number of vehicles leaving the parking lot, Indicates i The maximum capacity of the exit lanes, Represents the total parking lot departure demand.
[0129] Step S1064: Based on the dynamic allocation result of the exit lane, the number of waiting vehicles and the estimated waiting time of each exit lane are published in real time to the user whose vehicle is about to exit the parking lot, so as to guide the vehicle about to exit the parking lot to the corresponding exit of the parking lot.
[0130] Step S1064: Based on the dynamic allocation result of the exit lane, the number of waiting vehicles and the estimated waiting time of each exit lane are published in real time to the user whose vehicle is about to exit the parking lot, so as to guide the vehicle about to exit the parking lot to the corresponding exit of the parking lot.
[0131] Specifically, according to the dynamic allocation results of the exit lanes, the number of waiting vehicles in each exit lane, the estimated waiting time and other information can be released in real time to users of vehicles about to leave the parking lot through electronic display screens, mobile phone applications, etc., to guide these vehicles about to leave the parking lot to the corresponding exit. Furthermore, a flexible lane management mechanism can be introduced, that is, during the peak period of the parking lot exit, some entrance lanes are dynamically adjusted to exit lanes to increase the exit capacity; during the trough period of the parking lot exit, these flexible lanes are restored to entrance lanes. The function switching of these lanes can be achieved through measures such as variable traffic signs, signal lights and their delayed switching of different colors.
[0132] In the embodiment of the present application, the above scheme may be appropriately adjusted for vehicles exiting the parking lot based on the priorities of some groups or vehicles. Specifically, the above method for guiding vehicles about to exit the parking lot to the corresponding exit of the parking lot based on the dynamic exit lane allocation scheme may also include steps Sa1061 to Sa1063, which are described in detail as follows:
[0133] Step Sa1061: Determine the priority weight of the vehicle that is about to leave the vehicle according to its priority.
[0134] Specifically, priority levels can be defined in advance according to vehicle types and special needs. For example, general vehicles are defined as having a priority of 1; disabled vehicles are defined as having a priority of 2; emergency vehicles are defined as having a priority of 3, and so on. The higher the priority value, the higher the priority right of the vehicle. Then, for the first i Car, introduce priority weight :
[0135]
[0136] in, Indicates i The priority value of the vehicle, is a positive scaling factor used to adjust the priority weight By adjusting the scaling factor The value of can flexibly control the priority weight The greater the impact. A smaller value will amplify the priority differences, making high-priority vehicles stand out more; The value will reduce the priority difference and make the exit lane allocation more balanced. You can choose the appropriate value.
[0137] Step Sa1062: Apply the priority weight of the vehicle about to exit to the lane allocation objective function of the dynamic allocation exit lane solution to obtain a modified lane allocation objective function.
[0138] Specifically, the modified lane assignment objective function is as follows:
[0139]
[0140] in, Indicates i The expected exit travel time for vehicles using the assigned lane, To find the sum function, Indicates i The number of vehicles assigned to the exit lanes, and are functions for finding maximum and minimum values, respectively. is the priority weight mentioned above The modified lane assignment objective function above shows that: by dividing by the priority weight , so that vehicles with higher priority have smaller contribution values in the objective function, and are thus preferentially assigned to better exit lanes.
[0141] Step Sa1063: Use the modified lane allocation objective function to construct a lane allocation optimization problem and solve the lane allocation optimization problem to obtain an exit lane allocation solution that includes vehicle priority factors.
[0142] The modified lane allocation objective function is used in combination with other constraints (such as lane capacity limit, etc.) to construct a lane allocation optimization problem. Then, integer programming, heuristic algorithm and other optimization solving techniques are used to solve the lane allocation optimization problem and obtain an exit lane allocation scheme that includes vehicle priority factors.
[0143] As an embodiment of the present application, based on the departure path induction planning algorithm, guiding the vehicle about to leave the parking lot to the corresponding exit can be achieved through steps S'1061 to S'1063, which are described in detail as follows:
[0144] Step S'1061: Collect real-time traffic status data of the parking lot exit lane.
[0145] Specifically, the real-time traffic status data of the parking lot exit lane can be collected by using parking space occupancy sensors, cameras and other equipment to collect real-time traffic flow, speed and other data of the parking lot exit lane. i parking lot exit lanes, their real-time traffic status data can be used to calculate the average speed ,flow And other indicators.
[0146] Step S'1062: input the real-time traffic status data of the parking lot exit lane into the trained parking lot road network congestion prediction model to predict the congestion level of the parking lot exit lane.
[0147] Similar to the previously trained parking space occupancy prediction model, in the embodiment of the present application, the trained parking lot road network congestion prediction model is obtained by training the parking lot road network congestion prediction model using machine learning algorithms, such as support vector regression (SVR), long short-term memory network (LSTM), etc. The data used to train the parking lot road network congestion prediction model can be either historical traffic status data or real-time traffic status data. i The congestion level of the exit lane can be expressed using the travel time index as follows:
[0148]
[0149] in, The predicted parking lot i The travel time for the exit lanes, Indicates the parking lot in free flow state i The travel time for each exit lane.
[0150] Step S'1063: Generate real-time exit path guidance information according to the congestion level of the parking lot exit lanes to guide the vehicles about to leave the parking lot to choose an unobstructed path to leave the parking lot at the corresponding exit.
[0151] According to the predicted parking lot i Congestion level of exit lanes , by identifying the severely congested areas and exit lanes in the parking lot, real-time departure path guidance information is generated, including path recommendations and exit information, etc. Among them, the path recommendation is to recommend a relatively unobstructed path to the exit based on the real-time congestion status and prediction results, and the exit information includes the real-time status of each exit of the parking lot, such as the number of open lanes, expected travel time, etc. These real-time departure path guidance information can be released to users of vehicles that are about to leave the parking lot through electronic display screens, smartphone applications and other channels to guide the vehicles that are about to leave the parking lot to choose an unobstructed path to the corresponding exit of the parking lot. When guiding, for each vehicle that is about to leave, the real-time traffic status data of the parking lot exit lane and the predicted congestion level of the parking lot exit lane can be used in combination with factors such as its current location and expected departure time. , planning the optimal path from the current location to the parking lot exit. Path planning can be based on the shortest path algorithm, such as Dijkstra algorithm or A* algorithm, and the objective function can be expressed as:
[0152]
[0153] in, To find the sum function, To find the minimum function, Indicates parking lot i The length of the exit lane.
[0154] From the above attached Figure 1It can be seen from the example of the parking lot vehicle traffic control method that when it is judged that the lanes that must be passed through the entrance and exit of the parking lot are congested, the fast entry mode or the fast exit mode is turned on; further, when the fast entry mode is turned on, the current entering vehicle is guided to the destination parking space based on the prediction of the parking space occupancy of the parking lot; when the fast exit mode is turned on, the vehicle that is about to leave is guided to the corresponding exit of the parking lot to leave based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm. On the one hand, when it is judged that the lanes that must be passed through the entrance and exit of the parking lot are congested, the fast entry mode or the fast exit mode is turned on, so that the current vehicle can quickly enter and exit the parking lot entrance and exit; on the other hand, based on the prediction of the parking space occupancy of the parking lot, the current entering vehicle is guided to the destination parking space, which effectively avoids the long-term stay of the entering vehicle in the parking lot, and objectively reduces the congestion of the lanes in the parking lot, and based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm, the vehicle that is about to leave is guided to the corresponding exit of the parking lot to leave, which effectively avoids the long-term stay of the leaving vehicle in the parking lot, and can also reduce the congestion of the parking lot exit lane. In summary, the technical solution of the present application effectively improves the vehicle traffic efficiency in the parking lot.
[0155] Please see attached Figure 2 , is a parking lot vehicle passage control device provided by an embodiment of the present application, the device may include a collection module 201, a judgment module 202, a first opening module 203, a second opening module 204, a first guiding module 205 and a second guiding module 206, which are described in detail as follows:
[0156] The acquisition module 201 is used to acquire real-time video of vehicles entering and leaving the parking lot through a camera;
[0157] The judgment module 202 is used to analyze the real-time traffic flow video and judge whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the analysis results of the real-time traffic flow video;
[0158] The first opening module 203 is used to open the normal entry and exit mode if the lanes that must be passed through the entrance and exit of the parking lot are not congested;
[0159] The second opening module 204 is used to open the fast entry mode or the fast exit mode if the lanes that must be passed through the entrance and exit of the parking lot are congested, so that the vehicles currently entering and leaving the parking lot can quickly enter and exit the entrance and exit of the parking lot;
[0160] The first guidance module 205 is used to guide the currently entering vehicle to the destination parking space based on the prediction of the parking space occupancy situation in the parking lot when the fast entry mode is turned on;
[0161] The second guidance module 206 is used to guide the vehicle about to exit the parking lot to the corresponding exit of the parking lot based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm when the fast exit mode is turned on.
[0162] From the above attached Figure 2 It can be seen from the example parking lot vehicle traffic control device that when it is judged that the lanes that must be passed through the entrance and exit of the parking lot are congested, the fast entry mode or the fast exit mode is turned on; further, when the fast entry mode is turned on, the current entering vehicle is guided to the destination parking space based on the prediction of the parking space occupancy of the parking lot; when the fast exit mode is turned on, the vehicle that is about to leave is guided to the corresponding exit of the parking lot to leave based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm. On the one hand, when it is judged that the lanes that must be passed through the entrance and exit of the parking lot are congested, the fast entry mode or the fast exit mode is turned on, so that the current vehicle can quickly enter and exit the parking lot entrance and exit; on the other hand, based on the prediction of the parking space occupancy of the parking lot, the current entering vehicle is guided to the destination parking space, which effectively avoids the long-term stay of the entering vehicle in the parking lot, and objectively reduces the congestion of the lanes in the parking lot, and based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm, the vehicle that is about to leave is guided to the corresponding exit of the parking lot to leave, which effectively avoids the long-term stay of the leaving vehicle in the parking lot, and can also reduce the congestion of the parking lot exit lane. In summary, the technical solution of the present application effectively improves the vehicle traffic efficiency in the parking lot.
[0163] Figure 3 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3 As shown, the electronic device 3 of this embodiment mainly includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30, such as a program of a parking lot vehicle passage control method. When the processor 30 executes the computer program 32, the steps in the above parking lot vehicle passage control method embodiment are implemented, such as Figure 1 Alternatively, when the processor 30 executes the computer program 32, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 2 The functions of the collection module 201 , the judgment module 202 , the first opening module 203 , the second opening module 204 , the first guiding module 205 and the second guiding module 206 are shown.
[0164] Exemplarily, the computer program 32 of the parking lot vehicle traffic control method mainly includes: collecting real-time traffic flow video in and out of the parking lot through a camera; analyzing the real-time traffic flow video, and judging whether the lanes that must be passed through the parking lot entrance and exit are congested according to the analysis results of the real-time traffic flow video; if the lanes that must be passed through the parking lot entrance and exit are not congested, then turning on the normal entry and exit mode; if the lanes that must be passed through the parking lot entrance and exit are congested, then turning on the fast entry mode or the fast exit mode, so that the vehicles currently entering and exiting can quickly enter and exit the parking lot entrance and exit; when the fast entry mode is turned on, based on the prediction of the parking lot parking space occupancy situation, the current entering vehicle is guided to the destination parking space; when the fast exit mode is turned on, based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm, the vehicle that is about to leave is guided to the corresponding exit of the parking lot. The computer program 32 can be divided into one or more modules / units, one or more modules / units are stored in the memory 31, and are executed by the processor 30 to complete the present application. One or more modules / units may be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program 32 in the electronic device 3. For example, the computer program 32 can be divided into the functions of the acquisition module 201, the judgment module 202, the first opening module 203, the second opening module 204, the first guidance module 205 and the second guidance module 206 (modules in the virtual device), and the specific functions of each module are as follows: the acquisition module 201 is used to collect real-time traffic flow videos entering and leaving the parking lot through a camera; the judgment module 202 is used to analyze the real-time traffic flow video and determine whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the analysis results of the real-time traffic flow video; the first opening module 203 is used to determine whether the lanes that must be passed through the entrance and exit of the parking lot are congested if there is no congestion. The normal entry and exit mode is then turned on; the second opening module 204 is used to turn on the fast entry mode or the fast exit mode if the lane that must be passed through the entrance and exit of the parking lot is congested, so that the vehicles currently entering and exiting the parking lot can quickly enter and exit the parking lot; the first guidance module 205 is used to guide the current entering vehicle to the destination parking space based on the prediction of the parking lot parking space occupancy situation after the fast entry mode is turned on; the second guidance module 206 is used to guide the vehicle that is about to exit to the corresponding exit of the parking lot based on the dynamic exit lane allocation plan or the exit path induction planning algorithm after the fast exit mode is turned on.
[0165] The electronic device 3 may include but is not limited to a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of electronic device 3 and does not constitute a limitation of electronic device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, a computing electronic device may also include input and output devices, network access devices, buses, etc.
[0166] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0167] The memory 31 may be an internal storage unit of the electronic device 3, such as a hard disk or memory of the electronic device 3. The memory 31 may also be an external storage electronic device of the electronic device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 3. Further, the memory 31 may also include both an internal storage unit of the electronic device 3 and an external storage electronic device. The memory 31 is used to store computer programs and other programs and data required by the electronic device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0168] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0169] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0170] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0171] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0172] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0173] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0174] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing related hardware through a computer program. The computer program of the parking lot vehicle traffic control method can be stored in a storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented, that is, real-time traffic video entering and exiting the parking lot is collected by a camera; the real-time traffic video is analyzed, and whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the analysis results of the real-time traffic video; if the lanes that must be passed through the entrance and exit of the parking lot are not congested, the normal entry and exit mode is turned on; if the lanes that must be passed through the entrance and exit of the parking lot are congested, the fast entry mode or the fast exit mode is turned on, so that the vehicles currently entering and exiting can quickly enter and exit the parking lot from the entrance and exit; when the fast entry mode is turned on, the current entering vehicle is guided to the destination parking space based on the prediction of the parking lot parking space occupancy; when the fast exit mode is turned on, the vehicle that is about to exit is guided to the corresponding exit of the parking lot based on the dynamic exit lane allocation plan or the exit path induction planning algorithm. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form, etc. The storage medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the storage medium does not include electric carrier signal and telecommunication signal.
[0175] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application is described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application, and is not used to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present invention.
Claims
1. A parking lot vehicle traffic control method, characterized in that: The method comprises: The real-time traffic flow video in and out of the parking lot is collected by the camera, and the real-time traffic flow video includes the number of vehicles in the parking lot entrance and exit lanes, the driving speed and the vehicle density; Analyze the real-time traffic flow video, and determine whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the analysis results of the real-time traffic flow video, wherein determining whether the lanes that must be passed through the entrance and exit of the parking lot are congested includes determining whether the lanes that must be passed through the entrance and exit of the parking lot are congested based on the traffic volume, speed, occupancy rate, queue length and delay time on the lanes that must be passed through the entrance and exit of the parking lot; If the lanes that must be passed through the entrance and exit of the parking lot are not congested, the normal entry and exit mode is turned on; If the lanes that must be passed through the entrance and exit of the parking lot are congested, a quick entry mode or a quick exit mode is activated so that vehicles currently entering and exiting the parking lot can quickly enter and exit the entrance and exit of the parking lot; When the quick entry mode is turned on, the currently entering vehicle is guided to the destination parking space based on the prediction of the parking space occupancy of the parking lot. The method of guiding the currently entering vehicle to the destination parking space based on the prediction of the parking space occupancy of the parking lot includes: obtaining a parking space reservation request of the currently entering vehicle; obtaining the reservation status of a virtual parking space pool from the management system of the parking lot; determining a set of candidate parking spaces according to the parking space reservation request of the currently entering vehicle and the reservation status of the virtual parking space pool; selecting the destination parking space from the set of candidate parking spaces, the destination parking space being the parking space with the lowest probability of being occupied at the estimated arrival time of the currently entering vehicle output by a trained parking space occupancy prediction model; and sending the destination parking space to the user of the currently entering vehicle to guide the currently entering vehicle to the destination parking space. When the quick exit mode is turned on, the vehicle about to exit the parking lot is guided to the corresponding exit of the parking lot based on the dynamic exit lane allocation scheme or the exit path induction planning algorithm; The determining of the candidate parking space set according to the parking space reservation request of the current entering vehicle and the reservation status of the virtual parking space pool comprises: determining the candidate parking space set according to the parking space reservation request of the current entering vehicle and the reservation status of the virtual parking space pool, the candidate parking space set having an estimated free time earlier than the estimated arrival time of the current entering vehicle and being closest to the destination location. k parking spaces as a set of candidate parking spaces C : For the candidate parking space set C Any parking space in the candidate The following conditions must be met: in, Indicates candidate parking spaces The reservation status, Indicates candidate parking spaces The estimated arrival time of the current vehicle T The expected idle probability, is the preset probability threshold, Indicates vacant parking spaces To destination D distance, and It should also satisfy and , min ( ) is the minimum function, which means to find the minimum value of the expression in the brackets. Indicates the candidate parking space Not reserved, Indicates the candidate parking space with the destination D The distance should be the set of candidate parking spaces C All available parking spaces in the destination D The shortest distance among the distances.
2. The parking lot vehicle traffic control method according to claim 1, characterized in that: The trained parking space occupancy prediction model is trained in the following way: Collecting historical data on parking space occupancy in the parking lot; Extracting key features of parking space occupancy from the parking space occupancy history data to obtain a parking space occupancy feature vector; The parking space occupancy feature vector is input into the following parking space occupancy prediction model for training: Said y represents the probability of parking space being occupied, x represents the parking space occupancy feature vector input to the parking space occupancy prediction model, and b Represent the weight vector and bias term respectively; After each round of training, the performance of the parking space occupancy prediction model is evaluated, and the weight vector of the parking space occupancy prediction model is updated according to the following formula until the parking space occupancy prediction model converges or the performance reaches the expected level: Said is the weight vector before updating, is the updated weight vector, is the learning rate, Represents the gradient of the loss function of the parking space occupancy prediction model with respect to the weight.
3. The parking lot vehicle traffic control method according to claim 1, characterized in that: The method of guiding the vehicle about to exit the parking lot to the corresponding exit of the parking lot based on the dynamic exit lane allocation scheme includes: According to the status of each vehicle in the parking lot, estimating the time it takes for the vehicle to arrive at the parking lot exit; Based on the time when each vehicle arrives at the parking lot exit, predict the vehicle departure demand of each exit lane of the parking lot in the future period of time; Dynamically allocate exit lanes based on the predicted vehicle departure demand for each exit lane and the time it takes for each vehicle to arrive at the parking lot exit, minimizing the waiting time for each exit lane; Based on the dynamic allocation result of the exit lane, the number of waiting vehicles and the estimated waiting time of each exit lane are published in real time to the user of the vehicle about to exit, so as to guide the vehicle about to exit to the corresponding exit of the parking lot.
4. The parking lot vehicle traffic control method according to claim 3, characterized in that: The method further comprises: Determining the priority weight of the vehicle that is about to leave the vehicle according to the priority of the vehicle that is about to leave the vehicle; Applying the priority weight of the vehicle about to exit to the lane allocation objective function of the dynamic allocation exit lane solution to obtain a modified lane allocation objective function; Using the modified lane assignment objective function, a lane assignment optimization problem is constructed and solved, and then an exit lane assignment scheme including vehicle priority factors is obtained.
5. The parking lot vehicle traffic control method according to claim 1, characterized in that: The method of guiding the vehicle to leave the parking lot to the corresponding exit of the parking lot based on the departure path induction planning algorithm includes: Collecting real-time traffic status data of the parking lot exit lane; Inputting the real-time traffic status data of the parking lot exit lane into the trained parking lot road network congestion prediction model to predict the congestion level of the parking lot exit lane; According to the congestion level of the parking lot exit lane, real-time exit path guidance information is generated to guide the vehicles about to leave the parking lot to choose an unobstructed path to leave the corresponding exit of the parking lot.
6. A parking lot vehicle traffic control device, characterized in that: The device comprises: A collection module is used to collect real-time traffic flow videos entering and leaving the parking lot through a camera, wherein the real-time traffic flow videos include the number of vehicles, driving speed, and vehicle density in the entrance and exit lanes of the parking lot; A judgment module, used for analyzing the real-time traffic flow video, judging whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the analysis result of the real-time traffic flow video, wherein the judgment of whether the lanes that must be passed through the entrance and exit of the parking lot are congested includes judging whether the lanes that must be passed through the entrance and exit of the parking lot are congested according to the traffic volume, speed, occupancy rate, queue length and delay time on the lanes that must be passed through the entrance and exit of the parking lot; The first opening module is used to open the normal entry and exit mode if the lanes that must be passed through the entrance and exit of the parking lot are not congested; The second opening module is used to open the fast entry mode or the fast exit mode if the lane that must be passed through the entrance and exit of the parking lot is congested, so that the vehicles currently entering and leaving the parking lot can quickly enter and exit the entrance and exit of the parking lot; A first guidance module is used for guiding the currently entering vehicle to the destination parking space based on the prediction of the parking space occupancy of the parking lot after the quick entry mode is turned on. The method of guiding the currently entering vehicle to the destination parking space based on the prediction of the parking space occupancy of the parking lot includes: obtaining a parking space reservation request of the currently entering vehicle; obtaining a reservation status of a virtual parking space pool from the management system of the parking lot; determining a set of candidate parking spaces according to the parking space reservation request of the currently entering vehicle and the reservation status of the virtual parking space pool; selecting the destination parking space from the set of candidate parking spaces, the destination parking space being the parking space with the lowest probability of being occupied at the estimated arrival time of the currently entering vehicle output by the trained parking space occupancy prediction model; and sending the destination parking space to the user of the currently entering vehicle to guide the currently entering vehicle to the destination parking space. A second guidance module is used to guide the vehicle about to exit the parking lot to the corresponding exit of the parking lot after the quick exit mode is turned on, based on a dynamic exit lane allocation scheme or an exit path induction planning algorithm; The determining of the candidate parking space set according to the parking space reservation request of the current entering vehicle and the reservation status of the virtual parking space pool comprises: determining the candidate parking space set according to the parking space reservation request of the current entering vehicle and the reservation status of the virtual parking space pool, the candidate parking space set having an estimated free time earlier than the estimated arrival time of the current entering vehicle and being closest to the destination location. k parking spaces as a set of candidate parking spaces C : For the candidate parking space set C Any parking space in the candidate The following conditions must be met: in, Indicates candidate parking spaces The reservation status, Indicates candidate parking spaces The estimated arrival time of the current vehicle T The expected idle probability, is the preset probability threshold, Indicates vacant parking spaces To destination D distance, and It should also satisfy and , min ( ) is the minimum function, which means to find the minimum value of the expression in the brackets. Indicates the candidate parking space Not reserved, Indicates the candidate parking space with the destination D The distance should be the set of candidate parking spaces C All available parking spaces in the destination D The shortest distance among the distances.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
