A smart parking management method and system based on the Internet of Things

Through IoT sensors and neural network analysis technology, vehicle traffic at the parking lot entrance is adjusted in real time, solving the problems of low parking lot utilization and congestion in large parking lots, and improving parking space utilization and traffic smoothness.

CN118609375BActive Publication Date: 2024-10-18GUANGDONG TELECOM ENG
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411081797.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-18
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Traditional parking management systems in large parking lots are difficult to manage parking spaces in real time and efficiently, resulting in low parking lot utilization, long time for car owners to find parking spaces, internal congestion in the parking lot, and manual experience making it difficult to balance parking lot congestion and parking space utilization.

Method used

Adopt a smart parking management method based on the Internet of Things, obtain real-time occupancy data through the Internet of Things sensor network, combine lane images and convolutional neural networks to analyze lane status, use feedforward and BP neural network models to predict departure time and sudden changes in congestion, and make real-time adjustments Number of vehicles passing through the parking lot entrance.

Benefits of technology

It improves parking space utilization, avoids parking lot congestion, and achieves balance control between parking lot congestion and parking space utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609375B_ABST
    Figure CN118609375B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of intelligent parking technology, and in particular to an intelligent parking management method and system based on the Internet of Things. The real-time occupancy data of parking spaces is obtained through an Internet of Things sensor network, a lane state matrix is ​​generated, and the congestion state of each lane is extracted based on a convolutional neural network. The departure time is calculated by real-time data and the departure time of the vehicle, and the congestion state is used as input and the average departure time is used as output to train a feedforward neural network to generate a first prediction model. The congestion value is calculated by predicting the average departure time based on the model and a preset threshold, and the congestion sudden change node is located by changing the slope, and the BP neural network is trained to generate a second prediction model. The real-time congestion state is input into the second prediction model. If the congestion sudden change judgment score is greater than or equal to the preset threshold value, the entrance vehicle is suspended; if the score is less than the threshold value, the passage is resumed. Accurate prediction and dynamic adjustment are achieved, effectively alleviating congestion and improving parking space utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent parking technology, and in particular to an intelligent parking management method and system based on the Internet of Things. Background Art

[0002] In large parking lots in large business districts and office buildings, travel during holidays makes parking lots extremely stressful. Traditional parking management systems mostly use manual or simple electronic monitoring methods, which makes it difficult to manage parking spaces in real time and efficiently, resulting in low parking lot utilization, long time for car owners to find parking spaces, and congestion inside parking lots. This not only wastes a lot of time and resources, but also causes extreme inconvenience to car owners and parking lot management. Vehicles looking for parking spaces continue to enter the parking lot, causing congestion inside, and cars that want to leave find it difficult to leave, creating a vicious cycle. In recent years, the development of Internet of Things (IoT) technology has provided new solutions for smart parking management. By deploying various sensors and cameras in the parking lot, parking space occupancy information can be obtained in real time.

[0003] The existing technology releases vehicles by counting the number of vacant parking spaces, controls the parking lot load pressure and optimizes the traffic in the parking lot. However, in fact, if a one-leave-one-entry management method is implemented in a large parking lot, it will waste parking resources. In a large parking lot, it takes a lot of time for a vehicle to find a single or very small number of parking spaces and perform parking actions. When a large number of vehicles implement this release management method, a large amount of parking space idle time will accumulate, and the utilization rate of the parking lot cannot be improved. Therefore, if a reasonable number of parking spaces is maintained in the parking lot in real time, when a vehicle leaves a parking space, there will be a parking space for the vehicle to find and park in a short time, which can improve the utilization rate of parking spaces and will not cause congestion and overload in the parking lot. In the existing technology, vehicles are released through manual experience, but in fact, in large parking lots, manual experience alone cannot control and balance the relationship between parking lot congestion and parking space utilization. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a smart parking management method and system based on the Internet of Things.

[0005] To achieve the above object, the technical solution adopted by the present invention is:

[0006] A smart parking management method based on the Internet of Things includes the following steps:

[0007] S1. Acquire real-time parking space occupancy data through an IoT sensor network, wherein the real-time occupancy data includes occupancy status, occupied vehicle information, and vehicle departure time;

[0008] S2, acquiring a lane image and a vehicle image in the parking lot, and generating a lane state matrix based on the lane image and the vehicle image;

[0009] S3, extracting the congestion status of each lane from the lane state matrix based on the convolutional neural network;

[0010] S4, calculating the time taken for a vehicle to leave the parking lot by using the real-time parking space occupancy data and the time when the vehicle leaves the parking lot, taking the congestion state of each lane as the input of a feedforward neural network, taking the average time taken for leaving the parking lot as the output, and training and generating a first prediction model;

[0011] S5, calculating the congestion value based on the average departure time predicted by the first prediction model and the preset threshold, locating the congestion sudden change node by the change slope of the congestion value, taking the congestion state of each lane corresponding to the congestion sudden change node time as the input of the BP neural network, taking the congestion sudden change judgment score as the output, and training to generate the second prediction model;

[0012] S6. Adjust the number of vehicles passing through the parking lot entrance in real time according to the real-time congestion status of each lane and the congestion sudden change judgment score output by the second prediction model.

