Congestion processing method and electronic device

By constructing training samples and training a target association-enhanced time-series model, combined with an expert case library and reward function, accurate prediction and proactive intervention for traffic congestion are achieved. This solves the problems of alarm lag and lack of specificity in existing technologies, and improves the intelligence level and traffic efficiency of traffic management.

CN123182418APending Publication Date: 2026-11-27ZHEJIANG SUPCON INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611514811.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing traffic monitoring and alarm systems suffer from problems such as delayed alarms, insufficient data utilization, poor recommendation adaptability, and lack of closed-loop mechanisms, resulting in untimely congestion handling and a lack of targeted solutions.

Method used

A training sample is constructed that includes intersection traffic status, associated intersection features, signal operation features, and external scene features. The target association enhancement time series model is trained, and a processing scheme is generated by combining an expert case library and a reward function to achieve accurate prediction and proactive intervention of traffic congestion.

Benefits of technology

It enables accurate prediction and proactive intervention of traffic congestion, improves the intelligence level and traffic efficiency of traffic control, solves the problems of delayed alarms and lack of targeted solutions, and improves the response speed and adaptability of traffic management solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182418A_ABST
    Figure CN123182418A_ABST
Patent Text Reader

Abstract

The application provides a congestion processing method and an electronic device, wherein the method comprises the following steps: constructing a training sample according to historical data containing intersection traffic states, associated intersection features, signal operation features and external scene features, and training a target associated enhanced time sequence model; then, the model is used to predict the intervention probability, the advance time length and the action category of the to-be-predicted data, and a congestion prompt is output in combination with an alarm threshold; if the congestion needs to be solved, a candidate expert case is determined based on an expert case library and the to-be-predicted data, and a target processing scheme is generated in combination with a reward function. The application realizes early warning of congestion by fusing the intersection traffic states and the associated intersection information, generates a processing scheme based on the expert case library, effectively solves the problems of alarm lag, neglect of expert experience and poor practicability of the recommended scheme in the prior art, and improves the response speed and scheme adaptability of congestion governance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent traffic scheduling technology, and more specifically, to a congestion management method and electronic equipment. Background Technology

[0002] In modern urban traffic management, signal control at road intersections is crucial for alleviating congestion. Currently, the mainstream approach uses fixed-time-period timing schemes, and green wave traffic is constructed by coordinating the phase differences of multiple intersections to improve arterial traffic efficiency. However, urban traffic flow exhibits strong nonlinearity, volatility, and regional propagation characteristics. Faced with sudden events such as short-term surges, upstream overflows, or accidents, pre-set solutions often exhibit response delays.

[0003] Existing traffic monitoring and alarm systems primarily rely on physical thresholds such as queue length, space occupancy, saturation, or average speed to determine congestion. The system uses real-time data and preset thresholds to determine if it has reached a critical state; if so, it issues an early warning, and then human experts manually adjust the system based on the congestion situation.

[0004] However, existing technologies suffer from several drawbacks, including delayed alarms, insufficient data utilization, poor recommendation adaptability, and a lack of closed-loop mechanisms. First, alarms based on physical thresholds often trigger only after congestion has already occurred, missing the optimal intervention window. Second, existing algorithms ignore the expert experience contained in manual control logs. Finally, recommended solutions often contradict the experience of on-site personnel and lack the closed-loop evolutionary capability to optimize based on performance. Summary of the Invention

[0005] The purpose of this application is to provide a congestion handling method and electronic device to address the shortcomings of the prior art, thereby solving the problems of delayed alarms, insufficient data utilization, poor recommendation adaptability, and lack of closed-loop mechanism in the prior art.

[0006] To achieve the above objectives, the technical solution adopted in this application is as follows: In a first aspect, this application provides a congestion handling method, the method comprising: Multiple training samples are constructed based on historical manual control events and the corresponding historical traffic data. Each training sample includes sample data and sample labels. The sample data includes: traffic state sequence of intersections, related intersection features of intersections, signal operation features, and external scene features. The sample labels include: intervention label, advance duration label, and intervention action category label. A target association enhancement time series model is trained based on the multiple training samples; The traffic data to be predicted is input into the target association enhanced time series model. The target association enhanced time series model predicts the target intervention probability, target advance time, and target intervention action category of the traffic data to be predicted. The current alarm threshold is determined, and prompt information is output based on the target intervention probability, target advance time, target intervention action category, and the current alarm threshold. The prompt information is used to indicate whether congestion needs to be resolved. If the prompt message indicates that congestion needs to be resolved, then based on the pre-built expert case library and the traffic data to be predicted, multiple candidate expert cases are determined from the expert case library, and a target processing solution is generated based on the multiple candidate expert cases and the pre-built reward function.

[0007] Optionally, training the target association enhancement time-series model based on the plurality of training samples includes: The multiple training samples are input into the initial association enhancement time series model, and the initial association enhancement time series model makes predictions on each of the training samples to obtain prediction results. The prediction results include the predicted intervention probability, the predicted advance duration, and the predicted intervention action category. The initial association enhancement time series model is iteratively updated based on the sample labels and the prediction results to obtain the target association enhancement time series model.

[0008] Optionally, the initial association enhancement temporal model includes: a temporal coding layer, an association aggregation layer, a feature fusion layer, and a multi-task output layer; The process by which the initial association-enhanced temporal model predicts each of the training samples to obtain the prediction results includes: The traffic state sequence in the training samples is input into the temporal coding layer for encoding processing to obtain temporal features; The associated intersection features in the training samples are input into the associated aggregation layer for aggregation processing to obtain associated features; The time-series features, the correlation features, the signal operation features, and the external scene features are input into the feature fusion layer for fusion processing to obtain fused features; The fused features are input into the multi-task output layer for prediction to obtain the prediction result.

[0009] Optionally, the step of iteratively updating the initial association-enhanced time-series model based on the sample labels and the prediction results to obtain the target association-enhanced time-series model includes: The sample weights of the training samples are determined, and the sample weights are used to control the importance of the training samples in training based on the intervention effect labels of the training samples; Based on the sample weights, sample labels, and prediction results, determine the binary cross-entropy loss, the lead time regression loss, the action category classification loss, and the association consistency constraint loss, and determine the loss result based on the binary cross-entropy loss, the lead time regression loss, the action category classification loss, and the association consistency constraint loss. The initial association enhancement time series model is iteratively updated based on the loss result. If the loss value or the current iteration number meets the preset iteration termination condition, the updated initial association enhancement time series model is used as the target association enhancement time series model.

[0010] Optionally, the step of outputting prompt information based on the target intervention probability, target advance duration, target intervention action category, and the current alarm threshold includes: If the target intervention probability is greater than the current alarm threshold, and the target advance duration is greater than or equal to the minimum preprocessing duration, then a target prompt message is output, which is used to indicate that congestion needs to be resolved.

[0011] Optionally, the step of determining multiple candidate expert cases from the pre-built expert case library and the traffic data to be predicted includes: Feature extraction is performed on each expert case in the expert case database to obtain expert fusion features; The score of each expert case is determined based on the fusion features of the expert cases and the fusion features of the traffic data to be predicted, the intersection correlations of the expert cases and the associated intersection features of the traffic data to be predicted, the prediction results of the traffic data to be predicted, and the intervention effect labels of the expert cases. The expert cases are sorted according to their scores to obtain a sorting result, and multiple candidate expert cases are determined from the expert case library based on the sorting result.

[0012] Optionally, generating the target processing scheme based on the plurality of candidate expert cases and a pre-built reward function includes: Generate candidate expert proposals based on candidate expert cases; Based on the pre-manual control state sequence of each candidate expert scheme and the traffic state sequence of the traffic data to be predicted, the adaptation residuals of each candidate expert scheme and the traffic data to be predicted are determined respectively. Based on the adaptation residuals of each candidate expert scheme, each candidate expert scheme is modified to obtain the candidate processing scheme corresponding to each candidate expert case. The candidate processing schemes are scored based on the reward function to obtain the predicted score results of each candidate processing scheme. The predicted score results include: the decrease in intervention probability and the impact of coordination at related intersections. The target processing scheme is generated based on the predicted scores of each candidate processing scheme.

[0013] Optionally, generating the target processing scheme based on the scoring results of each candidate processing scheme includes: Each of the candidate processing schemes is broken down to obtain multiple action units, which include target phase, green light increment / decrement, periodic change, and phase difference compensation. The action units are reorganized based on preset constraints to obtain the target processing scheme.

[0014] Optionally, the process of constructing the expert case library includes: Obtain manual control operation logs and historical traffic data, including: traffic signal controller logs, traffic flow data, and the relationship between intersections; An expert case library is constructed based on the manual control operation logs and historical traffic data. The expert case library includes multiple expert cases, each of which includes: the state sequence before manual control, the manual control action, the relationship between intersections, and the intervention effect label.

[0015] Secondly, embodiments of this application also provide an electronic device, including: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of a congestion handling method as described in any one of the first aspects.

[0016] The beneficial effects of this application are as follows: By constructing training samples that include intersection traffic conditions, related intersection features, signal operation features, and external scene features, a target-related enhanced time-series model is trained, achieving accurate prediction and proactive intervention for traffic congestion. This application not only considers the temporal changes of a single intersection but also integrates the related influences of upstream and downstream intersections and external scene features, significantly improving the accuracy of intervention probability prediction. Simultaneously, by combining an expert case library with a reward function generation processing scheme, the generated scheme inherits successful historical expert experience while conforming to current traffic optimization goals. This effectively solves the problems of alarm lag, lack of specificity in schemes, and difficulty in reusing expert experience in existing technologies, realizing a shift from passive response to proactive governance and improving the intelligence level and traffic efficiency of urban traffic control.

[0017] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart of a congestion handling method provided in an embodiment of this application is shown; Figure 2 This document illustrates a flowchart of a target association enhancement temporal model trained according to an embodiment of this application. Figure 3 This illustration shows a structural diagram of an initial association enhancement time series model provided in an embodiment of this application; Figure 4 This application provides a flowchart illustrating how to obtain a prediction result. Figure 5 This document illustrates a flowchart of obtaining a target association enhancement time series model according to an embodiment of this application. Figure 6 This application provides a flowchart for determining candidate expert cases according to an embodiment of the present application. Figure 7 A flowchart of a target generation processing scheme provided in an embodiment of this application is shown; Figure 8 A flowchart of yet another target generation processing scheme provided in an embodiment of this application is shown; Figure 9 This application provides a flowchart of a method for constructing an expert case library. Figure 10 This paper shows a schematic diagram of the structure of a congestion handling device provided in an embodiment of this application; Figure 11 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0021] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0022] Existing congestion solutions mainly suffer from problems such as delayed alarms, data waste, impractical recommended solutions, and lack of closed-loop optimization.

[0023] First, traditional congestion alarm schemes rely on physical thresholds such as queue length and occupancy rate. When the system alarms, the intersection is often already experiencing severe queuing or overflow, missing the best intervention window in the early stages of congestion.

[0024] Secondly, existing solutions typically treat periods of manual intervention as abnormal noise and remove or weaken them during the data cleaning stage. This prevents the model from learning "what states will trigger manual intervention," "why experts choose certain types of regulatory actions," and "which regulatory actions are more effective in similar situations." Consequently, historical data on manual intervention cannot be fully utilized.

[0025] Furthermore, the existing recommended solutions focus on minimizing single-point delays, neglecting comprehensive objectives such as main road protection, queue balancing, spillover risk mitigation, and phase switching smoothness in manual duty. This results in inconsistencies between the recommended solutions and the experience of on-site personnel, a low adoption rate, and a lack of practical adaptability.

[0026] Finally, existing solutions are mostly model stacking, such as first using a time series model for alarms, then using case reasoning to retrieve solutions, and then using preference learning to correct solutions. There is a lack of progressive dependence of data structures and calculation results between each step, a lack of continuous processing mechanism from alarms to recommendations, and no establishment of a reverse optimization closed loop for execution effects, so they cannot continuously evolve with changes in traffic flow.

[0027] Based on this, this application proposes a congestion management method. First, training samples are constructed using historical data including intersection traffic conditions, features of associated intersections, signal operation characteristics, and external scene features to train a target association-enhanced time-series model. Then, this model is used to predict the intervention probability, advance warning time, and action category of the data to be predicted, and congestion alerts are output based on alarm thresholds. If congestion needs to be resolved, candidate expert cases are determined based on an expert case library and the data to be predicted, and a target management solution is generated using a reward function. This application achieves early warning of congestion by integrating intersection traffic conditions and information from associated intersections, and generates management solutions based on an expert case library. This effectively solves the problems of delayed alarms, neglect of expert experience, and poor practicality of recommended solutions in existing technologies, improving the response speed and adaptability of congestion management solutions.

[0028] Figure 1 The diagram illustrates a congestion mitigation method according to an embodiment of this application. The method can be executed by an electronic device, such as... Figure 1 As shown, the method includes: S101. Construct multiple training samples based on historical manual control events and the corresponding historical traffic data.

[0029] Each training sample includes sample data and sample labels. The sample data includes: traffic state sequence of the intersection, related intersection features, signal operation features, and external scene features. The sample labels include: intervention label, advance duration label, and intervention action category label.

[0030] Optionally, historical manual control events can be obtained through manual control operation logs, which include the start and end times of manual takeover, operation type, adjusted phase, green light extension amount, phase jump command, and temporary scheme number.

[0031] Historical traffic data includes traffic signal controller operation logs, detector traffic flow data, and upstream / downstream intersection correlations. The signal controller operation logs include phase start time, phase end time, cycle length, green light duration, phase difference, control mode, and scheme number. Detector traffic flow data includes lane flow, turning saturation, average queue length, space occupancy, number of stops, green light arrival rate, and lane queue overflow status. Upstream / downstream intersection correlations include inflow flow, queues, and green wave phases at the current intersection's upstream and downstream related intersections.

