A method and control system for emergency treatment of tidal sewage on highways
By introducing movable intelligent treatment devices and deep learning methods to predict tidal sewage volume in sewage treatment facilities, the problem of insufficient processing capacity of sewage treatment facilities during extreme weather and peak traffic periods has been solved, achieving efficient sewage treatment and reducing environmental pollution. and waste of resources.
Patent Information
- Application Number
- CN202410764199.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-14
AI Technical Summary
During extreme weather events and peak traffic periods, sewage treatment facilities have insufficient processing capacity, resulting in direct discharge of sewage, causing environmental pollution.
Design movable intelligent treatment devices and backup drainage pipes, combine deep learning algorithms to predict tidal sewage volume, and formulate scheduling plans to optimize the location and processing capacity of the treatment devices to ensure efficient treatment of excess sewage.
Maximize the treatment of untreatable sewage, reduce the use and moving distance of treatment devices, improve treatment efficiency, reduce resource waste, and relieve the pressure on sewage treatment facilities.
Smart Images

Figure CN118333355B
Abstract
Description
Technical Field
[0001] The invention relates to the field of pollution emergency control, and more specifically, to a method and a control system based on highway tidal sewage emergency treatment. Background Art
[0002] Tidal sewage mainly refers to the situation where the urban sewage pipe system is subject to extreme loads during certain periods of time, resulting in insufficient drainage capacity. In the drainage system of highways, the causes of tidal sewage include: extreme weather events or extreme weather combined with traffic peaks;
[0003] Extreme weather events, such as heavy rains, can generate large amounts of rainwater and sewage far greater than normal rainfall. In such cases, sewage treatment facilities may find it difficult to fully cope with the instantaneous large flows.
[0004] If extreme weather such as heavy rain occurs during rush hour, vehicle pollutants and domestic sewage in the service area will be superimposed on the large amount of rainwater, which may exceed the limits of sewage treatment facilities.
[0005] Among them, sewage treatment facilities are equipment and systems specially designed to treat and purify wastewater and sewage generated from industry, agriculture, residential areas and other sources, and the drainage system through existing highways is a network of pipes that guide such wastewater and sewage to sewage treatment facilities;
[0006] Wastewater treatment facilities include, but are not limited to, sewage collection systems, pretreatment equipment, sedimentation tanks, biological treatment systems, filters, disinfection devices and other components, which are used to treat wastewater into water resources that can be safely discharged or recycled.
[0007] When faced with special circumstances such as extreme weather events and rush hour traffic, sewage treatment facilities may face the challenge of insufficient treatment capacity leading to direct discharge of sewage. Sewage that cannot be treated by sewage treatment facilities can only be discharged directly, causing pollution to the environment. Summary of the invention
[0008] The present invention provides a method and control system for tidal sewage emergency treatment based on highways, which solves the technical problem in related technologies that sewage treatment facilities may face the challenge of insufficient treatment capacity leading to direct discharge of sewage when facing special circumstances such as extreme weather events and traffic rush hours. Sewage that cannot be treated by sewage treatment facilities can only be discharged directly, causing pollution to the environment.
[0009] The present invention provides a method for emergency treatment of highway tidal sewage, comprising the following steps:
[0010] S100: A mobile intelligent treatment unit designed to treat tidal sewage on highways and a backup drainage pipeline to receive excess tidal sewage;
[0011] S200: Using deep learning algorithms to predict future highway tidal sewage volumes;
[0012] S300: formulating a scheduling plan for multiple mobile intelligent treatment devices according to the predicted tidal sewage volume of the highway, the scheduling plan including the target position of the mobile intelligent treatment device and the treatment volume of the mobile intelligent treatment device in each time period after the start of rainfall;
[0013] S400: When the predicted tidal sewage volume on the highway appears, the scheduling plan formulated in S300 is executed to control the mobile intelligent treatment device to treat the excess tidal sewage.
[0014] Further, in step S200, the future tidal sewage volume of the highway is predicted by a deep learning algorithm, including the following steps:
[0015] S210: When predicting tidal sewage volume, the following raw data need to be collected, including historical tidal sewage volume, weather data, traffic conditions, water quality monitoring, and municipal infrastructure;
[0016] S220: preprocessing the original data in step S210 to handle missing data and abnormal values;
[0017] S230: performing feature selection on the raw data preprocessed in step S220 to obtain selected features, where the selected features contribute to the prediction of tidal sewage volume;
[0018] S240: processing the features selected in step S230, including standardization, normalization, encoding processing and data combination;
[0019] S250: Deep learning algorithm for prediction using long short-term memory network;
[0020] S260: Use historical data to train the LSTM model and verify the prediction accuracy of the LSTM model;
[0021] S270: Determine the time span of the prediction, and determine the time granularity of the prediction according to the demand;
[0022] S280: Generate a predicted value of future tidal sewage volume based on the output of the LSTM model.
[0023] Further, in step S250, the long short-term memory network includes a plurality of LSTM units, each of which includes a forget gate, an input gate, an output gate and a memory unit, and its expression is as follows:
[0024] Forget Gate: ; ;
[0025] in, is applied to the hidden state at the previous time step The weight matrix of is applied to the current time step The input weight matrix; is the input of the current time step, is the hidden state of the previous time step, is the weight matrix of the forget gate, The dimension is ,in is the number of hidden units, is the number of input features, is the bias of the forget gate, is the Sigmoid activation function,
[0026] is the forget gate parameter;
[0027] Input Gate: ; ;
[0028] in, is applied to the hidden state at the previous time step The weight matrix of is applied to the current time step input The weight matrix of The dimension is , is the input gate parameter;
[0029] Memory Unit:
[0030] ;
[0031] in, , is the weight matrix and bias of the input gate, is the previous time step hidden state applied to the memory cell The weight matrix of is the current time step input applied to the memory cell The weight matrix of , is the weight matrix and bias of the candidate memory unit, is the hyperbolic tangent activation function, is the candidate memory unit state;
[0032] Update the memory cell status: ;
[0033] in, is the updated memory cell state, is the memory cell state at the previous time step, is the candidate memory unit state;
[0034] Output Gate: ;
[0035] in, is the output gate parameter, , is the weight matrix and bias of the output gate, is the Sigmoid activation function;
[0036] Output the hidden state at the current time step: ;
[0037] in, In hidden state.
[0038] Furthermore, in step 260, the following steps are included:
[0039] S261: Data partitioning: divide data into training set, validation set and test set;
[0040] Collect and organize historical data, record it as data set D, and divide data set D into training set , validation set and test set ;
[0041] S262: Model training, using the training set to perform model training;
[0042] S263: Model validation, using the validation set to evaluate model performance;
[0043] S264: Model evaluation: Evaluate the prediction accuracy of the final model through the test set.
[0044] Furthermore, in step S262, the training set is used to perform model training, and the steps are as follows:
[0045] a. Build the model structure, define the model hierarchy and connection relationship;
[0046] b. Choose a suitable loss function and optimizer ;
[0047] c. The training set Input the model and perform forward propagation to calculate the predicted value ;
[0048] d. According to the target value and predicted values Calculate the loss value ;
[0049] e. Update the model parameters through the back-propagation algorithm to minimize the loss function.
[0050] Further, in step S263, the model performance is evaluated using the validation set, and the steps are as follows:
[0051] a. Use the trained model to validate the set Make predictions and get the predicted values of the validation set ;
[0052] b. Calculate validation loss and evaluate the model on the validation set Performance on
[0053] c. Use monitoring indicators to determine whether there is overfitting or underfitting.
[0054] Furthermore, in step S264, the prediction accuracy of the final model is evaluated by the test set, and the steps are as follows:
[0055] a. Use the optimal model to test the set Make a prediction and get the predicted value ;
[0056] b. Calculate test loss and other evaluation indicators;
[0057] c. Record the test results and evaluate the final performance of the model on unseen data;
[0058] d. Use the optimal model to predict the test set and obtain the predicted value;
[0059] In step S264, the following contents are also included:
[0060] Divide the data set D into k subsets;
[0061] Use one of the subsets as the validation set and the remaining k−1 subsets as the training set to train and validate the model;
[0062] Calculate the mean of the k validation results as the final performance evaluation indicator of the model.
[0063] Furthermore, in step S280, a predicted value of future tidal sewage volume is generated, and the steps are as follows:
[0064] Apply the trained model to the input data within the prediction time span to generate the predicted value for each time step;
[0065] Use time series forecasting methods or regression methods, input the most recent known data points, and make multi-step forecasts step by step;
[0066] According to the time granularity and span, the forecast results are summarized to form a complete forecast curve;
[0067] Arrange the data series obtained from the complete forecast curve into a time series format;
[0068] Map the predicted value to the corresponding time point according to the time span and granularity;
[0069] Visualize or record the prediction results.
[0070] The present invention also provides a control system based on highway tidal sewage emergency treatment, comprising:
[0071] Tidal sewage treatment plant design module: Design a mobile intelligent treatment plant for treating tidal sewage on highways and a backup drainage pipeline for receiving excess tidal sewage;
[0072] Tidal sewage volume prediction module: uses deep learning algorithms to predict future tidal sewage volumes on highways;
[0073] Treatment device scheduling plan formulation module: According to the predicted tidal sewage volume of the highway, a scheduling plan for multiple mobile intelligent treatment devices is formulated. The scheduling plan includes the target location of the mobile intelligent treatment device and the processing volume of the mobile intelligent treatment device in each time period after the start of rainfall;
[0074] Treatment device scheduling execution module: When the predicted tidal sewage volume on the highway appears, the scheduling plan formulated in the treatment device scheduling plan formulation module is executed to control the mobile intelligent treatment device to treat the excess tidal sewage.
[0075] A storage medium stores non-transitory computer-readable instructions for executing one or more steps of the above-mentioned method for emergency treatment of highway tidal sewage.
[0076] The beneficial effects of the present invention are as follows: the present invention provides a movable intelligent treatment device and an optimized scheduling scheme, combined with a deep learning algorithm to predict future tidal sewage volume, thereby achieving the goals of maximizing the treatment of untreatable sewage, minimizing the use of treatment devices, and minimizing the moving distance. It can efficiently cope with tidal sewage conditions on highways, improve treatment efficiency, reduce resource waste, and alleviate the treatment pressure of existing sewage treatment facilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 It is a flow chart of a method for emergency treatment of highway tidal sewage proposed by the present invention;
[0078] Figure 2The present invention provides a system block diagram of a control system based on highway tidal sewage emergency treatment.
[0079] In the figure: 101, tidal sewage treatment device design module; 102, tidal sewage volume prediction module; 103, treatment device scheduling plan formulation module; 104, treatment device scheduling execution module. DETAILED DESCRIPTION
[0080] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and the functions and arrangements of the elements discussed may be changed without departing from the scope of protection of the contents of this specification. Each example may omit, replace or add various processes or components as needed. In addition, the features described relative to some examples may also be combined in other examples.
[0081] See also Figure 1-Figure 2 As shown, a method for emergency treatment of highway tidal sewage includes the following steps:
[0082] S100: A mobile intelligent treatment unit designed to treat tidal sewage on highways and a backup drainage pipeline to receive excess tidal sewage;
[0083] In one embodiment of the present invention, the mobile intelligent treatment device needs to have a certain treatment capacity to meet the needs of different sewage treatment volumes. At the same time, the mobile intelligent treatment device needs to integrate several sewage treatment components, and the several components can remove pollutants in the sewage based on biological treatment or chemical treatment methods. The mobile intelligent treatment device is also equipped with sensors to monitor the raw water quality and treatment effect;
[0084] It should be noted that the mobile intelligent processing device can be remotely controlled and has the functions of automatic monitoring and fault diagnosis;
[0085] It is also important to note that the mobile intelligent treatment device can be quickly connected to the pipe system connected to the existing sewage treatment facilities to achieve tidal drainage to the existing drainage system.
[0086] In one embodiment of the present invention, in step S100, the backup drainage pipeline to which the mobile intelligent processing device is connected generally refers to a backup or temporary pipeline network for handling water treatment or drainage needs in emergencies or emergency situations.
[0087] When designing backup sewer pipes, they usually have sufficient capacity and drainage capability to cope with large amounts of water flow caused by emergencies. Backup sewer pipes can be connected to the main sewer system to divert or handle overloaded sewage flows. Backup sewer pipes can cope with natural disasters such as floods and hurricane-induced floods, as well as pollution incidents such as sewage overflows and chemical leaks.
[0088] The backup drainage pipes are also equipped with monitoring equipment, which is used to monitor water flow conditions in real time, adjust water flow and ensure the normal operation of the system.
[0089] The application scenarios of its backup drainage pipes are mainly to deal with emergency sewage discharge situations such as sewage pipe rupture and facility failure, or to deal with pollution incidents caused by chemical pollutant leakage, and to provide temporary drainage solutions during the maintenance of major sewage treatment facilities.
[0090] Through movable intelligent treatment devices and backup drainage pipe systems, part of the tidal sewage can be treated at the source, reducing the load entering the main sewage treatment facilities and optimizing the work plan of the sewage treatment facilities so that they can better handle the phased increase in sewage volume.
[0091] S200: Using deep learning algorithms to predict future highway tidal sewage volumes;
[0092] In one embodiment of the present invention, in step S200, the tidal sewage volume is predicted, and the specific steps are as follows:
[0093] S210: When predicting tidal sewage volume, the following raw data needs to be collected, including historical tidal sewage volume, weather data, traffic conditions, water quality monitoring, and municipal infrastructure.
[0094] It should be noted that the acquisition of data specifically includes the following:
[0095] Historical tidal sewage volume data: Obtain tidal sewage volume data from historical records, including data for different time periods and locations, which are collected from real-time collection systems such as sewage treatment facilities, monitoring sites, sensors, etc., including daily, hourly or even shorter time intervals of sewage treatment plant outlet sewage volume data, as well as actual flow records of possible discharge outlets;
[0096] Weather data refers to real-time meteorological observation data, including rainfall, precipitation intensity, temperature, humidity, wind speed, etc.; real-time meteorological observation data is obtained through open data platforms, including open data platforms of governments or meteorological organizations, while historical weather data includes past weather conditions, historical rainfall and runoff records;
[0097] Traffic condition data: Traffic flow data on highways and urban roads, including real-time and historical data. Real-time data is obtained through the traffic management center, which has a monitoring system that can collect and analyze road and traffic condition data in real time. Historical data storage is obtained through historical traffic data saved in the center, which can be used to analyze and predict traffic conditions.
[0098] Water quality monitoring data: pollutant concentration data in sewage, historical water quality monitoring records, where water quality monitoring data can be obtained through the data sharing platform, and water quality monitoring data can be provided to government departments, research institutions and the public through the data sharing platform;
[0099] Municipal infrastructure data: sewage treatment plant and pump station operation data, municipal pipe network operation data, among which municipal infrastructure data is obtained through the facility monitoring network and operation and maintenance center;
[0100] S220: Preprocess the above raw data to process missing data and abnormal values. The specific processing process is as follows:
[0101] Handling missing data: Use interpolation, mean substitution, or deletion of incomplete records to handle missing data;
[0102] Dealing with outliers: Identify and deal with outliers in the data, including through boxplots and Z-scores;
[0103] Conversion and format unification: Ensure the consistency and readability of all data formats, such as unified time format and consistent units.
[0104] S230: Select features from the above pre-processed raw data to obtain selected features, and determine features that have an impact on tidal sewage volume prediction, such as weather conditions, historical data, etc. Specifically:
[0105] Weather condition-related characteristics: such as rainfall, temperature, humidity, wind speed, etc.;
[0106] Historical data related features: historical tidal sewage volume, historical rainfall data, historical traffic flow data;
[0107] It also includes, for example, geographic and infrastructure characteristics: drainage system capacity; socio-economic characteristics: water consumption, land use type;
[0108] S240: The selected features are then processed, such as standardization and normalization. Specifically:
[0109] Standardization: scaling features to the same range, such as 0 to 1 or a mean of 0 and a variance of 1;
[0110] Normalization: convert feature data to a specific range to reduce the impact of numerical differences on the model;
[0111] Encoding: Encoding categorical features, such as One-Hot Encoding;
[0112] Data combination: Create interaction features, time decay features, or moving average features.
[0113] S250: The deep learning algorithm for prediction uses a long short-term memory network (LSTM);
[0114] Each LSTM unit consists of three gates (forget gate, input gate and output gate) and a memory unit (CellState), and its expression is as follows:
[0115] Forget Gate:
[0116] ;
[0117] ;
[0118] in, is applied to the hidden state at the previous time step The weight matrix of is applied to the current time step The input weight matrix; is the input of the current time step, is the hidden state of the previous time step, is the weight matrix of the forget gate, The dimension is ,in is the number of hidden units, is the number of input features, is the bias of the forget gate, is the Sigmoid activation function,
[0119] is the forget gate parameter;
[0120] Input Gate:
[0121] ;
[0122] ;
[0123] in, is applied to the hidden state at the previous time step The weight matrix of is applied to the current time step input The weight matrix of The dimension is , is the Sigmoid activation function, where is the number of hidden units, is the number of input features, is the input gate parameter;
[0124] Memory Unit:
[0125] ;
[0126] ;
[0127] in, , is the weight matrix and bias of the input gate, is the previous time step hidden state applied to the memory cell The weight matrix of is the current time step input applied to the memory cell The weight matrix of , is the weight matrix and bias of the candidate memory unit, is the hyperbolic tangent activation function, is the candidate memory unit state;
[0128] Update the memory cell status:
[0129] ;
[0130] in, is the updated memory cell state, is the memory cell state at the previous time step, is the candidate memory unit state;
[0131] Output Gate:
[0132] ;
[0133] in, is the output gate parameter, , is the weight matrix and bias of the output gate, is the Sigmoid activation function;
[0134] Output the hidden state at the current time step:
[0135] ;
[0136] in, is a hidden state;
[0137] S260: Use historical data to train the LSTM model and verify the prediction accuracy of the LSTM model;
[0138] S261: Data partitioning: divide the data into training set, validation set and test set in a ratio of 7:2:1 or 8:1:1;
[0139] Collect and organize the original data set, denoted as D, and divide the data set D into a training set , validation set and test set ; The data volume is , according to the division ratio of 70%:20%:10%, it can be divided into: , , .
[0140] in, Training data, accounting for 70% to 80%; For verification data, 10% to 20%; It is test data, accounting for 10%.
[0141] S262: Model training, use the training set to train the model and adjust the hyperparameters to improve the model performance;
[0142] The steps for model training using the training set are as follows: build the model structure, define the model hierarchy and connection relationships; select a suitable loss function and optimizer ; The training set Input the model and perform forward propagation to calculate the predicted value ; According to the target value and predicted values Calculate the loss value ; Update model parameters through the back-propagation algorithm to minimize the loss function.
[0143] Its expression is as follows:
[0144] Forward propagation: ;
[0145] Loss calculation: ;
[0146] Backward Propagation: ;
[0147] in, is the model function, is the input data of the training set, is the target value of the training set, are model parameters, is the learning rate, is the gradient of the loss function with respect to the parameters;
[0148] Tune hyperparameters to improve model performance. The steps are as follows: Set the search space for the hyperparameters to be optimized, such as the learning rate , Network Layers , Number of units etc.; use search strategies such as grid search or random search to determine different hyperparameter combinations; train each hyperparameter combination and evaluate the performance on the validation set.
[0149] Its expression is as follows:
[0150] Hyperparameter set: ;
[0151] Search Space: ;
[0152] in, is the learning rate, is the number of network layers, is the number of units per layer, is the set of hyperparameters of the model, is the hyperparameter search space.
[0153] S263: Model validation, using the validation set to evaluate model performance and adjust model parameters to avoid overfitting or underfitting;
[0154] Use the validation set to evaluate model performance. The steps are as follows: Use the trained model to evaluate the validation set. Make predictions and get the predicted values of the validation set ; Calculate validation loss and evaluate the model on the validation set The performance on the model is evaluated; monitoring indicators (such as validation loss, validation accuracy, etc.) are used to determine whether there is overfitting or underfitting.
[0155] Adjust model parameters to avoid overfitting or underfitting. The steps are as follows: If the validation loss is significantly higher than the training loss, there may be an overfitting problem. You can take measures such as regularization, dropout, or early stopping. If the validation loss is similar to the training loss but both are high, there may be an underfitting problem. You can consider increasing the model complexity or training time.
[0156] S264: Model evaluation, evaluating the prediction accuracy of the final model through the test set, and using methods such as cross-validation to improve reliability;
[0157] The prediction accuracy of the final model is evaluated by the test set. The steps are as follows: Use the optimal model to predict the test set. Make a prediction and get the predicted value ; Calculate test loss and other evaluation indicators; Record test results and evaluate the final performance of the model on unseen data; Use the optimal model to predict the test set and obtain the predicted value.
[0158] Cross-validation and other methods are used to improve reliability. The steps are as follows: divide the data set D into k subsets; use one of the subsets as the validation set and the remaining k-1 subsets as the training set to train and validate the model; calculate the mean of the k validation results as the final performance evaluation indicator of the model.
[0159] S270: Determine the time span of the forecast, and determine the time granularity of the forecast according to demand, such as hourly, daily, or weekly forecast.
[0160] Determine the time span for the forecast , the steps are as follows:
[0161] Determine the actual application scenario requirements and determine the time range that needs to be covered. For example, you need to predict the next day, week, month, etc.
[0162] Select an appropriate time span based on the periodic characteristics of historical data and application requirements.
[0163] in, The forecast time span, for example, 1 day, 1 week.
[0164] Determine the time granularity of the forecast based on demand , the steps are as follows:
[0165] Assess business needs and determine the frequency of forecast output, for example, hourly (1hr), daily (1d), weekly (1w), etc.
[0166] Combined with the sampling frequency of the input data, select the appropriate time granularity to ensure the practicality and accuracy of the prediction results.
[0167] in To predict the time granularity, for example, hourly, daily, weekly;
[0168] S280: Generate a predicted value of future tidal sewage volume based on the model output, specifically:
[0169] S281: Apply the trained model to the input data within the forecast time span to generate the forecast value for each time step; use the time series forecasting method or regression method, input the nearest known data point, and perform multi-step forecasts step by step;
[0170] According to the time granularity and span, the forecast results are summarized to form a complete forecast curve;
[0171] The complete forecast curve provides a continuous, coherent sequence of data for organization into a time series format.
[0172] Its expression is as follows:
[0173] For a one-step forecast: ;
[0174] Multi-step forecast: ;
[0175] in, is the predicted value at the t+kth time step, Input data at time step t+j, are the optimal model parameters, is a vector of future prediction values.
[0176] S282: Arrange the output results in step S281 into a time series format to facilitate subsequent analysis and presentation; map the predicted values to corresponding time points according to the time span and granularity; and visually display or record the predicted results.
[0177] Its expression is as follows:
[0178] Time Mapping: ;
[0179] Results mapped to a time series:
[0180] ;
[0181] in, A collection of future time points; It is a time series forecast result set, that is, a pairing set of time points and forecast values.
[0182] Through systematic steps and accurate parameter determination, reliable and predictive forecast outputs can be generated for the prediction and management of tidal sewage volumes.
[0183] The tidal sewage volume is predicted for each area separately;
[0184] S300: formulating a scheduling plan for multiple mobile intelligent treatment devices according to the predicted tidal sewage volume of the highway, the scheduling plan including the target position of the mobile intelligent treatment device and the treatment volume of the mobile intelligent treatment device in each time period after the start of rainfall;
[0185] In one embodiment of the present invention, in step S300, the scheduling scheme of the mobile intelligent processing device includes the following contents:
[0186] S310: Based on the prediction results: According to the predicted tidal sewage volume distribution, determine the reasonable location of the movable intelligent treatment device, the steps are as follows:
[0187] Analyze the changing trend of sewage volume in different regions by using the predicted tidal sewage volume distribution;
[0188] The reasonable location of the movable intelligent processing unit is determined based on the prediction results to minimize transportation costs and optimize processing efficiency.
[0189] S320: Determine the optimal scheduling solution using an optimization algorithm, the steps are as follows:
[0190] Use optimization algorithms (such as genetic algorithms or simulated annealing algorithms) to determine the best scheduling plan to maximize processing efficiency and reduce processing costs;
[0191] The target position indicates the position to which the movable intelligent processing device needs to be moved, and can be represented by coordinates or area numbers.
[0192] The individual constraints of the optimization algorithm include:
[0193] The processing capacity of the movable intelligent treatment device in each area in each time period is greater than the sewage volume in the corresponding time period of the area.
[0194] The optimization objective function of the optimization algorithm is:
[0195] ;
[0196] in, To optimize the objective function, is the weight of the target area of the i-th mobile intelligent processing device, is the starting position of the i-th mobile intelligent processing device and the center point of the target area of the i-th mobile intelligent processing device The distance function between them can be Euclidean distance. represents the total number of mobile intelligent processing devices;
[0197] represents the processing capacity of the i-th mobile intelligent processing device in the t-th time period, represents the amount of sewage in the target area of the i-th mobile intelligent treatment device in the t-th time period, It represents the value control parameter, and its default value is 0.6. Setting a larger value control parameter means paying more attention to the waste of excessive processing volume.
[0198] In one embodiment of the present invention, the units of treatment capacity and sewage volume are liters / minute or liters.
[0199] S400: When the predicted tidal sewage volume of the highway appears, the scheduling plan formulated in S300 is executed to control the mobile intelligent treatment device to treat the excess tidal sewage;
[0200] In one embodiment of the present invention, in step S400, according to the scheduling scheme of the above multiple mobile intelligent treatment devices, the scheduling scheme is executed to treat the excess tidal sewage, thereby reducing the pressure of the sewage treatment facility, and further includes the following contents:
[0201] Monitor real-time data: Obtain real-time monitoring data such as tidal sewage volume and treatment device status;
[0202] Adjust the location, processing capacity and start time: According to the real-time monitoring data and optimization algorithm calculation, adjust the location, processing capacity and start time of each processing device to ensure that the device location is optimized and the processing capacity matches the demand;
[0203] Execute the scheduling plan: According to the adjusted plan, guide the treatment equipment to arrive at the designated location to start sewage treatment operations, ensure that each device arrives at the location on time, and perform treatment according to task requirements.
[0204] The objectives of the above scheduling scheme for multiple mobile intelligent processing devices are as follows:
[0205] Maximize the amount of sewage that cannot be treated: Ensure that the optimized scheduling plan can treat the sewage that cannot be treated by the sewage treatment facilities to the greatest extent, thereby reducing the impact of direct discharge on the environment and protecting the environment and water quality.
[0206] Use the least number of mobile intelligent processing devices: In the optimal scheduling scheme, minimize the number of mobile intelligent processing devices to reduce costs, improve efficiency, and optimize resource utilization.
[0207] Minimize the moving distance of mobile intelligent processing devices: By optimizing the scheduling scheme, the moving distance of mobile intelligent processing devices between different sites is minimized to save energy, time and reduce equipment wear, thereby improving operational efficiency and cost-effectiveness.
[0208] By achieving the above three goals, the optimized scheduling plan can improve the efficiency and cost-effectiveness of sewage treatment while ensuring environmental protection, while achieving optimal utilization of resources, reducing energy consumption and operating costs, and thus more effectively responding to sudden sewage treatment needs.
[0209] According to the above method based on highway tidal sewage emergency treatment, a control system based on highway tidal sewage emergency treatment can be summarized, including:
[0210] Tidal sewage treatment plant design module: Design a mobile intelligent treatment plant for treating tidal sewage on highways and a backup drainage pipeline for receiving excess tidal sewage;
[0211] Tidal sewage volume prediction module: uses deep learning algorithms to predict future tidal sewage volumes on highways;
[0212] Treatment device scheduling plan formulation module: According to the predicted tidal sewage volume of the highway, a scheduling plan for multiple mobile intelligent treatment devices is formulated. The scheduling plan includes the target location of the mobile intelligent treatment device and the processing volume of the mobile intelligent treatment device in each time period after the start of rainfall;
[0213] Treatment device scheduling execution module: When the predicted tidal sewage volume on the highway appears, the scheduling plan formulated in the treatment device scheduling plan formulation module is executed to control the mobile intelligent treatment device to treat the excess tidal sewage.
[0214] At least one embodiment of the present disclosure provides a storage medium storing non-transitory computer-readable instructions for executing one or more steps of the aforementioned method for highway tidal sewage emergency treatment.
[0215] The computer program may be stored / distributed on suitable media, such as optical storage media or solid-state media supplied together with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems.
[0216] The above describes an embodiment of the present embodiment, but the present embodiment is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present embodiment, ordinary technicians in this field can also make many forms, all of which are within the protection of the present embodiment.
Claims
1. A method for emergency treatment of tidal sewage on highways, It is characterized in that The following steps are involved: S100: A mobile intelligent treatment unit designed to treat tidal sewage on highways and a backup drainage pipeline to receive excess tidal sewage; S200: Using deep learning algorithms to predict future highway tidal sewage volumes; In step S200, the future tidal sewage volume of the highway is predicted by a deep learning algorithm, including the following steps: S210: When predicting tidal sewage volume, the following raw data need to be collected, including historical tidal sewage volume, weather data, traffic conditions, water quality monitoring, and municipal infrastructure; S220: preprocessing the original data in step S210 to handle missing data and abnormal values; S230: performing feature selection on the raw data preprocessed in step S220 to obtain selected features, where the selected features contribute to the prediction of tidal sewage volume; S240: processing the features selected in step S230, including standardization, normalization, encoding processing and data combination; S250: The deep learning algorithm for prediction uses long short-term memory networks; S260: Use historical data to train the LSTM model and verify the prediction accuracy of the LSTM model; S270: Determine the time span of the prediction, and determine the time granularity of the prediction according to the demand; S280: Generate a predicted value of future tidal sewage volume according to the output of the LSTM model; S300: formulating a scheduling plan for multiple mobile intelligent treatment devices according to the predicted tidal sewage volume of the highway, the scheduling plan including the target position of the mobile intelligent treatment device and the treatment volume of the mobile intelligent treatment device in each time period after the start of rainfall; S400: When the predicted tidal sewage volume on the highway appears, the scheduling plan formulated in S300 is executed to control the mobile intelligent treatment device to treat the excess tidal sewage.
2. A method for emergency treatment of highway tidal sewage according to claim 1, It is characterized in that In step S250, the long short-term memory network includes a plurality of LSTM units, each of which includes a forget gate, an input gate, an output gate and a memory unit, and its expression is as follows: Forget Gate: ; ; in, is applied to the hidden state at the previous time step The weight matrix of is applied to the current time step The input weight matrix; is the input of the current time step, is the hidden state of the previous time step, is the weight matrix of the forget gate, The dimension is ,in is the number of hidden units, is the number of input features, is the bias of the forget gate, is the Sigmoid activation function, is the forget gate parameter; Input Gate: ; ; in, is applied to the hidden state at the previous time step The weight matrix of is applied to the current time step input The weight matrix of The dimension is , is the input gate parameter; Memory unit: ; ; in, , is the weight matrix and bias of the input gate, is the previous time step hidden state applied to the memory cell The weight matrix of is the current time step input applied to the memory cell The weight matrix of , is the weight matrix and bias of the candidate memory unit, is the hyperbolic tangent activation function, is the candidate memory unit state; Update the memory cell status: ; in, is the updated memory cell state, is the memory cell state at the previous time step, is the candidate memory unit state; Output Gate: ; in, is the output gate parameter, , is the weight matrix and bias of the output gate, is the Sigmoid activation function; Output the hidden state at the current time step: ; in, In hidden state.
3. A method for emergency treatment of highway tidal sewage according to claim 2, It is characterized in that In step S260, the following steps are included: S261: Data partitioning: divide data into training set, validation set and test set; Collect and organize historical data, record it as data set D, and divide data set D into training set , validation set and test set ; S262: Model training, using the training set to perform model training; S263: Model validation, using the validation set to evaluate model performance; S264: Model evaluation, evaluate the prediction accuracy of the final model through the test set.
4. A method for emergency treatment of highway tidal sewage according to claim 3, It is characterized in that In step S262, the training set is used to perform model training, and the steps are as follows: Build the model structure, define the model hierarchy and connection relationships; Choosing a suitable loss function and optimizer ; The training set Input the model and perform forward propagation to calculate the predicted value ; According to the target value and predicted values Calculate the loss value ; The model parameters are updated through the back-propagation algorithm to minimize the loss function.
5. A method for emergency treatment of highway tidal sewage according to claim 3, It is characterized in that In step S263, the model performance is evaluated using the validation set, and the steps are as follows: Use the trained model to validate the Make predictions and get the predicted values of the validation set ; Calculate validation loss and evaluate the model on the validation set Performance on Monitoring indicators are used to determine whether there is overfitting or underfitting.
6. A method for emergency treatment of highway tidal sewage according to claim 3, It is characterized in that In step S264, the prediction accuracy of the final model is evaluated by the test set, and the steps are as follows: Use the best model to test the set Make a prediction and get the predicted value ; Compute test loss and evaluation metrics; Record test results and evaluate the final performance of the model on unseen data; Use the optimal model to predict the test set and get the predicted value; In step S264, the following contents are also included: Divide the data set D into k subsets; Use one of the subsets as the validation set and the remaining k−1 subsets as the training set to train and validate the model; Calculate the mean of the k validation results as the final performance evaluation indicator of the model.
7. A method for emergency treatment of highway tidal sewage according to claim 1, It is characterized in that In step S280, a predicted value of future tidal sewage volume is generated, and the steps are as follows: Apply the trained model to the input data within the prediction time span to generate the predicted value for each time step; Use time series forecasting methods or regression methods, input the most recent known data points, and make multi-step forecasts step by step; According to the time granularity and span, the forecast results are summarized to form a complete forecast curve; Arrange the data series obtained from the complete forecast curve into a time series format; Map the predicted values to the corresponding time points according to the time span and granularity; Visualize or record the prediction results.
8. A control system based on highway tidal sewage emergency treatment, which operates by the method based on highway tidal sewage emergency treatment as described in any one of claims 1 to 7. It is characterized in that include: Tidal sewage treatment plant design module (101): Design a mobile intelligent treatment plant for treating tidal sewage on highways and a backup drainage pipeline for receiving excess tidal sewage; Tidal sewage volume prediction module (102): using a deep learning algorithm to predict the future tidal sewage volume of the highway; A treatment device scheduling plan formulation module (103): formulates a scheduling plan for a plurality of mobile intelligent treatment devices according to the predicted tidal sewage volume of the highway, wherein the scheduling plan includes a target position of the mobile intelligent treatment device and a processing volume of the mobile intelligent treatment device in each time period after the start of rainfall; Treatment device scheduling execution module (104): When the predicted tidal sewage volume on the highway appears, the scheduling plan formulated in the treatment device scheduling plan formulation module is executed to control the mobile intelligent treatment device to treat the excess tidal sewage.
9. A storage medium, It is characterized in that Non-transitory computer-readable instructions are stored therein for executing one or more steps in the method for emergency treatment of highway tidal sewage as described in any one of claims 1-7.
