Road emergency event handling method and system

By combining the semantic association integration and feature interaction aggregation of video surveillance data and traffic status data, the problems of slow response speed and low analysis accuracy in road emergency incident processing in the existing technology are solved, and more accurate and efficient emergency incident prediction is achieved. and processing.

CN118587072BActive Publication Date: 2024-10-01SICHUAN HUATI LIGHTING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411052625.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-01
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

The existing technology has slow response speed, limited coverage, and low analysis accuracy in road emergency incident processing, making it difficult to accurately predict and respond to complex road emergency incidents.

Method used

By obtaining traffic event semantic vectors and traffic status flow semantic vectors in video surveillance data, semantic association integration and feature interaction aggregation are performed to generate emergency event knowledge point prediction results, improve the depth and accuracy of information fusion, and mine traffic events and traffic status. potential relationship between them.

Benefits of technology

It improves the timeliness and accuracy of the prediction of road emergencies, provides detailed decision-making basis for traffic management departments, helps to respond quickly and effectively handle road emergencies, and ensures traffic safety and smooth flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587072B_ABST
    Figure CN118587072B_ABST
Patent Text Reader

Abstract

The present application provides a method and system for handling road emergency events. First, the two semantic vectors are associated and integrated in the same semantic representation domain, which effectively improves the depth and accuracy of information fusion. Subsequently, the feature interaction aggregation model is used to perform feature interaction and aggregation on the integrated semantic vectors, further exploring the potential relationship and rules between traffic events and traffic status. Through two feature interaction aggregation processes, not only the ability to analyze the impact of traffic events on traffic status is enhanced, but also the auxiliary effect of traffic status on event prediction is reversely improved, forming a two-way enhanced prediction mechanism. Finally, the prediction results of emergency event knowledge points generated based on dual feature interaction aggregation vectors not only improve the timeliness and accuracy of the prediction, but also provide traffic management departments with more detailed and scientific decision-making basis, which helps to quickly respond to and effectively handle road emergency events and ensure road traffic safety and smoothness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a method and system for handling road emergency events. Background Art

[0002] With the acceleration of urbanization and the continuous growth of the number of motor vehicles, road traffic safety issues have become increasingly prominent, especially the frequent occurrence of various emergency events (such as traffic accidents, traffic congestion, road damage, etc.), which have posed a serious threat to the safety of public life and property and social stability. In order to respond to these road emergencies in a timely and effective manner and improve the emergency response capabilities and decision-making level of traffic management departments, an efficient and accurate road emergency event handling method is urgently needed.

[0003] Related technologies mainly rely on manual inspections and video surveillance, which have problems such as slow response speed, limited coverage, and low analysis accuracy. In recent years, with the rapid development of artificial intelligence, big data, and the Internet of Things, road emergency event processing methods based on video analysis, semantic understanding, and feature interaction have gradually become a research hotspot. However, most existing technologies focus on the processing of a single data source or simple data fusion, lacking the exploration of the deep, multi-dimensional relationship between traffic events and traffic status, making it difficult to accurately predict and effectively respond to complex road emergency events. Summary of the invention

[0004] In view of the above-mentioned problems, in combination with the first aspect of the present application, the present application provides a method for handling road emergency events, the method comprising:

[0005] Obtaining a traffic event semantic vector in the video surveillance data corresponding to the target road section, and obtaining a traffic state flow semantic vector corresponding to the target road section;

[0006] The traffic event semantic vector and the traffic state flow semantic vector are semantically associated and integrated within the same semantic representation domain to generate a first semantic integration vector, and based on the first semantic integration vector, a first feature interaction aggregation model corresponding to the traffic event semantic vector is determined in X feature interaction aggregation models; the X feature interaction aggregation models are used to perform feature interaction aggregation on the semantic vectors of multiple semantic category labels according to different semantic vector interaction weights, where X is a positive integer;

[0007] In the first feature interaction aggregation model, the traffic event semantic vector is subjected to feature interaction aggregation based on the traffic state flow semantic vector to generate a first feature interaction aggregation vector;

[0008] Performing semantic association integration on the traffic state flow semantic vector and the first feature interaction aggregation vector in the same semantic representation domain to generate a second semantic integration vector, and determining a second feature interaction aggregation model corresponding to the traffic state flow semantic vector in the X feature interaction aggregation models based on the second semantic integration vector;

[0009] In the second feature interaction aggregation model, feature interaction aggregation is performed on the traffic state flow semantic vector based on the first feature interaction aggregation vector to generate a second feature interaction aggregation vector;

[0010] Based on the first feature interaction aggregation vector and the second feature interaction aggregation vector, a prediction result of the emergency event knowledge point corresponding to the target road section is determined.

[0011] On the other hand, the present application also provides a road emergency event handling system, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium is connected to the processor, the machine-readable storage medium is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the machine-readable storage medium to implement the above method.

[0012] Based on the above aspects, this application realizes the accurate prediction of road emergency events by combining the semantic vector of traffic events and the semantic vector of traffic state flow. First, the two semantic vectors are associated and integrated in the same semantic representation domain, which effectively improves the depth and accuracy of information fusion. Subsequently, the feature interaction aggregation model is used to perform feature interaction and aggregation on the integrated semantic vector to further explore the potential relationship and law between traffic events and traffic states. Through two feature interaction aggregation processes, not only the analytical ability of the impact of traffic events on traffic states is enhanced, but also the auxiliary effect of traffic states on event prediction is reversely improved, forming a two-way enhanced prediction mechanism. Finally, the prediction results of emergency event knowledge points generated based on the dual feature interaction aggregation vector not only improve the timeliness and accuracy of the prediction, but also provide traffic management departments with more detailed and scientific decision-making basis, which helps to quickly respond to and effectively handle road emergency events and ensure road traffic safety and smoothness. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a schematic diagram of the execution flow of the road emergency event handling method provided in an embodiment of the present application.

[0014] Figure 2 It is a schematic diagram of the hardware architecture of the road emergency event handling system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0015] The present application will be described in detail below with reference to the accompanying drawings. Figure 1This is a flow chart of a road emergency event handling method provided by an embodiment of the present application. The road emergency event handling method is introduced in detail below.

[0016] Step S110, obtaining a traffic event semantic vector in the video surveillance data corresponding to the target road section, and obtaining a traffic state flow semantic vector corresponding to the target road section.

[0017] In detail, video surveillance data refers to real-time or historical video stream data captured by cameras installed at roads, intersections, etc., which contains various dynamic and static information such as vehicles, pedestrians, and traffic signals on the road, and is an important data source for traffic monitoring and analysis. For example, on the main traffic arteries in the city, the traffic management department installs multiple high-definition cameras to monitor the traffic conditions on the road around the clock. The video data captured by these cameras is video surveillance data. The server can connect to these cameras through the network to obtain these video data in real time or download them on demand for subsequent processing and analysis.

[0018] The traffic event semantic vector is a high-dimensional vector representation used to capture and describe key information of traffic events occurring in video surveillance data. The traffic event semantic vector is generated through semantic feature representation and attention analysis. For example, assuming that a vehicle rear-end collision is captured in the video surveillance data, the server generates a traffic event semantic vector by performing semantic feature representation and attention analysis on the video clip.

[0019] The traffic state flow semantic vector is another high-dimensional vector representation used to describe the traffic state changes of the target road section within a specific time period. The traffic state flow semantic vector is generated by collecting traffic state data (such as vehicle flow, vehicle speed, lane occupancy, etc.) and encoding and processing using a semantic embedding network, and contains real-time, continuous and comprehensive information on the traffic state. For example, the server collects traffic state data of the target road section within a certain time period through traffic sensors, floating vehicle data or traffic monitoring systems. These data include information such as vehicle flow, average vehicle speed, lane occupancy, etc. at different time points. The server integrates these data into a traffic state data stream, and uses a pre-trained semantic embedding network for encoding and processing to generate a traffic state flow semantic vector that can reflect the continuous changes and key features of the road traffic state within the time period.

[0020] That is, in this embodiment, the server first connects to the video surveillance system of the target road section to obtain the video surveillance data of the target road section within a specific time period. These video surveillance data usually exist in the form of video streams and contain various dynamic and static information such as vehicles, pedestrians, traffic signals, etc. on the road.

[0021] In order to extract traffic event semantic vectors from these video surveillance data, the server needs to preprocess the video surveillance data. First, the server divides the video surveillance data into multiple shorter road video surveillance clips, each of which contains video content within a period of time. Then, the server uses advanced computer vision algorithms to represent the semantic features of these road video surveillance clips and generate video semantic features corresponding to each road video surveillance clip. These video semantic features include motion features (such as speed, direction, acceleration), object features (such as type, color, size, shape) and behavior features (such as the time, location, and duration of the behavior).

[0022] Next, the server performs traffic event attention analysis on these video semantic features. By analyzing the motion features, object features, and behavior features in each road video surveillance clip, the server can determine whether a traffic event has occurred in the road video surveillance clip and determine the type and characteristics of the traffic event. Then, based on the event type and characteristics of the traffic event, the server predicts the attention of the traffic event and generates a traffic event attention distribution for each road video surveillance clip. Finally, the server fuses these video semantic features with the traffic event attention distribution to generate a traffic event semantic vector corresponding to the video surveillance data.

[0023] At the same time, in order to obtain the semantic vector of the traffic state flow corresponding to the target road section, the server also needs to collect the traffic state data of the target road section within a specific time period. These traffic state data may come from various traffic sensors, traffic monitoring systems, etc., and include information such as vehicle flow, vehicle speed, and traffic light status. The server integrates these traffic state data into a traffic state data stream, and uses the semantic embedding network to perform semantic encoding processing on the traffic state data stream to generate the semantic vector of the traffic state flow corresponding to the target road section.

