A double-effect causal estimation method based on high-order network exposure

By constructing a high-order network exposure and combining it with a forest training model, the insufficient estimation of multi-hop paths and capacity bottlenecks in existing technologies is solved, and accurate causal estimation under continuous exposure is achieved, outputting causal explanations for direct effects and spillover effects.

CN123185124APending Publication Date: 2026-11-27ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611523885.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies cannot effectively represent multi-hop paths and capacity bottlenecks when estimating causal effects between nodes, and cannot accurately estimate direct effects and spillover effects under continuous exposure, resulting in inaccurate local estimation and heterogeneity splitting scores.

Method used

By constructing high-order network exposures, two estimation paths are adopted: sequential decoupling and joint heterogeneity weighting. The direct effects and spillover effects of nodes are calculated respectively. Continuous exposures are generated using directed capacity graphs and the maximum flow algorithm, and causal estimation is performed in combination with a forest training model.

Benefits of technology

It achieves accurate estimation of the direct and spillover effects of nodes under continuous exposure, supplements network information with multi-hop connectivity and capacity constraints, provides a clear causal estimation process, and outputs the causal meaning of the direct slope and spillover slope.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185124A_ABST
    Figure CN123185124A_ABST
Patent Text Reader

Abstract

The application discloses a double-effect causal estimation method based on high-order network exposure, and belongs to the field of network data processing and causal effect estimation. The method comprises the following steps: acquiring node and directed capacity network data, combining pairwise maximum flow, shortest directed distance attenuation, emission term, receiver scaling and calculation block normalization to construct continuous network exposure; after aligning the node data with the exposure, selecting sequential decoupling or jointly heterogeneous weighted path: the former estimates the spillover slope first, and estimates the direct slope after deducting the estimated spillover contribution; the latter determines the exposure scale according to the pilot slope prediction, re-residualizes and jointly estimates, and then restores the original unit of the spillover slope; and outputting two types of conditional slopes and model estimation contributions for information intervention effect estimation with network interference. The application can realize the output of heterogeneous direct-spillover double effect from network original data, and is suitable for causal inference scenes with network interference such as social network intervention and supply chain network evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of network data processing and causal effect estimation technology, specifically relating to a dual-effect causal estimation method based on high-order network exposure. Background Technology

[0002] For applications involving inter-node relationships, such as information intervention, node outcomes may be influenced by both their own processing and the processing of related nodes. By aggregating the processing information of related nodes into network exposure, the model can be composed of self-processing, network exposure, node characteristics, and outcomes to calculate direct and spillover effects.

[0003] Existing exposure construction methods involve counting the number or proportion of treated neighbors. However, using only this type of nearest neighbor aggregation cannot adequately represent different multi-hop paths and capacity bottlenecks. Existing network causal tree methods, under the condition that the joint allocation probability of treatment and exposure is known or estimable, calculate the leaf effect using the inverse weight of the corresponding probability and combine multiple effect targets for partitioning; however, their published tree algorithms use discrete exposure and cannot directly provide the continuous capacity exposure construction process required by this invention.

[0004] For continuous exposure, an existing estimation process uses the treatment and exposure as two-dimensional treatment coordinates, first cross-fitting the conditional mean of the results and treatment coordinates with respect to features, and then training a joint causal forest using the residuals. This process can jointly estimate the conditional slopes of both classes, but when directly using the original coordinates, the differences in scale and residual variation between the two coordinates affect local estimation and heterogeneity splitting scores. Furthermore, it lacks a step to first estimate spillover contributions and then estimate direct effects based on these spillover contributions. Therefore, it is necessary to integrate the directed capacity exposure construction with the corresponding estimation steps to form a complete method from network records to the output of both types of effects. Summary of the Invention

[0005] To overcome the shortcomings of existing technologies, this invention aims to provide a dual-effect causal estimation method based on high-order network exposure, addressing two interconnected problems: first, how to convert multi-hop connections, propagation directions, and capacity constraints into node-level network exposures usable by the model; and second, how to estimate the direct effects generated by the node's own processing and the spillover effects transmitted through the network after introducing this exposure. To this end, after a unified exposure construction step, two optional estimation paths are set: sequential decoupling and joint heterogeneity weighting. These paths are used to organize forest training by removing estimated spillover contributions and adjusting joint processing coordinates, respectively.

