Method and apparatus for predicting parking-space idle rate, and medium and device

Through the pre-trained parking space vacancy rate prediction model, combined with feature extraction, graph fusion and environmental information, it solves the problem of difficult to consider the spatial correlation and time relationship between multiple parking lots, and improves the efficiency and accuracy of parking space vacancy rate prediction. .

WO2024221599A1PCT designated stage expired Publication Date: 2024-10-31ZHEJIANG LAB

Patent Information

Application Number
PCT/CN2023/104984
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2023-06-30
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

It is difficult for the existing technology to simultaneously consider the spatial correlation and temporal relationship between multiple parking lots, resulting in insufficient efficiency and accuracy in predicting parking space vacancy rates.

Method used

A pre-trained parking space vacancy rate prediction model is used, including a feature extraction network, a graph fusion network and a result prediction network. By obtaining the historical vacancy rate and environmental information of each parking lot, a spatial relationship graph is constructed, and predictions are made based on time and space relationships.

Benefits of technology

It improves the prediction efficiency and accuracy of parking space vacancy rate, can simultaneously consider the interaction between parking space vacancy rate and time, space and environmental factors, and provides more accurate parking space vacancy rate prediction results in multiple parking lots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023104984_31102024_PF_FP_ABST
    Figure CN2023104984_31102024_PF_FP_ABST
Patent Text Reader

Abstract

A method and apparatus for predicting a parking-space idle rate, and a medium and a device. The method comprises: acquiring parking-space idle rates, at a plurality of moments before a moment to be subjected to prediction, of parking lots in a region to be subjected to prediction, and using the parking-space idle rates as historical idle rates of the parking lots (S102); inputting the historical idle rates of the parking lots into a feature extraction network, so as to obtain a first feature, wherein the first feature is used for representing the relationship between the historical idle rates of the parking lots and time (S104); inputting a spatial relationship graph and the first feature into a graph fusion network, so as to obtain a fused feature (S108); and then inputting the fused feature into a result prediction network, so as to obtain parking-space idle rates of the parking lots in said region at the moment to be subjected to prediction (S110). On the basis of the relationship between parking-space idle rates and time, the relationship between the parking-space idle rates and space, and a potential interaction relationship between the parking-space idle rates and time and space, prediction results of parking-space idle rates of a plurality of parking lots in a region to be subjected to prediction are obtained at the same time, thereby improving the prediction efficiency of the parking-space idle rates and the accuracy of the prediction results.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device, medium and equipment for predicting parking space vacancy rate Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, medium, and electronic device for predicting parking space vacancy rate. Background Art

[0002] With the development of science and technology, artificial intelligence has also developed rapidly. In the field of traffic big data, machine learning models are widely used.

[0003] Typically, machine learning models are used to predict parking space vacancy rates within a specific area, allowing drivers to select parking spaces based on this prediction. However, developing this model requires considering not only the relationship between parking space vacancy rates and time within the area but also the spatial relationships between parking lots. Therefore, determining the future vacancy rates of multiple parking lots simultaneously is a challenging task.

[0004] Based on this, the present disclosure provides a method for predicting parking space vacancy rate.

[0005] Summary of the Invention

[0006] The present disclosure provides a method, device, medium and electronic device for predicting parking space vacancy rate.

[0007] This disclosure adopts the following technical solutions:

[0008] The present disclosure provides a method for predicting parking space vacancy rates. The method is applied to a computing device in which a pre-trained parking space vacancy rate prediction model is deployed. The parking space vacancy rate prediction model includes: a feature extraction network, a graph fusion network, and a result prediction network. The method includes:

[0009] Determine the area to be predicted and the time to be predicted;

[0010] Obtaining the parking space vacancy rate of each parking lot in the area to be predicted at multiple times before the time to be predicted as the historical vacancy rate of each parking lot;

[0011] Inputting the historical vacancy rates of the parking lots into the feature extraction network to obtain a first feature; wherein the first feature is used to characterize the time dependency of the historical vacancy rates of the parking lots;

[0012] Constructing a spatial relationship diagram between parking lots in the area to be predicted;

[0013] Inputting the spatial relationship graph and the first feature into the graph fusion network to obtain a fusion feature;

[0014] The fused features are input into the result prediction network to obtain the parking space vacancy rate of each parking lot in the area to be predicted at the time to be predicted.

[0015] Optionally, before inputting the spatial relationship graph and the first feature into the graph fusion network, the method further includes:

[0016] Inputting the historical vacancy rates of the parking lots into the feature extraction network to obtain a second feature; wherein the second feature is used to characterize the similarity of the historical vacancy rates of the parking lots;

[0017] Inputting the spatial relationship graph and the first feature into the graph fusion network further includes:

[0018] The spatial relationship graph, the first feature, and the second feature are input into the graph fusion network.

[0019] Optionally, constructing a spatial relationship diagram between parking lots in the area to be predicted specifically includes:

[0020] The spatial relationship graph is constructed by taking each parking lot in the area to be predicted as a node and the distance between each parking lot in the area to be predicted as the weight of an edge.

[0021] Optionally, the graph fusion network includes: an attention network, a graph convolutional network;

[0022] Inputting the spatial relationship graph, the first feature, and the second feature into the graph fusion network includes:

[0023] Inputting the spatial relationship graph, the first feature, and the second feature into the attention network to obtain an attention-weighted output result;

[0024] The output result and the historical vacancy rate of each parking lot are input into the graph convolutional network.

[0025] Optionally, the parking space vacancy rate prediction model further includes: an environmental feature extraction network;

[0026] Before inputting the fused features into the result prediction network, the method further includes:

[0027] Acquire environmental information of each parking lot in the area to be predicted before the time to be predicted, wherein the environmental information at least includes: weather information and holiday information;