[0024] Step S120, semantically associating and integrating the traffic event semantic vector and the traffic state flow semantic vector in the same semantic representation domain to generate a first semantic integration vector, and determining a first feature interaction aggregation model corresponding to the traffic event semantic vector in X feature interaction aggregation models based on the first semantic integration vector. The X feature interaction aggregation models are used to perform feature interaction aggregation on semantic vectors of multiple semantic category labels according to different semantic vector interaction weights, where X is a positive integer.

[0025] In detail, the semantic representation domain refers to the abstract space or dimensional space where the vector representation is located. Different vectors may be in different semantic representation domains, even if they describe the same or related entities or phenomena. In order to perform effective semantic association and integration, it is usually necessary to convert vectors in different representation domains into the same representation domain. For example, a traffic event semantic vector and a traffic state flow semantic vector may initially be in different semantic representation domains. The traffic event semantic vector focuses on describing the type and characteristics of traffic events, while the traffic state flow semantic vector focuses on describing the continuous changes in traffic states. In order to associate and integrate these two vectors, the server uses the semantic conversion network in the recurrent neural network model to convert them into the same semantic representation domain.

[0026] Semantic association integration refers to the process of associating and integrating vector representations from different sources or different representation domains. This process aims to explore the deep connections and potential laws between vectors and generate integrated vectors that contain richer and more comprehensive information. For example, the server loads the semantic vector of traffic events and the semantic vector of traffic status flow into the recurrent neural network model, and uses the semantic association network in the model to semantically integrate the two vectors. The integration process may involve multiple steps such as vector normalization, activation function operation, mean calculation, and encoding processing based on semantic association weight arrays. The final generated integrated vector (such as the first semantic integrated vector) integrates the key information of traffic events and traffic status, providing strong support for subsequent analysis and prediction.

[0027] The feature interaction aggregation model refers to a type of machine learning or deep learning model that can process multiple semantic vector inputs and perform feature aggregation and representation based on the interactive relationship between different features. This type of feature interaction aggregation model usually contains multiple submodules or layers for realizing functions such as feature extraction, interactive calculation, weight distribution and aggregated output. For example, X feature interaction aggregation models are predefined in the server, and these feature interaction aggregation models can perform feature interaction aggregation on semantic vectors of multiple semantic category labels according to different semantic vector interaction weights. For example, in a traffic monitoring scenario, the server may need to predict emergency event knowledge points based on the interactive relationship between traffic event semantic vectors and traffic state flow semantic vectors. To this end, the server will select a feature interaction aggregation model (such as the first feature interaction aggregation model) that best suits the current situation, and use the feature interaction aggregation model to perform feature interaction aggregation processing on the input vector.

[0028] That is, in this embodiment, the server first loads the traffic event semantic vector and the traffic state flow semantic vector into the recurrent neural network model, which has the function of a semantic conversion network and can convert vectors of different semantic representation domains into vectors within the same semantic representation domain. The server uses the first semantic conversion network in the recurrent neural network model to perform semantic representation domain conversion on the traffic event semantic vector to generate a traffic event semantic conversion vector; at the same time, the server uses the second semantic conversion network to perform semantic representation domain conversion on the traffic state flow semantic vector to generate a traffic state flow semantic conversion vector. The two converted vectors have the same semantic representation domain and can be further semantically associated and integrated.

[0029] Next, the server obtains the first standard deviation corresponding to the semantic conversion vector of the traffic event, and performs a standardized conversion on the semantic conversion vector of the traffic event based on this standard deviation to generate a standardized semantic vector of the traffic event. Then, the server performs an activation function operation on this standardized vector to generate an activated semantic vector of the traffic event; and then performs a mean calculation on this activated vector to generate a first mean semantic vector. Similarly, the server also performs a similar standardized conversion, activation function operation, and mean calculation on the semantic conversion vector of the traffic state flow to generate a second mean semantic vector.

[0030] After obtaining the two mean semantic vectors, the server fuses them to generate a fused semantic vector. Then, the server uses the semantic association weight array corresponding to the semantic association network in the recurrent neural network model to perform semantic encoding processing on the fused semantic vector to generate a first semantic integration vector, which contains the association information of the traffic event semantic vector and the traffic state flow semantic vector.

[0031] Finally, the server uses the discriminant network in the recurrent neural network model to perform discriminant analysis on the first semantic integration vector. The discriminant network can evaluate the matching degree between the X feature interaction aggregation models and the first semantic integration vector, and generate a discriminant score for each feature interaction aggregation model. The server outputs the semantic vector interaction aggregation model corresponding to the largest discriminant score as the first feature interaction aggregation model corresponding to the traffic event semantic vector.

[0032] Step S130: In the first feature interaction aggregation model, feature interaction aggregation is performed on the traffic event semantic vector based on the traffic state flow semantic vector to generate a first feature interaction aggregation vector.

[0033] In this embodiment, in the first feature interaction aggregation model, the server first integrates the traffic event semantic vector and the traffic state flow semantic vector to generate a first integrated semantic vector. The integration process is to integrate the information of the two vectors for subsequent feature interaction aggregation.

[0034] Then, the server uses the conversion weight array corresponding to the feature attention network to convert the first integrated semantic vector into a first search array, a first index array, and a first value array, which are the basis for the feature attention network to perform feature interaction aggregation.

[0035] Next, the server generates a first reference semantic array based on the interaction results between the first search array and the traffic event semantic vector, and the interaction results between the first search array and the traffic state flow semantic vector. The first reference semantic array contains the interaction information of the two semantic vectors on the first search array.

[0036] Similarly, the server also generates a second reference semantic array based on the permutation results of the interaction results between the first index array and the traffic event semantic vector, and the permutation results of the interaction results between the first index array and the traffic state flow semantic vector. The second reference semantic array contains the interaction information of the two semantic vectors on the first index array and has been permuted.

[0037] In addition, the server also generates a third reference semantic array based on the interaction results between the first numerical array and the traffic event semantic vector, and the interaction results between the first numerical array and the traffic state flow semantic vector, and the third reference semantic array contains the interaction information of the two semantic vectors on the first numerical array.

[0038] After having these three reference semantic arrays, the server outputs the interaction result between the first reference semantic array and the second reference semantic array as the fourth reference semantic array. Then, the server obtains the number of feature dimensions of the traffic event semantic vector, and performs a standardized conversion on the ratio between the fourth reference semantic array and the square root of the number of feature dimensions to generate a self-focusing weight array, which can reflect the importance of different feature dimensions.

[0039] Finally, the server outputs the interaction result between the self-focus weight array and the third reference semantic array as a first feature interaction aggregation vector, which is the result of feature interaction aggregation of the traffic event semantic vector and the traffic state flow semantic vector in the first feature interaction aggregation model.

[0040] Step S140: semantically associate and integrate the traffic state flow semantic vector and the first feature interaction aggregation vector within the same semantic representation domain to generate a second semantic integration vector, and determine a second feature interaction aggregation model corresponding to the traffic state flow semantic vector from among the X feature interaction aggregation models based on the second semantic integration vector.

[0041] In this embodiment, the server again uses the semantic conversion network in the recurrent neural network model to perform semantic representation domain conversion on the traffic state flow semantic vector and the first feature interaction aggregation vector so that they have the same semantic representation domain. Then, the server performs standardization conversion, activation function operation, mean calculation and fusion processing on the two converted vectors in a manner similar to step S120 to generate a second semantic integration vector.

[0042] After obtaining the second semantic integration vector, the server again uses the discriminant network in the recurrent neural network model to perform discriminant analysis. The discriminant network evaluates the matching degree of the X feature interaction aggregation models with the second semantic integration vector and generates a discriminant score for each feature interaction aggregation model. The server outputs the semantic vector interaction aggregation model corresponding to the largest discriminant score as the second feature interaction aggregation model corresponding to the traffic state flow semantic vector.

[0043] In detail, the discriminant network refers to a type of machine learning or deep learning network that can receive an input vector and output a discriminant score. The discriminant network is generally used to evaluate the degree of match or correlation between the input vector and a certain target or category. For example, in the process of selecting a feature interaction aggregation model, the server uses the discriminant network in the recurrent neural network model to perform a discriminant analysis on the first semantic integration vector. The discriminant network calculates the discriminant scores corresponding to each of the X feature interaction aggregation models based on the content of the first semantic integration vector. These discriminant scores reflect the degree of match and correlation between the first semantic integration vector and each feature interaction aggregation model. The server selects the model with the highest discriminant score as the first feature interaction aggregation model for subsequent processing.

[0044] Step S150: In the second feature interaction aggregation model, feature interaction aggregation is performed on the traffic state flow semantic vector based on the first feature interaction aggregation vector to generate a second feature interaction aggregation vector.

[0045] In this embodiment, in the second feature interaction aggregation model, the server first integrates the first feature interaction aggregation vector and the traffic state flow semantic vector to generate a second integrated semantic vector. The integration process is to integrate the information of the two vectors for subsequent feature interaction aggregation.

[0046] Then, the server performs feature interaction aggregation processing on the second integrated semantic vector using the corresponding algorithm according to the specific structure of the second feature interaction aggregation model (which can be a feature attention network, a traffic restriction collection feature attention network, etc.). The processing process will vary depending on the model, but the core idea is to use the information in the first feature interaction aggregation vector to enhance the feature representation of the traffic state flow semantic vector.