[0013] Further, the S2 comprises the following steps:

[0014] A plurality of real-time image acquisition devices are arranged in the parking lot to acquire lane images and vehicle images in the parking lot;

[0015] The lane images are stitched together to construct a two-dimensional model of the parking lot;

[0016] Generate a parking lot matrix based on the two-dimensional parking lot model;

[0017] The occupancy information of the vehicle in the two-dimensional model of the parking lot is obtained according to the vehicle image and the parking lot matrix is ​​mapped through the position information in the occupancy information. The occupancy is preset to the same value and the parking lot matrix parameters are replaced to generate the lane state matrix.

[0018] Further, the S3 comprises the following steps:

[0019] Normalize the generated lane state matrix;

[0020] Input the normalized lane state matrix into the convolutional neural network;

[0021] The convolutional layer and pooling layer in the convolutional neural network are used to extract feature information in the lane state matrix, including the vehicle density and vehicle moving speed on the lane.

[0022] The extracted feature information is input into the fully connected layer, and the congestion probability of each lane is output;

[0023] A threshold value is judged on the probability of congestion status of each lane to determine the specific congestion status of each lane.

[0024] Further, the S4 comprises the following steps:

[0025] Calculate the time taken for each vehicle to leave the parking lot through the real-time occupancy data of the parking spaces and the vehicle departure time data;

[0026] Collect statistics on the departure time of each vehicle and calculate the average departure time of each vehicle;

[0027] The congestion status of each lane is used as the input feature, and the average departure time of the corresponding time period is used as the output label to build a feedforward neural network model;

[0028] The feedforward neural network model is trained, and the model parameters are adjusted through the back propagation algorithm to minimize the error between the predicted departure time and the actual departure time, thereby generating a first prediction model.

[0029] Furthermore, the preset threshold is the average time taken for vehicles to leave the parking lot when the parking space occupancy rate is lower than 60%.

[0030] Furthermore, the formula for calculating the congestion value based on the average departure time predicted by the first prediction model and the preset threshold is as follows:

[0031] ,

[0032] in, Indicates the congestion value, represents the average exit time predicted by the first prediction model, Indicates the preset threshold.

[0033] Furthermore, the method of locating the congestion sudden change node by using the change slope value of the congestion value comprises the following steps:

[0034] Splice the congestion values ​​in time series to generate a congestion value curve;

[0035] Calculate the changing slope of the congestion value curve at each time point;

[0036] Set a slope threshold. When the congestion value change slope exceeds the preset change value, it is determined to be a congestion sudden change node.

[0037] Furthermore, the formula of the BP neural network is as follows:

[0038] ,

[0039] in, Indicates the score of sudden congestion change judgment, Indicates the congestion status of each lane. and Respectively represent different weight matrices of BP neural network, and is the bias vector of the BP neural network, Represents the activation function.

[0040] Further, the S6 includes:

[0041] The real-time congestion status of each lane is input into the second prediction model, and the output congestion sudden change judgment score is output. If the congestion sudden change judgment score is greater than or equal to the preset congestion threshold value, the vehicle traffic at the parking lot entrance is suspended;

[0042] If the congestion sudden change judgment score is less than the preset congestion threshold, the vehicle traffic at the parking lot entrance will be restored.

[0043] A smart parking management system based on the Internet of Things, comprising:

[0044] A data acquisition module is used to obtain real-time occupancy data of parking spaces through an Internet of Things sensor network, wherein the real-time occupancy data includes occupancy status, occupied vehicle information, and vehicle departure time; obtain lane images and vehicle images in the parking lot, and generate a lane status matrix based on the lane images and vehicle images;

[0045] The lane monitoring module extracts the congestion status of each lane from the lane state matrix based on a convolutional neural network;

[0046] The departure time prediction module is used to calculate the departure time of the vehicle through the real-time occupancy data of the parking space and the departure time of the vehicle, and the congestion state of each lane is used as the input of the feedforward neural network, and the average departure time is used as the output to train and generate a first prediction model;

[0047] The sudden change judgment module calculates the congestion value based on the average departure time predicted by the first prediction model and the preset threshold, locates the sudden congestion change node through the change slope of the congestion value, takes the congestion state of each lane corresponding to the sudden congestion change node time as the input of the BP neural network, takes the sudden congestion change judgment score as the output, and trains to generate the second prediction model;

[0048] The entrance scheduling module is used to adjust the number of vehicles passing through the parking lot entrance in real time according to the real-time congestion status of each lane and the congestion sudden change judgment score output by the second prediction model.

