CN111994970A - LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank - Google Patents

LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank Download PDF

Info

Publication number
CN111994970A
CN111994970A CN202010757643.6A CN202010757643A CN111994970A CN 111994970 A CN111994970 A CN 111994970A CN 202010757643 A CN202010757643 A CN 202010757643A CN 111994970 A CN111994970 A CN 111994970A
Authority
CN
China
Prior art keywords
data
lstm
prediction
sedimentation tank
dosing
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.)
Granted
Application number
CN202010757643.6A
Other languages
Chinese (zh)
Other versions
CN111994970B (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.)
Shanghai Shangshi Longchuang Intelligent Technology Co Ltd
Original Assignee
Shanghai Shangshi Longchuang Intelligent 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 Shanghai Shangshi Longchuang Intelligent Technology Co Ltd filed Critical Shanghai Shangshi Longchuang Intelligent Technology Co Ltd
Priority to CN202010757643.6A priority Critical patent/CN111994970B/en
Publication of CN111994970A publication Critical patent/CN111994970A/en
Application granted granted Critical
Publication of CN111994970B publication Critical patent/CN111994970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F1/00Treatment of water, waste water, or sewage
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F1/00Treatment of water, waste water, or sewage
    • C02F1/008Control or steering systems not provided for elsewhere in subclass C02F
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F1/00Treatment of water, waste water, or sewage
    • C02F1/28Treatment of water, waste water, or sewage by sorption
    • C02F1/285Treatment of water, waste water, or sewage by sorption using synthetic organic sorbents
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F1/00Treatment of water, waste water, or sewage
    • C02F1/52Treatment of water, waste water, or sewage by flocculation or precipitation of suspended impurities
    • C02F1/54Treatment of water, waste water, or sewage by flocculation or precipitation of suspended impurities using organic material
    • C02F1/56Macromolecular compounds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/049Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
    • 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
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F1/00Treatment of water, waste water, or sewage
    • C02F2001/007Processes including a sedimentation step
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F2101/00Nature of the contaminant
    • C02F2101/10Inorganic compounds
    • C02F2101/105Phosphorus compounds
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F2209/00Controlling or monitoring parameters in water treatment
    • C02F2209/02Temperature
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F2209/00Controlling or monitoring parameters in water treatment
    • C02F2209/06Controlling or monitoring parameters in water treatment pH
    • CCHEMISTRY; METALLURGY
    • C02TREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02FTREATMENT OF WATER, WASTE WATER, SEWAGE, OR SLUDGE
    • C02F2209/00Controlling or monitoring parameters in water treatment
    • C02F2209/11Turbidity

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Hydrology & Water Resources (AREA)
  • Environmental & Geological Engineering (AREA)
  • Water Supply & Treatment (AREA)
  • Chemical & Material Sciences (AREA)
  • Organic Chemistry (AREA)
  • Activated Sludge Processes (AREA)

Abstract

The invention relates to an LSTM-based intelligent dosing prediction method for a high-efficiency sewage sedimentation tank, which comprises the following steps of: s1: acquiring prediction related data and preprocessing the data; s2: respectively constructing a feedforward characteristic component and a feedback characteristic component by using the prediction related data; s3: acquiring prediction input data and inputting a trained prediction model; s4: the prediction model outputs a predicted value of the adding amount of the phosphorus removal drug PAC; s5: intelligently adding chemicals into the efficient sewage sedimentation tank according to the predicted value of the adding amount of the phosphorus removal chemical PAC. Compared with the prior art, the method has the advantages of implementing accurate prediction, reducing medicine consumption, ensuring stable and standard effluent and the like.

Description

LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank
Technical Field
The invention relates to the field of sewage treatment, in particular to an LSTM-based dosing prediction method and dosing system for a sewage high-efficiency sedimentation tank.
Background
In the modern sewage treatment industry, the removal of total phosphorus depends on chemical phosphorus removal to a great extent, the variability of sewage inflow easily causes large fluctuation of effluent, increases the phenomena such as medicine consumption and the like, and causes serious waste, most chemical phosphorus removal equipment and devices (mainly high-efficiency sedimentation tanks) in the market at present only use an online instrument for feedback regulation, and the online instrument lags behind the detection principle, can only relieve the fluctuation of inflow load to a certain extent, and the medicine consumption is waste, so that the problem cannot be fundamentally solved.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide an LSTM-based efficient sewage sedimentation tank dosing prediction method and dosing system for ensuring the effluent to stably reach the standard.
The purpose of the invention can be realized by the following technical scheme:
an LSTM-based intelligent dosing prediction method for a high-efficiency sewage sedimentation tank comprises the following steps:
s1: acquiring prediction related data and preprocessing the data;
s2: respectively constructing a feedforward characteristic component and a feedback characteristic component by using the prediction related data;
s3: acquiring prediction input data and inputting a trained prediction model;
s4: the prediction model outputs a predicted value of the adding amount of the phosphorus removal drug PAC;
s5: intelligently adding chemicals into the efficient sewage sedimentation tank according to the predicted value of the adding amount of the phosphorus removal chemical PAC.
Furthermore, the prediction related data comprise the inflow water flow Q and the inflow water suspended solid concentration SSinTotal phosphorus TP in the feed waterinTotal phosphorus TP in effluentoutThe sewage temperature T, the sewage pH value and the phosphorus removal agent PAC concentration.
Furthermore, the prediction input data comprises feed-forward data, feedback data and dosage data, wherein the feed-forward data comprises inflow Q and inflow total phosphorus TPinWater influent suspended solids concentration SSinThe sewage treatment system comprises a sewage temperature T, a sewage pH value and a feedforward characteristic component, wherein feedback data comprise a feedback characteristic component, and dosage data comprise the concentration of a phosphorus removal drug PAC.
Further preferably, the prediction related data further comprise the concentration of suspended solid SS of the effluentoutAnd the concentration of the PAM adsorbent, and the feedback data also comprises the concentration SS of the solid suspended matter in the effluentoutThe dosage data also comprises the concentration of the PAM adsorbent, the concentration of the effluent solid suspended matter and the concentration of the PAM adsorbent have certain influence on the effect of the phosphorus removal agent PAC, and the prediction accuracy can be further improved by considering the two factors.
Further, the feedforward characteristic component is constructed by statistical characteristics, including the first 4toMaximum total phosphorus TP fed over timein_maxFirst 4toMinimum influent total phosphorus TP over timein_minAnd the first 4toAverage total phosphorus TP fed over timein_meanWherein t isoFor a set data acquisition frequency. In view of large fluctuation of sewage, long treatment time and water retention time of corresponding processes, the current water quality and water quantity are considered, the water quality condition of the water tank in the past period theoretically is also comprehensively considered, and the corresponding statistical indexes can reflect the real condition of continuous time sequence variables to increase the accuracy of the model.
Furthermore, the data acquisition frequency toIs set to 0And 5h, the setting of the data acquisition frequency accords with the flow rate and the change speed of the content of the internal chemical substances of the general efficient sewage sedimentation tank, the prediction accuracy can be improved, and meanwhile, redundant and useless data cannot be generated due to too frequent acquisition.
Further, the feedback characteristic component is constructed by PID service logic and comprises a proportional feedback characteristic DATAKCIntegral feedback characteristic DATAKIAnd differential feedback characteristic DATAKD. Further, the expression of the feedback characteristic component is as follows:
DATAKC(t)=E(t)-E(t-1)
DATAKI(t)=E(t)
DATAKD(t)=E(t)-2E(t-1)+E(t-2)
E(t)=TPout(t)-TPset
wherein t is the current prediction time, E (t) is the dosage deviation at the time t, and TPout(t) is the total phosphorus sampling value of the effluent at the time t, TPsetThe set value of the total phosphorus of the effluent is. The feedback characteristic variable can reflect the actual sedimentation process of the efficient sedimentation tank, ensure the effluent quality condition, enhance the effluent safety, form closed-loop control, increase the reliability and generalization capability of the model, and the linear and nonlinear relations between the water quality variable and the dosing quantity can be further reflected by different property variables of proportion, integral and differentiation, so that the nonlinear expression of the model is enhanced.
Furthermore, the neural network structure of the prediction model comprises a first LSTM neural network, a first Dropout layer, a second LSTM neural network, a second Dropout layer and a third LSTM neural network which are sequentially connected, training is completed through an Adam optimization algorithm, a loss function adopts a root mean square error function, the LSTM neural network comprises an input layer, three LSTM cell layers and an output layer, and the LSTM cell layer comprises a forgetting gate FtInput gate ItAnd an output gate Ot
The utility model provides a high-efficient sedimentation tank of sewage intelligence medicine system based on LSTM, includes data acquisition module, control module and dosing pump, data acquisition module set up in the high-efficient sedimentation tank of sewage for gather the prediction relevant data in the high-efficient sedimentation tank of sewage, the dosing pump be used for throwing the phosphorus removal medicine PAC to the high-efficient sedimentation tank of sewage, control module be connected with data acquisition module and dosing pump respectively, including memory, treater and controller, the memory in store have computer program, this program realizes if when being executed by the treater the medicine prediction method that adds, the treater pass through the controller and be connected with the dosing pump, the phosphorus removal medicine PAC of output control signal control dosing pump throws the volume. The data acquisition module comprises a flow meter, a water inlet turbidimeter, a water inlet phosphate meter, a control module, a dosing pump, a water outlet phosphate meter, a water outlet turbidimeter, a PH meter and a thermometer, wherein the flow meter, the water inlet turbidimeter, the water inlet phosphate meter, the water outlet turbidimeter, the PH meter and the thermometer.
Compared with the prior art, the invention has the following advantages:
1) according to the invention, through collecting various data of the sewage high-efficiency sedimentation tank, feedforward data, feedback data and dosage data are obtained, and meanwhile, the data are used as a basis for predicting the PAC dosage of the phosphorus removing medicine, and an LSTM neural network is adopted for prediction, so that the PAC dosage of the phosphorus removing medicine can be rapidly controlled in real time, the problem of lag of the traditional online instrument on the detection principle is solved, the medicine consumption is reduced, the fluctuation of the water inlet load is effectively relieved, and the stable standard reaching of the outlet water is ensured;
2) the feedforward data of the invention comprises feedforward characteristic components, namely total phosphorus TP of the inflow waterinThe feedforward characteristic component is formed by adopting a statistical characteristic structure, in view of large fluctuation of sewage, long treatment time and water retention time of corresponding processes, the current water quality and water quantity are considered, the water quality condition of the water in a pool in the past period of time is also considered comprehensively, and the corresponding statistical index can reflect the real condition of continuous time sequence variable to increase the accuracy of the model.
3) The feedback data of the invention comprises feedback characteristic components and utilizes the total phosphorus TP of effluentoutAnd the total phosphorus setting value TP of the effluentoutThe PID business logic structure is adopted to form a feedback characteristic component, and the feedback characteristic variable can reflect the actual high-efficiency sedimentation tank sedimentationAnd in the precipitation process, the water quality condition of the effluent is ensured, the effluent safety is enhanced, closed-loop control is formed, the reliability and the generalization capability of the model can be increased, and the linear and nonlinear relations between the water quality variable and the dosing quantity can be better reflected by different property variables of proportion, integral and differentiation, so that the nonlinear expression of the model is enhanced.
4) According to the invention, the prediction model is constructed by adopting the LSTM neural network, the Dropout layer is arranged, overfitting is prevented in backward propagation, the generalization capability of the model is improved, the prediction accuracy is improved, the dosage is predicted in real time, the control is accurate, and the stable standard of effluent is realized.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
FIG. 2 is a schematic diagram of a neural network structure of a prediction model;
FIG. 3 is a diagram of the structure of the LSTM neural unit;
FIG. 4 is a schematic diagram of the system of the present invention;
FIG. 5 is a diagram illustrating the prediction result.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
As shown in FIG. 1, the invention provides an LSTM-based intelligent dosing prediction method for a high-efficiency sewage sedimentation tank, which comprises the following steps:
s1: acquiring prediction related data and preprocessing the data;
s2: respectively constructing a feedforward characteristic component and a feedback characteristic component by using the prediction related data;
s3: acquiring prediction input data and inputting a trained prediction model;
s4: the prediction model outputs a predicted value of the adding amount of the phosphorus removal drug PAC;
s5: intelligently adding chemicals into the efficient sewage sedimentation tank according to the predicted value of the adding amount of the phosphorus removal chemical PAC.
The specific process is as follows:
influence factor of PAC dosage of phosphorus removal drug
In the sewage treatment process, the high-efficiency sedimentation tank is arranged behind the biochemical tank, and the removal of the total phosphorus in the sewage is realized by adding a proper amount of phosphorus removal medicine, and the set value TP of the total phosphorus in the medicine types, the components and the effluentsetUnder the relatively fixed condition, the influencing factors influencing the PAC dosage of the phosphorus removal medicine in the high-efficiency sedimentation tank comprise: inflow Q and total phosphorus TPinWater influent suspended solids concentration SSinWater inlet turbidity, sewage temperature T, sewage pH value and water inlet chemical oxygen demand CODinPAM (polyacrylamide) dosage and suspended solid concentration SS (suspended solid concentration) of effluentoutTotal phosphorus TP in effluentoutAnd chemical oxygen demand COD of the effluentoutAnd the like. The influence factors can be simplified through normalization processing and principal component analysis, and a basis is provided for input variable selection of a prediction model, and the specific steps are as follows:
1. data cleaning: abnormal value detection is carried out by adopting an isolated Forest (Isolation Forest) algorithm, and missing value filling is carried out through a near value;
2. and (3) normalization processing of data: data normalization before data principal component analysis is beneficial to dimensionless weighting of data and rapid convergence of a loss function of a following algorithm, and a data normalization formula is as follows:
Figure BDA0002612101220000051
Figure BDA0002612101220000052
Figure BDA0002612101220000053
wherein the content of the first and second substances,
Figure BDA0002612101220000054
is normalized sample data, i is the number of samples, j is the sample component, DijIs the jth sample component of the ith sample, m is the number of samples of the jth sample component, and σ j is the variation of the jth sample component.
3. Principal component analysis of data: the normalized data can reduce the number of input variables through principal component analysis, and finally, the influence factors selected and considered by the method comprise: inflow Q and total phosphorus TPinWater influent suspended solids concentration SSinTotal phosphorus TP in effluentoutThe concentration SS of suspended solid in the effluentoutSewage temperature T and sewage pH.
(II) input data feature processing
In the present invention, the input data of the prediction model includes feedback input data and feedforward input data, which are specifically as follows:
1. feedback data
The data used for the feedback input of the prediction model comprises total phosphorus TP in the effluentoutThe concentration SS of suspended solid in the effluentoutWherein the effluent total phosphorus TPoutAfter data processing is needed, feedback characteristic components are constructed and then serve as feedback data to be input into the prediction model, and other data can be directly used as feedback data to be input into the prediction model.
The feedback characteristic components are specifically constructed as follows:
the total phosphorus TP is calculated according to the time t and the effluentoutThe dosage deviation E (t) can be calculated by the feedback of the total phosphorus in the effluent as a variable, and the specific formula is as follows:
E(t)=TPout(t)-TPset
wherein E (t) is a sampling value TP of total phosphorus in the effluent at the time tout(t) and the total phosphorus setting value TP of the effluentsetThe difference of (a).
Through proportional-integral-derivative control, the change D (t) of the PAC dosage of the phosphorus removing medicine under feedback control can be obtained:
D(t)=Kc[E(t)-E(t-1)]+KiE(t)+Kd[E(t)-2E(t-1)+E(t-2)]
in the formula Kc、Ki、KdProportional coefficient, integral coefficient and differential coefficient respectively, and the feedback characteristic component includes: DATAKC、DATAKI、DATAKDThe expressions are respectively:
DATAKC(t)=E(t)-E(t-1)
DATAKI(t)=E(t)
DATAKD(t)=E(t)-2E(t-1)+E(t-2)
2. feed forward data
The data adopted by the feedforward input of the prediction model comprises inflow water flow Q and inflow water total phosphorus TPinWater influent suspended solids concentration SSinSewage temperature T and sewage pH value, wherein the total phosphorus TP of the inlet waterinAfter data processing is needed, feedforward characteristic components are constructed and then serve as feedforward data input prediction models, and other data can be directly used as feedforward data input prediction models.
The feedforward characteristic component is specifically constructed as follows:
setting the feedforward characteristic component includes: 4t before time toMaximum influent total phosphorus TPin_max4t before time toMinimum influent total phosphorus TPin_minAnd 4t before time toAverage influent total phosphorus TP ofin_meanWherein t isoFor the set data collection frequency, t is preferably set in this embodimento0.5h, namely the total phosphorus TP of the inlet water input into the prediction modelinData needs to be collected within two hours before the current time.
3. Dose data
The data input by the prediction model also comprises the medicine amount data in the efficient sewage sedimentation tank, including the concentration of the phosphorus removal medicine PAC and the concentration of the adsorbent PAM.
(III) prediction model building
The PAC dosage of the phosphorus removal medicine is predicted by adopting an LSTM neural network based on a python platform, and a long-term and short-term memory network (LSTM) is a special RNN network, can learn and remember a longer sequence and does not depend on a pre-specified window lag observation value as input; the value t can be predicted through t-1 value before a sequence, and the previous information can be memorized to understand the current content, so that the problem of gradient extinction easily occurring in the RNN network is solved.
The LSTM neural network model constructed on the python platform comprises the following components: one input layer, three layers of LSTM cells, and one output layer. Wherein, as shown in fig. 3, the LSTM cell layer is internally provided with a plurality of thresholds including a forgetting gate FtInput gate ItAnd an output gate OtIn this embodiment, the forward propagation function of the LSTM recurrent neural network is set as:
It=σ(WxiXt+Whiht-1+bi)
Ft=σ(WxfXt+Whfht-1+bf)
ct=Ft*ct-1+tanh(WxcXt+Whcht-1+bc)
Ot=σ(WxoXt+Whoht-1+bo)
wherein, WxiAs a weight between input layers to input gates, WhiIs the weight between the hidden layer and the input gate at the previous time, WxfFor weights between input layers to forget gate, WhfIs the weight between the hidden layer and the forgetting gate at the last moment, WxcAs weights between input layers to state cells, WhcWeight between hidden layer and state cell at last moment, WxoAs weights between input layers to output gates, WhoFor the weights between the hidden layer and the output gate at the previous time, σ () is the sigma function, XtFor input, ht-1To represent the output of the hidden layer at the last moment, biFor input gate biasing, bfTo forget the door bias, ctIs state cell export, ct-1For cell export in the last state, bcState of cell bias, boIs an output gate bias.
As shown in FIG. 2, the neural network structure of the prediction model in the present invention includes a first LSTM neural network, a first Dropout layer, a second LSTM neural network, a second Dropout layer and a third LSTM neural network, which are connected in sequence. In the embodiment, the Keras is used as a modeling environment to model and learn and train the LSTM neural network; during training, the network layer of the LSTM neural network maintains state between fixed line numbers of data in the training data set in which the LSTM neural network operates before updating the network weights. Determining the time for emptying the state of the LSTM neural network layer by adopting a reset _ states function, compiling the LSTM neural network by using a mean _ squared _ error loss function by adopting a root mean square error as a loss function, and finishing the training of the LSTM neural network by using an adam optimization algorithm, wherein the specific implementation code and the hyper-parameter are set as follows:
model=Sequential()
model.add(LSTM(50,input_shape=(12,10),return_sequences=True))
model.add(Dropout(0.3))
model.add(LSTM(100,return_sequences=True))
model.add(Dropout(0.3))
model.add(LSTM(50,return_sequences=False))
model.add(Dense(train_Y.shape[1]))
model.compile(loss=”mean_squared_error”,optimizer=”adam”)
the Dropout layer forwards propagates a random value (0-1) of each neuron, sets the neuron value of which the random value is smaller than a set threshold value and corresponding to the neuron to be 0, sets the neuron value of which the random value is larger than the set threshold value and corresponding to the neuron to be 2 multiplied by an original value, stores the random values corresponding to all the neurons, and uses the random values in backward propagation, so that overfitting can be prevented, and the generalization capability of the model is improved.
The following table shows some of the training data used in this example:
Figure BDA0002612101220000081
Figure BDA0002612101220000091
(IV) model prediction
And respectively inputting the feedforward data and the feedback data into the trained prediction model in the third part, and finally outputting the predicted PAC dosage of the phosphorus removal medicine by the prediction model.
Fig. 5 shows the prediction case using the method of the present invention.
As shown in fig. 4, the invention further provides an LSTM-based dosing system for a high-efficiency sedimentation tank for sewage, which comprises a flow meter, a water inlet turbidity meter, a water inlet phosphate meter, a control module, a dosing pump, a water outlet phosphate meter, a water outlet turbidity meter, a PH meter and a thermometer, wherein the flow meter, the water inlet turbidity meter, the water inlet phosphate meter, the water outlet turbidity meter, the PH meter and the thermometer are respectively arranged in the high-efficiency sedimentation tank and are respectively connected with the control module for collecting relevant data in the high-efficiency sedimentation tank to serve as a basis for predicting data. The dosing pump is connected with the control module and used for executing dosing sleeving. The control module comprises a memory, a processor and a controller, wherein a computer program is stored in the memory, the processor acquires data input by each data acquisition meter and executes the program to realize the LSTM-based dosing prediction method for the efficient sewage sedimentation tank, and finally the controller is connected with the dosing pump to control the dosing pump to dose the phosphorus removal pesticide PAC of the efficient sewage sedimentation tank.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and those skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An LSTM-based intelligent dosing prediction method for a high-efficiency sewage sedimentation tank is characterized by comprising the following steps:
s1: acquiring prediction related data and preprocessing the data;
s2: respectively constructing a feedforward characteristic component and a feedback characteristic component by using the prediction related data;
s3: acquiring prediction input data and inputting a trained prediction model;
s4: the prediction model outputs a predicted value of the adding amount of the phosphorus removal drug PAC;
s5: intelligently adding chemicals into the efficient sewage sedimentation tank according to the predicted value of the adding amount of the phosphorus removal chemical PAC.
2. The LSTM-based intelligent dosing prediction method for the efficient sewage sedimentation tank according to claim 1, wherein the relevant prediction data comprises inflow Q and inflow suspended solid concentration SSinTotal phosphorus TP in the feed waterinTotal phosphorus TP in effluentoutThe sewage temperature T, the sewage pH value and the phosphorus removal agent PAC concentration.
3. The LSTM-based intelligent dosing prediction method for the efficient wastewater sedimentation tank according to claim 2, wherein the prediction input data comprises feed-forward data, feedback data and dosage data, and the feed-forward data comprises feed water flow Q and total phosphorus TP of the feed waterinWater influent suspended solids concentration SSinThe sewage treatment system comprises a sewage temperature T, a sewage pH value and a feedforward characteristic component, wherein feedback data comprise a feedback characteristic component, and dosage data comprise the concentration of a phosphorus removal drug PAC.
4. The LSTM-based intelligent dosing prediction method for the efficient sewage sedimentation tank according to claim 3, wherein the prediction related data further comprises an effluent suspended solid concentration SSoutAnd the concentration of the PAM adsorbent, and the feedback data also comprises the concentration SS of the solid suspended matter in the effluentoutAnd the medicine quantity data also comprises the concentration of an adsorbent PAM.
5. The LSTM-based intelligent dosing prediction method for efficient sewage sedimentation tank according to claim 3Wherein the feedforward characteristic component is constructed by statistical characteristics, including the first 4toMaximum total phosphorus TP fed over timein_maxFirst 4toMinimum influent total phosphorus TP over timein_minAnd the first 4toAverage total phosphorus TP fed over timein_meanWherein t isoFor a set data acquisition frequency.
6. The LSTM-based intelligent dosing prediction method for efficient sewage sedimentation tank according to claim 5, wherein the data acquisition frequency t isoThe value of (2) was set to 0.5 h.
7. The LSTM-based intelligent dosing prediction method for the efficient sewage sedimentation tank according to claim 3, wherein the feedback feature component is constructed through PID business logic and comprises a proportional feedback feature DATAKCIntegral feedback characteristic DATAKIAnd differential feedback characteristic DATAKD
8. The LSTM-based intelligent dosing prediction method for the efficient sewage sedimentation tank according to claim 7, wherein the expression of the feedback characteristic component is as follows:
DATAKC(t)=E(t)-E(t-1)
DATAKI(t)=E(t)
DATAKD(t)=E(t)-2E(t-1)+E(t-2)
E(t)=TPout(t)-TPset
wherein t is the current prediction time, E (t) is the dosage deviation at the time t, and TPout(t) is the total phosphorus sampling value of the effluent at the time t, TPsetThe set value of the total phosphorus of the effluent is.
9. The LSTM-based intelligent dosing prediction method for the efficient wastewater sedimentation tank according to claim 1, wherein the neural network structure of the prediction model comprises a first LSTM neural network, a first Dropout layer, a second LSTM neural network and a second Dro layer which are sequentially connectedThe training of the pout layer and the third LSTM neural network is completed through an Adam optimization algorithm, the loss function adopts a root mean square error function, the LSTM neural network comprises an input layer, three LSTM cell layers and an output layer, and the LSTM cell layers comprise forgetting gates FtInput gate ItAnd an output gate Ot
10. An LSTM-based intelligent dosing system for a high-efficiency sewage sedimentation tank is characterized by comprising a data acquisition module, a control module and a dosing pump, wherein the data acquisition module is arranged in the high-efficiency sewage sedimentation tank and used for acquiring prediction related data in the high-efficiency sewage sedimentation tank, the dosing pump is used for dosing a phosphorus removal drug PAC into the high-efficiency sewage sedimentation tank, the control module is respectively connected with the data acquisition module and the dosing pump and comprises a memory, a processor and a controller, a computer program is stored in the memory, when the program is executed by the processor, the dosing prediction method of the phosphorus removal drug PAC in any one of claims 1-9 is realized, the processor is connected with the dosing pump through the controller, and a control signal is output to control the dosing amount of the phosphorus removal drug PAC of the dosing pump.
CN202010757643.6A 2020-07-31 2020-07-31 LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank Active CN111994970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010757643.6A CN111994970B (en) 2020-07-31 2020-07-31 LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010757643.6A CN111994970B (en) 2020-07-31 2020-07-31 LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank

Publications (2)

Publication Number Publication Date
CN111994970A true CN111994970A (en) 2020-11-27
CN111994970B CN111994970B (en) 2022-06-21

Family

ID=73463536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010757643.6A Active CN111994970B (en) 2020-07-31 2020-07-31 LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank

Country Status (1)

Country Link
CN (1) CN111994970B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112723505A (en) * 2020-12-04 2021-04-30 上海上实龙创智能科技股份有限公司 Sewage treatment wisdom charge system
CN113066060A (en) * 2021-03-23 2021-07-02 武汉大学 Laser directional energy deposition image identification method of void convolution neural network
CN113778028A (en) * 2021-08-12 2021-12-10 西安交通大学 Intelligent coagulation algorithm based on edge cloud cooperation and double increments
CN114380378A (en) * 2022-03-23 2022-04-22 济安永蓝(北京)工程技术开发有限公司 Intelligent phosphorus-control drug feeding method and device and storage medium
CN114380379A (en) * 2022-02-22 2022-04-22 太原理工大学 Chemical adding control method and system for slime water
CN114781249A (en) * 2022-04-07 2022-07-22 浙江浙能台州第二发电有限责任公司 High-density clarification tank dosage prediction and control method based on multidimensional scoring model
CN114956294A (en) * 2022-06-14 2022-08-30 山东新日电气设备有限公司 Intelligent medicine feeding system and method based on artificial neural network
EP4209462A1 (en) * 2022-01-06 2023-07-12 Doosan Enerbility Co., Ltd. Apparatus and method for controlling chemical dosing optimization for water treatment plant
EP4209464A1 (en) * 2022-01-06 2023-07-12 Doosan Enerbility Co., Ltd. Chemical dosing optimization apparatus and method for water treatment plant
CN116796491A (en) * 2023-01-09 2023-09-22 上海市政工程设计研究总院(集团)有限公司 Urban sewage treatment dephosphorization and dosing optimization method, system and equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4431543A (en) * 1981-04-13 1984-02-14 Ebara Infilco Kabushiki Kaisha Method of removing phosphorus from organic waste liquids
DE19829018A1 (en) * 1998-06-30 2000-01-13 Markus Lendl System for the control of the anesthesia of a patient during surgery
CN103011356A (en) * 2012-08-15 2013-04-03 重庆水务集团股份有限公司 Method for controlling automatic chemical dosing of high-turbidity water system
CN103570190A (en) * 2013-10-20 2014-02-12 北京化工大学 Method for controlling feeding amount of chemical phosphorus removal reagents of water reclamation plants based on fuzzy control
CN104229958A (en) * 2014-08-13 2014-12-24 上海环保工程成套有限公司 Full-automatic intelligent dosing system
WO2016073725A1 (en) * 2014-11-07 2016-05-12 Hach Company Monitoring via neural network model
CN206440945U (en) * 2016-07-12 2017-08-25 武汉长江仪器自动化研究所有限公司 A kind of coagulant dosage control system based on artificial neural network algorithm
CN107601632A (en) * 2017-10-30 2018-01-19 清华大学深圳研究生院 A kind of coagulation Automatic Dosing control method and system
CN110088619A (en) * 2017-10-09 2019-08-02 Bl科技有限责任公司 The intelligence system and method for process and assets Gernral Check-up, abnormality detection and control for waste water treatment plant or drinking water plant
CN110515411A (en) * 2019-09-05 2019-11-29 江苏环保产业技术研究院股份公司 A kind of water treatment medicine amount control method and system
CN110606620A (en) * 2019-08-15 2019-12-24 江苏如是地球空间信息科技有限公司 Sewage treatment process and method for controlling biochemical links in sewage treatment process based on neural network
CN111302471A (en) * 2020-04-13 2020-06-19 生态环境部华南环境科学研究所 Intelligent dosage method for environmental emergency drug-dissolving dephosphorization and integrated device thereof

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4431543A (en) * 1981-04-13 1984-02-14 Ebara Infilco Kabushiki Kaisha Method of removing phosphorus from organic waste liquids
DE19829018A1 (en) * 1998-06-30 2000-01-13 Markus Lendl System for the control of the anesthesia of a patient during surgery
CN103011356A (en) * 2012-08-15 2013-04-03 重庆水务集团股份有限公司 Method for controlling automatic chemical dosing of high-turbidity water system
CN103570190A (en) * 2013-10-20 2014-02-12 北京化工大学 Method for controlling feeding amount of chemical phosphorus removal reagents of water reclamation plants based on fuzzy control
CN104229958A (en) * 2014-08-13 2014-12-24 上海环保工程成套有限公司 Full-automatic intelligent dosing system
WO2016073725A1 (en) * 2014-11-07 2016-05-12 Hach Company Monitoring via neural network model
CN206440945U (en) * 2016-07-12 2017-08-25 武汉长江仪器自动化研究所有限公司 A kind of coagulant dosage control system based on artificial neural network algorithm
CN110088619A (en) * 2017-10-09 2019-08-02 Bl科技有限责任公司 The intelligence system and method for process and assets Gernral Check-up, abnormality detection and control for waste water treatment plant or drinking water plant
EP3552013A1 (en) * 2017-10-09 2019-10-16 BL Technologies, Inc. Intelligent systems and methods for process and asset health diagnosis, anomoly detection and control in wastewater treatment plants or drinking water plants
CN107601632A (en) * 2017-10-30 2018-01-19 清华大学深圳研究生院 A kind of coagulation Automatic Dosing control method and system
CN110606620A (en) * 2019-08-15 2019-12-24 江苏如是地球空间信息科技有限公司 Sewage treatment process and method for controlling biochemical links in sewage treatment process based on neural network
CN110515411A (en) * 2019-09-05 2019-11-29 江苏环保产业技术研究院股份公司 A kind of water treatment medicine amount control method and system
CN111302471A (en) * 2020-04-13 2020-06-19 生态环境部华南环境科学研究所 Intelligent dosage method for environmental emergency drug-dissolving dephosphorization and integrated device thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐伟忠 等: "水厂生产管理智慧化建设实践", 《净水技术》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112723505A (en) * 2020-12-04 2021-04-30 上海上实龙创智能科技股份有限公司 Sewage treatment wisdom charge system
CN113066060A (en) * 2021-03-23 2021-07-02 武汉大学 Laser directional energy deposition image identification method of void convolution neural network
CN113066060B (en) * 2021-03-23 2023-12-19 湖南珞佳智能科技有限公司 Laser directional energy precipitation image identification method of cavity convolutional neural network
CN113778028A (en) * 2021-08-12 2021-12-10 西安交通大学 Intelligent coagulation algorithm based on edge cloud cooperation and double increments
CN113778028B (en) * 2021-08-12 2023-09-26 西安交通大学 Bian Yun cooperation and double increment based intelligent coagulation algorithm
EP4209462A1 (en) * 2022-01-06 2023-07-12 Doosan Enerbility Co., Ltd. Apparatus and method for controlling chemical dosing optimization for water treatment plant
EP4209464A1 (en) * 2022-01-06 2023-07-12 Doosan Enerbility Co., Ltd. Chemical dosing optimization apparatus and method for water treatment plant
CN114380379A (en) * 2022-02-22 2022-04-22 太原理工大学 Chemical adding control method and system for slime water
CN114380378A (en) * 2022-03-23 2022-04-22 济安永蓝(北京)工程技术开发有限公司 Intelligent phosphorus-control drug feeding method and device and storage medium
CN114380378B (en) * 2022-03-23 2022-06-28 济安永蓝(北京)工程技术开发有限公司 Intelligent phosphorus control drug feeding method and device and storage medium
CN114781249A (en) * 2022-04-07 2022-07-22 浙江浙能台州第二发电有限责任公司 High-density clarification tank dosage prediction and control method based on multidimensional scoring model
CN114781249B (en) * 2022-04-07 2024-06-11 浙江浙能台州第二发电有限责任公司 High-density clarifier dosage prediction and control method based on multidimensional scoring model
CN114956294A (en) * 2022-06-14 2022-08-30 山东新日电气设备有限公司 Intelligent medicine feeding system and method based on artificial neural network
CN114956294B (en) * 2022-06-14 2024-02-09 山东新日电气设备有限公司 Intelligent dosing system and method based on artificial neural network
CN116796491A (en) * 2023-01-09 2023-09-22 上海市政工程设计研究总院(集团)有限公司 Urban sewage treatment dephosphorization and dosing optimization method, system and equipment