[0028] Inputting the environmental information into the environmental feature extraction network to obtain environmental features;

[0029] Inputting the fusion features into the result prediction network also includes:

[0030] The first feature, the fusion feature, the environmental feature, and the historical vacancy rate of each parking lot are input into the result prediction network.

[0031] Optionally, the parking space vacancy rate prediction model is trained using the following method:

[0032] Obtain the parking space vacancy rate of each parking lot in the specified area at least two historical moments;

[0033] The parking space vacancy rate of each parking lot at the latest of the at least two historical moments is used as a label, and the parking space vacancy rate of each parking lot at other historical moments is used as a sample;

[0034] Inputting the sample into the feature extraction network to obtain sample features; wherein the sample features are used to characterize the relationship between the historical idle rate of each parking lot and time;

[0035] Constructing a spatial relationship diagram between parking lots within the designated area as a sample spatial relationship diagram;

[0036] Inputting the sample space relationship graph and the sample features into the graph fusion network to obtain sample fusion features;

[0037] Inputting the sample fusion features into the result prediction network to obtain the prediction result of the parking space vacancy rate of the designated area at the latest historical moment;

[0038] The parking space vacancy rate prediction model is trained with the optimization goal of minimizing the difference between the parking space vacancy rate prediction results and the labels.

[0039] The present disclosure provides a parking space vacancy rate prediction device, wherein a pre-trained parking space vacancy rate prediction model is deployed in the parking space vacancy rate prediction device. The parking space vacancy rate prediction model includes: a feature extraction network, a graph fusion network, and a result prediction network; the device also includes:

[0040] A determination module is used to determine the area to be predicted and the time to be predicted;

[0041] an acquisition module, configured to acquire the parking space vacancy rate of each parking lot in the to-be-predicted area at a plurality of moments before the to-be-predicted moment, as the historical vacancy rate of each parking lot;

[0042] A first input module inputs the historical vacancy rates of the parking lots into the feature extraction network to obtain a first feature; wherein the first feature is used to characterize the time dependency of the historical vacancy rates of the parking lots;

[0043] A construction module, configured to construct a spatial relationship diagram between parking lots within the area to be predicted;

[0044] A second input module, configured to input the spatial relationship graph and the first feature into the graph fusion network to obtain a fusion feature;

[0045] The output module is used to input the fusion feature into the result prediction network to obtain the parking space vacancy rate of each parking lot in the area to be predicted at the time to be predicted.

[0046] Optionally, the first input module is specifically used to input the historical vacancy rate of each parking lot into the feature extraction network to obtain a second feature; wherein the second feature is used to characterize the similarity of the historical vacancy rate of each parking lot; and input the spatial relationship graph, the first feature and the second feature into the graph fusion network.

[0047] Optionally, the construction module is specifically configured to construct the spatial relationship graph by taking each parking lot in the area to be predicted as a node and using the distance between each parking lot in the area to be predicted as the weight of an edge.

[0048] Optionally, the graph fusion network includes: an attention network, a graph convolutional network;

[0049] The second input module is specifically used to input the spatial relationship graph, the first feature and the second feature into the attention network to obtain an attention-weighted output result; and input the output result and the historical vacancy rate of each parking lot into the graph convolutional network.

[0050] Optionally, the parking space vacancy rate prediction model further includes: an environmental feature extraction network;

[0051] The device further comprises: an environmental information input module;

[0052] The environmental information input module is specifically configured to obtain environmental information of each parking lot within the area to be predicted before the time to be predicted, as environmental information of each parking lot, wherein the environmental information includes at least weather information and holiday information; input the environmental information of each parking lot into the environmental feature extraction network to obtain environmental features;

[0053] The output module is specifically configured to input the first feature, the fusion feature, the environmental feature, and the historical vacancy rate of each parking lot into the result prediction network.

[0054] Optionally, the device further comprises: a training module;

[0055] The training module is specifically used to obtain the parking space vacancy rate of each parking lot in the specified area at at least two historical moments; use the parking space vacancy rate of each parking lot at the latest of the at least two historical moments as a label, and use the parking space vacancy rate of each parking lot at other historical moments as a sample; input the sample into the feature extraction network to obtain sample features; wherein the sample features are used to characterize the relationship between the historical vacancy rate of each parking lot and time; construct a spatial relationship graph between each parking lot in the specified area as a sample spatial relationship graph; input the sample spatial relationship graph and the sample features into the graph fusion network to obtain sample fusion features; input the sample fusion features into the result prediction network to obtain the prediction result of the parking space vacancy rate of each parking space in the specified area at the latest historical moment; and train the parking space vacancy rate prediction model with the optimization goal of minimizing the difference between the prediction result of each parking space vacancy rate and the label.

[0056] The present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method for predicting the parking space vacancy rate is implemented.

[0057] The present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for predicting parking space vacancy rate is implemented.

[0058] At least one of the above technical solutions adopted in the present disclosure can achieve the following beneficial effects:

[0059] In the parking space vacancy rate prediction method provided herein, the parking space vacancy rates of each parking lot within the area to be predicted before the predicted time can be input into the feature extraction network of the parking space vacancy rate prediction model to obtain a first feature used to characterize the relationship between the parking space vacancy rate and time for each parking lot. Furthermore, the spatial relationship graph of each parking lot within the area to be predicted and the first feature are input into a graph fusion network to obtain a fused feature used to characterize the relationship between the parking space vacancy rate, time, and space for each parking lot. The fused feature is then input into the result prediction network of the parking space vacancy rate prediction model to obtain the parking space vacancy rate for each parking lot within the area to be predicted at the predicted time. Based on the relationship between parking space vacancy rate and time, the relationship between parking space vacancy rate and space, and the potential interactive relationship between parking space vacancy rate and time and space, parking space vacancy rate prediction results are simultaneously obtained for multiple parking lots within the area to be predicted, thereby improving the efficiency and accuracy of parking space vacancy rate prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation of the present disclosure. In the drawings:

[0061] FIG1 is a flow chart of a method for predicting parking space vacancy rates according to an embodiment of the present disclosure;

[0062] FIG2 is a schematic diagram of a parking space vacancy rate prediction model provided by an embodiment of the present disclosure;

[0063] FIG3 is a spatial relationship diagram of parking lots provided by an embodiment of the present disclosure;

[0064] FIG4 is a schematic diagram of a parking space vacancy rate prediction device provided by an embodiment of the present disclosure;

[0065] FIG5 is a schematic diagram of an electronic device corresponding to FIG1 provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0066] To make the objectives, technical solutions, and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below in conjunction with the specific embodiments of the present disclosure and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present disclosure.

[0067] The technical solutions provided by various embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0068] FIG1 is a flow chart of a method for predicting parking space vacancy rates according to an embodiment of the present disclosure, which may include the following steps:

[0069] S100: Determine the area to be predicted and the time to be predicted.

[0070] S102: Obtain parking space vacancy rates of each parking lot in the area to be predicted at multiple times before the time to be predicted, as historical vacancy rates of each parking lot.

[0071] The prediction method disclosed herein can be executed by any computing device (e.g., a server or terminal) equipped with computing capabilities. This computing device is equipped with a pre-trained parking space vacancy rate prediction model. This parking space vacancy rate prediction model includes a feature extraction network, a graph fusion network, and a result prediction network, as shown in Figure 2.

[0072] Then, the computing device can determine the area to be predicted and the time to be predicted. The area to be predicted and the time to be predicted can be based on user input, i.e., the user desires to know the parking space availability rate for the predicted time and area to be predicted. Alternatively, the area to be predicted can be the area where the user is currently located, and the time to be predicted can be the current time. In other words, while the user is driving, a prediction can be made in real time based on the user's route. The area to be predicted and the time to be predicted can also be pre-set, determined based on a preset time threshold and geographic area.

[0073] Furthermore, in order to determine the relationship between parking space vacancy rates and time for each parking lot within the predicted area using the parking space vacancy rate prediction model, the computing device may, based on the predicted area and the predicted time, obtain the parking space vacancy rates of each parking lot within the predicted area prior to the predicted time, as the historical vacancy rates of each parking lot. For example, if the predicted area is District B in City A and the predicted time is 18:30 on April 19th, the computing device may obtain the parking space vacancy rates of each parking lot in District B in City A prior to 18:30 on April 19th. Assuming that there are three parking lots in District B in City A, namely, parking lots X, Y, and Z, the computing device may obtain the parking space vacancy rates of parking lot X at 18:29 on April 19th: 20%, parking space vacancy rates of parking lot Y: 30%, and parking space vacancy rates of parking lot Z: 40%. At 18:24 on April 19th, the parking space vacancy rates of parking lot X: 19%, parking space vacancy rates of parking lot Y: 20%, and parking space vacancy rates of parking lot Z: 20%.

[0074] When obtaining the parking space vacancy rate for each parking lot within the predicted area before the predicted time, the parking space vacancy rate for each parking lot within the predicted area before the predicted time can be obtained based on a preset time duration. That is, a preset time duration is determined for sampling, and sampling times are determined based on the preset time duration, starting from the predicted time and moving forward to obtain the parking space vacancy rate for each parking lot at each sampling time. For example, if the preset time duration is 5 minutes and the predicted time is 18:50, the parking space vacancy rate for each parking lot at 18:45, 18:40, and so on can be obtained.

[0075] It should be noted that there is no specific limit on how many moments before the predicted time the parking space vacancy rate of each parking lot in the predicted area is obtained, and the information can be obtained as needed. For example, if the input required by the parking space vacancy rate prediction model is the historical vacancy rate of each parking lot five moments before the predicted time, the historical vacancy rate of each parking lot five moments before the predicted time can be obtained. Furthermore, the parking space vacancy rate is determined based on all parking spaces and available (vacant) parking spaces in each parking lot.

[0076] Furthermore, the parking space vacancy rate of each parking lot is calculated based on all parking spaces and available (ie, vacant) parking spaces in each parking lot.

[0077] S104: Inputting the historical idle rate of each parking lot into the feature extraction network to obtain a first feature; wherein the first feature is used to characterize the relationship between the historical idle rate of each parking lot and time.

[0078] The computing device may input the historical vacancy rate of each parking lot into the feature extraction network in the parking space vacancy rate prediction model to obtain a first feature for characterizing the time dependency of the historical vacancy rate of each parking lot.

[0079] S106: Constructing a spatial relationship diagram between parking lots in the area to be predicted.

[0080] In one or more embodiments of the present disclosure, after determining the area to be predicted and the time to be predicted in the above step S100, in order to determine the relationship between the parking space vacancy rate and space of each parking lot in the area to be predicted, a spatial relationship diagram between the parking lots in the area to be predicted can be constructed.

[0081] When constructing a spatial relationship graph, each parking lot within the predicted area can be used as a node, and the distances between parking lots within the predicted area can be used as edge weights. Continuing with the previous example, there are three parking lots, X, Y, and Z, in District B of City A. Assuming the distance between parking lot X and parking lot Y is 3 km, the distance between parking lot X and parking lot Z is 5 km, and the distance between parking lot Z and parking lot Y is 4 km, a spatial relationship graph can be constructed as shown in Figure 3.