[0049] The beneficial effects of the present invention are as follows: the present invention obtains the occupancy data of parking spaces in real time through the Internet of Things sensor network, including the occupancy status, the occupied vehicle information and the vehicle departure time, to ensure the real-time and accuracy of the data. The current use of the parking lot can be accurately understood, and the management strategy can be adjusted in time. The lane state matrix is ​​generated by acquiring the lane image and the vehicle image in the parking lot. The lane state matrix is ​​analyzed based on the convolutional neural network, and the congestion status of the lane is extracted, including the vehicle density and the vehicle moving speed on the lane, so as to provide accurate data support for the follow-up. Through the feedforward neural network model, based on the real-time occupancy data of the parking space and the vehicle departure time data, the vehicle departure time is calculated, and the first prediction model is trained and generated. This model can accurately predict the average departure time of the vehicle, and calculate the congestion value through the set threshold value, and provide an early warning of the sudden change of congestion. Based on the BP neural network model, the sudden change node of congestion is located in combination with the slope of the congestion value change, and the sudden change judgment score of congestion is predicted. According to the score, the number of vehicles passing through the entrance of the parking lot is adjusted in real time, which effectively improves the utilization rate of the parking space and avoids the formation of congestion, and realizes the balance control of the relationship between the congestion of the parking lot and the utilization rate of the parking space. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a step flow chart of a smart parking management method based on the Internet of Things in the present invention.

[0051] Figure 2 It is a step flow chart of step S2 in the present invention. DETAILED DESCRIPTION

[0052] See also Figure 1-2 As shown, the present invention relates to a smart parking management method based on the Internet of Things, comprising the following steps:

[0053] S1. Acquire real-time parking space occupancy data through an IoT sensor network, wherein the real-time occupancy data includes occupancy status, occupied vehicle information, and vehicle departure time;

[0054] S2, acquiring a lane image and a vehicle image in the parking lot, and generating a lane state matrix based on the lane image and the vehicle image;

[0055] S3, extracting the congestion status of each lane from the lane state matrix based on the convolutional neural network;

[0056] S4, calculating the time taken for a vehicle to leave the parking lot by using the real-time parking space occupancy data and the time when the vehicle leaves the parking lot, taking the congestion state of each lane as the input of a feedforward neural network, taking the average time taken for leaving the parking lot as the output, and training and generating a first prediction model;

[0057] S5, calculating the congestion value based on the average departure time predicted by the first prediction model and the preset threshold, locating the congestion sudden change node by the change slope of the congestion value, taking the congestion state of each lane corresponding to the congestion sudden change node time as the input of the BP neural network, taking the congestion sudden change judgment score as the output, and training to generate the second prediction model;

[0058] S6. Adjust the number of vehicles passing through the parking lot entrance in real time according to the real-time congestion status of each lane and the congestion sudden change judgment score output by the second prediction model.

[0059] In some embodiments, real-time occupancy data of parking spaces is obtained through an IoT sensor network. The IoT sensor network arranged in the parking lot includes infrared sensors and high-resolution cameras, which are used to monitor the occupancy status of parking spaces, occupied vehicle information, and vehicle departure time in real time. The occupancy status may include occupied and unoccupied and corresponding timestamps, and the occupied vehicle information includes the license plate of the occupied vehicle. Each parking space can be equipped with a geomagnetic sensor or an infrared sensor to detect whether the vehicle occupies the parking space; the high-resolution camera is installed at a key location in the parking lot, such as behind the parking space, to capture the vehicle's license plate number and parking space occupancy status. Through a wireless network, these sensors and cameras upload data to the central management system in real time to ensure the real-time and accuracy of the data. Obtain lane images and vehicle images in the parking lot. Several high-resolution cameras are deployed in the parking lot to cover all lanes and parking spaces. These cameras capture lane images and vehicle images in real time and transmit image data to the central management system. The system splices the lane images to generate a two-dimensional model of the parking lot, and generates a parking lot matrix based on the two-dimensional model. Then, the system updates the parking lot matrix parameters according to the position information in the vehicle image and generates a lane state matrix. The lane state matrix reflects the real-time status of each lane in the parking lot, including the vehicle density and vehicle movement on the lane. The lane state matrix is ​​used to extract the congestion status of each lane based on the convolutional neural network. The standardized lane state matrix is ​​input into the pre-trained convolutional neural network model. The convolutional neural network model extracts the feature information in the lane state matrix through the convolution layer and the pooling layer, including the vehicle density, vehicle moving speed and congestion degree on the lane. These feature information are further input into the fully connected layer to output the probability of congestion status of each lane. The vehicle departure time is calculated based on the real-time occupancy data of the parking space and the vehicle departure time. The system records the entry and exit time of each vehicle, and calculates the departure time of each vehicle based on the occupancy status data of the parking space and the vehicle departure time data. The calculated departure time data is statistically analyzed to calculate the average departure time of each lane. The system uses the congestion status of each lane as the input feature and the average departure time of the corresponding time period as the output label to construct a feedforward neural network model. The first prediction model is generated by training the feedforward neural network model, adjusting the model parameters, minimizing the error between the predicted departure time and the actual departure time. The congestion value is calculated based on the average departure time predicted by the first prediction model and the preset threshold. Through the first prediction model, the system predicts the average departure time of each lane, compares the predicted average departure time with the preset departure time threshold, and calculates the congestion value of each lane. The system performs time series analysis on the congestion value, generates a congestion value curve, and calculates the change slope of the congestion value curve at each time point. By setting a slope threshold, when the congestion value change slope exceeds the preset change value, it is determined to be a congestion sudden change node.The congestion state of each lane corresponding to the congestion sudden change node time is used as the input of the BP neural network, and the congestion sudden change judgment score is used as the output. The BP neural network is trained to generate the second prediction model. According to the real-time congestion state of each lane and the congestion sudden change judgment score output by the second prediction model, the number of vehicles passing through the parking lot entrance is adjusted in real time. The system inputs the real-time congestion state of each lane into the second prediction model and outputs the current congestion sudden change judgment score. If the congestion sudden change judgment score is greater than or equal to the preset congestion threshold value, the system controls the parking lot entrance signal light, suspends vehicle traffic, and reduces the traffic flow into the parking lot; if the congestion sudden change judgment score is less than the preset congestion threshold value, the system resumes vehicle traffic at the parking lot entrance. By dynamically adjusting the signal light duration and traffic frequency, the system ensures smooth traffic in the parking lot. The system also continuously monitors the traffic flow in the parking lot, optimizes the number of vehicles passing and the signal light control strategy according to the actual traffic data and the output of the second prediction model, and records the traffic flow changes after each adjustment for subsequent model optimization and training to improve the response speed and accuracy of the system.