[0006] To solve the above problems, the present invention can adopt the following specific technical solutions: The aforementioned method for estimating the causal relationship of two effects based on exposure to high-order networks includes the following steps: S1. Obtain and associate node identifier, node feature X, self-processing T, result Y, directed edge and edge capacity data, and divide the network computing blocks into mutually isolated blocks; S2. On the directed capacity graph, source node pairs are selected according to the shortest directed distance and the maximum flow is calculated for each pair. The maximum flow is weighted and summarized by the emission term according to the exponential decay of the distance. Then, it is scaled by the receiver and normalized by the computation block to construct a high-order continuous network exposed G. S3. Align X, T, G, and Y according to the node labels to determine the estimated samples and cross-fitting division; S4. Select either the sequential decoupling estimation path or the joint heterogeneous weighted estimation path to perform model training; In the sequential decoupling estimation path, T is used as an auxiliary regression control variable. First, the residuals obtained from cross-fitting and the exposure residuals are used to train the first causal forest to estimate the overflow slope. The product of the overflow slope estimate and G is subtracted from Y to generate the de-overflow result. Then, the de-overflow result and T are cross-fitted and residualized again to train the second causal forest to estimate the direct slope. In the joint heterogeneity weighted estimation path, a leading causal forest is trained with (T,G) as the joint processing coordinates. The scale s is determined based on the variance and absolute value of the mean of the two types of leading slopes. G is transformed into sG, and the auxiliary model is re-crossfitted with (T,sG) and the final joint causal forest is trained. Its direct slope is retained, and the overflow slope under the scaling coordinates is multiplied by s to restore it to the original exposure unit. S5, Slope of direct output effect, slope of spillover effect, and contribution of model estimation; The two estimation paths share steps S1 to S3, and the selected path independently completes the causal estimation of the two effects. The output includes the slope of the direct effect under its own treatment unit, the slope of the spillover effect under the original network exposure unit, and the product of the corresponding slope estimate with its own treatment or network exposure.

[0007] Furthermore, step S1 specifically includes: Obtain the node identifier, node feature X, self-processing T, result Y, directed edge list, and edge capacity; associate all records through the node identifier, and unify the edge direction as source node j pointing to receiving node i; remove invalid edges, self-loops, and duplicate records, and construct a directed adjacency matrix and a non-negative capacity matrix, assigning a capacity of 0 to the corresponding non-existent edges; Computation blocks are divided according to weakly connected components or preset isolated communities, and path and traffic calculations are performed within the corresponding computation blocks. Network computation nodes and effect estimation nodes are determined separately; nodes that cannot participate in model training but have effective network relationships are retained as relay nodes; nodes that are exposure sources must have effective self-processing records and corresponding gating records when gating is applied, so as to retain relay paths in effective network relationships when screening estimation samples.

[0008] Further, step S2 calculates the higher-order network exposure, including sub-steps S21 to S24: S21. For ordered pairs of nodes within the same computation block, calculate the shortest directed distance from source node j to receiving node i. Include source nodes that satisfy 0 < shortest directed distance ≤ H in the candidate set, where H is the preset maximum distance order. Unreachable nodes are not included in the candidate set. S22. In the complete capacity graph of the computation block, calculate the maximum flow from the candidate source node to the receiving node respectively. H is only used to filter the source node pairs participating in the exposure aggregation and does not restrict the augmenting path inside the maximum flow algorithm. S23. Generate non-negative emission terms based on source processing records and observation design variables. ; will pair maximum flow Multiply by the attenuation factor corresponding to the shortest directed distance respectively and launch items After summing, and then scaling by the receiver and normalizing by the computation block, the network exposure of node i is obtained. ; S24. For scenarios involving isolated nodes, edgeless computation blocks, empty candidate sets, or normalized denominators of zero, expose the network G. i The value is set to 0 to skip the normalized division operation; the network exposure results of each node, the zero exposure flag, and all calculation parameters are stored. Each source node and receiving node forms an ordered node pair, which independently calculates the maximum flow. Then, the maximum flows of each pair are weighted and summed. The joint flow calculation is not performed when multiple sources compete for the shared edge capacity.

[0009] Furthermore, the formula for calculating network exposure is as follows: , In the formula, Let be the shortest directed distance from source node j to receiver node i. The maximum flow for this ordered pair of nodes. Here, H represents the non-negative emission term, H is the preset maximum distance order, and c(i) is the computation block to which node i belongs. The number of nodes within the block. The input is the normalized density, and b > 0 is the normalization constant. To calculate the block normalized denominator, 0 < γ ≤ 1 represents the distance attenuation coefficient. ≥0 represents the receiver scaling function. When there is a preset edge generation probability, Take this probability; for the observation network, The actual directed edge density within the block is taken. Without receiver time gating, Non-negative source processing When information rounds exist, Pick The product of the "source round is earlier than receiver round" indicator.

[0010] Furthermore, step S3 specifically includes: S31. Align the node features X, self-processing T, network exposure G, and result Y according to the node identifier, and assemble the training dataset. S32. Divide the training dataset into K mutually exclusive folds. For each stage of the model, use the remaining folds (excluding the current fold) to fit the conditional mean model for that stage. Calculate the residuals at the current fold, where the residuals are the observed values ​​minus the predicted conditional mean values. Combine the residuals of all folds to train an honest causal forest. S33. Each tree uses X as the splitting feature to divide the samples into a splitting selection subset and an intra-leaf estimation subset; at the target feature location, the weighted least squares with intercept is used to obtain the slope; the scalar stage solves for a single slope, and the joint stage simultaneously solves for two slopes: the direct processing slope and the overflow slope. S34. When splitting nodes, construct the gradient based on the local linear model of the parent node, and construct the heterogeneity score by combining the mean square norm of the gradient corresponding to the processing coordinates of the child node with the sample weights; among the candidate partitions that satisfy the minimum number of node samples and the balance constraint, select the partition with the highest heterogeneity score. S35. All model stages share the same set of partitions, and auxiliary models are fitted separately. The applicable conditions for this method are: exposure can summarize intra-block interference and there is no inter-block interference; given features and observation network, the conditions for exchange are met; given X, T, G, and network, the conditional mean of random error is zero; the estimated target region has joint support of processing and exposure and non-singular residual covariance; the first stage of sequential decoupling estimation path also requires that the exposure residual variance is greater than 0.

[0011] In a preferred embodiment, the sequential decoupling estimated path is denoted as SD-CF, and steps S41A to S43A are executed: S41A: Using Y as the outcome variable, G as the treatment variable, X as the heterogeneity feature, and T as the auxiliary regression control; following the procedure in S3, fit the conditional mean of Y with respect to X and T, and fit the conditional mean of G with respect to X and T; calculate the result residuals and exposure residuals, train the first causal forest, and output the spillover slope estimation function. T participates in auxiliary regression, and the local effects estimation of the first causal forest only uses the exposure residual as the processing coordinate; S42A: Input the features of each training node into the first causal forest to obtain the predicted overflow slope value corresponding to the node. According to the formula Calculate the overflow removal result; subtract the estimated overflow contribution at the training sample level; S43A, will As the outcome variable, T is used as the treatment variable, and X is used as the heterogeneity feature. The S3 split is reused to refit the data. and Generate residuals, train a second causal forest, and obtain a direct slope estimation function. The first causal forest and the second causal forest are preserved separately. , , used for the output of step S5.

[0012] In a preferred embodiment, the joint heterogeneity-weighted estimation path is denoted as JHW-CF, and steps S41B to S44B are executed: S41B: Take the joint processing coordinates Z=(T,G), and according to S3, cross-fit the conditional mean models of Y and Z with respect to X, respectively. Train the leading joint forest with the obtained residuals; predict the direct slope and overflow slope for all training nodes, and calculate the prediction variance of the two coordinates respectively. and absolute value of mean ,in The variance is divided by the number of training nodes in this training cycle; S42B, take stable value ,according to Calculate the initial weights, according to Calculate coordinate weights; Divide by and Take the larger value in the range, square root the resulting ratio, and then trim the result to the nearest whole number. This yields the exposure scaling scale s used uniformly in this training. S43B, Order ,by For the new joint processing coordinates, re-cross-fit Y and For the conditional mean model of X, the new residuals are used to train a joint causal forest to obtain a direct slope estimate. Overflow slope estimation under scaling coordinates ; S44B, Press Restore the overflow slope under the original exposure unit and save. , And the scale s, used for the output of step S5.

[0013] Compared with the prior art, the present invention has the following advantages: 1) By jointly calculating the directed shortest distance and the pairwise maximum flow, the propagation direction, multi-hop reachability and capacity bottleneck are transformed into node-level continuous inputs; combined with the transmission conditions and receiver scaling, the processing transmission conditions and reception differences of different nodes can be expressed in the same exposure calculation, supplementing the network information missing by simply summarizing the number or proportion of nearest neighbors.

[0014] 2) Determine the network computing nodes and estimation nodes respectively, and retain the effective relay relationship when cleaning up the training samples; clarify the exposure value in the boundary case through the processing rules of isolated nodes, empty candidate sets and zero denominator, and save the zero exposure label.

[0015] 3) Two independent and optional estimation paths are provided: the sequential decoupling path first estimates the spillover slope and subtracts the estimated spillover contribution, and then estimates the direct slope, organizing the dual-effect causal estimation into two scalar stages with clear data dependencies; the joint heterogeneity weighted path determines the exposure scale based on the leader prediction, transforms the exposure coordinates before the final auxiliary regression and forest training, so that the scale adjustment acts on the local estimation and heterogeneity split score, and maintains the original exposure unit through the slope recovery step.

