Dynamic community detection method based on local incremental update and split detection
By employing a method of local incremental updates and split detection, the problems of low efficiency and poor accuracy in dynamic community detection are solved. This method achieves efficient and stable community structure tracking and overlapping node identification, adapts to dynamic network changes, and improves the real-time performance and accuracy of detection.
Patent Information
- Application Number
- CN202611398485.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-24
AI Technical Summary
Existing dynamic community detection methods are inefficient under large-scale time-series data, cannot effectively handle community splits, and are inaccurate in identifying overlapping nodes. Furthermore, traditional algorithms cannot adapt to dynamic changes in the network, resulting in high computational costs, poor real-time performance, and distortion of community structure.
A method combining local incremental update and split detection is adopted. By locating the local disturbance regions caused by the addition and deletion of network edges, boundary nodes are selected for community update. Combined with bridge edge detection and split detection mechanisms, adaptive update and stable convergence of the community are achieved. BFS and DFS are used to accurately identify overlapping nodes.
It significantly reduces the computational overhead of the algorithm, improves the real-time performance and accuracy of dynamic detection, ensures the stability and robustness of the community structure, adapts to high-frequency topological change scenarios, and improves the recognition accuracy and response speed of the community structure.
Smart Images

Figure CN123159585A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a dynamic community detection method based on local incremental updates and split detection, belonging to the field of machine learning technology. Background Technology
[0002] With the rapid development of complex systems such as social networks, knowledge graphs, and communication networks, network structures exhibit continuous dynamic evolution, making dynamic community detection a key technology in the field of network analysis. Real-world networks generally undergo changes over time, such as edge additions and deletions, node additions and deletions, and community merging and splitting. Traditional static community detection methods require repeated clustering of the entire graph, resulting in high computational costs, poor real-time performance, and difficulty in adapting to large-scale dynamic scenarios.
[0003] Current dynamic community detection methods still have significant shortcomings. Most methods employ a full update strategy, failing to address topological changes locally, leading to a sharp decline in efficiency as the scale of time-series data increases. Some incremental methods ignore the issue of connectivity disruption within communities and lack effective community split detection mechanisms, easily resulting in distorted community structures and unstable partitioning results. In overlapping community scenarios, existing algorithms typically only independently determine nodes, lacking a propagation mechanism for overlapping states, causing missed or false detections of overlapping nodes and making it difficult to accurately characterize the multi-ownership characteristics of nodes in real networks.
[0004] In the evolution of dynamic networks, community structure changes are localized, requiring updates only to boundary nodes, overlapping nodes, and affected regions. Existing methods fail to fully utilize this characteristic, still iterating over all nodes and communities uniformly, resulting in significant redundant computation. Furthermore, the lack of a unified process for node migration, community convergence, and overlap determination leads to issues such as community oscillation and slow convergence. Therefore, to meet the real-time, stability, and accuracy requirements of dynamic networks, a dynamic community detection method that supports local incremental updates and integrates community split detection and overlapping node propagation is urgently needed to achieve efficient and robust community structure tracking and evolution analysis. Summary of the Invention
[0005] This invention provides a dynamic community detection method based on local incremental updates and split detection, for real-time community structure updates, community split identification, and overlapping community mining tasks during dynamic network evolution. It solves the problems of existing dynamic community detection methods, such as redundant global iterative computation, missed detection of implicit community splits under dynamic topological perturbations, low partitioning accuracy due to asynchronous updates of non-overlapping and overlapping communities, and the inability of traditional algorithms to adapt to dynamic network changes, poor convergence stability, and insufficient real-time detection performance.
[0006] The technical solution of this invention is: a dynamic community detection method based on local incremental update and split detection, the specific steps of which are as follows:
[0007] Step 1: Locate the local disturbance areas caused by the addition or deletion of network edges, and select boundary nodes to construct an initial update queue. Perform split detection on edge deletion behavior within the community to identify key bridge edges; if there is a risk of splitting, expand the queue to the entire community, thereby generating an adaptive update queue;
[0008] Step 2: Perform non-overlapping community convergence using boundary node propagation and community split detection. First, initialize the boundary node queue for affected communities. If an internal key edge is deleted, a split detection is triggered. Boundary nodes are retrieved sequentially, migration benefits are calculated, and the choice is made to retain, migrate, or form a new independent community. The relevant boundary nodes are then enqueued for propagation. Community connectivity is checked in real-time; if connectivity is lost, a split is determined and the community is automatically split into new communities. All new nodes are treated as boundary nodes and iterated again. When the queue is empty, the community reaches Nash equilibrium, completing a stable and efficient non-overlapping structure update.
[0009] Step 3: Based on the stable non-overlapping community structure, update and converge the overlapping node set. Using existing overlapping nodes and the boundary nodes of affected communities as candidate starting points, breadth-first search (BFS) is used to propagate the overlapping state. The overlapping heuristic function of each node is calculated sequentially and compared with the current community overlap threshold. If the condition is met, the node is marked as an overlapping node, and its neighbors are added to the queue for further propagation; otherwise, it is removed from the overlapping set without triggering neighbor propagation. When the queue is empty, the overlapping state of all nodes has been stably updated, resulting in the final accurate overlapping community structure.
[0010] As a preferred embodiment of the present invention, in step 1:
[0011] Step 1.1: Within the local disturbance range, identify all boundary nodes based on the cross-community adjacency topology features of nodes, collect all disturbance nodes with cross-community connections, construct an initial boundary node update queue, and perform local lightweight updates for the topology change region to avoid global iterative calculations.
[0012] Step 1.2: After completing the initial queue construction, identify whether this topology change includes the deletion of internal edges within the community. If internal edge deletion exists, activate a dedicated split detection mechanism to determine whether the deleted internal edge is a critical bridge edge that disrupts community connectivity. If it is a critical bridge edge, include all nodes in the disturbed community into the update queue to achieve full community reorganization and convergence.
[0013] As a preferred embodiment of the present invention, in step 2:
[0014] Step 2.1: Initialize the boundary node queue, traverse all communities affected by edge additions and deletions, scan the neighbor relationships of each node within a community, identify nodes with cross-community neighbors as boundary nodes, and add all valid boundary nodes to the propagation queue. If this update includes edge deletion operations within a community, immediately activate the split detection mechanism. The split detection mechanism's workflow is as follows:
[0015] The split detection mechanism is activated only when an edge within the community is deleted, and the trigger condition is: ,in Let E(C) be the set of edges deleted in this dynamic update, and E(C) be the set of internal edges of community C. Iterate through all deleted edges in this dynamic update, filtering out those belonging to the current internal edge set of community C. If no internal edges are deleted, exit the split detection process directly. If an internal edge is deleted, determine whether the deleted edge is a key bridge connecting two subgroups within the community. and , where K(G ) represents a subgraph The number of connected components, e⊆E, is an edge in the graph. If an edge is determined to be critical, all nodes in that community are marked as affected nodes and added to the boundary node queue, forcibly triggering full community reconvergence and structural repair.
[0016] Step 2.2: Process queue nodes in a loop, taking boundary nodes out of the queue in a first-in, first-out manner, and calculating the migration benefits and heuristic function values of the node in different communities based on community affiliation and adjacency relationships.
[0017] The benefits of three strategies—preserving the original community, building a new independent community, and relocating to an adjacent community—are compared, and the optimal strategy is selected. The specific benefits of the three strategies are as follows:
[0018] Staying strategy: If node x chooses to remain in its current community, the community partitioning result P remains unchanged, i.e., P =P. The change in the heuristic function, ΔS, is calculated as follows:
[0019] (1)
[0020] Where P represents the community partition set before the update; P P represents the new community partitioning set after a node performs an action. =P indicates that the node has not migrated to another community and the overall partitioning structure remains unchanged.
[0021] Separate and become independent single-node communities: Let the original community partition set be... When node x leaves its community Afterwards, a new community division was obtained. The original community meets The heuristic function is defined as follows:
[0022] (2)
[0023] If the community Originally, it only contained node x (a single-node community), then =0. Where For the remaining community after removing node x, the original community By the remaining community Together with node x, they form a single-point community; after node x detaches, it forms an independent single-point community. .
[0024] Transfer to another community: Let node x be a node from another community. Transfer to community The original community was divided into The new division was obtained after the transfer. ,in , The heuristic function is defined as follows:
[0025] (3)
[0026] in For the original community, For the community to be transferred to, node x typically has multiple neighboring target communities that can be transferred to. The transition scheme corresponding to the maximum value is taken as the optimal transition, denoted as . (x, ).
[0027] Node x selects its own movement strategy according to the following formula:
[0028] (4)
[0029] If a node migrates from its community or becomes independent, its community affiliation, node degree, community size, and cut edge weight are updated synchronously. The updated statistics are as follows:
[0030] (5)
[0031] Unvisited boundary nodes between the original community and the target community are added to the queue and continue to spread, ensuring local iterative convergence of the community structure.
[0032] Step 2.3: Split Detection and Convergence Termination. During node migration and edge updates, Depth-First Search (DFS) is used to check the connectivity of nodes within the original community in real time. If the number of nodes visited (len(visited)) is less than the total number of nodes in the community (len(nodes)), the community is determined to have split. The original community is immediately marked as invalid and its statistics are cleared. The disconnected region is split into multiple independent new communities, and all nodes in the new communities are set as boundary nodes and added back to the queue. This process continues iterating until there are no more nodes to be processed in the queue. At this point, the community structure no longer changes, reaching a Nash equilibrium state, and the non-overlapping communities have converged.
[0033] In a preferred embodiment of the present invention, in step 3:
[0034] Step 3.1: Update the overlap threshold and construct a candidate node set. Based on the converged non-overlapping community structure, recalculate the change in the overlap heuristic function according to the current volume, cut edge weights, and node distribution of each community.
[0035] (6)
[0036] Update the overlap threshold of affected communities All overlapping nodes marked in the previous time step are merged with all boundary nodes of the affected communities in this update to form an initial candidate node set, which serves as the starting node for subsequent breadth-first propagation of overlapping states.
[0037] Step 3.2: Use Breadth-First Search (BFS) to traverse the candidate node set, extracting nodes one by one and calculating their overlap heuristic function values. The results were compared with the community-updated overlap threshold. Compare. If If the node is found to be a valid overlapping node, it is added to the overlapping node set, and all its neighboring nodes are added to the queue for further propagation; if If the node is removed from the overlapping set, neighbor propagation will not be triggered.
[0038] Step 3.3: Final convergence determination of overlapping communities. The breadth-first overlap propagation process is continuously iterated, updating the overlap status of each node and dynamically refreshing the overlapping node set. When the propagation queue is completely empty, there are no neighbor nodes to be traversed, and no node is added to or removed from the overlapping set in this iteration, it indicates that the overlap status of all nodes affected by topology changes has been updated, and the distribution of overlapping nodes across the entire network no longer changes. This completes the global convergence of the dynamic network's overlapping communities.
[0039] The present invention also provides a dynamic community detection system based on local incremental update and split detection, the system comprising: a module for executing the dynamic community detection method based on local incremental update and split detection.
[0040] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the dynamic community detection method based on local incremental update and split detection.
[0041] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the dynamic community detection method based on local incremental update and split detection.
[0042] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the dynamic community detection method based on local incremental update and split detection.
[0043] The beneficial effects of this invention are:
[0044] (1) By adopting a local incremental adaptive update mechanism, the computational overhead of the algorithm is greatly reduced and the real-time performance of dynamic detection is improved. Based on the local disturbance region formed by topological changes, this invention only selects boundary nodes to build an update queue, thereby achieving lightweight local updates. At the same time, depending on whether the deleted edge is a critical bridge edge in the community, the local update or full community reorganization update mode can be adaptively selected, reducing invalid iterative calculations from the source, effectively reducing the temporal and spatial complexity of the algorithm, significantly improving the response speed of dynamic network community updates, and adapting to real-time detection scenarios with high-frequency topological changes.
[0045] (2) A two-layer split detection and multi-strategy optimization convergence mechanism is constructed to ensure the accuracy and stability of the non-overlapping community structure. This invention sets up a two-layer split control mechanism with pre-bridge edge risk prediction and real-time connectivity verification to identify hidden split risks that are difficult for traditional algorithms to capture, and to complete community splitting and structural reconstruction in a timely manner. At the same time, three node update strategies are constructed: staying, independent node formation, and cross-community migration. The benefit optimization decision is quantified through heuristic functions, and iterative updates are carried out in conjunction with boundary nodes to make the community structure eventually reach Nash equilibrium, effectively avoiding the defects of local optima and ensuring the accuracy and stability of the community division results after dynamic updates.
[0046] (3) Based on the hierarchical stable convergence logic, the overlapping community identification effect is optimized, and the robustness and versatility of the algorithm are improved. This invention adopts a hierarchical iterative logic of first non-overlapping convergence and then overlapping optimization, and dynamically calculates the adaptive overlap threshold based on the stable basic community structure. A candidate set is constructed by integrating historical overlapping nodes and perturbation boundary nodes. The overlapping status of nodes is checked and updated one by one by relying on BFS directional propagation to complete the addition and removal of overlapping nodes and avoid the identification error caused by structural fluctuations. Attached Figure Description
[0047] Figure 1 Detailed flowchart of the algorithm of this invention Detailed Implementation
[0048] Example 1: As Figure 1 As shown, the dynamic community detection method based on local incremental update and split detection has the following specific steps:
[0049] Step 1: Locate the local disturbance areas caused by the addition or deletion of network edges, and select boundary nodes to construct an initial update queue. Perform split detection on edge deletion behavior within the community to identify key bridge edges; if there is a risk of splitting, expand the queue to the entire community, thereby generating an adaptive update queue.
[0050] Step 1.1: Within the local disturbance range, identify all boundary nodes based on the cross-community adjacency topology features of nodes, collect all disturbance nodes with cross-community connections, construct an initial boundary node update queue, and perform local lightweight updates for the topology change region to avoid global iterative calculations.
[0051] Step 1.2: After completing the initial queue construction, identify whether this topology change includes the deletion of internal edges within the community. If internal edge deletion exists, activate a dedicated split detection mechanism to determine whether the deleted internal edge is a critical bridge edge that disrupts community connectivity. If it is a critical bridge edge, include all nodes in the disturbed community into the update queue to achieve full community reorganization and convergence.
[0052] Step 2: Perform non-overlapping community convergence using boundary node propagation and community split detection. First, initialize the boundary node queue for affected communities. If an internal key edge is deleted, a split detection is triggered. Boundary nodes are retrieved sequentially, migration benefits are calculated, and the choice is made to retain, migrate, or form a new independent community. The relevant boundary nodes are then enqueued for propagation. Community connectivity is checked in real-time; if connectivity is lost, a split is determined and the community is automatically split into new communities. All new nodes are treated as boundary nodes and iterated again. When the queue is empty, the community reaches Nash equilibrium, completing a stable and efficient non-overlapping structure update.
[0053] Step 2.1: Initialize the boundary node queue, traverse all communities affected by edge additions and deletions, scan the neighbor relationships of each node within a community, identify nodes with cross-community neighbors as boundary nodes, and add all valid boundary nodes to the propagation queue. If this update includes edge deletion operations within a community, immediately activate the split detection mechanism. The split detection mechanism's workflow is as follows:
[0054] The split detection mechanism is activated only when an edge within the community is deleted, and the trigger condition is: ,in Let E(C) be the set of edges deleted in this dynamic update, and E(C) be the set of internal edges of community C. Iterate through all deleted edges in this dynamic update, filtering out those belonging to the current internal edge set of community C. If no internal edges are deleted, exit the split detection process directly. If an internal edge is deleted, determine whether the deleted edge is a key bridge connecting two subgroups within the community. and , where K(G ) represents a subgraph The number of connected components, e⊆E, is an edge in the graph. If an edge is determined to be critical, all nodes in that community are marked as affected nodes and added to the boundary node queue, forcibly triggering full community reconvergence and structural repair.
[0055] Step 2.2: Process queue nodes in a loop, taking boundary nodes out of the queue in a first-in, first-out manner, and calculating the migration benefits and heuristic function values of the node in different communities based on community affiliation and adjacency relationships. The benefits of three strategies—preserving the original community, building a new independent community, and relocating to an adjacent community—are compared, and the optimal strategy is selected. The specific benefits of the three strategies are as follows:
[0056] Staying strategy: If node x chooses to remain in its current community, the community partitioning result P remains unchanged, i.e., P =P. The change in the heuristic function, ΔS, is calculated as follows:
[0057] (1)
[0058] Where P represents the community partition set before the update; P P represents the new community partitioning set after a node performs an action. =P indicates that the node has not migrated to another community and the overall partitioning structure remains unchanged.
[0059] Separate and become independent single-node communities: Let the original community partition set be... When node x leaves its community Afterwards, a new community division was obtained. The original community meets The heuristic function is defined as follows:
[0060] (2)
[0061] If the community Originally, it only contained node x (a single-node community), then =0. Where For the remaining community after removing node x, the original community By the remaining community Together with node x, they form a single-point community; after node x detaches, it forms an independent single-point community. .
[0062] Transfer to another community: Let node x be a node from another community. Transfer to community The original community was divided into The new division was obtained after the transfer. ,in , The heuristic function is defined as follows:
[0063] (3)
[0064] in For the original community, For the community to be transferred to, node x typically has multiple neighboring target communities that can be transferred to. The transition scheme corresponding to the maximum value is taken as the optimal transition, denoted as . (x, ).
[0065] Node x selects its own movement strategy according to the following formula:
[0066] (4)
[0067] If a node migrates from its community or becomes independent, its community affiliation, node degree, community size, and cut edge weight are updated synchronously. The updated statistics are as follows:
[0068] (5)
[0069] Unvisited boundary nodes between the original community and the target community are added to the queue and continue to spread, ensuring local iterative convergence of the community structure.
[0070] Step 2.3: Split Detection and Convergence Termination. During node migration and edge updates, Depth-First Search (DFS) is used to check the connectivity of nodes within the original community in real time. If the number of nodes visited (len(visited)) is less than the total number of nodes in the community (len(nodes)), the community is determined to have split. The original community is immediately marked as invalid and its statistics are cleared. The disconnected region is split into multiple independent new communities, and all nodes in the new communities are set as boundary nodes and added back to the queue. This process continues iterating until there are no more nodes to be processed in the queue. At this point, the community structure no longer changes, reaching a Nash equilibrium state, and the non-overlapping communities have converged.
[0071] Step 3: Based on the stable non-overlapping community structure, update and converge the overlapping node set. Using existing overlapping nodes and the boundary nodes of affected communities as candidate starting points, breadth-first search (BFS) is used to propagate the overlapping state. The overlapping heuristic function of each node is calculated sequentially and compared with the current community overlap threshold. If the condition is met, the node is marked as an overlapping node, and its neighbors are added to the queue for further propagation; otherwise, it is removed from the overlapping set without triggering neighbor propagation. When the queue is empty, the overlapping state of all nodes has been stably updated, resulting in the final accurate overlapping community structure.
[0072] Step 3.1: Update the overlap threshold and construct a candidate node set. Based on the converged non-overlapping community structure, recalculate the change in the overlap heuristic function according to the current volume, cut edge weights, and node distribution of each community.
[0073] (6)
[0074] Update the overlap threshold of affected communities All overlapping nodes marked in the previous time step are merged with all boundary nodes of the affected communities in this update to form an initial candidate node set, which serves as the starting node for subsequent breadth-first propagation of overlapping states.
[0075] Step 3.2: Use Breadth-First Search (BFS) to traverse the candidate node set, extracting nodes one by one and calculating their overlap heuristic function values. The results were compared with the community-updated overlap threshold. Compare. If If the node is found to be a valid overlapping node, it is added to the overlapping node set, and all its neighboring nodes are added to the queue for further propagation; if If the node is removed from the overlapping set, neighbor propagation will not be triggered.
[0076] Step 3.3: Final convergence determination of overlapping communities. The breadth-first overlap propagation process is continuously iterated, updating the overlap status of each node and dynamically refreshing the overlapping node set. When the propagation queue is completely empty, there are no neighbor nodes to be traversed, and no node is added to or removed from the overlapping set in this iteration, it indicates that the overlap status of all nodes affected by topology changes has been updated, and the distribution of overlapping nodes across the entire network no longer changes. This completes the global convergence of the dynamic network's overlapping communities.
[0077] The present invention also provides a dynamic community detection system based on local incremental update and split detection, the system comprising: a module for executing the dynamic community detection method based on local incremental update and split detection.
[0078] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the dynamic community detection method based on local incremental update and split detection.
[0079] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the dynamic community detection method based on local incremental update and split detection.
[0080] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the dynamic community detection method based on local incremental update and split detection.
[0081] To verify the effectiveness and superiority of the proposed Dynamic Community Detection Method (DySCD) based on local incremental update and split detection, real dynamic network datasets Email and Facebook, as well as the artificially synthesized benchmark dataset LFR, were selected for comparative testing with existing algorithms Louvain and SLPA. The experiments used Normalized Mutual Information (ONMI) and F1 score as core evaluation metrics. ONMI measures the similarity and accuracy of community structure partitioning, while the F1 score quantifies the precision of node community affiliation.
[0082] Table 1 shows the comparative experimental verification of the effectiveness of dynamic community detection methods based on local incremental updates and split detection.
[0083] Email is a small-scale dynamic network with a simple structure and weak dynamic perturbations. The Louvain algorithm has an ONMI of 0.5291 and an F1 score of 0.1702, but its adaptability to subtle dynamic changes is poor. The SLPA algorithm shows a slight improvement in performance, with an ONMI of 0.5439 and an F1 score of 0.2514, but its recognition accuracy still has significant shortcomings. The DySCD algorithm has outstanding advantages, with ONMI and F1 scores improved to 0.6246 and 0.3036 respectively, and its accuracy is superior to both comparison algorithms. Furthermore, its running time is only 0.343s, significantly faster than Louvain (0.986s) and SLPA (1.126s), effectively solving the problems of blurred boundary recognition, missed detection of overlapping nodes, and low update efficiency in traditional algorithms.
[0084] Facebook's social network is highly dynamic, with complex overlapping communities and frequent node interactions, demanding high adaptability from algorithms. The Louvain algorithm struggles to adapt to dynamic overlapping scenarios; although its ONMI reaches 0.6096, its F1 score is only 0.0124, rendering overlap detection essentially ineffective. The SLPA algorithm shows some improvement, with an ONMI of 0.7109 and an F1 score of 0.1915, but its accuracy in identifying complex overlapping nodes remains insufficient. The DySCD algorithm, relying on local incremental updates and split detection mechanisms, adapts to the dynamic evolution of the network, improving its ONMI and F1 scores to 0.7686 and 0.2862 respectively, with a runtime of only 1.466 seconds, far superior to the comparison algorithms. It can capture the overlapping features and topological changes of complex networks, effectively improving the accuracy and real-time performance of community detection in complex dynamic scenarios.
[0085] The LFR artificial dataset exhibits controllable dynamic patterns and clear community splitting and merging characteristics, effectively validating the algorithm's ability to reconstruct the community structure. The Louvain algorithm, with its global iteration advantage, achieves the highest accuracy, with an ONMI of 0.7913 and an F1 score of 0.6869. The SLPA algorithm suffers significant performance degradation, with an ONMI of only 0.3378 and an F1 score of only 0.2428, failing to effectively identify standard community structures. The DySCD algorithm achieves an ONMI of 0.7607 and an F1 score of 0.6858, achieving accuracy comparable to Louvain and significantly outperforming SLPA; moreover, it boasts the best efficiency with a runtime of only 0.122 seconds. Experiments demonstrate that DySCD can replace global reconstruction with local updates and split detection, ensuring high-accuracy community structure reconstruction while maintaining real-time dynamic updates.
[0086] Based on the experimental results across three datasets, the DySCD algorithm demonstrates superior overall performance compared to the Louvain and SLPA algorithms in both real-world and artificial benchmark networks. The algorithm reduces global iterative redundancy overhead through local incremental updates and leverages the dynamic evolution characteristics of community adaptation through topology split detection to capture changes in community structure and overlapping nodes caused by network disturbances. This overcomes the shortcomings of traditional algorithms, such as weak dynamic adaptability, low overlap identification accuracy, and poor operating efficiency, resulting in superior detection accuracy and robustness, and greater practical engineering value.
[0087] The specific embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.
Claims
1. A dynamic community detection method based on local incremental update and split detection, characterized in that: The specific steps of the method are as follows: Step 1: Locate the local disturbance areas caused by the addition and deletion of network edges, select boundary nodes to build an initial update queue; perform split detection on edge deletion behavior within the community to identify key bridge edges; if there is a risk of splitting, expand the queue to the entire community, thereby generating an adaptive update queue. Step 2: Perform non-overlapping community convergence using boundary node propagation and community split detection. First, initialize the boundary node queue of the affected community. If an internal key edge is deleted, a split detection is triggered. Then, sequentially retrieve the boundary nodes, calculate migration benefits, and choose to retain, migrate, or form a new independent community. Enqueue the relevant boundary nodes for propagation. Check community connectivity in real time; if connectivity is lost, a split is determined and the community is automatically split into new communities. All new nodes are then used as boundary nodes for a new iteration. When the queue is empty, the community reaches Nash equilibrium and completes the non-overlapping structure update; Step 3: Based on the stable non-overlapping community structure, update and converge the overlapping node set; using existing overlapping nodes and boundary nodes of affected communities as candidate starting points, perform breadth-first search to propagate the overlapping state; calculate the overlapping heuristic function of each node in turn, compare it with the current community overlap threshold, mark it as an overlapping node if the condition is met, and add its neighbors to the queue to continue propagation; if the condition is not met, remove it from the overlapping set without triggering neighbor propagation; when the queue is empty, the overlapping state of all nodes is stably updated, and the final accurate overlapping community structure is obtained.
2. The dynamic community detection method based on local incremental update and split detection according to claim 1, characterized in that: The specific steps of Step 1 are as follows: Step 1.1: Within the local disturbance range, identify all boundary nodes based on the cross-community adjacency topology features of nodes, collect all disturbance nodes with cross-community connections, construct an initial boundary node update queue, and perform local lightweight updates for the topology change region to avoid global iterative calculations. Step 1.2: After completing the initial queue construction, identify whether the current topology change includes the deletion of internal edges within the community. If internal edge deletion exists, start a dedicated split detection mechanism to determine whether the deleted internal edge is a critical bridge edge that disrupts the community's connectivity. If it is a critical bridge edge, include all nodes that disturb the community into the update queue to achieve full community reorganization and convergence.
3. The dynamic community detection method based on local incremental update and split detection according to claim 1, characterized in that: The specific steps of Step 2 are as follows: Step 2.1: Initialize the boundary node queue, traverse all communities affected by edge additions and deletions, scan the neighbor affiliation of each node in the community, determine the nodes with cross-community neighbors as boundary nodes, and add all valid boundary nodes to the propagation queue; if this update includes edge deletion operations within the community, immediately start the split detection mechanism. Step 2.2: Process queue nodes in a loop, taking out boundary nodes from the queue in a first-in-first-out manner. Calculate the migration benefits and heuristic function values of the node in different communities based on community affiliation and adjacency. Compare the benefits of retaining the original community, building a new independent community, and migrating to an adjacent community, and select the optimal solution. Nodes select their own movement strategy; If a node migrates to another community or becomes independent, its community affiliation, node degree, community volume, and cut edge weight are updated synchronously. Unvisited boundary nodes between the original and target communities are added to the queue and continue to spread, ensuring the local iterative convergence of the community structure. Step 2.3, Split Detection and Convergence Termination: During node migration and edge update, depth-first search is used to check the connectivity of nodes within the original community in real time. If the number of nodes visited during the search is less than the total number of nodes in the community, the community is determined to have split. The original community is immediately marked as invalid and its statistics are cleared. The disconnected region is split into multiple independent new communities. All nodes in the new community are set as boundary nodes and added back to the queue. The process continues until there are no nodes to be processed in the queue. At this point, the community structure no longer changes and reaches Nash equilibrium. The non-overlapping community convergence is complete.
4. The dynamic community detection method based on local incremental update and split detection according to claim 1, characterized in that: In step 2.1, the split detection mechanism works as follows: The split detection mechanism is activated only when an edge within the community is deleted, and the trigger condition is: ,in This is the set of edges that were deleted in this dynamic update. Let C be the set of internal edges of community C. Iterate through all deleted edges in this dynamic update, filtering out the set of internal edges belonging to the current community C. If no internal edges are deleted, exit the split detection process directly. If internal edges are deleted, determine whether the deleted edge is a key bridge connecting two subgroups within the community. and , where K(G ) represents a subgraph The number of connected components, e⊆E is an edge in the graph; if it is determined to be a critical edge, then all nodes in the community are marked as affected nodes, all are added to the boundary node queue, and the entire community is forced to reconverge and structural repair.
5. The dynamic community detection method based on local incremental update and split detection according to claim 1, characterized in that: In step 2.2, the specific benefits of the three strategies are as follows: Staying strategy: If node x chooses to remain in its current community, the community partitioning result P remains unchanged, i.e., P =P, and the change in the heuristic function ΔS is calculated as follows: (1); Where P represents the community partition set before the update; P P represents the new community partitioning set after a node performs an action. =P indicates that the node has not migrated to another community and the overall partitioning structure remains unchanged; Separate and become independent single-node communities: Let the original community partition set be... When node x leaves its community Afterwards, a new community division was obtained. The original community meets The heuristic function is defined as follows: (2); If the community Originally, it only contained node x, i.e., a single-node community. =0; where For the remaining community after removing node x, the original community By the remaining community Together with node x, they form a single-point community; after node x detaches, it forms an independent single-point community. ; Transfer to another community: Let node x be a node from another community. Transfer to community The original community was divided into The new division was obtained after the transfer. ,in , The heuristic function is defined as follows: (3); in For the original community, For the community to be transferred to, node x has multiple neighboring target communities that can be transferred to. The transition scheme corresponding to the maximum value is taken as the optimal transition, denoted as . (x, ).
6. The dynamic community detection method based on local incremental update and split detection according to claim 1, characterized in that: The specific steps of Step 3 are as follows: Step 3.1: Update the overlap threshold and construct a candidate node set. Based on the non-overlapping community structure that has completed convergence, recalculate the change in the overlap heuristic function according to the current volume, cut edge weight and node distribution of each community. Update the overlap threshold of the affected communities, merge all overlapping nodes marked in the previous time step with all boundary nodes of the affected communities in this update to form an initial candidate node set, which will serve as the starting node for subsequent breadth-first propagation of overlapping states; Step 3.2: Use breadth-first search to traverse the candidate node set, extracting nodes one by one and calculating their overlap heuristic function values. The results were compared with the community-updated overlap threshold. The comparison is performed. If the overlap heuristic function value is greater than or equal to the overlap threshold, the node is determined to be a valid overlap node, added to the overlap node set, and all neighbor nodes are added to the queue to continue propagation. If the overlap heuristic function value is less than the overlap threshold, the node is removed from the overlap set, and neighbor propagation is not triggered. Step 3.3: Final convergence determination of overlapping communities. Continuously iterate and execute the breadth-first overlap propagation process, continuously update the overlapping status of each node, and dynamically refresh the set of overlapping nodes. When the propagation queue is completely cleared, there are no neighboring nodes to be traversed, and no node is added to or removed from the overlapping set in this iteration, it means that the overlapping state of all nodes affected by the topology change has been updated, and the distribution of overlapping nodes in the entire network no longer changes; finally, the global convergence of the overlapping community of the dynamic network is completed.
7. A dynamic community detection system based on local incremental updates and split detection, characterized in that, The system includes a module for executing the dynamic community detection method based on local incremental update and split detection as described in any one of claims 1 to 6.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the dynamic community detection method based on local incremental update and split detection as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the dynamic community detection method based on local incremental update and split detection as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the dynamic community detection method based on local incremental update and split detection as described in any one of claims 1 to 6.
