[go: up one dir, main page]

CN118270897B - Treatment method for low-temperature Gao Zhuo heavy metal sewage leaked from tailing pond - Google Patents

Treatment method for low-temperature Gao Zhuo heavy metal sewage leaked from tailing pond Download PDF

Info

Publication number
CN118270897B
CN118270897B CN202410657632.9A CN202410657632A CN118270897B CN 118270897 B CN118270897 B CN 118270897B CN 202410657632 A CN202410657632 A CN 202410657632A CN 118270897 B CN118270897 B CN 118270897B
Authority
CN
China
Prior art keywords
magnetic
supernatant
turbidity
final
neural network
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
CN202410657632.9A
Other languages
Chinese (zh)
Other versions
CN118270897A (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.)
South China Institute of Environmental Science of Ministry of Ecology and Environment
Original Assignee
South China Institute of Environmental Science of Ministry of Ecology and Environment
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 South China Institute of Environmental Science of Ministry of Ecology and Environment filed Critical South China Institute of Environmental Science of Ministry of Ecology and Environment
Priority to CN202410657632.9A priority Critical patent/CN118270897B/en
Publication of CN118270897A publication Critical patent/CN118270897A/en
Application granted granted Critical
Publication of CN118270897B publication Critical patent/CN118270897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • C02F1/48Treatment of water, waste water, or sewage with magnetic or electric fields
    • C02F1/488Treatment of water, waste water, or sewage with magnetic or electric fields for separation of magnetic materials, e.g. magnetic flocculation
    • 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/5209Regulation methods for flocculation or precipitation
    • 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/20Heavy metals or heavy metal 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/001Upstream control, i.e. monitoring for predictive control
    • 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
    • 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/44Time

Landscapes

  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Hydrology & Water Resources (AREA)
  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Water Supply & Treatment (AREA)
  • Organic Chemistry (AREA)
  • Analytical Chemistry (AREA)
  • Separation Of Suspended Particles By Flocculating Agents (AREA)

Abstract

The invention provides a method for treating low-temperature Gao Zhuo heavy metal sewage leaked from a tailing pond, which comprises the following steps: magnetizing the tailing sewage by a magnetizing module according to the intensity of the magnetic field and the magnetizing time; conveying the magnetized tailing sewage to a mixing tank, and adding magnetic seeds, flocculant and coagulant into the mixing tank according to the addition amount of flocculant, the addition amount of coagulant and the addition amount of magnetic seeds; training a first neural network model according to actual values of sedimentation time, final turbidity of supernatant fluid and final concentration of heavy metal when sedimentation of the sedimentation tank is completed; and adjusting the treatment parameters of the next tailing sewage according to the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model. The low-temperature Gao Zhuo heavy metal sewage leaked from the tailing pond is effectively treated, the adding amount is saved, and the self-adaptive adjustment is performed according to the result predicted by the neural network.

Description

一种尾矿库泄漏低温高浊重金属污水处理方法A method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond

技术领域Technical Field

本发明涉及水污染治理技术领域,具体涉及一种尾矿库泄漏低温高浊重金属污水处理方法。The invention relates to the technical field of water pollution control, and in particular to a method for treating low-temperature, high-turbidity, heavy metal sewage leaking from a tailings pond.

背景技术Background Art

磁分离技术是指利用元素或组分磁势的差异,借助外磁场对物质进行处理,从而达到强化分离过程的一种分离技术。根据外磁场源的不同,磁分离可以分为永磁分离、电磁分离、超导磁分离;根据应用环境的不同可将其分为湿式磁分离和干式磁分离;根据磁反应器的不同可分为传统磁分离、磁盘分离、高梯度磁分离和开梯度磁分离。因其快速高效的分离效果,特别是随着超导磁体技术与高梯度磁技术的发展,磁分离已在尾矿分选、钢渣回收、高岭土脱色等领域得到了广泛的应用,不同于常规水处理技术,磁分离技术利用磁场力直接作用于污染物或目标杂质,从而将污染物脱离于原水体系,不对水体造成影响,也不会发生化学和生物的反应,具有不产生二次污染、分离速度快、占地少等显著优势。磁分离已成为水处理领域颇具前景的处理技术,在水处理中具有广泛的应用潜力。Magnetic separation technology refers to a separation technology that uses the difference in magnetic potential of elements or components to treat substances with the help of an external magnetic field to achieve an enhanced separation process. According to the different external magnetic field sources, magnetic separation can be divided into permanent magnetic separation, electromagnetic separation, and superconducting magnetic separation; according to different application environments, it can be divided into wet magnetic separation and dry magnetic separation; according to different magnetic reactors, it can be divided into traditional magnetic separation, magnetic disk separation, high gradient magnetic separation, and open gradient magnetic separation. Due to its fast and efficient separation effect, especially with the development of superconducting magnet technology and high gradient magnetic technology, magnetic separation has been widely used in tailings sorting, slag recovery, kaolin decolorization and other fields. Unlike conventional water treatment technology, magnetic separation technology uses magnetic field force to directly act on pollutants or target impurities, thereby separating pollutants from the raw water system, without affecting the water body, and without chemical and biological reactions. It has significant advantages such as no secondary pollution, fast separation speed, and less land occupation. Magnetic separation has become a promising treatment technology in the field of water treatment and has broad application potential in water treatment.

高梯度磁分离技术是指在磁分离器中填充一定量的磁敏感性介质,引起磁性介质周围的磁场发生异化,产生较高的磁梯度,极大化地增加磁场力,进而提高分离的速率与效率。然而,磁分离技术应用于水处理领域的一个重要挑战就是废水中大部分污染物质是无磁性的,不能通过磁场直接去除,所以磁载体是影响磁分离技术在水处理领域推广应用的一个关键因素。因此根据有/无磁载体和磁载体种类,磁分离技术在水处理中的应用可分为以下几类:直接磁分离、磁絮凝、磁吸附和磁催化。目前采用磁分离技术处理污水的方式主要分为两种:1.污水中投加磁种,磁种被添加到废水中,混凝剂和助凝剂的添加使得污染物与磁性介质结合形成磁性絮凝物。在磁场的作用下,这些磁性絮凝物可以被吸引并从水中分离出来,这种方式因为需要添加磁种,所以成本较高,且需要对处理后的磁性介质进行回收或处理,否则会造成二次污染。2.磁化污水,污水通过预磁化,使得水中的污染物和水分子均发生变化。在添加混凝剂和助凝剂后,这些磁化的污染物聚集形成磁性絮凝物并且可以从水中分离出来,但是这种方式对无磁性或弱磁性污染物效果稍弱。High gradient magnetic separation technology refers to filling a certain amount of magnetically sensitive medium in a magnetic separator, causing the magnetic field around the magnetic medium to be alienated, generating a higher magnetic gradient, maximizing the magnetic field force, and thus improving the separation rate and efficiency. However, an important challenge in the application of magnetic separation technology in the field of water treatment is that most of the pollutants in wastewater are non-magnetic and cannot be directly removed by the magnetic field, so the magnetic carrier is a key factor affecting the promotion and application of magnetic separation technology in the field of water treatment. Therefore, according to the presence/absence of magnetic carriers and the types of magnetic carriers, the application of magnetic separation technology in water treatment can be divided into the following categories: direct magnetic separation, magnetic flocculation, magnetic adsorption and magnetic catalysis. At present, there are two main ways to treat sewage using magnetic separation technology: 1. Adding magnetic seeds to sewage, magnetic seeds are added to wastewater, and the addition of coagulants and coagulants allows pollutants to combine with magnetic media to form magnetic floccules. Under the action of the magnetic field, these magnetic floccules can be attracted and separated from the water. This method requires the addition of magnetic seeds, so the cost is high, and the treated magnetic medium needs to be recovered or processed, otherwise it will cause secondary pollution. 2. Magnetized sewage: The sewage is pre-magnetized, which changes the pollutants and water molecules in the water. After adding coagulants and coagulants, these magnetized pollutants aggregate to form magnetic floccules and can be separated from the water, but this method is less effective for non-magnetic or weakly magnetic pollutants.

发明内容Summary of the invention

本发明的目的是提供一种尾矿库泄漏低温高浊重金属污水处理方法,该方法通过磁化处理和磁絮凝能有效地对尾矿库泄漏的低温高浊重金属污水进行处理,节省絮凝剂、混凝剂的投加量。同时,通过第一神经网络模型的预测结果,有助于处理人员在处理开始前,可以根据预测的结果进行必要的调整,例如增减处理剂的加入量,改变磁场强度或者调整磁化时间,以确保处理结果达到预期效果,从而确保实际的污水处理过程能满足环保要求和实际工作需要。The purpose of the present invention is to provide a method for treating low-temperature, high-turbidity heavy metal sewage leaked from a tailings pond, which can effectively treat low-temperature, high-turbidity heavy metal sewage leaked from a tailings pond through magnetization treatment and magnetic flocculation, saving the dosage of flocculants and coagulants. At the same time, the prediction results of the first neural network model can help the treatment personnel to make necessary adjustments according to the prediction results before the treatment begins, such as increasing or decreasing the amount of treatment agent added, changing the magnetic field strength or adjusting the magnetization time, to ensure that the treatment results achieve the expected effect, thereby ensuring that the actual sewage treatment process can meet environmental protection requirements and actual work needs.

一种尾矿库泄漏低温高浊重金属污水处理方法,包括:A method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond, comprising:

根据磁场强度和磁化时间将尾矿污水进行磁化处理;The tailings wastewater is magnetized according to the magnetic field strength and magnetization time;

将尾矿污水输送至混合池,根据絮凝剂投加量、混凝剂投加量、磁种投加量向混合池中投加磁种、絮凝剂和混凝剂;The tailings sewage is transported to the mixing tank, and magnetic seeds, flocculants and coagulants are added to the mixing tank according to the flocculant dosage, coagulant dosage and magnetic seed dosage;

经过混合反应时间后,通过磁富集模块打捞混合池中的带磁絮团,将混合池中剩余的尾矿污水传输至沉淀池;After the mixing reaction time, the magnetic flocs in the mixing pool are salvaged through the magnetic enrichment module, and the remaining tailings wastewater in the mixing pool is transferred to the sedimentation tank;

将所述带磁絮团通过磁回收模块脱水分离得到尾矿污水、磁种和污泥,将磁种循环投加至混合池,尾矿污水传输至沉淀池;Dehydrating and separating the magnetic flocs through a magnetic recovery module to obtain tailings wastewater, magnetic seeds and sludge, cyclically adding the magnetic seeds to a mixing tank, and transmitting the tailings wastewater to a sedimentation tank;