[0016] 4) Directed network recording, exposure calculation, residual forest training, and dual-effect output are integrated to form a complete process from raw data to node-level estimation results. Under a given observation network, when the conditions of exposure mapping, conditional commutativity, outcome model, and joint support are met, the direct slope and spillover slope of the output have corresponding causal meanings. Attached Figure Description

[0017] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a schematic diagram of the high-order network exposure structure of the present invention; wherein, source node A: two hops, maximum flow 1; source node B: one hop, maximum flow 1; after calculating the flow for each pair, it is summarized by distance decay, and H only filters source node pairs; Figure 3 This is a flowchart of the sequential decoupling estimation process of the present invention; wherein, honest causal forest is used in both stages, and overflow removal is achieved by substituting training samples into the prediction; Figure 4 This is a flowchart of the joint heterogeneity weighted estimation of the present invention; wherein, X is used as the splitting feature, and the original criteria are followed to jointly estimate the scaled processed residuals. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0019] like Figure 1 As shown, this invention provides a two-effect causal estimation method based on higher-order network exposure, executed sequentially by a computing device: S1, acquiring and organizing network data; S2, calculating higher-order network exposure; S3, determining the estimation samples and cross-fitting folds; S4, selecting either a sequential decoupled estimation path or a joint heterogeneity-weighted estimation path to train the model; S5, outputting the direct effect slope, spillover effect slope, and model estimation contribution. The two paths share S1 to S3, independently completing the two-effect causal estimation. The calculation results of the higher-order network exposure serve as the processing coordinates for subsequent model training. Both estimation paths output the direct slope under their respective processing units and the spillover slope under the original exposure units.

[0020] (a) S1. Acquire and organize network data.

[0021] Obtain the node identifier, node feature X, self-processing T, result Y, directed edge list, and edge capacity. Associate the above records with the node identifier, unifying the edge direction to source node j pointing to receiving node i; remove invalid edges, self-loops, and duplicate records, and construct a directed adjacency matrix and a non-negative capacity matrix. Edges that do not exist have a capacity of zero. Divide the computation into blocks according to weakly connected components or mutually isolated preset communities; subsequent path and flow calculations are performed within their respective blocks.

[0022] Network computation nodes and effect estimation nodes are determined separately. Nodes that cannot participate in model training can still be retained as relays based on valid network relationships; when used as exposure sources, they must also have effective self-processing and related gating records. This allows existing propagation paths to be preserved when selecting estimation samples.

[0023] (ii) S2. Constructing a high-order continuous network exposure based on maximum flow, multi-hop distance attenuation, and normalization processing.

[0024] S21. For ordered pairs of nodes within the same computation block, calculate the shortest directed distance from source node j to receiver node i. , will satisfy The source node is included in the candidate set, where H is the preset maximum distance order; unreachable nodes are not included in the candidate set.

[0025] S22, on the complete capacity graph of the computation block, calculate the maximum flow from each candidate source to the receiving node. Each node pair calculates the flow independently; H is used to filter source node pairs that enter the exposed summary, without restricting the augmenting paths used internally by the maximum flow algorithm.

[0026] S23. Generate nonnegative emission terms based on source processing records and observation design variables. ; will pair maximum flow Multiply by the attenuation factor corresponding to the shortest directed distance After summing the transmitted terms, receiver scaling and computation block normalization are performed to obtain the network exposure. : , In the formula, c(i) represents the computation block to which node i belongs. The number of nodes within the block. The normalized density input is given by b > 0, where b is the normalization constant and 0 < γ ≤ 1 is the distance attenuation coefficient. ≥0 represents the receiver scaling function. For networks with preset edge generation probabilities, This probability can be taken; for the observation network, The actual directed edge density within the block is taken. Without receiver time gating, Source processing When information rounds exist, Pick The product of the "source round is earlier than receiver round" indicator.

[0027] S24, for isolated nodes, edgeless blocks, empty candidate sets, or zero-normalized denominators, let Set the value to zero and skip the division; save the exposed and zero-exposure flags of each node and the parameters used. Figure 2 As shown, the summation is a weighted sum of independent pairwise maximum flows, where each source does not compete for shared capacity in the same multi-source flow calculation.

[0028] (III) S3. Determine the estimated sample and cross-fit fold division.