[0032] Training samples can characterize the traffic state sequence, associated intersection features, signal operation features, and external scene features of an intersection over a historical period. By extracting features from the historical traffic data of the intersection, we can obtain the traffic state sequence, associated intersection features, signal operation features, and external scene features of the intersection.

[0033] The manual control operation log records the control center's intervention actions at intersections. Based on these intervention actions, intervention labels can be added to training samples. In one possible implementation, if the control center performed intervention action B at time A in historical traffic data, after converting the historical traffic data into training samples, the intervention label of the training samples can be set to 1. Based on time A, the lead time label records how much time is left before congestion occurs, and based on intervention action B, the intervention action category label records what type of operation was performed.

[0034] Optionally, intervention label It can be expressed as the following formula (1), where M represents the historical time period corresponding to the historical traffic data, and M represents the prediction time window.

[0035] (1) Pre-duration tags It can be expressed as the following formula (2): (2) in, This indicates the moment when the congestion risk reaches the judgment criteria. Used to characterize how much time is left before congestion occurs, where t represents the sample sampling time. This is used to ensure that the advance time is not negative.

[0036] Intervention Action Category Labels It can be expressed as the following formula (3): (3) in, This is an action classification mapping function used to map operations such as phase jumps, phase locking, period extensions, and temporary scheme switching to action categories. This refers to actual human intervention or control actions.

[0037] Traffic state sequences can be obtained by feature extraction from traffic flow data of detectors at an intersection over the past N periods, where N is a positive integer. They are used to characterize traffic flow, queue length, space occupancy, number of stops, arrival rate at green light, and overflow status at the intersection over several past periods.

[0038] The features of the associated intersections can be obtained by extracting features such as inflow flow, queuing, and green wave phase from the information on the relationship between upstream and downstream intersections. These features are used to characterize the inflow flow, queuing status, green wave phase features, and dynamic association weights of upstream and downstream intersections.

[0039] Signal operation characteristics can be obtained by extracting features from information such as signal cycle length, green light duration, phase, phase difference, control mode, and scheme number.

[0040] External scene features can be features obtained by extracting features from information such as time period, holidays, and weather.

[0041] S102. A target association enhancement time series model is obtained by training multiple training samples.

[0042] Optionally, training samples can be input into an initial association-enhanced time series model. The model continuously attempts to predict, obtains initial prediction results, and adjusts the model parameters based on the initial prediction results and sample labels until the model meets the preset iteration termination condition, thus obtaining the target association-enhanced time series model.

[0043] S103. Input the traffic data to be predicted into the target association enhanced time series model. The target association enhanced time series model predicts the target intervention probability, target advance time, and target intervention action category of the traffic data to be predicted. Determine the current alarm threshold and output prompt information based on the target intervention probability, target advance time, target intervention action category, and current alarm threshold. The prompt information is used to indicate whether congestion needs to be resolved.

[0044] Traffic data to be predicted refers to the intersection data collected in real time. In one possible implementation, the traffic data to be predicted can be processed using the same method as the training samples to extract features, thereby obtaining the traffic state sequence of the intersection corresponding to the traffic data to be predicted, the associated intersection features, signal operation features, and external scene features.

[0045] The target intervention probability refers to the likelihood of human intervention being required, calculated by the model. The target lead time refers to the time between the predicted intervention time and the occurrence of congestion. The target intervention action category refers to the type of intervention action predicted by the model, such as adjusting phase, adjusting green light duration, or adjusting traffic light cycle.

[0046] The alarm threshold can be a dynamically determined boundary value based on the current congestion alarm situation and the cost of congestion alarms. When the model predicts that the probability of target intervention exceeds the alarm threshold, it is considered that a congestion warning needs to be issued. For example, if the alarm threshold is 80% and the model predicts that the target probability is 90%, it is considered that a prompt message needs to be generated.

[0047] Optionally, the current number of false alarms, number of missed alarms, number of correct alarms, cost of false alarms, cost of missed alarms, and benefits of early alarms can be obtained, and the current alarm threshold can be determined based on the number of false alarms, number of missed alarms, number of correct alarms, cost of false alarms, cost of missed alarms, and benefits of early alarms.

[0048] As one possible implementation, the current alarm threshold The calculation method can be expressed as the following formula (4): (4) in, Indicates the cost of false alarms. This indicates underreporting of costs. This indicates the benefits of early warning. , , These represent the alarm thresholds to be selected. The number of false alarms, the number of missed alarms, and the number of correct alarms with effective lead time.

[0049] S104. If the prompt message indicates that congestion needs to be resolved, then based on the pre-built expert case library and the traffic data to be predicted, multiple candidate expert cases are determined from the expert case library, and a target processing solution is generated based on the multiple candidate expert cases and the pre-built reward function.

[0050] The expert case library stores multiple expert cases, which are successful examples processed by the control center from historical traffic data. These cases include the pre-manual intervention state sequence, manual intervention actions, inter-intersection relationships, and intervention effect labels. The intervention effect labels include changes in queue length, space occupancy, and number of stops, used to evaluate the effectiveness of manual intervention and generate a case effectiveness score.

[0051] Candidate expert cases refer to expert cases selected from the expert case library that are most similar to the traffic data to be predicted.

[0052] The reward function can be a pre-defined scoring strategy used to score candidate expert cases and generate a target processing solution based on the scores of the candidate expert cases.

[0053] One possible approach is to score candidate expert cases based on a reward function and select the highest-scoring case as the target processing solution.

[0054] As another possible implementation, candidate expert cases can be scored based on a reward function, and the K highest-scoring solutions can be reorganized to obtain the target processing solution, where K is a positive integer.

[0055] It should be noted that the training samples mentioned above can be constructed based on historical traffic data, manual control operation logs, and expert cases from an expert case library. Specifically, samples of intervention events are constructed centered around manual control events, generating intervention labels, lead time labels, and intervention action category labels. For negative samples that did not involve manual control and did not meet the congestion risk assessment criteria, the intervention label is set to 0, and the lead time label and intervention action category label can be set to null values ​​or preset default values. These are excluded from the calculation of lead time regression loss and action category classification loss through task masking. For cases where the effect of manual control is poor, manual takeover occurs again, or the operation of related intersections deteriorates, the sample weight is reduced based on the intervention effect label, or the case is treated as a low-scoring case in the candidate solution evaluation. Thus, a complete training sample set can be formed by combining intervention samples, non-intervention samples, and expert cases of different intervention effect levels, and the sample weight of each training sample can be determined based on the intervention effect label.

[0056] In this embodiment, a target-association enhanced time-series model is trained by constructing training samples that include intersection traffic conditions, associated intersection features, signal operation features, and external scene features, thereby achieving accurate prediction and proactive intervention for traffic congestion. This application not only considers the temporal changes of a single intersection but also integrates the associated influences of upstream and downstream intersections and external scene features, significantly improving the accuracy of intervention probability prediction. Simultaneously, by combining an expert case library and a reward function generation processing scheme, the generated scheme inherits successful historical expert experience while conforming to current traffic optimization goals. This effectively solves the problems of alarm lag, lack of specificity in schemes, and difficulty in reusing expert experience in existing technologies, realizing a shift from passive response to proactive governance and improving the intelligence level and traffic efficiency of urban traffic control.