检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值;Detect the actual values of sedimentation time, final turbidity of supernatant and final concentration of heavy metals when sedimentation in sedimentation tank is completed;

根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型;The first neural network model is trained according to the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed;

根据第一神经网络模型输出的沉降时间、上清液最终浊度和重金属最终浓度调整下一次尾矿污水的处理参数。The treatment parameters of the next tailings wastewater treatment are adjusted according to the sedimentation time, final turbidity of the supernatant and final concentration of heavy metals output by the first neural network model.

优选地,所述检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值包括:Preferably, the actual values of the sedimentation time, the final turbidity of the supernatant and the final concentration of heavy metals when the sedimentation in the sedimentation tank is completed include:

将沉淀池的沉降速度、上清液浊度和重金属浓度输入第二神经网络模型;The settling velocity, supernatant turbidity and heavy metal concentration of the sedimentation tank are input into the second neural network model;

第二神经网络模型输出处理标准参数的第二预测值;The second neural network model outputs a second predicted value of the processing criterion parameter;

若处理标准参数的第二预测值不满足预设标准,则生成预警信号;If the second predicted value of the processing standard parameter does not meet the preset standard, a warning signal is generated;

根据预警信号向混合池和/或沉淀池额外投加絮凝剂和混凝剂;Additional dosing of flocculants and coagulants into the mixing tank and/or sedimentation tank based on early warning signals;

记录根据第二预测值调整的尾矿污水处理措施和尾矿污水处理结果,并增加至第一神经网络模型的训练样本。The tailings wastewater treatment measures and tailings wastewater treatment results adjusted according to the second predicted value are recorded and added to the training samples of the first neural network model.

优选地,所述根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型包括:Preferably, the training of the first neural network model according to the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed comprises:

将絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间输入第一神经网络模型;Inputting the flocculant dosage, the coagulant dosage, the magnetic seed dosage, the slurry concentration, the magnetic field intensity and the magnetization time into the first neural network model;

第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度;The first neural network model outputs the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals;

根据第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度与沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值计算总损失函数;The total loss function is calculated based on the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model and the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed;

迭代训练至总损失函数满足预设要求时停止。Iterate the training until the total loss function meets the preset requirements.

优选地,所述检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值之后,还包括;Preferably, after detecting the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed, it also includes:

若上清液最终浊度和重金属最终浓度满足预设标准,则将上清液从沉淀池排出;否则,将上清液回流至磁化模块与污水混合进行磁化处理。If the final turbidity and final heavy metal concentration of the supernatant meet the preset standards, the supernatant is discharged from the sedimentation tank; otherwise, the supernatant is returned to the magnetization module and mixed with the sewage for magnetization treatment.

优选地,所述根据第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度与沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值计算总损失函数包括:Preferably, the total loss function is calculated based on the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model and the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling of the sedimentation tank is completed, including:

所述总损失函数包括均方误差和正则化损失;The total loss function includes mean square error and regularization loss;

所述总损失函数表示为:The total loss function is expressed as:

所述均方误差表示为:The mean square error is expressed as:

其中,n指的是样本数量,假设是模型的预测值,是实际值;Where n refers to the number of samples, assuming is the predicted value of the model, is the actual value;

所述正则化损失表示为:The regularization loss is expressed as:

其中表示权重,是正则化参数。in represents the weight, is the regularization parameter.

优选地,所述迭代训练至总损失函数满足预设要求时停止包括:Preferably, the iterative training stops when the total loss function meets the preset requirements, and includes:

通过反向传播计算总损失函数相对于每个权重和偏差的偏导数;Calculate the partial derivatives of the total loss function with respect to each weight and bias via backpropagation;

设定总损失函数为,第l层中的第j个神经元的输出为a,则偏导数表示为Set the total loss function to , the output of the jth neuron in the lth layer is a, then the partial derivative is expressed as ;

对于每个隐藏层,使用链式法则计算损失函数关于当前隐藏层每个神经元输入的偏导数:For each hidden layer, the chain rule is used to calculate the partial derivative of the loss function with respect to the input of each neuron in the current hidden layer:

其中,表示对所有第l+1层神经元进行求和,表示第l层的第j个神经元的输入,即神经元接收到的信号,具体为前一层神经元的输出和对应权重的线性组合再加上偏差;表示第l层的第j个神经元的输出;in, represents the sum of all neurons in the l+1th layer, represents the input of the jth neuron in the lth layer, that is, the signal received by the neuron, which is specifically a linear combination of the output of the neurons in the previous layer and the corresponding weights plus the bias; represents the output of the jth neuron in the lth layer;

得到损失函数关于每个权重和偏差的偏导数:Get the partial derivatives of the loss function with respect to each weight and bias:

其中,为从第(l-1)层的第i个神经元到第l层的第j个神经元的连接的权重;为第l层的第j个神经元的偏差,即该神经元的阈值;in, is the weight of the connection from the i-th neuron in the (l-1)th layer to the j-th neuron in the lth layer; is the bias of the jth neuron in the lth layer, that is, the threshold of the neuron;

根据计算的偏导数,使用梯度下降法更新第一神经网络模型中的每一个权重和偏差参数;Based on the calculated partial derivatives, each weight and bias parameter in the first neural network model is updated using the gradient descent method;

重复训练直至第一神经网络模型的性能达到预设要求或者迭代次数达到阈值停止。The training is repeated until the performance of the first neural network model reaches the preset requirement or the number of iterations reaches a threshold.

优选地,设置所述絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间包括:Preferably, setting the flocculant dosage, coagulant dosage, magnetic seed dosage, slurry concentration, magnetic field strength and magnetization time includes:

收集历史处理过程中实际的输入参数数据,所述输入参数包括:絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间,和对应的处理标准参数结果,所述处理标准参数结果包括:沉降时间、上清液最终浊度和重金属最终浓度;Collect actual input parameter data during the historical treatment process, the input parameters include: flocculant dosage, coagulant dosage, magnetic seed dosage, slurry concentration, magnetic field strength and magnetization time, and the corresponding treatment standard parameter results, the treatment standard parameter results include: sedimentation time, supernatant final turbidity and heavy metal final concentration;

使用已训练好的第一神经网络模型对输入参数进行预测,并将预测结果与实际的处理标准参数结果进行对比,以得到预测误差;Using the trained first neural network model to predict the input parameters, and comparing the predicted results with the actual processing standard parameter results to obtain the prediction error;

计算每个输入参数与预测误差的相关系数,相关系数的绝对值越大,表示输入参数与预测误差的关系越强,需要对当前参数进行更大幅度的调整;Calculate the correlation coefficient between each input parameter and the prediction error. The larger the absolute value of the correlation coefficient, the stronger the relationship between the input parameter and the prediction error, and the more significant the adjustment of the current parameter is needed.

定义最小化预测误差作为优化目标,使用遗传算法对输入参数进行优化;Minimizing the prediction error is defined as the optimization goal, and the input parameters are optimized using a genetic algorithm;

在优化过程中,每一个输入参数的调整幅度与预测误差的相关系数成正比,相关系数越大的参数调整幅度越大;During the optimization process, the adjustment range of each input parameter is proportional to the correlation coefficient of the prediction error. The larger the correlation coefficient, the larger the adjustment range of the parameter;

将优化后的输入参数数据反馈给处理过程,并持续迭代过程,实现参数的自适应调整。The optimized input parameter data is fed back to the processing process, and the iterative process is continued to achieve adaptive adjustment of parameters.

优选地,所述检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值包括:Preferably, the actual values of the sedimentation time, the final turbidity of the supernatant and the final concentration of heavy metals when the sedimentation in the sedimentation tank is completed include:

在沉淀池的顶部安装超声波传感器;Install an ultrasonic sensor on the top of the sedimentation tank;

所述超声波传感器的发射器和接收器朝向沉淀物表面,根据预设的采样频率连续获取若干超声采样数据,根据超声采样数据计算沉降速度;The transmitter and receiver of the ultrasonic sensor are directed toward the sediment surface, a number of ultrasonic sampling data are continuously acquired according to a preset sampling frequency, and the sedimentation velocity is calculated according to the ultrasonic sampling data;

在沉淀池上清液出口位置安装浊度计和重金属分析器;Install a turbidity meter and heavy metal analyzer at the outlet of the supernatant in the sedimentation tank;

所述浊度计和重金属分析器分别监测上清液浊度和重金属浓度;The turbidity meter and heavy metal analyzer monitor the turbidity and heavy metal concentration of the supernatant respectively;

所述超声采样数据包括若干距离数据和采样时间戳,所述距离数据的采集原理表示为:The ultrasonic sampling data includes a number of distance data and sampling timestamps. The collection principle of the distance data is expressed as follows:

D = 0.5 * T * CD = 0.5 * T * C

其中,D表示传感器至固液分离界面距离,T表示超声波发射至被接收的时间差,C表示超声波在上清液中的传播速度;Where D represents the distance from the sensor to the solid-liquid separation interface, T represents the time difference from ultrasonic emission to reception, and C represents the propagation speed of ultrasonic waves in the supernatant;

所述沉降速度表示为:The settling velocity is expressed as:

Vi= (Di+1-Di)/ti+1-tiV i = (D i+1 -D i )/t i+1 -t i ,

其中,Vi表示时间ti至ti+1处的沉降速度。Wherein, Vi represents the sedimentation velocity from time ti to ti +1 .

一种尾矿库泄漏低温高浊重金属污水处理系统,包括:A system for treating low-temperature, high-turbidity, heavy metal wastewater leaked from a tailings pond, comprising:

磁化模块,用于根据磁场强度和磁化时间将尾矿污水进行磁化处理;A magnetization module is used to magnetize the tailings wastewater according to the magnetic field strength and magnetization time;

沉淀模块,用于将尾矿污水输送至混合池,根据絮凝剂投加量、混凝剂投加量、磁种投加量向混合池中投加磁种、絮凝剂和混凝剂;The sedimentation module is used to transport the tailings sewage to the mixing tank, and add magnetic seeds, flocculants and coagulants into the mixing tank according to the flocculant dosage, coagulant dosage and magnetic seed dosage;

第一分离模块,用于经过混合反应时间后,通过磁富集模块打捞混合池中的带磁絮团,将混合池中剩余的尾矿污水传输至沉淀池;The first separation module is used to salvage the magnetic flocs in the mixing pool through the magnetic enrichment module after the mixing reaction time, and transfer the remaining tailings wastewater in the mixing pool to the sedimentation tank;