[0047] Finally, the server generates a second feature interaction aggregation vector, which is a result of feature interaction aggregation of the traffic state flow semantic vector in the second feature interaction aggregation model with the assistance of the first feature interaction aggregation vector.

[0048] Step S160: determining a prediction result of an emergency event knowledge point corresponding to the target road section based on the first feature interaction aggregation vector and the second feature interaction aggregation vector.

[0049] In this embodiment, after obtaining the first feature interaction aggregation vector and the second feature interaction aggregation vector, the server integrates the two vectors to generate a fourth integrated semantic vector. The integration process is to integrate the information of the two vectors to facilitate subsequent prediction of emergency event knowledge points.

[0050] Then, the server uses advanced machine learning algorithms or deep learning models to predict emergency event knowledge points for the fourth integrated semantic vector. This process predicts emergency event knowledge points that may occur on the target road section based on the information in the fourth integrated semantic vector, such as traffic accidents, traffic congestion, road damage, etc. For example, in the end, "In the next hour, the probability of traffic congestion on the target road section A is 80%, and temporary traffic control measures are recommended." The prediction results of emergency event knowledge points can provide important decision-making support for traffic management departments, helping them better deal with potential emergencies and improve emergency response capabilities.

[0051] Based on the above steps, the embodiment of the present application realizes the accurate prediction of road emergency events by combining the semantic vector of traffic events and the semantic vector of traffic state flow. First, the two semantic vectors are associated and integrated in the same semantic representation domain, which effectively improves the depth and accuracy of information fusion. Subsequently, the feature interaction aggregation model is used to perform feature interaction and aggregation on the integrated semantic vector to further explore the potential relationship and law between traffic events and traffic states. Through two feature interaction aggregation processes, not only the analytical ability of the impact of traffic events on traffic states is enhanced, but also the auxiliary effect of traffic states on event prediction is reversely improved, forming a two-way enhanced prediction mechanism. Finally, the prediction results of emergency event knowledge points generated based on the dual feature interaction aggregation vector not only improve the timeliness and accuracy of the prediction, but also provide traffic management departments with more detailed and scientific decision-making basis, which helps to quickly respond to and effectively handle road emergency events and ensure road traffic safety and smoothness.

[0052] In a possible implementation, step S110 includes:

[0053] Step S111, obtaining video surveillance data corresponding to the target road section, and dividing the video surveillance data into Y road video surveillance segments.

[0054] In this embodiment, the server is first connected to the video surveillance system of the target road section through the network. The video surveillance system consists of multiple high-definition cameras distributed at different locations on the road to capture traffic conditions on the road around the clock. The server and the video surveillance system establish a stable data transmission channel to ensure that video surveillance data can be obtained in real time or on demand.

[0055] During a specific time period (e.g., the past hour), the server requests and receives video surveillance data during that time period. These video surveillance data exist in the form of video streams, including various dynamic and static information such as vehicles, pedestrians, and traffic signals on the road. The server temporarily stores these video data in a local disk or cache for subsequent processing.

[0056] Since the amount of video surveillance data for the entire time period may be very large, direct processing will consume a lot of computing resources and time. Therefore, the server uses segmentation technology to segment the video surveillance data into multiple shorter segments in chronological order. Each road video surveillance segment contains video content within a period of time. For example, each road video surveillance segment is 5 minutes long. Assuming that the total duration of video surveillance data in a specific time period is 60 minutes, the server can segment it into 12 road video surveillance segments (Y=12). Each road video surveillance segment contains various traffic conditions that occurred on the road during that time period.

[0057] Step S112: performing semantic feature representation on the Y road video surveillance clips to generate video semantic features corresponding to the Y road video surveillance clips.

[0058] In this embodiment, the server uses advanced computer vision algorithms to represent the semantic features of each road video surveillance clip. This process involves in-depth analysis and understanding of the video content to extract information that is useful for subsequent processing.

[0059] Step S113 , performing traffic event attention analysis on the video semantic features corresponding to the Y road video surveillance clips, and generating a traffic event attention distribution corresponding to the Y road video surveillance clips.

[0060] In this embodiment, the server then performs a traffic event attention analysis on the video semantic features of each road video surveillance clip. This process aims to determine whether a traffic event has occurred in the road video surveillance clip, determine the type and characteristics of the traffic event, and then predict the attention of the traffic event.

[0061] Step S113: fusing the video semantic features corresponding to the Y road video surveillance clips and the traffic event attention distribution corresponding to the Y road video surveillance clips to generate a traffic event semantic vector corresponding to the video surveillance data.

[0062] In this embodiment, the server fuses the video semantic features and traffic event attention distribution of each road video surveillance clip. The fusion method can be a simple weighted summation, splicing or other more complex fusion algorithms. The fusion result contains both the basic semantic feature information in the video clip and the attention information of the traffic event, forming a more comprehensive and rich traffic event semantic vector.

[0063] The server integrates and processes the traffic event semantic vectors corresponding to Y road video surveillance clips (such as averaging, splicing, etc.) to generate a traffic event semantic vector corresponding to the entire video surveillance data. This vector will be used as one of the input data for subsequent processing and analysis to further mine useful information and knowledge in the video surveillance data.

[0064] Step S112 and step S113 include:

[0065] Step A110, perform semantic feature representation on the Y road video surveillance clips, determine the motion features, object features and behavior features of the Y road video surveillance clips as the video semantic features corresponding to the Y road video surveillance clips, wherein the moving objects in the Y road video surveillance clips are detected by optical flow method, frame difference method or background difference method to extract the motion parameters of the moving objects, and the motion parameters include speed, direction and acceleration. Utilize target detection algorithm to identify objects in the Y road video surveillance clips and attribute features of the objects, and the attribute features include type, color, size and shape. And, analyze the behavior pattern of the object and the behavior features of the behavior pattern, and the behavior features include the time, location and duration of the behavior.

[0066] Step A120, judging whether a traffic event has occurred in the Y road video surveillance clips based on the motion characteristics, object characteristics and behavior characteristics of the Y road video surveillance clips, and determining the event type and event characteristics of the traffic event.

[0067] Step A130 , predicting the attention level of the traffic event according to the event type and event characteristics of the traffic event, and generating a traffic event attention level distribution for the Y road video surveillance clips according to the attention level prediction result.

[0068] In this embodiment, the server has successfully obtained Y road video surveillance clips of the target road section from the video surveillance system, each road video surveillance clip is 5 minutes long and covers the morning rush hour. The server is ready to perform in-depth semantic feature representation on these clips.

[0069] The server first processes the first video clip using the optical flow method. It calculates the motion vector of each pixel or feature point in the video frame to track the trajectory of the moving object. By analyzing these trajectories, the server can extract parameters such as the speed, direction, and acceleration of the moving object. For example, in one frame, the server detected a car driving along the center line of the road at a speed of about 30 kilometers per hour and heading due south. For other clips, the server alternately uses the inter-frame difference method and the background difference method to improve the accuracy and robustness of motion detection. The inter-frame difference method detects the moving area by comparing the differences between two adjacent frames, while the background difference method identifies the moving object by building a static background model and comparing the current frame with the background model. Together, these methods help the server accurately capture the dynamic information of all moving objects on the road.

[0070] The server uses pre-trained deep learning models (such as YOLOv4 or SSD) to detect objects in video clips in real time. These models can identify objects such as vehicles (cars, trucks, motorcycles, etc.), pedestrians, bicycles, and traffic signs, and give their precise locations and attribute characteristics (such as type, color, size, shape). For example, in the second road video surveillance clip, the server detected a red car and a pedestrian in a blue coat appearing at the intersection at the same time.

[0071] The server analyzes the behavior patterns of detected objects by tracking their position changes in consecutive frames. For example, it notices that the red car slows down and prepares to turn right when approaching the intersection, while the pedestrian stops in front of the crosswalk and waits for the green light. The server records the time, location, and duration of these behaviors as behavior features.

[0072] The server combines preset rules and machine learning models to determine whether a traffic incident has occurred in the video clip. Rules can include "vehicles that are too close may cause a collision" and "pedestrians crossing the road at a red light is a violation." The machine learning model learns the patterns and characteristics of traffic incidents based on historical data. For example, in the third road video surveillance clip, the server detected that two cars almost collided when changing lanes. According to the preset rules and models, this is a potential traffic accident.

[0073] For the clips judged as traffic events, the server further extracts the specific type and features of the event. For example, the above collision event is refined into a "minor vehicle collision", whose features include the collision time, location (near the intersection), the type of vehicle involved (two cars), and the possible collision angle and speed difference.

[0074] The server predicts the attention level of traffic events based on their event type and characteristics. The attention level prediction takes into account the severity of the event (such as minor, major), the scope of impact (local or global), the time of occurrence (peak or not), and the potential social impact (such as whether it causes traffic congestion, whether it involves special vehicles or people, etc.). For example, the above minor vehicle collision event occurred during peak hours and caused a short traffic congestion, so it was predicted as a medium attention event.

[0075] Finally, the server generates a specific attention score or attention distribution map for each video clip where a traffic incident occurred. The distribution map may be based on the timeline to show the change in attention from the beginning to the end of the event. For example, in the attention distribution map, the attention reaches a peak at the moment of the collision, and then gradually decreases as the accident is handled and traffic is restored. The server stores and subsequently processes this attention distribution information as one of the important metadata of the video clip.

[0076] In a possible implementation, step S110 further includes:

[0077] Step S114, obtaining Z traffic status data corresponding to the target road section, and integrating the Z traffic status data into a traffic status data stream.

[0078] Step S115, loading the traffic status data stream into a semantic embedding network, using the semantic embedding network to perform semantic encoding processing on the traffic status data stream, and generating a traffic status stream semantic vector corresponding to the target road section.

[0079] In this embodiment, the server has determined the target road section that needs to be monitored and is ready to collect real-time traffic status data of the target road section. These data may come from various sensors installed on the road, traffic monitoring systems, floating vehicle data, etc.

[0080] The server first connects to the data source system of the target road section through the network. These data sources may include the database of the traffic management department, the real-time feedback interface of the traffic signal control system, and the API of the third-party traffic data service provider. Next, a data request is sent to the data source system according to a preset time interval (such as every minute). The request contains parameters such as the identifier of the target road section and the time range of the required data. The data source system responds to the server's request and returns Z traffic status data points of the target road section within the time period. These data points may include information such as traffic flow, average speed, lane occupancy, and traffic light status. Each data point contains a specific timestamp to ensure the timing of the data. The server temporarily stores the received Z traffic status data points in a local database or cache for subsequent processing. At the same time, the server records the source and timestamp of each data point for data traceability and quality control.

[0081] Therefore, the server first sorts the Z traffic status data points according to the timestamp to ensure that they are arranged in chronological order. This step is crucial for subsequent data processing and analysis because it ensures the temporal continuity and consistency of the traffic status data stream. The sorted traffic status data points are integrated into a continuous data stream that contains the complete traffic status change information of the target road section within a specific time period. The server stores this data stream in memory for fast access and processing.

[0082] The server has trained a semantic embedding network for semantic encoding of traffic status data, which is able to learn the latent semantic information in traffic status data and convert it into a high-dimensional vector representation for subsequent analysis and prediction.

[0083] In detail, the server first loads the pre-trained semantic embedding network, which is usually stored in the server's model library and can be called through an API interface. Before inputting the traffic status data stream into the semantic embedding network, the server may need to perform some preprocessing operations on the data. For example, filling missing values, filtering outliers, normalizing or standardizing the data, etc. These preprocessing steps help improve the performance and stability of the semantic embedding network. The preprocessed traffic status data stream is input into the semantic embedding network. Each layer in the network performs specific transformations and processing on the data stream to extract the semantic features therein. After multiple layers of transformation, the semantic embedding network outputs a high-dimensional vector, namely the traffic status stream semantic vector, which contains key semantic information in the traffic status data stream, such as the degree of traffic congestion, the trend of traffic flow changes, etc. The server stores this vector in memory or writes it to a database for subsequent analysis and application. In order to verify the validity and accuracy of the generated traffic status stream semantic vector, the server may compare and analyze it with some benchmark data or real events. For example, the server can check whether certain dimensions in the traffic state flow semantic vector are consistent with the actual traffic congestion situation; or use the traffic state flow semantic vector to predict traffic events and compare and verify them with actual events.

[0084] In a possible implementation, step S120 includes:

[0085] Step S121, loading the traffic event semantic vector and the traffic state flow semantic vector into a recurrent neural network model, using the first semantic conversion network in the recurrent neural network model to perform semantic representation domain conversion on the traffic event semantic vector, and generating a traffic event semantic conversion vector.

[0086] Step S122, using the second semantic conversion network in the recurrent neural network model to convert the semantic representation domain of the traffic state flow semantic vector to generate a traffic state flow semantic conversion vector. The traffic event semantic conversion vector and the traffic state flow semantic conversion vector have the same semantic representation domain.

[0087] Step S123, obtain the first standard deviation corresponding to the traffic event semantic conversion vector, perform standardization conversion on the traffic event semantic conversion vector based on the first standard deviation to generate a standardized semantic vector for the traffic event, perform activation function operation on the standardized semantic vector for the traffic event to generate a traffic event activation semantic vector, perform mean calculation on the traffic event activation semantic vector to generate a first mean semantic vector.

[0088] In this embodiment, after determining the traffic event semantic vector and the traffic state flow semantic vector of the target road section, the server prepares to integrate them into the same semantic representation domain for subsequent analysis.

[0089] In detail, the server first loads a pre-trained recurrent neural network model, which includes a first semantic transformation network and a second semantic transformation network for semantic transformation, and a semantic association network for semantic association.

[0090] The server loads the traffic event semantic vector and traffic status flow semantic vector as input data into the recurrent neural network model. These two vectors represent the traffic events occurring on the road and the real-time traffic status information respectively.

[0091] The first semantic conversion network in the recurrent neural network model receives the traffic event semantic vector as input. The first semantic conversion network converts the traffic event semantic vector from the original semantic representation domain to the same semantic representation domain as the traffic state flow semantic vector through a series of nonlinear transformations and weight adjustments. The converted vector is called the traffic event semantic conversion vector. Similarly, the second semantic conversion network receives the traffic state flow semantic vector as input and converts it to the same semantic representation domain as the traffic event semantic conversion vector. The converted vector is called the traffic state flow semantic conversion vector.

[0092] The server obtains the first standard deviation corresponding to the traffic event semantic conversion vector, and uses this first standard deviation to standardize the traffic event semantic conversion vector to eliminate the dimensional differences between different dimensions. The processed vector is called the traffic event standardized semantic vector. Next, the server applies an activation function (such as ReLU, Sigmoid, etc.) to the traffic event standardized semantic vector to increase the nonlinear expression ability of the vector. The processed vector is called the traffic event activated semantic vector.

[0093] Finally, the server performs mean calculation on the traffic event activation semantic vector to further extract the key information in the vector. The calculated mean vector is called the first mean semantic vector.

[0094] Step S124, obtaining the second standard deviation corresponding to the traffic state flow semantic conversion vector, performing a standardized transformation on the traffic state flow semantic conversion vector based on the second standard deviation to generate a traffic state flow standardized semantic vector, performing an activation function operation on the traffic state flow standardized semantic vector to generate a traffic state flow activated semantic vector, performing mean calculation on the traffic state flow activated semantic vector to generate a second mean semantic vector.

[0095] Step S125: fuse the first mean semantic vector and the second mean semantic vector to generate a fused semantic vector, and perform semantic encoding processing on the fused semantic vector based on the semantic association weight array corresponding to the semantic association network in the recurrent neural network model to generate the first semantic integration vector.

[0096] In this embodiment, this process is similar to the processing of the traffic event semantic vector. The server also performs standardization conversion, activation function operation and mean calculation on the traffic state flow semantic conversion vector to finally generate a second mean semantic vector.

[0097] The server fuses the first mean semantic vector and the second mean semantic vector. The fusion method can be a simple weighted summation, splicing or other more complex fusion algorithms, depending on the design of the model and the characteristics of the data. The fused vector is called a fused semantic vector.

[0098] Finally, the server uses the semantic association network in the recurrent neural network model to perform semantic encoding on the fused semantic vector. The semantic association network further transforms and encodes the fused semantic vector through its internal semantic association weight array to generate a first semantic integration vector, which integrates the key information of the traffic event semantic vector and the traffic state flow semantic vector, and performs effective association and integration in the same semantic representation domain.

[0099] In a possible implementation, step S120 further includes:

[0100] Step S126, using the discriminant network in the recurrent neural network model to perform discriminant analysis on the first semantic integration vector, and generating discriminant scores corresponding to X feature interaction aggregation models.

[0101] Step S126: output the semantic vector interaction aggregation model corresponding to the maximum discriminant score as the first feature interaction aggregation model corresponding to the traffic event semantic vector.

[0102] In this embodiment, the server has successfully generated a first semantic integration vector, which integrates the key information of the traffic event semantic vector and the traffic state flow semantic vector, and effectively associates and integrates them in the same semantic representation domain. Next, the server needs to select a first feature interaction aggregation model that best suits the current situation from among the X predefined feature interaction aggregation models.

[0103] In detail, the server first loads the discriminant network part in the recurrent neural network model. The discriminant network is trained to receive the semantic vector as input and output the matching degree score between the vector and each feature interaction aggregation model. The server passes the first semantic integration vector as input data to the discriminant network. After receiving the input, the discriminant network will start its internal calculation logic to conduct in-depth analysis and evaluation of the first semantic integration vector. The discriminant network calculates the discriminant scores corresponding to each of the X feature interaction aggregation models based on the content of the first semantic integration vector and the feature representation and weight parameters learned internally. These discriminant scores reflect the matching degree and correlation between the first semantic integration vector and each feature interaction aggregation model.

[0104] After the server obtains the X discriminant scores output by the discriminant network, it will compare and analyze these scores. The purpose of the comparison is to find the largest discriminant score, because the largest discriminant score means that the corresponding feature interaction aggregation model has the highest degree of match with the first semantic integration vector, that is, the model that best suits the current traffic event and traffic status. The server determines the feature interaction aggregation model corresponding to the largest discriminant score as the first feature interaction aggregation model corresponding to the traffic event semantic vector. This model will be used in the subsequent feature interaction aggregation process to further explore the deep connection and potential laws between traffic events and traffic status. Finally, the server outputs the determined first feature interaction aggregation model to the subsequent processing flow. The first feature interaction aggregation model contains all the parameters and structural information required for feature interaction aggregation, which can provide strong support for subsequent analysis and prediction.

[0105] In a possible implementation, the first feature interaction aggregation model includes a feature attention network.

[0106] Step S130 includes:

[0107] Step B110: Integrate the traffic event semantic vector and the traffic state flow semantic vector to generate a first integrated semantic vector.

