A method for mining the coupling relationship between the antibiotic resistance risk and environmental factors of a water source

By constructing an improved clustering latent variable Bayesian network model, the problems of model parameter inflation and high computational cost in traditional Bayesian networks when processing multidimensional nonlinear data are solved. This enables the refined mining of the coupling relationship between environmental factors and antibiotic resistance risk, providing a scientific basis for prevention and control decisions.

CN123180765APending Publication Date: 2026-11-27SICHUAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies are insufficient to deeply analyze the specific pathways of interaction between environmental factors and antibiotic resistance risk. Traditional Bayesian networks suffer from problems such as parameter space expansion and high computational costs when processing multidimensional nonlinear data, which limits their application in the refined mining of the coupling relationship between resistance risk and environmental factors and in practical prevention and control decision-making.

Method used

An improved clustering latent variable Bayesian network model was constructed. Environmental factors were screened through Spearman correlation analysis. The model was trained by combining the information theory's causal relationship co-unique-redundant decomposition method and the EM algorithm. Clustering algorithm and variance reduction sensitivity analysis were used to identify key influencing factors and coupling relationships.

Benefits of technology

The key influencing factors and their mechanisms of action were identified, providing a scientific basis for decision-making in the prevention and control of antibiotic resistance pollution in water sources. This improved the pertinence and effectiveness of prevention and control measures, avoided the subjective bias of traditional experience thresholds, and enhanced the robustness of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180765A_ABST
    Figure CN123180765A_ABST
Patent Text Reader

Abstract

The application discloses a kind of water source ground antibiotic resistance risk and environmental factor coupling relationship mining methods, it is related to water source ground environmental risk assessment technical field.The method steps are as follows: S1, environmental factors related to resistance risk are screened using correlation analysis;S2, the causal relationship between the environmental factors screened out and resistance risk is verified;S3, training set and test set are divided;S4, clustering analysis is carried out on resistance risk, land use type, bacterial index and water quality factor;S5, improved cluster type latent variable Bayesian network model is trained based on inclusive missing value and latent variable expectation maximization algorithm;S6, the variance reduction amount of each environmental factor on resistance risk and standardized sensitivity index are calculated, and key influencing factors are identified;S7, coupling relationship is analyzed and mined, and high-risk situation combination is identified.The application identifies key influencing factors and mechanism of action, and provides a scientific decision-making basis for water source ground antibiotic resistance pollution prevention and control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of environmental risk assessment technology for water sources, and in particular to a method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources. Background Technology

[0002] Under the policy framework for the control of new pollutants, antibiotics have been included in the category of emerging pollutants subject to key supervision. The widespread use and abuse of antibiotics has accelerated the generation and spread of antibiotic-resistant bacteria (ARBs) and resistance genes (ARGs). The ecological and health risks posed by antibiotic resistance have become a prominent challenge in the field of sustainable management of global water sources. As the core medium for the evolution and spread of antibiotic resistance, the relationship between environmental factors and the relative risk of antibiotic resistance (referred to as "resistance risk") in water bodies exhibits complex characteristics such as multivariate interaction, nonlinear response, and superposition of uncertainties.

[0003] Existing methods for assessing resistance risk largely rely on epidemiological models or estimates of the relative abundance of resistance genes. These methods focus on macro-level risk classification and struggle to deeply analyze the specific pathways of interaction between environmental factors and resistance risk. Although machine learning techniques such as random forests and XGBoost have been applied to association mining, these models suffer from black-box characteristics. They not only struggle to identify causal relationships between variables but also lack clear threshold standards for environmental factors, making it difficult to support quantitative analysis of risk-driving mechanisms.

[0004] Bayesian networks possess a natural advantage in causal inference of complex environmental systems, capable of integrating probabilistic dependencies among multiple variables and achieving dynamic updates. However, traditional Bayesian networks suffer from problems such as model parameter space expansion and high computational costs when processing multidimensional nonlinear data. This limitation makes it difficult to balance model accuracy and interpretability in the refined mining of the coupling relationship between resilience risks and environmental factors, thus restricting their practical application in prevention and control decision-making. Summary of the Invention

[0005] The purpose of this invention is to propose a method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources. By constructing an improved clustered latent variable Bayesian network model, the complex coupling relationship between environmental factors and resistance risk is mined, key influencing factors and mechanisms of action are identified, and a scientific basis for decision-making in the prevention and control of antibiotic resistance pollution in water sources is provided.