[0060] Further, the S2 comprises the following steps:

[0061] A plurality of real-time image acquisition devices are arranged in the parking lot to acquire lane images and vehicle images in the parking lot;

[0062] The lane images are stitched together to construct a two-dimensional model of the parking lot;

[0063] Generate a parking lot matrix based on the two-dimensional parking lot model;

[0064] The occupancy information of the vehicle in the two-dimensional model of the parking lot is obtained according to the vehicle image and the parking lot matrix is ​​mapped through the position information in the occupancy information. The occupancy is preset to the same value and the parking lot matrix parameters are replaced to generate the lane state matrix.

[0065] In some embodiments, first, several real-time image acquisition devices are set up in the parking lot. Specifically, high-resolution cameras are installed at key locations in the parking lot to ensure full coverage of all lanes and parking spaces. These cameras can not only capture the dynamic information of the vehicle, but also obtain the overall condition of the lane. These cameras are connected to the central management system via a wireless network to achieve real-time image data transmission. When the camera captures the lane image and vehicle image in the parking lot, the image data will be transmitted to the central management system. The system first processes the acquired lane image and performs a splicing operation. Through image splicing technology, the images captured by multiple cameras are combined into a complete two-dimensional model of the parking lot. Next, a parking lot matrix is ​​created based on the generated two-dimensional model of the parking lot. The parking lot matrix is ​​a two-dimensional array used to represent the status of each location in the parking lot. Each matrix unit represents a specific location in the parking lot, and the initial state is an idle state. With the real-time update of the data, each unit in the matrix will reflect the actual state of the location at the current moment. Then the vehicle image is further processed to obtain the occupancy information of the vehicle in the two-dimensional model of the parking lot. Through image recognition, the system can accurately extract the location information of the vehicle, including the specific parking space location of the vehicle. The system maps this occupancy information to the parking lot matrix, and the corresponding matrix unit is updated to the occupied state. To simplify the processing, the system presets all occupancy states to the same value (such as 3) and replaces the initial parameters in the parking matrix with this value. After the above processing, the lane state matrix is ​​generated. The lane state matrix is ​​a subset of the parking matrix, focusing on the state information of the lane. This state information includes the density, movement and location of free parking spaces of vehicles. The generation of the lane state matrix provides basic data for subsequent convolutional neural network analysis. For example, in a parking lot of a large shopping mall, assume that there are 100 cameras covering the entire area. The system obtains an image from each camera every minute and splices these images into a complete two-dimensional model of the parking lot. Through image recognition, the system identifies the locations of 200 parked vehicles and maps these location information to the parking matrix. Assuming that each parking space occupies a cell in the matrix, the system updates the state of the corresponding cell and generates a lane state matrix containing the lane congestion state.

[0066] Further, the S3 comprises the following steps:

[0067] Normalize the generated lane state matrix;

[0068] Input the normalized lane state matrix into the convolutional neural network;

[0069] The convolutional layer and pooling layer in the convolutional neural network are used to extract feature information in the lane state matrix, including the vehicle density and vehicle moving speed on the lane.

[0070] The extracted feature information is input into the fully connected layer, and the congestion probability of each lane is output;

[0071] A threshold value is judged on the probability of congestion status of each lane to determine the specific congestion status of each lane.

[0072] In some embodiments, first, the generated lane state matrix is ​​standardized. The lane state matrix is ​​a two-dimensional array containing a large amount of data, which represents the real-time status of each lane in the parking lot. Since the value range of different lanes may be different, directly inputting the model will result in inaccurate calculation results. Therefore, the data needs to be standardized so that the range of the data is within the same scale. Standardization usually includes subtracting the mean and dividing by the standard deviation, so that the mean of the processed data is 0 and the standard deviation is 1. After the data standardization is completed, the standardized lane state matrix is ​​input into a convolutional neural network (CNN). Convolutional neural networks are currently very effective tools in the field of image processing and feature extraction. In this embodiment, the input layer of the CNN model receives the standardized lane state matrix. The convolutional neural network includes multiple convolutional layers and pooling layers, and these hierarchical structures can effectively extract important feature information in the matrix. Specifically, the convolutional layer performs convolution operations on the input matrix through filters to extract local features, such as the density of vehicles on the lane. The convolution operation can capture features of different scales and directions, so that the model can recognize complex patterns. Subsequently, the pooling layer downsamples the output of the convolutional layer to reduce the dimension of the data while retaining important features. The pooling layer can significantly reduce the amount of computation and improve the computational efficiency of the model. After the convolutional layer and the pooling layer extract feature information, the feature information is input into the fully connected layer. The fully connected layer simulates the connection mode of human neurons and integrates the feature information extracted by the previous layers for further classification tasks. In the fully connected layer, each neuron is connected to all neurons in the previous layer, and the effective combination of feature information is achieved through weight adjustment during the training process. The output of the fully connected layer is the probability of congestion in each lane. These probability values ​​represent the current congestion level of each lane, which is a value between 0 and 1. The higher the probability value, the higher the congestion level of the lane. The system performs threshold judgment on the probability of congestion in each lane and classifies the probability values ​​according to the set threshold (for example, 0.7). If the probability of congestion in a lane exceeds the threshold, the lane is judged to be in a congested state; otherwise, it is judged to be in a non-congested state. For example, in a parking lot of a large shopping mall, it is assumed that the lane state matrix contains data including vehicle density and vehicle moving speed. The system normalizes the matrix data so that the mean of each data point is 0 and the standard deviation is 1. The normalized data is input into the pre-trained convolutional neural network model. The convolutional neural network model consists of three convolutional layers, each followed by a pooling layer. The convolutional layer extracts feature information such as vehicle density and moving speed, and the pooling layer reduces the data dimension and retains key features. The extracted feature information is input into two fully connected layers, which output the probability of congestion in each lane. If the probability of congestion in a lane is 0.8, which exceeds the set threshold of 0.7, the system determines that the lane is congested and performs corresponding management and regulation.

[0073] Further, the S4 comprises the following steps:

[0074] Calculate the time taken for each vehicle to leave the parking lot through the real-time occupancy data of the parking spaces and the vehicle departure time data;

[0075] Collect statistics on the departure time of each vehicle and calculate the average departure time of each vehicle;

[0076] The congestion status of each lane is used as the input feature, and the average departure time of the corresponding time period is used as the output label to build a feedforward neural network model;

[0077] The feedforward neural network model is trained, and the model parameters are adjusted through the back propagation algorithm to minimize the error between the predicted departure time and the actual departure time, thereby generating a first prediction model.

[0078] In some embodiments, first, the time taken for each vehicle to leave the parking space is calculated using the real-time occupancy data of the parking space and the vehicle departure time data. The IoT sensor network deployed in the parking lot, including geomagnetic sensors and cameras, monitors the occupancy status of each parking space and the movement trajectory of the vehicle in real time. When a vehicle leaves the parking space, the geomagnetic sensor records the timestamp of the vehicle leaving the space. At the same time, the parking lot's camera network tracks the vehicle's route from the parking space to the exit and records the timestamp when the vehicle passes through the exit. The system calculates the time taken for each vehicle to leave the space based on the time the vehicle leaves the space and the time it leaves the exit. For example, if a car leaves the parking space at 10:00 and passes through the exit at 10:10, the time taken for the car to leave the space is 10 minutes.

[0079] Next, the departure time data of each vehicle is counted and the average departure time of each lane is calculated. The system classifies the departure time data of all vehicles by lane and counts the average departure time of each lane in a specific time period. For example, suppose that there are 10 vehicles leaving lane A between 9:00 and 10:00 in the morning, and their departure times are 8 minutes, 12 minutes, 10 minutes, etc. The system adds these time data and divides them by the number of vehicles to obtain the average departure time of lane A in that time period. Then, the congestion state of each lane is used as an input feature, and the average departure time of the corresponding time period is used as the output label to construct a feedforward neural network model. The congestion state of the lane is generated by the previous step (S3), which represents information such as the density and moving speed of the vehicle on the lane. The system uses these congestion state data as feature input and the average departure time calculated in the corresponding time period as a label, and inputs them into the feedforward neural network for modeling. The feedforward neural network contains an input layer, several hidden layers, and an output layer to capture the complex nonlinear relationship between the input features and the output labels. In order to make the feedforward neural network model have good prediction ability, it needs to be trained. During the training process, the system uses the back propagation algorithm to adjust the model parameters. The back propagation algorithm calculates the error between the model's predicted value and the actual value, and adjusts the model's weights and biases along the gradient direction to gradually reduce the error. The specific steps include: forward propagation to calculate the predicted value, calculate the error, back propagate the error and update the weights and biases. This process is repeated until the error converges to the preset threshold range.

[0080] Furthermore, the preset threshold is the average time taken for vehicles to leave the parking lot when the parking space occupancy rate is lower than 60%.