[0057] Figure 2 The flowchart illustrating a training method for a target association enhancement temporal model provided in an embodiment of this application is shown, as follows: Figure 2 As shown, the process of training a target association enhancement time series model based on multiple training samples includes: S201. Input multiple training samples into the initial association enhancement time series model, and use the initial association enhancement time series model to predict each training sample to obtain the prediction result.

[0058] The prediction result refers to the output value calculated by the model based on the current input data. The prediction result includes the predicted intervention probability, the predicted lead time, and the predicted intervention action type. The predicted intervention probability indicates whether congestion intervention is needed, the predicted lead time indicates how far in advance intervention is needed, and the predicted intervention action type indicates what type of intervention action needs to be taken.

[0059] Optionally, multiple training samples can be input into the initial association-enhanced time series model in batches, and the models can be processed by each layer to output the predicted intervention probability, the predicted lead time, and the predicted intervention action category as the prediction results.

[0060] S202. Based on the sample labels and prediction results, the initial association enhancement time series model is iteratively updated to obtain the target association enhancement time series model.

[0061] Optionally, by comparing the true values ​​in the sample labels with the predicted values ​​in the prediction results, the loss results can be calculated, and the internal parameters of the initial association enhancement time series model can be iteratively adjusted based on the loss results until the preset iteration termination condition is reached, and the updated initial association enhancement time series model is used as the target association enhancement time series model.

[0062] The iteration termination condition can be that the loss value converges to a preset range or the current iteration number reaches the maximum iteration number.

[0063] Figure 3 This diagram illustrates the structure of an initial association enhancement time-series model provided in an embodiment of this application. The structure of the target association enhancement time-series model is the same as that of the initial association enhancement time-series model. (Refer to...) Figure 3 The initial association-enhanced temporal model includes: a temporal coding layer, an association aggregation layer, a feature fusion layer, and a multi-task output layer.

[0064] Figure 4 A flowchart illustrating a method for obtaining a prediction result, as provided in an embodiment of this application, is shown below. Figure 3 and Figure 4 The process by which the aforementioned initial association-enhanced time-series model predicts each training sample to obtain the prediction results includes: S401. Input the traffic state sequence in the training samples into the temporal coding layer for encoding processing to obtain temporal features.

[0065] The temporal coding layer can be a Long Short-Term Memory (LSTM) network. After inputting the traffic state sequence into the LTM network, temporal features are encoded. The mathematical form of the LTM network encoding the state sequence of this intersection is as follows: , Representing temporal characteristics, Indicates the past at the current intersection A traffic state sequence over a period of time. This refers to the Long Short-Term Memory (LSTM) network.

[0066] S402. Input the associated intersection features in the training samples into the associated aggregation layer for aggregation processing to obtain associated features.

[0067] Optionally, the association aggregation layer can transform and aggregate the features of associated intersections. The processing of the association aggregation layer can be represented as follows: ,in, Indicates the associated features, This indicates that the intersection is currently hidden. This indicates the hidden state of the upstream or associated intersection u. This represents the weight of the influence of intersection u on intersection i. This represents the set of associated intersections. The associated features are used to reflect the impact of upstream and downstream intersections on the current intersection's traffic input, queue propagation, and green wave coordination.

[0068] S403. Input the temporal features, correlation features, signal operation features, and external scene features into the feature fusion layer for fusion processing to obtain fused features.

[0069] Optionally, the feature fusion layer can fuse temporal features, correlation features, signal operation features, and external scene features input to the feature fusion layer. The mathematical representation of the fusion process is as follows: , Indicates fusion features, Indicates the signal operation characteristics, It represents the characteristics of the external scene.

[0070] S404. Input the fused features into the multi-task output layer for prediction to obtain the prediction result.

[0071] Optionally, the multi-task output layer can be predicted using the following equations (5)-(7) to obtain the prediction results.

[0072] (5) (6) (7) in, This indicates the probability of target intervention within the future window. This represents the integrated traffic status representation. Indicates the time elapsed before the target is achieved. This indicates the category of the target intervention action, used to characterize the predicted probability of various artificially regulated actions; The sigmoid function is used to compress the output to between 0 and 1. For normalized classification functions, For model parameters, Indicates the parameters of the regression task. This represents the parameters for the action classification task.

[0073] In this embodiment, training samples are input into an initial association-enhanced time-series model for prediction, and the model is iteratively updated using the difference between the sample labels and the prediction results, thereby achieving adaptive optimization of the model parameters. This application enables the model to autonomously learn the mapping relationship between complex spatiotemporal correlation features in traffic data and human intervention strategies, ensuring that the final target association-enhanced time-series model has high-precision prediction capabilities and can accurately output intervention probability, advance warning time, and action category.

[0074] Figure 5 This document illustrates a flowchart of an embodiment of obtaining a target association enhancement time series model, as provided in this application. Figure 5 As shown, the process of iteratively updating the initial association-enhanced time-series model based on sample labels and prediction results to obtain the target association-enhanced time-series model includes: S501. Determine the sample weights of the training samples. The sample weights are used to control the importance of the training samples in training based on the intervention effect labels of the training samples.

[0075] Optionally, the sample weights of the training samples can be calculated using the following formula (8).

[0076] (8) in, Indicates the first The sample weights of each training sample. These are weighting coefficients. Represents the normalization function. This represents the intervention effect score of the sample.

[0077] S502. Based on sample weights, sample labels, and prediction results, determine the binary cross-entropy loss, lead time regression loss, action category classification loss, and association consistency constraint loss, and determine the loss results based on the binary cross-entropy loss, lead time regression loss, action category classification loss, and association consistency constraint loss.

[0078] Alternatively, the loss result can be calculated based on the following equation (9).

[0079] (9) in, This represents the binary cross-entropy loss, used to indicate the loss value for predicting the probability of intervention. This indicates the loss due to early regression. This represents the loss for classifying action categories. This represents the loss due to the association consistency constraint. Indicates the weights of different loss terms. This represents the sample weights of the training samples.

[0080] The loss due to association consistency constraints can be expressed as equation (10).

[0081] (10) in, Intervention probability when using complete associated input This represents the intervention probability obtained after removing the input from the upstream intersection u. This represents the association weight between upstream intersection u and current intersection i. Indicates the consistency interval. This indicates the type of hinge damage; penalties are only imposed if the damage falls below the required level. If... It's very large, indicating that the upstream... At the current intersection The impact is significant. Remove it at this point. After inputting the data, the predicted intervention probability by the model should change significantly. If the change is not significant, it indicates that the model is not truly utilizing this important upstream information, thus incurring a penalty.