[0006] To achieve the above objectives, this invention proposes a method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources, the specific steps of which are as follows: Step S1: Obtain environmental factors under land use type, bacterial index and water quality factors, use Spearman correlation analysis to screen environmental factors that are statistically significantly correlated with antibiotic resistance risk, and construct an environmental factor dataset; Step S2: Verify the causal relationship between the screened environmental factors and resistance risks using the information theory-based synergistic-unique-redundant decomposition method; Step S3: Randomly split the environmental factors dataset into a training set and a test set. The training set is used for model training, and the test set is used for performance evaluation. Randomization ensures the unbiasedness of the data distribution, effectively enhances the robustness of the model's generalization ability on different data subsets, and avoids distortion of evaluation results due to data partitioning bias.

[0007] Step S4: Use clustering algorithms to perform cluster analysis on adversarial risk, land use type, bacterial indicators and water quality factors respectively; Step S5: Train the improved clustering latent variable Bayesian network model based on the Expectation-Maximization (EM) algorithm that includes missing values ​​and latent variables, and use the training set for training and optimization. Step S6: Using a variance reduction-based sensitivity analysis, calculate the variance reduction and standardized sensitivity index of each environmental factor against the risk, assess the contribution of each environmental factor to the uncertainty of the risk, and identify key influencing factors. Step S7: Based on the constructed improved clustering latent variable Bayesian network model, analyze the joint impact of multiple environmental factors on adversarial risks and explore coupling relationships to identify high-risk scenario combinations.

[0008] Preferably, in step S1, after Spearman correlation analysis, the land use type is retained as four types: residential, urban, agricultural, and green space; the bacterial indicators include Escherichia coli, Enterococcus, and Pseudomonas aeruginosa; and the water quality factors include resistivity, total dissolved solids, salinity, and dissolved oxygen.

[0009] Preferably, in step S2, by assessing the causal information of environmental factors on normalized resistance risk and within the framework of partial information decomposition, the overall causal contribution is divided into three categories: redundant, unique, and synergistic. If an environmental factor appears in the top 5 variable combinations in terms of causal contribution, it is included in the construction of the subsequent network model. If a certain land use type appears in a combination of strong causal variables, all land use types are retained.

[0010] Preferably, in step S4, cluster analysis is performed on four types of variables—adversarial risk, land use type, bacterial index, and water quality factor—based on a clustering algorithm to determine the cluster center of each variable; based on the cluster center, a classification threshold is determined for each variable, and the variable is divided into three categories: high, medium, and low. If the cluster center value is zero, the variable is divided into two categories: high and low.

[0011] Preferably, in step S5, an improved clustering latent variable Bayesian network model is constructed, and the specific steps are as follows: Step S51: Randomly generate initial parameters: Randomize the conditional probability distribution of all nodes in the Bayesian network; Step S52: Start the EM algorithm to learn parameters: Iteratively update the conditional probability by maximizing the log-likelihood function until the log-likelihood function converges to a local optimum; Step S53: After each iteration, record the log-likelihood value and the corresponding local optimization parameters; Step S54: Repeat steps S51-S53 to select the model with the largest log-likelihood value as the optimal model.

[0012] Preferably, in step S52, the log-likelihood function is maximized, as shown in the following formula: ; in, The log-likelihood value is... EM algorithm parameters Observation data under given conditions The probability, Representing observed data and latent variables Z In EM algorithm parameters Joint probability given a condition; The conditional probability update formula is as follows: ; in, Representing node variables The parent node, Representing node variables When the value is And the conditional probability of the parent node taking a certain specific value, Indicates the first Node variables in each sample The state of the parent node, For posterior probability weights, For the first j Latent variables of a sample It is an indicator function. j It is an integer; The convergence formula for the log-likelihood function is as follows: ; in, For the first t The log-likelihood value of +1 order. For the first t The log-likelihood value of the second order. This is the convergence threshold.

[0013] Preferably, in step S6, a sensitivity analysis based on variance reduction is used to calculate the variance reduction of each environmental factor against the risk, as shown in the following formula: ; in, Environmental factors The decrease in variance For resistance risk variance Given environmental factors Resistance risk under certain circumstances variance To address environmental factors Find the expectation of the marginal distribution; The formula for the standardized sensitivity index is as follows: ; in, Environmental factors Explanation of resistance risk The proportion of uncertainty.