[0082] It should be noted that when constructing a spatial relationship diagram, the distance between each parking lot is the actual distance, not the straight-line distance. Based on the electronic map of the area to be predicted, the shortest road connecting two parking lots can be determined to obtain a road topology map between each parking lot. Based on this road topology map, the distance between the two parking lots is determined, and this distance is used as the weight of the corresponding edges of the two parking lots in the spatial relationship diagram. Of course, the driving time between the parking lots can also be used as the weight of the edges of the spatial relationship diagram. As an example and not a limitation, the weight can be a comprehensive consideration of the actual distance, driving time, or other influencing factors. For example, a map tool can be used to calculate the actual distance or driving time between two parking lots, or a comprehensive calculation can be performed taking into account factors such as traffic congestion.

[0083] In addition, when constructing the spatial relationship graph, the adjacency matrix can be used to represent the relationship between nodes (i.e., parking lots). The elements in the adjacency matrix represent the weight between two nodes, where the elements in the adjacency matrix are:

[0084] P ij represents the weight from node i to node j, p ij Indicates connectivity or proximity, p ij The value of can be normalized to between 0 and 1. In some examples, a distance threshold can also be set, and edges are only established between nodes whose distance is less than the distance threshold, thereby obtaining a spatial relationship graph.

[0085] S108: Input the spatial relationship graph and the first feature into the graph fusion network to obtain a fusion feature.

[0086] After obtaining the first feature for characterizing the relationship between the parking space vacancy rate and time of each parking lot in the area to be predicted and the spatial relationship graph of each parking lot in the area to be predicted, the computing device can fuse the spatial relationship graph with the first feature input graph into a network to obtain a fused feature for characterizing the relationship between the parking space vacancy rate and time and space of each parking lot.

[0087] The graph fusion network may include an attention network and a graph convolutional network (GCN). The attention network enables the parking space vacancy rate prediction model to selectively focus on key components. The GCN may combine features of the spatial relationship graph with the first feature to output a fused feature.

[0088] The spatial relationship graph and the first feature can be input into the attention network to obtain the attention-weighted output. This output and the historical vacancy rate of each parking lot can then be input into the graph convolutional network to obtain the fused feature.

[0089] It should be noted that when the spatial relationship graph and the first feature are input into the attention network, since the spatial relationship graph uses a matrix form to represent the adjacency relationship, and the attention network processes operations between matrices, the first feature is converted into a matrix form similar to the adjacency matrix represented by the spatial relationship graph. For example, the first feature and the transpose of the first feature are matrix multiplied, and then the matrix multiplication result and the subsequently calculated second feature matrix and spatial relationship graph are input into the attention network.

[0090] S110: Inputting the fusion features into the result prediction network to obtain the parking space vacancy rate of each parking lot in the to-be-predicted area at the to-be-predicted time.

[0091] The computing device can then input the fused features and the historical vacancy rates of each parking lot into the result prediction network to obtain the parking space vacancy rates of each parking lot in the area to be predicted at the time to be predicted.

[0092] Continuing with the previous example: the area to be predicted is District B in City A, and the time to be predicted is 18:30 on April 19th. The computing device can then obtain the parking space vacancy rates for each parking lot in District B of City A before 18:30 on April 19th. Assuming there are three parking lots, X, Y, and Z, in District B of City A, the computing device can obtain the parking space vacancy rates of Parking Lot X at 18:29 on April 19th: 20%, Parking Lot Y: 30%, and Parking Lot Z: 40%. At 18:24 on April 19th, the parking space vacancy rates of Parking Lot X: 19%, Parking Lot Y: 20%, and Parking Lot Z: 20%. The parking space vacancy rates of each parking lot (i.e., at 18:29 on April 19th, the parking space vacancy rate of parking lot X was 20%, the parking space vacancy rate of parking lot Y was 30%, and the parking space vacancy rate of parking lot Z was 40%; and at 18:24 on April 19th, the parking space vacancy rate of parking lot X was 19%, the parking space vacancy rate of parking lot Y was 20%, and the parking space vacancy rate of parking lot Z was 20%) and the fused features can be input into the result prediction network. Further, it is assumed that the predicted results are: at 18:30 on April 19th, the parking space vacancy rate of parking lot X was 50%, the parking space vacancy rate of parking lot Y was 70%, and the parking space vacancy rate of parking lot Z was 40%.

[0093] In the parking space vacancy rate prediction method provided by the present disclosure, as shown in FIG1 , the parking space vacancy rates of each parking lot within the predicted area at multiple time points prior to the predicted time point are input into a feature extraction network of a parking space vacancy rate prediction model to obtain a first feature representing the time-dependence of the parking space vacancy rates of each parking lot. Furthermore, the spatial relationship graph of each parking lot within the predicted area and the first feature are input into a graph fusion network to obtain a fused feature representing the relationship between the parking space vacancy rates of each parking lot and time and space. The fused feature is then input into the result prediction network of the parking space vacancy rate prediction model to obtain the parking space vacancy rates of each parking lot within the predicted area at the predicted time point. Since parking space vacancy rates are not only related to time but also to the spatial location of each parking lot, the parking space vacancy rates of each parking lot will differ when there are differences in time and spatial location. Therefore, based on the relationship between parking space vacancy rates and time, the relationship between parking space vacancy rates and space, and the potential interactive relationship between parking space vacancy rates and time and space, parking space vacancy rate prediction results for multiple parking lots within the predicted area are simultaneously obtained, thereby improving the prediction efficiency and accuracy of parking space vacancy rates.

