Intelligent parking order tracing and auditing method and system

By combining blockchain technology and the space-time Transformer model, the problem of insufficient data security and traceability in urban parking management systems is solved, and the transparency and trust of parking orders are achieved, the risk of data loss and tampering is reduced, and the risk of data loss and tampering is improved. Data processing efficiency.

CN119250947AInactive Publication Date: 2025-01-03QINGDAO SONLI SOFTWARE INFORMATION TECH

Patent Information

Application Number
CN202411782762.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

There are problems of insufficient data security and traceability in urban parking management systems. The existing methods rely on centralized database management, with single point of failure and data tampering risks, and blockchain technology has shortcomings in data analysis and efficient storage.

Method used

Combining blockchain technology and the space-time Transformer model, the transparency and credibility of parking orders are achieved through data access, blockchain storage, smart contract automatic audit and audit log encryption traceability, and the space-time Transformer model is used to analyze order data and identify orders. Exceptional behavior and optimize blockchain storage resources through hybrid storage and sharding technologies.

Benefits of technology

It improves the transparency and trust of parking order management, ensures data immutability and durability, reduces the risk of data loss and tampering, and improves data processing efficiency and system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119250947A_ABST
    Figure CN119250947A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of parking management, in particular to an intelligent parking order tracing and auditing method and system, and the method comprises the steps: receiving order data from a plurality of parking platforms, carrying out the preprocessing of the order data, and inputting the preprocessed order data into a block chain platform for storage and management; performing automatic processing and auditing on the order data by using an intelligent contract, and forming an auditing log; a time-space Transform model is established, intelligent analysis is carried out on data in an audit log, finally encryption tracing processing is carried out on the audit log, a user carries out order query, data audit and report generation through a user interaction module, data loss, tampering and malicious destruction are effectively prevented, order processing efficiency and accuracy are improved, and user experience is improved. Manual intervention and errors are reduced, an administrator can conveniently check and verify the access history and operation record of order data at any time, and the safety and traceability of the data are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of parking management, and in particular to an intelligent parking order tracing and auditing method and system. Background Art

[0002] The urban parking management system faces the challenge of insufficient data security and traceability. Currently, after a parking order is generated, it needs to go through multiple processing links and involves multiple parking platform access, such as the self-owned smart parking platform, the parking lot master platform and the city comprehensive platform. There is a risk of data loss, tampering or malicious destruction during the data exchange and processing between these platforms, resulting in low transparency and credibility of order management.

[0003] In response to the above problems, existing solutions usually involve multiple platforms and rely on centralized database management. The centralized controller is responsible for data storage and management. This approach has the problem of single point failure and data security is difficult to guarantee. There may also be risks of data loss and tampering during the data exchange and processing between platforms. In addition, the audit and traceability functions in existing methods usually rely on log records or database backups, which are cumbersome to operate and susceptible to human tampering.

[0004] With the development and popularization of blockchain technology, its decentralized and tamper-proof characteristics provide a new solution to the security and trust issues in parking order management. Blockchain technology creates a unified and tamper-proof ledger between all participating platforms in a decentralized manner, avoiding errors and security risks that may occur in data exchange and storage under traditional methods. At the same time, blockchain can not only ensure the transparency and traceability of parking orders from generation to payment completion, but also automatically execute transaction settlement, parking space occupancy records, etc. through smart contracts, ensuring the integrity and security of parking data. Emphasizing the traceability of data flow in the system and the intelligent management of the transaction process can effectively improve trust. The blockchain-based intelligent parking order traceability and audit system came into being. By introducing blockchain technology and smart contracts, it provides a new solution for urban parking management, which can effectively improve data security and credibility and realize the full life cycle management and monitoring of order data. However, although blockchain technology can solve the data security problem in parking order management through decentralization and tamper-proof characteristics, the existing methods still have shortcomings in data analysis, intelligent auditing and efficient storage. On the one hand, the temporal and spatial characteristics of parking orders are complex, and existing blockchain technology lacks in-depth mining of the temporal and spatial correlations between data. On the other hand, as the amount of data grows, the storage cost and computing resource requirements of blockchain increase significantly, and it is urgent to combine intelligent analysis technology for optimization. Summary of the invention