[0014] Preferably, in step S7, the specific steps are as follows: Step S71: Analyze the probability of high-risk levels of resistance under different concentration combinations of Escherichia coli, Enterococcus, and Pseudomonas aeruginosa, using the following formula: ; in, A state of resistance to risk, Combinations of bacteria at different concentrations. The risk levels are divided into low, medium, and high. For specific bacterial combinations, The resistance risk level is The prior probability, In order to be at the risk level Observation of scenario combinations The conditional probability, To combine in a bacterial scenario In this case, the risk of resistance is The posterior probability; Step S72: Divide the sampling points into 5 environmental modes according to the proportion of different land use types, and analyze the impact of water quality factors and bacterial indicators on resistance risks under different environmental modes.

[0015] Therefore, this invention proposes a method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources, with the following beneficial effects: (1) The present invention uses a data-driven clustering algorithm to divide the variable threshold, which avoids the subjective bias of traditional experience thresholds; at the same time, with the help of the characteristics of the EM algorithm, it can still achieve effective learning in scenarios with missing data or incomplete response mechanisms, which greatly improves the robustness of the model. (2) This invention not only explores the relationship between similar environmental factors and resistance risk, but also systematically analyzes the combined effects of different types of factors (such as land use, water quality, and bacterial indicators), and clarifies the key role patterns such as low bacterial concentration can significantly reduce the probability of high resistance risk and high proportion of residential / urban land use will increase resistance risk. (3) This invention provides a refined scientific basis for the targeted prevention and control of antibiotic resistance pollution in water sources through multi-dimensional coupling relationship analysis, which helps managers to formulate differentiated risk management strategies for different environmental patterns and improves the pertinence and effectiveness of prevention and control measures.

[0016] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0017] Figure 1 This is a flowchart of a method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources, according to the present invention. Detailed Implementation

[0018] To make the technical solutions, advantages, and objectives of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below. The described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the protection scope of the present invention.

[0019] Unless otherwise defined, the technical or scientific terms used in this invention shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains.

[0020] Example like Figure 1 The diagram shows a flowchart of a method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to the present invention. The specific steps are as follows: Step S1: Obtain environmental factors under land use type, bacterial index and water quality factors, use Spearman correlation analysis to screen environmental factors that are statistically significantly correlated with antibiotic resistance risk, and construct an environmental factor dataset; After Spearman correlation analysis, the statistics for the four land use types represent the proportion of each type of land use under certain environmental conditions. Only "green space" showed a significant correlation with "resistance risk," with a correlation coefficient of -0.48. However, to construct a complete model series, all land use types were retained, with the other three types being "residential," "urban," and "agricultural." Among bacterial indicators, "Escherichia coli," "Enterococcus," and "Pseudomonas aeruginosa" showed statistically significant correlations with "resistance risk," with correlation coefficients of 0.59, 0.49, and 0.52, respectively, and were therefore included in the model. Among water quality factors, only "resistivity" (-0.48), "total dissolved solids" (0.42), "salinity" (0.42), and "dissolved oxygen" (-0.49) showed significant correlations with "resistance risk."

[0021] Step S2: Verify the causal relationship between the screened environmental factors and resistance risks using the information theory-based synergistic-unique-redundant decomposition method; The synergistic-unique-redundant decomposition method assesses the causal information of environmental factors on normalized resistance risk and, within a partial information decomposition framework, classifies the overall causal contribution into three categories: redundant, unique, and synergistic. If an environmental factor appears in the top 5 variable combinations in terms of causal contribution, it is included in the subsequent construction of the network model. If a certain land use type appears in a combination of strong causal variables, all land use types are retained.

[0022] Step S3: Randomly split the environmental factors dataset into a training set and a test set in a 7:3 ratio. The training set is used for model training, and the test set is used for performance evaluation. Randomization ensures the unbiasedness of the data distribution, effectively enhances the robustness of the model's generalization ability on different data subsets, and avoids distortion of evaluation results due to data partitioning bias.

[0023] Step S4: Cluster analysis is performed on four categories of variables—adversarial risk, land use type, bacterial indicators, and water quality factors—using a clustering algorithm to determine the cluster centers for each variable. Based on the cluster centers, a classification threshold is determined for each variable, dividing it into high, medium, and low categories. If the cluster center value is zero, the variable is divided into high and low categories. In this embodiment, to avoid an excessively large parameter space, the cluster centers for all four categories of variables are set to 2.

[0024] Step S5: Train the improved clustering latent variable Bayesian network model based on the Expectation-Maximization (EM) algorithm that includes missing values ​​and latent variables, and use the training set for training and optimization. The specific steps are as follows: Step S51: Randomly generate initial parameters: Randomize the conditional probability distribution of all nodes in the Bayesian network; Step S52: Start the EM algorithm to learn parameters: Iteratively update the conditional probability by maximizing the log-likelihood function until the log-likelihood function converges to a local optimum; The formula for maximizing the log-likelihood function is as follows: ; in, The log-likelihood value is... EM algorithm parameters Observation data under given conditions The probability, Representing observed data and latent variables Z In EM algorithm parameters Joint probability given a condition; The conditional probability update formula is as follows: ; in, Representing node variables The parent node, Representing node variables When the value is And the conditional probability of the parent node taking a certain specific value, Indicates the first Node variables in each sample The state of the parent node, For posterior probability weights, For the first j Latent variables of a sample It is an indicator function. j It is an integer; The convergence formula for the log-likelihood function is as follows: ; in, For the first t The log-likelihood value of +1 order. For the first t The log-likelihood value of the second order. This is the convergence threshold.

[0025] Step S53: After each iteration, record the log-likelihood value and the corresponding local optimization parameters; Step S54: Repeat steps S51-S53 to select the model with the largest log-likelihood value as the optimal model.

[0026] Step S6: Using a variance reduction-based sensitivity analysis, calculate the variance reduction of each environmental factor against the risk and the standardized sensitivity index, assess the contribution of each environmental factor to the uncertainty of the risk, and identify key influencing factors.

[0027] Among them, a sensitivity analysis based on variance reduction was used to calculate the variance reduction of each environmental factor against the risk, as shown in the following formula: ; in, Environmental factors The decrease in variance For resistance risk variance Given environmental factors Resistance risk under certain circumstances variance To address environmental factors Find the expectation of the marginal distribution; The formula for the standardized sensitivity index is as follows: ; in, Environmental factors Explanation of resistance risk The proportion of uncertainty.

[0028] Step S7: Based on the constructed improved clustering latent variable Bayesian network model, analyze the joint impact of multiple environmental factors on adversarial risks and explore coupling relationships to identify high-risk scenario combinations. The specific steps are as follows: Step S71: Analyze the probability of high-risk levels of resistance under different concentration combinations of Escherichia coli, Enterococcus, and Pseudomonas aeruginosa, using the following formula: ; in, A state of resistance to risk, Combinations of bacteria at different concentrations. The risk levels are divided into low, medium, and high. For specific bacterial combinations, The resistance risk level is The prior probability, In order to be at the risk level Observation of scenario combinations The conditional probability, To combine in a bacterial scenario In this case, the risk of resistance is The posterior probability; Step S72: Divide the sampling points into 5 environmental modes according to the proportion of different land use types, and analyze the impact of water quality factors and bacterial indicators on resistance risks under different environmental modes.

[0029] This embodiment is based on the above method and finds that: A: When the bacterial index concentrations are all at low levels, the probability of the "resistance risk" being at a high level is almost 0. However, when the "resistance risk" is at a high level, at least one type of bacteria will have a concentration in the "medium" to "high" range.

[0030] B: Under the land environment model, the four water quality factors have a relatively weak impact on "resistance risk", while the bacterial indicators have a more significant impact.

[0031] C: In environmental patterns with a high proportion of "residential" or "urban" environments, the probability of "resistance risk" being at a high level increases significantly, and the increase in high risk can be controlled by adjusting the bacterial concentration level.

[0032] D: The impact of the same environmental factor on "resistance risk" varies under different environmental models, indicating that land use type may have a moderating effect on "resistance risk".

[0033] It is worth noting that all contents not described in detail in this invention are existing technologies and are well known to those skilled in the art.

[0034] Therefore, this invention provides a method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources. It not only systematically reveals the nonlinear correlation and coupling relationship between "resistance risk" and various environmental factors, but also breaks through the limitations of traditional black box models. The action path and dependency relationship are clearly traceable, giving the results interpretability and providing a solid theoretical basis for mining complex coupling relationships.

[0035] 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 preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the technical solutions of the present invention, and these modifications or equivalent substitutions cannot cause the modified technical solutions to deviate from the spirit and scope of the technical solutions of the present invention.

Claims

