Parking lot data repair method and apparatus, device and storage medium
11295619 · 2022-04-05
Assignee
Inventors
Cpc classification
G06Q30/0201
PHYSICS
International classification
G07B15/02
PHYSICS
Abstract
A parking lot data repair method and apparatus, a device, and a storage medium. The method comprises: calculating spatial similarity between two parking lots according to the spatial features of the parking lots and a spatial similarity measurement model; clustering the parking lots into different parking lot clusters according to the spatial similarity, and calculating a spatial similarity probability corresponding to each parking lot cluster; calculating data similarity between two sample parking lots in the same parking lot cluster, and according to the data similarity and the spatial similarity probability corresponding to the parking lot cluster, calculating the data similarity probability of the parking lot cluster under a similar spatial condition; and when the data similarity probability under the similar spatial condition exceeds a probability threshold value, performing data repair on the parking lot to be repaired in the parking lot cluster by means of a cyclic generation-type confrontation network.
Claims
1. A method of patching data for parking lots, comprising following steps: obtaining a pre-collected collection of urban parking lots, calculating a spatial similarity between two parking lots according to a preset spatial similarity measurement model and spatial characteristics of each parking lot in the said collection of urban parking lots, wherein the parking lots comprise to-be-patched parking lots and sample parking lots; clustering the parking lots into different clusters according to the spatial similarity between two parking lots, and calculating a spatial similarity probability corresponding to each parking lot cluster; calculating a data similarity between two sample parking lots in the same parking lot cluster, calculating a data similarity probability of a parking lot cluster under similar spatial condition, according to the data similarity between two sample parking lots and the spatial similarity probability corresponding to the parking lot cluster; when the data similarity probability of the parking lot cluster under similar spatial condition exceeds a probability threshold, patching data of a to-be-patched parking lot in the parking lot cluster, according to parking data of the sample parking lots in the parking lot cluster and a preset recurrent Generative Adversarial Nets (GANs).
2. The method of claim 1, wherein the step of calculating the spatial similarity between two parking lots comprises: generating the spatial characteristics of each parking lot according to the latitude and longitude of its geographic location and according to the number of each type of preset geographic interest points within a preset range around each parking lot.
3. A non-transitory computer readable storage medium for storing a computer program, wherein said method of claim 2 is implemented when said computer program is executed by a processor.
4. The method of claim 2, wherein the spatial similarity measurement model comprises:
5. A computing equipment comprising a memory, a processor, and a computer program stored in said memory and capable of running on said processor, wherein said method of claim 4 is implemented when said processor executes said computer program.
6. A non-transitory computer readable storage medium for storing a computer program, wherein said method of claim 4 is implemented when said computer program is executed by a processor.
7. A computing equipment comprising a memory, a processor, and a computer program stored in said memory and capable of running on said processor, wherein said method of claim 2 is implemented when said processor executes said computer program.
8. The method of claim 1, wherein the step of calculating the spatial similarity probability corresponding to each parking lot cluster comprise: obtaining the number of parking lot pairs in the parking lot cluster, wherein the parking lot pairs with high spatial similarity in the collection of urban parking lots is marked by users in advance; calculating the spatial similarity probability corresponding to the parking lot cluster according to the number of the parking lot pairs in the parking lot cluster.
9. A computing equipment comprising a memory, a processor, and a computer program stored in said memory and capable of running on said processor, wherein said method of claim 8 is implemented when said processor executes said computer program.
10. A non-transitory computer readable storage medium for storing a computer program, wherein said method of claim 8 is implemented when said computer program is executed by a processor.
11. The method of claim 1, wherein the step of patching data of a to-be-patched parking lot in the parking lot cluster according to parking data of the sample parking lots in the parking lot cluster and a preset recurrent GANs comprises: obtaining a sample parking lot with the highest similarity to the to-be-patched parking lot in the same parking lot cluster; inputing the parking data of the sample parking lot with the highest spatial similarity into the said recurrent GANs; screening the output of the said recurrent GANs with a preset Bayesian filter, to obtain the parking data of the to-be-patched parking lot.
12. A computing equipment comprising a memory, a processor, and a computer program stored in said memory and capable of running on said processor, wherein said method of claim 11 is implemented when said processor executes said computer program.
13. A non-transitory computer readable storage medium for storing a computer program, wherein said method of claim 11 is implemented when said computer program is executed by a processor.
14. A computing equipment comprising a memory, a processor, and a computer program stored in said memory and capable of running on said processor, wherein said method of claim 1 is implemented when said processor executes said computer program.
15. A non-transitory computer readable storage medium for storing a computer program, wherein said method of claim 1 is implemented when said computer program is executed by a processor.
16. A data patching device for parking lots, wherein the device comprises: spatial similarity computing unit, configured to obtain a pre-collected collection of urban parking lots, calculate a spatial similarity between two parking lots according to a preset spatial similarity measurement model and spatial characteristics of each parking lot in the said collection of urban parking lots, wherein the parking lots comprise to-be-patched parking lots and sample parking lots; spatial similarity probability computing unit, configured to cluster the parking lots into different clusters according to the spatial similarity between two parking lots, and calculate a spatial similarity probability corresponding to each parking lot cluster; data similarity probability computing unit, configured to calculate a data similarity between two sample parking lots in the same parking lot cluster, and calculate a data similarity probability of a parking lot cluster under similar spatial condition according to the data similarity between two sample parking lots and the spatial similarity probability corresponding to the parking lot cluster; and data patching unit, configured to patch data of a to-be-patched parking lot in the parking lot cluster according to the parking data of the sample parking lots in the parking lot cluster and a preset recurrent GANs, when the data similarity probability of the parking lot cluster under similar spatial condition exceeds a probability threshold.
17. The device of claim 16, wherein the spatial similarity computing unit comprises: a spatial characteristic generation unit configured to generate the spatial characteristics of each parking lot according to the latitude and longitude of its geographic location and according to the number of each type of preset geographic interest points within a preset range around each parking lot.
18. The device of claim 16, wherein the data patching unit comprises: a sample parking lot acquisition unit configured to obtain a sample parking lot with the highest similarity to the to-be-patched parking lot in the same parking lot cluster; a network input unit configured to input the parking data of the sample parking lot with the highest spatial similarity into the recurrent GANs; and a data screening unit configured to screen the output of the said recurrent GANs with a preset Bayesian filter to obtain the parking data of the to-be-patched parking lot.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
DETAILED DESCRIPTION OF INVENTION
(5) In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention is further described in detail below with reference to the accompanying figures and embodiments. It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention; it is not intended to limit the present invention.
(6) The detailed description of the implementation of the invention made in accordance with embodiments is as follows:
Embodiment 1
(7)
(8) In step S101, obtaining a pre-collected collection of urban parking lots, calculating the spatial similarity between two parking lots according to the spatial characteristics and preset spatial similarity measurement model of each parking lot in the collection of urban parking lots. The parking lots comprise parking lots to be patched and sample parking lots.
(9) In the embodiment of the invention, the pre-collected collection of urban parking lots includes information about multiple parking lots and each parking lot. These parking lots include those without parking data and those with parking data. For the sake of distinction, the parking lots without parking data are called the parking lots to be patched, and those with parking data are called the sample parking lots. In the collection of urban parking lots, the relevant information of the parking lots to be patched includes the spatial characteristics of the parking lots to be patched, the relevant information of the sample parking lots includes the spatial characteristics and parking data of the sample parking lots, and the parking data are historical parking data.
(10) In the embodiment of the invention, when collecting the collection of urban parking lots, the latitude and longitude of the geographic location of each parking lot and the number of each kind of preset geographic points of interest within the preset range of each parking lot in the collection of urban parking lots are collected. The spatial characteristics of a parking lot are composed of the latitude and longitude of its geographic location and the number of each kind of preset geographic points of interest within its preset range. Therefore, the subsequent calculation accuracy of spatial similarity between two parking lots can be effectively improved by considering the influence of geographical location and surrounding geographical points of interest on the parking lots. The latitude and longitude of a parking lot is a bivector. The number of each kind of preset geographic points of interest within the preset range of a parking lot constitutes the h-dimension vector. Therefore, the spatial characteristics of a parking lot is an h+2-dimensional vector. h is the number of kinds of geographical points of interest.
(11) Preferably, the preset range of a parking lot is the area with the parking lot as the center and the preset tolerance radius as the radius, which can effectively improve the subsequent calculation accuracy of spatial similarity between two parking lots. The tolerance radius is the farthest distance between the parking lot and the destination that a driver can receive.
(12) In the embodiment of the invention, the spatial similarity between two parking lots in the collection of urban parking lots according to the spatial characteristics and preset spatial similarity measurement model of each parking lot. Preferably, the spatial similarity measurement model is indicated as:
(13)
wherein, S.sub.spatiai (p.sub.1, p.sub.1) is the spatial similarity between the parking lot p.sub.1 and the parking lot p.sub.2 in the collection of urban parking lots, the spatial characteristics of the parking lots p.sub.1 and p.sub.2 are (η.sub.1, ω.sub.1) and (η.sub.2, ω.sub.2) respectively, η.sub.1 and ω.sub.1 are the latitude and longitude of the geographic location of the parking lot p.sub.1 and the corresponding number of geographic points of interest respectively, η.sub.2 and ω.sub.2p are the latitude and longitude of the geographic location of the parking lot p.sub.2 and the corresponding number of geographic points of interest respectively, and α and β are preset influence coefficients. Thus, the spatial similarity measurement model is integrated with the influence of the latitude and longitude of the parking lot and the surrounding geographical points of interest on the spatial similarity, which effectively improve the calculation accuracy of spatial similarity.
(14) In step S102, clustering the parking lots into different clusters according to the spatial similarity between two parking lots, and calculating the corresponding spatial similarity probability of each parking lot cluster.
(15) In the embodiment of the invention, after obtaining the spatial similarity between two parking lots, all parking lots in the collection of urban parking lots can be clustered into different clusters according to these spatial similarity values and the preset clustering algorithm (i.e. K-means algorithm), thus to effectively reduce the computing amount of data patching for parking lots. For the sake of description, these clusters are called parking lot clusters.
(16) In the embodiment of the invention, users mark the parking lot pairs with high spatial similarity in the collection of urban parking lots in advance. When calculating the spatial similarity probability corresponding to each parking lot cluster, the number of parking lot pairs with high spatial similarity in the same parking lot cluster is preferably obtained. The spatial similarity probability corresponding to the parking lot cluster is calculated according to the obtained number of parking lot pairs to improve the calculation accuracy of spatial similarity probability. Further preferably, the formula of the spatial similarity probability is indicated as:
(17)
wherein, P(S) is the spatial similarity probability, U.sub.vs is the collection composed of parking lot pairs with high spatial similarity in the collection of urban parking lots, pp.sub.i is the i.sup.th parking lot pair with high similarity probability in the parking lot cluster, Σpp.sub.i∈U.sub.vs is the number of parking lot pairs with high similarity probability in the parking lot cluster, C.sub.a.sup.2 is the number of permutation of all parking lots in the parking lot cluster, and n is the number of parking lots in the parking lot cluster.
(18) In step S103, calculating the data similarity between two sample parking lots in the same parking lot cluster, and calculating the data similarity probability of the parking lot clusters under the similar spatial condition according to the data similarity between two sample parking lots and the spatial similarity probability corresponding to the parking lot clusters.
(19) In the embodiment of the invention, after the spatial similarity probability corresponding to each parking lot cluster is calculated, the data similarity between two sample parking lots in the same parking lot cluster is calculated, and the data similarity probability of the parking lot clusters under the similar spatial condition is calculated according to the spatial similarity probability corresponding to the parking lot clusters and the data similarity. Preferably, the formula of the data similarity between two sample parking lots is indicated as:
(20)
wherein, S.sub.data (p.sub.1, p.sub.2) is the data similarity between sample parking lot p.sub.1 and the sample parking lot p.sub.2, d.sub.1 is the historical parking data of the sample parking lot p.sub.1, d.sub.2 is the historical parking data of the sample parking lot p.sub.2, E(⋅) is the mathematical expectation, and D(⋅) is the mathematical variance.
(21) In the embodiment of the invention, the formula of data similarity probability of the parking lot clusters under the similar spatial condition is
(22)
wherein, P(DIS) is the data similarity probability of the parking lot clusters under the similar spatial condition, P(S) is the spatial similarity probability corresponding to the parking lot clusters, and P(D,S) is the joint probability of spatial similarity and data similarity corresponding to the parking lot clusters. Therefore, before calculating P(DIS), P(D,S) should be calculated according to the data similarity between two sample parking lots in the parking lot clusters.
(23) When calculating the joint probability of spatial similarity and data similarity, preferably, the sample parking lots with data similarity in the parking lot cluster are obtained according to the data similarity between two sample parking lots in the parking lot cluster and the preset data similarity threshold, and the parking lots with high space similarity and data similarity in the sample parking lots with data similarity are obtained. The joint probability of spatial similarity and data similarity corresponding to the parking lot clusters is calculated according to the number of the sample parking lots with data similarity in the parking lot clusters and the number of parking lot pairs, thus to effectively improve the calculation accuracy of the joint probability. Users mark out the parking lot pairs with high spatial similarity and high data similarity in the collection of urban parking lots in advance.
(24) Further preferably, the formula of the joint probability of spatial similarity and data similarity corresponding to the parking lot clusters is indicated as:
(25)
wherein, U.sub.m is a collection of sample parking lots with data similarity in the parking lot clusters, m is the number of sample parking lots with data similarity in the parking lot clusters, U.sub.spc is a collection of parking lots with high data similarity, U.sub.vs is a collection of parking lots with high spatial similarity,
(26)
is the proportion of sample parking lots with data similarity in the parking lot clusters, and
(27)
is the proportion of parking lot pairs with high spatial similarity and data similarity in sample parking lots with data similarity.
(28) In step S104, patching data of the parking lots to be patched in the parking lot clusters according to the parking data of the sample parking lots in the parking lot clusters and the preset recurrent GANs when the data similarity probability under the similar spatial condition exceeds the probability threshold.
(29) In the embodiment of the invention, recurrent GANs (RGAN) replaces the generator nets and discriminator nets with the long-short term memory on the basis of Generative Adversarial Nets (GANs). When the data similarity probability under the similar spatial condition exceeds the probability threshold, the sample parking lot with the highest spatial similarity to the parking lot to be patched in the same parking lot cluster is obtained. The data of the parking lot to be patched can be patched by inputting parking data of the sample parking lot into the recurrent GANs.
(30) Preferably, the recurrent GANs is trained after inputting the parking data of the sample parking lots with the highest spatial similarity to the parking lots to be patched into the recurrent GANs. Since the training process of the recurrent GANs is not stable, the output of the recurrent GANs is screened with the preset Bayesian filter. The screened output of the recurrent GANs is set as the parking data of the parking lots to be patched, thus to effectively improve the accuracy of data patching for parking lots.
(31) Further preferably, when the output of the recurrent GANs is screened with the preset Bayesian filter, the output of the recurrent GANs is mixed with the parking data of the parking lot cluster where the parking lots to be patched are, then the joint probability of spatial similarity and data similarity corresponding to the parking lot cluster after mixing is calculated. If the joint probability after mixing is not lower than the joint probability before mixing, the output of the recurrent GANs is set as the parking data of the parking lots to be patched. Otherwise, the parking data of the sample parking lots with the highest similarity to the parking lots to be patched into the recurrent GANs, thus to effectively improve the accuracy of data patching for parking lots.
(32) In the embodiment of the invention, the invention comprises the following steps: calculating the spatial similarity between two parking lots according to the spatial characteristics and spatial similarity measurement model of parking lots in the collection of urban parking lots, clustering parking lots into different clusters according to the spatial similarity, calculating the corresponding spatial similarity probability of parking lot clusters, calculating the data similarity between two sample parking lots in the same parking lot cluster, calculating the data similarity probability of the parking lot clusters under the similar spatial condition according to the data similarity and the spatial similarity probability corresponding to the parking lot clusters, patching data of the parking lots to be patched in parking lot clusters through recurrent GANs when the data similarity probability under the similar spatial condition exceeds the probability threshold, thus to conduct accurate data patching on parking lots to be patched without relying on the prior knowledge of the parking lots to be patched, which effectively saves the economic and time costs of setting up data acquisition equipment in parking lots to be patched.
Embodiment 2
(33)
(34) Spatial similarity computing unit 21 is used to obtain a pre-collected collection of urban parking lots, calculate the spatial similarity between two parking lots according to the spatial characteristics and preset spatial similarity measurement model of each parking lot in the collection of urban parking lots. The parking lots comprises parking lots to be patched and sample parking lots.
(35) In the embodiment of the invention, when collecting the collection of urban parking lots, the latitude and longitude of the geographic location of each parking lot and the number of each kind of preset geographic points of interest within the preset range of each parking lot in the collection of urban parking lots are collected. The spatial characteristics of a parking lot are composed of the latitude and longitude of its geographic location and the number of each kind of preset geographic points of interest within its preset range. Therefore, the subsequent calculation accuracy of spatial similarity between two parking lots can be effectively improved by considering the influence of geographical location and surrounding geographical points of interest on the parking lots.
(36) Preferably, the preset range of a parking lot is the area with the parking lot as the center and the preset tolerance radius as the radius, which can effectively improve the subsequent calculation accuracy of spatial similarity between two parking lots. The tolerance radius is the farthest distance between the parking lot and the destination that a driver can receive.
(37) In the embodiment of the invention, the spatial similarity between two parking lots in the collection of urban parking lots according to the spatial characteristics and preset spatial similarity measurement model of each parking lot. Preferably, the spatial similarity measurement model is indicated as:
(38)
wherein, S.sub.spatial (p.sub.1, p.sub.1) is the spatial similarity between the parking lot p.sub.1 and the parking lot p.sub.2 in the collection of urban parking lots, the spatial characteristics of the parking lots p.sub.1 and p.sub.2 are (η.sub.1, ω.sub.1) and (η.sub.2, ω.sub.2) respectively, η.sub.1 and ω.sub.1 are the latitude and longitude of the geographic location of the parking lot p.sub.1 and the corresponding number of geographic points of interest respectively, η.sub.2 and ω.sub.2 are the latitude and longitude of the geographic location of the parking lot p.sub.2 and the corresponding number of geographic points of interest respectively, and α and β are preset influence coefficients. Thus, the spatial similarity measurement model is integrated with the influence of the latitude and longitude of the parking lot and the surrounding geographical points of interest on the spatial similarity, which effectively improve the calculation accuracy of spatial similarity.
(39) Spatial similarity probability computing unit 22 is used to cluster the parking lots into different clusters according to the spatial similarity between two parking lots, and calculate the corresponding spatial similarity probability of each parking lot cluster.
(40) In the embodiment of the invention, after obtaining the spatial similarity between two parking lots, all parking lots in the collection of urban parking lots can be clustered into different parking lot clusters according to these spatial similarity values and the preset clustering algorithm, thus to effectively reduce the computing amount of data patching for parking lots.
(41) In the embodiment of the invention, users mark the parking lot pairs with high spatial similarity in the collection of urban parking lots in advance. When calculating the spatial similarity probability corresponding to each parking lot cluster, the number of parking lot pairs with high spatial similarity in the same parking lot cluster is preferably obtained. The spatial similarity probability corresponding to the parking lot cluster is calculated according to the obtained number of parking lot pairs to improve the calculation accuracy of spatial similarity probability. Further preferably, the formula of the spatial similarity probability is indicated as:
(42)
wherein, P(S) is the spatial similarity probability, U.sub.vs is the collection composed of parking lot pairs with high spatial similarity in the collection of urban parking lots, pp.sub.i is the i.sup.th parking lot pair with high similarity probability in the parking lot cluster, Σpp.sub.i∈U.sub.vs is the number of parking lot pairs with high similarity probability in the parking lot cluster, C.sub.a.sup.2 is the number of permutation of all parking lots in the parking lot cluster, and n is the number of parking lots in the parking lot cluster.
(43) Data similarity probability computing unit 23 is used to calculate the data similarity between two sample parking lots in the same parking lot cluster, and calculate the data similarity probability of the parking lot clusters under the similar spatial condition according to the data similarity between two sample parking lots and the spatial similarity probability corresponding to the parking lot clusters.
(44) In the embodiment of the invention, after the spatial similarity probability corresponding to each parking lot cluster is calculated, the data similarity between two sample parking lots in the same parking lot cluster is calculated, and the data similarity probability of the parking lot clusters under the similar spatial condition is calculated according to the spatial similarity probability corresponding to the parking lot clusters and the data similarity. Preferably, the formula of the data similarity between two sample parking lots is indicated as:
(45)
wherein, S.sub.data (p.sub.1, p.sub.2) is the data similarity between sample parking lot p.sub.1 and the sample parking lot p.sub.2, d.sub.1 is the historical parking data of the sample parking lot p.sub.1, d.sub.2 is the historical parking data of the sample parking lot p.sub.2, E(⋅) is the mathematical expectation, and D(⋅) is the mathematical variance.
(46) In the embodiment of the invention, the formula of data similarity probability of the parking lot clusters under the similar spatial condition is
(47)
wherein, P(DIS) is the data similarity probability of the parking lot clusters under the similar spatial condition, P(S) is the spatial similarity probability corresponding to the parking lot clusters, and P(D,S) is the joint probability of spatial similarity and data similarity corresponding to the parking lot clusters. Therefore, before calculating P(DIS), P(D,S) should be calculated according to the data similarity between two sample parking lots in the parking lot clusters.
(48) When calculating the joint probability of spatial similarity and data similarity, preferably, the sample parking lots with data similarity in the parking lot cluster are obtained according to the data similarity between two sample parking lots in the parking lot cluster and the preset data similarity threshold, and the parking lots with high space similarity and data similarity in the sample parking lots with data similarity are obtained. The joint probability of spatial similarity and data similarity corresponding to the parking lot clusters is calculated according to the number of the sample parking lots with data similarity in the parking lot clusters and the number of parking lot pairs, thus to effectively improve the calculation accuracy of the joint probability. Users mark out the parking lot pairs with high spatial similarity and high data similarity in the collection of urban parking lots in advance.
(49) Further preferably, the formula of the joint probability of spatial similarity and data similarity corresponding to the parking lot clusters is indicated as:
(50)
wherein, U.sub.m is a collection of sample parking lots with data similarity in the parking lot clusters, m is the number of sample parking lots with data similarity in the parking lot clusters, U.sub.spc is a collection of parking lots with high data similarity, U.sub.vs is a collection of parking lots with high spatial similarity,
(51)
is the proportion of sample parking lots with data similarity in the parking lot clusters, and
(52)
is the proportion of parking lot pairs with high spatial similarity and data similarity in sample parking lots with data similarity.
(53) Data patching unit 24 is used to patch data of the parking lots to be patched in the parking lot clusters according to the parking data of the sample parking lots in the parking lot clusters and the preset recurrent GANs when the data similarity probability under the similar spatial condition exceeds the probability threshold.
(54) In the embodiment of the invention, when the data similarity probability under the similar spatial condition exceeds the probability threshold, the sample parking lot with the highest spatial similarity to the parking lot to be patched in the same parking lot cluster is obtained. The data of the parking lot to be patched can be patched by inputting parking data of the sample parking lot into the recurrent GANs.
(55) Preferably, the recurrent GANs is trained after inputting the parking data of the sample parking lots with the highest spatial similarity to the parking lots to be patched into the recurrent GANs. Since the training process of the recurrent GANs is not stable, the output of the recurrent GANs is screened with the preset Bayesian filter. The screened output of the recurrent GANs is set as the parking data of the parking lots to be patched, thus to effectively improve the accuracy of data patching for parking lots.
(56) Further preferably, when the output of the recurrent GANs is screened with the preset Bayesian filter, the output of the recurrent GANs is mixed with the parking data of the parking lot cluster where the parking lots to be patched are, then the joint probability of spatial similarity and data similarity corresponding to the parking lot cluster after mixing is calculated. If the joint probability after mixing is not lower than the joint probability before mixing, the output of the recurrent GANs is set as the parking data of the parking lots to be patched. Otherwise, the parking data of the sample parking lots with the highest similarity to the parking lots to be patched into the recurrent GANs, thus to effectively improve the accuracy of data patching for parking lots.
(57) Preferably, as shown in
(58) Spatial characteristic generation unit 311 is used to generate the spatial characteristics of each parking lot according to the latitude and longitude of its geographic location and the number of each kind of preset geographic points of interest within the preset range of each parking lot.
(59) Preferably, data patching unit 24 comprises:
(60) Sample parking lot acquisition unit 341 is used to obtain the sample parking lots with the highest similarity to the parking lots to be patched in the same parking lot cluster;
(61) Network input unit 342 is used to input the parking data of the sample parking lots with the highest spatial similarity into the recurrent GANs; and
(62) Data screening unit 343 is used to screen the output of the recurrent GANs with the preset Bayesian filter to obtain the parking data of parking lots to be patched.
(63) In the embodiment of the invention, the invention comprises the following steps: calculating the spatial similarity between two parking lots according to the spatial characteristics and spatial similarity measurement model of parking lots in the collection of urban parking lots, clustering parking lots into different clusters according to the spatial similarity, calculating the corresponding spatial similarity probability of parking lot clusters, calculating the data similarity between two sample parking lots in the same parking lot cluster, calculating the data similarity probability of the parking lot clusters under the similar spatial condition according to the data similarity and the spatial similarity probability corresponding to the parking lot clusters, patching data of the parking lots to be patched in parking lot clusters through recurrent GANs when the data similarity probability under the similar spatial condition exceeds the probability threshold, thus to conduct accurate data patching on parking lots to be patched without relying on the prior knowledge of the parking lots to be patched, which effectively saves the economic and time costs of setting up data acquisition equipment in parking lots to be patched.
(64) In the embodiment of the invention, each unit of the data patching device for parking lots can be realized by corresponding hardware or software unit. Each unit may be an independent software or hardware unit, or a integrated software and hardware unit, which shall not be used to limit the invention.
Embodiment 3
(65)
(66) The computing equipment 4 in the embodiment of the invention comprises a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and capable of running on the processor 40. The processor 40 executes the computer program 42 to implement the steps in the aforesaid embodiment of the method, such as steps S101 to S104 shown in
(67) In the embodiment of the invention, the invention comprises the following steps: calculating the spatial similarity between two parking lots according to the spatial characteristics and spatial similarity measurement model of parking lots in the collection of urban parking lots, clustering parking lots into different clusters according to the spatial similarity, calculating the corresponding spatial similarity probability of parking lot clusters, calculating the data similarity between two sample parking lots in the same parking lot cluster, calculating the data similarity probability of the parking lot clusters under the similar spatial condition according to the data similarity and the spatial similarity probability corresponding to the parking lot clusters, patching data of the parking lots to be patched in parking lot clusters through recurrent GANs when the data similarity probability under the similar spatial condition exceeds the probability threshold, thus to conduct accurate data patching on parking lots to be patched without relying on the prior knowledge of the parking lots to be patched, which effectively saves the economic and time costs of setting up data acquisition equipment in parking lots to be patched.
Embodiment 4
(68) The embodiment of the invention provides a computer readable storage medium which stores a computer program, which stores a computer program, which is executed by the processor to implement steps in the aforesaid embodiment of the method, such as, steps S101 to S104 shown in
(69) In the embodiment of the invention, the invention comprises the following steps: calculating the spatial similarity between two parking lots according to the spatial characteristics and spatial similarity measurement model of parking lots in the collection of urban parking lots, clustering parking lots into different clusters according to the spatial similarity, calculating the corresponding spatial similarity probability of parking lot clusters, calculating the data similarity between two sample parking lots in the same parking lot cluster, calculating the data similarity probability of the parking lot clusters under the similar spatial condition according to the data similarity and the spatial similarity probability corresponding to the parking lot clusters, patching data of the parking lots to be patched in parking lot clusters through recurrent GANs when the data similarity probability under the similar spatial condition exceeds the probability threshold, thus to conduct accurate data patching on parking lots to be patched without relying on the prior knowledge of the parking lots to be patched, which effectively saves the economic and time costs of setting up data acquisition equipment in parking lots to be patched.
(70) The computer readable storage medium in the embodiment of the invention may include any entity or device capable of carrying computer program code, or recording medium, such as ROM/RAM, disk, optical disk and flash memory, etc.
(71) The above description is only an embodiment of the present invention; it is not intended to limit the scope of the invention. Any patching, equivalent substitution and improvement with the spirit and principle of this invention shall be included in the scope of protection of the invention.