[0005] The present invention provides an intelligent parking order tracing and auditing method and system, aiming to solve the problem of insufficient data security and traceability in traditional parking order management systems, so that all participants can transparently access and verify order data, thereby improving the transparency and trust of parking order management, and making it widely applicable to various parking management scenarios, including government management departments, parking lot operators, etc., by combining the spatiotemporal Transformer model with blockchain technology, and by modeling and optimizing the spatiotemporal data of parking orders, the intelligence level and data processing efficiency can be further improved, providing a more complete solution for urban parking management.

[0006] In order to achieve the above object, the present invention adopts the following technical solution: In a first aspect, the present invention provides a smart parking order tracing and auditing method, comprising the following steps: S1. Data access: Order data is received from multiple parking platforms and preprocessed to obtain preprocessed order data. In the data access stage, the spatiotemporal data of parking orders are preprocessed, including extracting the timestamp, location coordinates and related attributes of the order, and constructing a spatiotemporal feature matrix as the input for subsequent spatiotemporal Transformer model analysis. S2, blockchain storage: The pre-processed order data is input into the blockchain platform and stored and managed in the form of blockchain. Each order data generates a block, and the blockchain nodes are distributed in multiple physical locations to form a distributed ledger. S3. Smart contract automatic audit: Use smart contracts to automatically process and audit order data and form audit logs; S4. Establishing spatiotemporal transformer: Establishing a spatiotemporal transformer model to intelligently analyze the data in the audit log, identify abnormal order processing behaviors, and detect possible tampering and duplicate submission issues by analyzing the spatiotemporal trajectory and contextual information of the order; S5. Audit log encryption and tracing: Encrypt and trace the audit logs, and save them, providing real-time monitoring and backtracking of order data, recording key information such as data accessors, access time, devices used, and IP addresses, forming a complete data flow path and chain of evidence, making it easier for administrators to view and verify the access history and operation records of order data; S6. User interaction: Users can query orders, audit data and generate reports through the user interaction module.

[0007] As a further technical solution of the present invention, the parking platform described in step S1 includes the self-owned smart parking platform, the parking lot main platform and the market comprehensive platform; the preprocessing of the order data includes data deduplication, missing value filling and data format conversion.

[0008] As a further technical solution of the present invention, the specific process of step S2 is: S21. Create a blockchain based on the Ethereum blockchain platform, use its smart contract function and public ledger characteristics to manage order data, and store the order data obtained by data access into the blockchain. The storage content includes the timestamp of the creation time and update time of each order data; the payment status, payment time, and payment amount of the order; the order user ID and contact information; S22. Write a smart contract according to the format of the stored order data, and define the storage and management logic of the order data through the smart contract; S23, dynamically compress and optimize the storage data through the machine learning algorithm XGboost to reduce the consumption of storage resources. At the same time, the high-priority order list generated by the spatiotemporal Transformer model is combined to focus on storing key order data; S24. Deploy the written smart contract to the Ethereum blockchain platform. During the deployment process, upload the smart contract code to the blockchain network and initialize and configure the contract.

[0009] As a further technical solution of the present invention, the blockchain described in step S21 adopts a hybrid storage solution when storing order data, that is, combining on-chain storage and off-chain storage to balance the decentralized advantages of blockchain and the efficiency of storage resource utilization, wherein on-chain storage means that the key information of the order is directly stored on the blockchain, and the key information includes order ID, creation time, update time, payment status, payment amount and user ID. Through smart contracts, the key information of the order is generated and stored on the blockchain; off-chain storage means that the order information with a large amount of data and low real-time requirements is stored in the distributed storage system off the chain, wherein the order information with a large amount of data and low real-time requirements includes order history, owner contact information, and parking time. The distributed storage system includes IPFS and traditional databases, and the data stored off the chain is associated with the data stored on the chain through hash values; If the order data is large-scale order data, sharding technology and side chain technology are adopted and combined with on-chain and off-chain storage. Sharding technology divides the blockchain network into multiple shards, and each shard independently processes specific order data; side chain technology uses side chains to handle specific data storage needs including parking history records and owner credit data. These data are managed independently in the side chain, and the main chain only needs to process the core order transaction data.

