Method and device for establishing boiler water dosing model
Through the establishment of the boiler water dosing model, XGBoost algorithm and exception processing technology are used to monitor water quality changes in real time, solving the time delay and lag problems in the control of the dosing amount of the traditional boiler water dosing process, and achieving stable water quality and chemical consumption. reduced effect.
Patent Information
- Application Number
- CN202410622928.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
There are delays and lags in the traditional boiler water dosing process, making it difficult to achieve precise control of the dosing amount, resulting in unstable water quality and affecting the normal operation of the boiler.
The method of building a boiler water dosing model is adopted. Through training and exception processing of boiler water data, the XGBoost algorithm is used to build a dosing amount model. Combined with box plot and moving smoothing technology, water quality changes are monitored in real time to determine the dosing amount of dosing.
It achieves precise control of the dosage of chemicals, ensures stable water quality, improves effluent water quality, reduces chemical consumption, and can predict the subsequent dosage of chemicals in a timely manner.
Smart Images

Figure CN118588202A
Abstract
Description
Technical Field
[0001] The invention relates to the field of establishing a boiler water dosing model, and in particular to a method and a device for establishing a boiler water dosing model. Background Art
[0002] Boiler water is liquid water within a boiler or associated piping, pumps, and other equipment used to evaporate into steam. The term may also be applied to raw water used in a boiler, treated boiler feed water, steam condensate returned to the boiler, or boiler blowdown discharged from the boiler.
[0003] The traditional boiler water dosing process has the characteristics of time delay and lag. When the water quality, water volume and other conditions of the water source change, it is difficult to achieve accurate control of the amount of chemical added, which will lead to unstable water quality and affect the normal operation of the boiler water.
[0004] Therefore, it is necessary to propose a method and device for establishing a boiler water dosing model to solve the above problems. Summary of the invention
[0005] The main purpose of the present invention is to provide a method and device for establishing a boiler water dosing model, which can effectively solve the problems in the background technology.
[0006] To achieve the above object, the technical solution adopted by the present invention is:
[0007] The method for establishing a boiler water dosing model includes the following steps:
[0008] S1: Training of boiler water data: including boiler water A and B, where A: The coarse-grained data modeling of boiler water A is in d, the training data is taken from a two-year period, and its data volume is recorded, the test data is taken from the data of the past five months, and its data volume is recorded, the fine-grained data modeling is 5 minutes as a granularity, all are online data, and then the data set is divided into a training set and a test set. The training set is a two-year period, and its data volume is calculated, and the test set is the data of the past five months, and its data volume is calculated;
[0009] Among them, B: Boiler water B data includes manual data and online data. The specific water intake and dosing data are selected from the data of the past five years, and the data granularity is h. The online data includes the water quality data of the inlet and outlet water, the time is the data of the past five years, and the data granularity is 5min. In addition, the reagent addition data is for the past five years, and the data granularity is weekly. After merging the above data, record its data volume, the time is for the past five years, and the data granularity is 5min. After processing, record its valid data. The training set is the data of the past three years, and its data volume is calculated. The test set is the data of the past five months, and its data volume is calculated.
[0010] S2: Abnormal data processing: Two abnormal data processing methods are used for the fine-grained data of boiler water A, including:
[0011] Solution 1: Constrain water quality indicators based on experience and limit the range, such as directly removing data with inlet turbidity greater than 20NTU, data with machine-added pool effluent turbidity greater than 5NTU, data with pre-ozone greater than 0.7mg / L, and data with pH greater than 8.6 or less than 4.66. For data with inlet conductivity greater than 400μS / cm or less than 100μS / cm, use the mean value of conductivity instead, and for data with inlet ammonia nitrogen greater than 0.24mg / L, use the mean value instead. At the same time, remove highly repeated data in some time periods;
[0012] Solution 2: Use abnormal data identification technology based on sliding mean. If the research window size is 200, that is, the sliding mean at a certain moment is equal to the weighted average of the 200 data from that moment onwards. The weight of the data is exponentially distributed, and the closer the data is to that moment, the greater the weight.
[0013] The abnormal data of boiler water B is processed by combining the box plot and the abnormal data identification technology based on the sliding mean. The box plot first sorts the data from small to large, and then finds the minimum value, 1 / 4 digit, median, 3 / 4 digit, and maximum value, and then calculates the minimum and maximum observed values. If the minimum value ≤ the minimum observed value, the lower edge = the minimum observed value. Otherwise, the minimum value > the minimum observed value, then the lower edge = the minimum value. If the maximum value ≥ the maximum observed value, then the upper edge = the maximum observed value. Otherwise, the maximum value < the maximum observed value, then the upper edge = the maximum value. If the data falls between the lower and upper edges, it is normal data, and the data outside this range is abnormal data. According to the data, the box plot is used to screen the abnormal data of the inlet flow and inlet turbidity data respectively. The data are grouped by month, and the respective data ranges are analyzed. The data that are not in the normal range are marked as abnormal data and deleted directly. The box plot is used for screening of polyaluminium chloride and ferric chloride. If PAC is greater than 50, the data is directly removed, otherwise the sliding mean is used to replace the abnormal value. The abnormal data of ferric chloride is processed by replacing the abnormal value with the sliding mean. The water temperature, pH and machine-added pool effluent turbidity data are also processed in a similar way. In addition, samples with more missing fields in some time periods are directly deleted, and the mean and interpolation are used to fill in a small amount of missing data;
[0014] S3: During the modeling process, relevant water quality indicators and operating parameters are input as characteristic values, including inlet water temperature, inlet water dissolved oxygen, inlet water conductivity, inlet water ammonia nitrogen, inlet water low turbidity, inlet water high turbidity, raw water average water volume, pre-oxygenation, month, and season;
[0015] S4: Modeling using algorithms: Models are constructed for the dosage of reagents respectively, and the reagents are modeled based on the coarse-grained data of boiler water A and boiler water B, and the XGBoost algorithm is used for modeling;
[0016] S5: Improvement of model effect: Combine the manual records and online data of boiler water B, and pre-process the data by combining box plot and moving smoothing technology, extract water volume data and dosing data at hourly granularity, and finally build a model with the obtained valid data. The XGBoost algorithm is used to model the dosage of boiler water B reagent. The model input features are inlet pH, inlet temperature, inlet flow, outlet temperature, outlet turbidity, inlet turbidity, outlet pH, the mean of the most recent reagent dosage, month, and date. The model prediction value is the reagent dosage, among which the sliding window statistical method is used to obtain the mean of the most recent reagent dosage.
[0017] Preferably, if the amount of the observed fine-grained data is large, there will be certain abnormal data in online instrument maintenance and overhaul, etc. In addition, a large amount of duplication of some data is not conducive to modeling work, and the data needs to be preprocessed before modeling.
[0018] Preferably, the characteristics of the algorithm input modeled in S4 also include raw water turbidity, carbon pool turbidity difference, raw water chromaticity, raw water pH, pre-chlorination dosage rate, temperature range, season, pre-ozone dosage rate, machine pool turbidity, and carbon pool effluent turbidity.
[0019] A boiler water dosing model establishment device includes a control device, the control device includes a water quality analysis device, the water quality analysis device is electrically connected to a data remote output module, the data remote output module is electrically connected to a data acquisition terminal, the data acquisition terminal is electrically connected to an AI training terminal, and the water quality analysis device is electrically connected to a data recording module.
[0020] Preferably, the water quality analysis equipment includes a COD online monitor, a turbidity meter, a pH monitor, a residual chlorine monitor, and an ozone monitor, and the COD online monitor, the turbidity meter, the pH monitor, the residual chlorine monitor, and the ozone monitor are all installed in the boiler.
[0021] Preferably, the data recording module includes before and after drug addition, the output end of the water quality analysis equipment is electrically connected to the input end of the PLC control module and the data recording module, the output end of the PLC control module is electrically connected to the input end of the data remote output module, the output end of the data remote output module is electrically connected to the input end of the data acquisition terminal, and the output end of the data acquisition terminal is electrically connected to the input end of the AI training terminal.
[0022] Preferably, the AI training terminal includes a time interval classification module, the output end of the time interval classification module is electrically connected to the data set processing module, the output end of the data set processing module is electrically connected to the input end of the training set and the test set, the output end of the data set processing module is electrically connected to the input end of the abnormal data processing module, the output end of the abnormal data processing module is electrically connected to the input end of the data modeling port, the output end of the data modeling port is electrically connected to the input end of the optimization module, and the input end of the data modeling port is electrically connected to the output end of the feature input module.
[0023] Beneficial Effects
[0024] Compared with the prior art, the present invention provides a method and device for establishing a boiler water dosing model, which has the following beneficial effects:
[0025] 1. The method and device for establishing a boiler water dosing model can monitor the water quality, water volume and other conditions of the water source at all times, and can also ensure the precise control of the dosage of the agent when the conditions change, so as to ensure the stability of the water quality. At the same time, this method has high accuracy and fast response, and can determine the dosage of the agent in time according to the changes in the water quality of the water source, which has far-reaching practical significance for establishing a safe, efficient and energy-saving boiler. This method is based on large boilers, manual data and online data, and establishes a dosing model through an algorithm. The model is applied to the boiler water process, which can effectively improve the effluent quality and reduce the drug consumption. The accuracy of the model establishment can be guaranteed through data collection, and the subsequent dosage of the agent can be predicted. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of the structure of the present invention;
[0027] Figure 2 It is a structural schematic diagram of the present invention. DETAILED DESCRIPTION
[0028] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.
[0029] The method for establishing a boiler water dosing model includes the following steps:
[0030] S1: Training of boiler water data: including boiler water A and B, where A: The coarse-grained data modeling of boiler water A is in d, the training data is taken from a two-year period, and its data volume is recorded, the test data is taken from the data of the past five months, and its data volume is recorded, the fine-grained data modeling is 5 minutes as a granularity, all of which are online data, and then the data set is divided into training set and test set, the training set is a two-year period, and its data volume is calculated, the test set is the data of the past five months, and its data volume is calculated.
[0031] Among them, B: Boiler water B data includes manual data and online data. The specific water intake and dosing data are selected from the data of the past five years, and the data granularity is h. The online data includes the water quality data of the inlet and outlet water. The time is the data of the past five years, and the data granularity is 5min. In addition, the reagent addition data is for the past five years, and the data granularity is weekly. After merging the above data, record its data volume, the time is for the past five years, and the data granularity is 5min. After processing, record its valid data. The training set is the data of the past three years, and its data volume is calculated. The test set is the data of the past five months, and its data volume is calculated.
[0032] S2: Abnormal data processing: Two abnormal data processing methods are used for the fine-grained data of boiler water A, including:
[0033] Solution 1: Constrain water quality indicators based on experience and limit their range. For example, directly remove data with inlet turbidity greater than 20NTU, data with machine-added pool effluent turbidity greater than 5NTU, data with pre-ozone greater than 0.7mg / L, and data with pH greater than 8.6 or less than 4.66. For data with inlet conductivity greater than 400μS / cm or less than 100μS / cm, use the mean of conductivity instead. For data with inlet ammonia nitrogen greater than 0.24mg / L, use the mean instead. At the same time, remove highly repeated data in some time periods.
[0034] Solution 2: Use abnormal data identification technology based on sliding mean. If the research window size is 200, that is, the sliding mean at a certain moment is equal to the weighted average of the 200 data from that moment onwards, the weight of the data is exponentially distributed, and the closer the data is to that moment, the greater the weight.
[0035] The abnormal data of boiler water B is processed by combining the box plot and the abnormal data identification technology based on the sliding mean. The box plot first sorts the data from small to large, and then finds the minimum value, 1 / 4 digit, median, 3 / 4 digit, and maximum value, and then calculates the minimum and maximum observed values. If the minimum value ≤ the minimum observed value, the lower edge = the minimum observed value. Otherwise, the minimum value > the minimum observed value, then the lower edge = the minimum value. If the maximum value ≥ the maximum observed value, then the upper edge = the maximum observed value. Otherwise, the maximum value < the maximum observed value, then the upper edge = the maximum value. If the data falls between the lower and upper edges, it is normal data, and the data outside this range is abnormal data. According to the data, the box plot is used to screen the abnormal data of the inlet flow and inlet turbidity data respectively. The data are grouped by month, and the respective data ranges are analyzed. The data that are not in the normal range are marked as abnormal data and deleted directly. Box plot screening is used for polyaluminium chloride and ferric chloride. If PAC is greater than 50, the data is directly eliminated, otherwise the sliding mean is used to replace the abnormal value. The abnormal data of ferric chloride is processed by replacing the abnormal value with the sliding mean. The water temperature, pH and machine-treated pool effluent turbidity data are also processed in a similar way. In addition, the samples with more missing fields at some times are directly deleted, and the mean and interpolation are used to fill in a small amount of missing data.
[0036] Observe the amount of fine-grained data. If it is large, there will be certain abnormal data due to online instrument maintenance and overhaul. In addition, a large amount of duplication of some data is not conducive to modeling, so the data needs to be preprocessed before modeling.
[0037] S3: During the modeling process, relevant water quality indicators and operating parameters are input as characteristic values, including inlet water temperature, inlet water dissolved oxygen, inlet water conductivity, inlet water ammonia nitrogen, inlet water low turbidity, inlet water high turbidity, average raw water volume, pre-oxygenation, month, and season.
[0038] S4: Modeling and processing using algorithms: Models are constructed for the dosage of the reagents respectively, and the reagents are modeled based on the coarse-grained data of boiler water A and boiler water B. The XGBoost algorithm is used for modeling and processing. The input features of the modeling algorithm also include raw water turbidity, carbon pool turbidity difference, raw water chromaticity, raw water pH, pre-chlorination dosage rate, temperature range, season, pre-ozone dosage rate, machine pool turbidity, and carbon pool effluent turbidity.
[0039] S5: Improvement of model effect: Combine the manual records and online data of boiler water B, and pre-process the data by combining box plot and moving smoothing technology, extract water volume data and dosing data at hourly granularity, and finally build a model with the obtained valid data. The XGBoost algorithm is used to model the dosage of boiler water B reagent. The model input features are inlet pH, inlet temperature, inlet flow, outlet temperature, outlet turbidity, inlet turbidity, outlet pH, the mean of the most recent reagent dosage, month, and date. The model prediction value is the reagent dosage, among which the sliding window statistical method is used to obtain the mean of the most recent reagent dosage.
[0040] like Figure 1-2 As shown, a boiler water dosing model establishment device includes a control device, the control device includes a water quality analysis device, the water quality analysis device is electrically connected to a data remote output module, the data remote output module is electrically connected to a data acquisition terminal, the data acquisition terminal is electrically connected to an AI training terminal, the water quality analysis device is electrically connected to a data recording module, the water quality analysis equipment includes a COD online monitor, a turbidity meter, a pH monitor, a residual chlorine monitor, and an ozone monitor. The COD online monitor, the turbidity meter, the pH monitor, the residual chlorine monitor, and the ozone monitor are all installed in the boiler. The data recording module includes before and after dosing, the output end of the water quality analysis device is electrically connected to the PLC control module and the input end of the data recording module, and the output end of the PLC control module is electrically connected to the The input end of the data remote output module is electrically connected, the output end of the data remote output module is electrically connected to the input end of the data acquisition terminal, the output end of the data acquisition terminal is electrically connected to the input end of the AI training terminal, the AI training terminal includes a time interval classification module, the output end of the time interval classification module is electrically connected to the data set processing module, the output end of the data set processing module is electrically connected to the input end of the training set and the test set, the output end of the data set processing module is electrically connected to the input end of the abnormal data processing module, the output end of the abnormal data processing module is electrically connected to the input end of the data modeling port, the output end of the data modeling port is electrically connected to the input end of the optimization module, and the input end of the data modeling port is electrically connected to the output end of the feature input module.
[0041] This method can monitor the water quality, water volume and other conditions of the water source at all times, and can ensure the precise control of the dosage of the reagent when changes occur, thereby ensuring the stability of the water quality. At the same time, this method has high accuracy and fast response, and can determine the dosage of the reagent in time according to the changes in the water quality of the water source. It has far-reaching practical significance for establishing a safe, efficient and energy-saving boiler. This method is based on large boilers, manual data and online data, and establishes a dosing model through an algorithm. The model is applied to the boiler water process, which can effectively improve the effluent quality and reduce the consumption of the reagent. The accuracy of the model establishment can be guaranteed through data collection, and the subsequent dosage of the reagent can be predicted.
[0042] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for establishing a boiler water dosing model, characterized in that: The steps include: S1: Training of boiler water data: including boiler water A and B, where A: The coarse-grained data modeling of boiler water A is in d, the training data is taken from a two-year period, and its data volume is recorded, the test data is taken from the data of the past five months, and its data volume is recorded, the fine-grained data modeling is 5 minutes as a granularity, all are online data, and then the data set is divided into a training set and a test set. The training set is a two-year period, and its data volume is calculated, and the test set is the data of the past five months, and its data volume is calculated; Among them, B: Boiler water B data includes manual data and online data. The specific water intake and dosing data are selected from the data of the past five years, and the data granularity is h. The online data includes the water quality data of the inlet and outlet water, the time is the data of the past five years, and the data granularity is 5min. In addition, the reagent addition data is for the past five years, and the data granularity is weekly. After merging the above data, record its data volume, the time is for the past five years, and the data granularity is 5min. After processing, record its valid data. The training set is the data of the past three years, and its data volume is calculated. The test set is the data of the past five months, and its data volume is calculated. S2: Abnormal data processing: Two abnormal data processing methods are used for the fine-grained data of boiler water A, including: Solution 1: Constrain water quality indicators based on experience and limit the range, such as directly removing data with inlet turbidity greater than 20NTU, data with machine-added pool effluent turbidity greater than 5NTU, data with pre-ozone greater than 0.7mg / L, and data with pH greater than 8.6 or less than 4.
66. For data with inlet conductivity greater than 400μS / cm or less than 100μS / cm, use the mean value of conductivity instead, and for data with inlet ammonia nitrogen greater than 0.24mg / L, use the mean value instead. At the same time, remove highly repeated data in some time periods; Solution 2: Use abnormal data identification technology based on sliding mean. If the research window size is 200, that is, the sliding mean at a certain moment is equal to the weighted average of the 200 data from that moment onwards. The weight of the data is exponentially distributed, and the closer the data is to that moment, the greater the weight. The abnormal data of boiler water B is processed by combining the box plot and the abnormal data identification technology based on the sliding mean. The box plot first sorts the data from small to large, and then finds the minimum value, 1 / 4 digit, median, 3 / 4 digit, and maximum value, and then calculates the minimum and maximum observed values. If the minimum value ≤ the minimum observed value, the lower edge = the minimum observed value. Otherwise, the minimum value > the minimum observed value, then the lower edge = the minimum value. If the maximum value ≥ the maximum observed value, then the upper edge = the maximum observed value. Otherwise, the maximum value < the maximum observed value, then the upper edge = the maximum value. If the data falls between the lower and upper edges, it is normal data, and the data outside this range is abnormal data. According to the data, the box plot is used to screen the abnormal data of the inlet flow and inlet turbidity data respectively. The data are grouped by month, and the respective data ranges are analyzed. The data that are not in the normal range are marked as abnormal data and deleted directly. The box plot is used for screening of polyaluminium chloride and ferric chloride. If PAC is greater than 50, the data is directly removed, otherwise the sliding mean is used to replace the abnormal value. The abnormal data of ferric chloride is processed by replacing the abnormal value with the sliding mean. The water temperature, pH and machine-added pool effluent turbidity data are also processed in a similar way. In addition, samples with more missing fields in some time periods are directly deleted, and the mean and interpolation are used to fill in a small amount of missing data; S3: During the modeling process, relevant water quality indicators and operating parameters are input as characteristic values, including inlet water temperature, inlet water dissolved oxygen, inlet water conductivity, inlet water ammonia nitrogen, inlet water low turbidity, inlet water high turbidity, raw water average water volume, pre-oxygenation, month, and season; S4: Modeling using algorithms: Models are constructed for the dosage of reagents respectively, and the reagents are modeled based on the coarse-grained data of boiler water A and boiler water B, and the XGBoost algorithm is used for modeling; S5: Improvement of model effect: Combine the manual records and online data of boiler water B, and pre-process the data by combining box plot and moving smoothing technology, extract water volume data and dosing data at hourly granularity, and finally build a model with the obtained valid data. The XGBoost algorithm is used to model the dosage of boiler water B reagent. The model input features are inlet pH, inlet temperature, inlet flow, outlet temperature, outlet turbidity, inlet turbidity, outlet pH, the mean of the most recent reagent dosage, month, and date. The model prediction value is the reagent dosage, among which the sliding window statistical method is used to obtain the mean of the most recent reagent dosage.
2. The method for establishing a boiler water dosing model according to claim 1, characterized in that: If the amount of the observed fine-grained data is large, there will be certain abnormal data due to online instrument maintenance and overhaul. In addition, a large amount of duplication of some data is not conducive to modeling, and the data needs to be preprocessed before modeling.
3. The method for establishing a boiler water dosing model according to claim 1, characterized in that: The characteristics of the algorithm input modeled in S4 also include raw water turbidity, carbon pool turbidity difference, raw water chromaticity, raw water pH, pre-chlorination dosage rate, temperature range, season, pre-ozone dosage rate, machine pool turbidity, and carbon pool effluent turbidity.
4. The boiler water dosing model establishment device according to claim 1, comprising a control device, characterized in that: The control device includes a water quality analysis device, the water quality analysis device is electrically connected to a data remote output module, the data remote output module is electrically connected to a data acquisition terminal, the data acquisition terminal is electrically connected to an AI training terminal, and the water quality analysis device is electrically connected to a data recording module.
5. The boiler water dosing model establishment device according to claim 4, characterized in that: The water quality analysis equipment includes a COD online monitor, a turbidity meter, a pH monitor, a residual chlorine monitor, and an ozone monitor, and the COD online monitor, the turbidity meter, the pH monitor, the residual chlorine monitor, and the ozone monitor are all installed in the boiler.
6. The boiler water dosing model establishment device according to claim 4, characterized in that: The data recording module includes before and after drug addition, the output end of the water quality analysis equipment is electrically connected to the input end of the PLC control module and the data recording module, the output end of the PLC control module is electrically connected to the input end of the data remote output module, the output end of the data remote output module is electrically connected to the input end of the data acquisition terminal, and the output end of the data acquisition terminal is electrically connected to the input end of the AI training terminal.
7. The boiler water dosing model establishment device according to claim 4, characterized in that: The AI training terminal includes a time interval classification module, the output end of the time interval classification module is electrically connected to a data set processing module, the output end of the data set processing module is electrically connected to the input end of a training set and a test set, the output end of the data set processing module is electrically connected to the input end of an abnormal data processing module, the output end of the abnormal data processing module is electrically connected to the input end of a data modeling port, the output end of the data modeling port is electrically connected to the input end of an optimization module, and the input end of the data modeling port is electrically connected to the output end of a feature input module.