[0029] Align X, T, G, and Y according to their node identifiers to form the training data. The resulting model is shown below, where... , These represent the direct processing slope and the overflow slope per unit exposure, respectively. As the baseline result function, For random error: , The training data is divided into K mutually exclusive folds. In each model phase, the remaining folds are used to fit the conditional mean model required for that phase, and the residual of "observation minus predicted conditional mean" is calculated in the current fold. The honest causal forest is trained after merging the residuals from each fold. Each tree uses X as the splitting feature to separate the samples used for split selection from those used for estimating intra-leaf effects. At the target feature, a weighted least squares slope with intercept is calculated based on the forest's local weights. A single slope is calculated in the scalar phase, and two slopes are calculated simultaneously in the joint phase. During splitting, the gradient is constructed based on the parent node's local linear model. A heterogeneity score is formed using the square norm of the gradient mean corresponding to the child node's processing coordinates and the sample weights. The candidate split with the highest score is selected from those satisfying the minimum number of node samples and balance constraints.

[0030] Each stage shares a common partition and fits an auxiliary model separately. The model is applicable when the exposure map can encompass intra-block interference and inter-block interference is absent; given features and the observation network, it satisfies the conditional commutativity requirement, and the random error has a zero conditional mean given X, T, G, and the network; the output slope has corresponding causal meaning. The target region must have joint support from processing and exposure, and non-singular residual covariance; the first stage of sequential decoupling must also have positive exposure residual variance.

[0031] One specific training configuration is as follows: K=10; the auxiliary model at each stage uses a random forest regressor with 100 trees and a minimum leaf node sample size of 5; the causal forest uses 100 trees, a minimum leaf node sample size of 5, a minimum split sample size of 10, a subsample ratio of 0.45, a subforest size of 4, and no upper limit is set on tree depth. The subsamples of each tree are approximately equally divided into a split selection subset and an in-leaf estimation subset.

[0032] (iv) S4. Select one of the sequential decoupling estimation path or the joint heterogeneity weighted estimation path to perform model training.

[0033] (1) The sequential decoupling estimated path is denoted as SD-CF, such as Figure 3 As shown, perform steps S41A to S43A: S41A: Using Y as the outcome variable, G as the treatment variable, X as the heterogeneity feature, and T as the auxiliary regression control; following the procedure in S3, fit the conditional mean of Y with respect to X and T, and fit the conditional mean of G with respect to X and T; calculate the result residuals and exposure residuals, train the first causal forest, and output the spillover slope estimation function. T participates in auxiliary regression, and the local effects estimation of the first causal forest only uses the exposure residual as the processing coordinate; S42A: Input the features of each training node into the first causal forest to obtain the predicted overflow slope value corresponding to the node. According to the formula Calculate the overflow removal result; subtract the estimated overflow contribution at the training sample level; S43A, will As the outcome variable, T is used as the treatment variable, and X is used as the heterogeneity feature. The S3 split is reused to refit the data. and Generate residuals, train a second causal forest, and obtain a direct slope estimation function. The first causal forest and the second causal forest are preserved separately. , , used for the output of step S5.

[0034] (2) The joint heterogeneity weighted estimation path is denoted as JHW-CF, such as Figure 4 As shown, perform steps S41B to S44B: S41B. Take the joint processing coordinates Z=(T,G), and according to S3, crossfit the conditional mean models of Y and Z with respect to X respectively, train the leading joint forest, obtain the prediction output of the training nodes, and calculate the prediction variance and absolute value of the mean based on the leading prediction results.

[0035] Let the double slope prediction of the pioneer forest at the training node be denoted as . ,in Represent the slope coordinates; calculate the prediction variance using the following formula. Absolute value of mean : .

[0036] S42B. Calculate the initial weights based on the predicted variance, and then calculate the coordinate weights based on the initial weights and the absolute value of the mean. Then calculate the exposure scaling scale s. The specific calculation is as follows: Let ε = Lower limit of denominator Scale clipping range [ , ]: , , In the formula, Var and Mean calculate the variance and mean on the leading predictions of the training nodes, respectively, with the variance divided by the number of training nodes; clip indicates that the value is restricted to a given upper and lower limit. The coordinate weights are used to distinguish them from the path decay γ in S2. The variance summary includes heterogeneity and leading prediction noise, used to determine the scaling factor for this stage.

[0037] S43B, Order ,by For the new joint processing coordinates, re-cross-fit Y and For the conditional mean model of X, the new residuals are used to train a joint causal forest to obtain a direct slope estimate. Overflow slope estimation under scaling coordinates .

[0038] S44B, Press Restore the overflow slope under the original exposure unit and save. , And the scale s, used for the output of step S5.

[0039] The pilot forest and the final forest use the same heterogeneity splitting criterion, both splitting on X; scaling is applied to the inputs of the final auxiliary regression and forest training, which can change the local estimates and candidate split scores.

[0040] (v) S5, slope of direct output effect, slope of spillover effect and contribution of model estimation.