[0094] In one or more embodiments of the present disclosure, if the parking space vacancy rates of various parking lots are the same at one moment, the difference in the parking space vacancy rates of various parking lots at the next moment will generally not be too large. Therefore, in order to improve the accuracy of the prediction results, the similarity of the parking space vacancy rates of various parking lots at the same moment before the moment to be predicted can also be calculated to provide a model prompt so that the model can determine the similarity of the parking space vacancy rates of various parking lots at the moment to be predicted based on the similarity of the parking space vacancy rates of various parking lots at the same moment before the moment to be predicted.

[0095] The feature extraction network may include a first feature extraction network and a second feature extraction network. The first feature extraction network is used to extract a first feature, which characterizes the relationship between the historical vacancy rate of each parking lot and time. The second feature extraction network is used to extract a second feature, which characterizes the similarity of the historical vacancy rates of each parking lot. The historical vacancy rates of each parking lot can be input into the first feature extraction network to obtain the first feature, and the historical vacancy rates of each parking lot can be input into the second feature extraction network to obtain the second feature.

[0096] In one or more embodiments of the present disclosure, the first feature extraction network may be a gated recurrent unit (GRU), and the second feature extraction network may be a dynamic time warping (DTW).

[0097] In GRU, there are two gates: update gate z t and reset gate r t Generally speaking, the reset gate is used to determine the extent to which previous information is forgotten, while the update gate determines which information to forget and which new information needs to be added. t (i.e. the parking space vacancy rate of each parking lot at time t) and the reset gate r t and the previous hidden state h at time t-1 t-1 Combine and calculate candidate hidden states Indicates the information that should be updated at time t. Among them, time t can be a sampling time before the time to be predicted, and time t-1 can be the previous sampling time adjacent to time t. Then, through the previous hidden state h t-1 and the current candidate hidden state The weighted average of the hidden state h is obtained t (i.e. the first feature), where the weight is the update gate z t In this way, past and current information can be captured, enabling GRU to capture long-term dependencies in the input sequence (i.e., the parking space vacancy rate of each parking lot before the time to be predicted). Update gate z t , reset gate rt , candidate hidden states Hidden state h t They can be calculated by the following formulas (1) to (4): t =σ(W z x t +U z h t-1 +b z ) (1) r t =σ(W r x t +U r h t-1 +b r ) (2)

[0098] Among them, σ and tanh are sigmoid and hyperbolic tangent activation functions respectively, W_, U_, b_ are learnable weights and intercept terms.

[0099] In one or more embodiments of the present disclosure, a node represents a parking lot, which contains multiple parking spaces. Each parking lot has occupancy data at different times. For example, to predict the occupancy at time t = 3, it is necessary to use the occupancy rates of different parking lots at times t = 1 and 2 to calculate the DTW distance. Therefore, in the second feature extraction network, the following formula (5) can be used to calculate the similarity of the historical idle rates between two nodes:

[0100] Where X and Y are the parking space vacancy rates of the two nodes before the time to be predicted, and d() is the Euclidean distance. Formula (5) allows us to find the curved path π such that the sum of the squared distances between the parking space vacancy rates of the two nodes before the time to be predicted is minimized, thereby obtaining the minimum sum. The value of DTW(X, Y) is the square root of this minimum sum, which is then the similarity between the parking space vacancy rates of the parking lots corresponding to the two nodes before the time to be predicted. Furthermore, a similarity calculation of the historical vacancy rates needs to be performed between every two nodes. If there are N nodes in total, then N^2 calculation results can be obtained, forming an N*N matrix. As an example, when N=2 (including two nodes X and Y), the square root of the minimum sum between the two nodes X and Y needs to be calculated 2^2 times (that is, DTW(X, Y), DTW(X, X), DTW(Y, X), and DTW(Y, Y) need to be calculated, where the values ​​of DTW(X, X) and DTW(Y, Y) are 0), thereby obtaining a 2^2 matrix, which is used as the second feature.

[0101] In step S108, the first feature, the second feature, and the spatial relationship graph may be input into the graph fusion network to obtain a fused feature. Specifically, the first feature, the second feature, and the spatial relationship graph may be input into the attention network in the graph fusion network to obtain an output result, which is then input into the graph convolutional network to obtain a fused feature.

[0102] When using an attention network, the attention network is used to selectively focus on specific parts of the input sequence when generating the output. The basic principle of the attention network is to weight each input element according to its importance to the output of a specific step. Therefore, the model can selectively focus on the most critical parts of the input while ignoring the less critical parts. The attention calculation can be expressed by the following formula (6):

[0103] Among them, Q can be the calculation result after matrix multiplication of the first feature, K can be the second feature, and V can be the spatial relationship graph. k Represents the dimensions of Q and K. Since the first feature is calculated based on the hidden state of the GRU and is the number of nodes * the number of hidden layers, it needs to be further processed using matrix multiplication to convert it into the format of the number of nodes * the number of nodes. The product of Q and K divided by the square root of their dimensions helps stabilize the gradient during training. By using the attention network, the parking space vacancy rate prediction model can simultaneously focus on different aspects of the first feature, the second feature, and the spatial relationship graph, extracting temporal and spatial information, and ultimately obtaining an attention-weighted output result. This improves the accuracy and comprehensiveness of the parking space vacancy rate prediction model.

[0104] Secondly, when using the GCN network, the spectral graph convolution method is adopted. First, the normalized graph Laplacian matrix is ​​calculated based on the fusion features, which can be expressed by the following formula (7):

[0105] Where D = diag (d i ) is the degree matrix, d i =∑ j A ij is the degree of the i-th node, where the node represents the node of the road topology graph, that is, the parking lot, A ij It is a general term for the first feature, the second feature, and the spatial relationship diagram. Represents the fusion feature. The convolution operation can be defined by the following formula (8):

[0106] in, C0=x,

[0107] In order to further simplify the calculation and avoid overfitting, the first-order approximation of the graph Laplace is generally used to calculate the convolution. The final convolution layer operation can be expressed by the following formula (9):