第二分离模块,用于将所述带磁絮团通过磁回收模块脱水分离得到尾矿污水、磁种和污泥,将磁种循环投加至混合池,尾矿污水传输至沉淀池;The second separation module is used to dehydrate and separate the magnetic flocs through the magnetic recovery module to obtain tailings wastewater, magnetic seeds and sludge, and the magnetic seeds are circulated to the mixing tank, and the tailings wastewater is transmitted to the sedimentation tank;

检测模块,用于检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值;A detection module is used to detect the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the sedimentation in the sedimentation tank is completed;

预测模块,用于根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型;A prediction module is used to train a first neural network model based on actual values of settling time, final turbidity of supernatant and final concentration of heavy metals when settling in the sedimentation tank is completed;

调节模块,用于根据第一神经网络模型输出的沉降时间、上清液最终浊度和重金属最终浓度调整下一次尾矿污水的处理参数。The regulating module is used to adjust the treatment parameters of the next tailings wastewater according to the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model.

一种电子设备,包括:处理器和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,所述电子设备执行一种尾矿库泄漏低温高浊重金属污水处理方法。An electronic device comprises: a processor and a memory, wherein the memory is used to store computer program codes, and the computer program codes comprise computer instructions. When the processor executes the computer instructions, the electronic device executes a method for treating low-temperature, high-turbidity, heavy metal wastewater leaked from a tailings pond.

本申请通过磁化处理和磁絮凝能有效地对尾矿库泄漏的低温高浊重金属污水进行处理,节省絮凝剂、混凝剂的投加量。同时,通过第一神经网络模型的预测结果,有助于处理人员在处理开始前,可以根据预测的结果进行必要的调整,例如增减处理剂的加入量,改变磁场强度或者调整磁化时间,以确保处理结果达到预期效果,从而确保实际的污水处理过程能满足环保要求和实际工作需要。This application can effectively treat low-temperature, high-turbidity, heavy metal sewage leaking from tailings ponds through magnetization treatment and magnetic flocculation, saving the dosage of flocculants and coagulants. At the same time, the prediction results of the first neural network model can help treatment personnel make necessary adjustments based on the prediction results before the treatment begins, such as increasing or decreasing the amount of treatment agent added, changing the magnetic field strength or adjusting the magnetization time, to ensure that the treatment results achieve the expected effect, thereby ensuring that the actual sewage treatment process can meet environmental protection requirements and actual work needs.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,标示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

图1为本发明的总流程示意图;Fig. 1 is a schematic diagram of the overall process of the present invention;

图2为本发明的沉淀池污水参数检测流程示意图;FIG2 is a schematic diagram of a sedimentation tank sewage parameter detection process of the present invention;

图3为本发明的第一神经网络训练流程示意图;FIG3 is a schematic diagram of a first neural network training process of the present invention;

图4为本发明的一种电子设备的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of an electronic device of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

需要说明,本发明实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

另外,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一种该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

目前采用磁分离技术处理污水的方式主要分为两种:1.污水中投加磁种,磁种被添加到废水中,混凝剂和助凝剂的添加使得污染物与磁性介质结合形成磁性絮凝物。在磁场的作用下,这些磁性絮凝物可以被吸引并从水中分离出来,这种方式因为需要添加磁种,所以成本较高,且需要对处理后的磁性介质进行回收或处理,否则会造成二次污染。2.磁化污水,污水通过预磁化,使得水中的污染物和水分子均发生变化。在添加混凝剂和助凝剂后,这些磁化的污染物聚集形成磁性絮凝物并且可以从水中分离出来,但是这种方式对无磁性或弱磁性污染物效果稍弱。At present, there are two main ways to treat sewage using magnetic separation technology: 1. Adding magnetic seeds to sewage. Magnetic seeds are added to wastewater. The addition of coagulants and coagulant aids allows pollutants to combine with magnetic media to form magnetic floccules. Under the action of the magnetic field, these magnetic floccules can be attracted and separated from the water. This method requires the addition of magnetic seeds, so the cost is relatively high, and the treated magnetic media needs to be recovered or processed, otherwise it will cause secondary pollution. 2. Magnetized sewage. The sewage is pre-magnetized, so that both the pollutants and water molecules in the water change. After adding coagulants and coagulants, these magnetized pollutants aggregate to form magnetic floccules and can be separated from the water, but this method is slightly less effective for non-magnetic or weakly magnetic pollutants.

本申请通过磁化处理和磁絮凝能有效地对尾矿库泄漏的低温高浊重金属污水进行处理,节省絮凝剂、混凝剂的投加量。同时,通过第一神经网络模型的预测结果,有助于处理人员在处理开始前,可以根据预测的结果进行必要的调整,例如增减处理剂的加入量,改变磁场强度或者调整磁化时间,以确保处理结果达到预期效果,从而确保实际的污水处理过程能满足环保要求和实际工作需要。This application can effectively treat low-temperature, high-turbidity, heavy metal sewage leaking from tailings ponds through magnetization treatment and magnetic flocculation, saving the dosage of flocculants and coagulants. At the same time, the prediction results of the first neural network model can help treatment personnel make necessary adjustments based on the prediction results before the treatment begins, such as increasing or decreasing the amount of treatment agent added, changing the magnetic field strength or adjusting the magnetization time, to ensure that the treatment results achieve the expected effect, thereby ensuring that the actual sewage treatment process can meet environmental protection requirements and actual work needs.

实施例1Example 1

一种尾矿库泄漏低温高浊重金属污水处理方法,包括:A method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond, comprising:

S100,根据磁场强度和磁化时间将尾矿污水进行磁化处理;S100, magnetizing the tailings wastewater according to the magnetic field intensity and magnetization time;

磁化的具体步骤包括:对污水进行预处理,去除尾矿污水中大部分的悬浮物和固体颗粒;选择磁化装置,根据实际处理要求和磁力场的要求,设计和选择合适的磁化装置,包括磁体、磁场的形状、磁场的强度等。磁化处理,将预处理的污水通过磁化装置,使其在强磁场中流动,并经受磁场的作用,实现污染物的分解和沉淀。终端处理:经过磁化处理后的污水,根据不同的处理要求,进行后续的反应、沉淀、过滤等终端处理。The specific steps of magnetization include: pre-treating the sewage to remove most of the suspended matter and solid particles in the tailings sewage; selecting the magnetization device, designing and selecting a suitable magnetization device according to the actual treatment requirements and the requirements of the magnetic field, including the magnet, the shape of the magnetic field, the strength of the magnetic field, etc. Magnetization treatment, passing the pre-treated sewage through the magnetization device, making it flow in a strong magnetic field, and being subjected to the effect of the magnetic field to achieve the decomposition and precipitation of pollutants. Terminal treatment: After the sewage has been magnetized, it undergoes subsequent terminal treatments such as reaction, precipitation, filtration, etc. according to different treatment requirements.

S200,将尾矿污水输送至混合池,根据絮凝剂投加量、混凝剂投加量、磁种投加量向混合池中投加磁种、絮凝剂和混凝剂;S200, transporting the tailings wastewater to a mixing tank, and adding magnetic seeds, flocculants and coagulants into the mixing tank according to the flocculant dosage, coagulant dosage and magnetic seed dosage;

磁絮凝包括无机絮凝剂和有机絮凝剂。其中,无机絮凝剂包括无机絮凝剂和无机高分子絮凝剂,有机絮凝剂包括合成有机高分子絮凝剂、天然有机高分子絮凝剂和微生物絮凝剂。磁絮凝技术的工艺原理是在传统的絮凝混合沉淀工艺中,加入磁种,以增强絮凝的效果,形成高密度的絮凝体和加大絮凝体的比重,达到高效除污和快速沉降的目的。根据磁种的离子极性和金属特性,作为絮凝体的核体,大大地强化了对水中悬浮污染物的絮凝结合能力,减少絮凝剂用量。混有磁种的絮凝体比重增大,可使絮凝体快速沉降。Magnetic flocculation includes inorganic flocculants and organic flocculants. Among them, inorganic flocculants include inorganic flocculants and inorganic polymer flocculants, and organic flocculants include synthetic organic polymer flocculants, natural organic polymer flocculants and microbial flocculants. The process principle of magnetic flocculation technology is to add magnetic seeds to the traditional flocculation mixing sedimentation process to enhance the flocculation effect, form high-density flocs and increase the specific gravity of the flocs, so as to achieve the purpose of efficient pollution removal and rapid sedimentation. According to the ionic polarity and metallic properties of the magnetic seeds, as the nucleus of the flocculants, the flocculation and binding ability of suspended pollutants in the water is greatly enhanced, and the amount of flocculants used is reduced. The specific gravity of the flocs mixed with magnetic seeds increases, which can make the flocs settle quickly.

S300,经过混合反应时间后,通过磁富集模块打捞混合池中的带磁絮团,将混合池中剩余的尾矿污水传输至沉淀池;S300, after the mixing reaction time, the magnetic flocs in the mixing pool are salvaged through the magnetic enrichment module, and the remaining tailings wastewater in the mixing pool is transferred to the sedimentation tank;

尾矿污水中的污染物被完全分离需要经过一定的混合反应时间,当尾矿污水中的污染物从水中分离出来形成沉淀后,就可以通过磁富集模块将带磁絮团从尾矿污水中打捞出来,剩余还未处理完的尾矿污水进入下一步处理工序。It takes a certain mixing reaction time to completely separate the pollutants in the tailings wastewater. Once the pollutants in the tailings wastewater are separated from the water and precipitated, the magnetic flocs can be salvaged from the tailings wastewater through the magnetic enrichment module, and the remaining tailings wastewater that has not been treated will enter the next treatment process.

S400,将带磁絮团通过磁回收模块脱水分离得到尾矿污水、磁种和污泥,将磁种循环投加至混合池,尾矿污水传输至沉淀池;S400, the magnetic flocs are dehydrated and separated through a magnetic recovery module to obtain tailings wastewater, magnetic seeds and sludge, the magnetic seeds are circulated and added to the mixing tank, and the tailings wastewater is transmitted to the sedimentation tank;

带磁絮团中的磁种,本申请利用磁种本身的特性使用稀土永磁磁鼓进行分离后回收并在尾矿污水处理系统中循环使用。以达到高度净化出水并降低污水处理费用的目的。The magnetic seeds in the magnetic flocs are separated and recycled by using the rare earth permanent magnetic drums according to the characteristics of the magnetic seeds themselves and then recycled in the tailings sewage treatment system, so as to achieve the purpose of highly purifying the effluent and reducing the sewage treatment costs.