[0041] Input the target node feature x into the trained model of the selected path, and output... and For nodes that have their own processing and exposure records, further output is provided. and These are respectively considered as the direct contribution and spillover contribution to the model estimation. The results are organized by node identifier and include the zero-exposure marker and the parameters used. The direct slope of the binary T represents the conditional comparison from 0 to 1 within the joint support range; the continuous T adopts the above additive dose linear model.

[0042] The same method can be executed by a system that includes modules for data acquisition, exposure calculation, intra-phase auxiliary model fitting, effect estimation, and result output. Each module sequentially transmits network data, exposure vectors, training data, and estimation results; the effect estimation module executes S4A or S4B according to the selected method. The processor executes the corresponding program in memory to implement the above steps.

[0043] Example 1

[0044] A dual-effect causal estimation method based on high-order network exposure is proposed for dual-effect causal estimation of family information intervention networks, employing the S4A sequential decoupling path.

[0045] S1. Retrieves family identifiers, friend nominations, information intervention allocation, intervention rounds, subsequent insurance purchase results, and family characteristics. T represents a 0 / 1 indication of whether to allocate enhanced information intervention, and Y represents a 0 / 1 indication of whether to purchase insurance; X includes numerical features such as population and education, production and risk, past experiences and trust, intervention rounds, and notification methods. "Family i nominates friend j" is converted into an edge from j to i. Invalid endpoints, self-loops, and duplicate edges are removed. The edge capacity is the reciprocal of the number of times j is nominated after cleaning, and computational blocks are divided according to weakly connected components. Records lacking necessary training fields are not included in the estimation sample, but their effective network relationships are still used for exposure calculation.

[0046] S2, set H=2, γ=0.5, b=0.1. For computational blocks with more than 1 node and a directed edge, take... ,in This represents the number of directed edges within the block; isolated nodes and zero denominators are handled according to S24. The transmit term is set to 1 only when the source node's T is 1 and its intervention round is earlier than the receiver node's; otherwise, it is set to 0. The allocation instructions for informing friends of the insurance coverage ratio and informing them of the list of insured friends are respectively denoted as... , Both are 0 / 1 variables in X, taking... Then calculate according to the exposure formula. .

[0047] When using integer maximum flow to solve the problem, multiply the capacity of each edge by 1000 and take the nearest integer, and take the even number for the midpoint; then divide the calculated maximum flow by 1000 to restore the capacity unit.

[0048] For example, Figure 2 The computational block shown has four nodes and three directed edges, each with a capacity of 1. Source A, via a relay, has a distance of 2 to the receiving node and a maximum flow of 1; source B, directly to the receiving node, has a distance and maximum flow of 1. If both sources transmit terms of 1, the relay does not process the data, and the receiving node... ,but , , The result .

[0049] S3. Align the effective estimated records with G according to family identifiers, using 10 mutually exclusive folds, and use the aforementioned specific training configurations for the auxiliary random forest and causal forest; cross-fit the corresponding conditional means and generate residuals at each model stage.

[0050] S4. Select the S4A sequential decoupling path. In the first stage, (X,T) is used as the auxiliary regression input to fit the conditional means of Y and G respectively. The first forest is trained using the outlier residuals to obtain... Substitute the predictions of the first forest for the training nodes into... Then, using X as the auxiliary regression input, we fit the regression results respectively. Using the conditional mean of T, the second forest is trained with the new residuals to obtain... Both forests exhibit an X-shaped splitting characteristic.

[0051] S5. Output the direct slope, spillover slope and model estimate contribution of each target family multiplied by the corresponding T and G, and save the node identifier and zero exposure marker.

[0052] Example 2

[0053] A dual-effect causal estimation method based on high-order network exposure is proposed, which uses the same family information intervention records as in Example 1 and selects the S4B joint heterogeneity weighted path.

[0054] S1. Obtain and organize the family identifier, feature X, self-processing T, result Y and directed capacity network according to Example 1, using the same node retention and computation block partitioning rules.

[0055] S2. Generate node-level network exposure G according to the distance, capacity, round-gating, receiver scaling and normalization rules of Example 1.

[0056] S3. The same 10-fold partitioning and forest configuration as in Example 1 are adopted; the pilot stage and the final stage share the same partitioning and fit their respective auxiliary models.

[0057] S4. Select the S4B joint heterogeneity weighted path: First, train the leading joint forest with Z=(T,G), and calculate the variance and absolute mean of the two types of slope predictions for the training nodes respectively; obtain the uniform scale s according to the stability quantity, coordinate weights, and pruning rules described in S42B. Let... ,by Re-crossfit the auxiliary model and train the final joint forest to achieve... and Press again Restore the original exposure unit.

