A communication data processing method and system based on artificial intelligence and blockchain
By applying artificial fish school algorithm and consensus mechanism in the smart parking blockchain network, the problems of low parking lot management efficiency and inaccurate parking space recommendations in the existing technology are solved, and automated parking intelligent management and efficient parking are realized Recommended.
Patent Information
- Application Number
- CN202411433080.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-15
AI Technical Summary
During the existing smart parking management process, the communication data management of parking lot data centers requires too much manual intervention, and the communication method between different parking lots is single and cannot be linked in real time, resulting in low management efficiency and inaccurate parking space recommendations, which increases User parking costs.
Using communication data processing methods based on artificial intelligence and blockchain, by turning each parking lot as nodes in the smart parking blockchain network, using artificial fish plant algorithm and cost function to recommend global parking spaces, and through consensus The mechanism updates the parking space status in real time.
Implement automated intelligent parking lot management, reduce the frequency of manual intervention, improve the scientificity and accuracy of parking space recommendations, avoid the influence of human subjective factors, coordinate management of multiple parking lots, reduce user parking costs, and improve parking convenience .
Smart Images

Figure CN118982932B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication data processing technology, and in particular to a communication data processing method and system based on artificial intelligence and blockchain. Background Art
[0002] Artificial intelligence refers to the technology that enables machines to have the ability to learn, reason, perceive, and make decisions by simulating human intelligent behavior. AI systems can learn from data and use these learning experiences in future decisions. Blockchain is a distributed, decentralized data ledger technology. All participating nodes share an unalterable ledger. Each block records the details of transactions or events, and all nodes reach consensus through a consensus mechanism to ensure data security and transparency. Communication data processing refers to the collection, transmission, processing, and storage of data from different devices or systems in the system. Specifically for the smart parking system, communication data processing includes wireless data interaction and processing between vehicles and parking lots, sensors and data centers, and user terminals and system backgrounds.
[0003] Smart parking is a system that uses technologies such as the Internet of Things, sensors, and artificial intelligence to achieve real-time monitoring, reservation, guidance, and management of parking spaces. It can improve parking efficiency, reduce parking time and traffic congestion, optimize parking resource allocation, reduce energy consumption, and improve the overall urban traffic environment to meet the needs of intelligent development in modern cities.
[0004] However, in the existing smart parking management process, since the communication data management of the parking lot data center often requires too much manual intervention and the communication method between different parking lots is single, the communication process requires real-time manual intervention to manually adjust the parking status of each parking lot, and real-time linkage is impossible, which leads to low parking lot management efficiency and the parking space recommendation method is greatly affected by subjective factors. It is impossible to provide real-time and accurate parking space recommendations for vehicles to be parked, which increases user parking costs and is not conducive to the construction of smart cities. Summary of the invention
[0005] In order to solve the technical problems existing in the prior art in the process of smart parking management, that is, since the communication data management of the parking lot data center often requires too much manual intervention and the communication mode between different parking lots is single, the communication process requires real-time manual intervention to manually adjust the parking status of each parking lot, and real-time linkage is impossible, which leads to low parking lot management efficiency and the parking space recommendation method is greatly affected by subjective factors, and it is impossible to provide real-time and accurate parking space recommendations for vehicles to be parked, which increases the parking cost of users and is not conducive to the construction of smart cities, the present invention provides a communication data processing method and system based on artificial intelligence and blockchain.
[0006] The technical solution provided by the embodiment of the present invention is as follows:
[0007] First aspect
[0008] An embodiment of the present invention provides a communication data processing method based on artificial intelligence and blockchain, which is applied to a smart parking blockchain network including multiple nodes. Each node in the smart parking blockchain network corresponds to a data center of a parking lot. Each parking space in the parking lot has a sensor for detecting the occupancy status of the parking space. Each sensor is connected to its own data center. The method includes:
[0009] S1: receiving a parking communication signal of a vehicle to be parked, wherein the parking communication signal includes a vehicle position and a vehicle driving direction;
[0010] S2: establishing a cost function for quantifying the parking lot recommendation cost in combination with the parking communication signal, wherein the cost function has a parking lot balancing factor for adjusting the parking lot balancing rate;
[0011] S3: Taking the cost function value as a constraint, the global parking space recommendation model based on the artificial fish swarm algorithm is used to output the recommended parking lot for the vehicle to be parked in all parking lots;
[0012] S4: determining the parking space priority by considering the parking space occupancy status, the distance of the parking space from the parking lot entrance, and the parking space congestion, and outputting a recommended parking space based on the parking space priority;
[0013] S5: updating the smart parking blockchain network according to the consensus mechanism, and placing the parking spaces corresponding to the recommended parking spaces in the smart parking blockchain network in an occupied state until the vehicle to be parked leaves the recommended parking lot;
[0014] S6: Return to step S1.
[0015] Second aspect
[0016] An embodiment of the present invention provides a communication data processing system based on artificial intelligence and blockchain, comprising:
[0017] processor;
[0018] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the communication data processing method based on artificial intelligence and blockchain as described in the first aspect is implemented.
[0019] The third aspect
[0020] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the communication data processing method based on artificial intelligence and blockchain as described in the first aspect is implemented.
[0021] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0022] In the present invention, each parking lot is taken as a node to be chained, and a smart parking blockchain network is formed to communicate with each other, which can synchronize parking lot and parking space information safely, accurately and timely. Based on the blockchain network, after receiving the parking communication signal of the vehicle to be parked, the cost function established based on the vehicle position, the vehicle driving direction and the parking lot balance factor used to adjust the parking lot balance rate is used as the fitness function of the artificial fish swarm algorithm to perform global optimization of the parking lot, and further ensure the accuracy of the recommended parking lot while ensuring the balanced use of the parking lot and the parking space. Then, the parking space occupancy status, the distance from the parking space to the parking lot entrance and the parking space congestion are considered to determine the parking space priority, recommend the parking space, and complete the local fine-grained accurate parking space recommendation. Then, based on the consensus mechanism, the smart parking blockchain network is updated in real time to ensure the security of user data, the accuracy, real-time and effectiveness of the recommendation results, and avoid the problem of chaotic parking lot management caused by cross-recommendation. The whole process realizes automated parking lot intelligent management, greatly reduces the frequency of manual intervention, improves the scientific nature of parking space recommendation, and avoids the influence of human subjective factors on parking lot management, and then manages multiple parking lots in a linked manner, improves parking lot management efficiency and parking space recommendation accuracy, reduces user parking costs, and improves parking convenience, providing an effective solution for building a smart city. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 A flow chart of a communication data processing method based on artificial intelligence and blockchain provided in an embodiment of the present invention;
[0025] Figure 2 A schematic diagram of the structure of a smart parking blockchain network provided by an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of the structure of a communication data processing system based on artificial intelligence and blockchain provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0028] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0029] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0030] Reference Manual Attached Figure 1 , showing a flow chart of a communication data processing method based on artificial intelligence and blockchain provided by an embodiment of the present invention.
[0031] Reference Manual Attached Figure 2 , showing a structural schematic diagram of a smart parking blockchain network provided by an embodiment of the present invention.
[0032] Figure 2 In the figure, one node corresponds to one parking lot, N represents the total number of parking lots, and each parking lot has multiple parking spaces. In the figure, only one parking space is drawn in a schematic way to describe the structure diagram of the smart parking blockchain network.
[0033] An embodiment of the present invention provides a communication data processing method based on artificial intelligence and blockchain, which is applied to a smart parking blockchain network including multiple nodes. Each node in the smart parking blockchain network corresponds to a data center of a parking lot. Each parking space in the parking lot has a sensor for detecting the occupancy status of the parking space, and each sensor is connected to its own data center.
[0034] It should be noted that such a smart parking blockchain network has the advantages of decentralization and immutability, ensuring the security and transparency of parking space occupancy data. Through real-time synchronization between nodes, parking lot data can be quickly shared to prevent duplicate bookings or resource conflicts. In addition, the blockchain consensus mechanism improves the credibility of the system and makes parking space management more efficient. Combined with artificial intelligence, it can dynamically optimize parking space recommendations, reduce congestion, improve user experience and optimize resource utilization.
[0035] In a possible implementation, the sensor includes a geomagnetic sensor, an ultrasonic sensor, an infrared sensor, and a radar sensor.
[0036] In a possible implementation, each sensor is connected to its own data center, specifically:
[0037] Each sensor is connected to its data center via wireless communication.
[0038] Specifically, geomagnetic sensors, ultrasonic sensors, infrared sensors and radar sensors are used to detect the occupancy status of parking spaces, ensuring real-time perception of the location of vehicles in the parking lot. At the same time, each sensor is connected to the data center through wireless communication to achieve remote monitoring and data transmission of parking space status, ensuring efficient operation and timely response of the system.
[0039] The processing flow of the communication data processing method based on artificial intelligence and blockchain may include the following steps:
[0040] S1: Receive a parking communication signal from a vehicle to be parked.
[0041] The parking communication signal includes the vehicle position and the vehicle driving direction.
[0042] It should be noted that by receiving the parking communication signal of the vehicle to be parked, the current position and driving direction of the vehicle can be obtained in real time, thereby providing the parking system with accurate vehicle information. This helps to intelligently optimize parking space recommendations, reduce the time for vehicles to find parking spaces, improve parking efficiency and reduce traffic congestion.
[0043] S2: Establish a cost function for quantifying the cost of parking lot recommendation by combining parking communication signals.
[0044] The cost function has a parking lot balancing factor for adjusting a parking lot balancing rate.
[0045] Among them, the cost function is used to quantify the "cost" of parking a vehicle in a parking lot. By comprehensively considering factors such as the distance from the vehicle to the parking lot, the vacancy rate of parking spaces, and the deviation of the vehicle's driving direction, the parking recommendation is optimized by minimizing the cost. The parking lot balance factor is used to adjust the use balance between different parking lots. When the vacancy rate of a parking lot is low, the balance factor will increase, making the recommended cost of the parking lot larger to avoid overcrowding. When the vacancy rate is high, the balance factor is small, encouraging vehicles to choose this parking lot. By establishing a cost function with a balance factor, a dynamic and balanced allocation of parking lot resources is achieved, avoiding overcrowding in some parking lots while minimizing parking costs, thereby improving overall management efficiency, parking convenience, and user parking experience.
[0046] In a possible implementation, the cost function is specifically:
[0047]
[0048] in, represents the cost function value that reflects the cost of parking lot recommendation, Represents the arrival cost, The parking lot balance factor that reflects the parking lot vacancy rate, represents the parking lot balancing factor weight, They represent the distance cost between the vehicle location and the parking lot and the vehicle driving direction deviation cost respectively. Indicates the number of free parking spaces in the parking lot. Indicates the total number of parking spaces in the parking lot. Indicates the coordinates of the vehicle to be parked. Represents the parking lot coordinates.
[0049] Specifically, the cost function is a harmonic function, in which the parking lot balance factor is calculated using an inverse proportional function. When the parking lot idle rate is low, the balance factor is larger. When the idle rate is high, the balance factor is smaller. The more idle parking spaces in the parking lot, the lower the total cost value, prompting the system to recommend parking lots with higher idle rates. The arrival cost and the parking lot idle rate are comprehensively considered. Through the inverse proportional function, when the parking lot idle rate is low, the balance factor is larger and the cost increases, while when the idle rate is high, the cost decreases. This method can dynamically reflect the idleness of the parking lot and integrates the actual distance between the vehicle position and the parking lot and the deviation in the driving direction. The distance cost is the actual distance between the vehicle to be parked and the parking lot. Not only does it balance the distance cost of the vehicle and the use of parking lot resources, but it also prompts the system to give priority to recommending parking lots with higher idle rates through the balance factor, avoiding excessive concentration of vehicles, optimizing resource allocation, and improving the use efficiency and user experience of the parking lot.
[0050] It should be noted that the harmonic mean is more suitable for handling variables of different orders of magnitude than the simple weighted average. When one of the variables is very large, the result of the harmonic mean will not be excessively pulled down by the other variable, maintaining a balanced effect. Moreover, the harmonic mean pays more attention to smaller values. If the parking lot is easy to reach and has a high vacancy rate, the total cost will decrease rapidly, and the recommendation priority will be higher. As the vacancy rate of the parking lot changes, it will be dynamically adjusted, so that the system can give priority to recommending parking lots with high vacancy rates according to the current status of the parking lot, thereby avoiding overcrowding. By using the inverse relationship, when the parking lot vacancy rate is low, the balance factor value will become larger, thereby increasing the total cost. Conversely, when the parking lot vacancy rate is high, the cost is reduced, and the parking lot is encouraged to be recommended. Then, the importance of parking lot balance can be flexibly adjusted according to demand to avoid congestion of a parking lot due to overuse.
[0051] In a possible implementation manner, the vehicle driving direction deviation cost is specifically:
[0052]
[0053] in, k =1 indicates the scaling factor for converting angles to numerical values. represents the unit vector representing the direction of travel, Represents the current position of the vehicle Parking lot location The relative vector of the relative direction between represents the modulo operation, arccos represents the inverse cosine function, Represents the angle between the unit vector and the relative vector.
[0054] It should be noted that the angle between the unit vector and the relative vector ranges from 0 to 180 degrees. If the angle is small, it means that the vehicle's driving direction is roughly consistent with the parking lot position, and the vehicle does not need to adjust its driving direction significantly. The cost should be set low, that is, the vehicle's driving direction deviation cost is low. If the angle is large, it means that the vehicle may need to turn or turn around to reach the parking lot, which means that the detour distance may be long, so a higher cost should be set, that is, the vehicle's driving direction deviation cost is high, which changes with the change of the vector angle. Then dynamically evaluate the degree of alignment between the vehicle's driving direction and the parking lot target. The smaller the angle, the lower the cost, which means that it is easier for the vehicle to drive directly into the target parking lot, avoiding unnecessary turns or detours, thereby improving driving efficiency, reducing congestion, and optimizing the rationality of recommended parking lots.
[0055] S3: Taking the cost function value as a constraint, a global parking space recommendation model based on an artificial fish swarm algorithm is used to output a recommended parking lot for the vehicle to be parked in all parking lots.
[0056] Among them, the artificial fish swarm algorithm is an intelligent optimization algorithm based on simulating the foraging, clustering and following behaviors of fish swarms. Fish swarms complete global search and find the optimal solution through local information exchange. The algorithm finds the optimal solution and avoids the local optimal dilemma through the behavioral interaction of individual fish within a certain range. By using the cost function value as a constraint, the artificial fish swarm algorithm is used for global search to dynamically recommend the optimal parking location from multiple parking lots, simulate the clustering, following and foraging behaviors of fish swarms, avoid vehicles gathering in a certain parking lot, evenly distribute parking resources, effectively reduce congestion, shorten the time to find parking spaces, optimize the overall parking experience, and improve the utilization efficiency of parking lots. Using the artificial fish swarm algorithm for global search can dynamically optimize parking space recommendations, avoid local optimal solutions, and quickly adapt to changes in different scenarios, thereby reducing vehicle detours, shortening the time to find parking spaces, and improving traffic fluidity and parking efficiency.
[0057] In a possible implementation, S3 specifically includes:
[0058] S301: Initialize the positions of the vehicles to be parked as individual fish.
[0059] S302: Use the cost function to calculate the cost function value of each individual fish to each parking lot in the smart parking blockchain network.
[0060] S303: updating the position of the individual fish by selecting a behavior from following behavior, clustering behavior and foraging behavior according to the principle of sequential triggering through the pre-triggering condition, and determining the position of the individual fish as a primary parking lot.
[0061] Specifically, the meaning of selecting behaviors from following behavior, swarming behavior, and foraging behavior to update the position of individual fish according to the sequential triggering principle is that in each iteration, the fish will not perform all three behaviors at the same time, but will autonomously select one of the behaviors according to specific triggering conditions:
[0062] Prioritize following behavior: If a fish finds that a certain individual has found a better parking lot among its neighbors within its field of view, it will prioritize following that individual. This is because following behavior can accelerate information sharing between individuals, allowing the school of fish to converge to the optimal solution more quickly. Following behavior accelerates convergence to the optimal solution.
[0063] Secondly, the fish chooses to flock: if no better neighbor is found than the current one, but the "center position" of the neighbor group has better fitness, the fish chooses to move closer to the center of the group. This behavior helps maintain the consistency of the group while using the local information of the neighbors to improve its own state. The flocking behavior maintains the cooperation between individuals and avoids excessive dispersion.
[0064] Finally, choose foraging behavior: If there is no help from neighbors or no better solution can be found in the local range, the fish will perform foraging behavior and find a possible better solution through global search. This is a random exploration behavior, the purpose is to jump out of the current local optimal trap. Foraging behavior helps jump out of the local optimal and conduct global exploration.
[0065] In a possible implementation manner, S303 specifically includes:
[0066] S303A: Randomly select an alternative parking lot for the current individual fish from the parking lots.
[0067] S303B: Determine whether there is a new parking lot with a cost function value less than the alternative parking lot from the neighboring individual fish of the current individual fish. If so, update the position of the current individual fish to the new parking lot in the form of the current moving step length, and determine the position of the individual fish as the primary parking lot to perform the following behavior. Otherwise, proceed to step S303C:
[0068]
[0069] in, Indicates the alternative parking lot selected by the current individual fish, i.e. i Parking lot and jThe distance between parking lots, and Respectively represent i Parking lot and j The cost function value of a parking lot is Indicates the current moving step length of each movement of the individual fish. Indicates the preset number of iterations, represents the initial step length, t Indicates the current iteration number, Represents the current visual range of an individual fish, which controls the range of the neighborhood considered by the individual fish. represents the initial individual fish visual range representing the neighborhood range of the individual fish, Indicates new parking lots discovered by new individual fish, Indicates i Parking lot No. t +1 The parking lot where the current individual fish is located after the update of the iteration number, Indicates calculation of Euclidean distance.
[0070] It should be noted that those skilled in the art can set the size of the preset number of iterations according to actual needs, and the present invention does not limit this. The meaning of this step description is that if a neighbor finds a better solution, the vehicle will first choose the following behavior, because this can quickly lead the vehicle to the optimal parking lot.
[0071] S303C: Get the most selected parking lot within the visual range of the current individual fish, and determine whether the cost function value of the most selected parking lot is less than the cost function value of the alternative parking lot. If so, update the current position of the individual fish to the most selected parking lot in the current moving step, and determine the position of the individual fish as the primary parking lot to perform clustering behavior. Otherwise, enter step S303D:
[0072]
[0073] in, Represents the cost function value of the most selected parking lot.
[0074] That is, if there is no better neighbor, but the “center” location of the adjacent parking lot has a better cost, clustering behavior is performed to maintain cooperation and local optimization among vehicles.
[0075] S303D: Randomly select a random parking lot that is different from the alternative parking lot from all parking lots. When the cost function value of the random parking lot is less than the cost function value of the alternative parking lot, update the current position of the individual fish to the random parking lot in the form of the current moving step length, and determine the position of the individual fish as the primary parking lot to perform foraging behavior:
[0076]
[0077] in, Indicates random parking lot q The cost function value of .
[0078] The moving step size is in the form of a dynamic step size, that is, the step size is gradually reduced and adjusted with the number of iterations. For example, the step size can be gradually reduced with the number of iterations, and a large-scale search is performed at the beginning, and a fine search is gradually performed as time goes on. The step size controls the distance the fish moves to the target. In other words, even if the fish finds a better target, the fish will not move to that target position immediately, but will gradually approach the target according to the step size. The larger the step size, the greater the movement distance of the fish in each iteration, which is suitable for global search. The smaller the step size, the smaller the movement distance, which is suitable for local development.
[0079] Specifically, the steps describe the three behavior selection mechanisms of individual fish in the artificial fish swarm algorithm when searching for the optimal parking lot. First, individual fish randomly select targets from the candidate parking lots, and then perform "following behavior" according to the situation of neighboring individual fish to find a better parking lot. If no better solution is found, the fish adopts "clustering behavior" to move closer to the parking lot with the most selected times and the lowest cost within the field of view. If these methods still fail to find a better solution, the fish will randomly select a parking lot and perform "foraging behavior" to find the optimal solution through global exploration. Through dynamic step size adjustment, individual fish can conduct a large-scale search and gradually approach the optimal solution. This mechanism effectively avoids the local optimal trap and accelerates the convergence speed through the combination of global search and local optimization, thereby improving the efficiency and rationality of parking resource allocation.
[0080] S304: The number of iterations is increased by 1, and the process returns to step S302 until the number of iterations is greater than the preset number of iterations.
[0081] S305: Selecting a primary parking lot with a minimum cost function value from all obtained primary parking lots as a recommended parking lot output.
[0082] It should be noted that the traditional parking lot recommendation method often directly uses the cost function value for recommendation. In this case, when the cost function values of multiple parking lots are the same, if only the cost function value is used for selection, too many vehicles to be parked will gather in the parking lot, and a local optimal solution is likely to occur. In addition, parking lot recommendation is a dynamic problem. The state of the parking lot (such as the vacancy rate) may change at any time. For example, the number of vacant spaces in a parking lot suddenly decreases or traffic congestion suddenly occurs. Directly selecting the parking lot with the lowest current cost may not be able to quickly adapt to such changes. The artificial fish swarm algorithm simulates the foraging, clustering and following behavior of fish swarms, and has the ability to balance global search and local development. Even if multiple parking lots have the same cost function value, the artificial fish swarm algorithm will allow the fish swarm to find the global optimal solution by exploring a wide range of parking lot candidate sets, avoiding falling into the local optimal solution, and can adapt to different scenarios very quickly. The fish swarm behavior of the artificial fish swarm algorithm is adaptive and can dynamically adjust its position according to changes in the environment. The fish swarm can continuously adjust the position and priority of each parking lot through continuous iteration, thereby adapting to the dynamic changes in the state of the parking lot. This dynamic search feature makes the artificial fish swarm algorithm more advantageous in real-time parking lot recommendation.
[0083] Specifically, the steps describe the process of smart parking lot recommendation based on the artificial fish swarm algorithm. First, the position of the vehicle to be parked is initialized as an individual fish, and the cost of each parking lot is calculated using the cost function. Through "following behavior", "clustering behavior" and "foraging behavior", the optimal strategy is selected to update the position in each iteration to achieve a balance between global search and local optimization. This method can effectively avoid the local optimal solution where vehicles are concentrated in the same parking lot, adapt to the real-time changes in the parking lot status, and improve the flexibility of the algorithm through dynamic step size adjustment and multi-behavior selection, ensuring that the system can quickly converge to the optimal recommendation result in different scenarios, avoid congestion and balance parking resources.
[0084] S4: Determine parking space priorities by considering parking space occupancy status, distances of parking spaces from parking lot entrances, and parking space congestion, and output recommended parking spaces based on the parking space priorities.
[0085] It should be noted that by comprehensively considering the occupancy status of the parking spaces, the distance from the entrance, and the congestion of the area where the parking spaces are located, the priority of the parking spaces is dynamically determined, effectively avoiding local congestion caused by the concentration of vehicles in a few areas. At the same time, it ensures that the vehicles are parked in a dispersed manner and the parking lot resources are used rationally, thereby improving parking efficiency, enhancing the user's parking experience, and avoiding waste of resources and unbalanced use of parking lots, avoiding the problem of some areas in the parking lot being crowded and other areas being idle, and avoiding the concentration of vehicles in certain areas.
[0086] In a possible implementation, S4 specifically includes:
[0087] S401: Considering the parking space occupancy status, the distance of the parking space from the parking lot entrance and the parking space congestion, determine the multi-dimensional state vector of each parking space:
[0088]
[0089] in, Indicates i The multidimensional state vector of parking spaces, Indicates i The occupancy status of parking spaces, Indicates i The distance from the parking space to the parking lot entrance, Indicates i The congestion level of the area where the parking spaces are located, Indicates i The eight-neighborhood neighbor set of parking spaces, Indicates the number of occupied parking spaces in the eight-neighborhood centralized parking space. e Represents a natural constant.
[0090] Among them, the eight-neighborhood neighbor set includes parking spaces in three directions: horizontal, vertical, and diagonal.
[0091] S402: Calculate the parking space recommendation priority based on each element in the multi-dimensional state vector:
[0092]
[0093] in, Indicates i Parking space recommendation priority for each parking space.
[0094] in, Ensure that only vacant parking spaces are considered, and occupied parking spaces The priority of the parking space is 0, and the influence of the distance is reflected in the inverse form. The closer the distance, the larger the value and the higher the priority. The area with lower congestion has a higher priority. The inverse form is used to process the distance between the parking space and the entrance to ensure that the closer the distance, the higher the priority. and By limiting the calculation to only vacant and less crowded parking spaces, this approach can dynamically balance multiple influencing factors, accurately recommend the most suitable parking spaces, avoid excessive concentration of vehicles, and improve the overall utilization rate of the parking lot and user experience.
[0095] S403: Outputting the parking space corresponding to the highest parking space recommendation priority as the recommended parking space.
[0096] Specifically, the steps describe in detail the process of evaluating parking space priorities through multi-dimensional state vectors. First, a multi-dimensional state vector for each parking space is defined, taking into account factors such as the occupancy status of the parking space, the distance from the parking lot entrance, and the congestion of the area where the parking space is located. Then, the recommended priority of the parking space is calculated based on the elements in these state vectors, ensuring that parking spaces that are free and close to the entrance are given priority, while reducing the priority of congested areas. Finally, the parking space with the highest priority is output as the recommended parking space. By comprehensively considering multiple factors, the reasonable allocation of parking resources is ensured, vehicles are avoided from being concentrated in specific areas, parking efficiency is optimized, and user experience is improved.
[0097] S5: The smart parking blockchain network is updated according to the consensus mechanism, and the parking spaces corresponding to the recommended parking spaces in the smart parking blockchain network are placed in an occupied state until the vehicle to be parked leaves the recommended parking lot.
[0098] Among them, the consensus mechanism is the core protocol in blockchain technology, which is used to reach an agreement on data consistency in a decentralized network. The consensus mechanism ensures that all nodes in the network can reach a consensus on the authenticity of a certain state or transaction, thereby ensuring that the data on the blockchain is consistent and cannot be tampered with. Common consensus mechanisms include proof of work (PoW), proof of stake (PoS), and proof of authority (PoA). The consensus mechanism ensures that all nodes consistently update the occupancy status of parking spaces, prevents duplicate bookings or tampering with data, and ensures data security and transparency. It effectively avoids parking space conflicts and ensures that the parking lot status is updated synchronously while the vehicle is occupying the parking space, which helps to accurately manage and fairly allocate parking resources and improve parking management efficiency.
[0099] Specifically, after the vehicle is parked in the recommended parking space, the parking space's sensor (such as a geomagnetic sensor or an ultrasonic sensor) detects the occupancy status. The sensor sends the parking space status change to the data center of the parking lot through wireless communication. The data center broadcasts the updated parking space occupancy information to other nodes in the smart parking blockchain network, triggering a consensus mechanism. Each node verifies whether the parking space status update is valid. According to the selected consensus mechanism (such as PoA or PoS), ensure that all nodes reach a consensus on the occupancy status of the parking space. After consensus is reached, the parking space status is updated to "occupied" in the blockchain network and remains locked until the vehicle leaves the parking lot. When the vehicle leaves, the parking space's sensor detects the departure status, updates the parking space to "free", and synchronizes it to all nodes in the network again through the consensus mechanism. The real-time update, security and transparency of the parking space status are guaranteed through decentralization and consensus mechanisms.
[0100] S6: Return to step S1.
[0101] In the actual application process, the intelligent parking system of the present invention first senses the position of the vehicle in real time by receiving the vehicle's position signal and driving direction information. Then, by combining these signals, a cost function containing parking lot balance factors is constructed to quantify the cost of recommending each parking lot. The system uses an artificial fish swarm algorithm to globally search for the best parking lot and dynamically recommend the preferred parking space. This recommendation process takes into account factors such as the parking space occupancy status, the distance from the parking lot entrance, and the regional congestion. When the parking space is occupied by a vehicle, the system updates the status of the parking space to "occupied" through the blockchain consensus mechanism, and synchronously updates it to "free" when the vehicle leaves, thereby ensuring the real-time and security of the data. The entire process is continuously circulated, dynamically managing the parking lot to ensure the efficient allocation and utilization of parking spaces. Combining the optimization algorithm of artificial intelligence and blockchain technology, it can achieve intelligent and efficient parking space recommendations while ensuring the transparency and immutability of data. Dynamically adjust and evenly allocate parking resources to avoid congestion, improve parking lot utilization, reduce the time it takes for vehicles to find parking spaces, and improve user experience.
[0102] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0103] In the present invention, each parking lot is taken as a node to be chained, and a smart parking blockchain network is formed to communicate with each other, which can synchronize parking lot and parking space information safely, accurately and timely. Based on the blockchain network, after receiving the parking communication signal of the vehicle to be parked, the cost function established based on the vehicle position, the vehicle driving direction and the parking lot balance factor used to adjust the parking lot balance rate is used as the fitness function of the artificial fish swarm algorithm to perform global optimization of the parking lot, and further ensure the accuracy of the recommended parking lot while ensuring the balanced use of the parking lot and the parking space. Then, the parking space occupancy status, the distance from the parking space to the parking lot entrance and the parking space congestion are considered to determine the parking space priority, recommend the parking space, and complete the local fine-grained accurate parking space recommendation. Then, based on the consensus mechanism, the smart parking blockchain network is updated in real time to ensure the security of user data, the accuracy, real-time and effectiveness of the recommendation results, and avoid the problem of chaotic parking lot management caused by cross-recommendation. The whole process realizes automated parking lot intelligent management, greatly reduces the frequency of manual intervention, improves the scientific nature of parking space recommendation, and avoids the influence of human subjective factors on parking lot management, and then manages multiple parking lots in a linked manner, improves parking lot management efficiency and parking space recommendation accuracy, reduces user parking costs, and improves parking convenience, providing an effective solution for building a smart city.
[0104] Reference Manual Attached Figure 3 , showing a structural schematic diagram of a communication data processing system based on artificial intelligence and blockchain provided by the present invention.
[0105] The present invention also provides a communication data processing system 20 based on artificial intelligence and blockchain, which is applied to the above-mentioned communication data processing method based on artificial intelligence and blockchain, including:
[0106] Processor 201.
[0107] The memory 202 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 201, the communication data processing method based on artificial intelligence and blockchain as in the method embodiment is implemented.
[0108] The communication data processing system 20 based on artificial intelligence and blockchain provided by the present invention can execute the above-mentioned communication data processing method based on artificial intelligence and blockchain, and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0109] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0110] In the present invention, each parking lot is taken as a node to be chained, and a smart parking blockchain network is formed to communicate with each other, which can synchronize parking lot and parking space information safely, accurately and timely. Based on the blockchain network, after receiving the parking communication signal of the vehicle to be parked, the cost function established based on the vehicle position, the vehicle driving direction and the parking lot balance factor used to adjust the parking lot balance rate is used as the fitness function of the artificial fish swarm algorithm to perform global optimization of the parking lot, and further ensure the accuracy of the recommended parking lot while ensuring the balanced use of the parking lot and the parking space. Then, the parking space occupancy status, the distance from the parking space to the parking lot entrance and the parking space congestion are considered to determine the parking space priority, recommend the parking space, and complete the local fine-grained accurate parking space recommendation. Then, based on the consensus mechanism, the smart parking blockchain network is updated in real time to ensure the security of user data, the accuracy, real-time and effectiveness of the recommendation results, and avoid the problem of chaotic parking lot management caused by cross-recommendation. The whole process realizes automated parking lot intelligent management, greatly reduces the frequency of manual intervention, improves the scientific nature of parking space recommendation, and avoids the influence of human subjective factors on parking lot management, and then manages multiple parking lots in a linked manner, improves parking lot management efficiency and parking space recommendation accuracy, reduces user parking costs, and improves parking convenience, providing an effective solution for building a smart city.
[0111] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0112] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0113] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When a computer instruction or computer program is loaded or executed on a computer, a process or function according to an embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0114] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0115] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0116] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0117] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0118] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0119] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0120] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0121] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0122] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0123] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, a communication data processing method based on artificial intelligence and blockchain is implemented as in the method embodiment.
[0124] A computer-readable storage medium provided by the present invention can implement the steps and effects of the communication data processing method based on artificial intelligence and blockchain in the above-mentioned method embodiment. To avoid repetition, the present invention will not go into details.
[0125] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0126] In the present invention, each parking lot is taken as a node to be chained, and a smart parking blockchain network is formed to communicate with each other, which can synchronize parking lot and parking space information safely, accurately and timely. Based on the blockchain network, after receiving the parking communication signal of the vehicle to be parked, the cost function established based on the vehicle position, the vehicle driving direction and the parking lot balance factor used to adjust the parking lot balance rate is used as the fitness function of the artificial fish swarm algorithm to perform global optimization of the parking lot, and further ensure the accuracy of the recommended parking lot while ensuring the balanced use of the parking lot and the parking space. Then, the parking space occupancy status, the distance from the parking space to the parking lot entrance and the parking space congestion are considered to determine the parking space priority, recommend the parking space, and complete the local fine-grained accurate parking space recommendation. Then, based on the consensus mechanism, the smart parking blockchain network is updated in real time to ensure the security of user data, the accuracy, real-time and effectiveness of the recommendation results, and avoid the problem of chaotic parking lot management caused by cross-recommendation. The whole process realizes automated parking lot intelligent management, greatly reduces the frequency of manual intervention, improves the scientific nature of parking space recommendation, and avoids the influence of human subjective factors on parking lot management, and then manages multiple parking lots in a linked manner, improves parking lot management efficiency and parking space recommendation accuracy, reduces user parking costs, and improves parking convenience, providing an effective solution for building a smart city.
[0127] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0128] There are a few points to note:
[0129] (1) The drawings of the embodiments of the present invention only involve structures related to the embodiments of the present invention. Other structures may refer to conventional designs.
[0130] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0131] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0132] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A communication data processing method based on artificial intelligence and blockchain, characterized in that: Applied to a smart parking blockchain network including multiple nodes, each node in the smart parking blockchain network corresponds to a data center of a parking lot, each parking space in the parking lot has a sensor for detecting the occupancy status of the parking space, and each sensor is connected to its own data center; the method comprises: S1: receiving a parking communication signal of a vehicle to be parked, wherein the parking communication signal includes a vehicle position and a vehicle driving direction; S2: establishing a cost function for quantifying the parking lot recommendation cost in combination with the parking communication signal, wherein the cost function has a parking lot balancing factor for adjusting a parking lot balancing rate; S3: using the cost function value as a constraint, outputting a recommended parking lot for the vehicle to be parked in all parking lots using a global parking space recommendation model based on an artificial fish swarm algorithm; S4: determining a parking space priority by considering the parking space occupancy status, the distance of the parking space from the parking lot entrance, and the parking space congestion, and outputting a recommended parking space based on the parking space priority; S5: updating the smart parking blockchain network according to the consensus mechanism, and placing the parking space corresponding to the recommended parking space in the smart parking blockchain network in an occupied state until the vehicle to be parked leaves the recommended parking lot; S6: Return to step S1.
2. The communication data processing method based on artificial intelligence and blockchain according to claim 1 is characterized in that: The sensors include geomagnetic sensors, ultrasonic sensors, infrared sensors and radar sensors.
3. The communication data processing method based on artificial intelligence and blockchain according to claim 1 is characterized in that: Each sensor is connected to its own data center, specifically: Each sensor is connected to its data center via wireless communication.
4. The communication data processing method based on artificial intelligence and blockchain according to claim 1 is characterized in that: The cost function is specifically: in, represents the cost function value that reflects the cost of parking lot recommendation, Represents the arrival cost, The parking lot balance factor that reflects the parking lot vacancy rate, represents the parking lot balancing factor weight, They represent the distance cost between the vehicle location and the parking lot and the vehicle driving direction deviation cost respectively. Indicates the number of free parking spaces in the parking lot. Indicates the total number of parking spaces in the parking lot. Indicates the coordinates of the vehicle to be parked. Represents the parking lot coordinates.
5. The communication data processing method based on artificial intelligence and blockchain according to claim 4 is characterized in that: The vehicle driving direction deviation cost is specifically: in, k =1 indicates the scaling factor for converting angles to numerical values. represents the unit vector representing the direction of travel, Represents the current position of the vehicle Parking lot location The relative vector of the relative direction between represents the modulo operation, arccos represents the inverse cosine function, Represents the angle between the unit vector and the relative vector.
6. The communication data processing method based on artificial intelligence and blockchain according to claim 1 is characterized in that: The S3 specifically includes: S301: Initializing the positions of the vehicles to be parked as individual fish; S302: Calculate the cost function value of each individual fish to each parking lot in the smart parking blockchain network using the cost function; S303: updating the position of the individual fish by selecting a behavior from following behavior, swarming behavior and foraging behavior according to a sequential triggering principle through a pre-triggering condition, and determining the position of the individual fish as a primary parking lot; S304: the number of iterations is increased by 1, and the process returns to step S302 until the number of iterations is greater than the preset number of iterations; S305: Selecting a primary parking lot with a minimum cost function value from all obtained primary parking lots as the recommended parking lot output.
7. The communication data processing method based on artificial intelligence and blockchain according to claim 6 is characterized in that: The S303 specifically includes: S303A: randomly selecting an alternative parking lot for a current individual fish from the parking lots; S303B: Determine from the neighboring individual fish of the current individual fish whether there is a new parking lot with a cost function value less than the alternative parking lot. If so, update the position of the current individual fish to the new parking lot in the form of the current moving step length, and determine the position of the individual fish as the primary parking lot to perform the following behavior. Otherwise, proceed to step S303C: in, Indicates the alternative parking lot selected by the current individual fish, i.e. i Parking lot and j The distance between parking lots, and Respectively represent i Parking lot and j The cost function value of a parking lot is Indicates the current moving step length of each movement of the individual fish. Indicates the preset number of iterations, represents the initial step length, t Indicates the current iteration number, Represents the current visual range of an individual fish, which controls the range of the neighborhood considered by the individual fish. represents the initial individual fish visual range representing the neighborhood range of the individual fish, Indicates new parking lots discovered by new individual fish, Indicates i Parking lot No. t +1 The parking lot where the current individual fish is located after the update of the iteration number, Indicates calculation of Euclidean distance; S303C: Obtain the most selected parking lot within the visual range of the current individual fish, and determine whether the cost function value of the most selected parking lot is less than the cost function value of the alternative parking lot. If so, update the current position of the individual fish to the most selected parking lot in the form of the current moving step length, and determine the position of the individual fish as the primary parking lot to perform the clustering behavior. Otherwise, enter step S303D: in, represents the cost function value of the most selected parking lot; S303D: Randomly select a random parking lot different from the candidate parking lot from all parking lots, and when the cost function value of the random parking lot is less than the cost function value of the candidate parking lot, update the current position of the individual fish to the random parking lot in the form of the current moving step length, and determine the position of the individual fish as the primary parking lot to perform the foraging behavior: in, Indicates random parking lot q The cost function value of .
8. The communication data processing method based on artificial intelligence and blockchain according to claim 1 is characterized in that: The S4 specifically includes: S401: Considering the parking space occupancy status, the distance of the parking space from the parking lot entrance and the congestion of the parking space, determine the multi-dimensional state vector of each parking space: in, Indicates i The multidimensional state vector of parking spaces, Indicates i The occupancy status of parking spaces, Indicates i The distance from the parking space to the parking lot entrance, Indicates i The congestion level of the area where the parking spaces are located, Indicates i The eight-neighborhood neighbor set of parking spaces, Indicates the number of occupied parking spaces in the eight-neighborhood centralized parking space. e represents a natural constant; S402: Calculate the parking space recommendation priority based on each element in the multi-dimensional state vector: in, Indicates i Parking space recommendation priority for parking spaces; S403: Outputting the parking space corresponding to the highest parking space recommendation priority as the recommended parking space.
9. A communication data processing system based on artificial intelligence and blockchain, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the communication data processing method based on artificial intelligence and blockchain as described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the communication data processing method based on artificial intelligence and blockchain as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Smart parking system and method based on block chains
CN108154704A
Intelligent parking recommendation method and system, electronic equipment and storage medium
CN117058916A