[0010] As a further technical solution of the present invention, the smart contract in step S3 automatically triggers the order processing flow according to preset conditions and rules. The specific process is as follows: S31, encapsulating the preprocessed order data into transactions and sending them to the blockchain network, where each transaction contains the order data to be stored and instructions for executing the smart contract; S32. The nodes in the blockchain network receive the transaction request and perform verification, which includes checking the validity of the transaction, the correctness of the signature, and the integrity of the order data. After the verification is passed, the node executes the logic defined in the smart contract, including data storage and status update; S33. Based on the verified request, the smart contract processing logic is automatically executed on the blockchain, including updating the order status, verifying the payment information and calculating the parking fee. After the execution is completed, the order data and the execution results are recorded and stored in the distributed ledger of the blockchain to ensure the immutability and persistence of the data. S34. Smart contracts automatically audit and record detailed information of each order processing step to form an audit log, including operation time, operator, and operation content; the audit log is stored in the blockchain to form a complete operation record and chain of evidence to ensure the transparency and traceability of the data processing process.

[0011] As a further technical solution of the present invention, when calculating the parking fee in step S33, a dynamic pricing algorithm based on parking space factors is adopted. The algorithm dynamically adjusts the parking fee according to the real-time parking demand, parking space availability, and time period changes. The formula of the dynamic pricing algorithm is as follows: ,in, It's time Dynamic parking fees at every moment; It is the basic parking fee; is the demand factor, at time The demand fluctuation based on historical data or real-time data is defined as a value between 0 and 1. The larger the value, the higher the demand and the higher the price. is the free parking factor, defined as the proportion of free parking spaces in a parking lot, It is a time period factor, which is adjusted based on the time period of the day. The time period factor is a constant based on a specific time period, or is predicted based on the time period through a machine learning model; They are the adjustment coefficients for demand, available parking spaces and time periods, which are set based on historical data and experience.

[0012] As a further technical solution of the present invention, the specific process of step S5 is: S51. Divide the audit log into multiple audit packages according to time periods and order quantities. Each audit package generates a traceability subchain. The traceability subchain contains multiple "blocks". Each block records an audit log. Each block header contains the hash value, timestamp and other metadata of the previous block. Each block body contains specific audit log data. S52. Encrypt each audit package and its corresponding traceability subchain to ensure data privacy and security. Specifically, generate a hash value for each traceability subchain block, and connect all blocks through a hash algorithm to form a complete traceability subchain. Provide a timestamp through the hash algorithm to ensure the data is tamper-proof and ensure the integrity and traceability of the data. S53. Package each audit package, and save the packaged audit package and its corresponding traceability subchain into the blockchain.

[0013] As a further technical solution of the present invention, the user interaction module described in step S5 uses React to build a user interface, and the user interface includes a navigation bar, a data display area and operation buttons; and uses D3.js for data visualization display, and the types of data visualization include line charts, bar charts, and pie charts. At the same time, JWT technology is used for user login identity authentication and authorization, and verification is performed through SMS, email or a one-time password generated by an authentication application to ensure system security; the Elasticsearch engine is used to design a parking order query function, and users query parking orders based on multiple conditions including parking order numbers and parking date and timestamps. At the same time, WebSocket is used to achieve real-time data updates to ensure that users can see the latest order status and data changes; the detailed process of order auditing is displayed through the timeline component, including audit time, auditor, and audit content, so that users can understand the processing process of parking orders.