[0058] S5. Output the direct slope, spillover slope under the original exposure unit, and model estimation contribution for each target family, and save the scale s and zero exposure label.

[0059] In the two embodiments described above, the first-round receiving node is always exposed to zero under this design due to round-gating, and its overflow slope prediction depends on the extrapolation of the learned function and cannot be used as an independently identified causal effect within this layer; the causal explanation of other nodes is still based on the model and joint support conditions.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for estimating the causal relationship of two effects based on exposure to high-order networks, characterized in that, Includes the following steps: S1. Obtain and associate node identifier, node feature X, self-processing T, result Y, directed edge and edge capacity data, and divide the network computing blocks into mutually isolated blocks; S2. On the directed capacity graph, source node pairs are selected according to the shortest directed distance and the maximum flow is calculated for each pair. The maximum flow is weighted and summarized by the emission term according to the exponential decay of the distance. Then, it is scaled by the receiver and normalized by the computation block to construct a high-order continuous network exposed G. S3. Align X, T, G, and Y according to the node labels to determine the estimated samples and cross-fitting division; S4. Select either the sequential decoupling estimation path or the joint heterogeneous weighted estimation path to perform model training; In the sequential decoupling estimation path, T is used as an auxiliary regression control variable. First, the residuals obtained from cross-fitting and the exposure residuals are used to train the first causal forest to estimate the overflow slope. The product of the overflow slope estimate and G is subtracted from Y to generate the de-overflow result. Then, the de-overflow result and T are cross-fitted and residualized again to train the second causal forest to estimate the direct slope. In the joint heterogeneity weighted estimation path, a leading causal forest is trained with (T,G) as the joint processing coordinates. The scale s is determined based on the variance and absolute value of the mean of the two types of leading slopes. G is transformed into sG, and the auxiliary model is re-crossfitted with (T,sG) and the final joint causal forest is trained. Its direct slope is retained, and the overflow slope under the scaling coordinates is multiplied by s to restore it to the original exposure unit. S5, Slope of direct output effect, slope of spillover effect, and contribution of model estimation; The two estimation paths share steps S1 to S3, and the selected path independently completes the causal estimation of the two effects. The output includes the slope of the direct effect under its own treatment unit, the slope of the spillover effect under the original network exposure unit, and the product of the corresponding slope estimate with its own treatment or network exposure.

2. The dual-effect causal estimation method based on high-order network exposure as described in claim 1, characterized in that, Step S1 specifically includes: S11. Obtain node identifier, node feature X, self-processing T, result Y, directed edge list and edge capacity; associate all records through node identifier, unify the edge direction as source node j to receiving node i; remove invalid edges, self-loops, and duplicate records, construct directed adjacency matrix and non-negative capacity matrix, and assign a capacity of 0 to the corresponding non-existent edge. S12. The computation blocks are divided according to weakly connected components or preset isolated communities. Path and traffic calculations are performed within the corresponding computation blocks. S13. Determine the network computation nodes and effect estimation nodes respectively; nodes that cannot participate in model training but have effective network relationships are retained as relay nodes; nodes that are exposure sources must have effective self-processing records and corresponding gating records when gating is adopted, so as to retain relay paths in effective network relationships when screening estimation samples.

3. The dual-effect causal estimation method based on high-order network exposure according to claim 2, characterized in that, Step S2 calculates the higher-order network exposure, including sub-steps S21 to S24: S21. For ordered pairs of nodes within the same computation block, calculate the shortest directed distance from source node j to receiving node i. Include source nodes that satisfy 0 < shortest directed distance ≤ H in the candidate set, where H is the preset maximum distance order. Unreachable nodes are not included in the candidate set. S22. In the complete capacity graph of the computation block, calculate the maximum flow from the candidate source node to the receiving node respectively. H is only used to filter the source node pairs participating in the exposure aggregation and does not restrict the augmenting path inside the maximum flow algorithm. S23. Generate non-negative emission terms based on source processing records and observation design variables. ; will pair maximum flow Multiply by the attenuation factor corresponding to the shortest directed distance respectively and launch items After summing, and then scaling by the receiver and normalizing by the computation block, the network exposure of node i is obtained. ; S24. For scenarios involving isolated nodes, edgeless computation blocks, empty candidate sets, or normalized denominators of zero, expose the network G. i The value is set to 0 to skip the normalized division operation; the network exposure results of each node, the zero exposure flag, and all calculation parameters are stored. Each source node and receiving node forms an ordered node pair, which independently calculates the maximum flow. Then, the maximum flows of each pair are weighted and summed. The joint flow calculation is not performed when multiple sources compete for the shared edge capacity.

