TWI880469B - Incremental drawing division method, device, equipment, medium and product - Google Patents
Incremental drawing division method, device, equipment, medium and product Download PDFInfo
- Publication number
- TWI880469B TWI880469B TW112144819A TW112144819A TWI880469B TW I880469 B TWI880469 B TW I880469B TW 112144819 A TW112144819 A TW 112144819A TW 112144819 A TW112144819 A TW 112144819A TW I880469 B TWI880469 B TW I880469B
- Authority
- TW
- Taiwan
- Prior art keywords
- subgraph
- weight
- electronic device
- newly added
- subgraphs
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9536—Search customisation based on social or collaborative filtering
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Image Generation (AREA)
Abstract
本發明公開了一種增量圖劃分方法、裝置、設備、介質及產品,屬於資料處理技術領域。該方法包括:在獲取到新增資料節點的情況下,確定與新增資料節點存在關聯邊的至少一個子圖;在至少一個子圖包括第一子圖和第二子圖的情況下,獲取目標權重增益閾值,新增資料節點與第一子圖存在第一關聯邊,與第二子圖存在第二關聯邊;基於第一關聯邊和第二關聯邊的權重值確定權重增量;在權重增量大於目標權重增益閾值的情況下,聚合第一子圖與第二子圖得到第三子圖,並將新增資料節點劃分至第三子圖。根據本發明實施例,能夠改善增量圖劃分時的劃分時間較長,無法滿足即時性需求的問題。 The present invention discloses an incremental graph partitioning method, device, equipment, medium and product, which belongs to the field of data processing technology. The method includes: when a newly added data node is obtained, at least one subgraph with an associated edge with the newly added data node is determined; when at least one subgraph includes a first subgraph and a second subgraph, a target weight gain threshold is obtained, and the newly added data node has a first associated edge with the first subgraph and a second associated edge with the second subgraph; a weight increment is determined based on the weight values of the first associated edge and the second associated edge; when the weight increment is greater than the target weight gain threshold, the first subgraph and the second subgraph are aggregated to obtain a third subgraph, and the newly added data node is partitioned into the third subgraph. According to the embodiment of the present invention, the problem that the incremental graph division time is long and cannot meet the real-time requirements can be improved.
Description
本發明屬於資料處理技術領域,尤其涉及一種增量圖劃分方法、裝置、設備、介質及產品。 The present invention belongs to the field of data processing technology, and in particular relates to an incremental image segmentation method, device, equipment, medium and product.
隨著互聯網技術的發展應用,目前在風控挖掘分析、行銷推薦分析等場景下,均可以利用涉及大量對象的存量資料構建存量圖,通過該存量圖可以將聯繫密切的對象歸為同一子圖,每個子圖相當於一個社群,並且可在不同子圖之間建立關聯邊。如此,通過對存量圖進行計算分析,可以實現在風控挖掘分析場景下為不同對象評估風險值,在行銷推薦分析場景下為不同對象推薦相應行銷內容等實際應用。 With the development and application of Internet technology, in scenarios such as risk control mining and analysis and marketing recommendation analysis, stock data involving a large number of objects can be used to construct a stock graph. Through this stock graph, closely connected objects can be grouped into the same subgraph. Each subgraph is equivalent to a community, and associated edges can be established between different subgraphs. In this way, by calculating and analyzing the stock graph, it is possible to evaluate the risk value of different objects in the risk control mining and analysis scenario, and recommend corresponding marketing content to different objects in the marketing recommendation analysis scenario.
相關技術中,當獲取到最新增量資料時,通常需要通過全域的圖譜演算法進行圖計算分析,從而完成增量圖劃分,然而相關技術中增量圖劃分時的運算量較大,劃分時間較長,無法滿足即時性需求。 In related technologies, when the latest incremental data is obtained, it is usually necessary to perform graph calculation analysis through a global graph algorithm to complete the incremental graph division. However, the incremental graph division in related technologies requires a large amount of computation and takes a long time to complete, which cannot meet the real-time requirements.
本發明實施例提供一種增量圖劃分方法、裝置、設備、介質及產品,能夠改善增量圖劃分時的運算量較大,劃分時間較長,無法滿足即時性需求的問題。 The embodiments of the present invention provide an incremental image division method, device, equipment, medium and product, which can improve the problem that the incremental image division has a large amount of computation, a long division time and cannot meet the real-time requirements.
第一方面,本發明實施例提供一種增量圖劃分方法,該方法包括: In the first aspect, an embodiment of the present invention provides an incremental graph segmentation method, the method comprising:
在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖,其中,N個子圖是基於社區發現演算法對存量圖進行劃分得到的; When a new data node is obtained, determine at least one subgraph among N subgraphs that has an edge associated with the new data node, wherein the N subgraphs are obtained by dividing the stock graph based on a community discovery algorithm;
在至少一個子圖包括第一子圖和第二子圖的情況下,獲取第一子圖和第二子圖的目標權重增益閾值,其中,新增資料節點與第一子圖存在第一關 聯邊,新增資料節點與第二子圖存在第二關聯邊; In the case where at least one subgraph includes a first subgraph and a second subgraph, the target weight gain threshold of the first subgraph and the second subgraph is obtained, wherein a first association edge exists between the newly added data node and the first subgraph, and a second association edge exists between the newly added data node and the second subgraph;
基於第一關聯邊和第二關聯邊的權重值,確定新增資料節點的權重增量; Based on the weight values of the first associated edge and the second associated edge, determine the weight increment of the newly added data node;
在權重增量大於目標權重增益閾值的情況下,確定第一子圖與第二子圖滿足預設聚合條件,聚合第一子圖與第二子圖,得到第三子圖,並將新增資料節點劃分至第三子圖。 When the weight increment is greater than the target weight gain threshold, determine that the first subgraph and the second subgraph meet the preset aggregation conditions, aggregate the first subgraph and the second subgraph to obtain the third subgraph, and divide the newly added data nodes into the third subgraph.
第二方面,本發明實施例提供一種增量圖劃分裝置,該裝置包括: In the second aspect, an embodiment of the present invention provides an incremental image segmentation device, which includes:
確定模組,用於在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖,其中,N個子圖是基於社區發現演算法對存量圖進行劃分得到的; A determination module is used to determine at least one subgraph among N subgraphs that has an edge associated with the newly added data node when a newly added data node is obtained, wherein the N subgraphs are obtained by dividing the stock graph based on a community discovery algorithm;
獲取模組,用於在至少一個子圖包括第一子圖和第二子圖的情況下,獲取第一子圖和第二子圖的目標權重增益閾值,其中,新增資料節點與第一子圖存在第一關聯邊,新增資料節點與第二子圖存在第二關聯邊; An acquisition module is used to acquire the target weight gain threshold of the first subgraph and the second subgraph when at least one subgraph includes the first subgraph and the second subgraph, wherein the newly added data node has a first associated edge with the first subgraph, and the newly added data node has a second associated edge with the second subgraph;
確定模組,還用於基於第一關聯邊和第二關聯邊的權重值,確定新增資料節點的權重增量; The determination module is also used to determine the weight increment of the newly added data node based on the weight values of the first associated edge and the second associated edge;
劃分模組,用於在權重增量大於目標權重增益閾值的情況下,確定第一子圖與第二子圖滿足預設聚合條件,聚合第一子圖與第二子圖,得到第三子圖,並將新增資料節點劃分至第三子圖。 The partitioning module is used to determine that the first subgraph and the second subgraph meet the preset aggregation conditions when the weight increment is greater than the target weight gain threshold, aggregate the first subgraph and the second subgraph to obtain the third subgraph, and partition the newly added data nodes to the third subgraph.
第三方面,本發明實施例提供一種電子設備,包括:處理器以及存儲有電腦程式指令的記憶體;處理器執行電腦程式指令時實現第一方面所示的增量圖劃分方法的步驟。 In the third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the incremental image segmentation method shown in the first aspect are implemented.
第四方面,本發明實施例提供一種電腦可讀存儲介質,電腦可讀存儲介質上存儲程式或指令,程式或指令被處理器執行時實現如第一方面所示的增量圖劃分方法的步驟。 In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the incremental graph segmentation method shown in the first aspect are implemented.
第五方面,本發明實施例提供一種電腦程式產品,電腦程式產品被存儲在非易失的存儲介質中,電腦程式產品被至少一個處理器執行時實現如第一方面所示的增量圖劃分方法的步驟。 In a fifth aspect, an embodiment of the present invention provides a computer program product, which is stored in a non-volatile storage medium. When the computer program product is executed by at least one processor, the steps of the incremental graph partitioning method shown in the first aspect are implemented.
第六方面,本發明實施例提供一種晶片,該晶片包括處理器和通 信介面,通信介面和處理器耦合,處理器用於運行程式或指令,實現如第一方面的增量圖劃分方法的步驟。 In the sixth aspect, an embodiment of the present invention provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the incremental graph partitioning method of the first aspect.
本發明實施例提供一種增量圖劃分方法、裝置、設備、介質及產品,基於社區發現演算法預先對存量圖進行劃分得到N個子圖,在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖,若至少一個子圖包括第一子圖和第二子圖,說明該新增資料節點與不止一個社群中的社群節點具有關聯關係。基於此,本發明獲取第一子圖和第二子圖的目標權重增益閾值,並基於新增資料節點與兩個子圖之間的關聯邊的權重值,確定新增資料節點的權重增量。若該權重增量大於目標權重增益閾值,則可以說明在第一子圖與第二子圖之間添加新增資料節點之後,該權重增量能夠使得第一子圖與第二子圖之間的模組度增益得以提升,進而使得第一子圖與第二子圖滿足預設聚合條件。如此,通過聚合第一子圖與第二子圖,能夠得到受新增資料節點影響的第三子圖,通過遍歷每個新增資料節點,即可將N個子圖中所有滿足預設聚合條件的子圖進行兩兩融合,實現對原有存量圖的圖結構的重新劃分,且整個劃分過程無需涉及大量運算,僅需預先離線計算目標權重增益閾值即可,在獲取到新增資料節點的場景下可以完成增量圖的即時劃分,滿足即時性需求。 The embodiment of the present invention provides an incremental graph partitioning method, device, equipment, medium and product. Based on the community discovery algorithm, the existing graph is pre-partitioned to obtain N subgraphs. When a new data node is obtained, at least one subgraph in the N subgraphs that has an associated edge with the new data node is determined. If at least one subgraph includes a first subgraph and a second subgraph, it means that the new data node has an associated relationship with community nodes in more than one community. Based on this, the present invention obtains the target weight gain threshold of the first subgraph and the second subgraph, and determines the weight increment of the new data node based on the weight value of the associated edge between the new data node and the two subgraphs. If the weight increment is greater than the target weight gain threshold, it can be explained that after adding new data nodes between the first subgraph and the second subgraph, the weight increment can increase the modularity gain between the first subgraph and the second subgraph, thereby making the first subgraph and the second subgraph meet the preset aggregation conditions. In this way, by aggregating the first subgraph and the second subgraph, the third subgraph affected by the newly added data node can be obtained. By traversing each newly added data node, all subgraphs that meet the preset aggregation conditions in the N subgraphs can be fused in pairs, realizing the re-division of the graph structure of the original stock graph. The entire division process does not require a large amount of calculation, and only requires offline calculation of the target weight gain threshold in advance. In the scenario where the newly added data node is obtained, the incremental graph can be divided in real time to meet the real-time requirements.
110,120,130,140,410,420,430,510,520,530,540,550:步驟 110,120,130,140,410,420,430,510,520,530,540,550: Steps
1100:增量圖劃分裝置 1100: Incremental drawing device
1110:確定模組 1110: Confirm module
1120:獲取模組 1120: Get module
1130:劃分模組 1130: Divide module
1200:電子設備 1200: Electronic equipment
1201:記憶體 1201: Memory
1202:處理器 1202: Processor
1203:通信介面 1203: Communication interface
1204:匯流排 1204: Bus
A1:新增資料節點 A1: Add a new data node
Gi,Gj,Gk,G1,G2,G3,G4,G5:子圖 Gi,Gj,Gk,G1,G2,G3,G4,G5: subgraph
I1,J1,A:節點(交易帳戶) I1,J1,A: Node (trading account)
I2,K1:節點 I2,K1: Node
Z:新增節點 Z: Add a new node
為了更清楚地說明本發明實施例的技術方案,下面將對本發明實施例中所需要使用的圖式作簡單的介紹,對於本領域普通技術人員來講,在不付出進步性勞動的前提下,還可以根據這些圖式獲得其他的圖式。 In order to more clearly explain the technical solution of the embodiment of the present invention, the following will briefly introduce the diagrams required for use in the embodiment of the present invention. For ordinary technicians in this field, other diagrams can be obtained based on these diagrams without making any progressive labor.
圖1為本發明第一方面提供的增量圖劃分方法的一實施例的流程圖; Figure 1 is a flow chart of an embodiment of the incremental graph segmentation method provided in the first aspect of the present invention;
圖2為本發明第一方面提供的存量圖的示例的示意圖; Figure 2 is a schematic diagram of an example of a stock map provided in the first aspect of the present invention;
圖3為本發明第一方面提供的增量圖劃分效果的示例的示意圖; Figure 3 is a schematic diagram of an example of the incremental image segmentation effect provided by the first aspect of the present invention;
圖4為本發明第一方面提供的增量圖劃分方法的另一實施例的流程圖; Figure 4 is a flow chart of another embodiment of the incremental graph segmentation method provided in the first aspect of the present invention;
圖5為本發明第一方面提供的增量圖劃分方法的再一實施例的流程圖; Figure 5 is a flow chart of another embodiment of the incremental graph segmentation method provided in the first aspect of the present invention;
圖6為本發明第一方面提供的存量圖的另一示例的示意圖; Figure 6 is a schematic diagram of another example of the inventory map provided in the first aspect of the present invention;
圖7為本發明第一方面提供的存量圖的再一示例的示意圖; Figure 7 is a schematic diagram of another example of the inventory map provided in the first aspect of the present invention;
圖8為本發明第一方面提供的增量圖劃分效果的另一示例的示意圖; Figure 8 is a schematic diagram of another example of the incremental image segmentation effect provided by the first aspect of the present invention;
圖9為本發明第一方面提供的增量圖劃分效果的再一示例的示意圖; Figure 9 is a schematic diagram of another example of the incremental image segmentation effect provided by the first aspect of the present invention;
圖10為本發明第一方面提供的增量圖劃分效果的再一示例的示意圖; Figure 10 is a schematic diagram of another example of the incremental image segmentation effect provided by the first aspect of the present invention;
圖11為本發明第二方面提供的增量圖劃分裝置的一實施例的結構示意圖; Figure 11 is a schematic structural diagram of an embodiment of the incremental image segmentation device provided in the second aspect of the present invention;
圖12為本發明第三方面提供的電子設備的一實施例的結構示意圖。 Figure 12 is a schematic structural diagram of an embodiment of the electronic device provided in the third aspect of the present invention.
下面將詳細描述本發明的各個方面的特徵和示例性實施例,為了使本發明的目的、技術方案及優點更加清楚明白,以下結合圖式及具體實施例,對本發明進行進一步詳細描述。應理解,此處所描述的具體實施例僅意在解釋本發明,而不是限定本發明。對於本領域技術人員來說,本發明可以在不需要這些具體細節中的一些細節的情況下實施。下面對實施例的描述僅僅是為了通過示出本發明的示例來提供對本發明更好的理解。 The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in combination with drawings and specific embodiments. It should be understood that the specific embodiments described here are only intended to explain the present invention, not to limit the present invention. For those skilled in the art, the present invention can be implemented without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention.
隨著互聯網技術的發展應用,目前在風控挖掘分析、行銷推薦分析等場景下,均可以利用涉及大量對象的存量資料構建存量圖,通過該存量圖可以將聯繫密切的對象歸為同一子圖,每個子圖相當於一個社群,並且可在不同子圖之間建立關聯邊。如此,通過對存量圖進行計算分析,可以實現在風控挖掘分析場景下為不同對象評估風險值,在行銷推薦分析場景下為不同對象推薦相應行銷內容等實際應用。當獲取到最新增量資料時,通常需要通過全域的圖譜演算法進行圖計算分析,從而完成增量圖劃分,然而相關技術中增量圖劃分時的運算量較大,劃分時間較長,無法滿足即時性需求。 With the development and application of Internet technology, in scenarios such as risk control mining and analysis and marketing recommendation analysis, stock data involving a large number of objects can be used to construct a stock graph. Through this stock graph, closely connected objects can be grouped into the same subgraph. Each subgraph is equivalent to a community, and associated edges can be established between different subgraphs. In this way, by calculating and analyzing the stock graph, it is possible to evaluate the risk value of different objects in the risk control mining and analysis scenario, and recommend corresponding marketing content to different objects in the marketing recommendation analysis scenario. When the latest incremental data is obtained, it is usually necessary to perform graph calculation analysis through a global graph algorithm to complete the incremental graph segmentation. However, the incremental graph segmentation in related technologies requires a large amount of computation and takes a long time to complete, which cannot meet the real-time requirements.
基於上述出現的問題,本發明實施例提供一種增量圖劃分方法、裝置、設備、介質及產品,能夠獲取與新增資料節點存在關聯邊的第一子圖和第二子圖,以及第一子圖和第二子圖的目標權重增益閾值,並基於新增資料節點與兩個子圖之間的關聯邊的權重值,確定新增資料節點的權重增量。若該權重增量大於目標權重增益閾值,則可以說明在第一子圖與第二子圖之間添加新增資料節點之後,該權重增量能夠使得第一子圖與第二子圖之間的模組度增益得以提升,進而使得第一子圖與第二子圖滿足預設聚合條件。如此,通過聚合第一子圖與第二子圖,能夠得到受新增資料節點影響的第三子圖,通過遍歷每個新增資料節點,即可將N個子圖中所有滿足預設聚合條件的子圖進行兩兩融合,實現對 原有存量圖的圖結構的重新劃分,且整個劃分過程無需涉及大量運算,僅需預先離線計算目標權重增益閾值即可,在獲取到新增資料節點的場景下可以完成增量圖的即時劃分,滿足即時性需求。 Based on the above-mentioned problems, the embodiments of the present invention provide an incremental graph partitioning method, device, equipment, medium and product, which can obtain the first subgraph and the second subgraph with associated edges with the newly added data node, as well as the target weight gain threshold of the first subgraph and the second subgraph, and determine the weight increment of the newly added data node based on the weight value of the associated edge between the newly added data node and the two subgraphs. If the weight increment is greater than the target weight gain threshold, it can be explained that after adding the newly added data node between the first subgraph and the second subgraph, the weight increment can improve the modularity gain between the first subgraph and the second subgraph, thereby making the first subgraph and the second subgraph meet the preset aggregation conditions. In this way, by aggregating the first subgraph and the second subgraph, the third subgraph affected by the newly added data node can be obtained. By traversing each newly added data node, all subgraphs that meet the preset aggregation conditions in the N subgraphs can be fused in pairs, realizing the re-division of the graph structure of the original stock graph. The entire division process does not require a large amount of calculation, and only requires the pre-offline calculation of the target weight gain threshold. In the scenario where the newly added data node is obtained, the incremental graph can be divided in real time to meet the real-time requirements.
本發明實施例中的增量圖劃分方法可以應用於風控挖掘分析場景、行銷內容推薦場景等,下面結合圖式,通過具體的實施例對本發明實施例提供的增量圖劃分方法進行詳細地說明。 The incremental graph segmentation method in the embodiment of the present invention can be applied to risk control mining and analysis scenarios, marketing content recommendation scenarios, etc. The incremental graph segmentation method provided by the embodiment of the present invention is described in detail below with reference to the diagram through a specific embodiment.
本發明第一方面提供一種增量圖劃分方法,可應用於電子設備,即該增量圖劃分方法可由電子設備執行。需要說明的是,上述執行主體並不構成對本發明的限定。 The first aspect of the present invention provides an incremental image segmentation method that can be applied to electronic devices, that is, the incremental image segmentation method can be executed by electronic devices. It should be noted that the above-mentioned execution subject does not constitute a limitation of the present invention.
例如,該電子設備可以為交易平臺、監管平臺、金融端、內容推薦平臺的伺服器。 For example, the electronic device can be a server for a trading platform, a regulatory platform, a financial terminal, or a content recommendation platform.
圖1為本發明第一方面提供的增量圖劃分方法的一實施例的流程圖。如圖1所示,該增量圖劃分方法可以包括步驟110-步驟140。 FIG1 is a flow chart of an embodiment of the incremental image segmentation method provided by the first aspect of the present invention. As shown in FIG1, the incremental image segmentation method may include steps 110 to 140.
步驟110,在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖。 Step 110, when a new data node is obtained, determine at least one subgraph among the N subgraphs that has an edge associated with the new data node.
其中,N個子圖是基於社區發現演算法對存量圖進行劃分得到的。 Among them, N subgraphs are obtained by dividing the stock graph based on the community discovery algorithm.
步驟120,在至少一個子圖包括第一子圖和第二子圖的情況下,獲取第一子圖和第二子圖的目標權重增益閾值。 Step 120, when at least one subgraph includes a first subgraph and a second subgraph, obtain the target weight gain threshold of the first subgraph and the second subgraph.
其中,新增資料節點與第一子圖存在第一關聯邊,新增資料節點與第二子圖存在第二關聯邊。 Among them, there is a first associated edge between the newly added data node and the first subgraph, and there is a second associated edge between the newly added data node and the second subgraph.
步驟130,基於第一關聯邊和第二關聯邊的權重值,確定新增資料節點的權重增量。 Step 130, based on the weight values of the first associated edge and the second associated edge, determine the weight increment of the newly added data node.
步驟140,在權重增量大於目標權重增益閾值的情況下,確定第一子圖與第二子圖滿足預設聚合條件,聚合第一子圖與第二子圖,得到第三子圖,並將新增資料節點劃分至第三子圖。 Step 140, when the weight increment is greater than the target weight gain threshold, determine that the first subgraph and the second subgraph meet the preset aggregation condition, aggregate the first subgraph and the second subgraph to obtain a third subgraph, and divide the newly added data nodes into the third subgraph.
本發明實施例提供的增量圖劃分方法,基於社區發現演算法預先對存量圖進行劃分得到N個子圖,在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖,若至少一個子圖包括第一 子圖和第二子圖,說明該新增資料節點與不止一個社群中的社群節點具有關聯關係。基於此,本發明獲取第一子圖和第二子圖的目標權重增益閾值,並基於新增資料節點與兩個子圖之間的關聯邊的權重值,確定新增資料節點的權重增量。若該權重增量大於目標權重增益閾值,則可以說明在第一子圖與第二子圖之間添加新增資料節點之後,該權重增量能夠使得第一子圖與第二子圖之間的關聯度得以提升,進而使得第一子圖與第二子圖滿足預設聚合條件。如此,通過聚合第一子圖與第二子圖,能夠得到受新增資料節點影響的第三子圖,通過遍歷每個新增資料節點,即可將N個子圖中所有滿足預設聚合條件的子圖進行兩兩融合,實現對原有存量圖的圖結構的重新劃分,且整個劃分過程無需涉及大量運算,僅需預先離線計算目標權重增益閾值即可,在獲取到新增資料節點的場景下可以完成增量圖的即時劃分,滿足即時性需求。 The incremental graph partitioning method provided by the embodiment of the present invention pre-partitions the stock graph based on the community discovery algorithm to obtain N subgraphs. When a new data node is obtained, at least one subgraph in the N subgraphs that has an associated edge with the new data node is determined. If at least one subgraph includes a first subgraph and a second subgraph, it means that the new data node has an associated relationship with community nodes in more than one community. Based on this, the present invention obtains the target weight gain threshold of the first subgraph and the second subgraph, and determines the weight increment of the new data node based on the weight value of the associated edge between the new data node and the two subgraphs. If the weight increment is greater than the target weight gain threshold, it can be explained that after adding new data nodes between the first subgraph and the second subgraph, the weight increment can improve the correlation between the first subgraph and the second subgraph, thereby making the first subgraph and the second subgraph meet the preset aggregation conditions. In this way, by aggregating the first subgraph and the second subgraph, the third subgraph affected by the newly added data node can be obtained. By traversing each newly added data node, all subgraphs that meet the preset aggregation conditions in the N subgraphs can be fused in pairs, realizing the re-division of the graph structure of the original stock graph. The entire division process does not require a large amount of calculation, and only requires offline calculation of the target weight gain threshold in advance. In the scenario where the newly added data node is obtained, the incremental graph can be divided in real time to meet the real-time requirements.
下面結合實施例,對上述步驟的具體實現方式進詳細說明,具體如下所示。 The specific implementation of the above steps is described in detail below in conjunction with an example, as shown below.
涉及步驟110,在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖。 Involving step 110, when a new data node is obtained, at least one subgraph among the N subgraphs having an edge associated with the new data node is determined.
在步驟110之前,電子設備可以預先基於多個對象的存量資料建立存量圖,並基於社區發現演算法對存量圖進行劃分,得到N個子圖,N為正整數。 Before step 110, the electronic device can pre-establish a stock graph based on the stock data of multiple objects, and divide the stock graph based on the community discovery algorithm to obtain N sub-graphs, where N is a positive integer.
其中,每個對象在該N個子圖均有對應的唯一節點,每個子圖可以包括多個節點,兩個節點之間可以存在關聯邊,具體可以是在同一子圖內的兩個節點之間存在關聯邊,所屬不同子圖的兩個節點之間也可以存在關聯邊,每條關聯邊對應唯一權重,該權重可以基於存量資料確定,該權重可以用於表徵兩個節點之間的關聯度。 Each object has a corresponding unique node in the N subgraphs. Each subgraph can include multiple nodes. There can be an associated edge between two nodes. Specifically, there can be an associated edge between two nodes in the same subgraph, and there can also be an associated edge between two nodes in different subgraphs. Each associated edge corresponds to a unique weight, which can be determined based on stock data and can be used to characterize the degree of association between two nodes.
示例性地,如圖2所示,N個子圖中可以包括Gi、Gj、Gk等,子圖Gi、Gj、Gk中均分別包括4個節點。其中,Gi中節點I1與Gj中節點J1存在關聯邊,Gi中節點I2與Gk中節點K1存在關聯邊,且節點I2還可以與其它任意子圖中節點存在關聯邊。 For example, as shown in Figure 2, N subgraphs may include Gi, Gj, Gk, etc., and each of the subgraphs Gi, Gj, and Gk includes 4 nodes. Among them, there is an associated edge between node I1 in Gi and node J1 in Gj, there is an associated edge between node I2 in Gi and node K1 in Gk, and node I2 may also have an associated edge with any other node in any subgraph.
在本發明的一些實施例中,步驟110可以具體包括下述步驟:在 獲取到第一對象的增量資料的情況下,確定第一對象為新增資料節點;基於增量資料,確定與第一對象存在預設行為關係的至少一個第二對象;在第二對象對應節點與新增資料節點之間建立關聯邊,並基於交易資料定義每條關聯邊的權重值;確定至少一個子圖包括至少一個第二對象所在的子圖。 In some embodiments of the present invention, step 110 may specifically include the following steps: when the incremental data of the first object is obtained, determining the first object as a newly added data node; based on the incremental data, determining at least one second object having a preset behavior relationship with the first object; establishing an associated edge between the node corresponding to the second object and the newly added data node, and defining the weight value of each associated edge based on the transaction data; determining that at least one subgraph includes at least one subgraph where the second object is located.
具體地,每個子圖可以包括多個節點,每個節點均有對應的對象,電子設備僅在N個子圖中不包括第一對象對應的節點的情況下,確定第一對象為新增資料節點。上述預設行為關係例如可以為交易關係、社交關係等能夠體現不同對象之間具有關聯的關聯關係。 Specifically, each subgraph may include multiple nodes, each node has a corresponding object, and the electronic device determines that the first object is a newly added data node only when the N subgraphs do not include the node corresponding to the first object. The above-mentioned default behavior relationship can be, for example, a transaction relationship, a social relationship, etc. that can reflect the association between different objects.
示例性地,在風控挖掘分析場景下,交易資料即為增量資料,當獲取到交易帳戶A的交易資料時,若N個子圖中不存在交易帳戶A對應節點,則可以在N個子圖中新增該交易帳戶A對應節點A,並基於交易資料中的資料內容,為該節點A建立新的關聯邊。例如在交易帳戶A的交易資料中,包括交易帳戶A向交易帳戶I1轉帳100元,交易帳戶A向交易帳戶J1轉帳50元,則可以確定交易帳戶I1和交易帳戶J1與交易帳戶A存在交易關係,因此可以如圖3所示,在節點A與節點I1、節點J1之間分別建立關聯邊,如此可以確定與節點A具有關聯邊的至少一個子圖包括Gi和Gj。並且,還可以基於交易金額100元定義節點A與節點I1之間關聯邊的權重值,基於交易金額50元定義節點A與節點J1之間關聯邊的權重值。 For example, in the risk control mining and analysis scenario, the transaction data is the incremental data. When the transaction data of trading account A is obtained, if there is no corresponding node of trading account A in the N subgraphs, the corresponding node A of trading account A can be added in the N subgraphs, and based on the data content in the transaction data, a new association edge is established for the node A. For example, in the transaction data of trading account A, including the transfer of 100 yuan from trading account A to trading account I1 and the transfer of 50 yuan from trading account A to trading account J1, it can be determined that trading account I1 and trading account J1 have a transaction relationship with trading account A, so as shown in Figure 3, association edges can be established between node A and node I1 and node J1, respectively, so that it can be determined that at least one subgraph with an association edge with node A includes Gi and Gj. In addition, the weight value of the link between node A and node I1 can be defined based on the transaction amount of 100 yuan, and the weight value of the link between node A and node J1 can be defined based on the transaction amount of 50 yuan.
涉及步驟120,在至少一個子圖包括第一子圖和第二子圖的情況下,獲取第一子圖和第二子圖的目標權重增益閾值。 Involving step 120, when at least one subgraph includes a first subgraph and a second subgraph, obtaining the target weight gain threshold of the first subgraph and the second subgraph.
需要說明的是,在本發明中第一子圖與第二子圖之間存在關聯邊,也即第一子圖中某一節點與第二子圖中某一節點存在關聯邊。目標權重增益閾值是基於社區發現Louvain演算法預先計算得到的,N個子圖中任意兩個存在關聯邊的子圖,均可以預先計算得到一個目標權重增益閾值。 It should be noted that in the present invention, there is an associated edge between the first subgraph and the second subgraph, that is, there is an associated edge between a node in the first subgraph and a node in the second subgraph. The target weight gain threshold is pre-calculated based on the community discovery Louvain algorithm. Any two subgraphs with associated edges in the N subgraphs can be pre-calculated to obtain a target weight gain threshold.
在本發明的一些實施例中,為了準確計算第一子圖和第二子圖的目標權重增益閾值,第一子圖與M1個子圖存在關聯邊,第二子圖與M2個子圖存在關聯邊,M1個子圖中包括第二子圖,M2個子圖中包括第一子圖,在本發明的一些實施例中,圖4為本發明第一方面提供的增量圖劃分方法的另一實施 例的流程圖,在步驟120之前,該方法還可以包括如圖4所示的步驟410-步驟430。 In some embodiments of the present invention, in order to accurately calculate the target weight gain threshold of the first subgraph and the second subgraph, the first subgraph has an associated edge with M1 subgraphs, the second subgraph has an associated edge with M2 subgraphs, the M1 subgraphs include the second subgraph, and the M2 subgraphs include the first subgraph. In some embodiments of the present invention, FIG4 is a flow chart of another embodiment of the incremental graph partitioning method provided by the first aspect of the present invention. Before step 120, the method may also include steps 410 to 430 as shown in FIG4.
步驟410,獲取第一子圖與M1個子圖之間關聯邊的權重,得到M1個第三權重。 Step 410, obtain the weights of the associated edges between the first subgraph and M1 subgraphs, and obtain M1 third weights.
其中,第一子圖與M1個子圖中每個子圖,均可以計算得到一個第三權重。 Among them, the first subgraph and each of the M1 subgraphs can calculate a third weight.
在一些示例中,若第一子圖Gi與子圖Gk中存在多條關聯邊,則第三權重為多條關聯邊的權重和值。 In some examples, if there are multiple associated edges between the first subgraph Gi and the subgraph Gk, the third weight is the weight and value of the multiple associated edges.
步驟420,獲取第二子圖與M2個子圖之間關聯邊的權重,得到M2個第四權重。 Step 420, obtain the weights of the associated edges between the second subgraph and M2 subgraphs, and obtain M2 fourth weights.
其中,M1和M2均為正整數。 Among them, M1 and M2 are both positive integers.
步驟430,基於M1個第三權重、M2個第四權重,以及第五權重,計算第一子圖和第二子圖的目標權重增益閾值。 Step 430, based on M1 third weights, M2 fourth weights, and the fifth weight, calculate the target weight gain thresholds of the first sub-graph and the second sub-graph.
其中,第五權重為第一子圖與第二子圖之間關聯邊的權重。 Among them, the fifth weight is the weight of the connection edge between the first subgraph and the second subgraph.
在本發明的一些實施例中,圖5為本發明第一方面提供的增量圖劃分方法的再一實施例的流程圖,步驟430可以具體包括:圖5所示的步驟510-步驟550。 In some embodiments of the present invention, FIG. 5 is a flow chart of another embodiment of the incremental graph segmentation method provided in the first aspect of the present invention, and step 430 may specifically include: steps 510 to 550 shown in FIG. 5.
步驟510,將M1個第三權重相加得到第一參數,將M2個第四權重相加得到第二參數。 Step 510, add M1 third weights to obtain the first parameter, and add M2 fourth weights to obtain the second parameter.
步驟520,將第一參數與第二參數相加得到第六權重。 Step 520, add the first parameter and the second parameter to obtain the sixth weight.
步驟530,獲取N-2個子圖之間關聯邊的權重和值,得到第七權重。 Step 530, obtain the weights and values of the associated edges between N-2 subgraphs to obtain the seventh weight.
其中,第七權重用於表徵N個子圖中,除第一子圖和第二子圖以外的其餘N-2個子圖之間關聯邊的權重和值。 Among them, the seventh weight is used to represent the weights and values of the associated edges between the remaining N-2 subgraphs except the first and second subgraphs in the N subgraphs.
示例性地,如圖6所示,N為4,第一子圖為G1、第二子圖為G2,則第七權重即為子圖G3與子圖G4之間關聯邊的權重值。 For example, as shown in Figure 6, N is 4, the first subgraph is G1, and the second subgraph is G2, then the seventh weight is the weight value of the associated edge between subgraph G3 and subgraph G4.
步驟540,計算第一乘積與第二乘積的差值,得到第二差值,其中,第一乘積為第一參數與第二參數的乘積,第二乘積為第五權重與第六權重的 乘積。 Step 540, calculating the difference between the first product and the second product to obtain the second difference, wherein the first product is the product of the first parameter and the second parameter, and the second product is the product of the fifth weight and the sixth weight.
步驟550,計算第二差值與第七權重的比值,得到目標權重增益閾值。 Step 550, calculate the ratio of the second difference to the seventh weight to obtain the target weight gain threshold.
其中,目標權重增益閾值第一子圖和第二子圖對應的重劃分閾值,若新增資料節點的權重增量大於目標權重增益閾值,則說明在第一子圖與第二子圖之間添加新增資料節點後,可以使第一子圖與第二子圖之間的模組度增益增大,且增大後的模組度增益大於零。 Among them, the target weight gain threshold is the re-threshold corresponding to the first subgraph and the second subgraph. If the weight increment of the newly added data node is greater than the target weight gain threshold, it means that after adding the newly added data node between the first subgraph and the second subgraph, the modularity gain between the first subgraph and the second subgraph can be increased, and the increased modularity gain is greater than zero.
在一些實施例中,本發明可以具體採用公式(1)計算目標權重增益閾值: In some embodiments, the present invention may specifically use formula (1) to calculate the target weight gain threshold:
其中,第一子圖為Gi,第二子圖為Gj,為第一參數,為第二參數,V ij-out 為第五權重,ΣV ij-out 為第六權重,為第七權重,△V ij-out | threshold 為目標權重增益閾值。 Among them, the first subgraph is Gi, the second subgraph is Gj, is the first parameter, is the second parameter, V ij-out is the fifth weight, Σ V ij-out is the sixth weight, is the seventh weight, △ V ij-out | threshold is the target weight gain threshold.
在本發明的一些實施例中,在步驟110之前,該方法還可以包括:基於M1個第三權重、M2個第四權重、第五權重以及社區發現演算法,計算第一子圖和第二子圖的模組度增益。 In some embodiments of the present invention, before step 110, the method may further include: calculating the modularity gain of the first subgraph and the second subgraph based on M1 third weights, M2 fourth weights, the fifth weight and the community discovery algorithm.
具體地,將M1個第三權重相加得到第一參數,將M2個第四權重相加得到第二參數;將第一參數與第二參數相加得到第六權重;計算第一乘積與第六權重的比值,得到第一比值;將第五權重與第一比值相減,得到模組度增益。 Specifically, add M1 third weights to obtain the first parameter, add M2 fourth weights to obtain the second parameter; add the first parameter and the second parameter to obtain the sixth weight; calculate the ratio of the first product and the sixth weight to obtain the first ratio; subtract the fifth weight from the first ratio to obtain the modularity gain.
本發明可以具體採用公式(2)計算第一子圖Gi和第二子圖Gk的模組度增益Q ij : The present invention may specifically use formula (2) to calculate the modularity gain Qij of the first sub-graph Gi and the second sub-graph Gk:
在本發明實施例中,由於當前存量圖均已通過Louvain演算法完成子圖劃分,任意兩個存在關聯邊的子圖之間的模組度增益均小於或等於0。因 此,針對當前存量圖中,任意兩個存在關聯邊的子圖,均可以基於其與其它子圖之間關聯邊的權重值,計算其對應的目標權重增益閾值,該目標權重增益閾值即為圖結構重劃分閾值。也即,通過該目標權重增益閾值,可以快速地對受到新增資料節點影響後的第一子圖與第二子圖之間的模組度增益進行確定,由於模組度增益大於零的兩個子圖可以進行融合,因此在確定更新後的模組度增益大於零後,可以直接對第一子圖和第二子圖進行融合,實現增量圖結構的即時更新。 In the embodiment of the present invention, since the current stock graphs have been sub-divided by Louvain algorithm, the modularity gain between any two sub-graphs with associated edges is less than or equal to 0. Therefore, for any two sub-graphs with associated edges in the current stock graph, their corresponding target weight gain thresholds can be calculated based on the weight values of the associated edges between them and other sub-graphs. The target weight gain threshold is the graph structure re-division threshold. That is, through the target weight gain threshold, the modularity gain between the first subgraph and the second subgraph affected by the newly added data node can be quickly determined. Since two subgraphs with modularity gain greater than zero can be fused, after determining that the updated modularity gain is greater than zero, the first subgraph and the second subgraph can be directly fused to achieve real-time update of the incremental graph structure.
涉及步驟130,基於第一關聯邊和第二關聯邊的權重值,確定新增資料節點的權重增量。 Involving step 130, based on the weight values of the first associated edge and the second associated edge, determining the weight increment of the newly added data node.
其中,第一關聯邊對應的權重值為第一權重,第二關聯邊對應的權重值為第二權重,權重增量用於表徵新增資料節點的影響度。 Among them, the weight value corresponding to the first associated edge is the first weight, the weight value corresponding to the second associated edge is the second weight, and the weight increment is used to characterize the influence of the newly added data node.
在本發明的一些實施例中,步驟130可以具體包括下述步驟:將第一權重與第二權重相加,得到第一和值;計算第一和值與預設歸一化變數的比值,得到權重增量。 In some embodiments of the present invention, step 130 may specifically include the following steps: adding the first weight and the second weight to obtain a first sum; calculating the ratio of the first sum to a preset normalized variable to obtain a weight increment.
具體地,本發明可以根據公式(3)計算權重增量△V new 。 Specifically, the present invention can calculate the weight increment △ V new according to formula (3).
△V new =(V new-i +V new-j )/V (3) △ V new =( V new-i + V new-j )/ V (3)
其中,V new-i 為第一權重,V new-j 為第二權重,V為預設歸一化變數,其具體可以根據具體需求進行設置,本發明對此不做具體限定。 Among them, V new-i is the first weight, V new-j is the second weight, and V is a default normalized variable, which can be set according to specific needs, and the present invention does not make specific limitations on this.
示例性地,繼續參見圖3,節點A與節點I1之間的關聯邊為第一關聯邊,節點A與節點J1之間的關聯邊為第二關聯邊,若預設歸一化變數為2,第一權重為10,第二權重為5,則權重增量為7.5。 For example, referring to Figure 3, the connection edge between node A and node I1 is the first connection edge, and the connection edge between node A and node J1 is the second connection edge. If the default normalization variable is 2, the first weight is 10, and the second weight is 5, the weight increment is 7.5.
在本發明的一些實施例中,該方法還可以包括:在權重增量不大於目標權重增益的情況下,比較第一權重和第二權重;若第一權重大於第二權重,則將新增資料節點劃分至第一子圖;若第二權重大於第一權重,則將新增資料節點劃分至第二子圖。 In some embodiments of the present invention, the method may further include: when the weight increment is not greater than the target weight gain, comparing the first weight and the second weight; if the first weight is greater than the second weight, dividing the newly added data node into the first subgraph; if the second weight is greater than the first weight, dividing the newly added data node into the second subgraph.
示例性地,節點A與節點I1之間的關聯邊為第一關聯邊,節點A與節點J1之間的關聯邊為第二關聯邊,第一權重為10,第二權重為5,權重增量為7.5,若目標權重增益為8,則需比較第一權重與第二權重的大小,由於第一權重更大,因此直接將新增資料節點A劃分至圖3所示的第一子圖Gi。 For example, the association edge between node A and node I1 is the first association edge, the association edge between node A and node J1 is the second association edge, the first weight is 10, the second weight is 5, and the weight increment is 7.5. If the target weight gain is 8, the first weight and the second weight need to be compared. Since the first weight is larger, the newly added data node A is directly divided into the first subgraph Gi shown in Figure 3.
在本發明實施例中,若權重增量不大於目標權重增益,則表徵在受到新增資料節點影響後,第一子圖與第二子圖之間的模組度增益仍然小於零。此時,無需對第一子圖和第二子圖進行聚合,而是直接將該新增資料點劃分至受其影響最大的子圖即可,該受其影響最大的子圖,即為與新增資料點的關聯邊權重最大的子圖。如此,可以實現新增資料節點的快速劃分,且劃分準確,能夠將新增資料節點劃分至與其關聯度最高的子圖。 In the embodiment of the present invention, if the weight increment is not greater than the target weight gain, it means that after being affected by the newly added data node, the modularity gain between the first subgraph and the second subgraph is still less than zero. At this time, there is no need to aggregate the first subgraph and the second subgraph, but directly divide the newly added data point into the subgraph that is most affected by it. The subgraph that is most affected by it is the subgraph with the largest weight of the associated edge with the newly added data point. In this way, the newly added data node can be quickly divided, and the division is accurate, and the newly added data node can be divided into the subgraph with the highest degree of correlation with it.
涉及步驟140,在權重增量大於目標權重增益閾值的情況下,確定第一子圖與第二子圖滿足預設聚合條件,聚合第一子圖與第二子圖,得到第三子圖,並將新增資料節點劃分至第三子圖。 Involving step 140, when the weight increment is greater than the target weight gain threshold, determining that the first subgraph and the second subgraph meet the preset aggregation condition, aggregating the first subgraph and the second subgraph to obtain a third subgraph, and assigning the newly added data nodes to the third subgraph.
在本發明的一些實施例中,該方法還可以包括下述步驟:在至少一個子圖包括第一子圖和第二子圖的情況下,獲取第一子圖和第二子圖的模組度增益;基於第一關聯邊和第二關聯邊的權重值,以及社區發現演算法,對模組度增益進行更新,得到更新後的模組度增益。 In some embodiments of the present invention, the method may further include the following steps: when at least one subgraph includes a first subgraph and a second subgraph, obtaining the modularity gain of the first subgraph and the second subgraph; updating the modularity gain based on the weight values of the first associated edge and the second associated edge and the community discovery algorithm to obtain an updated modularity gain.
具體地,第一子圖與第二子圖之間的子圖關聯度與模組度增益呈正相關,在第一子圖與第二子圖之間添加新增資料節點後,可以基於第一關聯邊和第二關聯邊的權重值更新第一子圖與第二子圖之間的第五權重,然後基於更新後的第五權重,再利用公式(2)計算更新後的模組度增益。 Specifically, the subgraph association between the first subgraph and the second subgraph is positively correlated with the modularity gain. After adding a new data node between the first subgraph and the second subgraph, the fifth weight between the first subgraph and the second subgraph can be updated based on the weight values of the first associated edge and the second associated edge. Then, based on the updated fifth weight, the updated modularity gain is calculated using formula (2).
在上述實施例中,步驟140可以具體包括下述步驟:在權重增量大於目標權重增益閾值的情況下,確定更新後的模組度增益大於零;在更新後的模組度增益大於零的情況下,確定第一子圖與第二子圖滿足預設聚合條件。 In the above embodiment, step 140 may specifically include the following steps: when the weight increment is greater than the target weight gain threshold, determining that the updated modularity gain is greater than zero; when the updated modularity gain is greater than zero, determining that the first subgraph and the second subgraph meet the preset aggregation condition.
在一些實施例中,公式(1)的推導過程如下: In some embodiments, the derivation process of formula (1) is as follows:
當第一子圖與第二子圖之間的權重值增加△V ij-out 之後,更新後的第五權重V ij-out ' =V ij-out +△V ij-out ,更新後的第一參數,更新 後的第二參數,更新後的第六權重ΣV ij-out ' =ΣV ij-out +△V ij-out ; When the weight value between the first subgraph and the second subgraph increases by △ V ij-out , the updated fifth weight V ij-out ' = V ij-out +△ V ij-out , and the updated first parameter , the updated second parameter , the updated sixth weight Σ V ij-out ' =Σ V ij-out +△ V ij-out ;
因此將上述參數代入公式(2)後,可以得到更新後的模組度增益: Therefore, after substituting the above parameters into formula (2), the updated modular gain can be obtained:
由此可以得到: From this we can get:
進一步簡化可得到: Further simplification yields:
故△V ij-out 的臨界值,也即目標權重增益閾值: Therefore, the critical value of △ V ij-out , that is, the target weight gain threshold:
在本發明實施例中,通過上述公式(1)的推導過程可知,若權重增量大於目標權重增益閾值的情況下,則可以確定更新後的模組度增益大於零。基於此,本發明在當前存量圖基礎上,在第一子圖與第二子圖之間添加新增資料節點以及關聯邊後,若該新增資料節點的權重增量大於目標權重增益閾值,則可以直接判定第一子圖與第二子圖更新後模組度增益大於零,無需其它形式的計算,並可以直接將第一子圖與第二子圖聚合,實現對當前圖結構的子圖劃分,可解釋性較強,且計算量小,劃分效率較高,能夠滿足增量圖劃分的即時性需求。 In the embodiment of the present invention, it can be known from the derivation process of the above formula (1) that if the weight increment is greater than the target weight gain threshold, it can be determined that the updated modularity gain is greater than zero. Based on this, the present invention adds a new data node and an associated edge between the first subgraph and the second subgraph on the basis of the current stock graph. If the weight increment of the new data node is greater than the target weight gain threshold, it can be directly determined that the updated modularity gain of the first subgraph and the second subgraph is greater than zero without other forms of calculation. The first subgraph and the second subgraph can be directly aggregated to realize the subgraph division of the current graph structure. It has strong interpretability, small calculation amount, high division efficiency, and can meet the real-time requirements of incremental graph division.
作為一個具體的示例,本發明的增量圖劃分方法可應用於異常轉帳關聯網路的增量圖劃分場景,圖6為異常轉帳關聯網路的存量圖,該存量圖包括基於Louvain演算法劃分得到的4個子圖,分別為G1、G2、G3和G4,每個子圖可以包括至少一個節點,節點與節點之間通過關聯邊連接,每條關聯邊可以對應一個權重值,該權重值可以基於兩個節點對應的兩個使用者之間的轉帳資料確定,該轉帳資料例如可以包括轉帳頻率、轉帳金額等。 As a specific example, the incremental graph partitioning method of the present invention can be applied to the incremental graph partitioning scenario of an abnormal transfer association network. FIG6 is a stock graph of an abnormal transfer association network, which includes four subgraphs obtained based on the Louvain algorithm, namely G1, G2, G3 and G4. Each subgraph can include at least one node, and the nodes are connected by association edges. Each association edge can correspond to a weight value, which can be determined based on the transfer data between the two users corresponding to the two nodes. The transfer data can include, for example, the transfer frequency, the transfer amount, etc.
若圖6中每條關聯邊的權重值均為1,則如圖7所示,子圖G1與子圖G2之間的關聯邊權重為1,子圖G1與子圖G3之間的關聯邊權重為3,子圖G1與子圖G4之間的關聯邊權重為1,子圖G2與子圖G4之間的關聯邊權重為3。若子圖G1為第一子圖,子圖G2為第二子圖,則將第五權重1、第六權重10、第一參數6和第二參數4代入公式(2),可以計算得到子圖G1與子圖G2的模組度增益為1-6*4/10=-1.4<0。 If the weight value of each associated edge in Figure 6 is 1, as shown in Figure 7, the weight of the associated edge between subgraph G1 and subgraph G2 is 1, the weight of the associated edge between subgraph G1 and subgraph G3 is 3, the weight of the associated edge between subgraph G1 and subgraph G4 is 1, and the weight of the associated edge between subgraph G2 and subgraph G4 is 3. If subgraph G1 is the first subgraph and subgraph G2 is the second subgraph, then substitute the fifth weight 1, the sixth weight 10, the first parameter 6 and the second parameter 4 into formula (2), and the modularity gain of subgraph G1 and subgraph G2 can be calculated to be 1-6*4/10=-1.4<0.
當子圖G1與子圖G2之間的關聯邊權重增加△V ij-out 後,為了使得 更新後的模組度增益(1+△V ij-out )->0,則將第一參數6、第二參數4、第五權重1、第六權重10、第七權重1代入公式(1),計算得到子圖G1與子圖G2的目標權重增益閾值△V ij-out | threshold =(4*6-1*10)/1=14。 When the weight of the link between subgraph G1 and subgraph G2 increases by △ V ij-out , in order to make the updated modularity gain (1+△ V ij-out )- >0, then substitute the first parameter 6, the second parameter 4, the fifth weight 1, the sixth weight 10, and the seventh weight 1 into formula (1) to calculate the target weight gain threshold △ V ij-out | threshold =(4*6-1*10)/1=14 for subgraph G1 and subgraph G2.
如圖8所示,新增節點Z與子圖G1之間的第一權重為4+4,與子圖G2之間的第二權重為4+4,若預設歸一化變數為1,則新增節點Z的權重增量為16,權重增量16大於目標權重增益閾值14,說明在受到新增節點Z的影響後,子圖G1與子圖G2之間更新後的模組度增益大於零。基於此,可以將子圖G1與子圖G2合併得到子圖G5,並將新增節點Z劃分至子圖G5。 As shown in Figure 8, the first weight between the newly added node Z and subgraph G1 is 4+4, and the second weight between the newly added node Z and subgraph G2 is 4+4. If the default normalization variable is 1, the weight increment of the newly added node Z is 16. The weight increment 16 is greater than the target weight gain threshold of 14, which means that after being affected by the newly added node Z, the updated modularity gain between subgraph G1 and subgraph G2 is greater than zero. Based on this, subgraph G1 and subgraph G2 can be merged to obtain subgraph G5, and the newly added node Z can be assigned to subgraph G5.
在本發明的一些實施例中,該方法還可以包括:在新增資料節點與單一子圖存在關聯邊的情況下,將新增資料節點劃分至單一子圖。 In some embodiments of the present invention, the method may further include: when there is an associated edge between the newly added data node and the single subgraph, the newly added data node is divided into the single subgraph.
具體地,新增資料節點與單一子圖存在關聯邊可以包括:新增資料節點與單一子圖存在單一關聯邊,即該新增資料節點在存量圖中為單一關係邊;或者,新增資料節點與單一子圖存在至少兩條關聯邊,即該新增資料節點在存量圖中為多關係邊。 Specifically, the existence of an associated edge between the newly added data node and a single subgraph may include: the existence of a single associated edge between the newly added data node and a single subgraph, that is, the newly added data node is a single associated edge in the existing graph; or, the existence of at least two associated edges between the newly added data node and a single subgraph, that is, the newly added data node is multiple associated edges in the existing graph.
在一個示例中,如圖9所示,新增資料節點A1僅與子圖Gi存在一條關聯邊,則可以將該新增資料節點A1劃分至子圖Gi。 In an example, as shown in Figure 9, the newly added data node A1 has only one associated edge with the subgraph Gi, so the newly added data node A1 can be divided into the subgraph Gi.
在另一個示例中,如圖10所示,新增資料節點A1與子圖Gi存在兩條關聯邊,則可以將該新增資料節點A1劃分至子圖Gi。 In another example, as shown in Figure 10, if there are two associated edges between the newly added data node A1 and the subgraph Gi, the newly added data node A1 can be divided into the subgraph Gi.
在本發明實施例中,通過判斷新增資料節點僅與單一子圖存在關聯邊,則可將該新增資料節點直接劃分至單一子圖,無需計算,能夠實現新增資料節點的即時劃分。 In the embodiment of the present invention, by determining that the newly added data node has only an associated edge with a single subgraph, the newly added data node can be directly divided into a single subgraph without calculation, and the newly added data node can be divided in real time.
本發明實施例可兼顧多種場景下的增量圖劃分,例如在風控挖掘分析場景下為不同對象評估風險值,在行銷推薦分析場景下為不同對象推薦相應行銷內容等場景,適應性強,且應用範圍廣泛。 The embodiment of the present invention can take into account the incremental graph division in a variety of scenarios, such as evaluating the risk value for different objects in the risk control mining analysis scenario, and recommending corresponding marketing content for different objects in the marketing recommendation analysis scenario. It has strong adaptability and a wide range of applications.
基於同樣的發明構思,本發明第二方面提供一種增量圖劃分裝置。圖11為本發明第二方面提供的增量圖劃分裝置的一實施例的結構示意圖。 Based on the same inventive concept, the second aspect of the present invention provides an incremental image segmentation device. Figure 11 is a structural schematic diagram of an embodiment of the incremental image segmentation device provided by the second aspect of the present invention.
如圖11所示,該增量圖劃分裝置1100具體可以包括:確定模組1110、獲取模組1120和劃分模組1130。 As shown in FIG11 , the incremental image dividing device 1100 may specifically include: a determination module 1110, an acquisition module 1120, and a dividing module 1130.
其中,確定模組,用於在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖,其中,N個子圖是基於社區發現演算法對存量圖進行劃分得到的; The determination module is used to determine at least one subgraph among N subgraphs that has an edge associated with the newly added data node when a newly added data node is obtained, wherein the N subgraphs are obtained by dividing the stock graph based on the community discovery algorithm;
獲取模組1120,用於在至少一個子圖包括第一子圖和第二子圖的情況下,獲取第一子圖和第二子圖的目標權重增益閾值,其中,新增資料節點與第一子圖存在第一關聯邊,新增資料節點與第二子圖存在第二關聯邊; The acquisition module 1120 is used to acquire the target weight gain threshold of the first subgraph and the second subgraph when at least one subgraph includes a first subgraph and a second subgraph, wherein the newly added data node has a first associated edge with the first subgraph, and the newly added data node has a second associated edge with the second subgraph;
確定模組1110,還用於基於第一關聯邊和第二關聯邊的權重值,確定新增資料節點的權重增量; Determination module 1110 is also used to determine the weight increment of the newly added data node based on the weight values of the first associated edge and the second associated edge;
劃分模組1130,用於在權重增量大於目標權重增益閾值的情況下,確定第一子圖與第二子圖滿足預設聚合條件,聚合第一子圖與第二子圖,得到第三子圖,並將新增資料節點劃分至第三子圖。 The partitioning module 1130 is used to determine that the first subgraph and the second subgraph meet the preset aggregation condition when the weight increment is greater than the target weight gain threshold, aggregate the first subgraph and the second subgraph to obtain the third subgraph, and partition the newly added data node to the third subgraph.
本發明實施例提供的增量圖劃分裝置,基於社區發現演算法預先對存量圖進行劃分得到N個子圖,在獲取到新增資料節點的情況下,確定N個子圖中與新增資料節點存在關聯邊的至少一個子圖,若至少一個子圖包括第一子圖和第二子圖,說明該新增資料節點與不止一個社群中的社群節點具有關聯關係。基於此,本發明獲取第一子圖和第二子圖的目標權重增益閾值,並基於新增資料節點與兩個子圖之間的關聯邊的權重值,確定新增資料節點的權重增量。若該權重增量大於目標權重增益閾值,則可以說明在第一子圖與第二子圖之間添加新增資料節點之後,該權重增量能夠使得第一子圖與第二子圖之間的模組度增益得以提升,進而使得第一子圖與第二子圖滿足預設聚合條件。如此,通過聚合第一子圖與第二子圖,能夠得到受新增資料節點影響的第三子圖,通過遍歷每個新增資料節點,即可將N個子圖中所有滿足預設聚合條件的子圖進行兩兩融合,實現對原有存量圖的圖結構的重新劃分,且整個劃分過程無需涉及大量運算,僅需預先離線計算目標權重增益閾值即可,在獲取到新增資料節點的場景下可以完成增量圖的即時劃分,滿足即時性需求。 The incremental graph partitioning device provided by the embodiment of the present invention pre-partitions the stock graph into N subgraphs based on the community discovery algorithm. When a new data node is obtained, at least one subgraph in the N subgraphs that has an associated edge with the new data node is determined. If at least one subgraph includes a first subgraph and a second subgraph, it means that the new data node has an associated relationship with community nodes in more than one community. Based on this, the present invention obtains the target weight gain threshold of the first subgraph and the second subgraph, and determines the weight increment of the new data node based on the weight value of the associated edge between the new data node and the two subgraphs. If the weight increment is greater than the target weight gain threshold, it can be explained that after adding new data nodes between the first subgraph and the second subgraph, the weight increment can increase the modularity gain between the first subgraph and the second subgraph, thereby making the first subgraph and the second subgraph meet the preset aggregation conditions. In this way, by aggregating the first subgraph and the second subgraph, the third subgraph affected by the newly added data node can be obtained. By traversing each newly added data node, all subgraphs that meet the preset aggregation conditions in the N subgraphs can be fused in pairs, realizing the re-division of the graph structure of the original stock graph. The entire division process does not require a large amount of calculation, and only requires offline calculation of the target weight gain threshold in advance. In the scenario where the newly added data node is obtained, the incremental graph can be divided in real time to meet the real-time requirements.
在本發明的一些實施例中,裝置還包括:獲取模組1120,用於在 至少一個子圖包括第一子圖和第二子圖的情況下,獲取第一子圖和第二子圖的模組度增益;更新模組,用於基於第一關聯邊和第二關聯邊的權重值,以及社區發現演算法,對模組度增益進行更新,得到更新後的模組度增益。 In some embodiments of the present invention, the device further includes: an acquisition module 1120, which is used to obtain the modularity gain of the first subgraph and the second subgraph when at least one subgraph includes the first subgraph and the second subgraph; an update module, which is used to update the modularity gain based on the weight values of the first associated edge and the second associated edge and the community discovery algorithm to obtain the updated modularity gain.
在本發明的一些實施例中,劃分模組1130具體用於:在權重增量大於目標權重增益閾值的情況下,確定更新後的模組度增益大於零;在更新後的模組度增益大於零的情況下,確定第一子圖與第二子圖滿足預設聚合條件。 In some embodiments of the present invention, the partitioning module 1130 is specifically used to: when the weight increment is greater than the target weight gain threshold, determine that the updated modularity gain is greater than zero; when the updated modularity gain is greater than zero, determine that the first subgraph and the second subgraph meet the preset aggregation condition.
在本發明的一些實施例中,第一關聯邊對應第一權重,第二關聯邊對應第二權重,確定模組1110具體用於:將第一權重與第二權重相加,得到第一和值;計算第一和值與預設歸一化變數的比值,得到權重增量。 In some embodiments of the present invention, the first association edge corresponds to the first weight, the second association edge corresponds to the second weight, and the determination module 1110 is specifically used to: add the first weight and the second weight to obtain a first sum; calculate the ratio of the first sum to a preset normalized variable to obtain a weight increment.
在本發明的一些實施例中,裝置還包括:比較模組,用於在權重增量不大於目標權重增益的情況下,比較第一權重和第二權重;劃分模組1130,還用於若第一權重大於第二權重,則將新增資料節點劃分至第一子圖;劃分模組1130,還用於若第二權重大於第一權重,則將新增資料節點劃分至第二子圖。 In some embodiments of the present invention, the device further includes: a comparison module for comparing the first weight and the second weight when the weight increment is not greater than the target weight gain; a division module 1130 for dividing the newly added data node into the first subgraph if the first weight is greater than the second weight; and a division module 1130 for dividing the newly added data node into the second subgraph if the second weight is greater than the first weight.
在本發明的一些實施例中,第一子圖與M1個子圖存在關聯邊,第二子圖與M2個子圖存在關聯邊,M1個子圖中包括第二子圖,M2個子圖中包括第一子圖,裝置還包括:獲取模組1120,用於在獲取第一子圖和第二子圖的目標權重增益閾值之前,獲取第一子圖與M1個子圖之間關聯邊的權重,得到M1個第三權重;獲取模組1120,用於獲取第二子圖與M2個子圖之間關聯邊的權重,得到M2個第四權重;計算模組,用於基於M1個第三權重、M2個第四權重,以及第五權重,計算第一子圖和第二子圖的目標權重增益閾值;其中,第五權重為第一子圖與第二子圖之間關聯邊的權重。 In some embodiments of the present invention, there is an associated edge between the first subgraph and M1 subgraphs, there is an associated edge between the second subgraph and M2 subgraphs, the M1 subgraphs include the second subgraph, and the M2 subgraphs include the first subgraph. The device further includes: an acquisition module 1120, which is used to obtain the weight of the associated edge between the first subgraph and the M1 subgraphs before obtaining the target weight gain threshold of the first subgraph and the second subgraph, and obtain M1 third weights; the acquisition module 1120 is used to obtain the weight of the associated edge between the second subgraph and the M2 subgraphs, and obtain M2 fourth weights; a calculation module is used to calculate the target weight gain threshold of the first subgraph and the second subgraph based on the M1 third weights, the M2 fourth weights, and the fifth weight; wherein the fifth weight is the weight of the associated edge between the first subgraph and the second subgraph.
在本發明的一些實施例中,計算模組具體用於:將M1個第三權重相加得到第一參數,將M2個第四權重相加得到第二參數;將第一參數與第二參數相加得到第六權重;獲取N-2個子圖之間關聯邊的權重和值,得到第七權重,其中,N-2個子圖包括N個子圖中除第一子圖、第二子圖以外的子圖;計算第一乘積與第二乘積的差值,得到第二差值,其中,第一乘積為第一參數與第二參數的乘積,第二乘積為第五權重與第六權重的乘積;計算第二差值與第七權重的比值,得到目標權重增益閾值。 In some embodiments of the present invention, the calculation module is specifically used to: add M1 third weights to obtain a first parameter, add M2 fourth weights to obtain a second parameter; add the first parameter and the second parameter to obtain a sixth weight; obtain the weight sum of the associated edges between N-2 subgraphs to obtain a seventh weight, wherein the N-2 subgraphs include subgraphs other than the first subgraph and the second subgraph in the N subgraphs; calculate the difference between the first product and the second product to obtain a second difference, wherein the first product is the product of the first parameter and the second parameter, and the second product is the product of the fifth weight and the sixth weight; calculate the ratio of the second difference to the seventh weight to obtain a target weight gain threshold.
在本發明的一些實施例中,每個子圖包括多個節點,確定模組1110包括: In some embodiments of the present invention, each subgraph includes multiple nodes, and the determination module 1110 includes:
確定單元,用於在獲取到第一對象的增量資料的情況下,確定第一對象為新增資料節點;確定單元,還用於基於增量資料,確定與第一對象存在預設行為關係的至少一個第二對象;建立單元,用於在第二對象對應節點與新增資料節點之間建立關聯邊,並基於交易資料定義每條關聯邊的權重值;確定單元,還用於確定至少一個子圖包括至少一個第二對象所在的子圖。 The determination unit is used to determine that the first object is a newly added data node when the incremental data of the first object is obtained; the determination unit is also used to determine at least one second object that has a preset behavior relationship with the first object based on the incremental data; the establishment unit is used to establish an association edge between the node corresponding to the second object and the newly added data node, and define the weight value of each association edge based on the transaction data; the determination unit is also used to determine that at least one subgraph includes the subgraph where at least one second object is located.
在本發明的一些實施例中,劃分模組1130還用於:在新增資料節點與單一子圖存在關聯邊的情況下,將新增資料節點劃分至單一子圖。 In some embodiments of the present invention, the partitioning module 1130 is also used to: when there is an associated edge between the newly added data node and a single subgraph, the newly added data node is partitioned into a single subgraph.
本發明第三方面還提供了一種電子設備。圖12為本發明第三方面提供的電子設備的一實施例的結構示意圖。如圖12所示,電子設備1200包括記憶體1201、處理器1202及存儲在記憶體1201上並可在處理器1202上運行的電腦程式。 The third aspect of the present invention also provides an electronic device. FIG12 is a schematic structural diagram of an embodiment of the electronic device provided in the third aspect of the present invention. As shown in FIG12, the electronic device 1200 includes a memory 1201, a processor 1202, and a computer program stored in the memory 1201 and executable on the processor 1202.
在一個示例中,上述處理器1202可以包括中央處理器(Central Processing Unit,CPU),或者特殊應用積體電路(Application Specific Integrated Circuit,ASIC),或者可以被配置成實施本發明實施例的一個或多個積體電路。 In one example, the processor 1202 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.
記憶體1201可包括唯讀記憶體(Read-Only Memory,ROM),隨機存取記憶體(Random Access Memory,RAM),磁片存儲介質設備,光存儲介質設備,快閃記憶體設備,電氣、光學或其他物理/有形的記憶體存放裝置。因此,通常,記憶體包括一個或多個編碼有包括電腦可執行指令的軟體的有形(非暫態)電腦可讀存儲介質(例如,記憶體設備),並且當該軟體被執行(例如,由一個或多個處理器)時,其可操作來執行參考根據本發明第一方面的實施例中增量圖劃分方法所描述的操作。 The memory 1201 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical/tangible memory storage device. Therefore, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the incremental graph partitioning method in the embodiment according to the first aspect of the present invention.
處理器1202通過讀取記憶體1201中存儲的可執行程式碼來運行與可執行程式碼對應的電腦程式,以用於實現上述第一方面的實施例中的增量圖劃分方法。 The processor 1202 runs the computer program corresponding to the executable program code by reading the executable program code stored in the memory 1201, so as to implement the incremental image segmentation method in the embodiment of the first aspect mentioned above.
在一些示例中,電子設備1200還可包括通信介面1203和匯流排1204。其中,如圖12所示,記憶體1201、處理器1202、通信介面1203通過匯 流排1204連接並完成相互間的通信。 In some examples, the electronic device 1200 may also include a communication interface 1203 and a bus 1204. As shown in FIG. 12 , the memory 1201, the processor 1202, and the communication interface 1203 are connected through the bus 1204 and communicate with each other.
通信介面1203,主要用於實現本發明實施例中各模組、裝置、單元和/或設備之間的通信。也可通過通信介面1203接入輸入裝置和/或輸出設備。 The communication interface 1203 is mainly used to realize the communication between the modules, devices, units and/or equipment in the embodiment of the present invention. The input device and/or output device can also be connected through the communication interface 1203.
匯流排1204包括硬體、軟體或兩者,將電子設備1200的部件彼此耦接在一起。舉例來說而非限制,匯流排1204可包括加速圖形埠(Accelerated Graphics Port,AGP)或其他圖形匯流排、增強工業標準架構(Enhanced Industry Standard Architecture,EISA)匯流排、前側匯流排(Front Side Bus,FSB)、超傳送標準(Hyper Transport,HT)互連、工業標準架構(Industry Standard Architecture,ISA)匯流排、無限頻寬互連、低接腳計數(Low pin count,LPC)匯流排、記憶體匯流排、微通道架構(Micro Channel Architecture,MCA)匯流排、周邊組件互連(Peripheral Component Interconnect,PCI)匯流排、快速周邊組件互連(Peripheral Component Interconnect Express,PCI-Express)匯流排、串列進階技術附接(Serial Advanced Technology Attachment,SATA)匯流排、視訊電子標準協會區域(Video Electronics Standards Association Local Bus,VLB)匯流排或其他合適的匯流排或者兩個或更多個以上這些的組合。在合適的情況下,匯流排1204可包括一個或多個匯流排。儘管本發明實施例描述和示出了特定的匯流排,但本發明考慮任何合適的匯流排或互連。 The bus 1204 includes hardware, software, or both, coupling the components of the electronic device 1200 to each other. By way of example and not limitation, bus 1204 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a Peripheral Component Interconnect Express (PCI) bus, or a 10-bit x86 bus. Express, PCI-Express) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local Bus (VLB) bus or other suitable bus or a combination of two or more of the above. Where appropriate, bus 1204 may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnect.
本發明第四方面提供一種電腦可讀存儲介質,該電腦可讀存儲介質上存儲有程式或指令,該程式或指令被處理器執行時可實現上述第一方面所示的增量圖劃分方法,且能達到相同的技術效果,為避免重複,這裡不再贅述。其中,上述電腦可讀存儲介質可包括非暫態電腦可讀存儲介質,如唯讀記憶體(Read-Only Memory,簡稱ROM)、隨機存取記憶體(Random Access Memory,簡稱RAM)、磁碟或者光碟等,在此並不限定。 The fourth aspect of the present invention provides a computer-readable storage medium, which stores a program or instruction. When the program or instruction is executed by the processor, the incremental image segmentation method shown in the first aspect can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the above-mentioned computer-readable storage medium may include a non-transient computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc., which is not limited here.
本發明第五方面提供一種電腦程式產品,該電腦程式產品被存儲在非易失的存儲介質中,電腦程式產品被至少一個處理器執行時實現如第一方面所示的增量圖劃分方法的步驟,增量圖劃分方法的具體內容可參見上述實施例中的相關說明,在此不再贅述。 The fifth aspect of the present invention provides a computer program product, which is stored in a non-volatile storage medium. When the computer program product is executed by at least one processor, the steps of the incremental image division method shown in the first aspect are implemented. The specific content of the incremental image division method can be found in the relevant description in the above embodiment, and will not be repeated here.
本發明第六方面提供一種晶片,晶片包括處理器和通信介面,通 信介面和處理器耦合,處理器用於運行程式或指令,實現如第一方面所示的增量圖劃分方法的實施例的各個過程,且能達到相同的技術效果,為避免重複,這裡不再贅述。 The sixth aspect of the present invention provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the implementation example of the incremental graph partitioning method shown in the first aspect, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
應理解,本發明實施例提到的晶片還可以稱為系統級晶片、系統晶片、晶片系統或片上系統晶片等。 It should be understood that the chip mentioned in the embodiments of the present invention can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
需要明確的是,本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同或相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。對於裝置實施例、使用者終端實施例、設備實施例、系統實施例和電腦可讀存儲介質實施例而言,相關之處可以參見方法實施例的說明部分。本發明並不局限於上文所描述並在圖中示出的特定步驟和結構。本領域的技術人員可以在領會本發明的精神之後,作出各種改變、修改和添加,或者改變步驟之間的順序。並且,為了簡明起見,這裡省略對已知方法技術的詳細描述。 It should be made clear that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For the device embodiment, user terminal embodiment, equipment embodiment, system embodiment and computer-readable storage medium embodiment, the relevant parts can refer to the description part of the method embodiment. The present invention is not limited to the specific steps and structures described above and shown in the figure. After understanding the spirit of the present invention, technicians in this field can make various changes, modifications and additions, or change the order between the steps. In addition, for the sake of brevity, the detailed description of the known method technology is omitted here.
上面參考根據本發明的實施例的方法、裝置(系統)和電腦程式產品的流程圖和/或框圖描述了本發明的各方面。應當理解,流程圖和/或框圖中的每個方框以及流程圖和/或框圖中各方框的組合可以由電腦程式指令實現。這些電腦程式指令可被提供給通用電腦、專用電腦、或其它可程式設計增量圖劃分裝置的處理器,以產生一種機器,使得經由電腦或其它可程式設計增量圖劃分裝置的處理器執行的這些指令使能對流程圖和/或框圖的一個或多個方框中指定的功能/動作的實現。這種處理器可以是但不限於是通用處理器、專用處理器、特殊應用處理器或者現場可程式設計邏輯電路。還可理解,框圖和/或流程圖中的每個方框以及框圖和/或流程圖中的方框的組合,也可以由執行指定的功能或動作的專用硬體來實現,或可由專用硬體和電腦指令的組合來實現。 Aspects of the present invention are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable incremental diagramming device to produce a machine such that execution of the instructions via the processor of the computer or other programmable incremental diagramming device enables performance of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. Such a processor may be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each box in the block diagram and/or flowchart and the combination of boxes in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
本領域技術人員應能理解,上述實施例均是示例性而非限制性的。在不同實施例中出現的不同技術特徵可以進行組合,以取得有益效果。本領域技術人員在研究圖式、說明書及申請專利範圍的基礎上,應能理解並實現所揭示的實施例的其他變化的實施例。在申請專利範圍中,術語“包括”並不排除其他裝置或步驟;數量詞“一個”不排除多個;術語“第一”、“第二”用於標示名稱 而非用於表示任何特定的順序。請求項中的任何圖式標記均不應被理解為對保護範圍的限制。請求項中出現的多個部分的功能可以由一個單獨的硬體或軟體模組來實現。某些技術特徵出現在不同的從屬請求項中並不意味著不能將這些技術特徵進行組合以取得有益效果。 Those skilled in the art should understand that the above embodiments are exemplary rather than restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on studying the drawings, instructions and the scope of the patent application, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the scope of the patent application, the term "including" does not exclude other devices or steps; the quantifier "one" does not exclude multiple; the terms "first" and "second" are used to identify names rather than to indicate any specific order. Any diagrammatic mark in the claim should not be understood as a limitation on the scope of protection. The functions of multiple parts appearing in the claim can be implemented by a single hardware or software module. The fact that certain technical features appear in different dependent claim items does not mean that these technical features cannot be combined to achieve beneficial results.
110,120,130,140:步驟 110,120,130,140: Steps
Claims (11)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310093204.3A CN115982415A (en) | 2023-02-06 | 2023-02-06 | Incremental graph division method, device, equipment, medium and product |
| CN2023100932043 | 2023-02-06 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202433377A TW202433377A (en) | 2024-08-16 |
| TWI880469B true TWI880469B (en) | 2025-04-11 |
Family
ID=85972423
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW112144819A TWI880469B (en) | 2023-02-06 | 2023-11-20 | Incremental drawing division method, device, equipment, medium and product |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN115982415A (en) |
| TW (1) | TWI880469B (en) |
| WO (1) | WO2024164667A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115982415A (en) * | 2023-02-06 | 2023-04-18 | 中国银联股份有限公司 | Incremental graph division method, device, equipment, medium and product |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101324937A (en) * | 2007-06-15 | 2008-12-17 | 国际商业机器公司 | System and method for roughening picture |
| CN106600430A (en) * | 2016-11-10 | 2017-04-26 | 南京财经大学 | Community network detection method and device |
| CN111475736A (en) * | 2020-03-18 | 2020-07-31 | 华为技术有限公司 | Community mining method, device and server |
| TW202305632A (en) * | 2021-07-20 | 2023-02-01 | 奧義智慧科技股份有限公司 | Security event analysis system and related computer program product for auxiliary intrusion detection |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102722750B (en) * | 2012-06-06 | 2015-10-28 | 清华大学 | The update method of community structure in dynamic network and device |
| US10409828B2 (en) * | 2016-07-29 | 2019-09-10 | International Business Machines Corporation | Methods and apparatus for incremental frequent subgraph mining on dynamic graphs |
| CN108648094A (en) * | 2018-05-08 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of community discovery method, device and equipment |
| CN111538867B (en) * | 2020-04-15 | 2021-06-15 | 深圳计算科学研究院 | Method and system for dividing bounded incremental graph |
| CN114626701A (en) * | 2022-02-28 | 2022-06-14 | 中国建设银行股份有限公司 | Community risk early warning method and device, computer equipment and storage medium |
| CN115982415A (en) * | 2023-02-06 | 2023-04-18 | 中国银联股份有限公司 | Incremental graph division method, device, equipment, medium and product |
-
2023
- 2023-02-06 CN CN202310093204.3A patent/CN115982415A/en active Pending
- 2023-11-20 TW TW112144819A patent/TWI880469B/en active
- 2023-12-04 WO PCT/CN2023/136079 patent/WO2024164667A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101324937A (en) * | 2007-06-15 | 2008-12-17 | 国际商业机器公司 | System and method for roughening picture |
| US20080313251A1 (en) * | 2007-06-15 | 2008-12-18 | Li Ma | System and method for graph coarsening |
| CN106600430A (en) * | 2016-11-10 | 2017-04-26 | 南京财经大学 | Community network detection method and device |
| CN111475736A (en) * | 2020-03-18 | 2020-07-31 | 华为技术有限公司 | Community mining method, device and server |
| TW202305632A (en) * | 2021-07-20 | 2023-02-01 | 奧義智慧科技股份有限公司 | Security event analysis system and related computer program product for auxiliary intrusion detection |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202433377A (en) | 2024-08-16 |
| WO2024164667A1 (en) | 2024-08-15 |
| CN115982415A (en) | 2023-04-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111309822B (en) | User identification method and device | |
| CN111160550A (en) | Training method, information processing apparatus, and non-transitory computer-readable storage medium | |
| TWI880469B (en) | Incremental drawing division method, device, equipment, medium and product | |
| CN114842307A (en) | Mask image model training method, mask image content prediction method and device | |
| CN116150125A (en) | Training method, device, equipment and storage medium for structured data generation model | |
| US20200134434A1 (en) | Arithmetic processing device, learning program, and learning method | |
| CN117827710A (en) | DMA bandwidth determination method, device, equipment and medium based on AI chip | |
| TWI865188B (en) | Object matching method, device, equipment, system, medium and program product | |
| CN117290611B (en) | Instrument recommendation method and device based on multi-level knowledge graph | |
| CN119094366A (en) | Method and device for determining global model parameters, storage medium and electronic device | |
| CN110647805B (en) | Reticulate pattern image recognition method and device and terminal equipment | |
| HK40091878A (en) | Incremental graph division method and device, equipment, medium and product | |
| CN119128703A (en) | Decision tree model construction method and device, customer classification method and device based on decision tree model, electronic device and computer readable storage medium | |
| CN118843147A (en) | Resource allocation method, apparatus, device, storage medium and computer program product | |
| TW202507615A (en) | User group division method, device, equipment and storage medium | |
| CN118574160A (en) | Method, device, equipment and computer storage medium for processing business data | |
| CN117331924A (en) | A data model matching degree verification method, device, equipment and storage medium | |
| CN112861115B (en) | Encryption strategy calling method based on block chain security authentication and cloud authentication server | |
| CN117056663B (en) | A data processing method, device, electronic equipment and storage medium | |
| CN115438735A (en) | Quality inspection method, system, readable medium and electronic device based on federal learning | |
| CN116430207A (en) | PAT parameter determination method and device of chip, electronic equipment and storage medium | |
| CN111353576B (en) | Information generation method, device and equipment based on fuzzy neural network | |
| CN117010526A (en) | A blockchain-based federated learning method, device, equipment and storage medium | |
| CN112069767A (en) | Transmission line wiring length estimation method, device, equipment and medium | |
| CN112785155B (en) | Risk identification method and system for label propagation algorithm of client network characteristics |