[0014] In a second aspect, the present invention provides an intelligent parking order tracing and auditing system, comprising: Data access module: used to receive order data from multiple parking platforms and pre-process the order data to obtain pre-processed order data; Blockchain storage module: used to input pre-processed order data into the blockchain platform for storage and management in the form of blockchain; each order data generates a block, and blockchain nodes are distributed in multiple physical locations to form a distributed ledger; Smart contract automatic audit module: Automatically process and audit order data through the use of smart contracts, and form audit logs; Spatiotemporal Transformer building module: used to build a spatiotemporal Transformer model, perform intelligent analysis on the data in the audit log, identify abnormal order processing behaviors, and detect possible tampering and duplicate submission issues by analyzing the spatiotemporal trajectory and contextual information of the order; Audit log encryption and tracing module: used to encrypt and trace audit logs and save them, provide real-time monitoring and backtracking of order data, record key information such as data accessors, access time, devices used, IP addresses, etc., form a complete data flow path and chain of evidence, and facilitate administrators to view and verify the access history and operation records of order data; User interaction module: Users can query orders, audit data and generate reports through the user interaction module.

[0015] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method described in the first aspect is performed.

[0016] In a fourth aspect, the present invention provides a computer-readable storage medium for storing computer instructions, wherein when the computer instructions are executed by a processor, the method described in the first aspect is performed.

[0017] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention ensures the immutability and persistent storage of parking order data by introducing blockchain technology. All data changes will be recorded on the blockchain and protected by cryptographic algorithms, effectively preventing data loss, tampering and malicious destruction; (2) The present invention realizes the automated processing and auditing functions of order data through smart contracts. Smart contracts can automatically trigger the order processing process according to preset conditions and rules, including data verification, payment confirmation, etc., which significantly improves the efficiency and accuracy of order processing and reduces manual intervention and errors; (3) The present invention designs an audit log encryption tracing module, which provides the function of real-time monitoring and backtracking of order data, records key information such as data accessors, access time, devices used, IP addresses, etc., forms a complete data flow path and chain of evidence, and facilitates administrators to view and verify the access history and operation records of order data at any time, ensuring the security and traceability of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present disclosure and do not constitute improper limitations on the present invention.

[0019] Figure 1 A flowchart of an intelligent parking order tracing and auditing method provided by the present invention.

[0020] Figure 2 This is a structural block diagram of an intelligent parking order tracing and auditing system provided by the present invention. DETAILED DESCRIPTION

[0021] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0022] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0023] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0025] Embodiment 1: like Figure 1 As shown, a smart parking order tracing and auditing method is provided, including the following steps: S1. Data access: Order data is received from multiple parking platforms, and the order data is preprocessed to obtain preprocessed order data; the parking platforms include the self-owned smart parking platform, the parking lot main platform and the city comprehensive platform; the preprocessing of the order data includes data deduplication, missing value filling and data format conversion; in the data access stage, the spatiotemporal data of the parking orders are preprocessed, including extracting the timestamp, location coordinates and related attributes of the orders, and constructing a spatiotemporal feature matrix as input for subsequent spatiotemporal Transformer model analysis.

[0026] S2, blockchain storage: The pre-processed order data is input into the blockchain platform and stored and managed in the form of blockchain. Each order data generates a block, and the blockchain nodes are distributed in multiple physical locations to form a distributed ledger. The specific process is as follows: S21. Create a blockchain based on the Ethereum blockchain platform, use its smart contract function and public ledger characteristics to manage order data, and save the order data obtained by data access to the blockchain. The storage content includes the timestamp of the creation time and update time of each order data; the payment status, payment time, and payment amount of the order; the order user ID and contact information; the blockchain adopts a hybrid storage solution when storing order data, that is, combining on-chain storage and off-chain storage to balance the decentralized advantages of the blockchain and the efficiency of storage resource utilization, where on-chain storage means that the key information of the order is directly stored on the blockchain, and the key information includes order ID, creation time, update time, payment status, Payment amount and user ID. Through smart contracts, key information of the order is generated and stored on the blockchain, while ensuring that the data cannot be tampered with and is transparent. Off-chain storage refers to storing order information with large data volume and low real-time requirements in the distributed storage system off the chain. Order information with large data volume and low real-time requirements includes order history, owner contact information, and parking time. The distributed storage system includes IPFS and traditional databases. At the same time, to ensure data consistency and security, the data stored off the chain is associated with the data stored on the chain through hash values. The hash value of the data is stored on the chain to ensure that the data will not be tampered with. At the same time, off-chain storage is used to efficiently manage a large amount of non-core data. If the order data is large-scale order data, sharding technology and side chain technology are used, and combined with on-chain and off-chain storage to reduce storage pressure and optimize the use of computing resources, further reducing the cost of maintaining the blockchain network. Sharding technology divides the blockchain network into multiple shards, each shard independently processes specific order data, improving the processing capacity of the system. Sharding technology reduces the amount of transactions that a single node needs to process, thereby avoiding congestion and performance bottlenecks in the blockchain network; side chain technology uses side chains to handle specific data storage requirements including parking history records and car owner credit data. These data can be managed independently in the side chain, and the main chain only needs to process the core order transaction data. The computing pressure of the main chain is alleviated through the side chain, improving the efficiency of the overall system. S22. Write a smart contract according to the format of the stored order data, and define the storage and management logic of the order data through the smart contract; S23. Dynamically compress and optimize the storage data through the machine learning algorithm XGboost to reduce the consumption of storage resources. At the same time, combined with the high-priority order list generated by the spatiotemporal Transformer model, focus on storing key order data to ensure the efficiency and pertinence of blockchain storage; S24. Deploy the written smart contract to the Ethereum blockchain platform. During the deployment process, upload the smart contract code to the blockchain network and initialize and configure the contract.

[0027] S3. Automatic audit of smart contracts: Use smart contracts to automatically process and audit order data and form audit logs; in step S3, the smart contract automatically triggers the order processing process according to preset conditions and rules. The specific process is as follows: S31, encapsulating the preprocessed order data into transactions and sending them to the blockchain network, where each transaction contains the order data to be stored and instructions for executing the smart contract; S32. The nodes in the blockchain network receive the transaction request and perform verification, which includes checking the validity of the transaction, the correctness of the signature, and the integrity of the order data. After the verification is passed, the node executes the logic defined in the smart contract, including data storage and status update; S33. Based on the verified request, the smart contract processing logic is automatically executed on the blockchain, including updating the order status, verifying the payment information and calculating the parking fee. After the execution is completed, the order data and the execution results are recorded and stored in the distributed ledger of the blockchain to ensure the immutability and persistence of the data. When calculating the parking fee, a dynamic pricing algorithm based on parking space factors is adopted. The algorithm dynamically adjusts the parking fee according to the real-time parking demand, parking space availability, and time period changes. The formula of the dynamic pricing algorithm is as follows: ,in, It's time Dynamic parking fees at every moment; It is the basic parking fee; is the demand factor, at time The demand fluctuation based on historical data or real-time data is defined as a value between 0 and 1. The larger the value, the higher the demand and the higher the price. is the idle parking space factor, which is defined as the proportion of idle parking spaces in the parking lot. For example, if there are 100 parking spaces in the parking lot and 20 spaces are currently idle, then ,When the parking space vacancy ratio is higher, the price discount is greater; It is a time factor, which is adjusted based on the time period of the day. For example, the price is higher during the day (9:00-18:00) and lower at night (18:00-9:00). The time factor is a constant based on a specific time period, or is predicted based on the time period through a machine learning model; They are the adjustment coefficients for demand, free parking spaces, and time periods, which are set based on historical data and experience; S34. Smart contracts automatically audit and record detailed information of each order processing step to form an audit log, including operation time, operator, and operation content; the audit log is stored in the blockchain to form a complete operation record and chain of evidence to ensure the transparency and traceability of the data processing process.

[0028] S4. Establishment of spatiotemporal Transformer: Establish a spatiotemporal Transformer model to intelligently analyze the data in the audit log, identify abnormal order processing behaviors, and detect possible tampering and duplicate submission issues by analyzing the spatiotemporal trajectory and contextual information of the order; S5. Audit log encryption and tracing: Encrypt and trace the audit logs, and save them, provide real-time monitoring and backtracking of order data, record key information such as data accessors, access time, devices used, and IP addresses, form a complete data flow path and chain of evidence, and facilitate administrators to view and verify the access history and operation records of order data; the specific process is as follows: S51. Divide the audit log into multiple audit packages according to time periods and order quantities. Each audit package generates a traceability subchain. The traceability subchain contains multiple "blocks". Each block records an audit log. Each block header contains the hash value, timestamp and other metadata of the previous block. Each block body contains specific audit log data. S52. Encrypt each audit package and its corresponding traceability subchain to ensure data privacy and security. Specifically, generate a hash value for each traceability subchain block, and connect all blocks through a hash algorithm to form a complete traceability subchain. Provide a timestamp through the hash algorithm to ensure the data is tamper-proof and ensure the integrity and traceability of the data. S53. Package each audit package, and save the packaged audit package and its corresponding traceability subchain into the blockchain.