[0108] Step B120, based on the conversion weight array corresponding to the feature attention network, convert the first integrated semantic vector into a first search array, a first index array and a first value array.

[0109] Step B130: Generate a first reference semantic array based on the interaction result between the first search array and the traffic event semantic vector, and the interaction result between the first search array and the traffic state flow semantic vector.

[0110] Step B140, generating a second reference semantic array based on the replacement result of the interaction result between the first index array and the traffic event semantic vector, and the replacement result of the interaction result between the first index array and the traffic state flow semantic vector.

[0111] Step B150: Generate a third reference semantic array based on the interaction result between the first numerical array and the traffic event semantic vector, and the interaction result between the first numerical array and the traffic state flow semantic vector.

[0112] Step B160: Output the interaction result between the first reference semantic array and the second reference semantic array as a fourth reference semantic array, and obtain the number of feature dimensions of the traffic event semantic vector.

[0113] Step B170, standardize the ratio between the fourth reference semantic array and the square root of the number of feature dimensions to generate a self-focusing weight array, and output the interaction result between the self-focusing weight array and the third reference semantic array as a first self-focusing weight interaction vector.

[0114] Step B180: output the first Y self-focus weight interaction vectors in the first self-focus weight interaction vector as a first feature interaction aggregation vector.

[0115] In this embodiment, the server has determined a first feature interaction aggregation model, which includes a feature attention network, and is ready to perform feature interaction aggregation on the traffic event semantic vector based on the traffic state flow semantic vector in the first feature interaction aggregation model.

[0116] Specifically, the server first integrates the traffic event semantic vector and the traffic state flow semantic vector. The integration method can be simple concatenation, weighted summation, or other more complex fusion methods, depending on the model design and data characteristics. The integrated vector is called the first integrated semantic vector, which contains information about both traffic events and traffic states.

[0117] Next, the server loads the conversion weight array corresponding to the feature attention network, which is learned by the feature attention network during training and is used to convert the input vector into a specific data structure (such as a search array, an index array, and a value array) for subsequent feature interaction aggregation. The server uses the conversion weight array to convert the first integrated semantic vector into a first search array, a first index array, and a first value array. These three arrays represent different feature dimensions and interaction modes, respectively, and provide a basis for subsequent feature interaction aggregation.

[0118] Based on the interaction results between the first search array and the traffic event semantic vector, and the interaction results between the first search array and the traffic state flow semantic vector, the server generates a first reference semantic array, which includes the interaction information between traffic events and traffic states on the search dimension.

[0119] Then, based on the permutation results of the interaction results between the first index array and the traffic event semantic vector, and the permutation results of the interaction results between the first index array and the traffic state flow semantic vector, a second reference semantic array is generated, which further mines the interaction information on the index dimension through the permutation operation.

[0120] Finally, based on the interaction results between the first numerical array and the traffic event semantic vector, and the interaction results between the first numerical array and the traffic state flow semantic vector, the server generates a third reference semantic array, which provides interaction information in the numerical dimension and is an important component of feature interaction aggregation.

[0121] On this basis, the server outputs the interaction results between the first reference semantic array and the second reference semantic array as a fourth reference semantic array, which integrates the interaction information on the search and index dimensions. The server obtains the number of feature dimensions of the traffic event semantic vector, which is crucial for the subsequent standardized conversion. The server performs a standardized conversion on the ratio between the fourth reference semantic array and the square root of the number of feature dimensions to generate a self-focusing weight array, which reflects the importance of the interactive information on different feature dimensions.

[0122] The server outputs the interaction result between the self-focus weight array and the third reference semantic array as a first self-focus weight interaction vector. The first self-focus weight interaction vector integrates the interaction information and self-focus weight in the numerical dimension and is one of the final results of feature interaction aggregation.

[0123] The server selects the first Y self-focus weighted interaction vectors from the first self-focus weighted interaction vector as output. The selection process may be based on specific sorting or screening criteria to ensure that the output vector can most effectively represent the interaction characteristics between traffic events and traffic states. Finally, the server outputs the selected Y self-focus weighted interaction vectors as the first feature interaction aggregation vector, which will serve as one of the basic data for subsequent analysis and prediction, helping the server to better understand the traffic conditions and potential risks on the road.

[0124] For example, assume that the target road segment is a busy urban intersection, and the server is monitoring the traffic conditions at the intersection. In a certain time period, the server captures a traffic event (such as a minor vehicle rear-end collision) and corresponding traffic state data (such as traffic flow, vehicle speed, etc.). The server has successfully generated a traffic event semantic vector and a traffic state flow semantic vector, and is ready to perform feature interaction aggregation in the first feature interaction aggregation model.

[0125] The traffic event semantic vector may contain information about the rear-end collision, such as the time, location, type of vehicles involved, and severity of the accident. The traffic state flow semantic vector may contain information such as the traffic volume, average speed, and lane occupancy rate at the intersection during the time period. The server concatenates and integrates these two vectors to generate a first integrated semantic vector, which contains both the specific information of the accident and the overall traffic state of the intersection.

[0126] The feature attention network has been trained with a large amount of historical data and has learned how to effectively convert input vectors into search arrays, index arrays, and value arrays. In this example, the conversion weight array may be optimized based on different characteristics of accident type and traffic status to ensure that the converted array can capture the most critical information. The server uses the conversion weight array to convert the first integrated semantic vector into three arrays:

[0127] The first search array may contain feature indices most relevant to the accident location and time.

[0128] The first index array may sort the features by importance.

[0129] The first numerical array contains specific numerical information, such as vehicle speed, traffic volume, etc.

[0130] The server first generates a first reference semantic array based on the interaction between the first search array and the traffic event semantic vector and the traffic state flow semantic vector. This array may highlight the feature of the sudden reduction in vehicle speed when the accident occurs. Then, the server processes the interaction results of the first index array and the two semantic vectors through a permutation operation to generate a second reference semantic array, which may reveal the impact of the accident on the subsequent traffic flow pattern. Finally, the server directly calculates the interaction results of the first numerical array and the two semantic vectors to generate a third reference semantic array, which contains specific numerical changes, such as the reduction in traffic volume after the accident.

[0131] The server obtains the number of feature dimensions of the traffic event semantic vector, and performs a standardized transformation on the fourth reference semantic array (obtained by the interaction of the first and second reference semantic arrays) based on this number. After the standardized transformation, the server generates a self-focusing weight array, and each weight in this self-focusing weight array reflects the importance of the interactive information on the corresponding feature dimension. Then, the server interacts the self-focusing weight array with the third reference semantic array to generate a first self-focusing weight interaction vector, in which each element is weighted numerical information, which includes both specific traffic status changes and highlights the features most relevant to the accident.

[0132] The server selects the first Y most important self-focus weight interaction vectors from the first self-focus weight interaction vector as output according to preset rules or thresholds. In this example, Y may be set according to the complexity of the model and actual needs. For example, if the model needs to process a large number of features and has high real-time requirements, Y may be set smaller to retain the most critical information. Ultimately, the first feature interaction aggregation vector output by the server will serve as the basis for subsequent analysis and prediction, helping traffic management departments better understand and respond to traffic conditions at intersections.

[0133] In the above example, the traffic event semantic vector describes a minor rear-end collision at an intersection and may contain the following features (and corresponding hypothetical values):

[0134] Traffic incident semantic vector = [0.75 (accident severity, minor accident), 0.0 (whether pedestrians were involved, no), 1.0 (whether vehicles were involved, yes), 14:00 (accident time, hourly), 'Intersection A' (accident location), ... (other relevant features, such as weather conditions, visibility, etc.)]

[0135] Similarly, the traffic state flow semantic vector may contain the traffic state information of the intersection in a specific time period, such as: Traffic state flow semantic vector = [0.8 (traffic density, close to congestion), 30 km / h (average speed), 0.2 (lane occupancy rate, some lanes are occupied), 'green light' (current traffic light status), ... (other related features, such as the traffic volume in a specific lane, the speed change before the accident, etc.)]