[0108] Among them, σ is the linear rectification function (Rectified linear unit, ReLU).

[0109] By using the attention network and GCN network, we can effectively capture spatiotemporal dependencies and improve prediction accuracy. At the same time, the attention network enables the parking space vacancy rate prediction model to selectively focus on important parts of the input sequence, thereby enhancing the generalization ability of the parking space vacancy rate prediction model.

[0110] Furthermore, the parking space vacancy rate of each parking lot is different under different environments, that is, the parking space vacancy rate of each parking lot is affected by the environment. Therefore, in one or more embodiments of the present disclosure, the parking space vacancy rate prediction model also includes: an environmental feature extraction network.

[0111] Before inputting the fused features into the prediction network, the computing device may also obtain environmental information for each parking lot within the prediction area prior to the prediction time. This environmental information is then input into the environmental feature extraction network to obtain environmental features. Finally, the first feature, the fused features, the environmental features, and the historical vacancy rates of each parking lot are input into the prediction network to obtain the parking space vacancy rate for each parking lot within the prediction area at the prediction time.

[0112] The environmental information includes at least weather information and holiday information.

[0113] Furthermore, in one or more embodiments of the present disclosure, the environment feature extraction network may be a GRU, and the result prediction network may be a multilayer perceptron (MLP).

[0114] In addition, in one or more embodiments of the present disclosure, a method for training a parking space vacancy rate prediction model is also provided.

[0115] Specifically, the computing device may first obtain the parking space vacancy rates of each parking lot in the specified area at at least two historical moments, use the parking space vacancy rate of each parking lot at the latest of the at least two historical moments as a label, and use the parking space vacancy rates of each parking lot at other historical moments as samples. The samples are then input into a feature extraction network to obtain sample features. A spatial relationship graph between parking lots in the specified area is constructed as a sample spatial relationship graph. The sample spatial relationship graph and the sample features are then input into a graph fusion network to obtain sample fusion features. The sample fusion features are then input into a result prediction network to obtain the predicted parking space vacancy rates of each parking lot in the specified area at the latest historical moment. Finally, the parking space vacancy rate prediction model is trained with the optimization goal of minimizing the difference between the predicted parking space vacancy rates and the labels. That is, the parameters of the feature extraction network, the graph fusion network, and the result prediction network are adjusted.

[0116] The sample characteristics are used to characterize the relationship between the historical idle rate of each parking lot and time.

[0117] It should be noted that, when training the parking space vacancy rate prediction model, an input sample may be the parking space vacancy rates of various parking lots at multiple historical moments.

[0118] In one or more embodiments of the present disclosure, when the feature extraction network includes a first feature extraction network and a second feature extraction network, the graph fusion network includes an attention network and a graph convolution network, and the parking space vacancy rate prediction model also includes an environmental feature extraction network, the sample can be first input into the first feature extraction network to obtain the first sample feature, and then the sample can be input into the second feature extraction network to obtain the second sample feature. A sample space relationship graph of each parking lot in the specified area is constructed. Then, the dot product result of the first sample feature and the first sample feature, the second sample feature, and the sample space relationship graph are input into the attention network to obtain the attention-weighted sample output result, and the sample output result is input into the graph convolution network to obtain the sample fusion feature.

[0119] Furthermore, the environmental information of each parking lot within the designated area can be obtained as sample environmental information, and then the sample environmental information is input into the environmental feature extraction network to obtain sample environmental features.

[0120] Finally, the sample fusion features, sample environment features, first sample features, and the sample are input into the prediction network to obtain the parking space vacancy rate prediction results for each parking space in the specified area at the latest historical moment. The parking space vacancy rate prediction model is trained with the optimization goal of minimizing the difference between the predicted parking space vacancy rate results and the labels.

[0121] That is, with the minimum difference between the parking space vacancy rate prediction result and the label as the optimization goal, the parameters of the first feature extraction network, the second feature extraction network, the attention network, the graph convolution network, the environmental feature extraction network and the result prediction network are adjusted.

[0122] In one or more embodiments of the present disclosure, the predicted parking space vacancy rates for each parking lot within the predicted area can be published to the cloud. Users can communicate with the computing device through the cloud to obtain the predicted results without having to perform calculations and storage on the computing device. This can improve computing efficiency and save storage space.

[0123] In addition, the parking space vacancy rate of each parking lot in the predicted area can be predicted at multiple moments in the future, so that users can plan their travel routes in advance according to their own travel needs and actual conditions, avoid wasting time and resources, and improve the traffic efficiency and quality of the predicted area.

[0124] Based on the above-described method for predicting parking space vacancy rates, the present disclosure also provides a schematic diagram of a device for predicting parking space vacancy rates, as shown in FIG4 .

[0125] FIG4 is a schematic diagram of a parking space vacancy rate prediction device provided by an embodiment of the present disclosure. The parking space vacancy rate prediction device deploys a pre-trained parking space vacancy rate prediction model, which includes: a feature extraction network, a graph fusion network, and a result prediction network; the device also includes:

[0126] Determination module 402, used to determine the area to be predicted and the time to be predicted;

[0127] An acquisition module 406 is configured to acquire a parking space vacancy rate of each parking lot in the area to be predicted at a plurality of times before the time to be predicted, as a historical vacancy rate of each parking lot;

[0128] A first input module 408 inputs the historical vacancy rates of each parking lot into the feature extraction network to obtain a first feature; wherein the first feature is used to characterize the time dependency of the historical vacancy rates of each parking lot;

[0129] A construction module 404 is used to construct a spatial relationship diagram between parking lots in the area to be predicted;