[0029] S6. User interaction: Users query orders, audit data and generate reports through the user interaction module; the user interaction module uses React to build a user interface, which includes a navigation bar, a data display area and operation buttons; and uses D3.js for data visualization, and the types of data visualization include line charts, bar charts and pie charts. At the same time, JWT technology is used for user login authentication and authorization, and verification is performed through SMS, email or a one-time password generated by an authentication application to ensure system security; the parking order query function is designed using the Elasticsearch engine, and users can query parking orders based on multiple conditions including parking order numbers and parking date timestamps. At the same time, WebSocket is used to achieve real-time data updates to ensure that users can see the latest order status and data changes; the detailed process of order auditing is displayed through the timeline component, including audit time, auditor, and audit content, so that users can understand the processing of parking orders.

[0030] Embodiment 2: like Figure 2As shown, this embodiment provides a smart parking order tracing and auditing system, including: Data access module: used to receive order data from multiple parking platforms and pre-process the order data to obtain pre-processed order data; Blockchain storage module: used to input pre-processed order data into the blockchain platform for storage and management in the form of blockchain; each order data generates a block, and blockchain nodes are distributed in multiple physical locations to form a distributed ledger; Smart contract automatic audit module: Automatically process and audit order data through the use of smart contracts, and form audit logs; Spatiotemporal Transformer building module: used to build a spatiotemporal Transformer model, perform intelligent analysis on the data in the audit log, identify abnormal order processing behaviors, and detect possible tampering and duplicate submission issues by analyzing the spatiotemporal trajectory and contextual information of the order; Audit log encryption and tracing module: used to encrypt and trace audit logs and save them, provide real-time monitoring and backtracking of order data, record key information such as data accessors, access time, devices used, IP addresses, etc., form a complete data flow path and chain of evidence, and facilitate administrators to view and verify the access history and operation records of order data; User interaction module: Users can query orders, audit data and generate reports through the user interaction module.

[0031] In further embodiments, there is also provided: An electronic device includes a memory and a processor, and is equipped with computer instructions running on the processor. When these instructions are executed by the processor, the method steps described in the embodiment can be accurately implemented. For the sake of simplicity, the detailed method content will not be repeated here.

[0032] It should be clear that the processor in this embodiment is not limited to the central processing unit CPU, it can also be a general-purpose processor core, a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device PLD, a discrete gate circuit or transistor logic component, a discrete hardware module, etc. In addition, the general-purpose processor can be a microprocessor MPU, or any conventional computing core.

[0033] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0034] A computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, the method described in the embodiment is completed.

[0035] The method in the embodiment can be directly embodied as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0036] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in conjunction with this embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0037] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0038] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A smart parking order tracing and auditing method, characterized in that: The following steps are involved: S1. Data access: Order data is received from multiple parking platforms and preprocessed to obtain preprocessed order data. In the data access stage, the spatiotemporal data of parking orders are preprocessed, including extracting the timestamp, location coordinates and related attributes of the order, and constructing a spatiotemporal feature matrix as the input for subsequent spatiotemporal Transformer model analysis. S2, blockchain storage: The pre-processed order data is input into the blockchain platform and stored and managed in the form of blockchain. Each order data generates a block, and the blockchain nodes are distributed in multiple physical locations to form a distributed ledger. S3. Smart contract automatic audit: Use smart contracts to automatically process and audit order data and form audit logs; S4. Establishing spatiotemporal transformer: Establishing a spatiotemporal transformer model to intelligently analyze the data in the audit log, identify abnormal order processing behaviors, and detect tampering and duplicate submission issues by analyzing the spatiotemporal trajectory and contextual information of the order; S5. Audit log encryption and tracing: Encrypt and trace the audit logs, and save them, providing real-time monitoring and backtracking of order data, recording key information such as data accessors, access time, devices used, and IP addresses, forming a complete data flow path and chain of evidence, making it easier for administrators to view and verify the access history and operation records of order data; S6. User interaction: Users can query orders, audit data and generate reports through the user interaction module.

2. The intelligent parking order tracing and auditing method according to claim 1 is characterized in that: The parking platform described in step S1 includes the self-owned smart parking platform, the parking lot main platform and the market comprehensive platform; the preprocessing of order data includes data deduplication, missing value filling and data format conversion.

3. The intelligent parking order tracing and auditing method according to claim 2 is characterized in that: The specific process of step S2 is: S21. Create a blockchain based on the Ethereum blockchain platform, use its smart contract function and public ledger characteristics to manage order data, and store the order data obtained by data access into the blockchain, including the timestamps of the creation time and update time of each order data; Payment status, payment time, and payment amount of the order; order user ID and contact information; S22. Write a smart contract according to the format of the stored order data, and define the storage and management logic of the order data through the smart contract; S23, dynamically compress and optimize the storage data through the machine learning algorithm XGboost to reduce the consumption of storage resources. At the same time, the high-priority order list generated by the spatiotemporal Transformer model is combined to focus on storing key order data; S24. Deploy the written smart contract to the Ethereum blockchain platform. During the deployment process, upload the smart contract code to the blockchain network and initialize and configure the contract.

4. The intelligent parking order tracing and auditing method according to claim 3 is characterized in that: Step S21: When the blockchain stores order data, a hybrid storage solution is adopted, that is, a combination of on-chain storage and off-chain storage to balance the decentralized advantages of the blockchain and the efficiency of storage resource utilization. On-chain storage means that the key information of the order is directly stored on the blockchain, and the key information includes order ID, creation time, update time, payment status, payment amount and user ID. Through smart contracts, the key information of the order is generated and stored on the blockchain; off-chain storage means that the order information with a large amount of data and low real-time requirements is stored in the distributed storage system off the chain, and the order information with a large amount of data and low real-time requirements includes order history, owner contact information, and parking time. The distributed storage system includes IPFS and traditional databases, and the data stored off the chain is associated with the data stored on the chain through hash values; If the order data is large-scale, sharding technology and sidechain technology are used, combined with on-chain and off-chain storage. Sharding technology divides the blockchain network into multiple shards, and each shard processes specific order data independently. Sidechain technology uses sidechains to handle specific data storage needs including parking history records and owner credit data. These data are managed independently in the sidechain, and the main chain processes the core order transaction data.

5. The intelligent parking order tracing and auditing method according to claim 3 is characterized in that: The smart contract in step S3 automatically triggers the order processing flow according to the preset conditions and rules. The specific process is as follows: S31, encapsulating the pre-processed order data into transactions and sending them to the blockchain network, where each transaction contains the order data to be stored and instructions for executing the smart contract; S32. The nodes in the blockchain network receive the transaction request and perform verification, which includes checking the validity of the transaction, the correctness of the signature, and the integrity of the order data. After the verification is passed, the node executes the logic defined in the smart contract, including data storage and status update; S33. Based on the verified request, the smart contract processing logic is automatically executed on the blockchain, including updating the order status, verifying the payment information, and calculating the parking fee. After the execution is completed, the order data and the execution results are recorded and stored in the distributed ledger of the blockchain. S34. Smart contracts automatically audit and record detailed information of each order processing step to form an audit log, including operation time, operator, and operation content; the audit log is stored in the blockchain to form a complete operation record and chain of evidence.