[0136] After integrating the traffic event semantic vector and the traffic state flow semantic vector, we get the first integrated semantic vector: First integrated semantic vector = [ ... (traffic event related features, encoded or selected), 0.8 (traffic flow density), 30 km / h (average speed), 0.2 (lane occupancy), 'green light' encoding value, ... (other unified features)

[0137] After processing by the feature attention network and feature interaction aggregation, the server finally outputs the first feature interaction aggregation vector, which may highlight the traffic state features most relevant to the traffic event and express the relationship between them in a more compact and meaningful way. However, since it is the result of the model output, its specific value and meaning will depend on the training data and parameters of the model:

[0138] The first feature interaction aggregation vector = [ 0.9 (indicates that the accident has a significant impact on traffic flow), -0.5 (indicates that the accident causes a decrease in speed), 0.3 (indicates that the lane occupancy rate has increased slightly, but not as significantly as the changes in traffic flow and speed),... (other aggregated feature values) ]

[0139] It is worth noting that the above values ​​are hypothetical and are only used for illustrative purposes. In actual applications, the specific value and meaning of the first feature interaction aggregation vector will depend on the design of the model and the data.

[0140] In a possible implementation, the first feature interaction aggregation model includes a feature attention network.

[0141] Step S130 may further include:

[0142] Step C110, using the feature attention network, converting the traffic event semantic vector into a second search array, and converting the traffic state flow semantic vector into a second index array and a second value array.

[0143] In this embodiment, the server first loads a pre-trained feature attention network, which contains weights and parameters for converting an input vector into a specific data structure.

[0144] The feature attention network receives a traffic event semantic vector and a traffic state flow semantic vector as input. According to the design of the network, the traffic event semantic vector is converted into a second search array, which may contain the feature index or search path most relevant to the traffic event. At the same time, the traffic state flow semantic vector is converted into a second index array and a second value array. The second index array may sort the traffic state features according to some importance or relevance, while the second value array contains specific numerical information.

[0145] Step C120, performing a cross product operation on the interaction results between the second search array and the traffic event semantic vector, and the permutation results of the interaction results between the second index array and the traffic state flow semantic vector, to generate a fifth reference semantic array and obtain the number of feature dimensions of the traffic event semantic vector.

[0146] The server calculates the interaction result between the second search array and the traffic event semantic vector, and this interaction may involve matching the index in the search array and extracting the feature value of the corresponding position in the traffic event semantic vector. At the same time, the server also calculates the permutation result of the interaction result between the second index array and the traffic state flow semantic vector. The permutation operation may involve rearranging the elements in the traffic state flow semantic vector according to the order of the index array.

[0147] The server performs a cross product operation on the above two interaction results to generate a fifth reference semantic array, which may contain information about complex interactions between traffic events and traffic states, wherein each element is the product of corresponding eigenvalues ​​in two input vectors.

[0148] The server obtains the number of feature dimensions of the traffic event semantic vector, which will be used in the subsequent standardization conversion process.

[0149] Step C130, standardize the ratio between the fifth reference semantic array and the square root of the number of feature dimensions to generate a cross-label self-focusing weight array, perform a cross-product operation on the cross-label self-focusing weight array and the interaction result between the second numerical array and the traffic state flow semantic vector to generate a cross-label self-focusing weight vector.

[0150] In this embodiment, the server performs a normalization conversion on the ratio between the fifth reference semantic array and the square root of the number of feature dimensions. This operation helps to balance the impact of different feature dimensions on the final result and avoid some dimensions dominating the result due to their large numerical range. The array generated after the normalization conversion is called a cross-label self-focus weight array, which reflects the importance of the interactive information on different feature dimensions.

[0151] Next, the server performs a cross-product operation on the cross-label self-focus weight array and the interaction results between the second numerical array and the traffic status flow semantic vector. This operation process combines the importance weight of the feature and the specific numerical information to generate a cross-label self-focus weight vector. Each element in the cross-label self-focus weight vector is weighted numerical information, which can more accurately reflect the interaction characteristics between traffic events and traffic status.

[0152] Step C140: output the first Y self-focus weight interaction vectors in the cross-label self-focus weight vector as a first feature interaction aggregation vector.

[0153] The server selects the first Y self-focus weight interaction vectors from the cross-label self-focus weight vectors as output. The selection process may be based on specific sorting criteria (such as weight size, numerical significance, etc.) to ensure that the output vector can most effectively represent the interaction characteristics between traffic events and traffic states. Finally, the server outputs the selected Y self-focus weight interaction vectors as the first feature interaction aggregation vector, which contains key information after feature interaction aggregation processing and can be used for subsequent analysis, prediction or decision support.

[0154] In one example, suppose that the server is monitoring a main traffic artery in a city and has captured a vehicle rear-end collision (traffic event) and the traffic status data of the road section before and after the accident. The server has generated a traffic event semantic vector and a traffic status flow semantic vector based on these data, and is ready to perform feature interaction aggregation in the first feature interaction aggregation model.

[0155] Traffic incident semantic vector = [0.8 (accident severity), 0 (whether pedestrians are involved), 1 (whether vehicles are involved), 15:00 (accident time), 'Road Section B' (accident location)]

[0156] Traffic state flow semantic vector = [0.75 (traffic density), 40 km / h (average speed), 0.1 (lane occupancy), 'green light' (signal light status)]

[0157] It is worth noting that only some key features are listed here to simplify the description, and the values ​​are hypothetical. In actual applications, string features (such as locations) may need to be encoded as values.

[0158] The feature attention network converts the traffic event semantic vector and traffic state flow semantic vector into corresponding data structures according to the trained weights and parameters:

[0159] The traffic event semantic vector is converted into a second search array, which may contain the feature indexes most relevant to the severity of the accident, the time of the accident, etc. The traffic state flow semantic vector is converted into a second index array and a second value array. The second index array may sort the features according to their importance to the accident, and the second value array contains specific value information.

[0160] The server calculates the interaction result between the second search array and the traffic event semantic vector, and the permutation result of the interaction result between the second index array and the traffic state flow semantic vector, and performs a cross product operation:

[0161] Assume that the second search array indicates that the severity and time of the accident are the most critical features. The interaction result may show a strong correlation between the severity of the accident and the density of traffic flow and the average speed. The permutation result may reorder the features in the traffic state flow semantic vector according to their importance to the impact of the accident. The fifth reference semantic array generated after the cross product operation may contain a series of weighted values, reflecting the complex interaction between traffic events and traffic states.

[0162] The server performs a standardized transformation on the fifth reference semantic array to generate a cross-label self-focus weight array. Then, a cross-product operation is performed on the cross-label self-focus weight array with the interaction result between the second numerical array and the traffic state flow semantic vector: the standardized transformation ensures that the weights on different feature dimensions are within a reasonable range. The cross-product operation generates a cross-label self-focus weight vector, in which each element is a weighted value, reflecting the specific impact of the traffic event on the traffic state.

[0163] The server selects the first Y most important self-focus weight interaction vectors from the cross-label self-focus weight vectors as output. These vectors may directly correspond to the most critical influencing factors in traffic events, such as reduced traffic volume and reduced vehicle speed caused by accidents:

[0164] The first feature interaction aggregation vector = [0.6 (indicates that the accident caused a significant reduction in traffic volume), 1.2 (indicates that the accident caused a significant drop in vehicle speed), ... (quantitative representation of other key influencing factors)]

[0165] It is worth noting that the above values ​​are hypothetical and are only used for illustration purposes. In actual applications, the specific value of the first feature interaction aggregation vector will depend on the training data, model parameters of the feature attention network, and the characteristics of actual traffic events.

[0166] In a possible implementation, the first feature interaction aggregation model includes a traffic restriction collection feature attention network.

[0167] Step S130 may further include:

[0168] Step D110, obtaining traffic restriction collection features, integrating the traffic restriction collection features with the traffic state flow semantic vector, and generating a second integrated semantic vector. The traffic restriction collection features are used to establish a connection between different semantic category label vectors.

[0169] In this embodiment, the server also needs to consider traffic restriction factors (such as construction areas, road closures, traffic control, etc.), which are crucial for understanding the impact of traffic events and predicting future traffic conditions.

[0170] In detail, the server first obtains the current traffic restriction information through the database of the traffic management department, the real-time traffic information system or the third-party data provider. The traffic restriction information may include the location and scope of the construction area, the start and end time of the road closure, the specific measures of traffic control, etc.

[0171] The server extracts key features from the traffic restriction information to form traffic restriction collection features, which may include restriction type (such as construction, closure, control), restricted area (specific road section or intersection), restriction time (start and end time), etc.

[0172] The server integrates the traffic restriction collection features and the traffic state flow semantic vector. The integration method can be simple splicing, or the traffic restriction features can be integrated into the traffic state flow semantic vector through some mapping or encoding method. The integrated vector is called the second integrated semantic vector, which contains both the real-time traffic state and the current traffic restriction information.

[0173] Step D120, using the first feature attention unit in the traffic restriction collection feature attention network, performs self-focus weight interaction processing on the second integrated semantic vector to generate a second self-focus weight interaction vector, and outputs the leading vector in the second self-focus weight interaction vector as a reference feature interaction aggregation vector.

[0174] In this embodiment, the server loads the first feature attention unit in the traffic restriction collection feature attention network. The first feature attention unit is trained to identify the features most relevant to the traffic restriction in the second integrated semantic vector and calculate their self-focusing weights.

[0175] The first feature attention unit performs a self-focus weighted interaction process on the second integrated semantic vector, which may involve calculating a weight for each element (or feature combination) in the vector to highlight features that are closely related to traffic restrictions. The processed vector is called the second self-focus weighted interaction vector.

[0176] The server selects a leading vector (which may be a vector with the largest weight, or a vector selected according to a certain rule) from the second self-focus weighted interaction vector as a reference feature interaction aggregation vector, which represents the main impact of traffic restrictions on traffic status.

[0177] Step D130, integrating the traffic event semantic vector and the reference feature interaction aggregation vector to generate a third integrated semantic vector, and using the second feature attention unit in the traffic restriction collection feature attention network to perform self-focus weight interaction processing on the third integrated semantic vector to generate a third self-focus weight interaction vector.

[0178] In this embodiment, the server integrates the traffic event semantic vector and the reference feature interaction aggregation vector. The integration method can also be splicing or other forms of fusion to generate a third integrated semantic vector, which contains both the information of the traffic event and the main impact of the traffic restriction on the traffic state.

[0179] The server loads the second feature attention unit in the traffic restriction collection feature attention network, which is similar to the first feature attention unit, but may be for different types of input vectors or have different weight calculation strategies. The second feature attention unit performs self-focus weight interaction processing on the third integrated semantic vector, which further mines the interactive relationship between traffic events and traffic restrictions and calculates their self-focus weights. The processed vector is called the third self-focus weight interaction vector.

[0180] Step D140: output the first Y self-focus weight interaction vectors in the third self-focus weight interaction vector as a first feature interaction aggregation vector.

[0181] The server selects the first Y self-focus weight interaction vectors from the third self-focus weight interaction vector as output, and the selection process may be based on weight size, feature significance or other relevant criteria.

[0182] Finally, the server outputs the selected Y self-focus weighted interaction vectors as the first feature interaction aggregation vector, which integrates the complex interactive relationship between traffic events, traffic status and traffic restrictions, providing strong support for subsequent traffic management and decision-making.

[0183] In one example, a server is monitoring a busy traffic section that includes a construction zone. On this section, a vehicle rear-end collision (traffic incident) is captured, and the server also obtains the real-time traffic status data of the section and the traffic restriction information of the construction zone.

[0184] Traffic incident semantic vector: [0.8 (accident severity), 0 (whether pedestrians are involved), 1 (whether vehicles are involved), 14:30 (accident time), 'Road section C' (accident location)]

[0185] Traffic state flow semantic vector (assuming it has been encoded and standardized): [0.7 (traffic density), 35 km / h (average speed, converted to a value in the range of 0-1), 0.15 (lane occupancy rate)]

[0186] Traffic restriction collection features: ['Construction', 'Road Section C', '14:00-16:00']

[0187] These features indicate that there is a construction zone on 'Road Section C' with restricted hours from 14:00 to 16:00.

[0188] The server integrates the traffic restriction collection features with the traffic status stream semantic vector. In this example, the integration may involve encoding the construction information into a numeric vector (e.g., using one-hot encoding or embedding vectors) and concatenating it with the traffic status stream semantic vector:

[0189] Second integrated semantic vector (schematic representation): [0.7, 0.35, 0.15, 1 (construction area sign), 0 (other road section signs, assuming there are multiple road section codes), ..., 1 (time interval sign, corresponding to 14:00-16:00)]

[0190] It is worth noting that the numerical values ​​here are indicative and the actual encoding method may be more complicated.

[0191] The first feature attention unit performs self-focus weight interaction processing on the second integrated semantic vector to highlight the features closely related to the construction area. In the processed second self-focus weight interaction vector, the feature weights related to the construction time, construction section, and lane occupancy may be higher. The server selects the leading vector from these weights as the reference feature interaction aggregation vector.

[0192] The server integrates the traffic event semantic vector with the reference feature interaction aggregation vector to generate a third integrated semantic vector, which includes both the accident information and the main impact of the construction on the traffic status.

[0193] The second feature attention unit further performs self-focus weight interaction processing on the third integrated semantic vector, which mines the potential interaction relationship between accidents and construction and generates a third self-focus weight interaction vector. In this third self-focus weight interaction vector, the weights of features related to the severity of the accident, the speed reduction caused by construction, and the increase in lane occupancy may be higher.

[0194] The server selects the first Y most important self-focus weight interaction vectors from the third self-focus weight interaction vector as output to form a first feature interaction aggregation vector, which may directly reflect the joint impact of accidents and construction on traffic status, such as:

[0195] The first feature interaction aggregation vector = [0.5 (indicates that the accident and construction together cause a significant decrease in vehicle speed), 0.4 (indicates that the lane occupancy rate increases due to the accident and construction, but not as significantly as the decrease in vehicle speed), ... (quantitative representation of other key influencing factors)]

[0196] It is worth noting that the above numerical values ​​and vector structures are schematic and are used to illustrate the process rather than the actual output. In actual applications, the specific numerical value and structure of the first feature interaction aggregation vector will depend on the training data, encoding method, weight parameters of the model and the characteristics of the actual traffic scene.

[0197] In a possible implementation, step S160 includes:

[0198] Step S161: Integrate the first feature interaction aggregation vector and the second feature interaction aggregation vector to generate a fourth integrated semantic vector.

[0199] Step S162, performing emergency event knowledge point prediction on the fourth integrated semantic vector to generate an emergency event knowledge point prediction result corresponding to the target road section.

[0200] In this embodiment, the server has successfully generated the first feature interaction aggregation vector and the second feature interaction aggregation vector. The first feature interaction aggregation vector mainly reflects the interaction relationship between traffic events and traffic status, while the second feature interaction aggregation vector further considers the changes of this interaction relationship under traffic restriction conditions. Now, the server is ready to integrate these two vectors to more comprehensively describe the traffic conditions of the target road section.

[0201] The server first loads the first feature interaction aggregation vector and the second feature interaction aggregation vector. Both vectors contain key information about the traffic conditions of the target road section, but with slightly different focuses. The server selects an appropriate integration method based on the design of the model and the characteristics of the data. In this scenario, since both vectors come from different parts of the same feature interaction aggregation model, simple concatenation can be a reasonable choice. However, more complex integration methods such as weighted summation and feature fusion can also be considered to better balance the information in the two vectors.

[0202] The server integrates the first feature interaction aggregation vector and the second feature interaction aggregation vector according to the selected integration method. The integrated vector is called the fourth integrated semantic vector, which combines all the key information of the two original vectors and provides comprehensive input data for subsequent emergency event knowledge point prediction.

[0203] The server has obtained the fourth integrated semantic vector, which fully describes the traffic conditions of the target road segment. Now, the server is ready to analyze and predict this vector using the pre-trained emergency event knowledge point prediction model to determine possible emergency events and their related knowledge points.

[0204] The server loads a pre-trained emergency event knowledge point prediction model, which can be a complex machine learning model or a deep learning network. After being trained with a large amount of historical data, it can identify abnormal patterns and potential risks in traffic conditions.

[0205] The server passes the fourth integrated semantic vector as input data to the emergency event knowledge point prediction model. After receiving the input, the emergency event knowledge point prediction model will start its internal calculation logic and reasoning mechanism. The emergency event knowledge point prediction model conducts in-depth analysis and prediction of the fourth integrated semantic vector. For example, different feature combinations in the fourth integrated semantic vector may be used to identify potential emergency event patterns, such as traffic accidents, traffic congestion, road damage, etc. At the same time, the model will also predict related knowledge points based on these patterns, such as emergency treatment measures, traffic diversion plans, road maintenance suggestions, etc. Finally, the server presents the prediction results output by the emergency event knowledge point prediction model, which may include one or more possible emergency events and their corresponding knowledge points. The server can formulate corresponding emergency response plans or traffic management strategies based on these prediction results to improve road safety and traffic efficiency.

[0206] Figure 2 The hardware structure of the road emergency event handling system 100 for implementing the road emergency event handling method provided in the embodiment of the present application is shown as follows: Figure 2 As shown, the road emergency event handling system 100 may include a processor 110 , a machine-readable storage medium 120 , a bus 130 , and a communication unit 140 .

[0207] In a possible design, the road emergency event handling system 100 can be a single server or a server group. The server group can be centralized or distributed (for example, the road emergency event handling system 100 can be a distributed system). In some embodiments, the road emergency event handling system 100 can be local or remote. For example, the road emergency event handling system 100 can access information and / or data stored in a machine-readable storage medium 120 via a network. For another example, the road emergency event handling system 100 can be directly connected to the machine-readable storage medium 120 to access the stored information and / or data. In some embodiments, the road emergency event handling system 100 can be implemented on a road emergency event handling system. As an example only, the road emergency event handling system can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-layer cloud, etc. or any combination thereof.

[0208] The machine-readable storage medium 120 may store data and / or instructions. In some embodiments, the machine-readable storage medium 120 may store data acquired from an external terminal. In some embodiments, the machine-readable storage medium 120 may store data and / or instructions that the road emergency event handling system 100 uses to execute or use to complete the exemplary method described in this application.

[0209] During the specific implementation process, one or more processors 110 execute computer executable instructions stored in the machine-readable storage medium 120, so that the processor 110 can execute the road emergency event handling method of the above method embodiment. The processor 110, the machine-readable storage medium 120 and the communication unit 140 are connected through the bus 130, and the processor 110 can be used to control the sending and receiving actions of the communication unit 140.

[0210] The specific implementation process of the processor 110 can refer to the various method embodiments executed by the above-mentioned road emergency event processing system 100. The implementation principles and technical effects are similar, and this embodiment will not be repeated here.

[0211] In addition, an embodiment of the present application also provides a readable storage medium, in which computer executable instructions are preset. When a processor executes the computer executable instructions, the above road emergency event handling method is implemented.

[0212] It should be noted that in order to simplify the description disclosed in this application and thus help understand one or more embodiments of the invention, in the foregoing description of the embodiments of the present application, multiple features are sometimes combined into one embodiment, drawings, or descriptions thereof. Similarly, it should be noted that in order to simplify the description disclosed in this application and thus help understand one or more embodiments of the invention, in the foregoing description of the embodiments of the present application, multiple features are sometimes combined into one embodiment, drawings, or descriptions thereof.

Claims

1. A method for handling road emergency events, characterized in that: The method comprises: Obtaining a traffic event semantic vector in the video surveillance data corresponding to the target road section, and obtaining a traffic state flow semantic vector corresponding to the target road section; The traffic event semantic vector and the traffic state flow semantic vector are semantically associated and integrated within the same semantic representation domain to generate a first semantic integration vector, and based on the first semantic integration vector, a first feature interaction aggregation model corresponding to the traffic event semantic vector is determined in X feature interaction aggregation models; the X feature interaction aggregation models are used to perform feature interaction aggregation on the semantic vectors of multiple semantic category labels according to different semantic vector interaction weights, where X is a positive integer; In the first feature interaction aggregation model, the traffic event semantic vector is subjected to feature interaction aggregation based on the traffic state flow semantic vector to generate a first feature interaction aggregation vector; Performing semantic association integration on the traffic state flow semantic vector and the first feature interaction aggregation vector in the same semantic representation domain to generate a second semantic integration vector, and determining a second feature interaction aggregation model corresponding to the traffic state flow semantic vector in the X feature interaction aggregation models based on the second semantic integration vector; In the second feature interaction aggregation model, feature interaction aggregation is performed on the traffic state flow semantic vector based on the first feature interaction aggregation vector to generate a second feature interaction aggregation vector; Determining a prediction result of an emergency event knowledge point corresponding to the target road section based on the first feature interaction aggregation vector and the second feature interaction aggregation vector; The step of obtaining a semantic vector of a traffic event in video surveillance data corresponding to a target road section includes: Obtaining video surveillance data corresponding to a target road section, and dividing the video surveillance data into Y road video surveillance segments; Performing semantic feature representation on the Y road video surveillance clips to generate video semantic features corresponding to the Y road video surveillance clips; Performing traffic event attention analysis on the video semantic features corresponding to the Y road video surveillance clips to generate a traffic event attention distribution corresponding to the Y road video surveillance clips; Fusion of the video semantic features corresponding to the Y road video surveillance clips and the traffic event attention distribution corresponding to the Y road video surveillance clips to generate a traffic event semantic vector corresponding to the video surveillance data; The steps of representing the Y road video surveillance clips with semantic features, generating video semantic features corresponding to the Y road video surveillance clips, and performing traffic event attention analysis on the video semantic features corresponding to the Y road video surveillance clips, and generating traffic event attention distribution corresponding to the Y road video surveillance clips, include: Perform semantic feature representation on the Y road video surveillance clips, determine motion features, object features and behavior features of the Y road video surveillance clips as video semantic features corresponding to the Y road video surveillance clips, wherein the moving objects in the Y road video surveillance clips are detected by an optical flow method, an inter-frame difference method or a background difference method to extract motion parameters of the moving objects, wherein the motion parameters include speed, direction and acceleration; use a target detection algorithm to identify objects in the Y road video surveillance clips and attribute features of the objects, wherein the attribute features include type, color, size and shape; and analyze the behavior pattern of the object and the behavior features of the behavior pattern, wherein the behavior features include the time, location and duration of the behavior; Determine whether a traffic event has occurred in the Y road video surveillance clips based on the motion characteristics, object characteristics, and behavior characteristics of the Y road video surveillance clips, and determine the event type and event characteristics of the traffic event; Predicting the attention of the traffic event according to the event type and event characteristics of the traffic event, and generating a traffic event attention distribution for the Y road video surveillance clips according to the attention prediction result; the obtaining of the traffic state flow semantic vector corresponding to the target road section includes: Acquire Z traffic status data corresponding to the target road section, and integrate the Z traffic status data into a traffic status data stream; Loading the traffic status data stream into a semantic embedding network, performing semantic encoding processing on the traffic status data stream using the semantic embedding network, and generating a traffic status stream semantic vector corresponding to the target road section; The step of performing semantic association integration on the traffic event semantic vector and the traffic state flow semantic vector in the same semantic representation domain to generate a first semantic integration vector includes: The traffic event semantic vector and the traffic state flow semantic vector are loaded into a recurrent neural network model, and the traffic event semantic vector is converted into a semantic representation domain using a first semantic conversion network in the recurrent neural network model to generate a traffic event semantic conversion vector; The second semantic conversion network in the recurrent neural network model is used to convert the semantic representation domain of the traffic state flow semantic vector to generate a traffic state flow semantic conversion vector; the traffic event semantic conversion vector and the traffic state flow semantic conversion vector have the same semantic representation domain; Obtaining a first standard deviation corresponding to the traffic event semantic conversion vector, performing a standardized conversion on the traffic event semantic conversion vector based on the first standard deviation to generate a standardized semantic vector for the traffic event, performing an activation function operation on the standardized semantic vector for the traffic event to generate an activated semantic vector for the traffic event, and performing mean calculation on the activated semantic vector for the traffic event to generate a first mean semantic vector; Obtaining a second standard deviation corresponding to the traffic state flow semantic conversion vector, performing a standardized conversion on the traffic state flow semantic conversion vector based on the second standard deviation to generate a traffic state flow standardized semantic vector, performing an activation function operation on the traffic state flow standardized semantic vector to generate a traffic state flow activated semantic vector, performing mean calculation on the traffic state flow activated semantic vector to generate a second mean semantic vector; The first mean semantic vector and the second mean semantic vector are fused to generate a fused semantic vector, and based on the semantic association weight array corresponding to the semantic association network in the recurrent neural network model, the fused semantic vector is semantically encoded to generate the first semantic integration vector; The first feature interaction aggregation model includes a traffic restriction collection feature attention network; In the first feature interaction aggregation model, the traffic event semantic vector is subjected to feature interaction aggregation based on the traffic state flow semantic vector to generate a first feature interaction aggregation vector, including: Acquire traffic restriction collection features, integrate the traffic restriction collection features and the traffic state flow semantic vector to generate a second integrated semantic vector; the traffic restriction collection features are used to establish a connection between different semantic category label vectors; Using the first feature attention unit in the traffic restriction collection feature attention network, the second integrated semantic vector is subjected to self-focus weight interaction processing to generate a second self-focus weight interaction vector, and the leading vector in the second self-focus weight interaction vector is output as a reference feature interaction aggregation vector; Integrate the traffic event semantic vector and the reference feature interaction aggregation vector to generate a third integrated semantic vector, and use the second feature attention unit in the traffic restriction collection feature attention network to perform self-focus weight interaction processing on the third integrated semantic vector to generate a third self-focus weight interaction vector; The first Y self-focus weight interaction vectors in the third self-focus weight interaction vector are output as a first feature interaction aggregation vector.

2. The road emergency event handling method according to claim 1, characterized in that: The determining, based on the first semantic integration vector, a first feature interaction aggregation model corresponding to the traffic event semantic vector in X feature interaction aggregation models includes: Using the discriminant network in the recurrent neural network model to perform discriminant analysis on the first semantic integration vector, and generating discriminant scores corresponding to X feature interaction aggregation models; The semantic vector interaction aggregation model corresponding to the maximum discriminant score is output as the first feature interaction aggregation model corresponding to the traffic event semantic vector.

3. The road emergency event handling method according to claim 1, characterized in that: The first feature interaction aggregation model includes a feature attention network; In the first feature interaction aggregation model, the traffic event semantic vector is subjected to feature interaction aggregation based on the traffic state flow semantic vector to generate a first feature interaction aggregation vector, including: Integrating the traffic event semantic vector and the traffic state flow semantic vector to generate a first integrated semantic vector; Based on the conversion weight array corresponding to the feature attention network, converting the first integrated semantic vector into a first search array, a first index array and a first value array; Generate a first reference semantic array based on the interaction result between the first search array and the traffic event semantic vector, and the interaction result between the first search array and the traffic state flow semantic vector; Generate a second reference semantic array based on a permutation result of an interaction result between the first index array and the traffic event semantic vector, and a permutation result of an interaction result between the first index array and the traffic state flow semantic vector; Generate a third reference semantic array based on the interaction result between the first numerical array and the traffic event semantic vector, and the interaction result between the first numerical array and the traffic state flow semantic vector; Outputting the interaction result between the first reference semantic array and the second reference semantic array as a fourth reference semantic array, and obtaining the number of feature dimensions of the traffic event semantic vector; Standardize the ratio between the fourth reference semantic array and the square root of the number of feature dimensions to generate a self-focusing weight array, and output the interaction result between the self-focusing weight array and the third reference semantic array as a first self-focusing weight interaction vector; The first Y self-focus weight interaction vectors in the first self-focus weight interaction vector are output as a first feature interaction aggregation vector.

4. The road emergency event handling method according to claim 1, characterized in that: The first feature interaction aggregation model includes a feature attention network; In the first feature interaction aggregation model, the traffic event semantic vector is subjected to feature interaction aggregation based on the traffic state flow semantic vector to generate a first feature interaction aggregation vector, including: Using the feature attention network, converting the traffic event semantic vector into a second search array, and converting the traffic state flow semantic vector into a second index array and a second value array; Performing a cross product operation on the permutation result of the interaction result between the second search array and the traffic event semantic vector, and the interaction result between the second index array and the traffic state flow semantic vector, to generate a fifth reference semantic array, and obtaining the number of feature dimensions of the traffic event semantic vector; Standardize the ratio between the fifth reference semantic array and the square root of the number of feature dimensions to generate a cross-label self-focusing weight array, and perform a cross-product operation on the cross-label self-focusing weight array and the interaction result between the second numerical array and the traffic state flow semantic vector to generate a cross-label self-focusing weight vector; The first Y self-focus weight interaction vectors in the cross-label self-focus weight vector are output as a first feature interaction aggregation vector.

5. The road emergency event handling method according to claim 1, characterized in that: The step of determining the prediction result of the emergency event knowledge point corresponding to the target road section based on the first feature interaction aggregation vector and the second feature interaction aggregation vector includes: Integrating the first feature interaction aggregation vector and the second feature interaction aggregation vector to generate a fourth integrated semantic vector; Emergency event knowledge point prediction is performed on the fourth integrated semantic vector to generate an emergency event knowledge point prediction result corresponding to the target road section.

6. A road emergency event handling system, characterized in that: The road emergency event handling system includes a processor and a memory, the memory is connected to the processor, the memory is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the memory to implement the road emergency event handling method described in any one of claims 1-5 above.