[0081] Specifically, first, the average departure time predicted by the feedforward neural network model is compared with the preset threshold to calculate the congestion value. The preset threshold is the average departure time of the vehicle when the parking space occupancy rate of the parking lot is less than 60%. The setting of this threshold is based on the historical data and actual operation of the parking lot, reflecting the normal time required for the vehicle to leave the lot under low load conditions. For example, through the analysis of the parking lot operation data, it is determined that when the parking space occupancy rate of the parking lot is less than 60%, the average departure time of the vehicle from leaving the parking space to the exit is 8 minutes, and 8 minutes is the preset threshold. In actual operation, the system first obtains the current parking space occupancy data of the parking lot through the Internet of Things sensor network and the camera network, and calculates the current parking space occupancy rate. If the parking space occupancy rate is less than 60%, the system will count the vehicle departure time data during this period and calculate the corresponding average departure time as the preset threshold.

[0082] Furthermore, the formula for calculating the congestion value based on the average departure time predicted by the first prediction model and the preset threshold is as follows:

[0083] ,

[0084] in, Indicates the congestion value, represents the average exit time predicted by the first prediction model, Indicates the preset threshold.

[0085] It should be noted that the system predicts the average departure time for each lane through a feedforward neural network model (first prediction model). This prediction model has been optimized by training historical data in the previous step and has a high prediction accuracy. For each lane, the system uses real-time data to input the model to obtain the average departure time prediction value for that lane. , preset threshold It is based on the average time it takes for vehicles to leave the parking lot when the parking space occupancy rate is less than 60%. This threshold is obtained by analyzing and counting the historical data of the parking lot, representing the normal time it takes for vehicles to leave the parking lot from the time they leave the parking lot to the exit under low load conditions. For example, through the analysis of the historical operation data of a parking lot, when the parking space occupancy rate is less than 60%, the average time it takes for vehicles to leave the parking lot is 8 minutes, so 8 minutes is the preset threshold. Congestion value The larger the value, the more serious the congestion in the lane. The system evaluates the current congestion in the parking lot by calculating the congestion value of each lane.

[0086] Furthermore, the method of locating the congestion sudden change node by using the change slope value of the congestion value comprises the following steps:

[0087] Splice the congestion values ​​in time series to generate a congestion value curve;

[0088] Calculate the changing slope of the congestion value curve at each time point;

[0089] Set a slope threshold. When the congestion value change slope exceeds the preset change value, it is determined to be a congestion sudden change node.

[0090] In some embodiments, first, the system splices the congestion values ​​in time series to generate a congestion value curve. The congestion value is the ratio of the average departure time predicted by the feedforward neural network model to a preset threshold. In order to better monitor the congestion in the parking lot, the system needs to continuously record the congestion value at each time point. For example, the congestion value of each lane is calculated every 5 minutes, and these values ​​are arranged in chronological order to generate congestion value time series data. By splicing these time series data, the system can obtain a congestion value curve that reflects the congestion situation of the parking lot over time. Next, the system calculates the change slope of the congestion value curve at each time point. The change slope indicates the speed and direction of the change of the congestion value before and after a certain time point, and is a key indicator for identifying congestion sudden change nodes. The system uses a sliding window method to calculate the change slope at each time point. For example, a 5-minute sliding window is set, and for each time point t, the change in the congestion value within 5 minutes before and after is calculated. The calculation formula for the change slope is:

[0091]

[0092] in, represents the congestion value at time point t, Represents the time interval of the sliding window. The system calculates the slope of the congestion value change at each time point through the above formula and generates the slope time series data. These data reflect the trend of congestion value change over time and are an important basis for identifying congestion sudden change nodes. Then, the system sets the slope threshold to determine the congestion sudden change node. The slope threshold is set based on the historical data and actual operation of the parking lot, representing the situation where the speed of change of the congestion value exceeds a certain critical value. For example, through the analysis of historical data, it is determined that when the slope of the congestion value change exceeds 0.1, it means that the parking lot has a sudden change in congestion. When the system detects that the slope of the congestion value change at a certain time point exceeds the preset slope threshold, it is determined to be a congestion sudden change node. The congestion sudden change node refers to the time point when the vehicle congestion condition in the parking lot changes sharply in a short period of time. These nodes are usually accompanied by a sudden increase or decrease in vehicle flow, resulting in a significant change in the vehicle speed of the parking lot, which in turn affects the overall traffic flow. For example, in the parking lot of a large shopping mall or office building, a large number of vehicles leave the parking lot in a concentrated manner near lunch time or off-get off work time, resulting in congestion at the exit. This situation causes a sharp increase in the time it takes for vehicles to leave the parking space and exit. This includes traffic accidents or temporary road closures inside the parking lot, which cause lanes to be partially or completely occupied and vehicles to be blocked. Such emergencies can cause the traffic flow in the parking lot to suddenly stagnate or move slowly. Another major issue is congestion at multiple intersections caused by the accumulation of vehicles and the inability to find parking spaces.

[0093] Furthermore, the formula of the BP neural network is as follows:

[0094] ,

[0095] in, Indicates the score of sudden congestion change judgment, Indicates the congestion status of each lane. and Respectively represent different weight matrices of BP neural network, and is the bias vector of the BP neural network, Represents the activation function.

[0096] It should be noted that, first, the system collects real-time congestion status data of each lane. The congestion status includes information such as vehicle density and vehicle moving speed. These data are obtained through the lane state matrix generated by the above step (S3). The system standardizes these congestion status data and uses them as the input feature x of the BP neural network. Next, the system constructs a BP neural network model. The BP neural network consists of an input layer, several hidden layers and an output layer. In the input layer, the system inputs the congestion status data of each lane. The hidden layer captures the complex nonlinear relationship between the input features through multiple neurons and their connection weights. The output layer outputs the congestion sudden change judgment score. In the BP neural network, the calculation of each layer is implemented by the following formula:

[0097] ;

[0098] ;

[0099] Among them, is the input of the first hidden layer, is the input of the first hidden layer, is the weight matrix from the input layer to the first hidden layer, is the bias vector of the first hidden layer, The activation function usually uses ReLU or Sigmoid. Similarly, the calculation of the second hidden layer is similar:

[0100] ;

[0101] ;

[0102] The system uses historical data to train the BP neural network model. During the training process, the system uses the back propagation algorithm to adjust the model parameters (weight matrix and bias vector) to minimize the error between the predicted value and the actual value. In a large parking lot, the system records the congestion status of each lane and the corresponding congestion sudden change judgment score over a period of time. Through these historical data, the system trains the BP neural network model so that it can accurately predict the congestion sudden change judgment score at the current moment. After the training is completed, the system inputs the real-time congestion status data into the BP neural network model to obtain the congestion sudden change judgment score at the current moment.

[0103] Further, the S6 includes:

[0104] The real-time congestion status of each lane is input into the second prediction model, and the output congestion sudden change judgment score is output. If the congestion sudden change judgment score is greater than or equal to the preset congestion threshold value, the vehicle traffic at the parking lot entrance is suspended;

[0105] If the congestion sudden change judgment score is less than the preset congestion threshold, the vehicle traffic at the parking lot entrance will be restored.

[0106] In some embodiments, first, the system monitors the congestion status of each lane in real time. And perform standardized processing. Next, the system inputs the real-time congestion status data of each lane into the second prediction model. The second prediction model is trained based on the BP neural network and can accurately predict the congestion sudden change judgment score at the current moment. The model processes the input congestion status data through the parameters trained in the previous step and outputs the congestion sudden change judgment score at the current moment. If the system detects that the congestion sudden change judgment score is greater than or equal to the preset congestion threshold value, the system immediately suspends the vehicle traffic at the entrance of the parking lot. The specific operation includes controlling the signal light at the entrance of the parking lot to display a red light and controlling the lifting rod to prevent new vehicles from entering the parking lot. At the same time, the system can send a notification to the parking lot manager to inform the current congestion situation and the measures taken so that the manager can respond in time. Through the above steps, the specific process of dynamically adjusting the vehicle traffic at the entrance of the parking lot according to the real-time congestion status and the congestion sudden change judgment score output by the prediction model in the smart parking management method based on the Internet of Things is realized. Through real-time monitoring and intelligent prediction, this method can effectively manage traffic flow in the parking lot, take timely measures to alleviate congestion, and improve the operating efficiency of the parking lot and the parking experience of car owners.

[0107] The present invention also includes a smart parking management system based on the Internet of Things, comprising:

[0108] A data acquisition module is used to obtain real-time occupancy data of parking spaces through an Internet of Things sensor network, wherein the real-time occupancy data includes occupancy status, occupied vehicle information, and vehicle departure time; obtain lane images and vehicle images in the parking lot, and generate a lane status matrix based on the lane images and vehicle images;

[0109] The lane monitoring module extracts the congestion status of each lane from the lane state matrix based on a convolutional neural network;

[0110] The departure time prediction module is used to calculate the departure time of the vehicle through the real-time occupancy data of the parking space and the departure time of the vehicle, and the congestion state of each lane is used as the input of the feedforward neural network, and the average departure time is used as the output to train and generate a first prediction model;

[0111] The sudden change judgment module calculates the congestion value based on the average departure time predicted by the first prediction model and the preset threshold, locates the sudden congestion change node through the change slope of the congestion value, takes the congestion state of each lane corresponding to the sudden congestion change node time as the input of the BP neural network, takes the sudden congestion change judgment score as the output, and trains to generate the second prediction model;

[0112] The entrance scheduling module is used to adjust the number of vehicles passing through the parking lot entrance in real time according to the real-time congestion status of each lane and the congestion sudden change judgment score output by the second prediction model.

[0113] The above implementation modes are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary engineering and technical personnel in the field shall fall within the protection scope determined by the claims of the present invention.

Claims

1. A smart parking management method based on the Internet of Things, characterized in that: The following steps are involved: S1. Acquire real-time parking space occupancy data through an IoT sensor network, wherein the real-time occupancy data includes occupancy status, occupied vehicle information, and vehicle departure time; S2, acquiring a lane image and a vehicle image in the parking lot, and generating a lane state matrix based on the lane image and the vehicle image; S3, extracting the congestion status of each lane from the lane state matrix based on the convolutional neural network; S4, calculating the time taken for a vehicle to leave the parking lot by using the real-time parking space occupancy data and the time when the vehicle leaves the parking lot, taking the congestion state of each lane as the input of a feedforward neural network, taking the average time taken for leaving the parking lot as the output, and training and generating a first prediction model; S5, calculating the congestion value based on the average departure time predicted by the first prediction model and the preset threshold, locating the congestion sudden change node by the change slope of the congestion value, taking the congestion state of each lane corresponding to the congestion sudden change node time as the input of the BP neural network, taking the congestion sudden change judgment score as the output, and training to generate the second prediction model; S6, adjusting the number of vehicles passing through the parking lot entrance in real time according to the real-time congestion status of each lane and the congestion sudden change judgment score output by the second prediction model; The formula of the BP neural network is as follows: , in, Indicates the score of sudden congestion change judgment, Indicates the congestion status of each lane. and Respectively represent different weight matrices of BP neural network, and is the bias vector of the BP neural network, Represents the activation function.

