Method and system for adjusting pH value of anolyte in caustic soda production and storage medium
By collecting and partitioning the time series data of the anode liquid pH value in real time in caustic soda production, the accurate time-data trend is solved, and the problem that the anode liquid pH sampling data cannot accurately reflect the time series trend in the prior art is solved, and the accuracy of production monitoring and optimization is improved.
Patent Information
- Application Number
- CN202411937371.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-06
AI Technical Summary
In caustic soda production, the prior art performs a single sampling of the anode liquid pH value within the time interval. The sampled data obtained cannot accurately reflect the time sequence data trend of the anode liquid pH value within the time interval. There are large errors, resulting in misjudgment in the monitoring, research and optimization of caustic soda production, posing potential risks to production.
A caustic soda production time sequence data trend analysis method is adopted, including real-time acquisition of time sequence data of the anode liquid pH value, selecting data analysis time intervals, dividing multiple time interval segments, obtaining key characteristic data within each time interval segment, and obtaining the time-data trend of the anode liquid pH value through data integration analysis, and adjusting the anode liquid pH based on this trend.
By real-time acquisition and partition analysis of the time series data of the anode pH value, it accurately reflects the data trends in the time interval, reduces errors, improves the accuracy of monitoring, research and optimization of caustic soda production, and reduces production risks.
Smart Images

Figure CN119932582A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of pH value regulation of anolyte in caustic soda production, and specifically relates to a method, system and storage medium for regulating pH value of anolyte in caustic soda production. Background Art
[0002] Caustic soda is an important chemical product, which is widely used in wastewater treatment, new energy and chemical raw materials. In the production process of caustic soda, especially when using the chlor-alkali industrial method (electrolysis method), the pH value of the anolyte is an important process parameter, which directly affects the current efficiency and the occurrence of side reactions.
[0003] As enterprises gradually deepen their digital construction, trend analysis of the pH parameters of the anode liquid in caustic soda production and adjustment of the pH value of the anode liquid based on the data trend of the pH parameters have become important means of monitoring, researching and optimizing caustic soda production, providing strong support for the rapid development of caustic soda production.
[0004] At present, in the process of trend analysis of the pH value parameters of the anolyte in caustic soda production, generally a single sampling is carried out within a time interval to obtain the sampling data. When the time interval is long, the sampled data cannot accurately reflect the time series data trend of the pH value of the anolyte within the time interval, and there is a large error, which can easily lead to misjudgment in the monitoring, research and optimization of caustic soda production, bringing hidden dangers to production. Summary of the invention
[0005] In order to solve the technical problem in the background technology that time series data trend analysis of pH parameters of anolyte in caustic soda production has large errors, thereby causing inconvenience to the monitoring, research and optimization of caustic soda production, the present invention provides a method, system and storage medium for adjusting the pH value of anolyte in caustic soda production.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a method for analyzing the trend of caustic soda production time series data, comprising the steps of:
[0008] S1: Real-time collection of time series data of anolyte pH value during production;
[0009] S2: Selecting a data analysis time interval, and obtaining time series data of pH values within the data analysis time interval according to the data analysis time interval;
[0010] S3: Divide the data analysis time interval into multiple time intervals, and obtain key feature data in each time interval;
[0011] S4: Integrate the key characteristic data in each time interval in turn, analyze and obtain the time-data trend of the pH value of the anolyte, and adjust the pH value of the anolyte according to the time-data trend.
[0012] Optionally, the step S1 specifically includes:
[0013] S1.1: Select the time granularity and interval tolerance value. In production, use the time granularity as the interval to collect the time series data of the pH value of the anolyte;
[0014] S1.2: Compare the acquired time series data with the previously acquired time series data:
[0015] If the time series data changes, the time series data is retained;
[0016] If the time series data has not changed, execute step S1.3;
[0017] S1.3: Obtain the time interval between the time series data and the last time series data obtained, and determine whether the time interval is greater than the interval tolerance value; if the time interval is less than the interval tolerance value, the time series data is not retained; if the time interval is greater than or equal to the interval tolerance value, the time series data is retained.
[0018] Optionally, the step S3 specifically includes:
[0019] S3.1: Divide the data analysis time interval evenly into multiple time intervals;
[0020] S3.2: Obtain the initial value, maximum value and minimum value of the time series data in each time interval;
[0021] S3.3: Determine key characteristic data:
[0022] If the length of each time interval is greater than 1 second, the initial value, maximum value and minimum value in each time interval are used as key feature data of the time interval;
[0023] If the length of each time interval is less than or equal to 1 second, the maximum value in each time interval is used as the key feature data in the time interval.
[0024] Optionally, the step S3.2 includes:
[0025] S3.2.1: Determine whether there is a valid value in each time interval.
[0026] If there is no valid value, execute step S3.2.2;
[0027] If there are valid values, execute step S3.2.3;
[0028] S3.2.2: Assign values to time intervals where no valid values exist.
[0029] Set a time tolerance value. If there is no valid value in the time series data within one or more consecutive time intervals, and if the total duration is shorter than the time tolerance value, assign a value to the one or more consecutive time intervals.
[0030] If the total duration is greater than or equal to the time tolerance value, the one or more consecutive time intervals will not be processed;
[0031] S3.2.3: Obtain the initial value, maximum value, and minimum value for each time interval.
[0032] Optionally, in step S3.2.2, when assigning values to one or more consecutive time intervals in which the time series data are null values, the preceding value method or the least squares method is used for assignment.
[0033] Optionally, the step S4 specifically includes: integrating the key characteristic data in each time interval according to the time relationship to form a time-data trend of the pH value of the anolyte, and adjusting the pH value of the anolyte according to the time-data trend.
[0034] Optionally, the time series data is stored in an Influxdb database.
[0035] Optionally, the method further includes step S5: visualizing the time-data trend of the pH value of the anolyte to obtain a trend chart of the pH value of the anolyte within the data analysis time interval.
[0036] In a second aspect, the present invention also provides a system for adjusting pH value of anolyte in caustic soda production, comprising: a data acquisition module, a data storage module, a data processing module and an adjustment module;
[0037] The data acquisition module is used to collect the time series data of the pH value of the anolyte in real time during the caustic soda production process;
[0038] The data storage module is used to store the anolyte pH value time series data collected in real time during the caustic soda production process;
[0039] The data processing module is used to obtain time series data within the data analysis time interval according to the data analysis time interval; divide the data analysis time interval into multiple time intervals, and obtain key feature data within each time interval; sequentially integrate the key feature data within each time interval, and analyze and obtain time-data trends;
[0040] The adjustment module is used to adjust the pH value of the anolyte based on the time-data trend.
[0041] In a third aspect, the present invention further provides a storage medium having instructions stored thereon, wherein the instructions are generated based on the method for adjusting the pH value of the anolyte in caustic soda production as described in any one of the above items.
[0042] The beneficial effects of the present invention are:
[0043] (1) The present invention provides a method for adjusting the pH value of anolyte in caustic soda production, which divides the time series data collected in real time during the production process into multiple time intervals according to the selected data analysis time, obtains key feature data in each time interval, and after judging and processing the key feature data, integrates the key feature data to obtain a time-data trend. This solves the problem in the prior art that the pH value of the anolyte is sampled single-time within a time interval to obtain sampled data, and the sampled data cannot accurately reflect the time-data trend of the pH value of the anolyte within the time interval, and there is a large error, which can easily lead to misjudgment in the monitoring, research and optimization of caustic soda production, posing a hidden danger to production.
[0044] (2) At the same time, the method for adjusting the pH value of the anolyte in the production of caustic soda provided by the present invention also compares the currently acquired time series data with the previous time series data during the process of obtaining the time series data of the pH value of the anolyte in real time, and determines whether to retain the currently acquired time series data based on their time interval, thereby reducing the storage of duplicate data and improving the efficiency of time series data trend analysis and processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the method for adjusting the pH value of the anolyte in caustic soda production in the present invention. DETAILED DESCRIPTION
[0046] The invention provides a method, system and storage medium for adjusting the pH value of anolyte in caustic soda production, which are used for monitoring, analyzing and adjusting the pH value of anolyte in the process of caustic soda production.
[0047] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0048] Example 1
[0049] First, see Figure 1 , showing a schematic diagram of a method for adjusting the pH value of anolyte in caustic soda production described in the present application, comprising the steps of:
[0050] S1: Collect time series data of pH value of anolyte in real time during production;
[0051] S2: Select a data analysis time interval, and obtain the time series data of the pH value of the anolyte within the data analysis time interval according to the data analysis time interval;
[0052] S3: Divide the data analysis time interval into multiple time intervals, and obtain key feature data in each time interval;
[0053] S4: Integrate the key characteristic data in each time interval in turn, analyze and obtain the time-data trend of the pH value of the anolyte, and adjust the pH value of the anolyte according to the time-data trend.
[0054] Furthermore, by obtaining the time-data trend of the anolyte pH value, the pH value of the anolyte can be continuously monitored and analyzed, and when the anolyte pH value tends to increase or decrease, the pH value can be controlled by adding hydrochloric acid and optimizing the electrolysis conditions, such as adjusting the electrolysis temperature and current density.
[0055] Furthermore, the time series data obtained in the present invention is stored in a database for interception and analysis.
[0056] Optionally, step S1 in the present invention specifically includes:
[0057] S1.1: Select the time granularity and interval tolerance value. In production, use the time granularity as the interval to collect the time series data of the pH value of the anolyte;
[0058] S1.2: Compare the acquired time series data with the previously acquired time series data:
[0059] If the time series data changes, the time series data is retained;
[0060] If the time series data has not changed, execute step S1.3;
[0061] S1.3: Obtain the time interval between the time series data and the last time series data obtained, and determine whether the time interval is greater than the interval tolerance value; if the time interval is less than the interval tolerance value, the time series data is not retained; if the time interval is greater than or equal to the interval tolerance value, the time series data is retained.
[0062] In this embodiment, the currently acquired time series data is compared with the previous time series data, and whether to retain the currently acquired time series data is determined based on their time interval, thereby reducing the storage of duplicate data and improving the efficiency of time series data trend analysis and processing.
[0063] Specifically, in the caustic soda production process, the time series data of the pH value of the anode liquid obtained in real time is generally millisecond-level data, while in the process of time series data trend analysis, generally only seconds, minutes and above accuracy is required. In the present invention, the currently acquired time series data is compared with the previously retained time series data. If a change occurs, the currently acquired time series data is directly written into the database; if no change occurs, the relationship between the time interval between the currently acquired time series data and the previously written time series and the set interval tolerance value is determined. If the time interval is less than the interval tolerance value, the currently acquired time series data is not retained. If the time interval is greater than or equal to the interval tolerance value, it means that the time series data in the production process has not changed within the duration of the interval tolerance value. In order to ensure the continuity of data records, the time series data is still retained and written into the database.
[0064] Optionally, the time series data in the present invention is stored in an Influxdb database.
[0065] In this embodiment, the storage of time series data can be performed at the millisecond level through the Influxdb database that supports high-concurrency writing and has efficient storage.
[0066] Optionally, step S3 in the present invention specifically includes:
[0067] S3.1: Divide the data analysis time interval evenly into multiple time intervals;
[0068] S3.2: Obtain the initial value, maximum value and minimum value of the time series data in each time interval;
[0069] S3.3: Determine key characteristic data:
[0070] If the length of each time interval is greater than 1 second, the initial value, maximum value and minimum value in each time interval are used as key feature data of the time interval;
[0071] If the length of each time interval is less than or equal to 1 second, the maximum value in each time interval is used as the key feature data in the time interval.
[0072] In this embodiment, the data analysis time interval is evenly divided to obtain multiple time intervals. When the length of each time interval is greater than 1 second, the initial value, maximum value and minimum value in each time interval are obtained as the key feature data of each time interval; when the length of the time interval is less than or equal to 1 second, only the maximum value in each time interval is retained as the key feature data in the time interval, so as to avoid the situation in which multiple values exist simultaneously in one second during the trend analysis of time series data, resulting in inaccurate data trend analysis, because the accuracy is generally at the second level or above.
[0073] For example, when the data analysis interval is evenly divided, the data analysis interval is generally divided into 300 to 400 time intervals, specifically, 300 time intervals. It should be noted that technical personnel in this field can select the specific number of divided time intervals according to actual usage requirements. This embodiment only provides an example.
[0074] Optionally, step S3.2 in the present invention includes:
[0075] S3.2.1: Determine whether there is a valid value in each time interval.
[0076] If there is no valid value, execute step S3.2.2;
[0077] If there are valid values, execute step S3.2.3;
[0078] S3.2.2: Assign values to time intervals where no valid values exist.
[0079] Set a time tolerance value. If there is no valid value in the time series data within one or more consecutive time intervals, and if the total duration is shorter than the time tolerance value, assign a value to the one or more consecutive time intervals.
[0080] If the total duration is greater than or equal to the time tolerance value, the one or more consecutive time intervals will not be processed;
[0081] S3.2.3: Obtain the initial value, maximum value, and minimum value for each time interval.
[0082] In this embodiment, the present invention also sets a time tolerance value. When one or more consecutive time series data do not have valid values, the total length of their time intervals is compared with the time tolerance value. If the total length of the time intervals is shorter than the time tolerance value, a value is assigned to the time intervals in which the one or more consecutive time series data do not have valid values; if the total length of the time intervals is greater than or equal to the time tolerance value, the time intervals of the one or more consecutive time series data are not processed.
[0083] It should be noted that the effective value in the present invention means that the pH value of the anolyte collected within the time interval is not a null value.
[0084] Specifically, during the production process of the caustic soda production system, not every time series data can be accurately obtained and written, and there are also reasons such as device failure that cause the time series data to be invalid. Therefore, in this embodiment, the time tolerance value is used to filter the interruptions in the trend analysis process of the anolyte pH value time series data, and the time intervals without valid values that are greater than or equal to the time tolerance value are retained to ensure that no value assignment is performed in these time intervals, so that the time series data interruptions of the anolyte pH value in the caustic soda production process can be accurately obtained through the time series trend analysis, which is convenient for the staff to monitor, study and optimize the caustic soda production system in a timely manner; at the same time, the time intervals whose time period length is less than the time tolerance value can also be assigned, thereby improving the coherence of the time series data trend analysis.
[0085] Specifically, the time tolerance value can be selected as 5 minutes, 10 minutes or 15 minutes. It should be noted that those skilled in the art can select the specific time tolerance value according to the actual caustic soda production system, and the present invention does not make further limitations.
[0086] Optionally, in step S3.2.2 of the present invention, when assigning values to one or more consecutive time intervals in which the time series data are null values, the preceding value method or the least squares method may be used for the assignment.
[0087] In this embodiment, when assigning values to one or more consecutive time intervals in which time series data are null values, the previous value method can be used to assign the key feature data in the previous time interval to the current time interval; or the least squares method can be used to combine the key feature data in the previous and next time intervals to perform the assignment operation.
[0088] Optionally, step S4 in the present invention specifically includes: integrating the key characteristic data in each time interval according to the time relationship to form a time-data trend of the pH value of the anolyte.
[0089] In this embodiment, the key characteristic data in each time interval can be integrated according to the corresponding relationship of time to obtain a time-data trend, which is convenient for technical personnel in this field to control and adjust the pH value of the anode liquid by adding hydrochloric acid, optimizing electrolysis conditions, adjusting electrolysis temperature, current density, etc. according to the results of the time series data trend analysis.
[0090] Optionally, the method for adjusting the pH value of the anolyte in caustic soda production of the present invention further includes step S5: visualizing the time-data trend of the pH value of the anolyte to obtain a trend chart of the pH value of the anolyte within the data analysis time interval.
[0091] In this embodiment, the time-data trend of the pH value of the anolyte is visualized to obtain a trend chart of the pH value of the anolyte within the data analysis time interval, so that technicians can intuitively understand the time-data trend of the pH value of the anolyte, thereby monitoring, studying and optimizing the pH value of the anolyte in caustic soda production, improving production efficiency and reducing production risks.
[0092] In the present invention, the time series data of the pH value of the anolyte collected in real time during the production process is divided into multiple time intervals according to the selected data analysis time, and the key feature data in each time interval is obtained. After the key feature data is judged and processed, the key feature data is integrated to obtain the time-data trend, which solves the problem in the prior art that a single sampling is performed in a time interval to obtain the sampled data, and the sampled data cannot accurately reflect the data trend in the time interval, and there is a large error, which is very likely to cause misjudgment in the monitoring, research and optimization process of caustic soda production, bringing hidden dangers to production.
[0093] Example 2
[0094] In a second aspect, the present invention also provides a system for adjusting pH value of anolyte in caustic soda production, comprising: a data acquisition module, a data storage module, a data processing module and an adjustment module;
[0095] The data acquisition module is used to collect the time series data of the pH value of the anolyte in real time during the caustic soda production process;
[0096] The data storage module is used to store the anolyte pH value time series data collected in real time during the caustic soda production process;
[0097] The data processing module is used to obtain time series data within the data analysis time interval according to the data analysis time interval; divide the data analysis time interval into multiple time intervals, and obtain key feature data within each time interval; sequentially integrate the key feature data within each time interval, and analyze and obtain time-data trends;
[0098] The adjustment module is used to adjust the pH value of the anolyte based on the time-data trend.
[0099] Furthermore, the caustic soda production anode liquid pH adjustment system of the present invention can be used in the form of a WEB application, with a front-end and back-end separated application architecture design, the front-end is built based on HTML5 technology, and communicates with the back-end using a RESTful interface, and the back-end is built using Java technology.
[0100] Example 3
[0101] The present invention also provides a storage medium, on which instructions are stored, and the instructions are generated based on the method for adjusting the pH value of anolyte in caustic soda production described in Example 1.
[0102] Specifically, the storage medium described in the present invention may include random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk or CD-ROM. It should be noted that those skilled in the art may select the form and type of storage medium according to actual production and use requirements, and this is not further limited in this embodiment.
[0103] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and storage medium described above can refer to the corresponding process in the aforementioned embodiment 1, and will not be repeated here.
Claims
1. A method for adjusting the pH value of anolyte in caustic soda production, characterized in that: Includes steps: S1: Real-time collection of time series data of anolyte pH value during production; S2: Selecting a data analysis time interval, and obtaining time series data of pH values within the data analysis time interval according to the data analysis time interval; S3: Divide the data analysis time interval into multiple time intervals, and obtain key feature data in each time interval; S4: Integrate the key characteristic data in each time interval in turn, analyze and obtain the time-data trend of the pH value of the anolyte, and adjust the pH value of the anolyte according to the time-data trend.
2. The method for adjusting pH value of anolyte in caustic soda production according to claim 1, characterized in that: The step S1 specifically includes: S1.1: Select the time granularity and interval tolerance value. In production, use the time granularity as the interval to collect the time series data of the pH value of the anolyte; S1.2: Compare the acquired time series data with the previously acquired time series data: If the time series data changes, the time series data is retained; If the time series data has not changed, execute step S1.3; S1.3: Obtain the time interval between the time series data and the last time series data obtained, and determine whether the time interval is greater than the interval tolerance value; if the time interval is less than the interval tolerance value, the time series data is not retained; if the time interval is greater than or equal to the interval tolerance value, the time series data is retained.
3. The method for adjusting pH value of anolyte in caustic soda production according to claim 1, characterized in that: The step S3 specifically includes: S3.1: Divide the data analysis time interval evenly into multiple time intervals; S3.2: Obtain the initial value, maximum value and minimum value of the time series data in each time interval; S3.3: Determine key characteristic data: If the length of each time interval is greater than 1 second, the initial value, maximum value and minimum value in each time interval are used as key feature data of the time interval; If the length of each time interval is less than or equal to 1 second, the maximum value in each time interval is used as the key feature data in the time interval.
4. The method for adjusting pH value of anolyte in caustic soda production according to claim 3, characterized in that: The step S3.2 comprises: S3.2.1: Determine whether there is a valid value in each time interval. If there is no valid value, execute step S3.2.2; If there are valid values, execute step S3.2.3; S3.2.2: Assign values to time intervals where no valid values exist. Set a time tolerance value. If there is no valid value in the time series data within one or more consecutive time intervals, and if the total duration is shorter than the time tolerance value, assign a value to the one or more consecutive time intervals. If the total duration is greater than or equal to the time tolerance value, the one or more consecutive time intervals will not be processed; S3.2.3: Obtain the initial value, maximum value, and minimum value for each time interval.
5. The method for adjusting pH value of anolyte in caustic soda production according to claim 4, characterized in that: In the step S3.2.2, when assigning values to one or more consecutive time intervals, the preceding value method or the least squares method is used for assignment.
6. The method for adjusting pH value of anolyte in caustic soda production according to claim 1, characterized in that: The step S4 specifically includes: integrating the key characteristic data in each time interval according to the time relationship to form a time-data trend of the pH value of the anolyte, and adjusting the pH value of the anolyte according to the time-data trend.
7. The method for adjusting pH value of anolyte in caustic soda production according to claim 1, characterized in that: The time series data is stored in the Influxdb database.
8. The method for adjusting pH value of anolyte in caustic soda production according to claim 1, characterized in that: The method further includes step S5: visualizing the time-data trend of the pH value of the anolyte to obtain a trend chart of the pH value of the anolyte within the data analysis time interval.
9. A system for adjusting pH value of anolyte in caustic soda production, characterized in that: include: Data acquisition module, data storage module, data processing module and adjustment module; The data acquisition module is used to collect the time series data of the pH value of the anolyte in real time during the caustic soda production process; The data storage module is used to store the anolyte pH value time series data collected in real time during the caustic soda production process; The data processing module is used to obtain time series data within the data analysis time interval according to the data analysis time interval; divide the data analysis time interval into multiple time interval segments, and obtain key feature data within each time interval segment; Integrate the key feature data in each time interval in turn, and analyze and obtain time-data trends; The adjustment module is used to adjust the pH value of the anolyte based on the time-data trend.
10. A storage medium, characterized in that: The storage medium stores instructions, which are generated based on the method for adjusting the pH value of anolyte in caustic soda production according to any one of claims 1 to 8.