[0082] S503. Iteratively update the initial association enhancement time series model based on the loss result. If the loss value or the current iteration number meets the preset iteration termination condition, then the updated initial association enhancement time series model is used as the target association enhancement time series model.

[0083] Optionally, the initial association enhancement time series model can be iteratively updated based on the loss result. If the loss value converges to a preset range, or the current iteration number reaches the maximum iteration number, training can be stopped, and the initial association enhancement time series model obtained at this time can be used as the target association enhancement time series model.

[0084] This application's embodiments utilize a target-association enhanced time-series model to infer real-time traffic data to be predicted, enabling simultaneous output of target intervention probability, target advance time, and target intervention action type. By introducing a current alarm threshold to determine the intervention probability, proactive early warning and accurate identification before congestion occurs are achieved, effectively avoiding false alarms and missed alarms. Combined with advance time and action type prompts, the system can promptly generate clear congestion resolution instructions, thereby transforming traffic management from passive response to proactive intervention, significantly improving the efficiency and response speed of traffic congestion handling.

[0085] Optionally, the process of outputting prompt information based on the target intervention probability, target advance time, target intervention action type, and current alarm threshold includes: If the target intervention probability is greater than the current alarm threshold, and the target advance duration is greater than or equal to the minimum preprocessing duration, then a target prompt message will be output. The target prompt message is used to indicate that congestion needs to be resolved.

[0086] Optionally, after determining the current alarm threshold based on the aforementioned formula (4), it is possible to determine whether to output target prompt information based on the current alarm threshold and the target advance time. When the target intervention probability and the target advance time meet the following conditions... At that time, target prompt information can be generated.

[0087] in, Indicates the probability of target intervention. Indicates the current alarm threshold. This indicates the minimum preprocessing time required to implement the recommended scheme. This indicates the time required to reach the target in advance. If the above formula is not met, the target prompt message can be omitted, or a prompt message indicating that there is currently no congestion can be displayed.

[0088] Figure 6 This application provides a flowchart for determining candidate expert cases, as illustrated in an embodiment. Figure 6 The process of determining multiple candidate expert cases from the pre-built expert case library and the traffic data to be predicted includes: S601. Extract features from each expert case in the expert case library to obtain expert fusion features.

[0089] Optionally, the expert case includes the pre-manual intervention state sequence, manual intervention actions, inter-intersection relationships, intervention effect labels, and external scene features. Features can be extracted from the pre-manual intervention state sequence in the expert case to obtain temporal features, from the inter-intersection relationships to obtain relational features, and from the manual intervention actions to obtain expert action features. Then, the temporal features, relational features, expert action features, and external scene features are fused to obtain expert fusion features.

[0090] Expert action features can be features extracted from manual control operation logs, used to characterize the action type, phase of action, green light adjustment amount, cycle adjustment amount, phase difference compensation amount, and duration of the manual control action. For example, the manual operation record of the control center on traffic lights, such as extending the green light by ten seconds.

[0091] S602. Based on the fusion characteristics of experts and the fusion characteristics of traffic data to be predicted, the inter-intersection correlation of expert cases and the correlation characteristics of traffic data to be predicted, the prediction results of traffic data to be predicted and the intervention effect labels of expert cases, determine the score of each expert case.

[0092] The score of the expert case can be the combined distance between the expert case and the current scenario indicated by the traffic data to be predicted. The combined distance can be calculated using the following formula (11).

[0093] (11) in, This represents the combined distance between the current scenario and expert case j. This represents the latent space state representation of the current scene. This represents the latent space state representation of expert case j. Represents Euclidean distance. This represents the current intersection association matrix. Representing the association matrix of expert cases, Denotes the Frobenius norm of a matrix. Indicates the current probability of intervention. This indicates the intervention probability corresponding to the expert case. This indicates the consistency between the current predicted action and historical manual actions. This indicates the weight of each distance term.

[0094] S603. Sort the expert cases according to their scores, obtain the sorting results, and determine multiple candidate expert cases from the expert case library based on the sorting results.

[0095] The expert cases are sorted according to the comprehensive distance to obtain the sorting results. The top K expert cases in the sorting results are selected as candidate expert cases, where K is a positive integer.

[0096] Figure 7 A flowchart of a target generation processing scheme provided in an embodiment of this application is shown, with reference to... Figure 7 The process of generating the target processing scheme based on multiple candidate expert cases and a pre-built reward function includes: S701. Generate candidate expert solutions based on candidate expert cases.

[0097] Optionally, candidate expert schemes can be generated based on the historical performance scores of candidate expert cases according to the following formula (12).

[0098] (12) in, Indicates the candidate expert proposals. This refers to the actions taken manually in expert case j. This represents the top K expert cases with the smallest overall distance. This represents the performance score of expert case j. This represents the mean or quantile threshold of the effectiveness scores in the expert case library.

[0099] S702. Based on the pre-manual control state sequence of each candidate expert scheme and the traffic state sequence of the traffic data to be predicted, determine the adaptation residuals of each candidate expert scheme and the traffic data to be predicted.

[0100] For each candidate expert plan The adaptation residual can be calculated based on the state differences between the current scene and the historical scene. The calculation method can be expressed as the following formula (13).

[0101] (13) in, Indicates the adaptation residual. Represents the adaptor function. This indicates the difference in state between the current scene and historical scenes. This indicates the difference in the correlation structure between the current scenario and the candidate expert solutions. This indicates the difference in intervention risk between the current scenario and the candidate expert solutions. It can handle action parameters such as green light extension, cycle adjustment, and phase difference compensation.

[0102] It should be noted that the current scenario and the candidate expert solutions may not be exactly the same, therefore, adjustments can be made based on the differences between the candidate expert solutions. The included motion parameters were adjusted.

[0103] S703. Based on the adaptation residuals of each candidate expert scheme, modify each candidate expert scheme to obtain the candidate processing scheme corresponding to each candidate expert scheme.

[0104] Optionally, the candidate expert scheme can be modified based on the following formula (14) to obtain the candidate processing scheme.

[0105] (14) in, Indicates candidate processing schemes. This indicates the historical human actions in the candidate expert proposals. This represents the adaptation residual, used to characterize the amount of motion adjustment calculated based on the current scene.

[0106] For example, suppose a candidate expert solution manually extends the green light for a certain phase by 10 seconds, but the current congestion is more severe, then after adaptation, it may be recommended to extend it by 15 seconds.

[0107] S704. Based on the reward function, score each candidate treatment scheme to obtain the predicted score results of each candidate treatment scheme. The predicted score results include: the decrease in intervention probability and the impact of coordination at related intersections.

[0108] The reward function can be expressed as equation (15).

[0109] (15) This represents the expert preference reward for taking action a in state s. This indicates that delays reduce revenue. This represents the equilibrium benefit of queuing. This indicates the gain from the stability of period and phase switching. This represents the expert preference weights obtained through inverse reinforcement learning.

[0110] While scoring each candidate treatment scheme based on the reward function, counterfactual evaluation of the candidate treatment schemes can also be performed.

[0111] Optionally, the decrease in intervention probability and the impact of coordination at associated intersections can be calculated for each candidate treatment scheme. The decrease in intervention probability can be calculated as shown in the following formula (16).

[0112] (16) in, This represents the decrease in the probability of intervention after implementing the candidate treatment plan. Indicates the current probability of intervention. This represents the model's predicted probability of future intervention after assuming the implementation of the candidate treatment plan. This represents the time interval for observation or prediction after executing a candidate processing plan. This indicates the candidate processing scheme after adaptation.

[0113] After obtaining the decrease in the probability of intervention, the calculation method of the coordination effect of the associated intersection can be expressed as the following formula (17).

[0114] (17) This represents the coordination impact of candidate processing scheme j at associated intersections. This indicates the decrease in the probability of intervention. This indicates that experts prefer rewards. Indicates green wave coordination loss, This indicates the weight of each fusion item.

[0115] S705. Generate the target treatment scheme based on the predicted score results of each candidate treatment scheme.

[0116] Optionally, the candidate treatment schemes can be reorganized based on the predicted scoring results to obtain the target treatment scheme.

[0117] In this embodiment, when a prompt message indicates the need to resolve congestion, a pre-built expert case database is used for retrieval and matching, enabling the rapid identification of multiple candidate expert cases from historical successful cases. These candidate cases are then evaluated and optimized using a pre-built reward function to generate a target solution. This application effectively reuses the successful handling experience of historical experts, avoiding the high time consumption and uncertainty of generating solutions from scratch. It ensures that the generated solution not only conforms to the characteristics of the current traffic scenario but also guarantees optimization through the reward function, significantly improving the generation efficiency, reliability, and actual traffic improvement effects of congestion management solutions.

[0118] Figure 8 A flowchart of another target generation processing scheme provided in an embodiment of this application is shown, with reference to Figure 8 The process of generating the target processing solution based on the scoring results of each candidate processing solution includes: S801. Decompose each candidate processing scheme to obtain multiple action units. The action units include target phase, green light increment / decrease, period change, and phase difference compensation.

[0119] S802. Based on preset constraints, each action unit is reorganized to obtain the target processing scheme.

[0120] Optionally, the candidate processing scheme can be split into multiple action units, and then recombined under the premise of satisfying physical constraints. When recombining, the optimal action unit can be selected from the multiple action units based on the following equation (18).

[0121] (18) This represents the optimal action unit. This represents the action space obtained by splitting and reorganizing candidate processing schemes. This indicates that action A results in a decrease in the probability of intervention. This indicates the expert's preferred reward for action A. This indicates the green wave loss caused by action A. Indicates the action unit closest to the current one. This indicates a penalty for deviating too far from the actions of historical experts. This indicates the penalty weight.

[0122] The constraints include: phase green light time constraint, cycle length constraint, and phase difference adjustment amplitude constraint. The phase green light time constraint is expressed as Equation (19), the cycle length constraint is expressed as Equation (20), and the phase difference adjustment amplitude constraint is expressed as Equation (21).

[0123] (19) (20) (twenty one) This represents the green light time for the p-th phase. Let represent the minimum green light time for the p-th phase. This represents the maximum green light time for the p-th phase.

[0124] Indicates the length of the signal period. Indicates the minimum period. Indicates the maximum period.

[0125] Indicates the new phase difference. Indicates the original phase difference. This indicates the maximum allowable change in phase difference for a single adjustment.

[0126] Based on the above constraints and action units, the final target processing scheme can be generated, and the output structure of the target processing scheme can be expressed as the following equation (22).

[0127] (twenty two) This represents the target processing plan for the i-th intersection at time t. This represents the optimal action unit. This indicates the expected decrease in the probability of intervention. This indicates the expected improvement in queue size. This indicates the expected green wave loss. This indicates the confidence level of the target processing solution.

[0128] After the target treatment plan is executed, the actual effect score of the target treatment plan can be calculated by the following formula (23).

[0129] (twenty three) This represents the score indicating the actual effect after the target treatment plan is implemented. This indicates the improvement in queuing volume after implementation. This indicates the improvement in market share after implementation. This indicates the improvement in the number of parking incidents after implementation. This indicates the green wave loss caused after execution. Indicates whether manual takeover occurred again after execution. This indicates the weight of each evaluation item.

[0130] After calculating the actual effect score, if no further human intervention occurs after the implementation of the target treatment plan and the traffic indicators improve, the plan is added to the expert case library as a successful case, and the sample weight corresponding to that scenario is increased. The update method can be expressed as the following formula (24).

[0131] (twenty four) For the updated sample weights, Represents the original sample weights. This represents the learning rate or update coefficient. The score represents the actual effect achieved.

[0132] If manual intervention still occurs after the target processing plan is implemented, the actual manual actions can be recorded and compared with the system's recommended plan. The difference can then be used as a subsequent adaptation function. And the modified sample of the expert preference reward function. The calculation method of the difference analysis can be expressed as the following equation (25).

[0133] (25) Indicates differences in actions, Represents real human actions, This indicates the action in the system's recommended solution.

[0134] At the same time, the dynamic association weights between upstream and downstream intersections can be updated according to the changes in the upstream and downstream status after actual execution. The update method can be expressed as the following formula (26).

[0135] (26) This indicates the updated association weight at the next time step. This indicates the existing association weights. This represents the new association weights obtained based on actual observations. This represents the smoothing coefficient, with a value between 0 and 1.

[0136] Optionally, new cases can be used periodically to incrementally train the aforementioned target association enhancement time series model, adaptation function, and reward function, thereby achieving continuous optimization of the model.

[0137] Figure 9 This application provides a flowchart illustrating the construction of an expert case library, as illustrated in an embodiment. Figure 9 As shown, the process of building the expert case library includes: S901. Obtain manual control operation logs and historical traffic data. Historical traffic data includes: traffic signal controller logs, traffic flow data, and the relationship between intersections.

[0138] S902. Construct an expert case library based on manual control operation logs and historical traffic data. The expert case library includes multiple expert cases, each of which includes: the state sequence before manual control, the manual control actions, the relationship between intersections, and the intervention effect label.

[0139] Optionally, the manual control operation logs and historical traffic data can be used to... The first intersection For each artificially regulated event, an expert case is constructed based on the following formula (27).

[0140] (27) in, This represents the state sequence before artificial intervention; Indicates manual intervention; This indicates the relationships between intersections related to this intersection; The label represents the intervention effect, used to characterize the operational effect after artificial intervention. The state sequence before artificial intervention is represented as follows: ,in, The number of backtracking periods, For the first The state feature vector of each signal cycle.

[0141] The relationships between intersections can be represented by an intersection relationship graph, which is shown as follows: ,in, Indicates the relationship with the first A set of upstream and downstream related intersections where traffic flow propagation exists at a given intersection; Indicates the connecting edges between intersections; Indicates the first The dynamic correlation weight matrix corresponding to each regulatory event.

[0142] The dynamic correlation weight is determined based on upstream inflow, the correlation between traffic flows at the two intersections, and the green wave coordination relationship, and is expressed as follows: .in, Indicates upstream intersection Downstream intersection Inflow of traffic, This indicates the correlation between changes in traffic flow at two intersections. This indicates whether the two intersections belong to the same green wave coordination control chain. This refers to the correlation weight coefficient.

[0143] Intervention effect labels can be represented as ,in, This indicates the change in queue length. This indicates the change in market share. This indicates the change in the number of parking stops. Based on the above intervention effect labels, the case effect score can be calculated using the following formula (28): (28) in, This score serves as the weight for performance evaluation. It is used for subsequent training sample weighting, case retrieval ranking, and closed-loop self-evolution. One possible approach is to build training samples based on the expert case library. For example, positive samples could be constructed centered around manually intervened events. For each training sample, in addition to extracting past events from the current intersection... In addition to the traffic state sequence of each cycle, the inflow flow, queuing, and green wave phase features of upstream and downstream related intersections are also extracted simultaneously to form an enhanced correlation input composed of the temporal features of this intersection, upstream and downstream related features, signal operation features, and external scene features: .in, Indicates the relationship with the first A collection of upstream and downstream intersections related to a given intersection; Indicates the associated intersection At the current intersection Dynamic association weights; Indicates the associated intersection In time The sequence of traffic conditions before and after; This represents the upstream and downstream relationship status characteristics obtained by weighted aggregation of dynamic relationship weights; It indicates the operational characteristics of signals such as cycle length, green light duration, and control mode; Indicates the past at this intersection Traffic state sequence in one cycle; It indicates external scene features such as time period, holidays, and weather.

[0144] The above processing transforms the training samples from independent single-intersection samples into a composite sample structure that combines the current state of the intersection, upstream and downstream related states, signal operation characteristics, and external scene characteristics.

[0145] Based on the same inventive concept, this application also provides a congestion handling device corresponding to the congestion handling method. Since the principle of the device in this application is similar to the congestion handling method described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0146] Figure 10 A schematic diagram of a congestion handling device provided in an embodiment of this application is shown. The device includes a construction module 1001, a training module 1002, a prediction module 1003, and a generation module 1004.

[0147] Module 1001 is used to construct multiple training samples based on historical manual control events and the corresponding historical traffic data. Each training sample includes sample data and sample labels. The sample data includes: traffic state sequence of intersections, related intersection features of intersections, signal operation features and external scene features. The sample labels include: intervention label, advance duration label and intervention action category label. Training module 1002 is used to train a target association enhancement time series model based on multiple training samples; The prediction module 1003 is used to input the traffic data to be predicted into the target association enhanced time series model. The target association enhanced time series model predicts the target intervention probability, target advance time, and target intervention action category of the traffic data to be predicted, determines the current alarm threshold, and outputs prompt information based on the target intervention probability, target advance time, target intervention action category, and the current alarm threshold. The prompt information is used to indicate whether congestion needs to be resolved. The generation module 1004 is used to determine multiple candidate expert cases from the expert case library based on the pre-built expert case library and the traffic data to be predicted if the prompt information indicates that congestion needs to be resolved, and to generate a target processing solution based on the multiple candidate expert cases and the pre-built reward function.

[0148] Optionally, the training module 1002 is specifically used for: Multiple training samples are input into the initial association-enhanced time series model, which then makes predictions on each training sample to obtain prediction results. The prediction results include the predicted intervention probability, the predicted advance duration, and the predicted intervention action category. The initial association enhancement time series model is iteratively updated based on the sample labels and prediction results to obtain the target association enhancement time series model.

[0149] Optionally, the initial association-enhanced temporal model includes: a temporal coding layer, an association aggregation layer, a feature fusion layer, and a multi-task output layer; Training module 1002 is specifically used for: The traffic state sequences in the training samples are input into the temporal coding layer for encoding to obtain temporal features; The associated intersection features in the training samples are input into the associated aggregation layer for aggregation processing to obtain associated features; The time-series features, correlation features, signal operation features, and external scene features are input into the feature fusion layer for fusion processing to obtain fused features; The fused features are input into the multi-task output layer for prediction, and the prediction result is obtained.

[0150] Optionally, the training module 1002 is specifically used for: Determine the sample weights of the training samples. The sample weights are used to control the importance of the training samples in training based on the intervention effect labels of the training samples. Based on sample weights, sample labels, and prediction results, the binary cross-entropy loss, advance time regression loss, action category classification loss, and association consistency constraint loss are determined, and the loss results are determined based on the binary cross-entropy loss, advance time regression loss, action category classification loss, and association consistency constraint loss. The initial association enhancement time series model is iteratively updated based on the loss result. If the loss value or the current iteration number meets the preset iteration termination condition, the updated initial association enhancement time series model is used as the target association enhancement time series model.

[0151] Optionally, the prediction module 1003 is specifically used for: If the target intervention probability is greater than the current alarm threshold, and the target advance duration is greater than or equal to the minimum preprocessing duration, then a target prompt message will be output. The target prompt message is used to indicate that congestion needs to be resolved.

[0152] Optionally, the generation module 1004 is specifically used for: Feature extraction is performed on each expert case in the expert case database to obtain expert fusion features; The scores for each expert case are determined based on the fusion characteristics of the experts and the fusion characteristics of the traffic data to be predicted, the inter-intersection correlation of the expert cases and the correlation characteristics of the traffic data to be predicted, the prediction results of the traffic data to be predicted, and the intervention effect labels of the expert cases. The expert cases are ranked according to their scores, and multiple candidate expert cases are determined from the expert case database based on the ranking results.

[0153] Optionally, the generation module 1004 is specifically used for: Generate candidate expert proposals based on candidate expert cases; Based on the pre-manual control state sequence of each candidate expert scheme and the traffic state sequence of the traffic data to be predicted, determine the adaptation residuals of each candidate expert scheme and the traffic data to be predicted. Based on the adaptation residuals of each candidate expert's solution, the candidate expert's solution is modified to obtain the candidate processing solution corresponding to each candidate expert's case. Each candidate treatment scheme is scored based on the reward function to obtain the predicted score results of each candidate treatment scheme. The predicted score results include: the decrease in intervention probability and the impact of coordination at related intersections. The target treatment plan is generated based on the predicted scores of each candidate treatment plan.

[0154] Optionally, the generation module 1004 is specifically used for: Each candidate processing scheme is broken down into multiple action units, which include target phase, green light increment / decrease, period change, and phase difference compensation. Based on preset constraints, each action unit is reorganized to obtain the target processing scheme.

[0155] Optionally, the device further includes a building module, which is specifically used for: Obtain manual control operation logs and historical traffic data, including: traffic signal controller logs, traffic flow data, and the correlation between intersections; An expert case library was built based on manual control operation logs and historical traffic data. The expert case library includes multiple expert cases, each of which includes: the state sequence before manual control, the manual control actions, the correlation between intersections, and the intervention effect label.

