Real-time graph sampling method and terminal based on flooding broadcast type GNN network

Through the real-time graph sampling method of the flood broadcast GNN network, the initial and secondary flooding data are compared, and the unchanged data is eliminated for neighbor sampling, which solves the delay and noise problems in large-scale image processing and achieves accurate sampling and imaging of images. Clear isolation.

CN118710494AActive Publication Date: 2024-09-27FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410817072.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-27
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

The existing technology is difficult to achieve stable low-latency sampling in large-scale image processing, and cannot effectively consider the dynamic characteristics of the image, resulting in image sampling delay and noise problems.

Method used

A real-time graph sampling method based on the flood broadcast GNN network is adopted. By comparing the initial flooding and secondary flooding data, the unchanged data is eliminated for neighbor sampling, the sampling area is reduced, and the blockchain broadcast mechanism is used for data storage and processing. .

Benefits of technology

It achieves the reduction of latency in large-scale image processing, reduces environmental noise, improves sampling accuracy, makes the isolation of dynamic and static images clearer, and achieves the purpose of accurate sampling of real-time dynamic images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710494A
    Figure CN118710494A
Patent Text Reader

Abstract

The invention provides a real-time image sampling method and terminal based on a flooding broadcast type GNN network, and the method comprises the steps: inputting a dynamic image to the GNN network in real time, and carrying out the initial flooding broadcast to obtain initial flooding data; performing secondary flooding broadcast on the initial flooding data to obtain secondary flooding data; performing neighbor sampling on data which are the same as the initial flooding data in the secondary flooding data, returning different data to the step S2 to perform secondary flooding broadcasting again, and respectively storing the different data in different sets; and repeating the steps until the dynamic image is input, splicing the data in each set according to the timestamp, and outputting a sampling result. According to the invention, the purpose of real-time dynamic image accurate sampling is effectively realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a real-time graph sampling method and terminal based on a flooding broadcast GNN network. Background Art

[0002] The intuitive approach of real-time graph sampling service is to maintain a dynamic graph storage and query module, perform neighbor sampling calculation and attribute collection on the requested point when the reasoning request arrives, and use the sampled samples as the input of the model service for reasoning. The existing technology uses the static graph structure of dynamic graph type to process dynamic input signals, such as DCRNN (Diffusion Convolutional Recurrent Neural Network) and STGCN (Spatio-Temporal Graph Convolutional Networks), which first use GNN (Graph Neural Networks) to obtain spatial structure information, and then feed the outputs into a sequence model.

[0003] The disadvantages of implementing graph sampling services are that the distribution of image data and the load characteristics of inference sampling make it difficult to achieve stable low-latency sampling on distributed dynamic graphs; second, it cannot meet the storage and computing capabilities of large-scale images on a single machine; and third, some information features may exist on some edges that cannot be effectively taken into account. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a real-time image sampling method and terminal based on a flooding broadcast GNN network, so as to effectively achieve the purpose of accurate sampling of real-time dynamic images.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A real-time graph sampling method based on a flood broadcast GNN network includes the following steps:

[0007] S1, input dynamic images into the GNN network in real time, and perform initial flood broadcast to obtain initial flood data;

[0008] S2, performing secondary flooding broadcast on the initial flooding data to obtain secondary flooding data;

[0009] S3, performing neighbor sampling on the data in the secondary flooding data that are the same as the initial flooding data, returning the different data to step S2 to re-perform the secondary flooding broadcast, and storing them in different sets respectively;

[0010] S4. Repeat step S3 until the dynamic image is input, splice the data in each set according to the timestamp, and output the sampling result.

[0011] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0012] A real-time graph sampling terminal based on a flooding broadcast GNN network includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0013] S1, input dynamic images into the GNN network in real time, and perform initial flood broadcast to obtain initial flood data;

[0014] S2, performing secondary flooding broadcast on the initial flooding data to obtain secondary flooding data;