S500,检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值;S500, detecting the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed;

沉淀池的沉降完成时沉降时间从尾矿污水完全传输至沉淀池时开始计算,即当全部的尾矿污水都转移到沉淀池后开始计算沉淀池的沉降完成时沉降时间,因为在尾矿污水转移过程中,上层的尾矿污水的运动会影响到下层尾矿污水的沉淀效果,所以当尾矿污水静止后,即尾矿污水完全转移到沉淀池后开始计算沉降完成时沉降时间。上清液最终浊度通过对沉淀池中多个区域的上清液进行采样,然后计算各个区域上清液浊度的平均值作为上清液最终浊度。重金属最终浓度的计算需要对沉淀后的尾矿污水进行采样,然后经过过滤和稀释操作,采用原子吸收光谱法、电感耦合登离子体发射光谱法登测定尾矿污水中重金属最终浓度。The sedimentation time of the sedimentation tank is calculated from the time when the tailings wastewater is completely transferred to the sedimentation tank, that is, when all the tailings wastewater is transferred to the sedimentation tank, the sedimentation time of the sedimentation tank is calculated. Because in the process of tailings wastewater transfer, the movement of the upper tailings wastewater will affect the sedimentation effect of the lower tailings wastewater, so when the tailings wastewater is still, that is, when the tailings wastewater is completely transferred to the sedimentation tank, the sedimentation time is calculated. The final turbidity of the supernatant is obtained by sampling the supernatant in multiple areas of the sedimentation tank, and then calculating the average turbidity of the supernatant in each area as the final turbidity of the supernatant. The calculation of the final concentration of heavy metals requires sampling the tailings wastewater after precipitation, and then filtering and diluting it, and using atomic absorption spectrometry and inductively coupled plasma emission spectrometry to determine the final concentration of heavy metals in the tailings wastewater.

S600,根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型;S600, training a first neural network model according to actual values of the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals when the settling in the sedimentation tank is completed;

第一神经网络模型的输出是沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值,输入是磁化过程中的磁场强度和磁化时间、混合池中的絮凝剂投加量、混凝剂投加量、磁种投加量还有混合反应时间,第一神经网络用于预测整个尾矿污水处理过程中控制参数。The output of the first neural network model is the actual values of the sedimentation time when the sedimentation in the sedimentation tank is completed, the final turbidity of the supernatant and the final concentration of heavy metals. The input is the magnetic field strength and magnetization time during the magnetization process, the flocculant dosage in the mixing tank, the coagulant dosage, the magnetic seed dosage and the mixing reaction time. The first neural network is used to predict the control parameters in the entire tailings wastewater treatment process.

S700,根据第一神经网络模型输出的沉降时间、上清液最终浊度和重金属最终浓度调整下一次尾矿污水的处理参数。S700, adjusting the treatment parameters of the next tailings wastewater according to the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model.

本申请通过磁化处理和磁絮凝能有效地对尾矿库泄漏的低温高浊重金属污水进行处理,节省絮凝剂、混凝剂的投加量。同时,通过第一神经网络模型的预测结果,有助于处理人员在处理开始前,可以根据预测的结果进行必要的调整,例如增减处理剂的加入量,改变磁场强度或者调整磁化时间,以确保处理结果达到预期效果,从而确保实际的污水处理过程能满足环保要求和实际工作需要。This application can effectively treat low-temperature, high-turbidity, heavy metal sewage leaking from tailings ponds through magnetization treatment and magnetic flocculation, saving the dosage of flocculants and coagulants. At the same time, the prediction results of the first neural network model can help treatment personnel make necessary adjustments based on the prediction results before the treatment begins, such as increasing or decreasing the amount of treatment agent added, changing the magnetic field strength or adjusting the magnetization time, to ensure that the treatment results achieve the expected effect, thereby ensuring that the actual sewage treatment process can meet environmental protection requirements and actual work needs.

优选地,S500,检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值包括:Preferably, S500, detecting the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed includes:

S510,将沉淀池的沉降速度、上清液浊度和重金属浓度输入第二神经网络模型;S510, inputting the settling velocity, supernatant turbidity and heavy metal concentration of the sedimentation tank into the second neural network model;

沉淀池的沉降速度由沉淀池的半径以及深度决定,并且不同类型的尾矿污水的沉降速度不同、上清液浊度表示尾矿污水上层清液的浊度,重金属浓度表示尾矿污水处理后尾矿污水中重金属的含量。The sedimentation rate of the sedimentation tank is determined by the radius and depth of the sedimentation tank, and different types of tailings wastewater have different sedimentation rates. The supernatant turbidity indicates the turbidity of the supernatant liquid of the tailings wastewater, and the heavy metal concentration indicates the content of heavy metals in the tailings wastewater after the tailings wastewater is treated.

S520,第二神经网络模型输出处理标准参数的第二预测值;S520, the second neural network model outputs a second predicted value of the processing standard parameter;

作为一个优选地实施例,本发明采用RNN模型作为第二神经网络的架构,RNN模型为深度学习模型,适合处理具有序列或顺序依赖的数据,RNN模型在处理每个输入时都会保留一个隐藏状态,该隐藏状态会被传递到下一个时间步,以便RNN模型能够记忆之前的信息。As a preferred embodiment, the present invention adopts an RNN model as the architecture of the second neural network. The RNN model is a deep learning model suitable for processing data with sequence or order dependencies. The RNN model retains a hidden state when processing each input, and the hidden state will be passed to the next time step so that the RNN model can remember previous information.

RNN模型包括输入层、输出层和隐藏层,在本申请中,输出层采用softmax函数对数据进行归一化处理,在隐藏层中采用tanh作为激活函数。The RNN model includes an input layer, an output layer and a hidden layer. In this application, the output layer uses a softmax function to normalize the data, and tanh is used as the activation function in the hidden layer.

S530,若处理标准参数的第二预测值不满足预设标准,则生成预警信号;S530, if the second predicted value of the processing standard parameter does not meet the preset standard, generating a warning signal;

预设标准是预期要投入到混合池和/或沉淀池的絮凝剂和混凝剂的种类以及重量,预设标准是根据普通行业的处理标准设置的,处理标准参数的第二预测值是RNN模型预测出的将要投入到混合池和/或沉淀池的絮凝剂和混凝剂的种类以及重量,如果RNN模型输出的处理标准参数的第二预测值不满足预设标准,则说明所需要投入到混合池和/或沉淀池的絮凝剂和混凝剂的种类以及重量达不到处理尾矿污水时需要的量,则需要增加絮凝剂和混凝剂剂量。The preset standard is the type and weight of flocculants and coagulants expected to be put into the mixing tank and/or sedimentation tank. The preset standard is set according to the treatment standards of the general industry. The second predicted value of the treatment standard parameter is the type and weight of flocculants and coagulants to be put into the mixing tank and/or sedimentation tank predicted by the RNN model. If the second predicted value of the treatment standard parameter output by the RNN model does not meet the preset standard, it means that the type and weight of flocculants and coagulants required to be put into the mixing tank and/or sedimentation tank do not reach the amount required to treat tailings wastewater, and the dosage of flocculants and coagulants needs to be increased.

S540,根据预警信号向混合池和/或沉淀池额外投加絮凝剂和混凝剂;S540, additionally adding flocculants and coagulants to the mixing tank and/or the sedimentation tank according to the early warning signal;

预警信号中的信息包括了需要另外向混合池和/或沉淀池额外投加絮凝剂和混凝剂的数量以及种类,然后尾矿污水处理的工作人员根据预警信号中的信息实时调整混合池和/或沉淀池的投放量。The information in the early warning signal includes the amount and type of additional flocculants and coagulants that need to be added to the mixing tank and/or sedimentation tank. The tailings wastewater treatment staff then adjusts the amount of flocculants and coagulants added to the mixing tank and/or sedimentation tank in real time based on the information in the early warning signal.

S550,记录根据第二预测值调整的尾矿污水处理措施和尾矿污水处理结果,并增加至第一神经网络模型的训练样本。S550, recording the tailings wastewater treatment measures and tailings wastewater treatment results adjusted according to the second prediction value, and adding them to the training samples of the first neural network model.

更多的训练样本虽然会导致较长的训练时间,但是对于一些复杂的问题,比如在本申请中第一神经网络需要根据投入处理池中的投放参数来预测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度,如果训练样本不够多的话就容易导致第一神经网络预测产生缺陷,这时较多的训练样本能够使得第一神经网络的训练更加完善,弥补缺陷与不足,使得第一神经网络的预测结果更加精准。Although more training samples will lead to longer training time, for some complex problems, such as in this application, the first neural network needs to predict the sedimentation time when the sedimentation of the sedimentation tank is completed, the final turbidity of the supernatant and the final concentration of heavy metals based on the input parameters into the treatment pool. If there are not enough training samples, it will easily lead to defects in the prediction of the first neural network. At this time, more training samples can make the training of the first neural network more perfect, make up for the defects and deficiencies, and make the prediction results of the first neural network more accurate.

在本实施例中,第二神经网络模型用于根据沉降速度、上清液浊度和重金属浓度对处理标准参数进行实时预测,以实现对反应过程进行预警分析和实时调整,并确保后续的污水处理计划能够得到及时调整。与此同时,所有的调整措施和结果都将被记录并反馈到数据中心,以及时排除机械故障,或通过增加第一神经网络模型的训练样本优化第一神经网络模型。In this embodiment, the second neural network model is used to predict the treatment standard parameters in real time based on the sedimentation velocity, supernatant turbidity and heavy metal concentration, so as to realize early warning analysis and real-time adjustment of the reaction process and ensure that the subsequent sewage treatment plan can be adjusted in time. At the same time, all adjustment measures and results will be recorded and fed back to the data center to timely eliminate mechanical failures or optimize the first neural network model by increasing the training samples of the first neural network model.

优选地,参考图3,S600,根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型包括:Preferably, referring to FIG3 , S600 , training the first neural network model according to the actual values of the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals when the settling in the sedimentation tank is completed includes:

S610,将絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间输入第一神经网络模型;S610, inputting the flocculant dosage, the coagulant dosage, the magnetic seed dosage, the slurry concentration, the magnetic field intensity and the magnetization time into the first neural network model;

絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间都为第一神经网络的输入量。The flocculant dosage, coagulant dosage, magnetic seed dosage, slurry concentration, magnetic field intensity and magnetization time are all inputs of the first neural network.

S620,第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度;S620, the first neural network model outputs the sedimentation time, the final turbidity of the supernatant, and the final concentration of heavy metals;

沉降时间、上清液最终浊度和重金属最终浓度为第一神经网络的输出量。The sedimentation time, final turbidity of the supernatant and final concentration of heavy metals were the outputs of the first neural network.

S630,根据第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度与沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值计算总损失函数;S630, calculating a total loss function according to the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals output by the first neural network model and the actual values of the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals when the settling of the sedimentation tank is completed;

S640,迭代训练至总损失函数满足预设要求时停止。S640, iterative training stops when the total loss function meets the preset requirements.

损失函数用于衡量第一神经网络模型预测结果与真实结果之间的差异或误差,损失函数是一个非负实值函数,通常用L(Y,f(x))表示,其中Y是真实值,f(x)是模型的预测值。损失函数越小,模型的鲁棒性就越好。在机器学习中,损失函数是经验风险函数的核心部分,也是结构风险函数的重要组成部分。结构风险函数包括了经验风险项和正则项,其目的是在减少经验风险的同时,通过正则项控制模型的复杂度,以防止过拟合。损失函数根据学习任务的不同(如分类、回归)选择不同的损失函数。例如,均方误差(MSE)是一种常用的回归损失函数;而在分类问题中,可能使用交叉熵损失或铰链损失等。损失函数不仅是模型训练过程中的优化目标,也是评估模型性能的重要指标。The loss function is used to measure the difference or error between the prediction result of the first neural network model and the actual result. The loss function is a non-negative real-valued function, usually expressed as L(Y, f(x)), where Y is the actual value and f(x) is the predicted value of the model. The smaller the loss function, the better the robustness of the model. In machine learning, the loss function is the core part of the empirical risk function and an important part of the structural risk function. The structural risk function includes the empirical risk term and the regularization term. Its purpose is to control the complexity of the model through the regularization term while reducing the empirical risk to prevent overfitting. The loss function selects different loss functions according to different learning tasks (such as classification and regression). For example, mean square error (MSE) is a commonly used regression loss function; in classification problems, cross entropy loss or hinge loss may be used. The loss function is not only the optimization target in the model training process, but also an important indicator for evaluating model performance.

优选地,采用MLP模型作为第一神经网络模型的架构;Preferably, an MLP model is used as the architecture of the first neural network model;

将MLP模型的输入层节点设置为6,输出层节点设置为3。The input layer nodes of the MLP model are set to 6, and the output layer nodes are set to 3.

输入层负责接收外界的输入信息,并将其转化为神经网络可处理的格式,输入层可以接收不同类型的原始数据或经过预处理的数据,例如,在图像识别领域,输入层可以接收原始三维的多彩图像;在音频识别领域,它可以接收经过傅利叶变换的二维波形数据;在自然语言处理中,输入层可以接收一维表示的句子向量,输入层的作用是将外部输入的数据转化为模型可以处理的形式。例如,在处理图像时,输入层会接收图像的像素值,而在处理文本时,它会接收文本的字符或词向量。这些原始数据通过神经网络的转换和处理,最终得到有用的输出,输入数据必须是数值型的,非数值内容需要转化为数值。在将数据输入到神经网络之前对其进行处理的过程称为数据处理。例如,图像数据通常会被转换成矩阵像素数据,以便于神经网络处理。输入层还可能进行一些前期处理操作,如归一化、去均值等,以提升模型的性能。The input layer is responsible for receiving external input information and converting it into a format that the neural network can process. The input layer can receive different types of raw data or pre-processed data. For example, in the field of image recognition, the input layer can receive raw three-dimensional colorful images; in the field of audio recognition, it can receive two-dimensional waveform data after Fourier transformation; in natural language processing, the input layer can receive sentence vectors represented in one dimension. The role of the input layer is to convert external input data into a form that the model can process. For example, when processing images, the input layer will receive the pixel values of the image, and when processing text, it will receive the characters or word vectors of the text. These raw data are converted and processed by the neural network to finally get useful output. The input data must be numerical, and non-numerical content needs to be converted into numerical values. The process of processing data before inputting it into the neural network is called data processing. For example, image data is usually converted into matrix pixel data for neural network processing. The input layer may also perform some pre-processing operations, such as normalization and de-meaning, to improve the performance of the model.

输出层为神经网络模型的终点,负责将神经网络的处理结果转化为人类或其他生物可理解的格式并输出。输出层的设置取决于神经网络所面临的任务类型。例如,在图像识别任务中,输出层可能输出人类可辨认的物体或场景;在语言处理任务中,输出层可能输出语句或段落。输出层由若干神经元组成,每个神经元代表一个对象,其输出的附加数值表示该对象是某特定类别的概率。The output layer is the end point of the neural network model. It is responsible for converting the processing results of the neural network into a format that can be understood by humans or other organisms and outputting them. The setting of the output layer depends on the type of task faced by the neural network. For example, in image recognition tasks, the output layer may output objects or scenes that can be recognized by humans; in language processing tasks, the output layer may output sentences or paragraphs. The output layer is composed of several neurons, each of which represents an object, and the additional value it outputs represents the probability that the object belongs to a specific category.

在本申请中,输入层节点设置为6,代表了输入参数提供了处理过程的全面信息。MLP模型通过隐藏层进行非线性转换,学习这些输入参数与处理效果(如沉降时间、上清液最终浊度和重金属最终浓度)之间存在的高级关联性。输出层节点设置为3,对应于处理效果的三个关键指标:沉降时间、上清液最终浊度和重金属最终浓度。MLP训练的目标就是尽可能准确地预测这三个输出。模型训练好之后,就可以将输入参数输入模型,以期最小化沉降时间、上清液最终浊度和重金属最终浓度。In this application, the input layer nodes are set to 6, which means that the input parameters provide comprehensive information about the treatment process. The MLP model performs nonlinear transformations through hidden layers to learn the high-level correlations between these input parameters and treatment effects (such as settling time, final turbidity of the supernatant, and final concentration of heavy metals). The output layer nodes are set to 3, corresponding to the three key indicators of treatment effect: settling time, final turbidity of the supernatant, and final concentration of heavy metals. The goal of MLP training is to predict these three outputs as accurately as possible. After the model is trained, the input parameters can be input into the model in order to minimize the settling time, final turbidity of the supernatant, and final concentration of heavy metals.

优选地,S630,根据第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度与沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值计算总损失函数包括:Preferably, S630, calculating the total loss function according to the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals output by the first neural network model and the actual values of the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals when the settling of the sedimentation tank is completed includes:

总损失函数包括均方误差和正则化损失;The total loss function includes mean square error and regularization loss;

总损失函数表示为:The total loss function is expressed as:

均方误差表示为:The mean square error is expressed as:

其中,n指的是样本数量,假设是模型的预测值,是实际值;Where n refers to the number of samples, assuming is the predicted value of the model, is the actual value;

正则化损失表示为:The regularization loss is expressed as:

其中表示权重,是正则化参数。in represents the weight, is the regularization parameter.

均方误差是预测评价中常用的一个指标,用于评估第一神经网络模型在给定数据上的拟合程度,其计算方式为模型预测值与实际观测值之间差的平方的平均数。均方误差的值越小,表明第一神经网络模型的预测越精确。需要注意的是,均方误差不能等于0,因为这会导致模型过于拟合数据,可能会忽略一些重要的因素,从而在实际应用中出现大的波动。The mean square error is a commonly used indicator in prediction evaluation. It is used to evaluate the fit of the first neural network model on the given data. It is calculated as the average of the squares of the differences between the model predictions and the actual observations. The smaller the value of the mean square error, the more accurate the prediction of the first neural network model. It should be noted that the mean square error cannot be equal to 0, because this will cause the model to overfit the data and may ignore some important factors, resulting in large fluctuations in practical applications.

正则化是一种用于改善机器学习模型的技术,主要目的是减少过拟合,提高模型的泛化能力。在机器学习中,过拟合是指模型对训练数据表现良好,但对新数据(测试数据)表现不佳的现象。正则化通过在模型的损失函数中添加正则项来实现,这个正则项惩罚模型参数的大小或数量,从而鼓励模型选择更简单、泛化能力更强的假设。常见的正则化方法包括L1正则化和L2正则化,它们分别通过在损失函数中加入模型参数的绝对值之和或平方和来实施。L1正则化倾向于使模型参数变得稀疏,即许多参数变为零,这有助于特征选择和减少模型的复杂度。L2正则化则使参数变小,但不完全变为零,有助于减少模型的不稳定性和过拟合风险。正则化损失即将损失函数正则化,在损失函数后面添加一个额外项,即L1正则化或L2正则化。Regularization is a technique used to improve machine learning models. Its main purpose is to reduce overfitting and improve the generalization ability of the model. In machine learning, overfitting refers to the phenomenon that the model performs well on the training data but performs poorly on new data (test data). Regularization is achieved by adding a regularization term to the loss function of the model. This regularization term penalizes the size or number of model parameters, thereby encouraging the model to choose simpler and more generalizable hypotheses. Common regularization methods include L1 regularization and L2 regularization, which are implemented by adding the sum of the absolute values or the sum of squares of the model parameters to the loss function, respectively. L1 regularization tends to make the model parameters sparse, that is, many parameters become zero, which helps feature selection and reduces the complexity of the model. L2 regularization makes the parameters smaller, but not completely zero, which helps reduce the instability and risk of overfitting of the model. Regularization loss is to regularize the loss function and add an additional term after the loss function, that is, L1 regularization or L2 regularization.

优选地,S640,迭代训练至总损失函数满足预设要求时停止包括:Preferably, S640, iterative training stops when the total loss function meets a preset requirement, including:

S641,通过反向传播计算总损失函数相对于每个权重和偏差的偏导数;S641, calculate the partial derivative of the total loss function with respect to each weight and bias by backpropagation;

设定总损失函数为,第l层中的第j个神经元的输出为a,则偏导数表示为Set the total loss function to , the output of the jth neuron in the lth layer is a, then the partial derivative is expressed as ;

对于每个隐藏层,使用链式法则计算损失函数关于当前隐藏层每个神经元输入的偏导数:For each hidden layer, the chain rule is used to calculate the partial derivative of the loss function with respect to the input of each neuron in the current hidden layer:

其中,表示对所有第l+1层神经元进行求和,表示第l层的第j个神经元的输入,即神经元接收到的信号,具体为前一层神经元的输出和对应权重的线性组合再加上偏差;表示第l层的第j个神经元的输出;in, represents the sum of all neurons in the l+1th layer, represents the input of the jth neuron in the lth layer, that is, the signal received by the neuron, which is specifically a linear combination of the output of the neurons in the previous layer and the corresponding weights plus the bias; represents the output of the jth neuron in the lth layer;

得到损失函数关于每个权重和偏差的偏导数:Get the partial derivatives of the loss function with respect to each weight and bias:

其中,为从第(l-1)层的第i个神经元到第l层的第j个神经元的连接的权重;为第l层的第j个神经元的偏差,即该神经元的阈值;in, is the weight of the connection from the i-th neuron in the (l-1)th layer to the j-th neuron in the lth layer; is the bias of the jth neuron in the lth layer, that is, the threshold of the neuron;

S642,根据计算的偏导数,使用梯度下降法更新第一神经网络模型中的每一个权重和偏差参数;S642, updating each weight and bias parameter in the first neural network model using a gradient descent method according to the calculated partial derivatives;

具体的,对于每一个权重和偏差参数,其更新后的值等于原值减去学习率乘以该参数的偏导数,这一步的目标是通过改变每一个权重和偏差参数的值以使得下一次的损失函数的值更小。梯度下降法是一种用于找到函数局部最小值的优化算法,用于机器学习和人工智能中寻找最小化目标函数的模型参数。梯度下降法的基本思想是通过不断迭代,逐步调整模型参数(或自变量),使得目标函数(通常是误差函数或损失函数)的值减小。在每次迭代中,算法计算目标函数在当前点梯度(即函数值变化最快的方向),然后按照负梯度方向移动一小步,即向目标函数的局部极小值逼近。这种方法的关键在于利用目标函数的梯度信息来指导下一步的移动方向和步长。梯度下降法有几种变体,如随机梯度下降和自适应梯度下降,它们分别用于处理大数据集和稀疏数据。梯度下降法也可以与梯度上升法相对比,后者是向梯度正方向移动,用于寻找函数的局部极大值。Specifically, for each weight and bias parameter, its updated value is equal to the original value minus the learning rate multiplied by the partial derivative of the parameter. The goal of this step is to make the value of the next loss function smaller by changing the value of each weight and bias parameter. Gradient descent is an optimization algorithm used to find the local minimum of a function. It is used to find model parameters that minimize the objective function in machine learning and artificial intelligence. The basic idea of gradient descent is to gradually adjust the model parameters (or independent variables) through continuous iterations so that the value of the objective function (usually the error function or loss function) decreases. In each iteration, the algorithm calculates the gradient of the objective function at the current point (that is, the direction in which the function value changes fastest), and then moves a small step in the negative gradient direction, that is, approaches the local minimum of the objective function. The key to this method is to use the gradient information of the objective function to guide the next moving direction and step size. There are several variants of gradient descent, such as stochastic gradient descent and adaptive gradient descent, which are used to process large data sets and sparse data, respectively. Gradient descent can also be contrasted with gradient ascent, which moves in the positive direction of the gradient to find the local maximum of the function.

S643,重复训练直至第一神经网络模型的性能达到预设要求或者迭代次数达到阈值停止。S643, repeat the training until the performance of the first neural network model reaches a preset requirement or the number of iterations reaches a threshold.

优选地,设置絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间包括:Preferably, setting the flocculant dosage, coagulant dosage, magnetic seed dosage, slurry concentration, magnetic field strength and magnetization time includes:

收集历史处理过程中实际的输入参数数据,输入参数包括:絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间,和对应的处理标准参数结果,处理标准参数结果包括:沉降时间、上清液最终浊度和重金属最终浓度;Collect the actual input parameter data during the historical treatment process, including: flocculant dosage, coagulant dosage, magnetic seed dosage, slurry concentration, magnetic field strength and magnetization time, and the corresponding treatment standard parameter results, including: sedimentation time, supernatant final turbidity and heavy metal final concentration;

使用已训练好的第一神经网络模型对输入参数进行预测,并将预测结果与实际的处理标准参数结果进行对比,以得到预测误差;Using the trained first neural network model to predict the input parameters, and comparing the predicted results with the actual processing standard parameter results to obtain the prediction error;

计算每个输入参数与预测误差的相关系数,相关系数的绝对值越大,表示输入参数与预测误差的关系越强,需要对当前参数进行更大幅度的调整;Calculate the correlation coefficient between each input parameter and the prediction error. The larger the absolute value of the correlation coefficient, the stronger the relationship between the input parameter and the prediction error, and the more significant the adjustment of the current parameter is needed.

定义最小化预测误差作为优化目标,使用遗传算法对输入参数进行优化;Minimizing the prediction error is defined as the optimization goal, and the input parameters are optimized using a genetic algorithm;

在优化过程中,每一个输入参数的调整幅度与预测误差的相关系数成正比,相关系数越大的参数调整幅度越大;During the optimization process, the adjustment range of each input parameter is proportional to the correlation coefficient of the prediction error. The larger the correlation coefficient, the larger the adjustment range of the parameter;

将优化后的输入参数数据反馈给处理过程,并持续迭代过程,实现参数的自适应调整。The optimized input parameter data is fed back to the processing process, and the iterative process is continued to achieve adaptive adjustment of parameters.

本实施例通过收集历史处理过程中的实际输入参数数据和对应的处理参数结果,在预测误差的基础上计算出每个输入参数与预测误差的相关系数,并通过遗传算法本方案能实现全局优化,避免陷入局部最优解,从而自适应地调整输入参数,提高处理效果的稳定性和精确性。This embodiment collects the actual input parameter data and the corresponding processing parameter results in the historical processing process, calculates the correlation coefficient between each input parameter and the prediction error based on the prediction error, and uses the genetic algorithm to achieve global optimization and avoid falling into the local optimal solution, thereby adaptively adjusting the input parameters and improving the stability and accuracy of the processing effect.

优选地,参考图2,S500,检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值包括:Preferably, referring to FIG. 2 , S500 , detecting the actual values of the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals when the settling in the sedimentation tank is completed includes:

S510,在沉淀池的顶部安装超声波传感器;S510, install an ultrasonic sensor on the top of the sedimentation tank;

S520,超声波传感器的发射器和接收器朝向沉淀物表面,根据预设的采样频率连续获取若干超声采样数据,根据超声采样数据计算沉降速度;S520, the transmitter and the receiver of the ultrasonic sensor are directed toward the sediment surface, a plurality of ultrasonic sampling data are continuously acquired according to a preset sampling frequency, and a sedimentation velocity is calculated according to the ultrasonic sampling data;

超声波传感器的主要组成部分包括一个压电晶体,能够将电能转换为超声波(机械波)并能将接收到的声波再次转换回电能。这些传感器通常用于检测物体的位置、大小、速度或液位等物理量,基于声波在空气、液体或固体中的传播特性,通过测量发射和接收超声波的时间差,可以计算出传感器与目标物体之间的距离。The main components of ultrasonic sensors include a piezoelectric crystal that can convert electrical energy into ultrasonic waves (mechanical waves) and can convert received sound waves back into electrical energy again. These sensors are usually used to detect physical quantities such as the position, size, speed or liquid level of an object. Based on the propagation characteristics of sound waves in air, liquid or solid, the distance between the sensor and the target object can be calculated by measuring the time difference between the emission and reception of ultrasonic waves.

S530,在沉淀池上清液出口位置安装浊度计和重金属分析器;S530, installing a turbidity meter and a heavy metal analyzer at the outlet of the supernatant of the sedimentation tank;

S540,浊度计和重金属分析器分别监测上清液浊度和重金属浓度;S540, turbidity meter and heavy metal analyzer monitor supernatant turbidity and heavy metal concentration, respectively;

在沉淀池中采用一定体积的液体,然后经过消解处理,其中待测重金属元素的物质全部氧化为离子态,待测重金属离子与显色剂进行络合,形成特定颜色的络合物,在一定的波长处,该络合物具有最大吸收,此吸光度与待测物的浓度呈线性相关,由吸光度可计算待测重金属的浓度。A certain volume of liquid is used in a sedimentation tank and then subjected to a digestion treatment, wherein all the substances of the heavy metal elements to be measured are oxidized into ionic states, and the heavy metal ions to be measured are complexed with the color developer to form a complex of a specific color. At a certain wavelength, the complex has a maximum absorption, and the absorbance is linearly correlated with the concentration of the object to be measured. The concentration of the heavy metal to be measured can be calculated from the absorbance.

超声采样数据包括若干距离数据和采样时间戳,距离数据的采集原理表示为:Ultrasonic sampling data includes several distance data and sampling timestamps. The collection principle of distance data is expressed as follows:

D = 0.5 * T * CD = 0.5 * T * C

其中,D表示传感器至固液分离界面距离,T表示超声波发射至被接收的时间差,C表示超声波在上清液中的传播速度;Where D represents the distance from the sensor to the solid-liquid separation interface, T represents the time difference from ultrasonic emission to reception, and C represents the propagation speed of ultrasonic waves in the supernatant;

沉降速度表示为:The sedimentation velocity is expressed as:

Vi= (Di+1-Di)/ti+1-tiV i = (D i+1 -D i )/t i+1 -t i ,

其中,Vi表示时间ti至ti+1处的沉降速度。Wherein, Vi represents the sedimentation velocity from time ti to ti +1 .

若上清液最终浊度和重金属最终浓度满足预设标准,则将上清液从沉淀池排出;否则,将上清液回流至磁化模块与污水混合进行磁化处理。本申请通过上清液排放质量的实时监控及回流处理,确保最终排放物质达到环保标准。If the final turbidity and final heavy metal concentration of the supernatant meet the preset standards, the supernatant is discharged from the sedimentation tank; otherwise, the supernatant is returned to the magnetization module to be mixed with the sewage for magnetization treatment. This application ensures that the final discharge substances meet environmental protection standards through real-time monitoring of the discharge quality of the supernatant and reflux treatment.

实施例2Example 2

一种尾矿库泄漏低温高浊重金属污水处理系统,包括:A system for treating low-temperature, high-turbidity, heavy metal wastewater leaked from a tailings pond, comprising:

磁化模块,用于根据磁场强度和磁化时间将尾矿污水进行磁化处理;A magnetization module is used to magnetize the tailings wastewater according to the magnetic field strength and magnetization time;