[0156] This application's embodiments construct training samples including intersection traffic conditions, related intersection features, signal operation characteristics, and external scene features to train a target-related enhanced time-series model, achieving accurate prediction and proactive intervention for traffic congestion. This application not only considers the temporal changes of a single intersection but also integrates the related influences of upstream and downstream intersections, signal operation characteristics, and external scene features, significantly improving the accuracy of intervention probability prediction. Simultaneously, by combining an expert case library and a reward function generation processing scheme, the generated scheme inherits historical expert success experience while conforming to current traffic optimization goals. This effectively solves the problems of alarm lag, lack of specificity in schemes, and difficulty in reusing expert experience in existing technologies, realizing a shift from passive response to proactive governance and improving the intelligence level and traffic efficiency of urban traffic control.

[0157] Figure 11 The diagram illustrates the structure of an electronic device according to an embodiment of this application, including a processor 1101, a storage medium 1102, and a bus 1103. The storage medium 1102 stores machine-readable instructions executable by the processor 1101. When the electronic device runs a congestion handling method as described in the embodiment, the processor 1101 communicates with the storage medium 1102 via the bus 1103. The processor 1101 executes the machine-readable instructions, and the preamble of the method item of the processor 1101 executes the steps in the congestion handling method described above.

[0158] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor, which performs the steps of the congestion handling method described above.

[0159] In this embodiment, the computer program, when run by the processor, can also execute other machine-readable instructions to perform other methods as described in the embodiments. For details on the specific execution steps and principles, please refer to the description of the embodiments, which will not be repeated here.

[0160] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0161] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0162] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0163] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0164] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0165] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A congestion management method, characterized in that, include: Multiple training samples are constructed based on historical manual control events and the corresponding historical traffic data. Each training sample includes sample data and sample labels. The sample data includes: traffic state sequence of intersections, related intersection features of intersections, signal operation features, and external scene features. The sample labels include: intervention label, advance duration label, and intervention action category label. A target association enhancement time series model is trained based on the aforementioned multiple training samples; The traffic data to be predicted is input into the target association enhanced time series model. The target association enhanced time series model predicts the target intervention probability, target advance time, and target intervention action category of the traffic data to be predicted. The current alarm threshold is determined, and prompt information is output based on the target intervention probability, target advance time, target intervention action category, and the current alarm threshold. The prompt information is used to indicate whether congestion needs to be resolved. If the prompt message indicates that congestion needs to be resolved, then based on the pre-built expert case library and the traffic data to be predicted, multiple candidate expert cases are determined from the expert case library, and a target processing solution is generated based on the multiple candidate expert cases and the pre-built reward function.

2. The method according to claim 1, characterized in that, The target association enhancement time series model trained based on the multiple training samples includes: The multiple training samples are input into the initial association enhancement time series model, and the initial association enhancement time series model makes predictions on each of the training samples to obtain prediction results. The prediction results include the predicted intervention probability, the predicted advance duration, and the predicted intervention action category. The initial association enhancement time series model is iteratively updated based on the sample labels and the prediction results to obtain the target association enhancement time series model.

3. The method according to claim 2, characterized in that, The initial association enhancement temporal model includes: a temporal coding layer, an association aggregation layer, a feature fusion layer, and a multi-task output layer; The process by which the initial association-enhanced temporal model predicts each of the training samples to obtain the prediction results includes: The traffic state sequence in the training samples is input into the temporal coding layer for encoding processing to obtain temporal features; The associated intersection features in the training samples are input into the associated aggregation layer for aggregation processing to obtain associated features; The time-series features, the correlation features, the signal operation features, and the external scene features are input into the feature fusion layer for fusion processing to obtain fused features; The fused features are input into the multi-task output layer for prediction to obtain the prediction result.

4. The method according to claim 2, characterized in that, The step of iteratively updating the initial association-enhanced time-series model based on the sample labels and the prediction results to obtain the target association-enhanced time-series model includes: The sample weights of the training samples are determined, and the sample weights are used to control the importance of the training samples in training based on the intervention effect labels of the training samples; Based on the sample weights, sample labels, and prediction results, determine the binary cross-entropy loss, the lead time regression loss, the action category classification loss, and the association consistency constraint loss, and determine the loss result based on the binary cross-entropy loss, the lead time regression loss, the action category classification loss, and the association consistency constraint loss. The initial association enhancement time series model is iteratively updated based on the loss result. If the loss value or the current iteration number meets the preset iteration termination condition, the updated initial association enhancement time series model is used as the target association enhancement time series model.

5. The method according to claim 1, characterized in that, The step of outputting prompt information based on the target intervention probability, target advance time, target intervention action type, and the current alarm threshold includes: If the target intervention probability is greater than the current alarm threshold, and the target advance duration is greater than or equal to the minimum preprocessing duration, then a target prompt message is output, which is used to indicate that congestion needs to be resolved.

6. The method according to claim 1, characterized in that, The step involves determining multiple candidate expert cases from the pre-built expert case library and the traffic data to be predicted, including: Feature extraction is performed on each expert case in the expert case database to obtain expert fusion features; The score of each expert case is determined based on the fusion features of the expert cases and the fusion features of the traffic data to be predicted, the intersection correlations of the expert cases and the associated intersection features of the traffic data to be predicted, the prediction results of the traffic data to be predicted, and the intervention effect labels of the expert cases. The expert cases are sorted according to their scores to obtain a sorting result, and multiple candidate expert cases are determined from the expert case library based on the sorting result.

7. The method according to claim 1, characterized in that, The step of generating a target processing scheme based on the multiple candidate expert cases and a pre-constructed reward function includes: Generate candidate expert proposals based on candidate expert cases; Based on the pre-manual control state sequence of each candidate expert scheme and the traffic state sequence of the traffic data to be predicted, the adaptation residuals of each candidate expert scheme and the traffic data to be predicted are determined respectively. Based on the adaptation residuals of each candidate expert scheme, each candidate expert scheme is modified to obtain the candidate processing scheme corresponding to each candidate expert case. The candidate processing schemes are scored based on the reward function to obtain the predicted score results of each candidate processing scheme. The predicted score results include: the decrease in intervention probability and the impact of coordination at related intersections. The target processing scheme is generated based on the predicted scores of each candidate processing scheme.

8. The method according to claim 7, characterized in that, The step of generating the target processing scheme based on the predicted scoring results of each candidate processing scheme includes: Each of the candidate processing schemes is broken down to obtain multiple action units, which include target phase, green light increment / decrement, periodic change, and phase difference compensation. The action units are reorganized based on preset constraints to obtain the target processing scheme.

9. The method according to claim 1, characterized in that, The process of building the expert case library includes: Obtain manual control operation logs and historical traffic data, including: traffic signal controller logs, traffic flow data, and the relationship between intersections; An expert case library is constructed based on the manual control operation logs and historical traffic data. The expert case library includes multiple expert cases, each of which includes: the state sequence before manual control, the manual control action, the relationship between intersections, and the intervention effect label.

10. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of a congestion handling method as described in any one of claims 1 to 9.