6. The intelligent parking order tracing and auditing method according to claim 5 is characterized in that: When calculating the parking fee in step S33, a dynamic pricing algorithm based on parking space factors is used. The algorithm dynamically adjusts the parking fee according to real-time parking demand, parking space availability, and time period changes. The formula of the dynamic pricing algorithm is as follows: ,in, It's time Dynamic parking fees at every moment; It is the basic parking fee; is the demand factor, at time The demand fluctuation based on historical data or real-time data is defined as a value between 0 and 1. The larger the value, the higher the demand and the higher the price. is the free parking factor, defined as the proportion of free parking spaces in a parking lot, It is a time period factor, which is adjusted based on the time period of the day. The time period factor is a constant based on a specific time period, or is predicted based on the time period through a machine learning model; They are the adjustment coefficients for demand, available parking spaces and time periods, which are set based on historical data and experience.

7. The intelligent parking order tracing and auditing method according to claim 5 is characterized in that: The specific process of step S5 is: S51. Divide the audit log into multiple audit packages according to time periods and order quantities. Each audit package generates a traceability subchain. The traceability subchain contains multiple "blocks". Each block records an audit log. Each block header contains the hash value, timestamp and other metadata of the previous block. Each block body contains specific audit log data. S52. Encrypt each audit package and its corresponding traceability subchain to ensure data privacy and security. Specifically, generate a hash value for each traceability subchain block, and connect all blocks through a hash algorithm to form a complete traceability subchain. Provide a timestamp through the hash algorithm to ensure the data is tamper-proof and ensure the integrity and traceability of the data. S53. Package each audit package, and save the packaged audit package and its corresponding traceability subchain into the blockchain.

8. The intelligent parking order tracing and auditing method according to claim 7 is characterized in that: The user interaction module described in step S6 uses React to build a user interface, and the user interface includes a navigation bar, a data display area, and operation buttons; and uses D3.js for data visualization, and the types of data visualization include line charts, bar charts, and pie charts. At the same time, JWT technology is used for user login identity authentication and authorization, and verification is performed through SMS, email, or a one-time password generated by an authentication application to ensure system security; the Elasticsearch engine is used to design a parking order query function, and users can query parking orders based on multiple conditions including parking order numbers and parking date and timestamps. At the same time, WebSocket is used to achieve real-time data updates to ensure that users can see the latest order status and data changes; the detailed process of order auditing is displayed through the timeline component, including audit time, auditor, and audit content, so that users can understand the processing process of parking orders.

9. An intelligent parking order tracing and auditing system based on blockchain technology, characterized in that: The method according to any one of claims 1 to 8 is performed, comprising: Data access module: used to receive order data from multiple parking platforms and pre-process the order data to obtain pre-processed order data; Blockchain storage module: used to input pre-processed order data into the blockchain platform for storage and management in the form of blockchain; each order data generates a block, and blockchain nodes are distributed in multiple physical locations to form a distributed ledger; Smart contract automatic audit module: Automatically process and audit order data through the use of smart contracts, and form audit logs; Spatiotemporal Transformer building module: used to build a spatiotemporal Transformer model, perform intelligent analysis on the data in the audit log, identify abnormal order processing behaviors, and detect possible tampering and duplicate submission issues by analyzing the spatiotemporal trajectory and contextual information of the order; Audit log encryption and tracing module: used to encrypt and trace audit logs and save them, provide real-time monitoring and backtracking of order data, record key information such as data accessors, access time, devices used, IP addresses, etc., form a complete data flow path and chain of evidence, and facilitate administrators to view and verify the access history and operation records of order data; User interaction module: Users can query orders, audit data and generate reports through the user interaction module.

Citation Information

Patent Citations

  • Real-time audit traceability system based on blockchain technology

    CN108111299A

  • Parking price optimization method and a management system thereof

    CN109492801A

  • Data flow life cycle management method and system based on block chain technology

    CN110532293A

  • Decentralization Internet collaboration system and data interaction method based on block chain

    CN114493865A

  • Commodity order tracing method of online digital platform

    CN117808489A

Cited By

  • Order data processing method and system based on block chain

    CN119624590A

  • Intelligent parking unattended vehicle access management system and method based on edge calculation

    CN120636195A

  • Block chain evidence tracing method based on ocean carbon sink big data driving

    CN120746607A

  • A Blockchain-Based Evidence Storage and Traceability Method Driven by Big Data on Marine Carbon Sequestration

    CN120746607B

  • Block chain-based three-dimensional parking space access record evidence storage and traceability system

    CN120952824A