Also Published As

Publication number Publication date
CN111994970B (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN111994970B (en) LSTM-based dosing prediction method and dosing system for efficient sewage sedimentation tank
Bagherzadeh et al. Comparative study on total nitrogen prediction in wastewater treatment plant and effect of various feature selection methods on machine learning algorithms performance
Wu et al. Effects of data normalization and inherent-factor on decision of optimal coagulant dosage in water treatment by artificial neural network
Wan et al. Prediction of effluent quality of a paper mill wastewater treatment using an adaptive network-based fuzzy inference system
Luccarini et al. Formal verification of wastewater treatment processes using events detected from continuous signals by means of artificial neural networks. Case study: SBR plant
Niu et al. Dynamic optimization of wastewater treatment process based on novel multi-objective ant lion optimization and deep learning algorithm
CN108562709A (en) A kind of sewage disposal system water quality monitoring method for early warning based on convolution self-encoding encoder extreme learning machine
Abba et al. Modeling of water treatment plant performance using artificial neural network: case study Tamburawa Kano-Nigeria
Nawaz et al. Data authorization and forecasting by a proactive soft sensing tool–anammox based process
Liu et al. An auto-adjustable and time-consistent model for determining coagulant dosage based on operators’ experience
Liu et al. A novel deep learning ensemble model based on two-stage feature selection and intelligent optimization for water quality prediction
CN114861535A (en) Water treatment process machine learning modeling method using CFD as data preprocessing
Lamrini et al. A neural software sensor for online prediction of coagulant dosage in a drinking water treatment plant
Alnajjar et al. Removal efficiency prediction model based on the artificial neural network for pollution prevention in wastewater treatment plants
Gomes et al. Coagulant dosage determination in a water treatment plant using dynamic neural network models
Qiao et al. Recurrent High Order Neural Network Modeling for Wastewater Treatment Process.
Hadian et al. Application of artificial intelligence in modeling, control, and fault diagnosis
Xie et al. SO2 prediction for wet flue gas desulfurization based on improved long and short-term memory
Lobbrecht et al. Applications of neural networks and fuzzy logic to integrated water management project report
Hernandez et al. Development of a neural sensor for on-line prediction of coagulant dosage in a potable water treatment plant in the way of its diagnosis
Chan et al. A pretreatment method of wastewater based on artificial intelligence and fuzzy neural network system
Kirilova et al. Prediction of Temperature Conditions of Autothermal Thermophilic Aerobic Digestion Bioreactors at Wastewater Treatment Plants.
Bakht et al. Hybrid Multi-Stream Deep Learning-Based Nutrient Estimation Framework in Biological Wastewater Treatement
Chandanshive et al. Application of artificial neural network in environmental engineering-a state-of-the-art review
CN118228596A (en) Secondary water supply residual chlorine prediction and control method based on cascade LSTM deep learning model

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