[0015] S3, performing neighbor sampling on the data in the secondary flooding data that are the same as the initial flooding data, returning the different data to step S2 to re-perform the secondary flooding broadcast, and storing them in different sets respectively;

[0016] S4. Repeat step S3 until the dynamic image is input, splice the data in each set according to the timestamp, and output the sampling result.

[0017] The beneficial effects of the present invention are: providing a real-time image sampling method and terminal based on a flooding broadcast GNN network, based on the flooding problem mechanism generated in blockchain broadcasting, flooding broadcasting of real-time dynamic images, and repeatedly performing secondary flooding on data that has changed before and after the flooding, and data that has not changed does not participate in the secondary flooding, but performs neighbor sampling to eliminate flooding neighbors, thereby continuously reducing the sampling area. While solving the delay problem of GNN processing images in large-scale images, the final output sampling image can effectively reduce environmental noise, making the isolation of dynamic and static images clearer, and achieving the purpose of accurate sampling of real-time dynamic images. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is an overall flow chart of a real-time graph sampling method based on a flooding broadcast GNN network according to an embodiment of the present invention;

[0019] Figure 2 It is a specific flow chart of a real-time graph sampling method based on a flooding broadcast GNN network according to an embodiment of the present invention;

[0020] Figure 3 It is a structural schematic diagram of a real-time graph sampling terminal based on a flooding broadcast GNN network according to an embodiment of the present invention.

[0021] Description of labels:

[0022] 1. A real-time graph sampling terminal based on a flooding broadcast GNN network; 2. Memory; 3. Processor. DETAILED DESCRIPTION

[0023] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0024] Please refer to Figure 1 to Figure 2 , a real-time graph sampling method based on a flooding broadcast GNN network, comprising the steps of:

[0025] S1, input dynamic images into the GNN network in real time, and perform initial flood broadcast to obtain initial flood data;

[0026] S2, performing secondary flooding broadcast on the initial flooding data to obtain secondary flooding data;

[0027] S3, performing neighbor sampling on the data in the secondary flooding data that are the same as the initial flooding data, returning the different data to step S2 to re-perform the secondary flooding broadcast, and storing them in different sets respectively;

[0028] S4. Repeat step S3 until the dynamic image is input, splice the data in each set according to the timestamp, and output the sampling result.

[0029] From the above description, it can be seen that the beneficial effects of the present invention are: providing a real-time image sampling method based on a flooding broadcast GNN network, based on the flooding problem mechanism generated in the blockchain broadcast, flooding broadcasting of real-time dynamic images, and repeatedly performing secondary flooding on the data that has changed before and after the flooding, and the data that has not changed does not participate in the secondary flooding, but performs neighbor sampling to eliminate the flooding neighbors, thereby continuously reducing the sampling area. While solving the delay problem of GNN processing images in large-scale images, the final output sampling map can effectively reduce environmental noise, making the isolation of dynamic and static images clearer, and achieving the purpose of accurate sampling of real-time dynamic images.

[0030] Furthermore, the step S1 is specifically as follows:

[0031] S11, building a GNN network system, and inputting the dynamic image into the GNN network system in real time, and using the open source GraphLearn platform to automatically perform initial flood broadcasting on each pixel of the dynamic image through a broadcast flooding mechanism;

[0032] S12. After the content of each node in the GNN network system is confirmed by other nodes, the initial flood data obtained after the initial flood broadcast of each pixel is saved in the set S0, and timestamped in sequence. The initial flood data includes the horizontal and vertical coordinates of the pixel and the color data information.

[0033] From the above description, it can be seen that the GNN network system has the open source GraphLearn platform and GraphSge model, which can automatically perform flood broadcasting and effectively improve sampling efficiency; the flood broadcasting can define the horizontal and vertical coordinates of the pixel and the new and old color data information through the four-field pixel filling method (floodFill4).

[0034] Furthermore, the step S2 is specifically as follows:

[0035] S21, presetting an interval time according to the change rate of the dynamic image;