[0130] A second input module 410 is configured to input the spatial relationship graph and the first feature into the graph fusion network to obtain a fusion feature;

[0131] The output module 414 is configured to input the fused features into the result prediction network to obtain the parking space vacancy rate of each parking lot in the area to be predicted at the time to be predicted.

[0132] Optionally, the first input module 408 is specifically used to input the historical vacancy rate of each parking lot into the feature extraction network to obtain a second feature; wherein the second feature is used to characterize the similarity of the historical vacancy rate of each parking lot; and input the spatial relationship graph, the first feature and the second feature into the graph fusion network.

[0133] Optionally, the construction module 404 is specifically configured to construct the spatial relationship graph by using parking lots within the area to be predicted as nodes and distances between parking lots within the area to be predicted as edge weights.

[0134] Optionally, the graph fusion network includes: an attention network, a graph convolutional network;

[0135] The second input module 410 is specifically used to input the spatial relationship graph, the first feature and the second feature into the attention network to obtain an attention-weighted output result; and input the output result and the historical vacancy rate of each parking lot into the graph convolutional network.

[0136] Optionally, the parking space vacancy rate prediction model further includes: an environmental feature extraction network;

[0137] The apparatus further includes: an environmental information input module 412;

[0138] The environmental information input module 412 is specifically configured to obtain environmental information of each parking lot within the area to be predicted before the time to be predicted, as environmental information of each parking lot, wherein the environmental information includes at least weather information and holiday information; and input the environmental information of each parking lot into the environmental feature extraction network to obtain environmental features.

[0139] The output module 414 is specifically configured to input the first feature, the fusion feature, the environmental feature, and the historical vacancy rate of each parking lot into the result prediction network.

[0140] Optionally, the apparatus further comprises: a training module 400;

[0141] The training module 400 is specifically used to obtain the parking space vacancy rate of each parking lot in the specified area at at least two historical moments; use the parking space vacancy rate of each parking lot at the latest of the at least two historical moments as a label, and use the parking space vacancy rate of each parking lot at other historical moments as a sample; input the sample into the feature extraction network to obtain sample features; wherein the sample features are used to characterize the relationship between the historical vacancy rate of each parking lot and time; construct a spatial relationship graph between each parking lot in the specified area as a sample spatial relationship graph; input the sample spatial relationship graph and the sample features into the graph fusion network to obtain sample fusion features; input the sample fusion features into the result prediction network to obtain the prediction result of the parking space vacancy rate of each parking space in the specified area at the latest historical moment; and train the parking space vacancy rate prediction model with the optimization goal of minimizing the difference between the prediction result of each parking space vacancy rate and the label.

[0142] An embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program, which can be used to execute the method for predicting parking space vacancy rate described above.

[0143] Based on the parking space vacancy rate prediction method described above, the presently disclosed embodiment further provides a schematic block diagram of an electronic device, shown in Figure 5. As shown in Figure 5, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, memory, and non-volatile storage, and may also include other hardware required for its operation. The processor reads the corresponding computer program from the non-volatile storage into the internal memory and then executes it, thereby implementing the parking space vacancy rate prediction method described above.

[0144] Of course, in addition to software implementation, this disclosure does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0145] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly performed using "logic compiler" software. This is similar to the software compiler used during program development. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages ​​and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0146] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.

[0147] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0148] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing the present disclosure, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0149] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0150] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0151] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0153] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0154] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0155] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change RAM (Phase Change RAM, PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0156] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0157] Those skilled in the art will appreciate that embodiments of the present disclosure may be provided as methods, systems, or computer program products. Thus, the present disclosure may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0158] The present disclosure may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present disclosure may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0159] The various embodiments of this disclosure are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so their description is relatively simple. For relevant portions, refer to the description of the method embodiments.

[0160] The foregoing is merely an embodiment of the present disclosure and is not intended to limit the present disclosure. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure are intended to be included within the scope of the claims of the present disclosure.

Claims

1. A method for predicting parking space vacancy rate, characterized in that: The method is applied to a computing device, in which a pre-trained parking space vacancy rate prediction model is deployed, and the parking space vacancy rate prediction model includes: a feature extraction network, a graph fusion network, and a result prediction network; the method includes: Determine the area to be predicted and the time to be predicted; Obtaining the parking space vacancy rate of each parking lot in the to-be-predicted area at a plurality of times before the to-be-predicted time as the historical vacancy rate of each parking lot; Inputting the historical idle rates of the parking lots into the feature extraction network to obtain a first feature; wherein the first feature is used to characterize the time dependency of the historical idle rates of the parking lots; Constructing a spatial relationship diagram between parking lots in the area to be predicted; Inputting the spatial relationship graph and the first feature into the graph fusion network to obtain a fusion feature; The fused features are input into the result prediction network to obtain the parking space vacancy rate of each parking lot in the area to be predicted at the time to be predicted.

2. The method according to claim 1, characterized in that Before inputting the spatial relationship graph and the first feature into the graph fusion network, the method further includes: Inputting the historical idle rates of the parking lots into the feature extraction network to obtain a second feature; wherein the second feature is used to characterize the similarity of the historical idle rates of the parking lots; Inputting the spatial relationship graph and the first feature into the graph fusion network further includes: The spatial relationship graph, the first feature, and the second feature are input into the graph fusion network.

3. The method according to claim 1 or 2, characterized in that The step of constructing a spatial relationship diagram between parking lots in the area to be predicted specifically includes: The spatial relationship graph is constructed by taking each parking lot in the area to be predicted as a node and taking the distance between each parking lot in the area to be predicted as the weight of an edge.

