This invention provides a method,
system, and medium for predicting waterway vessel congestion based on multi-agent
collaboration. The prediction method includes: at each
time step, dynamically calculating the
connectivity weights between nodes based on the vessel
traffic flow characteristics, waterway environmental characteristics, and historical congestion characteristics of the current node, generating an
adjacency matrix for the
current time step, and constructing a dynamic waterway topology graph; inputting the dynamic waterway topology graph and corresponding node features into a two-
branch temporal graph convolutional network, outputting short-term and long-term feature vectors; using a deep
reinforcement learning-driven adaptive gating fusion module to generate a fusion weight vector in real time, and weighting and fusing the short-term and long-term feature vectors according to the fusion weight vector to generate multi-scale spatiotemporal fusion features; inputting the multi-scale spatiotemporal fusion features into a full-cycle prediction output head, and outputting short-term, medium-term, and long-term waterway
congestion prediction results in parallel. This invention significantly improves prediction accuracy and adaptability.