[0036] S22, when the preset interval time is reached, performing secondary flooding broadcast of the dynamic image to obtain secondary flooding data;

[0037] S23. Compare the horizontal and vertical coordinates and color data information of each pixel in the secondary flooding data with the horizontal and vertical coordinates and color data information of each pixel in set S0 in turn. If the two are consistent, store the secondary flooding data of the pixel in set S1 and add a timestamp. If the two are inconsistent, store the secondary flooding data of the pixel in set U1 and add a timestamp.

[0038] From the above description, it can be seen that the interval time is set according to the image transformation rate so that the secondary flood broadcast of the next dynamic image scene will not interfere with the initial flood broadcast, ensuring the accuracy of subsequent comparisons of the same and different data, and further improving the accuracy of subsequent sampling; at the same time, after the secondary flood, the data that is the same as or different from the initial flood is stored in different sets, that is, a distributed storage method is adopted, which also effectively improves the data reading and writing efficiency.

[0039] Furthermore, the step S3 is specifically as follows:

[0040] S31, perform neighbor sampling on the pixels corresponding to the data in set S1 through the GraphSge model of the GNN network system, and compare the sampled data with the data in set S1. If they are the same, discard the same data in set S1, store them in set S2 and add a timestamp, and if they are different, store them in U2 and add a timestamp;

[0041] The sampling layer is defined as n, each sampling layer samples at most m neighbors, and the number of initial node sampling is Get num_neighbors = [n, m] and Both n and m are positive integers;

[0042] S32. Perform the secondary flood broadcast again on the pixels corresponding to the data in set U1, and compare the flood broadcasted data with the data in set U1. If they are the same, store them in set S2 and add a timestamp; if they are different, store them in set U2 and add a timestamp.

[0043] From the above description, it can be seen that the same data in the previous set is discarded in time to ensure the improvement of storage computing capabilities; at the same time, each time the data is stored in the corresponding set, it will be timestamped to facilitate subsequent data splicing to output the final sampling result, ensuring the order and integrity of the sampling results.

[0044] Furthermore, the step S4 is specifically as follows:

[0045] S41, repeat step S3 until the dynamic image input is completed, and obtain a set S i and the set U i , where i is a positive integer;

[0046] S42, set S i With the set S i-1 The difference data and set U i With the set U i-1 The difference data is spliced ​​according to the timestamp and the sampling result is output.

[0047] From the above description, it can be seen that the intersections in each type of set, that is, the same data, are further eliminated before splicing, so as to further avoid the situation where duplicate data exists in the final output sampling result, thereby ensuring accurate sampling.

[0048] Please refer to Figure 3 , a real-time graph sampling terminal based on a flooding broadcast GNN network, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0049] S1, input dynamic images into the GNN network in real time, and perform initial flood broadcast to obtain initial flood data;

[0050] S2, performing secondary flooding broadcast on the initial flooding data to obtain secondary flooding data;

[0051] S3, performing neighbor sampling on the data in the secondary flooding data that are the same as the initial flooding data, returning the different data to step S2 to re-perform the secondary flooding broadcast, and storing them in different sets respectively;

[0052] S4. Repeat step S3 until the dynamic image is input, splice the data in each set according to the timestamp, and output the sampling result.

[0053] From the above description, it can be seen that the beneficial effects of the present invention are: based on the same technical concept, in conjunction with the above-mentioned real-time image sampling method based on a flooding broadcast GNN network, a real-time image sampling terminal based on a flooding broadcast GNN network is provided, based on the flooding problem mechanism generated in the blockchain broadcast, the real-time dynamic image is flooded and broadcast, and the data that has changed before and after the flooding is repeatedly flooded for multiple times, and the data that has not changed does not participate in the secondary flooding, but neighbor sampling is performed to eliminate the flooding neighbors, thereby continuously reducing the sampling area, while solving the delay problem of GNN processing images in large-scale images, the final output sampling image can effectively reduce environmental noise, making the isolation of dynamic and static images clearer, and achieving the purpose of accurate sampling of real-time dynamic images.