沉淀模块,用于将尾矿污水输送至混合池,根据絮凝剂投加量、混凝剂投加量、磁种投加量向混合池中投加磁种、絮凝剂和混凝剂;The sedimentation module is used to transport the tailings sewage to the mixing tank, and add magnetic seeds, flocculants and coagulants into the mixing tank according to the flocculant dosage, coagulant dosage and magnetic seed dosage;

第一分离模块,用于经过混合反应时间后,通过磁富集模块打捞混合池中的带磁絮团,将混合池中剩余的尾矿污水传输至沉淀池;The first separation module is used to salvage the magnetic flocs in the mixing pool through the magnetic enrichment module after the mixing reaction time, and transfer the remaining tailings wastewater in the mixing pool to the sedimentation tank;

第二分离模块,用于将带磁絮团通过磁回收模块脱水分离得到尾矿污水、磁种和污泥,将磁种循环投加至混合池,尾矿污水传输至沉淀池;The second separation module is used to dehydrate and separate the magnetic flocs through the magnetic recovery module to obtain tailings wastewater, magnetic seeds and sludge, and the magnetic seeds are circulated to the mixing tank, and the tailings wastewater is transmitted to the sedimentation tank;

检测模块,用于检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值;A detection module is used to detect the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the sedimentation in the sedimentation tank is completed;

预测模块,用于根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型;A prediction module is used to train a first neural network model based on actual values of settling time, final turbidity of supernatant and final concentration of heavy metals when settling in the sedimentation tank is completed;

调节模块,用于根据第一神经网络模型输出的沉降时间、上清液最终浊度和重金属最终浓度调整下一次尾矿污水的处理参数。The regulating module is used to adjust the treatment parameters of the next tailings wastewater according to the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model.

实施例3Example 3

一种电子设备,包括:处理器和存储器,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器执行计算机指令时,电子设备执行一种尾矿库泄漏低温高浊重金属污水处理方法。An electronic device includes: a processor and a memory, the memory is used to store computer program codes, the computer program codes include computer instructions, when the processor executes the computer instructions, the electronic device executes a method for treating low-temperature and high-turbidity heavy metal wastewater leaked from a tailings pond.

参考图4,该电子设备2包括处理器21,存储器22,输入装置24,输出装置23。该处理器21、存储器22、输入装置24和输出装置23通过连接器相耦合,该连接器包括各类接口、传输线或总线等等,本发明实施例对此不作限定。应当理解,本发明的各个实施例中,耦合是指通过特定方式的相互联系,包括直接相连或者通过其他设备间接相连,例如可以通过各类接口、传输线、总线等相连。Referring to FIG4 , the electronic device 2 includes a processor 21, a memory 22, an input device 24, and an output device 23. The processor 21, the memory 22, the input device 24, and the output device 23 are coupled via a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, through various interfaces, transmission lines, buses, etc.

处理器21可以是一个或多个图形处理器(graphics processing unit, GPU),在处理器21是一个GPU的情况下,该GPU可以是单核GPU,也可以是多核GPU。可选的,处理器21可以是多个GPU构成的处理器组,多个处理器之间通过一个或多个总线彼此耦合。可选的,该处理器还可以为其他类型的处理器等等,本发明实施例不作限定。The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present invention.

存储器22可用于存储计算机程序指令,以及用于执行本发明方案的程序代码在内的各类计算机程序代码。可选地,存储器包括但不限于是随机存储记忆体(random accessmemory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasableprogrammable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM),该存储器用于相关指令及数据。The memory 22 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.

输入装置24用于输入数据和/或信号,以及输出装置23用于输出数据和/或信号。输出装置23和输入装置24可以是独立的器件,也可以是一个整体的器件。The input device 24 is used to input data and/or signals, and the output device 23 is used to output data and/or signals. The output device 23 and the input device 24 can be independent devices or an integrated device.

本申请通过磁化处理和磁絮凝能有效地对尾矿库泄漏的低温高浊重金属污水进行处理,节省絮凝剂、混凝剂的投加量。同时,通过第一神经网络模型的预测结果,有助于处理人员在处理开始前,可以根据预测的结果进行必要的调整,例如增减处理剂的加入量,改变磁场强度或者调整磁化时间,以确保处理结果达到预期效果,从而确保实际的污水处理过程能满足环保要求和实际工作需要。This application can effectively treat low-temperature, high-turbidity, heavy metal sewage leaking from tailings ponds through magnetization treatment and magnetic flocculation, saving the dosage of flocculants and coagulants. At the same time, the prediction results of the first neural network model can help the treatment personnel to make necessary adjustments according to the predicted results before the treatment begins, such as increasing or decreasing the amount of treatment agent added, changing the magnetic field strength or adjusting the magnetization time, to ensure that the treatment results achieve the expected effect, thereby ensuring that the actual sewage treatment process can meet environmental protection requirements and actual work needs.

以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims (6)