4. The method according to claim 2 or 3, characterized in that The graph fusion network includes: an attention network and a graph convolutional network; Inputting the spatial relationship graph, the first feature, and the second feature into the graph fusion network includes: Inputting the spatial relationship graph, the first feature, and the second feature into the attention network to obtain an attention-weighted output result; The output result and the historical vacancy rate of each parking lot are input into the graph convolutional network.

5. The method according to any one of claims 1 to 4, characterized in that The parking space vacancy rate prediction model further includes: an environmental feature extraction network; Before inputting the fused features into the result prediction network, the method further includes: Acquire environmental information of each parking lot in the to-be-predicted area before the to-be-predicted time, wherein the environmental information at least includes: weather information and holiday information; Inputting the environmental information into the environmental feature extraction network to obtain environmental features; Inputting the fusion features into the result prediction network also includes: The first feature, the fusion feature, the environmental feature and the historical vacancy rate of each parking lot are input into the result prediction network.

6. The method according to any one of claims 1 to 5, characterized in that The parking space vacancy rate prediction model is trained using the following method: Obtain the parking space vacancy rate of each parking lot in the specified area at least two historical moments; The parking space vacancy rate of each parking lot at the latest historical moment of the at least two historical moments is used as a label, and the parking space vacancy rate of each parking lot at other historical moments is used as a sample; Inputting the sample into the feature extraction network to obtain sample features; wherein the sample features are used to characterize the relationship between the historical idle rate and time of each parking lot; Constructing a spatial relationship diagram between parking lots in the designated area as a sample spatial relationship diagram; Inputting the sample space relationship graph and the sample features into the graph fusion network to obtain sample fusion features; Inputting the sample fusion features into the result prediction network to obtain the prediction result of the parking space vacancy rate of the designated area at the latest historical moment; The parking space vacancy rate prediction model is trained with the optimization goal of minimizing the difference between the parking space vacancy rate prediction results and the labels.

7. A parking space vacancy rate prediction device, characterized in that: The parking space vacancy rate prediction device deploys a pre-trained parking space vacancy rate prediction model, and the parking space vacancy rate prediction model includes: a feature extraction network, a graph fusion network, and a result prediction network; the device also includes: A determination module is used to determine the area to be predicted and the time to be predicted; An acquisition module, used for acquiring the parking space vacancy rate of each parking lot in the to-be-predicted area at a plurality of times before the to-be-predicted time, as the historical vacancy rate of each parking lot; A first input module, inputting the historical idle rates of the parking lots into the feature extraction network to obtain a first feature; wherein the first feature is used to characterize the time dependency of the historical idle rates of the parking lots; A construction module, used to construct a spatial relationship diagram between parking lots in the area to be predicted; A second input module, used for inputting the spatial relationship graph and the first feature into the graph fusion network to obtain a fusion feature; The output module is used to input the fusion feature into the result prediction network to obtain the parking space vacancy rate of each parking lot in the area to be predicted at the time to be predicted.

8. The device according to claim 7, characterized in that The first input module is specifically used to input the historical vacancy rates of the parking lots into the feature extraction network to obtain a second feature; wherein the second feature is used to characterize the similarity of the historical vacancy rates of the parking lots; and input the spatial relationship graph, the first feature and the second feature into the graph fusion network.

9. The device according to claim 7 or 8, characterized in that The construction module is specifically used to construct the spatial relationship graph by taking each parking lot in the area to be predicted as a node and taking the distance between each parking lot in the area to be predicted as the weight of an edge.

10. The device according to claim 8 or 9, characterized in that The graph fusion network includes: an attention network and a graph convolutional network; The second input module is specifically used to input the spatial relationship graph, the first feature and the second feature into the attention network to obtain an attention-weighted output result; and input the output result and the historical vacancy rate of each parking lot into the graph convolutional network.

11. The device according to any one of claims 7 to 10, characterized in that The parking space vacancy rate prediction model further includes: an environmental feature extraction network; The device also includes: an environmental information input module; The environmental information input module is specifically used to obtain environmental information of each parking lot in the area to be predicted before the time to be predicted as environmental information of each parking lot, wherein the environmental information at least includes: weather information and holiday information; input the environmental information of each parking lot into the environmental feature extraction network to obtain environmental features; The output module is specifically used to input the first feature, the fusion feature, the environmental feature and the historical vacancy rate of each parking lot into the result prediction network.

12. The device according to any one of claims 7 to 11, characterized in that The device also includes: a training module; The training module is specifically used to obtain the parking space vacancy rate of each parking lot in the specified area at at least two historical moments; use the parking space vacancy rate of each parking lot at the latest of the at least two historical moments as a label, and use the parking space vacancy rate of each parking lot at other historical moments as a sample; input the sample into the feature extraction network to obtain sample features; wherein the sample features are used to characterize the relationship between the historical vacancy rate of each parking lot and time; construct a spatial relationship graph between the parking lots in the specified area as a sample spatial relationship graph; input the sample spatial relationship graph and the sample features into the graph fusion network to obtain sample fusion features; The sample fusion features are input into the result prediction network to obtain the prediction results of the parking space vacancy rates of the designated area at the latest historical moment; the parking space vacancy rate prediction model is trained with the minimum difference between the prediction results of the parking space vacancy rates and the labels as the optimization goal.

13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 6 is implemented.

14. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Parking lot idle parking space prediction method and device, electronic equipment and storage medium

    CN111310987A

  • Parking lot idle parking space prediction method and device, electronic equipment and storage medium

    CN111325382A

  • Method and device for predicting vacancy rate of parking spaces

    CN112863235A

  • Shared parking space intelligent distribution system and method based on LSTM model

    CN115830848A

  • Roadside parking availability prediction method based on graph neural network

    CN115985132A

Cited By

  • Prediction method and device for photovoltaic combined power and computer equipment

    CN119765286A