[0054] Furthermore, the step S1 is specifically as follows:

[0055] S11, building a GNN network system, and inputting the dynamic image into the GNN network system in real time, and using the open source GraphLearn platform to automatically perform initial flood broadcasting on each pixel of the dynamic image through a broadcast flooding mechanism;

[0056] S12. After the content of each node in the GNN network system is confirmed by other nodes, the initial flood data obtained after the initial flood broadcast of each pixel is saved in the set S0, and timestamped in sequence. The initial flood data includes the horizontal and vertical coordinates of the pixel and the color data information.

[0057] From the above description, it can be seen that the GNN network system has the open source GraphLearn platform and GraphSge model, which can automatically perform flood broadcasting and effectively improve sampling efficiency; the flood broadcasting can define the horizontal and vertical coordinates of the pixel and the new and old color data information through the four-field pixel filling method (floodFill4).

[0058] Furthermore, the step S2 is specifically as follows:

[0059] S21, presetting an interval time according to the change rate of the dynamic image;

[0060] S22, when the preset interval time is reached, performing secondary flooding broadcast of the dynamic image to obtain secondary flooding data;

[0061] S23. Compare the horizontal and vertical coordinates and color data information of each pixel in the secondary flooding data with the horizontal and vertical coordinates and color data information of each pixel in set S0 in turn. If the two are consistent, store the secondary flooding data of the pixel in set S1 and add a timestamp. If the two are inconsistent, store the secondary flooding data of the pixel in set U1 and add a timestamp.

[0062] From the above description, it can be seen that the interval time is set according to the image transformation rate so that the secondary flood broadcast of the next dynamic image scene will not interfere with the initial flood broadcast, ensuring the accuracy of subsequent comparisons of the same and different data, and further improving the accuracy of subsequent sampling; at the same time, after the secondary flood, the data that is the same as or different from the initial flood is stored in different sets, that is, a distributed storage method is adopted, which also effectively improves the data reading and writing efficiency.

[0063] Furthermore, the step S3 is specifically as follows:

[0064] S31, perform neighbor sampling on the pixels corresponding to the data in set S1 through the GraphSge model of the GNN network system, and compare the sampled data with the data in set S1. If they are the same, discard the same data in set S1, store them in set S2 and add a timestamp, and if they are different, store them in U2 and add a timestamp;

[0065] The sampling layer is defined as n, each sampling layer samples at most m neighbors, and the number of initial node sampling is Get num_neighbors = [n, m] and Both n and m are positive integers;

[0066] S32. Perform the secondary flood broadcast again on the pixels corresponding to the data in set U1, and compare the flood broadcasted data with the data in set U1. If they are the same, store them in set S2 and add a timestamp; if they are different, store them in set U2 and add a timestamp.

[0067] From the above description, it can be seen that the same data in the previous set is discarded in time to ensure the improvement of storage computing capabilities; at the same time, each time the data is stored in the corresponding set, it will be timestamped to facilitate subsequent data splicing to output the final sampling result, ensuring the order and integrity of the sampling results.

[0068] Furthermore, the step S4 is specifically as follows:

[0069] S41, repeat step S3 until the dynamic image input is completed, and obtain a set S i and the set U i , where i is a positive integer;

[0070] S42, set S i With the set S i-1 The difference data and set U i With the set U i-1 The difference data is spliced ​​according to the timestamp and the sampling result is output.

[0071] From the above description, it can be seen that the intersections in each type of set, that is, the same data, are further eliminated before splicing, so as to further avoid the situation where duplicate data exists in the final output sampling result, thereby ensuring accurate sampling.

[0072] The present invention provides a real-time image sampling method and terminal based on a flooding broadcast GNN network, which is mainly used in the sampling scenario of large-scale real-time dynamic images on the Internet. The following is a specific description in conjunction with a specific embodiment:

[0073] Please refer to Figure 1 , Embodiment 1 of the present invention is:

[0074] A real-time graph sampling method based on flood broadcast GNN network, such as Figure 1 As shown, the steps include:

[0075] S1. Input dynamic images into the GNN network in real time, and perform initial flood broadcast to obtain initial flood data.

[0076] S2. Perform secondary flood broadcasting on the initial flood data to obtain secondary flood data.

[0077] S3, performing neighbor sampling on the data in the secondary flooding data that is the same as the initial flooding data, and returning the different data to step S2 to re-broadcast the secondary flooding, and storing them in different sets respectively.

[0078] S4. Repeat step S3 until the dynamic image input is completed, splice the data in each set according to the timestamp, and output the sampling result.

[0079] That is, in this embodiment, based on the flooding problem mechanism generated in the blockchain broadcast, the real-time dynamic image is flooded and broadcasted, and the data that has changed before and after the flooding is repeatedly flooded for multiple times. The data that has not changed does not participate in the secondary flooding, but neighbor sampling is performed to eliminate the neighbors of the flooding, thereby continuously shrinking the sampling area. While solving the delay problem of GNN processing images in large-scale images, the final output sampling map can effectively reduce environmental noise, making the separation of dynamic and static images clearer, and achieving the purpose of accurate sampling of real-time dynamic images.

[0080] Please refer to Figure 2 , Embodiment 2 of the present invention is:

[0081] A real-time graph sampling method based on a flooding broadcast GNN network, based on the above embodiment 1, in this embodiment, as Figure 2 As shown, step S1 is specifically as follows:

[0082] S11. Build a GNN network system, and input dynamic images into the GNN network system in real time. Use the open source GraphLearn platform to automatically perform initial flood broadcasting on each pixel of the dynamic image through the broadcast flooding mechanism. The GNN network system has an open source GraphLearn platform and GraphSge model. Each pixel in the dynamic image can automatically perform flood broadcasting, which can effectively improve the sampling efficiency. Flooding means that each pixel in the image floods to other pixels.

[0083] S12, after the content of each node in the GNN network system is confirmed by other nodes, the initial flood data obtained after the initial flood broadcast of each pixel is saved in the set S0 = {}, and the timestamps are stamped in sequence. The initial flood data includes the horizontal and vertical coordinates of the pixel and the color data information to . The flood broadcast can define the horizontal and vertical coordinates of the pixel and the new and old color data information by the four-field pixel filling method (floodFill4), such as (int x, int y, intnewColor, int oldColor).

[0084] In this embodiment, step S2 is specifically:

[0085] S21. According to the change rate of the dynamic image, preset the interval time to perform a second flood broadcast when the dynamic image appears next time, so as to avoid mutual interference with the initial flood broadcast, ensure the accuracy of subsequent comparison of the same and different data, and further improve the accuracy of subsequent sampling. In this embodiment, the minimum interval time can be as low as 1 frame, and the second flood broadcast is performed when the frame number changes;

[0086] S22. When the preset interval time is reached, a secondary flood broadcast of the dynamic image is performed to obtain secondary flood data.

[0087] S23. Compare the horizontal and vertical coordinates and color data information of each pixel in the secondary flooding data with the horizontal and vertical coordinates and color data information of each pixel in the set S0={} in turn. If the two are consistent, store the secondary flooding data of the pixel in the set S1={} and add a timestamp. If the two are inconsistent, store the secondary flooding data of the pixel in the set U1={} and add a timestamp.

[0088] For example, if newColor=oldColor, then the part of the data pixels is stored in the data set S1={} and timestamped; if newColor!=oldColor, then the part of the data pixels is stored in the data set U1={} and timestamped.

[0089] That is, after the secondary flooding, the data that is the same as or different from the initial flooding is distributedly stored in different sets, which also effectively improves the data reading and writing efficiency.

[0090] Meanwhile, in this embodiment, step S3 is specifically as follows:

[0091] S31. Neighbor sampling is performed on the pixels corresponding to the data in set S1={} through the open source GraphSge model of the GNN network system, and the sampled data is compared with the data in set S1={}. If they are the same, the same data in set S1={} is discarded to ensure the improvement of storage and computing capabilities, and stored in set S2={} and timestamped. If they are not the same, they are stored in U2={} and timestamped.

[0092] In this embodiment, the sampling layer is defined as n, each sampling layer samples at most m neighbors, and the initial node sampling number is Get num_neighbors = [n, m], Where n and m are both positive integers. Specifically, n=2 and m=3 can be set, that is, two sampling layers are used, and each sampling layer takes at least three neighbors, then num_neighbors=[2,3].

[0093] S32. Perform a second flood broadcast on the pixels corresponding to the data in the set U1={}, and compare the flood-broadcasted data with the data in the set U1={}. If they are the same, store them in the set S2={} and timestamp them; if they are different, store them in the set U2={} and timestamp them.

[0094] In this embodiment, each time data is stored in a corresponding set, a timestamp is added to facilitate subsequent data concatenation to output the final sampling result, thereby ensuring the order and integrity of the sampling result.

[0095] In this embodiment, step S4 is specifically as follows:

[0096] S41, repeat step S3 until the dynamic image input is completed, and obtain the set S i ={} and set U i ={}, where i is a positive integer.

[0097] S42, set S i ={} and set Si-1 ={} difference data and set U i ={} and set U i-1 The difference data is spliced ​​according to the timestamp and the sampling result is output.

[0098] That is, the intersections in each type of set, that is, the same data, are further eliminated before splicing, so as to further avoid the existence of duplicate data in the final output sampling results and ensure accurate sampling.

[0099] In addition, in this embodiment, experiments have verified that if the image size is large, the entire sampling duration exceeds 10 seconds and the changes in the same pixel in the generated data set are less than 1 / 3 of the set number, these pixels can be directly discarded to increase the sampling rate.

[0100] At the same time, in this embodiment, a specific application scenario and processing steps of a real-time graph sampling method based on a flooding broadcast GNN network are provided as follows:

[0101] Taking the usage statistics of Pumi Whiteboard functions as an example, a statistical chart is generated for the usage of various functions and software of Pumi Whiteboard in a natural month. The horizontal axis is the function name of Pumi Whiteboard, and the vertical axis is the number of times used. A real-time chart of 30-day bar chart changes is generated in units of "days", and the real-time chart is defined as a whole with seconds as the unit of change. Changes per second may cause the bar data to refresh and change.

[0102] Then the real-time image is imported into the built GNN network system, and the initial flood broadcast is performed, and the data of each pixel is stored in the set S0 = {s1, s2, s3, s4...s k}. In the second second, the set S0 = {} is flooded again. The data generated in the blank area outside the bar graph and part of the bar graph are consistent with the data in S0 = {}. This part of the repeated data is stored in the set S1 = {}; the generated non-identical data, here the changed data in the bar graph, is stored in the set U1 = {u1,u2,u3,u4...u k}middle.

[0103] Then, the data in the set S1 = {} are sampled by neighbors, and the sampling layer is set to 2 layers. Each layer samples at most 3 neighbors. The initial node sampling number is Quantity (the cubic root of U1), define num_neighbors = [2,3], After sampling the neighbors of set S1={}, compare it with the data in set S0={} (the data is stored in its own node, and there is no need to consider the node location issue). If they are the same, discard the data in set S0={}, store it in set S2={} and timestamp it; if they are different, store it in set U2={} and timestamp it.

[0104] At the same time, the set U1={} is flooded and broadcasted, and the generated data is compared with the set U1={}. If they are the same, the data is stored in the set S2={}; if they are different, they are stored in the set U2={} and timestamped. For the above two steps, neighbor sampling and flooding broadcast operations are performed every second until the real-time graph playback ends.