4. The dual-effect causal estimation method based on high-order network exposure according to claim 3, characterized in that, The formula for calculating network exposure is as follows: , In the formula, Let be the shortest directed distance from source node j to receiver node i. The maximum flow for this ordered pair of nodes. Here, H represents the non-negative emission term, H is the preset maximum distance order, and c(i) is the computation block to which node i belongs. The number of nodes within the block. The input is the normalized density, and b > 0 is the normalization constant. To calculate the block normalized denominator, 0 < γ ≤ 1 represents the distance attenuation coefficient. ≥0 represents the receiver scaling function; When there is a preset edge generation probability, Take this probability; for the observation network, Take the actual directed edge density within the block; When there is no receiver time gating, Non-negative source processing When information rounds exist, Pick The product of the "source round is earlier than receiver round" indicator.

5. The dual-effect causal estimation method based on high-order network exposure according to claim 1, characterized in that, Step S3 specifically includes: S31. Align the node features X, self-processing T, network exposure G, and result Y according to the node identifier, and assemble the training dataset. S32. Divide the training dataset into K mutually exclusive folds. For each stage of the model, use the remaining folds (excluding the current fold) to fit the conditional mean model for that stage. Calculate the residuals at the current fold, where the residuals are the observed values ​​minus the predicted conditional mean values. Combine the residuals of all folds to train an honest causal forest. S33. Each tree uses X as the splitting feature to divide the samples into a splitting selection subset and an intra-leaf estimation subset; at the target feature location, the weighted least squares with intercept is used to obtain the slope; the scalar stage solves for a single slope, and the joint stage simultaneously solves for two slopes: the direct processing slope and the overflow slope. S34. When splitting nodes, construct the gradient based on the local linear model of the parent node, and construct the heterogeneity score by combining the mean square norm of the gradient corresponding to the processing coordinates of the child node with the sample weights; among the candidate partitions that satisfy the minimum number of node samples and the balance constraint, select the partition with the highest heterogeneity score. S35. All model stages share the same set of partitions, and auxiliary models are fitted separately. The applicable conditions for this method are: exposure can summarize intra-block interference and there is no inter-block interference; given features and observation network, the conditions for exchange are met; given X, T, G, and network, the conditional mean of random error is zero; the estimated target region has joint support of processing and exposure and non-singular residual covariance; the first stage of sequential decoupling estimation path also requires that the exposure residual variance is greater than 0.

6. The dual-effect causal estimation method based on high-order network exposure according to claim 1, characterized in that, The sequential decoupling estimated path is denoted as SD-CF. Steps S41A to S43A are executed: S41A: Using Y as the outcome variable, G as the treatment variable, X as the heterogeneity characteristic, and T as the auxiliary regression control; following the procedure in S3, fit the conditional mean of Y with respect to X and T, and fit the conditional mean of G with respect to X and T respectively. Calculate the residuals and exposure residuals, train a first causal forest, and output the overflow slope estimation function. ; T participates in auxiliary regression, and the local effects estimation of the first causal forest only uses the exposure residual as the processing coordinate; S42A: Input the features of each training node into the first causal forest to obtain the predicted overflow slope value corresponding to the node. According to the formula Calculate the overflow removal result; Subtract the estimated spillover contribution at the training sample level; S43A, will As the outcome variable, T is used as the treatment variable, and X is used as the heterogeneity feature. The S3 split is reused to refit the data. and Generate residuals, train a second causal forest, and obtain a direct slope estimation function. The first causal forest and the second causal forest are preserved separately. , , used for the output of step S5.

7. The dual-effect causal estimation method based on high-order network exposure according to claim 1, characterized in that, The joint heterogeneity-weighted estimation path is denoted as JHW-CF, and steps S41B to S44B are executed as follows: S41B: Take the joint processing coordinates Z=(T,G), and according to S3, cross-fit the conditional mean models of Y and Z with respect to X, respectively. Train the leading joint forest with the obtained residuals; predict the direct slope and overflow slope for all training nodes, and calculate the prediction variance of the two coordinates respectively. and absolute value of mean ,in The variance is divided by the number of training nodes in this training cycle; S42B, take stable value ,according to Calculate the initial weights, according to Calculate coordinate weights; Divide by and Take the larger value in the range, square root the resulting ratio, and then trim the result to the nearest whole number. This yields the exposure scaling scale s used uniformly in this training. S43B, Order ,by For the new joint processing coordinates, re-cross-fit Y and For the conditional mean model of X, the new residuals are used to train a joint causal forest to obtain a direct slope estimate. Overflow slope estimation under scaling coordinates ; S44B, Press Restore the overflow slope under the original exposure unit and save. , And scale s, used for the output of step S5.