A method and device for intelligent analysis of the use effect of sewage treatment equipment
Through the intelligent analysis method of back-propagation neural network and improved particle swarm algorithm, the problem of low accuracy of analysis of the effect of sewage treatment equipment is solved, and higher accuracy of prediction and analysis of sewage treatment equipment is achieved.
Patent Information
- Application Number
- CN202311141831.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-09-06
AI Technical Summary
The effectiveness analysis of existing sewage treatment equipment has low accuracy and is difficult to meet the growing demand for water resources. Traditional methods are susceptible to interference from environmental factors.
An intelligent analysis method based on back-propagation neural network and improved particle swarm algorithm is adopted to train the model through historical sewage data, optimize model parameters, conduct time series analysis, obtain sewage effect indicators, compare import and export data, and improve the efficiency of sewage treatment equipment. Check accuracy.
It improves the prediction accuracy and inspection accuracy of sewage treatment equipment, enhances the analytical reliability of sewage treatment equipment, and enables more accurate assessment of sewage treatment effects.
Smart Images

Figure CN117610397B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of effect analysis of sewage treatment equipment, and in particular to an intelligent analysis method and device based on the use effect of sewage treatment equipment. Background Art
[0002] With the acceleration of urbanization and population growth, sewage treatment has become a key link in maintaining environmental health and sustainable development. Effective sewage treatment not only helps prevent water pollution and damage to the ecosystem, but also ensures the supply of clean water resources to meet people's domestic and industrial water needs. However, traditional sewage treatment methods are often inefficient and difficult to meet the growing demand. Therefore, the advancement of science and technology plays an increasingly important role in the field of sewage treatment.
[0003] At present, the effect analysis of sewage treatment equipment in my country mainly includes: physical method, biological method and model prediction analysis method. Among them, the physical method refers to the use of machine vision to obtain underwater images of sewage, and then perform pigment analysis based on the images to complete sewage effect detection. This method is easily affected by the environment, which leads to low accuracy of effect detection. When using biological methods to analyze the effect of sewage treatment equipment, since biological methods use biological indicators to evaluate the effect of sewage treatment, it takes a period of time to observe the response of the ecosystem, which is costly and easily affected by environmental factors. Therefore, the current sewage treatment equipment still faces the problem of low inspection accuracy. Summary of the invention
[0004] The present invention provides a method and device for intelligently analyzing the use effect of sewage treatment equipment, the main purpose of which is to solve the problem of low inspection accuracy of sewage treatment equipment.
[0005] To achieve the above object, the present invention provides an intelligent analysis method based on the use effect of sewage treatment equipment, the method comprising:
[0006] Acquire historical sewage data of the sewage treatment equipment, and perform model training on a preset back propagation neural network according to the historical sewage data to obtain a sewage neural network model;
[0007] Using an improved particle swarm algorithm to optimize the model parameters of the sewage neural network model to obtain a sewage model;
[0008] Performing time series analysis on the sewage model to obtain a sewage effect index model;
[0009] The sewage inlet data and the outlet data of the target sewage equipment are obtained, and the sewage effect index model is used to compare the sewage inlet data and the outlet data of the target sewage equipment to obtain the index effect data of the sewage treatment.
[0010] Optionally, the performing model training on a preset back propagation neural network according to the historical sewage data to obtain a sewage neural network model includes:
[0011] Standardizing the historical sewage data to obtain standardized data;
[0012] Initializing the back propagation neural network to obtain an initialized network;
[0013] Using the initialized network to forward transfer the standardized data to obtain a predicted output;
[0014] Performing a difference operation between the predicted output and the expected output of the historical sewage data acquired in advance to obtain an error signal;
[0015] The gradient descent method is used to adjust the initialization network parameters according to the error signal to obtain a sewage neural network model.
[0016] Optionally, the step of adjusting the initialization network parameters according to the error signal using a gradient descent method to obtain a sewage neural network model comprises:
[0017] Calculating partial derivatives of output layer neurons in the initialized network according to the error signal;
[0018] Performing weighted summation on the partial derivatives of the output layer neurons to obtain a calculation result;
[0019] Multiplying the calculated result by the derivative of the activation function in the initialized network to obtain a gradient;
[0020] The network parameters are updated using the gradient descent formula according to the gradient result to obtain a sewage neural network model.
[0021] Optionally, the method of optimizing the model parameters of the sewage neural network model by using an improved particle swarm algorithm to obtain a sewage model includes:
[0022] Counting the total number of model parameters of the sewage model;
[0023] Convert the model parameters into particles to obtain particle groups, particle positions and particle velocities;
[0024] Initializing the particle swarm to obtain an initial particle swarm;
[0025] Calculating the fitness values of the particles in the initial particle swarm using a pre-set fitness function;
[0026] Recording individual extreme values and global extreme values in the fitness;
[0027] Use the update formula to update the particle's velocity and position to obtain the updated particle;
[0028] Calculating the fitness values of the updated particles and comparing the fitness values to obtain an individual optimal solution and a global optimal solution;
[0029] Execute the preset number of steps of updating the particle's velocity and position using the update formula to obtain the global optimal parameters;
[0030] The model parameters are updated according to the global optimal parameters to obtain a sewage model.
[0031] Optionally, converting the model parameters into particles to obtain a particle group, a particle position and a particle velocity includes:
[0032] The model parameters are converted into binary numbers using binary coding to obtain particles;
[0033] Calculating the number of all the particles to obtain a particle group;
[0034] The random algorithm is used to perform random operations on each particle to obtain the particle position and particle velocity.
[0035] Optionally, calculating the fitness value of the updated particle and performing fitness comparison to obtain an individual optimal solution and a global optimal solution includes:
[0036] Calculating the updated fitness according to the updated particle position;
[0037] Select one updated particle after another as the target particle;
[0038] Comparing the fitness after the update with the fitness before the update;
[0039] If the fitness value after updating is higher than the fitness value before updating, the fitness value is taken as the individual optimal solution.
[0040] Optionally, performing time series analysis on the sewage model to obtain a sewage effect index model includes:
[0041] Inserting time series values into the historical sewage treatment data to obtain a numerical sequence;
[0042] Performing correlation analysis on the numerical sequence using an autocorrelation analysis method to obtain an analysis result;
[0043] Establishing an initial time series model according to the analysis results;
[0044] Performing parameter estimation on the time series initial model to obtain a time series prediction model;
[0045] Integrating the time series prediction model into the sewage model to obtain a sewage time series model;
[0046] The sewage time series model is trained using preset training data to obtain a sewage effect index model.
[0047] Optionally, the using an autocorrelation analysis method to perform correlation analysis on the numerical sequence to obtain an analysis result includes:
[0048] Performing a stationarity test on the numerical sequence;
[0049] If the numerical sequence passes the stationarity test, the numerical sequence is used as autocorrelation analysis data;
[0050] If the numerical sequence does not pass the stationarity test, performing difference processing on the numerical sequence to obtain autocorrelation analysis data;
[0051] The autocorrelation data is analyzed using an autocorrelation function to obtain an analysis result.
[0052] Optionally, the use of the sewage effect index model to compare the sewage inlet data and the outlet data of the target sewage equipment to obtain the index effect data of the sewage treatment includes:
[0053] Using the sewage effect index model to simulate the sewage inlet data of the target sewage equipment, to obtain sewage simulation data and sewage prediction data;
[0054] Compare the difference between the sewage simulation data and the sewage outlet data to obtain the current indicator data of the sewage;
[0055] If the current indicator data of the sewage is less than or equal to the preset indicator threshold, the sewage prediction data is compared with the pre-acquired sewage standard data to obtain the sewage prediction indicator data;
[0056] Obtaining sewage indicator effect data according to the sewage prediction indicator data and the sewage evaluation criteria obtained in advance;
[0057] If the current indicator data of the sewage is greater than the preset indicator threshold, the sewage indicator effect data is directly obtained.
[0058] In order to solve the above problems, the present invention also provides an intelligent analysis device based on the use effect of sewage treatment equipment, the device comprising:
[0059] A sewage neural network model building module obtains historical sewage data of the sewage treatment equipment, and performs model training on a preset back propagation neural network according to the historical sewage data to obtain a sewage neural network model;
[0060] A sewage model building module uses an improved particle swarm algorithm to optimize the model parameters of the sewage neural network model to obtain a sewage model;
[0061] A sewage effect index model building module performs time series analysis on the sewage model to obtain a sewage effect index model;
[0062] The sewage effect index model application module obtains the sewage inlet data and outlet data of the target sewage equipment, and uses the sewage effect index model to compare the sewage inlet data and outlet data of the target sewage equipment to obtain the index effect data of sewage treatment.
[0063] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned intelligent analysis method based on the use effect of sewage treatment equipment.
[0064] The present invention calculates the total number of model parameters of the sewage model, converts the model parameters into a particle group, calculates the fitness value of the particles in the particle group according to the particle group, analyzes and compares the fitness values of the particles, obtains the individual optimal solution and the global optimal solution, and then updates the model parameters, which can further improve the prediction accuracy of the sewage model, thereby improving the inspection accuracy of the sewage treatment equipment; by inserting the acquired historical sewage data into a time series, and then using the autocorrelation analysis method to perform correlation analysis on the data, and then establishing a time series model and integrating the time series model into the sewage model to obtain a sewage effect index model, it can predict the future treatment effect of sewage after sewage treatment analysis, and multiple inspections improve the accuracy and reliability of sewage treatment equipment inspection. Therefore, the intelligent analysis method, device, electronic device and computer-readable storage medium based on the use effect of sewage treatment equipment proposed in the present invention solve the problem of low inspection accuracy based on sewage treatment equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A schematic diagram of a flow chart of an intelligent analysis method for the use effect of a sewage treatment device provided in one embodiment of the present invention;
[0066] Figure 2 A schematic diagram of a process for obtaining a sewage neural network model according to an embodiment of the present invention;
[0067] Figure 3 A schematic diagram of a process for calculating the particles provided by an embodiment of the present invention;
[0068] Figure 4A functional module diagram of an intelligent analysis device for the use effect of sewage treatment equipment provided in one embodiment of the present invention.
[0069] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0070] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0071] The embodiment of the present application provides an intelligent analysis method for the use effect of sewage treatment equipment. The execution subject of the intelligent analysis method for the use effect of sewage treatment equipment includes but is not limited to at least one of the electronic devices such as the server and the terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the intelligent analysis method for the use effect of sewage treatment equipment can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as basic cloud computing services such as big data and artificial intelligence platforms.
[0072] Reference Figure 1 FIG. 1 is a flow chart of an intelligent analysis method for the use effect of a sewage treatment device according to an embodiment of the present invention. In this embodiment, the intelligent analysis method for the use effect of a sewage treatment device comprises:
[0073] S1. Obtain historical sewage data of a sewage treatment device, and perform model training on a preset back propagation neural network according to the historical sewage data to obtain a sewage neural network model.
[0074] In the embodiment of the present invention, the back propagation neural network model is trained according to the historical sewage data to obtain the sewage neural network model, so that the obtained sewage neural network model has the ability to analyze the parameter changes in the historical data.
[0075] In an embodiment of the present invention, the historical sewage data refers to the record of sewage sample data treated by sewage treatment equipment in the past period of time. These data may include sewage quality parameters at different time points, chemical substances used in the treatment process and treatment effect information.
[0076] In an embodiment of the present invention, the preset back propagation neural network includes an input layer, an output layer, a hidden layer, neurons, connections, thresholds and activation functions, wherein the input layer is a layer for receiving input data, and each input node represents an input data; the output layer is the last layer of the network, and outputs the prediction result of the model, wherein the number of output layer nodes is a preset number; the hidden layer is an intermediate layer between the input layer and the output layer, and may have one or more hidden layers, each hidden layer consisting of multiple neurons; neurons are basic units in the back propagation neural network, each neuron receives input from the previous layer and generates output using an activation function; the activation function is to perform weighted and nonlinear transformation on the input data to obtain the output of the neuron, and each neuron has an activation function; the connection is a connection between neurons, and each connection has a connection weight; the threshold is the decision threshold of each neuron when calculating the output, which is used to determine whether the neuron is activated and to adjust the sensitivity of the neuron output.
[0077] In the embodiment of the present invention, the model training of the preset back propagation neural network is performed according to the historical sewage data to obtain the sewage neural network model, including:
[0078] Standardizing the historical sewage data to obtain standardized data;
[0079] Initializing the back propagation neural network to obtain an initialized network;
[0080] Using the initialized network to forward transfer the standardized data to obtain a predicted output;
[0081] Performing a difference operation between the predicted output and the expected output of the historical sewage data acquired in advance to obtain an error signal;
[0082] The gradient descent method is used to adjust the initialization network parameters according to the error signal to obtain a sewage neural network model.
[0083] In an embodiment of the present invention, standardization can be performed using a standard deviation standardization method or a minimum-maximum standardization method. When the standard deviation standardization method is used for standardization, since the standard deviation standardization method subtracts the mean from the data, the mean of the standardized data is 0, thereby reducing the deviation factors in the data, making the obtained standardized data more reliable; when the minimum-maximum standardization method is used for standardization, since the minimum-maximum standardization method linearly scales the data to a given range, the relative relationship between the data is retained, and the obtained standardized data is more accurate.
[0084] In the embodiment of the present invention, the step of adjusting the initialization network parameters according to the error signal using the gradient descent method to obtain the sewage neural network model includes:
[0085] S21, calculating the partial derivatives of the output layer neurons in the initialized network according to the error signal;
[0086] S22, performing weighted summation on the partial derivatives of the output layer neurons to obtain a calculation result;
[0087] S23, multiplying the calculation result by the derivative of the activation function in the initialized network to obtain a gradient;
[0088] S24. Update network parameters using a gradient descent formula according to the gradient result to obtain a sewage neural network model.
[0089] In the embodiment of the present invention, the gradient descent formula is:
[0090]
[0091] Wherein, θ' is the updated network parameter, θ is the network parameter before the update, and α is a preset constant. is the gradient.
[0092] In an embodiment of the present invention, by initializing a preset back-propagation neural network model and then using the historical sewage treatment data to train the initialized model, it helps to improve the performance and generalization ability of the model, provide accurate and reliable sewage analysis data, and then obtain the treatment effect data of the sewage treatment equipment based on the analysis data.
[0093] S2. Optimizing the model parameters of the sewage neural network model using an improved particle swarm algorithm to obtain a sewage model.
[0094] In the embodiment of the present invention, the use of the improved particle swarm algorithm to optimize the model parameters of the sewage neural network model can reduce the sensitivity of the model to input data and noise, thereby improving the accuracy of the sewage model.
[0095] In the embodiment of the present invention, the model parameters refer to the connection weights and thresholds in the sewage neural network model.
[0096] In the embodiment of the present invention, the improved particle swarm algorithm is used to optimize the model parameters of the sewage neural network model to obtain the sewage model, including:
[0097] Counting the total number of model parameters of the sewage model;
[0098] Convert the model parameters into particles to obtain particle groups, particle positions and particle velocities;
[0099] Initializing the particle swarm to obtain an initial particle swarm;
[0100] Calculating the fitness values of the particles in the initial particle swarm using a pre-set fitness function;
[0101] Recording individual extreme values and global extreme values in the fitness;
[0102] Use the update formula to update the particle's velocity and position to obtain the updated particle;
[0103] Calculating the fitness values of the updated particles and comparing the fitness values to obtain an individual optimal solution and a global optimal solution;
[0104] Execute the preset number of steps of updating the particle's velocity and position using the update formula to obtain the global optimal parameters;
[0105] The model parameters are updated according to the global optimal parameters to obtain a sewage model.
[0106] In the embodiment of the present invention, converting the model parameters into particles to obtain a particle group, a particle position, and a particle velocity includes:
[0107] S31, converting the model parameters into binary numbers using binary coding to obtain particles;
[0108] S32, calculating the number of all the particles to obtain a particle group;
[0109] S33. Perform random operations on each particle using a random algorithm to obtain the particle position and particle velocity.
[0110] In an embodiment of the present invention, the random algorithm may be a pseudo-random number algorithm or a normal distribution random number algorithm to perform random operations on particles. When a pseudo-random number algorithm is used to perform random operations, since pseudo-random numbers usually generate uniformly distributed random numbers, random numbers can be generated evenly within a certain range, so the particle position and particle velocity are obtained with higher accuracy; when a normal distribution random number algorithm is used to perform random operations on particles, since the normal distribution random number algorithm can better simulate the actual situation of the problem, the particle position and particle velocity are obtained with higher reliability.
[0111] In the embodiment of the present invention, the particle velocity is updated using the following formula:
[0112] v(t+1)=w*v(t)+c1*rand1*(pbest-x(t))+c2*rand2*(gbest-x(t))
[0113] Among them, v is the particle velocity, w is the preset inertia weight, c1 and c2 are the preset individual learning factor and social learning factor respectively, rand1 and rand2 are random constants in the range of [0,1], pbest is the individual optimal solution of the particle, gbest is the global optimal solution of the particle, and t is the number of updates.
[0114] In the embodiment of the present invention, the particle position is updated using the following formula:
[0115] x(t+1)=x(t)+v(t+1)
[0116] Among them, x(t+1) is the updated particle position, x(t) is the particle position before the update, v(t+1) is the particle velocity, and t is the number of updates.
[0117] In an embodiment of the present invention, the fitness value of the particles in the particle swarm can be calculated using a fitness function calculation method or a training simulation method. When the fitness function calculation method is used to calculate the fitness value, since the fitness function calculation method uses the position of the particle as the input of the fitness function, and uses the value of the obtained fitness function as the fitness value, the obtained fitness value is more efficient. When the fitness value of the particles in the particle swarm is calculated using a training simulation method, since the training simulation method is to obtain a set of training data, compare the simulated value of the sewage neural network model with the actual value to obtain an error, and then use the error value as the input of the fitness function to obtain the fitness value, the obtained fitness value is more reliable.
[0118] In the embodiment of the present invention, the calculation of the fitness value of the updated particle and the fitness comparison to obtain the individual optimal solution and the global optimal solution include:
[0119] Calculating the updated fitness according to the updated particle position;
[0120] Select one updated particle after another as the target particle;
[0121] Comparing the fitness after the update with the fitness before the update;
[0122] If the fitness value after updating is higher than the fitness value before updating, the fitness value is taken as the individual optimal solution.
[0123] All particles in the initial particle swarm are sorted in descending order for their individual optimal solutions to obtain a descending sorting result, and the fitness of the particle corresponding to the first descending sorting result is selected as the global optimal solution.
[0124] In the embodiment of the present invention, by optimizing the sewage neural network model using the improved particle swarm algorithm to obtain a sewage model, the prediction accuracy of the sewage model can be improved, and thus the analysis accuracy of the use effect of the sewage treatment equipment can be improved.
[0125] S3. Perform time series analysis on the sewage model to obtain a sewage effect index model.
[0126] In an embodiment of the present invention, the time series analysis of the sewage model to obtain a sewage effect index model enables the sewage model to simulate the sewage index after a preset period of time, and can further analyze whether the sewage treatment equipment can achieve the expected sewage treatment index, thereby improving the accuracy of the analysis of the use effect of the sewage treatment equipment.
[0127] In the embodiment of the present invention, the time series analysis of the sewage model is performed to obtain the sewage effect index model, including:
[0128] Inserting time series values into the historical sewage treatment data to obtain a numerical sequence;
[0129] Performing correlation analysis on the numerical sequence using an autocorrelation analysis method to obtain an analysis result;
[0130] Establishing an initial time series model according to the analysis results;
[0131] Performing parameter estimation on the time series initial model to obtain a time series prediction model;
[0132] Integrating the time series prediction model into the sewage model to obtain a sewage time series model;
[0133] The sewage time series model is trained using preset training data to obtain a sewage effect index model.
[0134] In an embodiment of the present invention, linear interpolation or spline interpolation can be used to insert time series values into the historical sewage treatment data. When linear interpolation is used for interpolation, the efficiency of the obtained numerical sequence is higher because the method of linear interpolation is simple; when spline interpolation is used to insert time series values, the accuracy of the obtained numerical sequence is higher because the spline interpolation method can fit the curve of the time series more accurately.
[0135] In the embodiment of the present invention, the use of the autocorrelation analysis method to perform correlation analysis on the numerical sequence to obtain the analysis result includes:
[0136] Performing a stationarity test on the numerical sequence;
[0137] If the numerical sequence passes the stationarity test, the numerical sequence is used as autocorrelation analysis data;
[0138] If the numerical sequence does not pass the stationarity test, performing difference processing on the numerical sequence to obtain autocorrelation analysis data;
[0139] The autocorrelation data is analyzed using an autocorrelation function to obtain an analysis result.
[0140] In an embodiment of the present invention, an augmented Dickey-Fuller test or a Dickey-Fuller test can be used to perform a stationarity test; when the augmented Dickey-Fuller test is used to perform a stationarity test, since its own correlation can be excluded during the test, the autocorrelation analysis data obtained by the stationarity test is more accurate; when the Dickey-Fuller test is used to perform a stationarity test, since the result is obtained by testing the residual term, the autocorrelation analysis data obtained by the stationarity test is more efficient.
[0141] In an embodiment of the present invention, the differential processing can be a first-order differential method or a seasonal differential method to obtain the autocorrelation data; when the first-order differential method is used to obtain the autocorrelation data, since the first-order differential method obtains the autocorrelation data by subtracting data from adjacent time points, the obtained data will be more stable and the effect will be better; when the seasonal differential method is used for differential processing, since the seasonal differential is achieved by eliminating the periodic trend of the data, the obtained data can reduce the influence of seasonal factors and the obtained data will be more accurate.
[0142] In an embodiment of the present invention, by performing time series analysis on the historical sewage data to obtain a time series prediction model, and then integrating the time series prediction model into the sewage model to obtain a sewage effect index model, the sewage index data for a period of time after the sewage is treated by the sewage treatment equipment can be more accurately predicted, thereby improving the prediction accuracy of the sewage treatment equipment.
[0143] S4. Obtain the sewage inlet data and the outlet data of the target sewage equipment, and use the sewage effect index model to compare the sewage inlet data and the outlet data of the target sewage equipment to obtain the index effect data of sewage treatment.
[0144] In the embodiment of the present invention, by using the sewage effect index model to evaluate the sewage outlet data of the target sewage equipment according to the sewage inlet data of the sewage equipment, detailed index effect data can be obtained, thereby improving the inspection accuracy of the target sewage equipment.
[0145] In the embodiment of the present invention, the sewage effect index model is used to compare the sewage inlet data and the outlet data of the target sewage equipment to obtain the index effect data of the sewage treatment, including:
[0146] Using the sewage effect index model to simulate the sewage inlet data of the target sewage equipment, to obtain sewage simulation data and sewage prediction data;
[0147] Compare the difference between the sewage simulation data and the sewage outlet data to obtain the current indicator data of the sewage;
[0148] If the current indicator data of the sewage is less than or equal to the preset indicator threshold, the sewage prediction data is compared with the pre-acquired sewage standard data to obtain the sewage prediction indicator data;
[0149] Obtaining sewage indicator effect data according to the sewage prediction indicator data and the sewage evaluation criteria obtained in advance;
[0150] If the current indicator data of the sewage is greater than the preset indicator threshold, the sewage indicator effect data is directly obtained.
[0151] In an embodiment of the present invention, by utilizing the sewage effect index model to simulate the sewage inlet data of the target sewage equipment, sewage simulation data and sewage prediction data are obtained, and then the sewage simulation data is compared with the sewage outlet data, and the sewage prediction data is compared with the sewage standard for a period of time obtained in advance to obtain the sewage treatment index effect data, the sewage treatment index effect data of the sewage treatment equipment can be obtained more accurately.
[0152] like Figure 4 1 is a functional module diagram of an intelligent analysis device for the use effect of a sewage treatment device provided in one embodiment of the present invention.
[0153] The intelligent analysis device 400 for the use effect of sewage treatment equipment according to the present invention can be installed in an electronic device. According to the functions to be implemented, the intelligent analysis device 400 for the use effect of sewage treatment equipment can include a sewage neural network model construction module 101, a sewage model construction module 102, a sewage effect index model construction module 103, and a sewage effect index model application module 104. The module according to the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0154] In this embodiment, the functions of each module / unit are as follows:
[0155] The sewage neural network model building module 101 obtains historical sewage data of the sewage treatment equipment, and performs model training on a preset back propagation neural network according to the historical sewage data to obtain a sewage neural network model;
[0156] The sewage model building module 102 uses an improved particle swarm algorithm to optimize the model parameters of the sewage neural network model to obtain a sewage model;
[0157] The sewage effect index model building module 103 performs time series analysis on the sewage model to obtain a sewage effect index model;
[0158] The sewage effect index model application module 104 obtains sewage inlet data and outlet data of a target sewage device, and uses the sewage effect index model to perform an index comparison on the sewage inlet data and outlet data of the target sewage device to obtain index effect data of sewage treatment.
[0159] In detail, the modules described in the intelligent analysis device 400 based on the use effect of sewage treatment equipment described in the embodiment of the present invention adopt the same technical means as the intelligent analysis method based on the use effect of sewage treatment equipment described in the accompanying drawings when in use, and can produce the same technical effects, which will not be repeated here.
[0160] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0161] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. An intelligent analysis method based on the use effect of sewage treatment equipment, characterized in that: The method comprises: Acquire historical sewage data of the sewage treatment equipment, and perform model training on a preset back propagation neural network according to the historical sewage data to obtain a sewage neural network model; Using an improved particle swarm algorithm to optimize the model parameters of the sewage neural network model to obtain a sewage model; Performing time series analysis on the sewage model to obtain a sewage effect index model; Obtaining sewage inlet data and outlet data of a target sewage device, and using the sewage effect index model to compare the sewage inlet data and outlet data of the target sewage device to obtain index effect data of sewage treatment; Wherein, the time series analysis of the sewage model is performed to obtain the sewage effect index model, including: Inserting time series values into the historical sewage treatment data to obtain a numerical sequence; Performing correlation analysis on the numerical sequence using an autocorrelation analysis method to obtain an analysis result; Establishing an initial time series model according to the analysis results; Performing parameter estimation on the time series initial model to obtain a time series prediction model; Integrating the time series prediction model into the sewage model to obtain a sewage time series model; The sewage time series model is trained using preset training data to obtain a sewage effect index model.
2. The intelligent analysis method based on the use effect of sewage treatment equipment according to claim 1 is characterized in that: The method of training a preset back propagation neural network model according to the historical sewage data to obtain a sewage neural network model includes: Standardizing the historical sewage data to obtain standardized data; Initializing the back propagation neural network to obtain an initialized network; Using the initialized network to forward transfer the standardized data to obtain a predicted output; Performing a difference operation between the predicted output and the expected output of the historical sewage data acquired in advance to obtain an error signal; The gradient descent method is used to adjust the initialization network parameters according to the error signal to obtain a sewage neural network model.
3. The intelligent analysis method based on the use effect of sewage treatment equipment according to claim 2 is characterized in that: The method of using the gradient descent method to adjust the initialization network parameters according to the error signal to obtain the sewage neural network model includes: Calculating partial derivatives of output layer neurons in the initialized network according to the error signal; Performing weighted summation on the partial derivatives of the output layer neurons to obtain a calculation result; Multiplying the calculated result by the derivative of the activation function in the initialized network to obtain a gradient; The network parameters are updated using the gradient descent formula according to the gradient result to obtain a sewage neural network model.
4. The intelligent analysis method based on the use effect of sewage treatment equipment according to claim 1 is characterized in that: The improved particle swarm algorithm is used to optimize the model parameters of the sewage neural network model to obtain a sewage model, including: Counting the total number of model parameters of the sewage model; Convert the model parameters into particles to obtain particle groups, particle positions and particle velocities; Initializing the particle swarm to obtain an initial particle swarm; Calculating the fitness values of the particles in the initial particle swarm using a pre-set fitness function; Recording individual extreme values and global extreme values in the fitness; Use the update formula to update the particle's velocity and position to obtain the updated particle; Calculating the fitness values of the updated particles and comparing the fitness values to obtain an individual optimal solution and a global optimal solution; Execute the preset number of steps of updating the particle's velocity and position using the update formula to obtain the global optimal parameters; The model parameters are updated according to the global optimal parameters to obtain a sewage model.
5. The intelligent analysis method based on the use effect of sewage treatment equipment according to claim 4 is characterized in that: The step of converting the model parameters into particles to obtain a particle group, a particle position and a particle velocity includes: The model parameters are converted into binary numbers using binary coding to obtain particles; Calculating the number of all the particles to obtain a particle group; The random algorithm is used to perform random operations on each particle to obtain the particle position and particle velocity.
6. The intelligent analysis method based on the use effect of sewage treatment equipment according to claim 4 is characterized in that: The step of calculating the fitness value of the updated particle and performing fitness comparison to obtain an individual optimal solution and a global optimal solution includes: Calculating the updated fitness according to the updated particle position; Select one updated particle after another as the target particle; Comparing the fitness after the update with the fitness before the update; If the fitness value after updating is higher than the fitness value before updating, the fitness value is taken as the individual optimal solution.
7. The intelligent analysis method based on the use effect of sewage treatment equipment according to claim 1 is characterized in that: The method of using the autocorrelation analysis method to perform correlation analysis on the numerical sequence to obtain analysis results includes: Performing a stationarity test on the numerical sequence; If the numerical sequence passes the stationarity test, the numerical sequence is used as autocorrelation analysis data; If the numerical sequence does not pass the stationarity test, performing difference processing on the numerical sequence to obtain autocorrelation analysis data; The autocorrelation analysis data is analyzed using an autocorrelation function to obtain an analysis result.
8. The intelligent analysis method based on the use effect of sewage treatment equipment according to claim 6 is characterized in that: The method of using the sewage effect index model to compare the sewage inlet data and the outlet data of the target sewage equipment to obtain the index effect data of sewage treatment includes: Using the sewage effect index model to simulate the sewage inlet data of the target sewage equipment, to obtain sewage simulation data and sewage prediction data; Compare the difference between the sewage simulation data and the sewage outlet data to obtain the current indicator data of the sewage; If the current indicator data of the sewage is less than or equal to the preset indicator threshold, the sewage prediction data is compared with the pre-acquired sewage standard data to obtain the sewage prediction indicator data; Obtaining sewage indicator effect data according to the sewage prediction indicator data and the sewage evaluation criteria obtained in advance; If the current indicator data of the sewage is greater than the preset indicator threshold, the sewage indicator effect data is directly obtained.
9. An intelligent analysis device for the use effect of sewage treatment equipment, characterized in that: The device comprises: A sewage neural network model building module obtains historical sewage data of the sewage treatment equipment, and performs model training on a preset back propagation neural network according to the historical sewage data to obtain a sewage neural network model; A sewage model building module uses an improved particle swarm algorithm to optimize the model parameters of the sewage neural network model to obtain a sewage model; A sewage effect index model building module performs time series analysis on the sewage model to obtain a sewage effect index model; A sewage effect index model application module obtains sewage inlet data and outlet data of a target sewage device, and uses the sewage effect index model to compare the sewage inlet data and outlet data of the target sewage device to obtain the index effect data of sewage treatment; Wherein, the time series analysis of the sewage model is performed to obtain the sewage effect index model, including: Inserting time series values into the historical sewage treatment data to obtain a numerical sequence; Performing correlation analysis on the numerical sequence using an autocorrelation analysis method to obtain an analysis result; Establishing an initial time series model according to the analysis results; Performing parameter estimation on the time series initial model to obtain a time series prediction model; Integrating the time series prediction model into the sewage model to obtain a sewage time series model; The sewage time series model is trained using preset training data to obtain a sewage effect index model.