[0105] Since the real-time graph selected in this case is a bar graph with a fixed background, after multiple flood broadcasts and neighbor sampling, the background area of ​​the bar graph is fixed and is always stored in the set S i = {}, the final background image is an extremely clean background. When the set is spliced, you can add the set U as needed. i = {}. The real-time changing data is spliced ​​according to the timestamp from small to large, from set U1 = {} to U n ={} The images are spliced ​​in a sequential reading manner according to the time sequence, and finally a real-time image with a clean background and smoothness is produced.

[0106] Please refer to Figure 3 , Embodiment 3 of the present invention is:

[0107] A real-time graph sampling terminal 1 based on a flooding broadcast GNN network includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, the steps of a real-time graph sampling method based on a flooding broadcast GNN network in the above-mentioned embodiment 1 or embodiment 2 are completed.

[0108] In summary, the real-time graph sampling method and terminal based on the flooding broadcast GNN network provided by the present invention have the following beneficial effects:

[0109] 1. Solved the delay problem of GNN processing images in large-scale images;

[0110] 2. The final generated sampling map effectively reduces environmental noise, making the separation of dynamic and static images clearer, achieving the purpose of accurate sampling of real-time dynamic images.

[0111] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A real-time graph sampling method based on flooding broadcast GNN network, It is characterized in that Includes steps: S1, input dynamic images into the GNN network in real time, and perform initial flood broadcast to obtain initial flood data; S2, performing secondary flooding broadcast on the initial flooding data to obtain secondary flooding data; S3, performing neighbor sampling on the data in the secondary flooding data that are the same as the initial flooding data, returning the different data to step S2 to re-perform the secondary flooding broadcast, and storing them in different sets respectively; S4. Repeat step S3 until the dynamic image is input, splice the data in each set according to the timestamp, and output the sampling result.

2. According to claim 1, a real-time graph sampling method based on a flooding broadcast GNN network, It is characterized in that The step S1 is specifically as follows: S11, building a GNN network system, and inputting the dynamic image into the GNN network system in real time, and using the open source GraphLearn platform to automatically perform initial flood broadcasting on each pixel of the dynamic image through a broadcast flooding mechanism; S12, after the content of each node in the GNN network system is confirmed by other nodes, the initial flooding data obtained after each pixel performs the initial flooding broadcast is saved to the set S 0 In the middle, and timestamp them in sequence, the initial flood data includes the horizontal and vertical coordinates of the pixels and the color data information in the middle.

3. According to claim 2, a real-time graph sampling method based on a flooding broadcast GNN network, It is characterized in that The step S2 is specifically as follows: S21, presetting an interval time according to the change rate of the dynamic image; S22, when the preset interval time is reached, performing secondary flooding broadcast of the dynamic image to obtain secondary flooding data; S23, the pixel horizontal and vertical coordinates and color data information of each pixel in the secondary flooding data are combined with the set S 0 The horizontal and vertical coordinates of each pixel in the pixel are compared with the color data information in turn, and if the two are consistent, the secondary flooding data of the pixel is stored in the set S 1 and timestamp, if the two are inconsistent, the secondary flooding data of the pixel is stored in the set U 1 and time stamped.

4. According to claim 3, a real-time graph sampling method based on a flooding broadcast GNN network, It is characterized in that The step S3 is specifically as follows: S31, for set S 1 The pixels corresponding to the data in the graph are sampled by the GraphSge model of the GNN network system, and the sampled data are compared with the set S 1 Compare the data in, if they are the same, discard the set S 1 The same data in and store it in set S 2 and timestamp it. If they are different, they are stored in U 2 and time stamped; The sampling layer is defined as n, each sampling layer samples at most m neighbors, and the number of initial node sampling is Get num_neighbors = [n, m] and Both n and m are positive integers; S32, for the set U 1 The pixels corresponding to the data in the second flood broadcast are again flooded, and the data after flood broadcast is combined with the set U 1 Compare the data in and store them in set S if they are the same 2 and timestamp them. If they are different, they are stored in the set U. 2 and time stamped.

