Real-time image field quantity correlation analysis method and system for port storage
By constructing a spatiotemporal field evolution map and Granger causality test, the triggering source of port storage anomalies is identified, solving the problem that existing technologies cannot deeply analyze the anomaly formation mechanism, and realizing in-depth source tracing and preventive management of anomalies.
Patent Information
- Application Number
- CN202611710420.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-11-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for analyzing port and warehouse image field quantities cannot delve into the underlying mechanisms of anomaly formation. They lack a comprehensive analysis of the temporal evolution patterns and spatial propagation characteristics of field quantities, resulting in anomaly detection remaining only at the superficial level and failing to accurately identify the root causes of anomalies and implement preventative management.
By constructing a spatiotemporal field evolution map, anomaly detection and source tracing analysis are performed. Granger causality tests are used to identify triggering sources, a multi-level correlation link diagram is constructed, and a preventive field adjustment scheme is generated.
It enables in-depth source tracing and preventive management of anomalies, improves the accuracy and targeting of anomaly identification, and can identify weak points in advance and generate preventive adjustment plans.
Smart Images

Figure CN123181852A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent management technology for port warehousing, and in particular to a real-time image field correlation analysis method and system for port warehousing. Background Technology
[0002] Port warehousing management is a crucial link in the modern logistics system, directly impacting cargo turnover efficiency and port operational safety. With the continuous growth of port cargo throughput, traditional manual inspection methods are insufficient to meet the real-time monitoring needs of large-scale warehousing areas. Intelligent management technologies based on visual monitoring have gradually become a research hotspot. Existing technologies for real-time image field quantity correlation analysis in port warehousing typically employ fixed camera equipment to collect images of the warehousing area. Image processing techniques are used to extract field quantity parameters such as cargo stacking height, occupied area, and stacking position. Pre-set threshold rules or statistical analysis methods are then used to monitor the field quantity status. When field quantity parameters exceed safety thresholds, an alarm is triggered, enabling a passive response to warehousing anomalies. Some technical solutions further introduce machine learning algorithms to identify and classify field quantity features in images. By training models, they learn the distinction patterns between normal and abnormal states, improving the accuracy of anomaly detection to some extent.
[0003] However, existing technologies still have significant shortcomings in the application of complex port and warehousing scenarios. On the one hand, existing methods mainly focus on judging the state of field quantities at a single moment, lacking a comprehensive analysis of the temporal evolution and spatial propagation characteristics of field quantities. This results in anomaly detection remaining at the superficial level, unable to delve into the underlying mechanisms of anomaly formation. By the time anomalies are detected, they have often developed to a relatively serious stage, missing the best opportunity for early intervention. On the other hand, existing technologies lack sufficient analysis of the correlation between field quantity parameters, often relying on simple statistical correlation calculations. This makes it difficult to distinguish between real causal influences and accidental numerical correlations, and cannot accurately identify the root triggering factors that lead to anomalies. Consequently, anomaly handling lacks specificity, only enabling post-event remedial measures rather than preventing anomalies from recurring at the source. Summary of the Invention
[0004] This application provides a real-time image field quantity correlation analysis method and system for port warehousing, which solves the technical problems of existing port warehousing image field quantity analysis methods being unable to trace the multi-level causal triggering mechanism of anomalies and unable to preventively identify weak nodes with the same evolution pattern, thereby improving the depth of anomaly tracing and the accuracy of preventive management.
[0005] In a first aspect, this application provides a real-time image field-volume correlation analysis method for port warehousing, the method comprising: Step S1: Extract field quantity features from the real-time image sequence of the storage area to obtain the temporal field quantity vector and spatial topological relationship of each grid cell, and construct a spatiotemporal field quantity evolution map; Step S2: Perform anomaly detection and analysis on the spatiotemporal field evolution map to locate the anomaly initiation point; Step S3: Based on the anomaly initiation point, calculate the contribution of each grid to the field quantity of the anomaly grid at historical time through Granger causality test. Identify the trigger source level by level from the grids whose contribution exceeds the preset value. Organize the grid number, trigger time, field quantity state and contribution of the trigger source into nodes and edges to construct a multi-level association link graph representing the anomaly formation process. Step S4: Abstract the field quantity change characteristics and trigger relationship types in the multi-level association link graph and transform them into a graph pattern containing node feature templates and edge connection templates. Perform subgraph isomorphic matching in the current spatiotemporal field quantity evolution graph to identify weak nodes with similar graph pattern structures and generate preventive field quantity adjustment schemes.
[0006] Secondly, this application provides a real-time image field-volume correlation analysis system for port warehousing, the real-time image field-volume correlation analysis system for port warehousing comprising: The extraction module is used to extract field quantity features from real-time image sequences of the storage area, obtain the temporal field quantity vector and spatial topological relationship of each grid cell, and construct a spatiotemporal field quantity evolution map; The analysis module is used to perform anomaly detection and analysis on the spatiotemporal field evolution map and locate the anomaly initiation point; The identification module is used to calculate the contribution of each grid to the field quantity of the abnormal grid at historical time based on the anomaly initiation point through Granger causality test. The trigger source is identified level by level from the grids whose contribution exceeds the preset value. The grid number, trigger time, field quantity state and contribution of the trigger source are organized into nodes and edges to construct a multi-level association link graph that represents the anomaly formation process. The matching module is used to abstract the field quantity change characteristics and trigger relationship types in the multi-level association link graph and transform them into a graph pattern containing node feature templates and edge connection templates. It performs subgraph isomorphic matching in the current spatiotemporal field quantity evolution graph, identifies weak nodes with similar graph pattern structures, and generates preventive field quantity adjustment schemes.
[0007] Thirdly, a real-time image field-quantity correlation analysis device for port warehousing is provided, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor invokes the instructions in the memory to cause the real-time image field-quantity correlation analysis device for port warehousing to execute the aforementioned real-time image field-quantity correlation analysis method for port warehousing.
[0008] Fourthly, a computer-readable storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the above-described real-time image field correlation analysis method for port warehousing.
[0009] The technical solution provided in this application unifies the multidimensional field parameters and their spatiotemporal correlations of the storage area into a graph structure by constructing a spatiotemporal field evolution map. This allows the field information to not only include the temporal evolution characteristics of each grid cell itself, but also integrate the spatial topological coupling relationships between grids, providing a complete spatiotemporal data foundation for subsequent anomaly detection and source tracing analysis. When performing anomaly detection based on this map, the starting coordinates of the anomaly on the time and space axes are accurately marked by locating the anomaly initiation point, shifting anomaly identification from final state judgment to the initiation stage, and securing sufficient analysis time window for in-depth source tracing. The introduction of Granger causality test breaks through the limitations of traditional statistical correlation analysis. By establishing a vector autoregression model and conducting significance tests, it achieves accurate identification from numerical correlation to causal influence. The calculated field quantity influence contribution quantifies the strength of each grid's role in anomaly formation. The mechanism of identifying trigger sources step by step constructs a complete causal link from the initial cause through multiple levels of transmission to the anomaly initiation point. The grid number, trigger time, field quantity state, and contribution of the trigger source in the multi-level correlation link graph are organized into a graph structure representation of nodes and edges, clearly showing the temporal relationship and causal transmission strength of each link in the anomaly formation process. This allows anomaly tracing to go from superficial analysis to the mechanism level, providing precise target positioning for targeted intervention. Attached Figure Description
[0010] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 This is a schematic diagram of an embodiment of the real-time image field correlation analysis method for port warehousing in this application. Figure 2 This is a schematic diagram illustrating the contribution of the Granger causality test to the field quantity of each grid cell in an embodiment of this application. Figure 3 This is a schematic diagram illustrating how the prediction error changes with the number of iterations during the adaptive model update process in an embodiment of this application. Detailed Implementation
[0012] This application provides a method and system for real-time image field correlation analysis for port warehousing. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data used can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0013] For ease of understanding, the specific process of the embodiments of this application is described below. Please refer to [link / reference]. Figure 1 One embodiment of the real-time image field correlation analysis method for port warehousing in this application includes: Step S1: Extract field quantity features from the real-time image sequence of the storage area to obtain the temporal field quantity vector and spatial topological relationship of each grid cell, and construct a spatiotemporal field quantity evolution map; The temporal field vector includes parameters in five dimensions: storage height, occupancy rate, circulation speed, temperature, and humidity. Each grid cell forms a five-dimensional time series within a time window length L, capturing the evolution trajectory of the field parameters over time. Spatial topological relationships are achieved by calculating the spatial distance between grids and converting it into association weights. The weight values reflect the spatial coupling strength of field propagation between adjacent grids. The spatiotemporal field evolution map integrates temporal and spatial information into a unified graph structure. Nodes in the graph carry multi-dimensional temporal data of each grid, while edges carry spatial association weights. This map comprehensively depicts the field distribution and spatial propagation relationships of the storage area within a specific time window.
[0014] Step S2: Perform anomaly detection and analysis on the spatiotemporal field evolution map to locate the anomaly initiation point; Traditional anomaly detection only determines whether the current time exceeds the limit, and cannot trace when the anomaly first appeared. However, the localization of anomaly initiation points involves tracing back historical image sequences, precisely marking the moment the anomaly first appeared on the time axis and the grid position of the first appearance on the spatial axis. This localization process records the grid number of the anomaly initiation point, the time of the anomaly, and the field quantity state at that time. These three pieces of information constitute the starting coordinates for subsequent source tracing analysis. Anomaly initiation points differ from the ultimately observed severe anomaly state; their field quantity parameters often only show slight deviations from the normal range. By capturing these early anomaly signals, a time lead is provided for in-depth source tracing analysis.
[0015] Step S3: Based on the anomaly initiation point, calculate the contribution of each grid to the field quantity of the anomaly grid at historical time through Granger causality test. Identify the trigger source level by level from the grids whose contribution exceeds the preset value. Organize the grid number, trigger time, field quantity state and contribution of the trigger source into nodes and edges to construct a multi-level association link graph that represents the anomaly formation process. Specifically, based on the prediction principle of time series, a vector autoregression model is established to determine whether the historical field quantity data of one grid contributes to the prediction of the current field quantity state of another grid. If the prediction accuracy of the model containing the historical data of a certain grid is significantly higher than that of the model without the data, it is determined that the grid has a causal influence on the target grid. The field quantity influence contribution quantifies the strength of this causal influence; the larger the contribution value, the more significant the effect of the grid on the formation of anomalies. The construction of the multi-level correlation link diagram adopts a step-by-step backtracking mechanism. First, the primary triggering source that directly leads to the field quantity change at the initiation point of the anomaly is identified. Then, the causal test is repeatedly performed on each primary triggering source to identify the secondary triggering sources behind it. This process is repeated to construct a multi-level triggering chain, which reveals the complete causal path from the initial cause to the evolution of the anomaly into an observable anomaly through multiple steps.
[0016] Step S4: Abstract the field quantity change characteristics and trigger relationship types in the multi-level association link graph and transform them into a graph pattern containing node feature templates and edge connection templates. Perform subgraph isomorphic matching in the current spatiotemporal field quantity evolution graph to identify weak nodes with similar graph pattern structures and generate preventive field quantity adjustment schemes.
[0017] Specifically, the graph pattern transforms the specific numerical values in a multi-level interconnected graph into typified features. Node feature templates describe the direction and magnitude of field quantity changes rather than specific numerical values, while edge connection templates describe the transmission type of triggering relationships rather than specific contributions. This abstraction process extracts the essential structural features of the anomaly formation mechanism. Subgraph isomorphic matching searches for subgraph regions in the current spatiotemporal field quantity evolution map that are structurally similar to the graph pattern. The matching process calculates the similarity between the node features and templates of candidate subgraphs, as well as the matching degree between edge connections and templates. When the overall similarity exceeds a threshold, the region is determined to have the potential risk of evolving into the same anomaly. The identification of weak nodes breaks through the limitations of traditional methods that rely solely on current field quantity values. Instead, it uses predictive judgment based on the structural patterns of field quantity evolution. Even regions where the current field quantity value has not exceeded the limit but whose evolutionary structure is consistent with historical anomaly patterns are identified as high-risk weak nodes. Preventive field quantity adjustment schemes generate cargo allocation and storage optimization strategies for these weak nodes.
[0018] In one specific embodiment, step S1 includes: The warehouse area is divided into grid cells. Semantic segmentation is performed on the real-time images of each grid cell to extract the cargo pixel area and background pixel area. The cargo pixel ratio is calculated to obtain the area occupancy rate. Binocular stereo vision ranging is used to measure the distance of real-time images to obtain a disparity map. Based on the disparity value, the three-dimensional spatial coordinates are calculated to obtain the stacking height of the goods. Optical flow is used to track the positional changes of the cargo area in continuous frame images, and the displacement per unit time is calculated to obtain the cargo flow rate. The stacking height, occupancy rate, flow rate, temperature and humidity of each grid cell are combined into a temporal field vector. The correlation weights are calculated based on the spatial distance between each grid cell, and a spatial topological relationship matrix is constructed. The temporal field vector and the spatial topological relationship matrix are combined to obtain the spatiotemporal field evolution map.
[0019] Specifically, the semantic segmentation process uses a deep learning segmentation network to classify real-time images pixel by pixel, labeling each pixel in the image as either a goods category or a background category. After segmentation, the ratio of the total number of pixels belonging to the goods category to the total number of pixels in that grid cell yields the region occupancy rate. Binocular stereo vision ranging uses two cameras to simultaneously capture the same scene. The disparity value, representing the positional difference between corresponding points in the two images, is used to calculate the object's depth information. A larger disparity value indicates that the object is closer to the camera. The disparity value is converted into three-dimensional spatial coordinates using triangulation principles, thus obtaining the actual height of the goods stack. Optical flow detection establishes pixel correspondences between consecutive frames by detecting changes in pixel intensity patterns in the same goods region. The displacement vector of the goods' center of mass on the image plane is calculated, and combined with camera calibration parameters, the pixel displacement is converted into actual spatial displacement. Dividing this displacement by the inter-frame time interval yields the goods flow speed, which reflects the dynamic flow state of goods within the storage area.
[0020] The spatial topology matrix is constructed based on the geometric positional relationships between grid cells. The Euclidean distance between the center points of any two grid cells is calculated. The closer the grid cells are, the stronger the mutual influence of their field quantities. The distance value is substituted into the attenuation function to transform it into a correlation weight. This weight ranges from 0 to 1, with the weight of adjacent grid cells close to 1 and the weight of distant grid cells approaching 0. The temporal field quantity vector records the evolution sequence of five field quantity parameters for each grid cell within a historical time window. The spatial topology matrix records the spatial coupling relationships between all grid cells. These two parts of data are structured and organized to form a spatiotemporal field quantity evolution map. This map uses grid cells as nodes, node attributes as temporal field quantity vectors, and edge weights between nodes as spatial correlation weights.
[0021] In one specific embodiment, step S2 includes: The temporal field vector matrix and spatial topological relation matrix in the spatiotemporal field evolution map are input into the spatiotemporal graph neural network. The field vector matrix and the topological relation matrix are convolved through the spatial graph convolution layer to obtain spatial aggregation features. The spatial aggregation feature sequence within the historical time window is input into the temporal gating recurrent layer for temporal evolution analysis to obtain spatiotemporal fusion features; The spatiotemporal fusion features are input into the anomaly discrimination layer to calculate the anomaly probability of each grid cell. Grid cells with anomaly probabilities exceeding a preset threshold are marked as anomaly regions. The grid number, anomaly time, and field state of the anomaly region are recorded to obtain the anomaly initiation point.
[0022] Specifically, the computational mechanism of the spatial graph convolutional layer involves weighted aggregation of the field quantity vector of each grid node and its neighboring nodes according to the weights in the spatial topological relationship matrix. This aggregation process realizes the propagation and fusion of field quantity information in the spatial dimension, so that the feature representation of each node not only includes its own field quantity state but also incorporates the field quantity influence of its surrounding neighboring nodes. The spatial aggregation feature captures the field quantity correlation pattern between grids. The high stacking state of adjacent grids will transmit influence through high-weight edges, causing the aggregation feature value of the target grid to increase, reflecting the field quantity transmission effect in space. This feature forms sequential data within the historical time window and is input into the subsequent time series analysis layer.
[0023] The temporal-gated recurrent layer employs a gating mechanism to process the time series of spatially aggregated features. It selectively retains or forgets feature information from historical moments through a forget gate, controls the absorption of new features at the current moment through an input gate, and determines the final spatiotemporal fusion feature content through an output gate. This mechanism enables the model to automatically learn the temporal patterns and periodicity of field evolution. The anomaly detection layer maps spatiotemporal fusion features to anomaly probability values, which represent the degree to which the current state of a grid cell deviates from the normal pattern. When the anomaly probability of a grid exceeds a preset threshold, the grid is marked as an anomalous region. The system records the grid number of the anomalous region for spatial localization, the moment of the anomaly for temporal localization, and the state of the five-dimensional field at that time for subsequent source tracing analysis. These three pieces of information together constitute a complete description of the anomaly initiation point.
[0024] In one specific embodiment, based on the anomaly initiation point, the contribution of each grid to the field quantity of the anomaly grid at historical moments is calculated using the Granger causality test, including: By tracing back the historical time window from the anomaly initiation point, the field quantity time series data of each grid cell and the field quantity time series data of the anomaly grid are extracted within the tracing time period. A vector autoregression model is established using the field quantity time series data of each grid cell and the field quantity time series data of the abnormal grid. The significance of the causal influence of each grid cell on the abnormal grid is calculated through statistical tests to obtain the contribution of the field quantity influence. Grid cells whose field influence contribution exceeds a preset value are marked as trigger sources, and the grid number, trigger time, and field state of the trigger source are recorded.
[0025] Specifically, the historical time window backtracking starts from the anomaly moment recorded at the anomaly initiation point and traces back a fixed-length period. Field quantity time-series data of all grid cells within this period are extracted to form multiple time series. Each time series records the evolution trajectory of five field quantity parameters for a single grid cell during the backtracking period. Simultaneously, field quantity time-series data of the anomalous grid within the same backtracking period are extracted as the target series. The vector autoregression model is established by representing the current field quantity value of the anomalous grid as a linear combination of its own historical field quantity values and those of other grids. The model estimates various coefficients by fitting historical data. Statistical testing compares the prediction accuracy of a model that includes historical data from a particular grid with that model that does not. If including data from a particular grid significantly improves prediction accuracy, then that grid is considered to have a causal influence on the anomalous grid. The contribution of the field quantity influence is quantified by the sum of the absolute values of the regression coefficients corresponding to that grid; the larger the absolute value of the coefficient, the stronger the grid's role in anomaly formation.
[0026] The process of marking the trigger source involves traversing all grid cells to calculate the contribution of the field quantity influence. The contribution value is compared with a preset threshold. Grid cells that exceed the threshold are identified as trigger sources with a significant causal impact on the anomaly. The system records the grid number of each trigger source to identify its spatial location and the trigger time, which is the time point when the field quantity of the trigger source undergoes a key change. This time is identified by analyzing the mutation point or inflection point in the time series data of the trigger source's field quantity. The system records the field quantity state corresponding to the trigger time, including the five-dimensional parameter values such as the stacking height, occupancy rate, and flow rate of the trigger source at that time. This information fully describes when, where, and in what field quantity state the trigger source influenced the formation of the anomaly.
[0027] Figure 2 This diagram illustrates the Granger causality test calculation of the field quantity contribution of each grid cell in this embodiment of the application. The horizontal axis represents the grid cell number of the storage area, and the vertical axis represents the calculated field quantity contribution value. The red dashed line marks the preset contribution threshold of 0.35. Areas E, D, and F, whose contribution exceeds this threshold, are marked as trigger sources and filled with a dark color. Areas A, B, G, H, and I, whose contribution is below the threshold, are filled with diagonal lines and excluded. This diagram visually demonstrates the process of identifying trigger sources through the Granger causality test. Area E has the highest contribution, reaching 0.87, indicating its most significant impact on anomaly formation. Areas D and F, with contributions of 0.73 and 0.45 respectively, also exceed the threshold and are identified as primary trigger sources. The contributions of the remaining grid cells are all below the threshold and therefore not included in the trigger link analysis.
[0028] In one specific embodiment, trigger sources are identified level by level by grids whose contribution exceeds a preset value. The grid number, trigger time, field state, and contribution of the trigger source are organized into nodes and edges to construct a multi-level association link graph representing the anomaly formation process, including: The triggering source is marked as a primary triggering source. The backtracking analysis process of Granger causality test is repeated for each primary triggering source to identify the secondary triggering sources that cause changes in the field quantity of the primary triggering source. Continue to perform backtracking analysis on the secondary triggering sources, identify multi-level triggering sources step by step, until the contribution is lower than the preset value or the maximum backtracking level is reached; The grid number, trigger time, and field quantity status of each trigger source are constructed as graph nodes, and the causal relationship and field quantity contribution between trigger sources are constructed as graph edges, resulting in a multi-level association link graph.
[0029] Specifically, after the primary trigger source is identified, it is used as the new analysis target. For each primary trigger source, the Granger causality test is repeated. The historical time window is traced back from the trigger time recorded by the primary trigger source, and the field quantity time series data of all grids within the traced time period and the field quantity time series data of the primary trigger source are extracted. A vector autoregression model is established with the primary trigger source as the target variable. The contribution of each grid to the field quantity of the primary trigger source is calculated through statistical tests. Grids with a contribution exceeding a preset value are identified as secondary trigger sources causing changes in the field quantity of the primary trigger source. The grid number, trigger time, and field quantity state of the secondary trigger source are recorded. The same backtracking analysis process is continued for each secondary trigger source to identify tertiary trigger sources, and so on, forming a chain of tracing sources level by level. This process continues until the contribution of all grids to the field quantity of a certain trigger source is below a preset value, making it impossible to identify a higher-level trigger source, or the backtracking level reaches the preset maximum level limit, at which point the tracing stops.
[0030] The construction of the multi-level correlation link graph transforms each level of triggering source into a graph structure representation. Each triggering source is a node in the graph. The node attributes include five-dimensional parameter values such as the grid number of the triggering source to identify its spatial location, the triggering time to identify its occurrence time, and the field quantity status to record its stacking height, occupancy rate, and turnover speed. The causal influence relationship between triggering sources is constructed as directed edges. The direction of the edges points from higher-level triggering sources to lower-level triggering sources, reflecting the direction of causal transmission. The attributes of the edges are the field quantity influence contribution value, which quantifies the influence intensity. This graph forms a complete path network from the initial cause through multi-level transmission to the anomaly initiation point.
[0031] In one specific embodiment, constructing a multi-level association link graph representing the anomaly formation process further includes: Based on the connection paths between triggering sources at each level in the multi-level association link diagram, a path search algorithm is used to calculate all reachable paths from the initial triggering source to the anomaly initiation point. For each reachable path, calculate the total contribution of the path, and accumulate the contribution of the field quantity on each side of the path to obtain the path cost. The path with the lowest path cost is identified as the primary triggering link, and the path nodes and path edges of the primary triggering link are marked in the multi-level association link diagram.
[0032] Specifically, the path search algorithm traverses all connected paths from the highest-level trigger source (initial trigger source) to the anomaly budding point in the multi-level association link graph. The algorithm employs a depth-first search strategy, starting from the initial trigger source node and traversing downwards layer by layer along directed edges. When the anomaly budding point is reached, the complete path is recorded, and then backtracking to the previous branch point continues exploring other paths until all possible path combinations have been traversed. During the identification of reachable paths, loops must be avoided, meaning duplicate nodes are not allowed in the path. Each reachable path is represented as a sequence of nodes, with adjacent nodes connected by directed edges. The path records the complete propagation chain of the anomaly from the initial cause through which intermediate trigger sources ultimately reach the anomaly budding point. Different paths represent different propagation mechanisms of anomaly formation.
[0033] The calculation of the total contribution of a path involves traversing all edges along the path, extracting the field quantity influence contribution value of each edge, and summing them up. Since the contribution reflects the strength of causal influence, the larger the accumulated value, the stronger the causal transmission effect of each link on the path. The path cost value is defined as the reciprocal or negative value of the accumulated contribution, so that paths with high contribution values correspond to smaller cost values. The determination of the main triggering link is achieved by comparing the cost values of all reachable paths and selecting the path with the smallest cost value, i.e., the largest accumulated contribution. This path represents the causal transmission chain that plays a dominant role in the formation of the anomaly. The system visually annotates all nodes and edges of this main triggering link in the multi-level association link graph. Node annotations display the grid number, trigger time, and key field quantity parameters of the trigger source, while edge annotations display the field quantity influence contribution value. The annotated graph intuitively shows the core propagation path of the anomaly from the source to the destination and the quantitative contribution of each link.
[0034] Figure 3This diagram illustrates the change in prediction error with iteration count during the adaptive model update process in this embodiment. The horizontal axis represents the number of model update iterations, and the vertical axis represents the percentage of prediction error. The circled curve indicates that the error of the fixed model method remains consistently at the initial 21%, while the squared curve represents the error trend of the adaptive update method of this invention. The red dashed line marks the acceptable error threshold of 10%. This diagram clearly demonstrates the effectiveness of the adaptive update mechanism. The prediction error of the method of this invention gradually decreases from the initial 21%, dropping below 10% after 10 iterations and eventually stabilizing at around 6%. In contrast, the fixed model method, due to the lack of parameter updates, maintains a consistently high error. The comparison of the two curves fully verifies that the adaptive model update mechanism can effectively reduce prediction error and adapt to the dynamic changes in port and warehousing scenarios.
[0035] In one specific embodiment, step S4 includes: The field state values of each node in the multi-level association link graph are transformed into field change type features, and the triggering relationship of each edge is transformed into causal transmission type features. A graph pattern containing node feature templates and edge connection templates is constructed. Each grid cell in the current spatiotemporal field evolution map is taken as a candidate node, and the subgraph isomorphic matching algorithm is used to calculate the node feature similarity and edge connection similarity between the candidate node and the graph pattern. Weak nodes are identified by the weighted average of node feature similarity and edge connection similarity exceeding the matching threshold. A field quantity adjustment optimization model is established for weak nodes with the goal of minimizing the risk of anomalies. The adjustment parameters of cargo allocation and stacking method are obtained by optimization solution, and a preventive field quantity adjustment scheme is generated.
[0036] Specifically, the transformation process of field quantity change type characteristics involves abstracting the specific field quantity values recorded by nodes in the multi-level interconnected link graph into typified descriptions. This is achieved by classifying the changes in field quantity parameters of nodes before and after the triggering time, such as the magnitude and direction of change. Changes in stacking height are transformed into height-increasing, height-decreasing, or height-stable types; changes in occupancy rate are transformed into occupancy-saturated, occupancy-decreasing, or occupancy-normal types; and changes in flow rate are transformed into flow-slowing, flow-accelerating, or flow-stable types. A classification threshold for the magnitude of change is set to achieve a mapping from continuous values to discrete types. The transformation of causal transmission type characteristics involves abstracting the triggering relationship of edge connections into transmission patterns. Transmission types are defined based on the combination of field quantity change types of the source and target nodes. A flow-slowing triggering an occupancy-saturation relationship is defined as flow blockage transmission; an occupancy-saturation triggering a height-increasing relationship is defined as space compression transmission; and a height-increasing triggering an adjacent node height-increasing relationship is defined as overflow diffusion transmission. The node feature template in the graph pattern records the combination of field quantity change types for each node, and the edge connection template records the causal transmission types between nodes and their connection topology.
[0037] The subgraph isomorphic matching algorithm selects candidate subgraphs in the current spatiotemporal field evolution spectrum using a sliding window approach. For each candidate subgraph, it calculates the structural similarity between it and the graph pattern. The node feature similarity is calculated by comparing the matching degree between the current field change type of the candidate subgraph node and the node feature template of the graph pattern. The type consistency counting method is used to count the proportion of matching nodes to the total number of nodes. The edge connection similarity is calculated by comparing the consistency between the edge connection relationship of the candidate subgraph and the edge connection template of the graph pattern, and checking whether there is a causal transmission type and its connection order in the candidate subgraph that are the same as the template. The weighted average is calculated by assigning weight coefficients to the node feature similarity and edge connection similarity and then summing them. When the comprehensive similarity exceeds the matching threshold, the grid region where the candidate subgraph is located is determined to have the same evolutionary pattern characteristics as historical anomalies, and the region is marked as a weak node. The field quantity adjustment optimization model takes minimizing the future anomaly probability of the weak node as the optimization objective. The decision variables include the volume of goods transferred from the weak node to other regions, i.e., the goods allocation quantity, and the stacking layout method adopted by the weak node, i.e., the stacking method adjustment parameter. By solving the optimization model, the allocation quantity value and stacking method selection that minimize the anomaly risk are obtained, forming a preventive field quantity adjustment scheme containing specific operation instructions.
[0038] The above describes the real-time image field-volume correlation analysis method for port warehousing in the embodiments of this application. The following describes the real-time image field-volume correlation analysis system for port warehousing in the embodiments of this application. One embodiment of the real-time image field-volume correlation analysis system for port warehousing in the embodiments of this application includes: The extraction module is used to extract field quantity features from real-time image sequences of the storage area, obtain the temporal field quantity vector and spatial topological relationship of each grid cell, and construct a spatiotemporal field quantity evolution map; The analysis module is used to perform anomaly detection and analysis on the spatiotemporal field evolution map and locate the anomaly initiation point; The identification module is used to calculate the contribution of each grid to the field quantity of the abnormal grid at historical time based on the anomaly initiation point through Granger causality test. The trigger source is identified level by level from the grids whose contribution exceeds the preset value. The grid number, trigger time, field quantity state and contribution of the trigger source are organized into nodes and edges to construct a multi-level association link graph that represents the anomaly formation process. The matching module is used to abstract the field quantity change characteristics and trigger relationship types in the multi-level association link graph and transform them into a graph pattern containing node feature templates and edge connection templates. It performs subgraph isomorphic matching in the current spatiotemporal field quantity evolution graph, identifies weak nodes with similar graph pattern structures, and generates preventive field quantity adjustment schemes.
[0039] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A real-time image field-volume correlation analysis method for port warehousing, characterized in that, The method includes: Step S1: Extract field quantity features from the real-time image sequence of the storage area to obtain the temporal field quantity vector and spatial topological relationship of each grid cell, and construct a spatiotemporal field quantity evolution map; Step S2: Perform anomaly detection and analysis on the spatiotemporal field evolution map to locate the anomaly initiation point; Step S3: Based on the anomaly initiation point, calculate the contribution of each grid to the field quantity of the anomaly grid at historical time through Granger causality test. Identify the trigger source level by level from the grids whose contribution exceeds the preset value. Organize the grid number, trigger time, field quantity state and contribution of the trigger source into nodes and edges to construct a multi-level association link graph representing the anomaly formation process. Step S4: Abstract the field quantity change characteristics and trigger relationship types in the multi-level association link graph and transform them into a graph pattern containing node feature templates and edge connection templates. Perform subgraph isomorphic matching in the current spatiotemporal field quantity evolution graph to identify weak nodes with similar graph pattern structures and generate preventive field quantity adjustment schemes.
2. The real-time image field correlation analysis method for port warehousing according to claim 1, characterized in that, Step S1 includes: The warehouse area is divided into grid cells. Semantic segmentation is performed on the real-time images of each grid cell to extract the cargo pixel area and background pixel area. The cargo pixel ratio is calculated to obtain the area occupancy rate. The real-time image is subjected to binocular stereo vision ranging to obtain a disparity map. Based on the disparity value, the three-dimensional spatial coordinates are calculated to obtain the cargo stacking height. Optical flow is used to track the positional changes of the cargo area in continuous frame images, and the displacement per unit time is calculated to obtain the cargo flow rate. The stacking height, occupancy rate, flow rate, temperature and humidity of each grid cell are combined into a temporal field vector. The correlation weights are calculated based on the spatial distance between each grid cell, and a spatial topological relationship matrix is constructed. The temporal field vector and the spatial topological relationship matrix are combined to obtain the spatiotemporal field evolution map.
3. The real-time image field correlation analysis method for port warehousing according to claim 1, characterized in that, Step S2 includes: The temporal field vector matrix and spatial topological relation matrix in the spatiotemporal field evolution map are input into the spatiotemporal graph neural network. The field vector matrix and the topological relation matrix are convolved by the spatial graph convolution layer to obtain spatial aggregation features. The spatial aggregation feature sequence within the historical time window is input into the temporal gating recurrent layer for temporal evolution analysis to obtain spatiotemporal fusion features; The spatiotemporal fusion features are input into the anomaly discrimination layer to calculate the anomaly probability of each grid cell. Grid cells with anomaly probabilities exceeding a preset threshold are marked as anomaly regions. The grid number, anomaly time, and field state of the anomaly regions are recorded to obtain the anomaly initiation point.
4. The real-time image field quantity correlation analysis method for port warehousing according to claim 1, characterized in that, The calculation of the contribution of each grid to the field quantity of the anomalous grid at historical moments based on the anomalous initiation point, using the Granger causality test, includes: By tracing back the historical time window from the abnormal moment recorded at the abnormal initiation point, the field quantity time series data of each grid cell and the field quantity time series data of the abnormal grid within the tracing time period are extracted. A vector autoregression model is established using the field quantity time series data of each grid cell and the field quantity time series data of the abnormal grid. The significance of the causal influence of each grid cell on the abnormal grid is calculated through statistical tests to obtain the contribution of the field quantity influence. Grid cells whose field influence contribution exceeds a preset value are marked as trigger sources, and the grid number, trigger time, and field state of the trigger source are recorded.
5. The real-time image field quantity correlation analysis method for port warehousing according to claim 4, characterized in that, The process involves identifying trigger sources level by level from grids whose contribution exceeds a preset value, organizing the grid number, trigger time, field state, and contribution of the trigger source into nodes and edges, and constructing a multi-level association link graph representing the anomaly formation process, including: The triggering source is marked as a primary triggering source. The backtracking analysis process of the Granger causality test is repeated for each primary triggering source to identify the secondary triggering sources that cause changes in the field quantity of the primary triggering source. Continue to perform backtracking analysis on the secondary triggering source, identify multi-level triggering sources step by step, until the contribution is lower than the preset value or the maximum backtracking level is reached; The grid number, trigger time, and field quantity status of each trigger source are constructed as graph nodes, and the causal relationship and field quantity contribution between trigger sources are constructed as graph edges, resulting in a multi-level association link graph.
6. The real-time image field quantity correlation analysis method for port warehousing according to claim 5, characterized in that, The construction of the multi-level correlation link graph representing the anomaly formation process also includes: Based on the connection paths between triggering sources at each level in the multi-level association link diagram, a path search algorithm is used to calculate all reachable paths from the initial triggering source to the anomaly initiation point. For each reachable path, calculate the total contribution of the path, and accumulate the contribution of the field quantity on each side of the path to obtain the path cost. The path with the lowest path cost is determined as the primary triggering link, and the path nodes and path edges of the primary triggering link are marked in the multi-level association link diagram.
7. The real-time image field correlation analysis method for port warehousing according to claim 1, characterized in that, Step S4 includes: The field state values of each node in the multi-level association link graph are transformed into field change type features, and the triggering relationship of each edge is transformed into causal transmission type features, thus constructing a graph pattern that includes node feature templates and edge connection templates. Each grid cell in the current spatiotemporal field evolution graph is taken as a candidate node, and the subgraph isomorphic matching algorithm is used to calculate the node feature similarity and edge connection similarity between the candidate node and the graph pattern. Grid regions whose weighted average of node feature similarity and edge connection similarity exceeds the matching threshold are identified as weak nodes. A field quantity adjustment optimization model is established for the weak nodes with the goal of minimizing the anomaly risk. The adjustment parameters of cargo allocation and stacking method are obtained by optimization solution, and a preventive field quantity adjustment scheme is generated.
8. A real-time image field-volume correlation analysis system for port warehousing, characterized in that, For implementing the real-time image field-volume correlation analysis method for port warehousing as described in any one of claims 1-7, the real-time image field-volume correlation analysis system for port warehousing comprises: The extraction module is used to extract field quantity features from real-time image sequences of the storage area, obtain the temporal field quantity vector and spatial topological relationship of each grid cell, and construct a spatiotemporal field quantity evolution map; The analysis module is used to perform anomaly detection and analysis on the spatiotemporal field evolution map and locate the anomaly initiation point; The identification module is used to calculate the contribution of each grid to the field quantity of the abnormal grid at historical time based on the anomaly initiation point through Granger causality test. The trigger source is identified level by level from the grids whose contribution exceeds the preset value. The grid number, trigger time, field quantity state and contribution of the trigger source are organized into nodes and edges to construct a multi-level association link graph that represents the anomaly formation process. The matching module is used to abstract the field quantity change characteristics and trigger relationship types in the multi-level association link graph and transform them into a graph pattern containing node feature templates and edge connection templates. It performs subgraph isomorphic matching in the current spatiotemporal field quantity evolution graph, identifies weak nodes with similar graph pattern structures, and generates preventive field quantity adjustment schemes.
9. The system according to claim 8, characterized in that, Field quantity features are extracted from real-time image sequences of the storage area to obtain the temporal field quantity vectors and spatial topological relationships of each grid cell, and a spatiotemporal field quantity evolution map is constructed, including: The warehouse area is divided into grid cells. Semantic segmentation is performed on the real-time images of each grid cell to extract the cargo pixel area and background pixel area. The cargo pixel ratio is calculated to obtain the area occupancy rate. The real-time image is subjected to binocular stereo vision ranging to obtain a disparity map. Based on the disparity value, the three-dimensional spatial coordinates are calculated to obtain the cargo stacking height. Optical flow is used to track the positional changes of the cargo area in continuous frame images, and the displacement per unit time is calculated to obtain the cargo flow rate. The stacking height, occupancy rate, flow rate, temperature and humidity of each grid cell are combined into a temporal field vector. The correlation weights are calculated based on the spatial distance between each grid cell, and a spatial topological relationship matrix is constructed. The temporal field vector and the spatial topological relationship matrix are combined to obtain the spatiotemporal field evolution map.
10. The system according to claim 8, characterized in that, Anomaly detection and analysis are performed on the spatiotemporal field evolution map to locate the initiation point of anomalies, including: The temporal field vector matrix and spatial topological relation matrix in the spatiotemporal field evolution map are input into the spatiotemporal graph neural network. The field vector matrix and the topological relation matrix are convolved by the spatial graph convolution layer to obtain spatial aggregation features. The spatial aggregation feature sequence within the historical time window is input into the temporal gating recurrent layer for temporal evolution analysis to obtain spatiotemporal fusion features; The spatiotemporal fusion features are input into the anomaly discrimination layer to calculate the anomaly probability of each grid cell. Grid cells with anomaly probabilities exceeding a preset threshold are marked as anomaly regions. The grid number, anomaly time, and field state of the anomaly regions are recorded to obtain the anomaly initiation point.