1.一种尾矿库泄漏低温高浊重金属污水处理方法,其特征在于,包括:1. A method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond, comprising: 采用磁化模块根据磁场强度和磁化时间将尾矿污水进行磁化处理;The magnetization module is used to magnetize the tailings wastewater according to the magnetic field strength and magnetization time; 将磁化处理后的尾矿污水输送至混合池,根据絮凝剂投加量、混凝剂投加量和磁种投加量向混合池中投加磁种、絮凝剂和混凝剂;The tailings wastewater after magnetization treatment is transported to a mixing pool, and magnetic seeds, flocculants and coagulants are added to the mixing pool according to the flocculant dosage, coagulant dosage and magnetic seed dosage; 经过混合反应时间后,通过磁富集模块打捞混合池中的带磁絮团,将混合池中剩余的尾矿污水传输至沉淀池;After the mixing reaction time, the magnetic flocs in the mixing pool are salvaged through the magnetic enrichment module, and the remaining tailings wastewater in the mixing pool is transferred to the sedimentation tank; 将所述带磁絮团通过磁回收模块脱水分离得到尾矿污水、磁种和污泥,将分离得到的磁种循环投加至混合池,分离得到的尾矿污水传输至沉淀池;Dehydrating and separating the magnetic flocs through a magnetic recovery module to obtain tailings wastewater, magnetic seeds and sludge, cyclically adding the separated magnetic seeds to a mixing tank, and transmitting the separated tailings wastewater to a sedimentation tank; 检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值;Detect the actual values of sedimentation time, final turbidity of supernatant and final concentration of heavy metals when sedimentation in sedimentation tank is completed; 根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型;The first neural network model is trained according to the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed; 根据第一神经网络模型输出的沉降时间、上清液最终浊度和重金属最终浓度调整下一次尾矿污水的处理参数;Adjust the treatment parameters of the next tailings wastewater according to the settling time, final turbidity of the supernatant and final concentration of heavy metals output by the first neural network model; 所述根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型包括:The training of the first neural network model according to the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling of the sedimentation tank is completed comprises: 将絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间输入第一神经网络模型;Inputting the flocculant dosage, the coagulant dosage, the magnetic seed dosage, the slurry concentration, the magnetic field intensity and the magnetization time into the first neural network model; 第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度;The first neural network model outputs the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals; 根据第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度与沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值计算总损失函数;The total loss function is calculated based on the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model and the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed; 迭代训练至总损失函数满足预设要求时停止。Iterate the training until the total loss function meets the preset requirements. 2.根据权利要求1所述的一种尾矿库泄漏低温高浊重金属污水处理方法,其特征在于,所述检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值之后,还包括;2. A method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond according to claim 1, characterized in that after detecting the actual values of the sedimentation time, the final turbidity of the supernatant and the final concentration of heavy metals when the sedimentation in the sedimentation tank is completed, it also includes: 若上清液最终浊度和重金属最终浓度满足预设标准,则将上清液从沉淀池排出;否则,将上清液回流至磁化模块与污水混合进行磁化处理。If the final turbidity and final heavy metal concentration of the supernatant meet the preset standards, the supernatant is discharged from the sedimentation tank; otherwise, the supernatant is returned to the magnetization module and mixed with the sewage for magnetization treatment. 3.根据权利要求2所述的一种尾矿库泄漏低温高浊重金属污水处理方法,其特征在于,所述根据第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度与沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值计算总损失函数包括:3. A method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond according to claim 2, characterized in that the total loss function is calculated based on the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model and the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the sedimentation in the sedimentation tank is completed, including: 所述总损失函数包括均方误差和正则化损失;The total loss function includes mean square error and regularization loss; 所述总损失函数表示为:The total loss function is expressed as: 所述均方误差表示为:The mean square error is expressed as: 其中,n指的是样本数量,假设是模型的预测值,是实际值;Where n refers to the number of samples, assuming is the predicted value of the model, is the actual value; 所述正则化损失表示为:The regularization loss is expressed as: 其中表示权重,是正则化参数。in represents the weight, is the regularization parameter. 4.根据权利要求3所述的一种尾矿库泄漏低温高浊重金属污水处理方法,其特征在于,所述迭代训练至总损失函数满足预设要求时停止包括:4. A method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond according to claim 3, characterized in that the iterative training stops when the total loss function meets the preset requirements and comprises: 通过反向传播计算总损失函数相对于每个权重和偏差的偏导数;Calculate the partial derivatives of the total loss function with respect to each weight and bias via backpropagation; 设定总损失函数为,第l层中的第j个神经元的输出为a,则偏导数表示为Set the total loss function to , the output of the jth neuron in the lth layer is a, then the partial derivative is expressed as ; 对于每个隐藏层,使用链式法则计算损失函数关于当前隐藏层每个神经元输入的偏导数:For each hidden layer, the chain rule is used to calculate the partial derivative of the loss function with respect to the input of each neuron in the current hidden layer: 其中,表示对所有第l+1层神经元进行求和,表示第l层的第j个神经元的输入,即神经元接收到的信号,具体为前一层神经元的输出和对应权重的线性组合再加上偏差;表示第l层的第j个神经元的输出;in, represents the sum of all neurons in the l+1th layer, represents the input of the jth neuron in the lth layer, that is, the signal received by the neuron, which is specifically a linear combination of the output of the neurons in the previous layer and the corresponding weights plus the bias; represents the output of the jth neuron in the lth layer; 得到总损失函数关于每个权重和偏差的偏导数:Get the partial derivatives of the total loss function with respect to each weight and bias: ; 其中,为从第(l-1)层的第i个神经元到第l层的第j个神经元的连接的权重;为第l层的第j个神经元的偏差,即该神经元的阈值;in, is the weight of the connection from the i-th neuron in the (l-1)th layer to the j-th neuron in the lth layer; is the bias of the jth neuron in the lth layer, that is, the threshold of the neuron; 根据计算的偏导数,使用梯度下降法更新第一神经网络模型中的每一个权重和偏差参数;Based on the calculated partial derivatives, each weight and bias parameter in the first neural network model is updated using the gradient descent method; 重复训练直至第一神经网络模型的性能达到预设要求或者迭代次数达到阈值停止。The training is repeated until the performance of the first neural network model reaches the preset requirement or the number of iterations reaches a threshold. 5.根据权利要求1所述的一种尾矿库泄漏低温高浊重金属污水处理方法,其特征在于,设置絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间包括:5. The method for treating low-temperature, high-turbidity heavy metal wastewater leaked from a tailings pond according to claim 1, characterized in that the flocculant dosage, coagulant dosage, magnetic seed dosage, slurry concentration, magnetic field intensity and magnetization time are set to include: 收集历史处理过程中实际的输入参数数据,所述输入参数包括:絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间,和对应的处理标准参数结果,所述处理标准参数结果包括:沉降时间、上清液最终浊度和重金属最终浓度;Collect actual input parameter data during the historical treatment process, the input parameters include: flocculant dosage, coagulant dosage, magnetic seed dosage, slurry concentration, magnetic field strength and magnetization time, and the corresponding treatment standard parameter results, the treatment standard parameter results include: sedimentation time, supernatant final turbidity and heavy metal final concentration; 使用已训练好的第一神经网络模型对输入参数进行预测,并将预测结果与实际的处理标准参数结果进行对比,以得到预测误差;Using the trained first neural network model to predict the input parameters, and comparing the predicted results with the actual processing standard parameter results to obtain the prediction error; 计算每个输入参数与预测误差的相关系数,相关系数的绝对值越大,表示输入参数与预测误差的关系越强,需要对当前参数进行更大幅度的调整;Calculate the correlation coefficient between each input parameter and the prediction error. The larger the absolute value of the correlation coefficient, the stronger the relationship between the input parameter and the prediction error, and the more significant the adjustment of the current parameter is needed. 定义最小化预测误差作为优化目标,使用遗传算法对输入参数进行优化;Minimizing the prediction error is defined as the optimization goal, and the input parameters are optimized using a genetic algorithm; 在优化过程中,每一个输入参数的调整幅度与预测误差的相关系数成正比,相关系数越大的参数调整幅度越大;During the optimization process, the adjustment range of each input parameter is proportional to the correlation coefficient of the prediction error. The larger the correlation coefficient, the larger the adjustment range of the parameter; 将优化后的输入参数数据反馈给处理过程,并持续迭代过程,实现参数的自适应调整。The optimized input parameter data is fed back to the processing process, and the iterative process is continued to achieve adaptive adjustment of parameters. 6.一种尾矿库泄漏低温高浊重金属污水处理系统,其特征在于,包括:6. A system for treating low-temperature, high-turbidity, heavy metal wastewater leaked from a tailings pond, comprising: 磁化模块,用于根据磁场强度和磁化时间将尾矿污水进行磁化处理;A magnetization module is used to magnetize the tailings wastewater according to the magnetic field strength and magnetization time; 沉淀模块,用于将磁化处理后的尾矿污水输送至混合池,根据絮凝剂投加量、混凝剂投加量和磁种投加量向混合池中投加磁种、絮凝剂和混凝剂;The sedimentation module is used to transport the tailings wastewater after magnetization treatment to the mixing tank, and add magnetic seeds, flocculants and coagulants into the mixing tank according to the flocculant dosage, coagulant dosage and magnetic seed dosage; 第一分离模块,用于经过混合反应时间后,通过磁富集模块打捞混合池中的带磁絮团,将混合池中剩余的尾矿污水传输至沉淀池;The first separation module is used to salvage the magnetic flocs in the mixing pool through the magnetic enrichment module after the mixing reaction time, and transfer the remaining tailings wastewater in the mixing pool to the sedimentation tank; 第二分离模块,用于将所述带磁絮团通过磁回收模块脱水分离得到尾矿污水、磁种和污泥,将分离得到的磁种循环投加至混合池,分离得到的尾矿污水传输至沉淀池;The second separation module is used to dehydrate and separate the magnetic flocs through the magnetic recovery module to obtain tailings wastewater, magnetic seeds and sludge, and the separated magnetic seeds are circulated and added to the mixing tank, and the separated tailings wastewater is transmitted to the sedimentation tank; 检测模块,用于检测沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值;A detection module is used to detect the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the sedimentation in the sedimentation tank is completed; 预测模块,用于根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型;A prediction module is used to train a first neural network model based on actual values of settling time, final turbidity of supernatant and final concentration of heavy metals when settling in the sedimentation tank is completed; 所述根据沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值训练第一神经网络模型包括:The training of the first neural network model according to the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling of the sedimentation tank is completed comprises: 将絮凝剂投加量、混凝剂投加量、磁种投加量、矿浆浓度、磁场强度和磁化时间输入第一神经网络模型;Inputting the flocculant dosage, the coagulant dosage, the magnetic seed dosage, the slurry concentration, the magnetic field intensity and the magnetization time into the first neural network model; 第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度;The first neural network model outputs the settling time, the final turbidity of the supernatant, and the final concentration of heavy metals; 根据第一神经网络模型输出沉降时间、上清液最终浊度和重金属最终浓度与沉淀池沉降完成时沉降时间、上清液最终浊度和重金属最终浓度的实际值计算总损失函数;The total loss function is calculated based on the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model and the actual values of the settling time, the final turbidity of the supernatant and the final concentration of heavy metals when the settling in the sedimentation tank is completed; 迭代训练至总损失函数满足预设要求时停止;Iterate the training until the total loss function meets the preset requirements; 调节模块,用于根据第一神经网络模型输出的沉降时间、上清液最终浊度和重金属最终浓度调整下一次尾矿污水的处理参数。The regulating module is used to adjust the treatment parameters of the next tailings wastewater according to the settling time, the final turbidity of the supernatant and the final concentration of heavy metals output by the first neural network model.
CN202410657632.9A 2024-05-26 2024-05-26 Treatment method for low-temperature Gao Zhuo heavy metal sewage leaked from tailing pond Active CN118270897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410657632.9A CN118270897B (en) 2024-05-26 2024-05-26 Treatment method for low-temperature Gao Zhuo heavy metal sewage leaked from tailing pond

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410657632.9A CN118270897B (en) 2024-05-26 2024-05-26 Treatment method for low-temperature Gao Zhuo heavy metal sewage leaked from tailing pond

Publications (2)

Publication Number Publication Date
CN118270897A CN118270897A (en) 2024-07-02
CN118270897B true CN118270897B (en) 2024-09-13

Family

ID=91640167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410657632.9A Active CN118270897B (en) 2024-05-26 2024-05-26 Treatment method for low-temperature Gao Zhuo heavy metal sewage leaked from tailing pond

Country Status (1)

Country Link
CN (1) CN118270897B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108298759A (en) * 2018-04-09 2018-07-20 北矿机电科技有限责任公司 A kind of urban sewage treatment system and method based on the separation of magnetic enhanced coagulation
CN111115783A (en) * 2020-01-11 2020-05-08 南京大学 Method for preparing poly-titanium coagulant and application thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4375832B2 (en) * 1999-02-19 2009-12-02 独立行政法人科学技術振興機構 Waste water treatment apparatus and waste water treatment method using magnetic sludge

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108298759A (en) * 2018-04-09 2018-07-20 北矿机电科技有限责任公司 A kind of urban sewage treatment system and method based on the separation of magnetic enhanced coagulation
CN111115783A (en) * 2020-01-11 2020-05-08 南京大学 Method for preparing poly-titanium coagulant and application thereof

Also Published As

Publication number Publication date
CN118270897A (en) 2024-07-02

Similar Documents

Publication Publication Date Title
Narges et al. Prediction of the optimal dosage of coagulants in water treatment plants through developing models based on artificial neural network fuzzy inference system (ANFIS)
CN111192236B (en) SVI measurement method based on activated sludge phase-contrast microscopic image
CN104182794B (en) Method for soft measurement of effluent total phosphorus in sewage disposal process based on neural network
CN117263464A (en) Energy-saving industrial sewage treatment system and sewage treatment method
Kuen et al. A machine learning approach for anaerobic reactor performance prediction using Long Short-Term Memory Recurrent Neural Network
Li et al. Study on optimal conditions of flocculation in deinking wastewater treatment
CN118270897B (en) Treatment method for low-temperature Gao Zhuo heavy metal sewage leaked from tailing pond
Yokoyama et al. Deep learning-based flocculation sensor for automatic control of flocculant dose in sludge dewatering processes during wastewater treatment
Hrnjica et al. Application of deep learning neural networks for nitrate prediction in the Klokot River, Bosnia and Herzegovina
Yaqub et al. Application of data-driven machine learning to predict propranolol and trimethoprim removal using a managed aquifer recharge system
Jia et al. Detecting the interaction between microparticles and biomass in biological wastewater treatment process with Deep Learning method
Wang et al. Predicting flocculant dosage in the drinking water treatment process using Elman neural network
Wang et al. MBR membrane fouling diagnosis based on improved residual neural network
Bui et al. Application of artificial neural networks on water and wastewater prediction: A review
Rustum Modelling activated sludge wastewater treatment plants using artificial intelligence techniques (fuzzy logic and neural networks)
Szeląg et al. Application of the model of sludge volume index forecasting to assess reliability and improvement of wastewater treatment plant operating conditions
CN115353223A (en) Laboratory wastewater treatment integrated method and device based on ANFIS model
Ruck et al. A neural network predictor of benthic community structure in the Canadian waters of the Laurentian Great Lakes
Li et al. Constructing a visual detection model for floc settling velocity using machine learning
Maachou et al. Energy consumption modeling in activated sludge process using coupling PCA-ANFIS approach
CN118343914A (en) MBR membrane pond heating temperature control system of integrated sewage treatment device
CN117923657A (en) Wastewater treatment method and system based on anaerobic ammonium oxidation reactor
Yusoff et al. Artificial intelligence in color classification of 3D-printed enhanced adsorbent in textile wastewater
Liu et al. ANN-based prediction of ammonia nitrogen for wastewater discharge indicators under carbon neutral trend
Kateriya et al. River water quality analysis and treatment using soft computing technique: a survey

Legal Events

Date Code Title Description
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