2. According to the method of claim 1, the smart parking management method based on the Internet of Things is characterized in that: The S2 comprises the following steps: A plurality of real-time image acquisition devices are arranged in the parking lot to acquire lane images and vehicle images in the parking lot; The lane images are stitched together to construct a two-dimensional model of the parking lot; Generate a parking lot matrix based on the two-dimensional parking lot model; The occupancy information of the vehicle in the two-dimensional model of the parking lot is obtained according to the vehicle image and the parking lot matrix is ​​mapped through the position information in the occupancy information. The occupancy is preset to the same value and the parking lot matrix parameters are replaced to generate the lane state matrix.

3. The method for intelligent parking management based on the Internet of Things according to claim 1 is characterized in that: The S3 comprises the following steps: Normalize the generated lane state matrix; Input the normalized lane state matrix into the convolutional neural network; The convolutional layer and pooling layer in the convolutional neural network are used to extract feature information in the lane state matrix, including the vehicle density and vehicle moving speed on the lane. The extracted feature information is input into the fully connected layer, and the congestion probability of each lane is output; A threshold value is judged on the probability of congestion status of each lane to determine the specific congestion status of each lane.

4. The method for intelligent parking management based on the Internet of Things according to claim 1 is characterized in that: The S4 comprises the following steps: Calculate the time taken for each vehicle to leave the parking lot through the real-time occupancy data of the parking spaces and the vehicle departure time data; Collect statistics on the departure time of each vehicle and calculate the average departure time of each vehicle; The congestion status of each lane is used as the input feature, and the average departure time of the corresponding time period is used as the output label to build a feedforward neural network model; The feedforward neural network model is trained, and the model parameters are adjusted through the back propagation algorithm to minimize the error between the predicted departure time and the actual departure time, thereby generating a first prediction model.

5. The method for intelligent parking management based on the Internet of Things according to claim 1 is characterized in that: The preset threshold is the average time taken for vehicles to leave the parking lot when the parking space occupancy rate is lower than 60%.

6. The method for intelligent parking management based on the Internet of Things according to claim 5 is characterized in that: The formula for calculating the congestion value based on the average departure time predicted by the first prediction model and the preset threshold is as follows: , in, Indicates the congestion value, represents the average exit time predicted by the first prediction model, Indicates the preset threshold.

7. The method for intelligent parking management based on the Internet of Things according to claim 1, characterized in that: The method of locating the congestion sudden change node by using the change slope value of the congestion value comprises the following steps: Splice the congestion values ​​in time series to generate a congestion value curve; Calculate the changing slope of the congestion value curve at each time point; Set a slope threshold. When the congestion value change slope exceeds the preset change value, it is determined to be a congestion sudden change node.

8. The method for intelligent parking management based on the Internet of Things according to claim 1, characterized in that: The S6 includes: The real-time congestion status of each lane is input into the second prediction model, and the output congestion sudden change judgment score is output. If the congestion sudden change judgment score is greater than or equal to the preset congestion threshold value, the vehicle traffic at the parking lot entrance is suspended; If the congestion sudden change judgment score is less than the preset congestion threshold, the vehicle traffic at the parking lot entrance will be restored.

9. A smart parking management system based on the Internet of Things, applied to a smart parking management method based on the Internet of Things as claimed in any one of claims 1 to 8, characterized in that: include: A data acquisition module, used to obtain real-time occupancy data of parking spaces through an IoT sensor network, wherein the real-time occupancy data includes occupancy status, occupied vehicle information, and vehicle departure time; Acquire a lane image and a vehicle image in the parking lot, and generate a lane state matrix based on the lane image and the vehicle image; The lane monitoring module extracts the congestion status of each lane from the lane state matrix based on a convolutional neural network; The departure time prediction module is used to calculate the departure time of the vehicle through the real-time occupancy data of the parking space and the departure time of the vehicle, and the congestion state of each lane is used as the input of the feedforward neural network, and the average departure time is used as the output to train and generate a first prediction model; The sudden change judgment module calculates the congestion value based on the average departure time predicted by the first prediction model and the preset threshold, locates the sudden congestion change node through the change slope of the congestion value, takes the congestion state of each lane corresponding to the sudden congestion change node time as the input of the BP neural network, takes the sudden congestion change judgment score as the output, and trains to generate the second prediction model; The entrance scheduling module is used to adjust the number of vehicles passing through the parking lot entrance in real time according to the real-time congestion status of each lane and the congestion sudden change judgment score output by the second prediction model.

Citation Information

Patent Citations

  • Parking lot entrance and exit switching method and device

    CN107067763A