Development framework of traffic control software
By providing a traffic control software development framework containing multiple modules, the problem of lack of dynamic adaptability of traditional traffic signal control is solved, and a more flexible and scalable traffic control application development is achieved.
Patent Information
- Application Number
- CN202411848983.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-05-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional traffic signal control mostly adopts fixed time-matching solutions, which lacks dynamic adaptability to changes in real-time traffic conditions, making it difficult to meet actual needs.
It provides a development framework for traffic control software, including time management module, core library module, component interaction management module, data management module, statistical analysis module, software testing module and integration module, integrating basic functions such as data processing, equipment management, flow control, and path planning.
Through this development framework, various traffic control-related applications are supported on the platform, simplifying the development process, improving the scalability and flexibility of the system, and meeting the upper-level application development needs of traffic control software development frameworks.
Smart Images

Figure CN120010816A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of traffic control, and in particular relates to a development framework of traffic control software. Background Art
[0002] The traffic system is a complex dynamic system, in which parameters such as traffic flow, vehicle speed, and time are continuously changing. The discretization of traffic control strategies is to discretize these continuous parameters according to certain rules and standards, and convert them into a finite number of discrete states or values for more accurate analysis and control. For example, the traffic flow is divided into different time periods (such as peak hours, off-peak hours, and low-peak hours), and the traffic flow in each time period is regarded as a discrete state; or the road space is divided according to a certain distance or area, and the traffic conditions in each area are studied separately. Through this discretization process, a mathematical model and control algorithm that are more in line with the actual traffic operation law can be constructed, thereby improving the effect of traffic control.
[0003] In terms of traffic management measures, traditional traffic signal control mostly adopts fixed timing schemes, which are based on historical traffic flow data and experience settings and lack dynamic adaptability to real-time traffic conditions. Traditional simple traffic control methods can no longer meet actual needs, so a traffic control software development framework is urgently needed to solve the above technical problems. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a traffic control software development framework, including:
[0005] Time management module, core library module, component interaction management module, data management module, statistical analysis module, software testing module, integration module;
[0006] The time management module is responsible for coordinating the interaction and synchronization between different simulators;
[0007] The core library module is used to provide infrastructure to support complex traffic simulation, data management and path calculation;
[0008] The component interaction management module is used to manage the interaction between simulation components, including navigation module, simulation unit, mapping module and resource sharing;
[0009] The data management module is used for data storage and query of the traffic control strategy discretization application module, and supports access rights and tamper prevention;
[0010] The statistical analysis module is used to analyze the operation data of the development framework of the traffic control software and support real-time monitoring;
[0011] The software testing module is used to ensure the reliability and stability of the system and supports various testing tools and automated testing processes;
[0012] The integration module is used to obtain a standardized API interface to ensure seamless connection and data sharing with other modules and systems.
[0013] Preferably, the time management module includes:
[0014] RTI Ambassador, which handles all communication requests from the simulator, including but not limited to registration, deregistration, publishing and subscribing events, and time management;
[0015] A time management unit, used to coordinate the progress of the simulator through logical clocks and physical clocks;
[0016] A message routing unit, used to pass messages between simulators;
[0017] Event processing unit, used to handle event interactions between simulators;
[0018] Communication module, used to manage network communications between simulators.
[0019] Preferably, the core library module includes:
[0020] The spatial computing submodule is used to handle geometric and mathematical calculations related to spatial data processing;
[0021] The routing module handles path calculations and finds the best path in a complex road network;
[0022] Entity module, used to manage the core data entities in the system, including but not limited to road network nodes, edges, vehicles and traffic lights;
[0023] The network module is used to handle network communication and entity identity conversion in the system.
[0024] Preferably, the component interaction management module is also used to manage the collaborative work between different modules and systems, and manage and allocate system resources to ensure that each module uses resources efficiently.
[0025] Preferably, the data management module is also used to store data through a variety of storage formats and backup strategies, and to perform multi-dimensional queries on massive data.
[0026] Preferably, the statistical analysis module is also used to: perform multi-dimensional analysis of traffic data, provide a comprehensive data view, and automatically generate various statistical reports to help decision makers understand the system operation status and provide real-time data monitoring functions.
[0027] Preferably, the software testing module is also used to: perform unit testing on each module of the system, check the interface and integration between modules, evaluate the performance of the system under high load, and identify potential performance bottlenecks.
[0028] Preferably, the integration module is also used to: provide a standardized API interface to ensure seamless connection and data sharing with other modules and systems, while supporting multiple standardized interfaces and communication protocols to ensure the openness and interoperability of the system.
[0029] Compared with the prior art, the present invention has the following advantages and technical effects:
[0030] The present invention provides a set of standardized interfaces and tools for the development framework of traffic control software, constructs entity units such as vehicles, roadside units, traffic lights and traffic management centers and corresponding element abstractions, including seven modules such as time management, core library, component interaction management, data management, statistical analysis, software testing, and integration modules, integrating basic functions such as data processing, equipment management, flow control, and path planning. It supports the development of various traffic control-related applications based on the platform, simplifies the development process, and improves the scalability and flexibility of the system, meeting the upper-level application development requirements of the development framework of traffic control software. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0032] Figure 1 Schematic diagram of the framework structure of an embodiment of the present invention. DETAILED DESCRIPTION
[0033] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0034] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0035] Embodiment 1
[0036] like Figure 1 As shown, this embodiment provides a traffic control software development framework, including:
[0037] 1Time Management Module
[0038] The time management module Runtime Infrastructure (RTI) is the core part of a multi-domain, multi-scale simulation framework, responsible for coordinating the interaction and synchronization between different simulators. RTI is designed to support a highly modular and scalable simulation environment, allowing multiple heterogeneous simulators to seamlessly integrate and work together. The core components of RTI include RTI Ambassador, time management, message routing, and event handling. The following is a detailed introduction to these components:
[0039] 1.1RTI Ambassador
[0040] RTI Ambassador is the main interface between the simulator and RTI. It is responsible for handling all communication requests from the simulator, including registration, deregistration, publishing and subscribing to events, time management, etc. RTI Ambassador provides a set of APIs that enable the simulator to interact with RTI, ensuring synchronization and data exchange of simulations.
[0041] Key features:
[0042] Registration and Deregistration: The simulator registers with RTI Ambassador when it starts and deregisters when it ends.
[0043] Publish and Subscribe: Simulators can publish their own status and events through RTI Ambassadors and subscribe to events from other simulators.
[0044] Time Management: RTI Ambassador is responsible for managing the simulator's logical time, ensuring that all simulators execute events in sequence.
[0045] Message Routing: RTI Ambassador is responsible for routing messages to the corresponding simulators.
[0046] 1.2 Time Management
[0047] Time management is one of the key functions of RTI, ensuring that all simulators involved in the simulation run on a unified timeline. Time management coordinates the progress of the simulators through logical clocks and physical clocks.
[0048] Logical clock: used for scheduling and execution of simulation events. Each simulator has its own logical clock, and RTI is responsible for coordinating these clocks to ensure global consistency.
[0049] Physical clock: synchronized with the real world time, used in real-time simulation applications.
[0050] RTI uses an advanced time management algorithm, such as the Conservative Synchronization Algorithm or the Optimistic Synchronization Algorithm, to ensure time synchronization between simulators.
[0051] 1.3 Message Routing
[0052] Message routing is one of the core functions of RTI, responsible for delivering messages between simulators. RTI implements an efficient message routing mechanism to ensure low latency and high throughput of messages. It mainly includes the following parts:
[0053] Message Queues: Each simulator has its own input and output message queues, and RTI is responsible for managing these queues and ensuring that messages are delivered in the correct order.
[0054] Message filtering: RTI filters and delivers relevant messages based on the simulator's subscription status to reduce unnecessary data transmission.
[0055] Priority processing: Some critical messages may need priority processing, and RTI provides a priority mechanism to handle these messages.
[0056] 1.4 Event Handling
[0057] Event processing is another key function of RTI, which is responsible for handling event interactions between simulators. Event processing includes the following parts:
[0058] Event Queue: Each simulator has its own event queue, and RTI is responsible for scheduling and processing these events.
[0059] Event distribution: RTI distributes events to relevant simulators based on event type and subscription status.
[0060] Event conflict handling: In a complex simulation environment, event conflicts may occur. RTI provides a set of mechanisms to detect and handle these conflicts to ensure the correctness and consistency of the simulation.
[0061] 1.5 Communication Module
[0062] The communication module of RTI is responsible for managing network communication between simulators. This module supports multiple communication protocols (such as TCP / IP, UDP) and implements a reliable data transmission mechanism. The main functions include:
[0063] Connection management: Establishing and maintaining network connections between simulators.
[0064] Data transmission: Ensure reliable transmission and in-order arrival of data packets.
[0065] Error handling: Detect and handle communication errors to ensure system robustness.
[0066] 1.6 Configuration and Extension
[0067] RTI supports highly configurable and scalable architecture design. Users can customize RTI's behavior and parameters through configuration files. Mainly including:
[0068] Configuration file: The behavior and parameters of RTI can be defined through the configuration file, such as time step, message buffer size, etc.
[0069] Plug-in mechanism: RTI supports a plug-in mechanism, allowing users to extend the functionality of RTI according to their needs. For example, users can add custom time management algorithms or message routing strategies.
[0070] 1.7 Example Analysis
[0071] The following is a simplified example showing the RTI workflow:
[0072] Simulator Registration: After each simulator is started, it registers with RTI through the RTI Ambassador and obtains a unique identifier.
[0073] Publish and Subscribe: The simulator publishes its own status and events, and subscribes to the events of other simulators.
[0074] Time synchronization: RTI coordinates the logical clocks of all simulators through the time management module to ensure that events are executed in sequence.
[0075] Message routing: Messages between simulators are transmitted through RTI's message routing module, which filters and distributes messages based on subscriptions.
[0076] Event processing: The simulator's events are scheduled and processed through RTI's event processing module to ensure the correctness and consistency of the events.
[0077] End of simulation: At the end of simulation, each simulator logs out through the RTI Ambassador and releases resources.
[0078] The time management module architecture design embodies the principles of efficiency, modularity and scalability, and supports complex simulations in multiple domains and scales. Through key components such as RTI Ambassadors, time management, message routing and event processing, RTI can coordinate the interaction and synchronization between different simulators to ensure the accuracy and efficiency of simulation.
[0079] 2 Core library modules
[0080] The core library is designed to provide infrastructure to support complex traffic simulation, data management, and path calculation. The library consists of five modules, each with clear responsibilities to ensure the scalability, maintainability, and high performance of the system. The following will introduce the design of the spatial computing module, routing module, entity module, network module, and communication module in detail.
[0081] 2.1 Spatial Computing Module
[0082] The Spatial Computing module deals with operations specifically related to spatial data processing. These calculations are essential for path planning, simulation, and data analysis. The module contains several classes for representing and manipulating geometric objects such as points, vectors, and polygons, and provides various mathematical utility functions.
[0083] 2.2 Routing Module
[0084] The routing module handles path calculations, finding the best path in a complex road network. This module includes multiple algorithms, such as Dijkstra and A*, to meet different path calculation needs.
[0085] 2.3 Entity Module
[0086] The entity module is responsible for managing the core data entities in the system, such as road network nodes, edges, vehicles, traffic lights, etc. These entities are an indispensable part of the path calculation and simulation process. The entity module mainly includes classes that represent the basic elements of the road network, as well as some auxiliary function classes for managing the status and behavior of these elements.
[0087] The entity module provides management and operation of various units in the system (such as vehicles, traffic lights, sensors, etc.) through a series of classes and interfaces. By using a unified base class UnitData and different unit type enumerations UnitType, unified management and processing of different units are achieved. In addition, some auxiliary classes and tools are provided for generating unique unit names, comparing unit names, and converting between different data formats. This design ensures the flexibility and scalability of the system, facilitating efficient operation and management in complex traffic simulation and data management.
[0088] 2.4 Network Module
[0089] The network module is designed to handle network communication and entity identity conversion in the system. It provides an abstract network ambassador class, a client-server communication channel class, and a network entity ID converter. The core functionality of this module includes network message passing, client-server communication, and entity ID processing and conversion.
[0090] The network module provides management and operation of network communication and entity identity conversion in the system through a series of classes and interfaces. The logic of receiving and sending network messages is implemented by using the abstract network ambassador class AbstractNetworkAmbassador and its concrete implementation class CAbstractNetworkAmbassador. The client-server communication channel class ClientServerChannel handles the message transmission between the client and the server. The network entity ID converter class NetworkEntityIdTransformer handles the conversion of entity IDs in different network environments. This design ensures the flexibility and scalability of the system, and facilitates efficient operation and management in complex network communications and entity management.
[0091] 2.5 Communication Module
[0092] The communication module is responsible for simulating the delay and transmission model in the communication process. It provides a series of classes for defining and calculating different types of delays, as well as managing the models and results of communication transmission. The core functions of this module include the definition and calculation of delay models, the implementation of communication transmission models and the processing of their results.
[0093] The communication module provides management and operation of the delay and transmission model of the communication process in the system through a series of classes and interfaces. Different types of delay calculations are implemented by using the abstract delay class Delay and its specific implementation classes (such as ConstantDelay, SimpleRandomDelay, GammaDelay, etc.). The transmission model class TransmissionModel handles the communication transmission process and generates the transmission result TransmissionResult. This design ensures the flexibility and scalability of the system and facilitates efficient operation and management in complex communication simulations.
[0094] 3. Component interaction management module
[0095] The component interaction management module is responsible for managing the interactions between simulation components, including navigation modules, simulation units, mapping modules, and resource sharing. This module ensures that different simulation components can work together efficiently and provides a unified interface and abstraction to simplify communication and data exchange between components. The resource sharing function is an important part of this module, allowing different components to efficiently share and access common resources.
[0096] 1. Function Overview
[0097] (1) Module collaboration
[0098] Realize the collaboration between different modules and systems to ensure seamless transmission of data and instructions. This includes the collaboration of path calculation, navigation, vehicle simulation, traffic light control and other functions.
[0099] (2) Resource Sharing
[0100] Manage and allocate system resources to ensure efficient use of resources by each module. Through the resource pool, centralized management and dynamic allocation of resources are achieved.
[0101] (3) System Integration
[0102] Supports the integration of multiple systems and devices, ensuring that devices from different manufacturers can interoperate. Simplifies the integration and collaboration between different systems through unified interfaces and protocols.
[0103] 3.2 Module Collaboration
[0104] 3.3 Resource Sharing
[0105] Resource sharing is crucial in the component interaction management module, which allows multiple simulation units to share the same data and functional modules, thereby improving efficiency and consistency.
[0106] 3.4 System Integration
[0107] The component interaction management module provides management and operation of different simulation components in the system through a series of classes and interfaces. The path calculation and navigation functions are implemented through the navigation module INavigationModule and its implementation class NavigationModule. The simulation unit AbstractSimulationUnit and its subclasses VehicleUnit and TrafficLightGroupUnit provide the start and stop logic of specific simulation units. RoadPosition and RoadPositionFactory in the mapping module are responsible for managing the position data on the road. The resource sharing mechanism ensures efficient sharing and management of resources among different simulation units through the ResourcePool class and its related sharing classes. In addition, the integration and interoperability of the system are ensured by providing APIs for registration systems, data exchange, and security protocols. This design ensures the flexibility and scalability of the system, and facilitates efficient operation and management in complex simulation environments.
[0108] 4Data Management Module
[0109] The data management module is used for data storage and query of the traffic control strategy discretization application module, and supports access rights and anti-tampering functions. This module provides efficient data management and security to ensure the data reliability and security of the traffic simulation system.
[0110] 4.1 Functional Overview
[0111] (1) Data storage and backup
[0112] Provides efficient data storage mechanism to ensure data integrity and recoverability. The data management module supports multiple storage formats and backup strategies to ensure high availability and persistence of data.
[0113] (2) Multi-dimensional query
[0114] It supports multi-dimensional query of massive data to meet data needs in different scenarios. Through the flexible query interface, users can retrieve data according to various conditions to improve data utilization efficiency.
[0115] (3) Access rights and tamper prevention
[0116] Provide strict access control mechanism to prevent unauthorized access and data tampering. Ensure data security and integrity through permission management and encryption technology.
[0117] The data management module provides data storage, query and security management for the traffic control strategy discrete application module through a series of classes and interfaces. The data storage and backup functions ensure the integrity and recoverability of the data, the multi-dimensional query function meets the data requirements in different scenarios, and the access rights and anti-tampering functions ensure the security and reliability of the data. The core functions of the data management module and their implementation methods are demonstrated through API examples of data storage, query, backup and access control. This design ensures the data reliability and security of the system and facilitates efficient management and operation in complex traffic simulation environments.
[0118] 5Statistical Analysis Module
[0119] The statistical analysis module is designed to conduct in-depth analysis of the traffic control software development framework operation data and support real-time monitoring. This module provides decision makers with a comprehensive and real-time view of traffic data through multi-dimensional data analysis, report generation and real-time monitoring functions.
[0120] 5.1 Functional Overview
[0121] (1) Multi-dimensional analysis
[0122] Supports multi-dimensional analysis of traffic data and provides a comprehensive data view. Users can analyze data based on different dimensions (such as time, location, traffic flow, etc.) to gain deeper insights.
[0123] (2) Report Generation
[0124] Automatically generate various statistical reports to help decision makers understand the system operation status. Reports can be generated on demand, including daily reports, weekly reports, monthly reports, etc., supporting multiple formats (such as PDF, Excel).
[0125] (3) Real-time monitoring
[0126] Provides real-time data monitoring function to promptly detect and respond to traffic anomalies. Through the real-time monitoring interface, users can view real-time traffic data and set up alarm mechanisms so that they can take immediate action when anomalies occur.
[0127] The statistical analysis module provides multi-dimensional analysis, report generation and real-time monitoring functions for traffic control system operation data through a series of classes and interfaces. The data analysis class DataAnalyzer supports in-depth analysis of data according to different dimensions, the report generation class ReportGenerator automatically generates various statistical reports, and the real-time monitoring class RealTimeMonitor provides real-time data monitoring functions to promptly discover and respond to abnormal traffic conditions. This design ensures the flexibility and scalability of the system, and facilitates efficient statistical analysis and real-time monitoring in complex traffic environments.
[0128] 6Software Testing Modules
[0129] The software testing module is used to ensure the reliability and stability of the system and supports various testing tools and automated testing processes. This module includes unit testing, integration testing, performance testing, automated testing and report generation to ensure the correctness and performance of each function of the system during development and operation.
[0130] 6.1 Functional Overview
[0131] (1) Unit Testing
[0132] Support unit testing of each module of the system to ensure the correctness of basic functions. Unit testing mainly verifies the independent functions of each module to ensure that it can work normally under various input conditions.
[0133] (2) Integration Testing
[0134] Check the interfaces and integration between modules to ensure the stability of the overall system operation. Integration testing is performed after the modules are integrated to verify whether the interactions and dependencies between them are correct.
[0135] (3) Performance testing
[0136] Evaluate system performance under high load and identify potential performance bottlenecks. Performance testing simulates system operation under extreme conditions to ensure that it can meet performance requirements.
[0137] (4) Automated testing and report generation
[0138] Supports the execution of automated test scripts and generates detailed test reports. Automated testing improves test efficiency and coverage, and the report generation function helps developers quickly understand test results and system quality status.
[0139] The software testing module provides unit testing, integration testing, performance testing, automated testing and report generation functions for the system through a series of classes and interfaces. The unit test management class UnitTestManager ensures the correctness of the basic functions of each module of the system, the integration test management class IntegrationTestManager checks the interface and integration between modules, the performance test management class PerformanceTestManager evaluates the performance of the system under high load, and the test report generation class TestReportGenerator generates a detailed test report. This design ensures the reliability and stability of the system and facilitates comprehensive testing and quality assurance during development and operation.
[0140] 7 Integrated modules
[0141] The integration module provides a standardized API interface to ensure seamless connection and data sharing with other modules and systems. Through unified interfaces and protocols, the module achieves efficient integration and interoperability between different systems and supports data sharing and interaction.
[0142] 7.1 Functional Overview
[0143] (1) API
[0144] Provides standardized API interfaces to support integration with other systems and modules. The API interface design is designed to simplify communication and data exchange between systems and ensure that different modules can work together.
[0145] (2) Standardized interfaces and protocols
[0146] Supports multiple standardized interfaces and communication protocols to ensure the openness and interoperability of the system. By adopting standardized interfaces and protocols, the system can be seamlessly integrated with a variety of external devices and platforms to ensure data consistency and reliability.
[0147] The integration module provides API management, protocol support, and data exchange functions for the system through a series of classes and interfaces. The API management class APIManager ensures that the system's API interfaces can be uniformly registered and managed, the protocol support class ProtocolSupport provides support for standardized communication protocols, the integration management class IntegrationManager integrates API and protocol management functions, and the data exchange class DataExchange implements data interaction between different systems. This design ensures the openness and interoperability of the system, and facilitates efficient integration and data sharing in a complex system environment.
[0148] In addition, the development framework of the traffic control software in this embodiment also includes an instruction set module, which encapsulates the lowest-level actions layer by layer and finally provides a macro instruction to the developer. The developer does not need to care about the underlying instructions, but only needs to call instructions from the instruction library according to his needs. For example, he issues a traffic control instruction such as a green wave section of section A. He inputs such a requirement into the framework, and the framework uses an algorithm to filter out the function he needs to call according to the requirement;
[0149] The process of calling instructions by the instruction set module includes: first, clarifying what high-level requirements the developer's instructions should be. For example, the developer may input the instruction "Green wave section of section A". The design of macro instructions should be flexible and abstract enough to accurately reflect the developer's needs.
[0150] In this example, the requirement for a "green wave section" can be understood as a traffic flow control problem, where the goal is to make the traffic lights on a specific section of road achieve a green wave (i.e., the time coordination between multiple lights to ensure that vehicles can pass smoothly). The instruction needs to include the following parts:
[0151] Target section (Section A);
[0152] Green wave target (to make the traffic flow smooth on this road section);
[0153] Possible timeliness requirements (e.g. whether the green wave needs to be applied during a specific time period);
[0154] Using long short-term memory networks to model and predict traffic flow data helps the algorithm better understand the changing trends of traffic. Neural networks can learn the laws of traffic through historical data (such as traffic data collected by traffic cameras or sensors), predict future traffic demand, and thus optimize the control strategy of traffic lights.
[0155] The process of data processing includes normalization:
[0156] The calculation formula for normalization is:
[0157]
[0158] x is the input signal value, x max 、x min is the maximum and minimum value of all signals, x norm is the normalized value.
[0159] Data input: traffic flow data (traffic flow over the past period, weather, holidays and other influencing factors).
[0160] Output: Traffic flow forecast for the next few minutes or hours. The process includes:
[0161] Calculate traffic flow data based on long short-term memory networks to obtain future traffic demand;
[0162] The future traffic demand and road conditions are input into the deep Q network for calculation to obtain the control strategy of the traffic light, wherein the input includes but is not limited to real-time traffic data, traffic light status, and traffic accidents. The output is the decision of the traffic light switching.
[0163] Through the neural network model, the system can automatically adjust strategies according to different traffic patterns (peak hours, off-peak hours, special events, etc.) to improve the overall efficiency of traffic. For example, combined with inputs such as traffic camera data and sensor data, the neural network can adjust the time and range of the green wave belt to adapt to the dynamic changes in traffic flow.
[0164] Among them, the neural network model is a bidirectional long short-term memory network model
[0165] The bidirectional long short-term memory network model extraction formula is:
[0166]
[0167] in, is the output vector of the forward LSTM hidden layer at time t, (t=1, 2, ..., N), which is the input vector x at the current time t and the forward LSTM output vector at the previous moment jointly determined;
[0168] in, is the output vector of the reverse LSTM hidden layer at time t, (t=1, 2, ..., N), which is the input vector x at the current time t and the reverse LSTM output vector of the previous moment jointly determined;
[0169] h t is the output of the bidirectional long short-term memory network model, ωt is the weight matrix of the forward LSTM output; v t is the weight matrix of the reverse LSTM output; bt is the bias of the weight matrix.
[0170] At the same time, considering that the output of each unit has different influences on the final task results, a self-attention mechanism is added to optimize the network. By setting weights for the output of each unit, the timing characteristics of the instructions required by the user can be more effectively extracted.
[0171] If the ReLU activation function is used, the calculated gradient value for the part of the input less than zero during the back propagation process is 0, resulting in some ReLU neurons never being activated in the subsequent training process, so the SaveReLU activation function is used for activation;
[0172] The calculation formula of the SaveReLU activation function is:
[0173]
[0174] e is a constant with a value range of [0,0.5], which ensures that the derivative of SaveReLU is always non-zero, and then the gradient of the part of the input less than zero can be calculated during the back propagation process, avoiding the problem of neuron "death".
[0175] The training parameters are shown in Table 1:
[0176] Table 1
[0177]
[0178] The specific workflow is as follows:
[0179] Developers input instructions through the system interface, such as "green wave section of section A".
[0180] The instruction parsing layer maps high-level instructions into specific requirements and converts them into corresponding algorithm calls (such as traffic prediction, traffic light scheduling, etc.).
[0181] The middle layer uses the neural network model to predict traffic flow according to the instructions, and combines the algorithm to calculate the optimal traffic light scheduling strategy.
[0182] The lower-level execution system adjusts the control strategy of the traffic light according to the results calculated by the upper level.
[0183] The system provides real-time feedback and adjustments based on the execution results, and continuously optimizes strategies through methods such as reinforcement learning.
[0184] Summarize:
[0185] This embodiment provides a set of standardized interfaces and tools for the development framework of traffic control software, constructs entity units such as vehicles, roadside units, traffic lights and traffic management centers and corresponding element abstractions, including seven modules such as time management, core library, component interaction management, data management, statistical analysis, software testing, and integration modules, integrating basic functions such as data processing, equipment management, flow control, and path planning. It supports the development of various traffic control-related applications based on the platform, simplifies the development process, and improves the scalability and flexibility of the system, meeting the upper-level application development requirements of the traffic control software development framework.
[0186] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A traffic control software development framework, characterized in that: include: Time management module, core library module, component interaction management module, data management module, statistical analysis module, software testing module, integration module; The time management module is responsible for coordinating the interaction and synchronization between different simulators; The core library module is used to provide infrastructure to support complex traffic simulation, data management and path calculation; The component interaction management module is used to manage the interaction between simulation components, including navigation module, simulation unit, mapping module and resource sharing; The data management module is used for data storage and query of the traffic control strategy discretization application module, and supports access rights and tamper prevention; The statistical analysis module is used to analyze the operation data of the development framework of the traffic control software and support real-time monitoring; The software testing module is used to ensure the reliability and stability of the system and supports various testing tools and automated testing processes; The integration module is used to obtain a standardized API interface to ensure seamless connection and data sharing with other modules and systems.
2. The frame according to claim 1, characterized in that The time management module includes: RTI Ambassador, which handles all communication requests from the simulator, including but not limited to registration, deregistration, publishing and subscribing events, and time management; A time management unit, used to coordinate the progress of the simulator through logical clocks and physical clocks; A message routing unit, used to pass messages between simulators; Event processing unit, used to handle event interactions between simulators; Communication module, used to manage network communications between simulators.
3. The frame according to claim 1, characterized in that The core library modules include: The spatial computing submodule is used to handle geometric and mathematical calculations related to spatial data processing; The routing module handles path calculations and finds the best path in a complex road network; Entity module, used to manage the core data entities in the system, including but not limited to road network nodes, edges, vehicles and traffic lights; The network module is used to handle network communication and entity identity conversion in the system.
4. The frame according to claim 1, characterized in that The component interaction management module is also used to manage the collaborative work between different modules and systems, and manage and allocate system resources to ensure that each module uses resources efficiently.
5. The frame according to claim 1, characterized in that The data management module is also used to store data through a variety of storage formats and backup strategies, and to perform multi-dimensional queries on massive data.
6. The frame according to claim 1, characterized in that The statistical analysis module is also used to: conduct multi-dimensional analysis of traffic data, provide a comprehensive data view, and automatically generate various statistical reports to help decision makers understand the system operation status and provide real-time data monitoring functions.
7. The frame according to claim 1, characterized in that The software testing module is also used to: perform unit testing on each module of the system, check the interface and integration between modules, evaluate the performance of the system under high load, and identify potential performance bottlenecks.
8. The frame according to claim 1, characterized in that The integration module is also used to: provide a standardized API interface to ensure seamless connection and data sharing with other modules and systems, and support multiple standardized interfaces and communication protocols to ensure the openness and interoperability of the system.
Citation Information
Patent Citations
Special service platform for traffic heterogeneous information access and interoperation
CN107316268A
Simulation operation support system
CN112256386A
Lightweight traffic simulation system based on springboot framework
CN114417567A
Software development system and method based on intelligent traffic platform
CN117873881A
Method for predicting spatio-temporal data under various learning rates based on bidirectional network
CN117935535A