5. According to claim 4, a real-time graph sampling method based on a flooding broadcast GNN network, It is characterized in that The step S4 is specifically as follows: S41, repeat step S3 until the dynamic image input is completed, and obtain a set S i and the set U i , where i is a positive integer; S42, set S i With the set S i-1 The difference data and set U i With the set U i-1 The difference data is spliced ​​according to the timestamp and the sampling result is output.

6. A real-time graph sampling terminal based on flooding broadcast GNN network, It is characterized in that The invention comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented: S1, input dynamic images into the GNN network in real time, and perform initial flood broadcast to obtain initial flood data; S2, performing secondary flooding broadcast on the initial flooding data to obtain secondary flooding data; S3, performing neighbor sampling on the data in the secondary flooding data that are the same as the initial flooding data, returning the different data to step S2 to re-perform the secondary flooding broadcast, and storing them in different sets respectively; S4. Repeat step S3 until the dynamic image is input, splice the data in each set according to the timestamp, and output the sampling result.

7. A real-time graph sampling terminal based on a flooding broadcast GNN network according to claim 6, It is characterized in that The step S1 is specifically as follows: S11, building a GNN network system, and inputting the dynamic image into the GNN network system in real time, and using the open source GraphLearn platform to automatically perform initial flood broadcasting on each pixel of the dynamic image through a broadcast flooding mechanism; S12, after the content of each node in the GNN network system is confirmed by other nodes, the initial flooding data obtained after each pixel performs the initial flooding broadcast is saved to the set S 0 In the middle, and timestamp them in sequence, the initial flood data includes the horizontal and vertical coordinates of the pixels and the color data information in the middle.

8. A real-time graph sampling terminal based on a flooding broadcast GNN network according to claim 7, It is characterized in that The step S2 is specifically as follows: S21, presetting an interval time according to the change rate of the dynamic image; S22, when the preset interval time is reached, performing secondary flooding broadcast of the dynamic image to obtain secondary flooding data; S23, the pixel horizontal and vertical coordinates and color data information of each pixel in the secondary flooding data are combined with the set S 0 The horizontal and vertical coordinates of each pixel in the pixel are compared with the color data information in turn, and if the two are consistent, the secondary flooding data of the pixel is stored in the set S 1 and timestamp, if the two are inconsistent, the secondary flooding data of the pixel is stored in the set U 1 and time stamped.

9. A real-time graph sampling terminal based on a flooding broadcast GNN network according to claim 8, It is characterized in that The step S3 is specifically as follows: S31, for set S 1 The pixels corresponding to the data in the graph are sampled by the GraphSge model of the GNN network system, and the sampled data are compared with the set S 1 Compare the data in, if they are the same, discard the set S 1 The same data in and store it in set S 2 and timestamp it. If they are different, they are stored in U 2 and time stamped; The sampling layer is defined as n, each sampling layer samples at most m neighbors, and the number of initial node sampling is Get num_neighbors = [n, m] and Both n and m are positive integers; S32, for the set U 1 The pixels corresponding to the data in the second flood broadcast are again flooded, and the data after flood broadcast is combined with the set U 1 Compare the data in and store them in set S if they are the same 2 and timestamp them. If they are different, they are stored in the set U. 2 and time stamped.

10. A real-time graph sampling terminal based on a flooding broadcast GNN network according to claim 9, It is characterized in that The step S4 is specifically as follows: S41, repeat step S3 until the dynamic image input is completed, and obtain a set S i and the set U i , where i is a positive integer; S42, set S i With the set S i-1 The difference data and set U i With the set U i-1 The difference data is spliced ​​according to the timestamp and the sampling result is output.

Citation Information

Patent Citations

  • Graph attention network inductive learning method based on graph sampling

    CN113077003A

  • Pre-training method based on dynamic graph neural network

    CN114494783A

  • Information propagation prediction method and system based on inter-propagation-path and in-propagation-path influence modeling

    CN115660147A

  • Fixed-length side point combined sampling mechanism in graph neural network training

    CN116841762A

  • Sampler and apparatus for executing graph neural network model

    US20220318592A1