Vehicle dynamic cooperative control method and system based on opportunity federation learning
By employing a vehicle dynamic cooperative control method based on an opportunistic federated learning architecture, and utilizing collaborative training among cloud, fog nodes, and vehicle nodes, the problem of insufficient model generalization ability is solved, resulting in faster training speed and better environmental adaptability, thus optimizing traffic flow and safety in intelligent transportation systems.
Patent Information
- Application Number
- CN202511467852.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-15
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2045-10-15
AI Technical Summary
In existing vehicle dynamic cooperative control, model parameter updates based on a single local data source result in insufficient model generalization ability and unsatisfactory training effects.
Through an opportunistic federated learning architecture, the collaborative training of cloud, fog nodes, and vehicle nodes is utilized to acquire resource and location information in real time, calculate scores and data volume, allocate vehicle nodes to fog nodes for intermediate model training, upload gradients from fog nodes to the cloud to train the global model, and then send the global model to the vehicle nodes.
This improves the training speed and generalization ability of the model, enhances its adaptability to diverse driving environments, and enables vehicles to quickly adjust strategies to optimize traffic flow and safety in intelligent transportation systems.
Smart Images

Figure CN120935231A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle joint control, and in particular to a method and system for dynamic cooperative control of vehicles based on opportunistic federated learning. Background Technology
[0002] In modern intelligent transportation systems, the research and application of vehicle dynamic cooperative control technology are receiving increasing attention. Opportunistic Federated Learning (OFL), as an emerging distributed learning method, allows vehicles to improve model performance through collaborative training while protecting data privacy. However, current OFL frameworks mainly rely on models stored locally on the vehicle for training, but the parameter updates of local models are based on only a single local data source, resulting in insufficient generalization ability and unsatisfactory training effects. Summary of the Invention
[0003] The main objective of this invention is to provide a vehicle dynamic cooperative control method and system based on opportunistic federated learning, which aims to solve the problem that the parameter updates of local models are based on only a single local data source, resulting in insufficient generalization ability of the models.
[0004] This invention provides a vehicle dynamic cooperative control method based on opportunistic federated learning, implemented through an opportunistic federated learning architecture. The architecture includes a cloud, multiple fog nodes, and individual vehicle nodes. Each fog node is connected to at least one vehicle node, and each fog node is connected to the cloud. The fog nodes receive data collected by the vehicle nodes, train intermediate models to obtain training gradients, and upload these gradients to the cloud. The cloud trains a global model based on the training gradients uploaded by each fog node and sends the global model to each vehicle node. The method includes: The system acquires in real time the available resource information, processing density, and first location information of each fog node, as well as the data information collected by each vehicle node and the second location information of each vehicle node. The processing score for the corresponding fog node is determined based on the available resource information; Based on the first location information and the second location information, calculate the distance score from each vehicle node to each fog node, and calculate the data volume based on the data information; Based on the processing score, the distance score, the processing density, and the data volume, at least one vehicle node is assigned to each fog node to receive the data information of the assigned vehicle node; Each fog node trains an intermediate model based on the received data to obtain the corresponding training gradient, and then uploads the training gradient to the cloud. The cloud platform trains a global model based on each of the fog nodes and sends the global model to each of the vehicle nodes; Each of the vehicle nodes acquires real-time data and inputs the real-time data into the global model to obtain the target decision.
[0005] Further, the step of allocating at least one vehicle node to each fog node based on the processing score, the distance score, the processing density, and the data volume, to receive data information on the allocated vehicle nodes, includes: Calculate the maximum end-to-end delay based on the distance score; Each of the vehicle nodes is pre-assigned to each of the fog nodes according to a preset scheme; According to the formula Calculate the resource requirements for each vehicle node; among which, , , This represents the resource requirement of the i-th vehicle node. This represents the amount of data for the i-th vehicle node. This represents the processing density of the j-th fog node. This indicates the preset maximum allowable delay. This represents the maximum end-to-end delay of the transmission value from the i-th vehicle node to the j-th fog node. This indicates the preset error parameter. This represents the processing score of the j-th fog node. This represents the total number of vehicle nodes; According to the formula The preset scheme is optimized to obtain an optimized allocation scheme; wherein, , Let represent the revenue of the i-th vehicle node. This means maximizing total revenue. Indicates the number of fog nodes; Based on the optimized allocation scheme, a vehicle node is allocated to each fog node so that the fog node receives the data information of the allocated vehicle node.
[0006] Furthermore, after the step of allocating vehicle nodes to each fog node based on the optimized allocation scheme, so that the fog node receives the data information of the allocated vehicle nodes, the method further includes: Update the second location information and data volume of each vehicle node, and recalculate the maximum end-to-end delay between each vehicle node and each fog node; The allocation scheme is re-optimized based on the recalculated maximum end-to-end latency between each vehicle node and each fog node, and the data volume of each vehicle node.
[0007] Furthermore, the formula After optimizing the preset scheme to obtain the optimized allocation scheme, the method further includes: Determine whether the maximized total revenue is less than a preset revenue threshold; If the total revenue is less than the preset revenue threshold, then multiple vehicle nodes are deleted sequentially according to a preset number until the maximum total revenue is greater than or equal to the preset revenue threshold.
[0008] Furthermore, after the step of training a global model based on each of the fog nodes and sending the global model to each of the vehicle nodes, the method further includes: The vehicle node extracts global model parameters from the global model; The global model parameters are input into the local initial model to obtain the local intermediate model; The local intermediate model is trained based on the local data stored in the vehicle node to obtain the updated global model.
[0009] This invention also provides a vehicle dynamic cooperative control system based on opportunistic federated learning, implemented through an opportunistic federated learning architecture. The architecture includes a cloud, multiple fog nodes, and individual vehicle nodes. Each fog node is connected to at least one vehicle node, and each fog node is connected to the cloud. The fog nodes receive data collected by each vehicle node, train intermediate models to obtain training gradients, and upload these gradients to the cloud. The cloud trains a global model based on the training gradients uploaded by each fog node and sends the global model to each vehicle node. The system includes: The acquisition module is used to acquire in real time the available resource information, processing density, and first location information of each fog node, as well as the data information collected by each vehicle node and the second location information of each vehicle node; The determination module is used to determine the processing score corresponding to the fog node based on the available resource information; The calculation module is used to calculate the distance score from each vehicle node to each fog node based on the first location information and the second location information, and to calculate the data volume based on the data information; The allocation module is used to allocate at least one vehicle node to each fog node based on the processing score, the distance score, the processing density, and the data volume, and to receive data information on the allocation of vehicle nodes. The training module is used by each fog node to train the intermediate model based on the received data information to obtain the corresponding training gradient, and then upload the training gradient to the cloud. The generation module is used to train a global model based on each of the fog nodes in the cloud and send the global model to each of the vehicle nodes; The input module is used for each of the vehicle nodes to acquire real-time data and input the real-time data into the global model to obtain the target decision.
[0010] Furthermore, the allocation module includes: The delay calculation submodule is used to calculate the maximum end-to-end delay based on the distance score; The pre-allocation submodule is used to pre-allocate each of the vehicle nodes to each of the fog nodes according to a preset scheme; The resource requirement calculation submodule is used to calculate the resource requirement based on the formula. Calculate the resource requirements for each vehicle node; among which, , , This represents the resource requirement of the i-th vehicle node. This represents the amount of data for the i-th vehicle node. This represents the processing density of the j-th fog node. This indicates the preset maximum allowable delay. This represents the maximum end-to-end delay of the transmission value from the i-th vehicle node to the j-th fog node. This indicates the preset error parameter. This represents the processing score of the j-th fog node. This represents the total number of vehicle nodes; The optimization submodule is used to optimize the formula. The preset scheme is optimized to obtain an optimized allocation scheme; wherein, , Let represent the revenue of the i-th vehicle node. This means maximizing total revenue. Indicates the number of fog nodes; The allocation submodule is used to allocate vehicle nodes to each fog node based on the optimized allocation scheme, so that the fog node receives the data information of the allocated vehicle nodes.
[0011] Furthermore, the allocation module also includes: The location update submodule is used to update the second location information and data volume of each vehicle node, and recalculate the maximum end-to-end delay between each vehicle node and each fog node. The re-optimization submodule is used to re-optimize the allocation scheme based on the recalculated maximum end-to-end latency between each vehicle node and each fog node, as well as the data volume of each vehicle node.
[0012] Furthermore, the allocation module also includes: The maximum total revenue judgment submodule is used to determine whether the maximum total revenue is less than a preset revenue threshold; The vehicle node deletion submodule is used to delete multiple vehicle nodes sequentially according to a preset number if the total revenue is less than the preset revenue threshold, until the maximum total revenue is greater than or equal to the preset revenue threshold.
[0013] Furthermore, the vehicle dynamic cooperative control system based on opportunistic federated learning also includes: A global model parameter extraction module is used to extract global model parameters from the global model of the vehicle node; A global model parameter input module is used to input the global model parameters into the local initial model to obtain a local intermediate model; The local intermediate model training module is used to train the local intermediate model based on the local data stored in the vehicle node to obtain the updated global model.
[0014] The beneficial effects of this invention are as follows: By using multiple fog nodes for intermediate model training, the system can effectively integrate information and data from different vehicle nodes, improve the training speed of the model, enhance the model's adaptability to diverse driving environments, overcome the limitations of insufficient generalization ability and poor training effect of traditional training methods, and enable vehicles to quickly adjust their strategies according to the current traffic conditions, thereby optimizing the overall flow and safety of the intelligent transportation system. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating a vehicle dynamic cooperative control method based on opportunistic federated learning according to an embodiment of the present invention. Figure 2 This is a schematic block diagram of a vehicle dynamic cooperative control system based on opportunistic federated learning according to an embodiment of the present invention. Figure 3 This is a schematic block diagram of the structure of a computer device according to an embodiment of this application.
[0016] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0018] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly. The connection can be a direct connection or an indirect connection.
[0019] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, A and B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0020] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.
[0021] Reference Figure 1 This invention proposes a vehicle dynamic cooperative control method based on opportunistic federated learning, implemented through an opportunistic federated learning architecture. This architecture includes a cloud, multiple fog nodes, and individual vehicle nodes. Each fog node is connected to at least one vehicle node, and each fog node is connected to the cloud. The fog nodes receive data collected by the vehicle nodes, train intermediate models to obtain training gradients, and upload these gradients to the cloud. The cloud trains a global model based on the training gradients uploaded by each fog node and sends the global model to each vehicle node. The method includes: S1: Real-time acquisition of available resource information, processing density, and first location information of each fog node, as well as data information collected by each vehicle node and second location information of each vehicle node; S2: Determine the processing score corresponding to the fog node based on the available resource information; S3: Based on the first location information and the second location information, calculate the distance score from each vehicle node to each fog node, and calculate the data volume based on the data information; S4: Based on the processing score, the distance score, the processing density, and the data volume, allocate at least one vehicle node to each fog node to receive the data information of the allocated vehicle node; S5: Each fog node trains the intermediate model based on the received data information to obtain the corresponding training gradient, and uploads the training gradient to the cloud. S6: The cloud platform trains a global model based on each of the fog nodes and sends the global model to each of the vehicle nodes; S7: Each of the vehicle nodes acquires real-time data and inputs the real-time data into the global model to obtain the target decision.
[0022] The opportunistic federated learning architecture includes a cloud, multiple fog nodes, and individual vehicle nodes. Each fog node is connected to at least one vehicle node, and each fog node is connected to the cloud. The fog nodes receive data collected by the vehicle nodes, train intermediate models to obtain training gradients, and upload these gradients to the cloud. The cloud trains a global model based on the training gradients uploaded by each fog node and sends the global model to each vehicle node. Vehicle nodes only need to send data to the fog nodes, not to the cloud. The fog nodes are the middle layer of the architecture, used for storage and computation, undertaking initial information aggregation and model training tasks. By integrating data and computing resources from multiple participants, the fog nodes reduce the burden of large-scale data processing directly in the cloud and improve data processing efficiency. The cloud is responsible for collecting training gradients or model parameters uploaded from the fog nodes and training and updating the global model. The cloud distributes the trained global model back to each participant. In some embodiments, it may only be sent to the vehicle nodes, but it may also be sent to the fog nodes to ensure that the models stored in the fog nodes can be updated.
[0023] As described in step S1 above, the available resource information, processing density, and first location information of each fog node, as well as the data information collected by each vehicle node and the second location information of each vehicle node, are acquired in real time. Available resource information includes the current computing power, storage space, and network bandwidth of the fog node, which affects the number and speed of tasks that the fog node can process. Processing density reflects the amount of data that a fog node can process per unit time, determining its processing efficiency and capability. The first location information refers to the physical location of the fog node, while the second location information of the vehicle node reflects the vehicle's location. Through this location data, the system can assess the distance between the vehicle and the fog node, preparing for subsequent data allocation. Furthermore, the data information collected by each vehicle node in this step includes its own perception data, such as speed, location, and environmental conditions, for model training.
[0024] As described in step S2 above, the processing score for the corresponding fog node is determined based on the available resource information. The calculation of the processing score is to evaluate the processing capability of each fog node, ensuring that the potential of each node is effectively utilized during data allocation. This typically involves the fusion and quantification of multiple indicators such as the fog node's computing power, storage capacity, and network bandwidth. Specifically, the relative importance of certain resources can be emphasized by setting weights; for example, computing power might be considered more important than storage capacity, thus obtaining a comprehensive processing score.
[0025] As described in step S3 above, the distance score from each vehicle node to each fog node is calculated based on the first location information and the second location information, and the data volume is calculated based on the data information. This is to evaluate the physical distance between vehicle nodes and fog nodes, as well as the amount of data sent to fog nodes. The distance score can be calculated using various methods, such as direct Euclidean distance calculation. Vehicles typically experience lower latency when uploading data to nearby fog nodes. A comprehensive analysis considering both distance score and data volume provides a valid basis for subsequent data allocation, making data transmission between nodes more efficient and significantly improving the efficiency of model training.
[0026] As described in step S4 above, based on the processing score, distance score, processing density, and data volume, at least one vehicle node is allocated to each fog node to receive data from the allocated vehicle node. This ensures that the data from the vehicle node is processed by the most suitable fog node. By comprehensively considering various factors, the system prioritizes fog nodes with high processing scores, relatively short distances, and high processing densities. This allocation strategy not only maximizes data processing efficiency but also reduces data transmission latency from vehicle nodes. Furthermore, the system can dynamically adjust the allocation strategy to adapt to changing network conditions and real-time data volumes. For example, when a fog node experiences excessive load or its processing capacity decreases, a real-time monitoring mechanism can be used to reassign vehicle nodes, ensuring the smoothness and reliability of the data processing process.
[0027] As described in step S5 above, each fog node trains an intermediate model based on the received data information to obtain corresponding training gradients, and then uploads these training gradients to the cloud. Each fog node trains an intermediate model based on the received vehicle node data information, thereby obtaining corresponding training gradients, and then uploads these training gradients to the cloud. As a data processing intermediary, the fog node is not only responsible for receiving information uploaded by vehicle nodes, but also undertakes the task of initial model training. Using the received data information, the fog node can perform machine learning training according to a preset model, such as feature extraction and model optimization using deep learning algorithms. After completing the intermediate model training, the fog node generates corresponding training gradients, which are used to update the global model. The training of the intermediate model reduces direct dependence on the central server, lowers the burden on central computing, and accelerates the optimization process of model parameters. Throughout the entire process, the role of the fog node makes data processing more intelligent and efficient, laying a solid foundation for the subsequent training of the global model.
[0028] As described in step S6 above, the cloud trains a global model based on each of the fog nodes and sends the global model to each of the vehicle nodes. The cloud trains the global model based on the training gradients uploaded by each fog node. The function of the cloud is to integrate the gradient information provided by all fog nodes to update and optimize the global model. This process typically uses aggregation methods, such as weighted averaging or the FedAvg algorithm, to fuse gradients from different fog nodes. In this way, the cloud can obtain a more comprehensive and accurate overall performance of the global model. The quality of the global model training directly affects the decision-making ability of the vehicle nodes; therefore, clarifying the contribution of each fog node and evaluating the training quality is crucial. During this process, the cloud can also continuously monitor the training effect of the global model and adjust strategies and algorithms based on the model performance feedback to ensure the effectiveness and universality of the final model in various operating environments. After training is completed, the cloud sends the updated global model back to each vehicle node, providing them with a unified knowledge base to help each vehicle make decisions in real time.
[0029] As described in step S7 above, each vehicle node acquires real-time data and inputs it into the global model to obtain the target decision. After the model is updated, the vehicle nodes will use the global model sent from the cloud to make real-time decisions. For example, the vehicle can use the global model to calculate the optimal driving strategy, including decisions on driving speed and steering angle, based on information such as environmental changes and the dynamics of other traffic participants. The acquisition and processing of real-time data enables vehicles to maintain flexible response capabilities in complex and ever-changing traffic environments. In addition, vehicle nodes can continuously collect and feed back new data during operation, forming a closed-loop learning process that promotes continuous optimization and improvement of the global model. In this way, each vehicle can not only obtain efficient decision support but also provide data support for the learning of the entire system, promoting the further development of vehicle dynamic cooperative control and thus achieving the goals of intelligent transportation systems.
[0030] In one embodiment, step S4, which allocates at least one vehicle node to each fog node based on the processing score, the distance score, the processing density, and the data volume, and receives data information on the allocation of vehicle nodes, includes: S401: Calculate the maximum end-to-end delay based on the distance score; S402: Pre-assign each of the vehicle nodes to each of the fog nodes according to a preset scheme; S403: According to the formula Calculate the resource requirements for each vehicle node; among which, , , This represents the resource requirement of the i-th vehicle node. This represents the amount of data for the i-th vehicle node. This represents the processing density of the j-th fog node. This indicates the preset maximum allowable delay. This represents the maximum end-to-end delay of the transmission value from the i-th vehicle node to the j-th fog node. This indicates the preset error parameter. This represents the processing score of the j-th fog node. This represents the total number of vehicle nodes; S404: According to the formula The preset scheme is optimized to obtain an optimized allocation scheme; wherein, , Let represent the revenue of the i-th vehicle node. This means maximizing total revenue. Indicates the number of fog nodes; S405: Based on the optimized allocation scheme, allocate vehicle nodes to each fog node so that the fog node receives the data information of the allocated vehicle nodes.
[0031] As described in steps S401-S405 above, the scheme for allocating vehicle nodes to each fog node is optimized. Using the previously calculated distance scores, the maximum end-to-end latency for data transmission between vehicle nodes and fog nodes is estimated. End-to-end latency refers to the total time required from when a vehicle node sends data to when a fog node receives it. This includes network transmission latency, data processing latency, etc. Minimizing end-to-end latency helps improve real-time performance and response speed, thereby optimizing the effectiveness of control decisions. Vehicle nodes are initially allocated to each fog node according to a preset allocation scheme. This preset scheme can be based on rules of thumb or historical data analysis; for example, vehicle nodes that are close to each other are preferentially allocated to fog nodes that are also close. This stage mainly aims to build a preliminary allocation architecture to ensure the system has a reasonable starting point for subsequent optimization, calculating the resource requirements for each vehicle node to process data at the fog node. The benefits of all vehicle nodes are integrated, and the total benefit is calculated. Theoretically, the higher the total benefit, the more optimized the system's resource allocation. Then, the preset scheme is optimized based on the principle of maximizing total benefit, using algorithms such as genetic algorithms, linear programming, or other optimization techniques to adjust the allocation between each vehicle node and fog node. Through this iterative optimization process, the system can obtain a more efficient allocation scheme, thereby improving overall performance. Finally, based on the optimized allocation scheme, the final vehicle nodes are assigned to each fog node. This allows the fog nodes to receive data transmitted from the vehicle nodes assigned to them. This ensures that fog nodes have access to the latest and most relevant data for intermediate model training, improving the efficiency and response speed of the entire system. Ultimately, this process provides strong support for methods of dynamic cooperative vehicle control, facilitating real-time decision-making and optimizing traffic flow.
[0032] In one embodiment, after step S405, which assigns a vehicle node to each fog node based on the optimized allocation scheme so that the fog node receives the data information of the allocated vehicle node, the method further includes: S4061: Update the second location information and data volume of each vehicle node, and recalculate the maximum end-to-end delay between each vehicle node and each fog node. S4062: Based on the recalculated maximum end-to-end delay between each vehicle node and each fog node, and the data volume of each vehicle node, the allocation scheme is re-optimized.
[0033] As described in steps S4061-S4062 above, the second location information and data volume of each vehicle node are updated. This is because the location and collected data of vehicles may change over time during operation, affecting the real-time performance and accuracy of the system. Therefore, this information is updated in real time based on the dynamic traffic environment. Furthermore, the updated vehicle node locations and data volumes are used to recalculate the maximum end-to-end delay between the vehicle nodes and each fog node. This recalculation of delay provides the system with an assessment of the current transmission timeliness, providing the most accurate basic data for subsequent optimized allocation schemes. The previous allocation scheme is then re-optimized using the recalculated maximum end-to-end delay and the updated data volume of each vehicle node. The calculation result of the maximum end-to-end delay affects the efficiency and real-time performance of data transmission; shorter delays generally mean faster data processing capabilities. Therefore, the allocation between nodes can prioritize combinations with lower delays. The current data volume of the vehicle nodes is also an important optimization indicator, as a larger data volume means more information value, which may require stronger processing resources. Optimization schemes based on this new data will utilize algorithms such as linear programming, genetic algorithms, or other optimization techniques to reconfigure the connections between vehicle nodes and fog nodes, thereby achieving higher overall benefits and better system performance. This can enhance decision support for dynamic cooperative vehicle control and improve the operational efficiency and responsiveness of the entire intelligent transportation system.
[0034] In one embodiment, the formula After step S404, which optimizes the preset scheme to obtain the optimized allocation scheme, the method further includes: S4051: Determine whether the maximized total revenue is less than a preset revenue threshold; S4052: If the total revenue is less than the preset revenue threshold, then delete multiple vehicle nodes sequentially according to a preset number until the maximum total revenue is greater than or equal to the preset revenue threshold.
[0035] As described in steps S4051-S4052 above, the maximized total revenue calculated using the optimization algorithm will be evaluated and compared with a pre-set revenue threshold. The revenue threshold is a benchmark value set based on system requirements and the actual application scenario, representing the minimum revenue level the system expects to achieve. If the maximized total revenue is less than the preset revenue threshold, it indicates that the current resource allocation scheme has failed to achieve the expected performance goals, meaning that the data allocation efficiency and resource utilization of the current vehicle nodes and fog nodes are insufficient, potentially leading to slower system response and insufficient real-time performance. A resource reduction strategy needs to be initiated, and the system will sequentially delete multiple vehicle nodes. These nodes can be based on priority or low data contribution, or they can be randomly determined nodes, thereby reducing system complexity and resource consumption, potentially improving the collaboration efficiency between the remaining vehicle nodes and fog nodes. By gradually deleting nodes, the system can test the impact of each adjustment on the overall revenue and update the revenue calculation in real time until the maximized total revenue meets or exceeds the preset revenue threshold. This strategy ensures efficiency and performance while reducing system operating costs. Ultimately, if the revenue reaches the preset target, it indicates that the resource allocation is more reasonable and provides a basis for subsequent dynamic adjustments.
[0036] In one embodiment, after step S6, where the cloud trains a global model based on each of the fog nodes and sends the global model to each of the vehicle nodes, the method further includes: S701: The vehicle node extracts the global model parameters from the global model; S702: Input the global model parameters into the local initial model to obtain the local intermediate model; S703: Train the local intermediate model based on the local data stored in the vehicle node to obtain the updated global model.
[0037] As described in steps S701-S703 above, the local model is updated. Each vehicle node receives the updated global model from the cloud and extracts its global model parameters, typically including model weights and biases. This provides the basic knowledge input for the new model. The vehicle node then inputs the extracted global model parameters into its local initial model to generate a local intermediate model. This maps the global model parameters to the corresponding structure of the local model, enabling the local model to learn knowledge from the global model. By applying the global model parameters to the local model, the vehicle node exhibits higher adaptability and performance in new environments and tasks, demonstrating superior performance when processing real-time data. The deep-learned features of the local intermediate model greatly improve its ability to understand and analyze local data during subsequent training, providing more accurate and reliable information for vehicle node decision-making in dynamic traffic scenarios. The vehicle node will use the stored local data to further train the local intermediate model to generate an updated global model. This deep optimization of the local intermediate model aims to make it more effectively adaptable to specific environments and scenarios. By training on local data, vehicle nodes can further adjust model parameters based on actual traffic conditions, driving habits, and other key factors to improve model accuracy and response speed. During training, vehicle nodes not only fully utilize the knowledge provided by the global model but also combine it with specific local vehicle data, accelerating model learning. The updated model will provide better decision support, helping vehicles react quickly in complex and dynamically changing road environments. This step ensures the effective implementation of the global model in local environments, improving the overall performance of the intelligent transportation system and enabling more personalized dynamic control based on the specific needs of each vehicle node. Through this training and updating process, the system better demonstrates the advantages of distributed learning, ultimately achieving high efficiency and safety in cooperative driving.
[0038] The beneficial effects of this invention are as follows: By using multiple fog nodes for intermediate model training, the system can effectively integrate information and data from different vehicle nodes, improve the training speed of the model, enhance the model's adaptability to diverse driving environments, overcome the limitations of insufficient generalization ability and poor training effect of traditional training methods, and enable vehicles to quickly adjust their strategies according to the current traffic conditions, thereby optimizing the overall flow and safety of the intelligent transportation system.
[0039] Reference Figure 2The present invention also provides a vehicle dynamic cooperative control system based on opportunistic federated learning, implemented through an opportunistic federated learning architecture. This architecture includes a cloud, multiple fog nodes, and individual vehicle nodes. Each fog node is connected to at least one vehicle node, and each fog node is connected to the cloud. The fog nodes receive data collected by each vehicle node, train intermediate models to obtain training gradients, and upload these gradients to the cloud. The cloud trains a global model based on the training gradients uploaded by each fog node and sends the global model to each vehicle node. The system includes: The acquisition module 10 is used to acquire in real time the available resource information, processing density, and first location information of each fog node, as well as the data information collected by each vehicle node and the second location information of each vehicle node. The determination module 20 is used to determine the processing score corresponding to the fog node based on the available resource information; The calculation module 30 is used to calculate the distance score from each vehicle node to each fog node based on the first location information and the second location information, and to calculate the data volume based on the data information; The allocation module 40 is used to allocate at least one vehicle node to each fog node based on the processing score, the distance score, the processing density, and the data volume, and to receive data information on the allocation of vehicle nodes. The training module 50 is used for each fog node to train the intermediate model based on the received data information to obtain the corresponding training gradient, and to upload the training gradient to the cloud. Generation module 60 is used for the cloud to train a global model based on each of the fog nodes and send the global model to each of the vehicle nodes; The input module 70 is used for each of the vehicle nodes to acquire real-time data and input the real-time data into the global model to obtain the target decision.
[0040] In one embodiment, the allocation module 40 includes: The delay calculation submodule is used to calculate the maximum end-to-end delay based on the distance score; The pre-allocation submodule is used to pre-allocate each of the vehicle nodes to each of the fog nodes according to a preset scheme; The resource requirement calculation submodule is used to calculate the resource requirement based on the formula. Calculate the resource requirements for each vehicle node; among which, , , This represents the resource requirement of the i-th vehicle node. This represents the amount of data for the i-th vehicle node. This represents the processing density of the j-th fog node. This indicates the preset maximum allowable delay. This represents the maximum end-to-end delay of the transmission value from the i-th vehicle node to the j-th fog node. This indicates the preset error parameter. This represents the processing score of the j-th fog node. This represents the total number of vehicle nodes; The optimization submodule is used to optimize the formula. The preset scheme is optimized to obtain an optimized allocation scheme; wherein, , Let represent the revenue of the i-th vehicle node. This means maximizing total revenue. Indicates the number of fog nodes; The allocation submodule is used to allocate vehicle nodes to each fog node based on the optimized allocation scheme, so that the fog node receives the data information of the allocated vehicle nodes.
[0041] In one embodiment, the allocation module 40 further includes: The location update submodule is used to update the second location information and data volume of each vehicle node, and recalculate the maximum end-to-end delay between each vehicle node and each fog node. The re-optimization submodule is used to re-optimize the allocation scheme based on the recalculated maximum end-to-end latency between each vehicle node and each fog node, as well as the data volume of each vehicle node.
[0042] In one embodiment, the allocation module 40 further includes: The maximum total revenue judgment submodule is used to determine whether the maximum total revenue is less than a preset revenue threshold; The vehicle node deletion submodule is used to delete multiple vehicle nodes sequentially according to a preset number if the total revenue is less than the preset revenue threshold, until the maximum total revenue is greater than or equal to the preset revenue threshold.
[0043] In one embodiment, the vehicle dynamic cooperative control system based on opportunistic federated learning further includes: A global model parameter extraction module is used to extract global model parameters from the global model of the vehicle node; A global model parameter input module is used to input the global model parameters into the local initial model to obtain a local intermediate model; The local intermediate model training module is used to train the local intermediate model based on the local data stored in the vehicle node to obtain the updated global model.
[0044] Reference Figure 3 This application also provides a computer device, which may be a server, and its internal structure may be as follows: Figure 3 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores various data and information. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it can implement the vehicle dynamic cooperative control method based on opportunistic federated learning described in any of the above embodiments.
[0045] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer equipment on which the present application is applied.
[0046] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, can implement the vehicle dynamic cooperative control method based on opportunistic federated learning described in any of the above embodiments.
[0047] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media provided in this application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0048] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0049] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of the claims of the present invention.
Claims
1. A vehicle dynamic cooperative control method based on opportunistic federated learning, characterized in that, This is implemented using an opportunistic federated learning architecture, which includes a cloud, multiple fog nodes, and individual vehicle nodes. Each fog node is connected to at least one vehicle node, and each fog node is connected to the cloud. The fog nodes receive data collected by the vehicle nodes, train intermediate models to obtain training gradients, and upload these gradients to the cloud. The cloud trains a global model based on the training gradients uploaded by each fog node and sends the global model to each vehicle node. The method includes: The system acquires in real time the available resource information, processing density, and first location information of each fog node, as well as the data information collected by each vehicle node and the second location information of each vehicle node. The processing score for the corresponding fog node is determined based on the available resource information; Based on the first location information and the second location information, calculate the distance score from each vehicle node to each fog node, and calculate the data volume based on the data information; Based on the processing score, the distance score, the processing density, and the data volume, at least one vehicle node is assigned to each fog node to receive the data information of the assigned vehicle node; Each fog node trains an intermediate model based on the received data to obtain the corresponding training gradient, and then uploads the training gradient to the cloud. The cloud platform trains a global model based on each of the fog nodes and sends the global model to each of the vehicle nodes; Each of the vehicle nodes acquires real-time data and inputs the real-time data into the global model to obtain the target decision.
2. The vehicle dynamic cooperative control method based on opportunistic federated learning as described in claim 1, characterized in that, The step of allocating at least one vehicle node to each fog node based on the processing score, the distance score, the processing density, and the data volume, and receiving data information on the allocated vehicle nodes, includes: Calculate the maximum end-to-end delay based on the distance score; Each of the vehicle nodes is pre-assigned to each of the fog nodes according to a preset scheme; According to the formula Calculate the resource requirements for each vehicle node; among which, , , This represents the resource requirement of the i-th vehicle node. This represents the amount of data for the i-th vehicle node. This represents the processing density of the j-th fog node. This indicates the preset maximum allowable delay. This represents the maximum end-to-end delay of the transmission value from the i-th vehicle node to the j-th fog node. This indicates the preset error parameter. This represents the processing score of the j-th fog node. This represents the total number of vehicle nodes; According to the formula The preset scheme is optimized to obtain an optimized allocation scheme; wherein, , Let represent the revenue of the i-th vehicle node. This means maximizing total revenue. Indicates the number of fog nodes; Based on the optimized allocation scheme, a vehicle node is allocated to each fog node so that the fog node receives the data information of the allocated vehicle node.
3. The vehicle dynamic cooperative control method based on opportunistic federated learning as described in claim 2, characterized in that, After the step of allocating vehicle nodes to each fog node based on the optimized allocation scheme, so that the fog node receives the data information of the allocated vehicle nodes, the method further includes: Update the second location information and data volume of each vehicle node, and recalculate the maximum end-to-end delay between each vehicle node and each fog node; The allocation scheme is re-optimized based on the recalculated maximum end-to-end latency between each vehicle node and each fog node, and the data volume of each vehicle node.
4. The vehicle dynamic cooperative control method based on opportunistic federated learning as described in claim 2, characterized in that, According to the formula After optimizing the preset scheme to obtain the optimized allocation scheme, the method further includes: Determine whether the maximized total revenue is less than a preset revenue threshold; If the total revenue is less than the preset revenue threshold, then multiple vehicle nodes are deleted sequentially according to a preset number until the maximum total revenue is greater than or equal to the preset revenue threshold.
5. The vehicle dynamic cooperative control method based on opportunistic federated learning as described in claim 1, characterized in that, After the step of training a global model based on each of the fog nodes in the cloud and sending the global model to each of the vehicle nodes, the method further includes: The vehicle node extracts global model parameters from the global model; The global model parameters are input into the local initial model to obtain the local intermediate model; The local intermediate model is trained based on the local data stored in the vehicle node to obtain the updated global model.
6. A vehicle dynamic cooperative control system based on opportunistic federated learning, characterized in that, This is implemented using an opportunistic federated learning architecture, which includes a cloud, multiple fog nodes, and individual vehicle nodes. Each fog node is connected to at least one vehicle node, and each fog node is connected to the cloud. The fog nodes receive data collected by the vehicle nodes, train intermediate models to obtain training gradients, and upload these gradients to the cloud. The cloud trains a global model based on the training gradients uploaded by each fog node and sends the global model to each vehicle node. The system includes: The acquisition module is used to acquire in real time the available resource information, processing density, and first location information of each fog node, as well as the data information collected by each vehicle node and the second location information of each vehicle node; The determination module is used to determine the processing score corresponding to the fog node based on the available resource information; The calculation module is used to calculate the distance score from each vehicle node to each fog node based on the first location information and the second location information, and to calculate the data volume based on the data information; The allocation module is used to allocate at least one vehicle node to each fog node based on the processing score, the distance score, the processing density, and the data volume, and to receive data information on the allocation of vehicle nodes. The training module is used by each fog node to train the intermediate model based on the received data information to obtain the corresponding training gradient, and then upload the training gradient to the cloud. The generation module is used to train a global model based on each of the fog nodes in the cloud and send the global model to each of the vehicle nodes; The input module is used for each of the vehicle nodes to acquire real-time data and input the real-time data into the global model to obtain the target decision.
7. The vehicle dynamic cooperative control system based on opportunistic federated learning as described in claim 6, characterized in that, The allocation module includes: The delay calculation submodule is used to calculate the maximum end-to-end delay based on the distance score; The pre-allocation submodule is used to pre-allocate each of the vehicle nodes to each of the fog nodes according to a preset scheme; The resource requirement calculation submodule is used to calculate the requirements based on the formula. Calculate the resource requirements for each vehicle node; among which, , , This represents the resource requirement of the i-th vehicle node. This represents the amount of data for the i-th vehicle node. This represents the processing density of the j-th fog node. This indicates the preset maximum allowable delay. This represents the maximum end-to-end delay of the transmission value from the i-th vehicle node to the j-th fog node. This indicates the preset error parameter. This represents the processing score of the j-th fog node. This represents the total number of vehicle nodes; The optimization submodule is used to optimize the formula. The preset scheme is optimized to obtain an optimized allocation scheme; wherein, , Let represent the revenue of the i-th vehicle node. This means maximizing total revenue. Indicates the number of fog nodes; The allocation submodule is used to allocate vehicle nodes to each fog node based on the optimized allocation scheme, so that the fog node receives the data information of the allocated vehicle nodes.
8. The vehicle dynamic cooperative control system based on opportunistic federated learning as described in claim 7, characterized in that, The allocation module further includes: The location update submodule is used to update the second location information and data volume of each vehicle node, and recalculate the maximum end-to-end delay between each vehicle node and each fog node. The re-optimization submodule is used to re-optimize the allocation scheme based on the recalculated maximum end-to-end delay between each vehicle node and each fog node, as well as the data volume of each vehicle node.
9. The vehicle dynamic cooperative control system based on opportunistic federated learning as described in claim 7, characterized in that, The allocation module further includes: The maximum total revenue judgment submodule is used to determine whether the maximum total revenue is less than a preset revenue threshold; The vehicle node deletion submodule is used to delete multiple vehicle nodes sequentially according to a preset number if the total revenue is less than the preset revenue threshold, until the maximum total revenue is greater than or equal to the preset revenue threshold.
10. The vehicle dynamic cooperative control system based on opportunistic federated learning as described in claim 6, characterized in that, The vehicle dynamic cooperative control system based on opportunistic federated learning also includes: A global model parameter extraction module is used to extract global model parameters from the global model of the vehicle node; A global model parameter input module is used to input the global model parameters into the local initial model to obtain a local intermediate model; The local intermediate model training module is used to train the local intermediate model based on the local data stored in the vehicle node to obtain the updated global model.
Citation Information
Patent Citations
Federal learning-based privacy protection model aggregation system and method in Internet of Vehicles
CN113163366A
Asynchronous federated learning method, system, device and terminal for mobile vehicle
CN114116198A
Dynamic load-oriented data processing task resource optimization method, device and system
CN119271402A
Federal learning optimization system and method for intelligent network connection automobile scene
CN119830120A
Method and an apparatus for latency analysis in a communication system
WO2024151016A1