1. A method for mining the coupling relationship between antibiotic resistance risk and environmental factors in water sources, characterized in that, The specific steps are as follows: Step S1: Obtain environmental factors under land use type, bacterial index and water quality factors, use Spearman correlation analysis to screen environmental factors that are statistically significantly correlated with antibiotic resistance risk, and construct an environmental factor dataset; Step S2: Verify the causal relationship between the screened environmental factors and resistance risks using the information theory-based synergistic-unique-redundant decomposition method; Step S3: Randomly split the environmental factors dataset into a training set and a test set. The training set is used for model training, and the test set is used for performance evaluation. Step S4: Use clustering algorithms to perform cluster analysis on adversarial risk, land use type, bacterial indicators and water quality factors respectively; Step S5: Train the improved clustering latent variable Bayesian network model based on the Expectation-Maximization (EM) algorithm that includes missing values ​​and latent variables, and use the training set for training and optimization. Step S6: Using a variance reduction-based sensitivity analysis, calculate the variance reduction and standardized sensitivity index of each environmental factor against the risk, assess the contribution of each environmental factor to the uncertainty of the risk, and identify key influencing factors. Step S7: Based on the constructed improved clustering latent variable Bayesian network model, analyze the joint impact of multiple environmental factors on adversarial risks and explore coupling relationships to identify high-risk scenario combinations.

2. The method for exploring the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to claim 1, characterized in that, In step S1, after Spearman correlation analysis, the land use types are retained as four types: residential, urban, agricultural, and green space. Bacterial indicators include Escherichia coli, Enterococcus, and Pseudomonas aeruginosa. Water quality factors include resistivity, total dissolved solids, salinity, and dissolved oxygen.

3. The method for exploring the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to claim 1, characterized in that, In step S2, by assessing the causal information of environmental factors on normalized resistance risk and within the framework of partial information decomposition, the overall causal contribution is divided into three categories: redundant, unique, and synergistic. If environmental factors appear in the top 5 combinations of variables with the highest causal contribution, they will be included in the construction of the subsequent network model. If a certain type of land use appears in a combination of strong causal variables, all land use types will be retained.

4. The method for exploring the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to claim 1, characterized in that, In step S4, cluster analysis is performed on four types of variables—adversarial risk, land use type, bacterial indicators, and water quality factors—based on a clustering algorithm to determine the cluster centers of each variable. The classification threshold for each variable is determined based on the cluster center, and the variable is divided into three categories: high, medium and low. If the cluster center value is zero, the variable is divided into two categories: high and low.

5. The method for exploring the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to claim 1, characterized in that, In step S5, an improved clustering latent variable Bayesian network model is constructed. The specific steps are as follows: Step S51: Randomly generate initial parameters: Randomize the conditional probability distribution of all nodes in the Bayesian network; Step S52: Start the EM algorithm to learn parameters: Iteratively update the conditional probability by maximizing the log-likelihood function until the log-likelihood function converges to a local optimum; Step S53: After each iteration, record the log-likelihood value and the corresponding local optimization parameters; Step S54: Repeat steps S51-S53 to select the model with the largest log-likelihood value as the optimal model.

6. The method for exploring the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to claim 5, characterized in that, In step S52, the log-likelihood function is maximized, as shown in the following formula: ; in, The log-likelihood value is... EM algorithm parameters Observation data under given conditions The probability, Representing observed data and latent variables Z In EM algorithm parameters Joint probability given a condition; The conditional probability update formula is as follows: ; in, Representing node variables The parent node, Representing node variables When the value is And the conditional probability of the parent node taking a certain specific value, Indicates the first Node variables in each sample The state of the parent node, For posterior probability weights, For the first j Latent variables of a sample It is an indicator function. j It is an integer; The convergence formula for the log-likelihood function is as follows: ; in, For the first t The log-likelihood value of +1 order. For the first t The log-likelihood value of the second order. This is the convergence threshold.

7. The method for exploring the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to claim 1, characterized in that, In step S6, a sensitivity analysis based on variance reduction is used to calculate the variance reduction of each environmental factor against the risk, as shown in the following formula: ; in, Environmental factors The decrease in variance For resistance risk variance Given environmental factors Resistance risk under certain circumstances variance To address environmental factors Calculate the expectation of the marginal distribution; The formula for the standardized sensitivity index is as follows: ; in, Environmental factors Explanation of resistance risk The proportion of uncertainty.

8. The method for exploring the coupling relationship between antibiotic resistance risk and environmental factors in water sources according to claim 1, characterized in that, In step S7, the specific steps are as follows: Step S71: Analyze the probability of high-risk levels of resistance under different concentration combinations of Escherichia coli, Enterococcus, and Pseudomonas aeruginosa, using the following formula: ; in, A state of resistance to risk, Combinations of bacteria at different concentrations. The risk levels are divided into low, medium, and high. For specific bacterial combinations, The resistance risk level is The prior probability, In order to be at the risk level Observation of scenario combinations The conditional probability, To combine in a bacterial scenario In this case, the risk of resistance is The posterior probability; Step S72: Divide the sampling points into 5 environmental modes according to the proportion of different land use types, and analyze the impact of water quality factors and bacterial indicators on resistance risks under different environmental modes.