CN114783547B - Accurate sewage classification treatment method - Google Patents

Accurate sewage classification treatment method Download PDF

Info

Publication number
CN114783547B
CN114783547B CN202210341001.7A CN202210341001A CN114783547B CN 114783547 B CN114783547 B CN 114783547B CN 202210341001 A CN202210341001 A CN 202210341001A CN 114783547 B CN114783547 B CN 114783547B
Authority
CN
China
Prior art keywords
sewage
treatment
decision
mixed
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210341001.7A
Other languages
Chinese (zh)
Other versions
CN114783547A (en
Inventor
黄顾
凌湘
文运秋
张湘粤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Water Source Environmental Protection Science Technology Co ltd
Original Assignee
Hunan Water Source Environmental Protection Science Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Water Source Environmental Protection Science Technology Co ltd filed Critical Hunan Water Source Environmental Protection Science Technology Co ltd
Priority to CN202210341001.7A priority Critical patent/CN114783547B/en
Publication of CN114783547A publication Critical patent/CN114783547A/en
Application granted granted Critical
Publication of CN114783547B publication Critical patent/CN114783547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/70Machine learning, data mining or chemometrics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/243Classification techniques relating to the number of classes
    • G06F18/24323Tree-organised classifiers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/10Analysis or design of chemical reactions, syntheses or processes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Business, Economics & Management (AREA)
  • Chemical & Material Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Operations Research (AREA)
  • Molecular Biology (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Mathematical Physics (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Analytical Chemistry (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Evolutionary Biology (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)

Abstract

The invention relates to the technical field of sewage classification treatment, and discloses a precise sewage classification treatment method, which comprises the following steps: constructing a sewage internal substance set, and constructing a chemical reaction relation rule set among internal substances according to the sewage internal substance set; constructing a classification decision tree according to the chemical reaction relation rule set; classifying the collected sewage according to the classification decision tree; constructing a sewage decision-making treatment model by using deep reinforcement learning, and training the model by using a Q-learning algorithm; the sewage after mixed treatment is input into a trained sewage decision treatment model, and the sewage decision treatment model outputs a mixed sewage treatment method which comprises a mixed sewage treatment flow, a mixed sewage treatment agent ratio and content. The method realizes the classification decision of the sewage classification treatment method by utilizing the decision tree, and realizes the accurate classification treatment of substances in different pollutants by utilizing the sewage treatment agent configuration method based on reinforcement learning, thereby avoiding secondary pollution.

Description

Accurate sewage classification treatment method
Technical Field
The invention relates to the technical field of sewage classification treatment, in particular to a precise sewage classification treatment method.
Background
The existing sewage classification treatment method does not consider the problem of secondary pollution in sewage treatment caused by chemical reaction among substances in the sewage, for example, metal salts can be formed by the chemical reaction of heavy metals and Polycyclic Aromatic Hydrocarbons (PAHs), secondary pollution is caused, toxic gases can be generated by the reaction of organic phosphorus and chlorine, and inorganic substances can be formed by the reaction of heavy metals (Cu) and organic chlorine. Meanwhile, in the anaerobic digestion process, organic pollutants are decomposed into CH 4、CO2、CO、H2 O and H 2 S by facultative bacteria and anaerobic bacteria under anaerobic conditions, but persistent toxic organic pollutants can be generated under anaerobic conditions, and the patent provides an accurate sewage classification treatment method aiming at the problem.
Disclosure of Invention
The invention provides a precise sewage classification treatment method, which aims to (1) realize the precise classification treatment of substances in different pollutants by utilizing sewage treatment agents, and avoid secondary pollution caused by environmental change of sewage treatment; and (2) realizing the classification decision of the sewage classification treatment method.
The invention provides a precise sewage classification treatment method, which comprises the following steps:
S1: constructing a sewage internal substance set, and constructing a chemical reaction relation rule set among internal substances according to the sewage internal substance set, wherein each rule in the chemical reaction relation rule set indicates that the two types of sewage cannot be mixed, or else, chemical reaction can occur to cause secondary pollution;
s2: constructing a classification decision tree according to the chemical reaction relation rule set, wherein the construction principle of the classification decision tree is that substances with more occurrence times in the chemical reaction relation rule set are closer to the root node of the classification decision tree;
s3: classifying the collected sewage according to the classification decision tree, and mixing the sewage on the same leaf node;
S4: constructing a sewage treatment decision optimization data set, constructing a sewage decision treatment model by using deep reinforcement learning, and training the model by using a Q-learning algorithm to obtain an optimal sewage decision treatment model;
S5: inputting the sewage after mixed treatment into an optimal sewage decision treatment model, and outputting a mixed sewage treatment method by the sewage decision treatment model, wherein the mixed sewage treatment method comprises a mixed sewage treatment flow, and the ratio and the content of a mixed sewage treatment agent.
As a further improvement of the present invention:
and in the step S1, constructing a sewage internal substance set, which comprises the following steps:
the constructed sewage internal substance set is as follows:
{x1,x2,x3,x4,x5,x6,x7}
Wherein:
x 1 represents heavy metal Zn pollutants in sewage;
x 2 represents heavy metal Cu pollutants in sewage;
x 3 represents heavy metal Ag pollutant in sewage;
x 4 represents toxic organic pollutants in sewage, such as polychlorinated benzofuran and polychlorinated biphenyl;
x 5 represents polycyclic aromatic hydrocarbon PAHs in the sewage;
x 6 represents the organic chlorine pesticide OCPs in the sewage;
x 7 represents organic phosphorus in sewage;
In one embodiment of the invention, the toxic organic pollutants are from microparticles produced after incomplete incineration of the organic pollutants, the polycyclic aromatic hydrocarbon PAHs are from combustion pyrolysis, natural pyrolysis and oil pollution, the organochlorine pesticide OCPs are from pesticide and industrial drug pollution, the organic phosphorus is from human body excretion, washing wastewater and food residues, and the heavy metal pollutants are from heavy metal pollutants discharged from automobile exhaust and factories.
In the step S1, a chemical reaction relation rule set between internal substances is constructed according to the internal substance set of the sewage, and the method comprises the following steps:
the constructed rule set of chemical reaction relation is as follows:
{(x1,x5),(x2,x5),(x3,x5),(x4,x7),(x6,x7),(x2,x6)}
Wherein:
Any group (x i,xj) in the chemical reaction relation rule set represents a chemical reaction relation rule, and each rule represents that the two types of sewage cannot be mixed, or else chemical reaction can occur to cause secondary pollution; in one embodiment of the invention, the heavy metal and polycyclic aromatic hydrocarbon PAHs react chemically to form metal salt, secondary pollution is caused, organic phosphorus and chlorine react to generate toxic gas, and heavy metal Cu and organic chlorine react to form inorganic matters.
In the step S2, a classification decision tree is constructed according to a chemical reaction relation rule set, and the method comprises the following steps:
Constructing a classification decision tree according to the chemical reaction relation rule set, wherein the construction principle of the classification decision tree is that substances with more occurrence times in the chemical reaction relation rule set are closer to the root node of the classification decision tree, and the root node of the decision tree is set as
The first level of the decision tree is a root node x 0, the left node of the second level is denoted as x 5+, and the right node is denoted as x 5-, wherein x 5+ indicates that a substance x 5,x5- exists in sewage and no substance x 5 exists in the sewage;
the left and right nodes of the second layer node are { x 6+,x6- }, wherein x 6+ represents that the substance x 6,x6- exists in the sewage and x 6 does not exist in the sewage;
the left node and the right node of the third layer node are respectively { x 7+,x7- }; the left node and the right node of the fourth layer node are { x 2+,x2- }; left and right nodes of the fifth layer node are { x 4+,x4- }; the left node and the right node of the sixth layer of nodes are { x 1+,x1- }; the left node and the right node of the seventh layer node are { x 3+,x3- };
Traversing to a root node by taking a leaf node of a decision tree as an initial point to obtain ancestors of all the leaf nodes, wherein the ancestors of the nodes represent all the nodes branched from the root node to the node, judging whether any two nodes in the ancestors of the leaf nodes meet any chemical reaction relation rule, if so, deleting the ancestors of the leaf nodes to obtain a leaf node ancestor set, and any ith group of leaf node ancestors in the leaf node ancestor set are Where n represents the number of nodes in the ancestor of the ith group of leaf nodes,/>Representing the internal substances of sewage, wherein any two nodes in the ancestor of the leaf node do not meet the rule of chemical reaction relation.
And in the step S3, the collected sewage is classified according to a classification decision tree, and the method comprises the following steps:
Classifying the collected sewage according to the classification decision tree, and mixing the sewage on the same leaf node, namely, the internal substances of the sewage are ancestor of the same leaf node And mixing the sewage containing the substances in the sewage.
And in the step S4, a sewage decision treatment model is constructed by utilizing deep reinforcement learning, and the method comprises the following steps:
Constructing a sewage treatment decision optimization data set data, wherein the format of the sewage treatment decision optimization data set is as follows:
Wherein:
Represents the content of the internal substances x i in the sewage, i.e./> The content of the kth x i in the sewage treatment decision optimization data set is represented, and K represents the type of the content of the x i in the sewage;
Represents that the content of p x i is/> The content of the sewage treatment agent for carrying out the internal substance x i treatment on the sewage, in one specific embodiment of the invention, the content of the sewage treatment agent is determined for the sewage with different internal substance contents according to the expert experience;
initializing a mixed sewage state space S 0=(n0,L0 of a sewage decision treatment model, wherein n 0 represents the types of internal substances in mixed sewage in an initial state, and L 0 represents the content of corresponding internal substances in the mixed sewage in the initial state; initializing the action space of a sewage decision treatment model as
The constructed sewage decision treatment model is as follows:
Wherein:
Represents the content of internal substances x j in the mixed sewage, and comes from L 0 in a state space; /(I) Belongs to the sewage internal substance content in sewage treatment decision optimization data set,/>Belongs to the action space;
w j represents the content of sewage treatment agent If the mixed sewage does not contain internal substances x c, c=1, 2,3,4,5,6,7, w c is set to 0;
The input of the sewage decision-making treatment model is a mixed sewage state space S 0=(n0,L0), the model respectively comprises the types and the corresponding contents of internal substances in mixed sewage, and the model output is the content and the proportion of sewage treatment agents corresponding to different internal substances of sewage.
In the step S4, training the model by using a Q-learning algorithm, including:
Training the constructed sewage decision treatment model by using a Q-learning algorithm to obtain the mixture ratio of sewage treatment agents of different sewage internal substances, wherein the Q-learning algorithm comprises the following steps:
Initializing a Q matrix of 1 row and 7 columns, wherein the initialized Q matrix is a null matrix; randomly generating a group of weight vectors (w m1,wm2,wm3,wm4,wm5,wm6,wm7), wherein the initial value of m is 0, the update iteration times of the Q matrix are represented, and the weight vectors are filled into the Q matrix in sequence, so that matrix values from the 1 st column to the 7 th column in the Q matrix are [ w m1,wm2,wm3,wm4,wm5,wm6,wm7 ];
Traversing a sewage treatment decision optimization data set data, and extracting sewage data U= { data 1,data2,…,datau } which simultaneously contain all internal substances of sewage from the data, wherein U represents the number of the sewage data obtained by traversing, and data u represents the content data of all the internal substances in the sewage;
constructing a weight vector value calculation function:
Wherein:
std (x uj) represents the standard deviation of the sewage internal substance x j in the sewage data U;
let m=m+1, update the value of Q matrix:
wmj′=wmj+α[r(wmj)+βmaxQm]
Wherein the method comprises the steps of
Alpha represents the update rate, which is set to 0.8;
Beta represents a decay coefficient, which is set to 0.6;
maxQ m represents the maximum value in the Q matrix at the mth iteration, resulting in an updated Q matrix:
And taking a matrix value w mj' in the Q matrix as an initial value of a weight vector w j in the sewage decision treatment value to obtain an optimal sewage decision treatment model, setting w c as 0 if no internal substances x c, c=1, 2,3,4,5,6 and 7 exist in the mixed sewage, and carrying out normalization treatment on weights of other sewage internal substances.
In the step S5, the sewage after the mixed treatment is input into an optimal sewage decision treatment model, and the sewage decision treatment model outputs a mixed sewage treatment method, which comprises the following steps:
Inputting the mixed sewage into an optimal sewage decision treatment model, extracting a state space of the mixed sewage, namely the types and the corresponding contents of internal substances in the mixed sewage, taking the state space of the mixed sewage as the input of the sewage decision treatment model, outputting the model into the contents and the proportions of sewage treatment agents corresponding to different internal substances of the sewage, and adding the sewage treatment agents into the sewage according to the following sequence: a sewage treatment agent corresponding to heavy metal Ag, a sewage treatment agent corresponding to heavy metal Zn, a sewage treatment agent corresponding to toxic organic pollutants, a sewage treatment agent corresponding to heavy metal Cu, a sewage treatment agent corresponding to organic phosphorus, a sewage treatment agent corresponding to organochlorine pesticide and a sewage treatment agent corresponding to polycyclic aromatic hydrocarbon.
Compared with the prior art, the invention provides a precise sewage classification treatment method, which has the following advantages:
Firstly, the scheme provides a method for classifying and deciding substances in sewage, by classifying the substances in the sewage, the general types of pollutants in the sewage are toxic organic pollutants, polycyclic aromatic hydrocarbon, organic chlorine pesticides, organic phosphorus and heavy metals, a chemical reaction relation rule set among the substances in the sewage is constructed according to a sewage internal substance set, any group (x i,xj) of the chemical reaction relation rule set represents one chemical reaction relation rule, each rule represents that the two sewage cannot be mixed, or chemical reaction can occur, secondary pollution is caused, and the chemical reaction relation rule set is obtained. Constructing a classification decision tree according to the chemical reaction relation rule set, wherein the construction principle of the classification decision tree is that substances with more occurrence times in the chemical reaction relation rule set are closer to the root node of the classification decision tree, and the root node of the decision tree is set as The first level of the decision tree is a root node x 0, the left node of the second level is denoted as x 5+, and the right node is denoted as x 5-, wherein x 5+ indicates that a substance x 5,x5- exists in sewage and no substance x 5 exists in the sewage; the left and right nodes of the second layer node are { x 6+,x6- }, wherein x 6+ represents that the substance x 6,x6- exists in the sewage and x 6 does not exist in the sewage; the left node and the right node of the third layer node are respectively { x 7+,x7- }; the left node and the right node of the fourth layer node are { x 2+,x2- }; left and right nodes of the fifth layer node are { x 4+,x4- }; the left node and the right node of the sixth layer of nodes are { x 1+,x1- }; the left node and the right node of the seventh layer node are { x 3+,x3- }; traversing to a root node by taking a leaf node of a decision tree as an initial point to obtain ancestors of all the leaf nodes, wherein the ancestors of the nodes represent all the nodes branched from the root node to the node, judging whether any two nodes in the ancestors of the leaf nodes meet any chemical reaction relation rule, if so, deleting the ancestors of the leaf nodes to obtain a leaf node ancestor set, and any ith group of leaf node ancestors in the leaf node ancestor set are/>Where n represents the number of nodes in the ancestor of the ith group of leaf nodes,/>Representing the internal substances of sewage, wherein any two nodes in the ancestor of the leaf node do not meet the rule of chemical reaction relation. Classifying the collected sewage according to the classification decision tree, and mixing the sewage on the same leaf node, namely that the internal substances of the sewage are ancestor of the same leaf node/>Mixing the sewage containing the substances in the sewage, and performing mixed treatment on the sewage according to a rule set of chemical reaction relations and ancestor/>, of the same leaf nodeThe internal substances of the sewage can not generate chemical reaction, so that secondary pollution is caused, and therefore, the part of sewage can be mixed, and pollutants in the mixed sewage can be treated by using the sewage treatment agent, so that more accurate sewage treatment is realized.
Meanwhile, the scheme proposes a sewage decision-making treatment model based on a reinforcement learning method, and a mixed sewage state space S 0=(n0,L0 of the sewage decision-making treatment model is initialized, wherein n 0 represents the types of internal substances in mixed sewage in an initial state, and L 0 represents the content of corresponding internal substances in the mixed sewage in the initial state; initializing the action space of a sewage decision treatment model asThe constructed sewage decision treatment model is as follows:
Wherein: Represents the content of internal substances x j in the mixed sewage, and comes from L 0 in a state space; /(I) Belongs to the sewage internal substance content in sewage treatment decision optimization data set,/>Belongs to the action space; w j represents the content of sewage treatment agentIf the mixed sewage does not contain internal substances x c, c=1, 2,3,4,5,6,7, w c is set to 0; the input of the sewage decision-making treatment model is a mixed sewage state space S 0=(n0,L0), the model respectively comprises the types and the corresponding contents of internal substances in mixed sewage, and the model output is the content and the proportion of sewage treatment agents corresponding to different internal substances of sewage. Training the constructed sewage decision treatment model by utilizing a Q-learning algorithm to obtain the proportions of sewage treatment agents of different sewage internal substances, inputting the sewage after mixed treatment into the trained sewage decision treatment model, extracting the state space of the mixed sewage by the sewage decision treatment model, namely the types and the corresponding contents of the internal substances in the mixed sewage, taking the state space of the mixed sewage as the input of the sewage decision treatment model, and outputting the model as the contents and the proportions of the sewage treatment agents corresponding to the different sewage internal substances, thereby realizing the calculation of the contents and the proportions of the sewage treatment agents in the sewage treatment process, and adding the sewage treatment agents into the sewage according to the following sequence: a sewage treatment agent corresponding to heavy metal Ag, a sewage treatment agent corresponding to heavy metal Zn, a sewage treatment agent corresponding to toxic organic pollutants, a sewage treatment agent corresponding to heavy metal Cu, a sewage treatment agent corresponding to organic phosphorus, a sewage treatment agent corresponding to organochlorine pesticide and a sewage treatment agent corresponding to polycyclic aromatic hydrocarbon.
Drawings
FIG. 1 is a schematic flow chart of a method for classifying and treating sewage accurately according to an embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
S1: and constructing a sewage internal substance set, and constructing a chemical reaction relation rule set among internal substances according to the sewage internal substance set.
And in the step S1, constructing a sewage internal substance set, which comprises the following steps:
the constructed sewage internal substance set is as follows:
{x1,x2,x3,x4,x5,x6,x7}
Wherein:
x 1 represents heavy metal Zn pollutants in sewage;
x 2 represents heavy metal Cu pollutants in sewage;
x 3 represents heavy metal Ag pollutant in sewage;
x 4 represents toxic organic pollutants in sewage, such as polychlorinated benzofuran and polychlorinated biphenyl;
x 5 represents polycyclic aromatic hydrocarbon PAHs in the sewage;
x 6 represents the organic chlorine pesticide OCPs in the sewage;
x 7 represents organic phosphorus in sewage;
In one embodiment of the invention, the toxic organic pollutants are from microparticles produced after incomplete incineration of the organic pollutants, the polycyclic aromatic hydrocarbon PAHs are from combustion pyrolysis, natural pyrolysis and oil pollution, the organochlorine pesticide OCPs are from pesticide and industrial drug pollution, the organic phosphorus is from human body excretion, washing wastewater and food residues, and the heavy metal pollutants are from heavy metal pollutants discharged from automobile exhaust and factories.
In the step S1, a chemical reaction relation rule set between internal substances is constructed according to the internal substance set of the sewage, and the method comprises the following steps:
the constructed rule set of chemical reaction relation is as follows:
{(x1,x5),(x2,x5),(x3,x5),(x4,x7),(x6,x7),(x2,x6)}
Wherein:
Any group (x i,xj) in the chemical reaction relation rule set represents a chemical reaction relation rule, and each rule represents that the two types of sewage cannot be mixed, or else chemical reaction can occur to cause secondary pollution; in one embodiment of the invention, the heavy metal and polycyclic aromatic hydrocarbon PAHs react chemically to form metal salt, secondary pollution is caused, organic phosphorus and chlorine react to generate toxic gas, and heavy metal Cu and organic chlorine react to form inorganic matters.
S2: and constructing a classification decision tree according to the chemical reaction relation rule set.
In the step S2, a classification decision tree is constructed according to a chemical reaction relation rule set, and the method comprises the following steps:
Constructing a classification decision tree according to the chemical reaction relation rule set, wherein the construction principle of the classification decision tree is that substances with more occurrence times in the chemical reaction relation rule set are closer to the root node of the classification decision tree, and the root node of the decision tree is set as
The first level of the decision tree is a root node x 0, the left node of the second level is denoted as x 5+, and the right node is denoted as x 5-, wherein x 5+ indicates that a substance x 5,x5- exists in sewage and no substance x 5 exists in the sewage;
the left and right nodes of the second layer node are { x 6+,x6- }, wherein x 6+ represents that the substance x 6,x6- exists in the sewage and x 6 does not exist in the sewage;
the left node and the right node of the third layer node are respectively { x 7+,x7- }; the left node and the right node of the fourth layer node are { x 2+,x2- }; left and right nodes of the fifth layer node are { x 4+,x4- }; the left node and the right node of the sixth layer of nodes are { x 1+,x1- }; the left node and the right node of the seventh layer node are { x 3+,x3- };
Traversing to a root node by taking a leaf node of a decision tree as an initial point to obtain ancestors of all the leaf nodes, wherein the ancestors of the nodes represent all the nodes branched from the root node to the node, judging whether any two nodes in the ancestors of the leaf nodes meet any chemical reaction relation rule, if so, deleting the ancestors of the leaf nodes to obtain a leaf node ancestor set, and any ith group of leaf node ancestors in the leaf node ancestor set are Where n represents the number of nodes in the ancestor of the ith group of leaf nodes,/>Representing the internal substances of sewage, wherein any two nodes in the ancestor of the leaf node do not meet the rule of chemical reaction relation.
S3: and classifying the collected sewage according to the classification decision tree, and carrying out mixed treatment on the sewage on the same leaf node.
And in the step S3, the collected sewage is classified according to a classification decision tree, and the method comprises the following steps:
Classifying the collected sewage according to the classification decision tree, and mixing the sewage on the same leaf node, namely, the internal substances of the sewage are ancestor of the same leaf node And mixing the sewage containing the substances in the sewage.
S4: constructing a sewage treatment decision optimization data set, constructing a sewage decision treatment model by using deep reinforcement learning, and training the model by using a Q-learning algorithm to obtain an optimal sewage decision treatment model.
And in the step S4, a sewage decision treatment model is constructed by utilizing deep reinforcement learning, and the method comprises the following steps:
Constructing a sewage treatment decision optimization data set data, wherein the format of the sewage treatment decision optimization data set is as follows:
Wherein:
Represents the content of the internal substances x i in the sewage, i.e./> The content of the kth x i in the sewage treatment decision optimization data set is represented, and K represents the type of the content of the x i in the sewage;
Represents that the content of p x i is/> The content of the sewage treatment agent for carrying out the internal substance x i treatment on the sewage, in one specific embodiment of the invention, the content of the sewage treatment agent is determined for the sewage with different internal substance contents according to the expert experience;
initializing a mixed sewage state space S 0=(n0,L0 of a sewage decision treatment model, wherein n 0 represents the types of internal substances in mixed sewage in an initial state, and L 0 represents the content of corresponding internal substances in the mixed sewage in the initial state; initializing the action space of a sewage decision treatment model as
The constructed sewage decision treatment model is as follows:
Wherein:
Represents the content of internal substances x j in the mixed sewage, and comes from L 0 in a state space; /(I) Belongs to the sewage internal substance content in sewage treatment decision optimization data set,/>Belongs to the action space;
w j represents the content of sewage treatment agent If the mixed sewage does not contain internal substances x c, c=1, 2,3,4,5,6,7, w c is set to 0;
The input of the sewage decision-making treatment model is a mixed sewage state space S 0=(n0,L0), the model respectively comprises the types and the corresponding contents of internal substances in mixed sewage, and the model output is the content and the proportion of sewage treatment agents corresponding to different internal substances of sewage.
In the step S4, training the model by using a Q-learning algorithm, including:
Training the constructed sewage decision treatment model by using a Q-learning algorithm to obtain the mixture ratio of sewage treatment agents of different sewage internal substances, wherein the Q-learning algorithm comprises the following steps:
Initializing a Q matrix of 1 row and 7 columns, wherein the initialized Q matrix is a null matrix; randomly generating a group of weight vectors (w m1,wm2,wm3,wm4,wm5,wm6,wm7), wherein the initial value of m is 0, the update iteration times of the Q matrix are represented, and the weight vectors are filled into the Q matrix in sequence, so that matrix values from the 1 st column to the 7 th column in the Q matrix are [ w m1,wm2,wm3,wm4,wm5,wm6,wm7 ];
Traversing a sewage treatment decision optimization data set data, and extracting sewage data U= { data 1,data2,…,datau } which simultaneously contain all internal substances of sewage from the data, wherein U represents the number of the sewage data obtained by traversing, and data u represents the content data of all the internal substances in the sewage;
constructing a weight vector value calculation function:
Wherein:
std (x uj) represents the standard deviation of the sewage internal substance x j in the sewage data U;
let m=m+1, update the value of Q matrix:
wmj′=wmj+α[r(wmj)+βmaxQm]
Wherein the method comprises the steps of
Alpha represents the update rate, which is set to 0.8;
Beta represents a decay coefficient, which is set to 0.6;
maxQ m represents the maximum value in the Q matrix at the mth iteration, resulting in an updated Q matrix:
And taking a matrix value w mj' in the Q matrix as an initial value of a weight vector w j in the sewage decision treatment value to obtain an optimal sewage decision treatment model, setting w c as 0 if no internal substances x c, c=1, 2,3,4,5,6 and 7 exist in the mixed sewage, and carrying out normalization treatment on weights of other sewage internal substances.
S5: inputting the sewage after mixed treatment into an optimal sewage decision treatment model, and outputting a mixed sewage treatment method by the sewage decision treatment model, wherein the mixed sewage treatment method comprises a mixed sewage treatment flow, and the ratio and the content of a mixed sewage treatment agent.
In the step S5, the sewage after the mixed treatment is input into an optimal sewage decision treatment model, and the sewage decision treatment model outputs a mixed sewage treatment method, which comprises the following steps:
Inputting the mixed sewage into an optimal sewage decision treatment model, extracting a state space of the mixed sewage, namely the types and the corresponding contents of internal substances in the mixed sewage, taking the state space of the mixed sewage as the input of the sewage decision treatment model, outputting the model into the contents and the proportions of sewage treatment agents corresponding to different internal substances of the sewage, and adding the sewage treatment agents into the sewage according to the following sequence: a sewage treatment agent corresponding to heavy metal Ag, a sewage treatment agent corresponding to heavy metal Zn, a sewage treatment agent corresponding to toxic organic pollutants, a sewage treatment agent corresponding to heavy metal Cu, a sewage treatment agent corresponding to organic phosphorus, a sewage treatment agent corresponding to organochlorine pesticide and a sewage treatment agent corresponding to polycyclic aromatic hydrocarbon.
It should be noted that, the foregoing reference numerals of the embodiments of the present invention are merely for describing the embodiments, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (2)

1. The accurate sewage classification treatment method is characterized by comprising the following steps of:
S1: constructing a sewage internal substance set, and constructing a chemical reaction relation rule set among internal substances according to the sewage internal substance set, wherein each rule in the chemical reaction relation rule set indicates that the two types of sewage cannot be mixed, or else, chemical reaction can occur to cause secondary pollution;
constructing a collection of wastewater internals, comprising: the constructed sewage internal substance set is as follows:
{x1,x2,x3,x4,x5,x6,x7}
Wherein:
x 1 represents heavy metal Zn pollutants in sewage;
x 2 represents heavy metal Cu pollutants in sewage;
x 3 represents heavy metal Ag pollutant in sewage;
x 4 represents toxic organic pollutants in sewage;
x 5 represents polycyclic aromatic hydrocarbon PAHs in the sewage;
x 6 represents the organic chlorine pesticide OCPs in the sewage;
x 7 represents organic phosphorus in sewage;
constructing a rule set of chemical reaction relations among internal substances according to the sewage internal substance collection, wherein the rule set comprises the following steps:
the constructed rule set of chemical reaction relation is as follows:
{(x1,x5),(x2,x5),(x3,x5),(x4,x7),(x6,x7),(x2,x6)}
Wherein:
Any group (x i,xj) in the chemical reaction relation rule set represents a chemical reaction relation rule, and each rule represents that the two types of sewage cannot be mixed, or else chemical reaction can occur to cause secondary pollution;
s2: constructing a classification decision tree according to the chemical reaction relation rule set, wherein the construction principle of the classification decision tree is that substances with more occurrence times in the chemical reaction relation rule set are closer to the root node of the classification decision tree;
Constructing a classification decision tree according to the chemical reaction relation rule set, wherein the construction principle of the classification decision tree is that substances with more occurrence times in the chemical reaction relation rule set are closer to the root node of the classification decision tree, and the root node of the decision tree is set as
The first level of the decision tree is a root node x 0, the left node of the second level is denoted as x 5+, and the right node is denoted as x 5-, wherein x 5+ indicates that a substance x 5,x5- exists in sewage and no substance x 5 exists in the sewage;
the left and right nodes of the second layer node are { x 6+,x6- }, wherein x 6+ represents that the substance x 6,x6- exists in the sewage and x 6 does not exist in the sewage;
the left node and the right node of the third layer node are respectively { x 7+,x7- }; the left node and the right node of the fourth layer node are { x 2+,x2- }; left and right nodes of the fifth layer node are { x 4+,x4- }; the left node and the right node of the sixth layer of nodes are { x 1+,x1- }; the left node and the right node of the seventh layer node are { x 3+,x3- };
Traversing to a root node by taking a leaf node of a decision tree as an initial point to obtain ancestors of all the leaf nodes, wherein the ancestors of the nodes represent all the nodes branched from the root node to the node, judging whether any two nodes in the ancestors of the leaf nodes meet any chemical reaction relation rule, if so, deleting the ancestors of the leaf nodes to obtain a leaf node ancestor set, and any ith group of leaf node ancestors in the leaf node ancestor set are Where n represents the number of nodes in the ancestor of the ith group of leaf nodes,/>Representing the internal substances of sewage, wherein any two nodes in leaf node ancestors do not meet the rule of chemical reaction relation;
s3: classifying the collected sewage according to the classification decision tree, and mixing the sewage on the same leaf node;
and in the step S3, the collected sewage is classified according to a classification decision tree, and the method comprises the following steps:
Classifying the collected sewage according to the classification decision tree, and mixing the sewage on the same leaf node, namely, the internal substances of the sewage are ancestor of the same leaf node Mixing the sewage containing the substances in the sewage;
S4: constructing a sewage treatment decision optimization data set, constructing a sewage decision treatment model by using deep reinforcement learning, and training the model by using a Q-learning algorithm to obtain an optimal sewage decision treatment model;
Constructing a sewage treatment decision optimization data set data, wherein the format of the sewage treatment decision optimization data set is as follows:
Wherein:
Represents the content of the internal substances x i in the sewage, i.e./> The content of the kth x i in the sewage treatment decision optimization data set is represented, and K represents the type of the content of the x i in the sewage;
Represents that the content of p x i is/> The content of sewage treatment agent for carrying out internal substance x i treatment on sewage;
initializing a mixed sewage state space S 0=(n0,L0 of a sewage decision treatment model, wherein n 0 represents the types of internal substances in mixed sewage in an initial state, and L 0 represents the content of corresponding internal substances in the mixed sewage in the initial state; initializing the action space of a sewage decision treatment model as
The constructed sewage decision treatment model is as follows:
Wherein:
Represents the content of internal substances x j in the mixed sewage, and comes from L 0 in a state space; /(I) Belongs to the sewage internal substance content in sewage treatment decision optimization data set,/>Belongs to the action space;
w j represents the content of sewage treatment agent If the mixed sewage does not contain internal substances x c, c=1, 2,3,4,5,6,7, w c is set to 0;
The input of the sewage decision-making treatment model is a mixed sewage state space S 0=(n0,L0), the model respectively comprises the types and the corresponding contents of internal substances in mixed sewage, and the model output is the content and the proportion of sewage treatment agents corresponding to different internal substances of sewage;
S5: inputting the sewage after mixed treatment into an optimal sewage decision treatment model, and outputting a mixed sewage treatment method by the sewage decision treatment model, wherein the mixed sewage treatment method comprises a mixed sewage treatment flow, a mixed sewage treatment agent ratio and content;
Training the constructed sewage decision treatment model by using a Q-learning algorithm to obtain the mixture ratio of sewage treatment agents of different sewage internal substances, wherein the Q-learning algorithm comprises the following steps:
Initializing a Q matrix of 1 row and 7 columns, wherein the initialized Q matrix is a null matrix; randomly generating a group of weight vectors (w m1,wm2,wm3,wm4,wm5,wm6,wm7), wherein the initial value of m is 0, the update iteration times of the Q matrix are represented, and the weight vectors are filled into the Q matrix in sequence, so that matrix values from the 1 st column to the 7 th column in the Q matrix are [ w m1,wm2,wm3,wm4,wm5,wm6,wm7 ];
Traversing a sewage treatment decision optimization data set data, and extracting sewage data U= { data 1,data2,…,datau } which simultaneously contain all internal substances of sewage from the data, wherein U represents the number of the sewage data obtained by traversing, and data u represents the content data of all the internal substances in the sewage;
constructing a weight vector value calculation function:
Wherein:
std (x uj) represents the standard deviation of the sewage internal substance x j in the sewage data U;
let m=m+1, update the value of Q matrix:
wmj =wmj+α[r(wmj)+βmaxQm]
Wherein the method comprises the steps of
Alpha represents the update rate, which is set to 0.8;
Beta represents a decay coefficient, which is set to 0.6;
maxQ m represents the maximum value in the Q matrix at the mth iteration, resulting in an updated Q matrix:
[wm1 ,wm2 ,wm3 ,wm4 ,wm5 ,wm6 ,wm7 ]
And taking a matrix value w mj in the Q matrix as an initial value of a weight vector w j in the sewage decision treatment value to obtain an optimal sewage decision treatment model, setting w c as 0 if no internal substances x c, c=1, 2,3,4,5,6 and 7 exist in the mixed sewage, and carrying out normalization treatment on weights of other sewage internal substances.
2. The precise sewage classification processing method according to claim 1, wherein in the step S5, the sewage after the mixed processing is input into an optimal sewage decision processing model, and the sewage decision processing model outputs the mixed sewage processing method, comprising:
Inputting the mixed sewage into an optimal sewage decision treatment model, extracting a state space of the mixed sewage, namely the types and the corresponding contents of internal substances in the mixed sewage, taking the state space of the mixed sewage as the input of the sewage decision treatment model, outputting the model into the contents and the proportions of sewage treatment agents corresponding to different internal substances of the sewage, and adding the sewage treatment agents into the sewage according to the following sequence: a sewage treatment agent corresponding to heavy metal Ag, a sewage treatment agent corresponding to heavy metal Zn, a sewage treatment agent corresponding to toxic organic pollutants, a sewage treatment agent corresponding to heavy metal Cu, a sewage treatment agent corresponding to organic phosphorus, a sewage treatment agent corresponding to organochlorine pesticide and a sewage treatment agent corresponding to polycyclic aromatic hydrocarbon.
CN202210341001.7A 2022-04-02 2022-04-02 Accurate sewage classification treatment method Active CN114783547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210341001.7A CN114783547B (en) 2022-04-02 2022-04-02 Accurate sewage classification treatment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210341001.7A CN114783547B (en) 2022-04-02 2022-04-02 Accurate sewage classification treatment method

Publications (2)

Publication Number Publication Date
CN114783547A CN114783547A (en) 2022-07-22
CN114783547B true CN114783547B (en) 2024-06-14

Family

ID=82426515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210341001.7A Active CN114783547B (en) 2022-04-02 2022-04-02 Accurate sewage classification treatment method

Country Status (1)

Country Link
CN (1) CN114783547B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106292596A (en) * 2016-08-29 2017-01-04 湖南永清水务有限公司 A kind of sewage treatment plant intelligent management expert diagnostic system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991437A (en) * 2017-03-20 2017-07-28 浙江工商大学 The method and system of sewage quality data are predicted based on random forest
CN110782953B (en) * 2018-11-19 2023-04-18 中国石油化工股份有限公司 Intelligent recognition system for oil extraction chemical agent detection waste liquid and use method thereof
CN109467283B (en) * 2018-12-25 2020-09-08 湖南智水环境工程有限公司 Sewage treatment equipment suitable for multi-household domestic sewage treatment
US20200372400A1 (en) * 2019-05-22 2020-11-26 The Regents Of The University Of California Tree alternating optimization for learning classification trees
CN111309852B (en) * 2020-03-16 2021-09-03 青岛百洋智能科技股份有限公司 Method, system, device and storage medium for generating visual decision tree set model

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106292596A (en) * 2016-08-29 2017-01-04 湖南永清水务有限公司 A kind of sewage treatment plant intelligent management expert diagnostic system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于变精度粗糙集的分类决策树构造方法;庞哈利;高政威;左军伟;卞玉倩;;***工程与电子技术;20081115(第11期);全文 *

Also Published As

Publication number Publication date
CN114783547A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN116186566B (en) Diffusion prediction method and system based on deep learning
Shieh et al. Optimal in situ bioremediation design by hybrid genetic algorithm-simulated annealing
Dudhagara et al. Bioengineering for polycyclic aromatic hydrocarbon degradation by Mycobacterium litorale: Statistical and artificial neural network (ANN) approach
CN115758125A (en) Industrial sewage treatment soft measurement method based on feature structure optimization and deep learning
Gen et al. Fuzzy nonlinear goal programming using genetic algorithm
CN114783547B (en) Accurate sewage classification treatment method
González-Enrique et al. Spatial and meteorological relevance in NO2 estimations: a case study in the Bay of Algeciras (Spain)
Dragoi et al. Modeling of oily sludge composting process by using artificial neural networks and differential evolution: Prediction of removal of petroleum hydrocarbons and organic carbon
Hu et al. Selection of green remediation alternatives for chemical industrial sites: An integrated life cycle assessment and fuzzy synthetic evaluation approach
Hajela Genetic algorithms in automated structural synthesis
Levitt et al. Computational inference for evidential reasoning in support of judicial proof
Valencia et al. Integration of machine learning classifiers and higher order tensors for screening the optimal recipe of filter media in stormwater treatment
Linninger et al. Synthesis and optimization of waste treatment flowsheets
Zafar et al. Optimization of napthalene biodegradation by a genetic algorithm based response surface methodology
Sarkar et al. Application of multi-gene genetic programming technique for modeling and optimization of phycoremediation of Cr (VI) from wastewater
CN115994570A (en) Groundwater pollution natural attenuation capability prediction method and model training method
Gharekhani et al. Optimization of DRASTIC model by support vector machine and artificial neural network for evaluating of intrinsic vulnerability of Ardabil plain aquifer
Sheehan et al. Meta-analysis of RDX biotransformation rate by bacteria and fungi
Modrogan et al. Forecasting study for nitrate ion removal using reactive barriers
JP2000167585A (en) Sewage treatment process simulator
Li Eng-genes: a new genetic modelling approach for nonlinear dynamic systems
Kontos A Simulation–Optimization Model for Optimal Aquifer Remediation, Using Genetic Algorithms and MODFLOW
CN114363095B (en) System vulnerability analysis method, system and medium based on petri net
Kumar et al. Hybrid algorithm performance with varying population size for multi-objective optimisation of in-situ bioremediation of groundwater
Crow The Remedial Action Assessment System: Automated Decision Support for the CERCLA RI/FS Process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant