Phenol ammonia recovery process monitoring method, apparatus, and electronic device
By using a physical frequency domain enhanced Mamba model for time series modeling in the phenol and ammonia recovery section, and combining real-time data to determine a high-confidence sampling time window, the problem of inaccurate manual sampling was solved, and high-precision sampling of coal chemical wastewater was achieved.
Patent Information
- Application Number
- CN202611383066.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, sampling in the phenol and ammonia recovery section relies on manual operation, which cannot accurately capture fluctuations in operating conditions, resulting in low accuracy in coal chemical wastewater sampling.
A physical frequency domain enhanced Mamba model is used to perform time series modeling on real-time monitoring data, predicting the concentration waveforms of phenol, ammonia nitrogen, and chemical oxygen demand in the tower outlet. The high-confidence sampling time window is determined by combining the target pipeline length and real-time flow velocity data, and sampling is triggered by automatic decision-making driven by DCS data.
It improves the accuracy of coal chemical wastewater sampling, ensures that the sampling timing is precisely aligned with the concentration peak, and reduces errors from human experience-based judgment.
Smart Images

Figure CN123180232A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of coal chemical wastewater treatment technology, specifically relating to a method, device, and electronic equipment for monitoring the phenol and ammonia recovery process. Background Technology
[0002] Phenol and ammonia recovery from coal gasification is a core stage in coal chemical wastewater treatment. Its technological characteristics dictate that wastewater must undergo rigorous testing and inspection before being sent to the downstream biochemical treatment unit. In a typical application scenario, coal gas and water are drawn from the gasifier process, equalized in pressure and volume by a coal gas and water buffer, and then enter the phenol and ammonia recovery section. The wastewater flows sequentially through a deacidification tower (stripping deacidification) and a deammoniation tower (stripping deammoniation) to remove acidic gas components and free ammonia. It then passes through two extraction towers (No. 1 and No. 2, with methyl isobutyl ketone as the extractant) connected in series to recover crude phenol. The treated wastewater is then transported to a sampling point via the tower outlet main pipe, located on the wastewater main pipe leading to the downstream biochemical treatment unit.
[0003] Currently, the sampling and delivery of samples in the phenol and ammonia recovery section relies entirely on manual operation. Operators conduct inspections and sampling at fixed time intervals, which makes it impossible to accurately capture the time fluctuations in operating conditions for sampling, resulting in low sampling accuracy of coal chemical wastewater. Summary of the Invention
[0004] The technical problem to be solved by this application is to provide a method, device and electronic equipment for monitoring the phenol and ammonia recovery process, which addresses the above-mentioned shortcomings of the existing technology. Using this method, a high-confidence sampling time window can be determined, thereby improving the sampling accuracy of coal chemical wastewater.
[0005] In a first aspect, embodiments of this application provide a method for monitoring a phenol-ammonia recovery process, comprising: The system acquires real-time monitoring data of multi-dimensional process parameters, the length of the target pipeline, and real-time flow velocity data within the target pipeline. The multi-dimensional process parameters are generated by the distributed control system (DCS) of the phenol-ammonia recovery section and include at least the gasifier load, gasifier temperature, oxygen-coal ratio, pressure and temperature of the deacidification and deammonia removal towers, pipeline flow rate, reflux ratio, and liquid level of each tower. The target pipeline is the pipeline from the outlet of the target process equipment within the phenol-ammonia recovery section to the sampling point. The physical frequency domain enhanced Mamba model was used to perform time series modeling on real-time monitoring data to predict the concentration waveform of at least one key indicator among phenol, ammonia nitrogen, and chemical oxygen demand (COD) in the wastewater at the tower outlet. High-confidence sampling time windows are determined based on concentration waveforms, real-time flow rate data, length, and liquid levels in each tower. A sampling trigger command is generated based on the high-confidence sampling time window and sent to the sampling personnel's terminal.
[0006] In some embodiments of the first aspect, a high-confidence sampling time window is determined based on concentration waveforms, real-time flow rate data, length, and liquid levels in each column, including: The transmission lag time from the outlet of the target process equipment to the sampling point is calculated based on real-time flow velocity data and length calculation. Determine the high concentration warning range based on the concentration waveform; The material accumulation in each tower is calculated based on the liquid level and acquired tower parameters. The high-confidence sampling time window is determined based on real-time flow rate data, transmission lag time, high concentration warning interval, and material accumulation in each tower.
[0007] In some embodiments of the first aspect, the concentration data at each moment in the concentration waveform is 21 quantile data; The high-concentration warning range is determined based on the concentration waveform, including: The concentration waveform is fitted to the 21 quantile data at each time step by an empirical cumulative distribution function, and the probability of exceeding the threshold at each time step is calculated in chronological order. The probability of exceeding the threshold is the probability value of the concentration exceeding the preset release threshold. The moment when the probability of exceeding the threshold for the first time exceeds the preset confidence threshold is taken as the starting moment; The moment when the probability of exceeding the threshold first falls back to the preset confidence threshold after the start time is taken as the end time; The concentration waveform interval between the start and end times is designated as the high concentration warning interval.
[0008] In some embodiments of the first aspect, a high-confidence sampling time window is determined based on the transmission lag time, the high-concentration warning interval, and the material accumulation in each tower, including: Calculate the first variance increment caused by axial diffusion in the pipeline based on the transmission lag time; Calculate the second variance increment caused by backmixing in each tower based on the material accumulation in each tower and the inlet and outlet flow rates of each tower. The total broadened variance is obtained by summing the first variance increment and all second variance increments. The high-concentration warning interval is corrected based on the total broadening variance and the preset sampling operation constraint time to obtain a high-confidence sampling time window.
[0009] In some embodiments of the first aspect, after sending a sampling trigger command to the sampling personnel's terminal, the method further includes: The actual sampling time received from the terminal of the sampling personnel; If the actual sampling time is not within the high-confidence sampling time window, then determine the time deviation between the actual sampling timestamp and the high-confidence sampling time window; Adjust the preset sampling operation constraint time based on the time deviation to generate a new sampling operation constraint time.
[0010] In some embodiments of the first aspect, after sending a sampling trigger command to the sampling personnel's terminal, the method further includes: Obtain the test results corresponding to the sampling points; The test results are transmitted to the HMI layer of the DCS via a data gateway as reference data, so that the DCS can generate corresponding safety judgment results based on the test results and provide prompts to the on-duty safety personnel based on the safety judgment results; the test results are not connected to the DCS control network.
[0011] In some embodiments of the first aspect, the method further includes: If the concentration of at least one of the key indicators, such as phenol, ammonia nitrogen, and chemical oxygen demand (COD), exceeds the process control range in the test results, the root cause parameter and its propagation path leading to the concentration abnormality will be traced back according to the causal graph model. The causal graph model is used to characterize the causal relationship between multi-dimensional process parameters and concentration indicators, and is constructed based on the historical time series data of multi-dimensional process parameters in the DCS. Based on root cause parameters, propagation paths, and preset control strategies, recommended control strategies are generated. Send control strategy recommendation information to the terminal of the on-duty security personnel.
[0012] In some implementations of the first aspect, the physical frequency domain enhanced Mamba model includes: The Mamba time-series branch is used to receive and process real-time monitoring data. Based on the state-space model of the Mamba architecture, it extracts time-series features and uses the exogenous variable cross-attention mechanism to fuse the real-time monitoring data as exogenous variables and output the time-series feature vector. The frequency domain analysis branch is used to convert real-time monitoring data to the frequency domain through fast Fourier transform, extract frequency domain features after corresponding filtering of the characteristic frequency bands of the chemical industry scene, and output frequency domain feature vectors. The adaptive fusion module is used to generate fusion weights based on the operating conditions, and to perform weighted fusion of the time-series feature vector and the frequency domain feature vector to output the fused feature vector. The output layer maps the fused feature vectors to predicted concentration values of key wastewater indicators for future moments, generating concentration waveforms.
[0013] Based on the same inventive concept, in a second aspect, embodiments of this application also provide a phenol-ammonia recovery process monitoring device, comprising: The acquisition module is used to acquire real-time monitoring data of multi-dimensional process parameters, the length of the target pipeline, and the real-time flow velocity data within the target pipeline. The multi-dimensional process parameters are generated by the distributed control system (DCS) of the phenol-ammonia recovery section and include at least the gasifier load, gasifier temperature, oxygen-coal ratio, pressure and temperature of the deacidification tower and deammonia removal tower, pipeline flow rate, reflux ratio, and liquid level of each tower. The target pipeline is the pipeline from the outlet of the target process equipment in the phenol-ammonia recovery section to the sampling point. The prediction module is used to perform time-series modeling on real-time monitoring data using a physical frequency domain enhanced Mamba model, and to predict the concentration waveform of at least one key indicator among phenol, ammonia nitrogen, and chemical oxygen demand (COD) in the wastewater at the tower outlet. The determination module is used to determine a high-confidence sampling time window based on concentration waveform, real-time flow rate data, length, and liquid level in each tower. The generation module is used to generate sampling trigger commands based on the high-confidence sampling time window and send the sampling trigger commands to the sampling personnel's terminal.
[0014] In some implementations of the second aspect, the determining module is specifically used for: The transmission lag time from the outlet of the target process equipment to the sampling point is calculated based on real-time flow rate data and length; the high concentration warning interval is determined based on the concentration waveform; the material accumulation in each tower is calculated based on the liquid level of each tower and the acquired tower parameters; and the high confidence sampling time window is determined based on real-time flow rate data, transmission lag time, high concentration warning interval, and material accumulation in each tower.
[0015] In some embodiments of the second aspect, the concentration data at each moment in the concentration waveform consists of 21 quantile data. When determining the high concentration warning range based on the concentration waveform, the module is specifically used for: The concentration waveform at each of the 21 quantiles is fitted with an empirical cumulative distribution function, and the probability of exceeding the threshold at each time point is calculated in chronological order. The probability of exceeding the threshold is the probability value of the concentration exceeding the preset release threshold. The moment when the probability of exceeding the threshold for the first time exceeds the preset confidence threshold is taken as the start time. The moment when the probability of exceeding the threshold for the first time after the start time falls back to the preset confidence threshold is taken as the end time. The concentration waveform interval between the start time and the end time is taken as the high concentration warning interval.
[0016] In some embodiments of the second aspect, when determining the high-confidence sampling time window based on the transmission lag time, the high-concentration warning interval, and the material accumulation in each tower, the determining module is specifically used for: Calculate the first variance increment caused by axial diffusion in the pipeline based on the transmission lag time; The second variance increment caused by backmixing in each tower is calculated based on the material accumulation in each tower and the inlet and outlet flow rates of each tower. The first variance increment and all second variance increments are summed to obtain the total broadened variance. The high concentration warning interval is corrected based on the total broadened variance and the preset sampling operation constraint time to obtain the high confidence sampling time window.
[0017] In some embodiments of the second aspect, the apparatus further includes: The adjustment module receives the actual sampling time from the sampling personnel's terminal feedback; if the actual sampling time is not within the high-confidence sampling time window, it determines the time deviation between the actual sampling timestamp and the high-confidence sampling time window; it adjusts the preset sampling operation constraint time according to the time deviation and generates a new sampling operation constraint time.
[0018] In some embodiments of the second aspect, the apparatus further includes: The transmission module is used to acquire the test results corresponding to the sampling points; the test results are transmitted to the HMI layer of the DCS as reference data through the data gateway, so that the DCS can generate corresponding safety judgment results based on the test results and provide prompts to the on-duty safety personnel based on the safety judgment results; the test results are not connected to the control network of the DCS.
[0019] In some embodiments of the second aspect, the apparatus further includes: The traceability module is used to trace back the root cause parameter and its propagation path that caused the concentration abnormality if the concentration of at least one key indicator among phenol, ammonia nitrogen, and chemical oxygen demand (COD) exceeds the process control range in the test results. The causal graph model is used to characterize the causal relationship between multi-dimensional process parameters and concentration indicators, and is constructed based on the historical time series data of multi-dimensional process parameters in the DCS. Based on the root cause parameter, propagation path, and preset control strategy, the module generates control strategy recommendation information and sends the control strategy recommendation information to the terminal of the on-duty safety personnel.
[0020] In some implementations of the second aspect, the physical frequency domain enhanced Mamba model includes: The Mamba time-series branch is used to receive and process real-time monitoring data. Based on the state-space model of the Mamba architecture, it extracts time-series features and uses the exogenous variable cross-attention mechanism to fuse the real-time monitoring data as exogenous variables and output the time-series feature vector. The frequency domain analysis branch is used to convert real-time monitoring data to the frequency domain through fast Fourier transform, extract frequency domain features after corresponding filtering of the characteristic frequency bands of the chemical industry scene, and output frequency domain feature vectors. The adaptive fusion module is used to generate fusion weights based on the operating conditions, and to perform weighted fusion of the time-series feature vector and the frequency domain feature vector to output the fused feature vector. The output layer maps the fused feature vectors to predicted concentration values of key wastewater indicators for future moments, generating concentration waveforms.
[0021] Based on the same inventive concept, in a third aspect, embodiments of this application also provide an electronic device, including: a memory and a processor; The memory stores the instructions that the computer executes; The processor executes computer execution instructions stored in memory to implement the phenol and ammonia recovery process monitoring method as described in any of the first aspects.
[0022] Based on the same inventive concept, in a fourth aspect, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the phenol-ammonia recovery process monitoring method as described in any of the first aspects.
[0023] According to the phenol and ammonia recovery process monitoring method, device, and electronic equipment provided in this application, a physical frequency domain enhanced Mamba model is used to perform time-series modeling of multi-dimensional process parameters in the DCS, predicting the future concentration waveform evolution trend. Then, combined with the length of the target pipeline, real-time flow rate data, and the liquid level of each tower, a high-confidence sampling time window is determined to capture samples near the concentration peak. Compared to traditional fixed-time sampling, the method in this embodiment eliminates the reliance on manual experience for sampling triggering, instead relying on automatic decision-making driven by DCS data. This allows for more precise temporal alignment between the sampling timing and the actual concentration peak, thereby improving the sampling accuracy of coal chemical wastewater. Attached Figure Description
[0024] Figure 1 This invention provides a schematic flowchart of a phenol and ammonia recovery process monitoring method according to an embodiment of the present application. Figure 2 This paper illustrates another flowchart of the phenol and ammonia recovery process monitoring method provided in an embodiment of this application. Figure 3 This diagram illustrates the overall architecture of the phenol and ammonia recovery process monitoring method provided in this application embodiment. Detailed Implementation
[0025] To enable those skilled in the art to better understand the technical solutions of this application, the application will be further described in detail below with reference to the accompanying drawings and embodiments.
[0026] The features and exemplary embodiments of various aspects of this application will now be described in detail. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain this application and are not configured to limit this application. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples of this application.
[0027] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0028] The phenol-ammonia recovery process monitoring method provided in this application is applied to an electronic device. This electronic device can be a computer, or a device within a computer used to implement the phenol-ammonia recovery process monitoring method. The computer can be a server, a server cluster, or a terminal; this application does not specifically limit its application in this regard. Furthermore, the following description uses the example of the phenol-ammonia recovery process monitoring method being executed by an electronic device.
[0029] like Figure 1 As shown, the phenol and ammonia recovery process monitoring method provided in this application embodiment may include steps S101 to S104.
[0030] S101. Acquire real-time monitoring data of multi-dimensional process parameters, the length of the target pipeline, and real-time flow velocity data within the target pipeline. The multi-dimensional process parameters are generated by the distributed control system (DCS) of the phenol-ammonia recovery section and include at least the gasifier load, gasifier temperature, oxygen-to-coal ratio, pressure and temperature of the deacidification and deammonia removal towers, pipeline flow rate, reflux ratio, and liquid level in each tower. The target pipeline is the pipeline from the outlet of the target process equipment within the phenol-ammonia recovery section to the sampling point.
[0031] For example, the real-time monitoring data is process data collected in real time by the DCS (Distributed Control System) system of the phenol and ammonia recovery section at sampling intervals.
[0032] The target process equipment is any process equipment located before the sampling point in the phenol and ammonia recovery process, including but not limited to deacidification towers, deammoniation towers, extraction towers, and other tower equipment.
[0033] S102. The physical frequency domain enhanced Mamba model is used to perform time series modeling on real-time monitoring data to predict the concentration waveform of at least one key indicator in the wastewater at the tower outlet: phenol, ammonia nitrogen, and chemical oxygen demand (COD).
[0034] For example, the physical frequency domain enhanced Mamba model is a time-series neural network model. The "physical" in its name refers to the introduction of chemical physical laws as constraint regularization terms during the model training process, and "frequency domain enhancement" refers to the extraction and enhancement of frequency domain features of time-series data through the fast Fourier transform branch.
[0035] Based on real-time monitoring data, the concentration waveform of at least one key indicator can be predicted and generated.
[0036] S103. Determine the high-confidence sampling time window based on concentration waveform, real-time flow rate data, length, and liquid level of each tower.
[0037] For example, real-time flow rate data and length are used to calculate the transmission time from the outlet of the target process equipment to the sampling point.
[0038] S104. Generate a sampling trigger command based on the high-confidence sampling time window and send the sampling trigger command to the sampling personnel's terminal.
[0039] The sampling trigger command can include fields such as sampling point location identifier, start and end times of the high-confidence sampling time window, and sampling precautions. This facilitates faster sampling work for sampling personnel.
[0040] According to the phenol and ammonia recovery process monitoring method provided in this application, a physical frequency domain enhanced Mamba model is used to perform time-series modeling of multi-dimensional process parameters in the DCS, predicting the future concentration waveform evolution trend. Then, combined with the length of the target pipeline, real-time flow rate data, and the liquid level of each tower, a high-confidence sampling time window is determined to capture samples near the concentration peak. Compared with traditional fixed-time sampling, the method in this embodiment eliminates the reliance on manual experience for sampling triggering, instead relying on automatic decision-making driven by DCS data. This allows for more precise temporal alignment between the sampling timing and the actual concentration peak, thereby improving the sampling accuracy of coal chemical wastewater.
[0041] like Figure 2 As shown, the phenol and ammonia recovery process monitoring method provided in this application embodiment is further described based on the phenol and ammonia recovery process monitoring method provided in the previous embodiment, and may include steps S201 to S206.
[0042] S201. Obtain real-time monitoring data of multi-dimensional process parameters, the length of the target pipeline, and the real-time flow velocity data within the target pipeline.
[0043] S202. The physical frequency domain enhanced Mamba model is used to perform time series modeling on real-time monitoring data to predict the concentration waveform of at least one key indicator in the wastewater of phenol, ammonia nitrogen and chemical oxygen demand (COD) at the outlet of the tower.
[0044] In some implementations, the physical frequency domain enhanced Mamba model includes: The Mamba temporal branch is used to receive and process real-time monitoring data. Based on the state-space model of the Mamba architecture, it extracts temporal features and uses the exogenous variable cross-attention mechanism to fuse the real-time monitoring data as exogenous variables and output a temporal feature vector.
[0045] The frequency domain analysis branch is used to convert real-time monitoring data to the frequency domain through fast Fourier transform, extract frequency domain features after corresponding filtering of characteristic frequency bands of chemical industry scenarios, and output frequency domain feature vectors.
[0046] The adaptive fusion module is used to generate fusion weights based on the operating conditions, and to perform weighted fusion of the time-series feature vector and the frequency domain feature vector to output the fused feature vector.
[0047] The output layer maps the fused feature vectors to predicted concentration values of key wastewater indicators for future moments, generating concentration waveforms.
[0048] For example, ① Mamba time-series branch: The Mamba architecture based on the State Space Model (SSM) has a linear time complexity of O(n), which is significantly more efficient than the Transformer architecture's O(n²) in long-sequence inference, reducing inference latency from 200-500ms to 10-50ms. This embodiment introduces an exogenous variable cross-attention mechanism in the Mamba branch to handle multi-dimensional DCS process parameters (gasifier load, temperature, oxygen-to-coal ratio, desulfurization / deammoniation tower pressure, temperature, pipeline flow rate, reflux ratio, liquid level in each tower, etc.) as exogenous variables, enhancing the model's ability to capture operating condition drivers.
[0049] ② Frequency Domain Analysis Branch: Time-series data is converted to the frequency domain using Fast Fourier Transform (FFT). Customized filters are applied to characteristic frequency bands in chemical engineering scenarios, including: shift cycle frequency band (corresponding to 8-hour shift switching patterns), daily temperature cycle frequency band (corresponding to 24-hour ambient temperature changes), and operating condition fluctuation frequency band (corresponding to minute-level to hourly operating condition fluctuations). Customized filtering for these chemical engineering characteristic frequency bands effectively captures periodic patterns and filters out instrument noise, offering stronger process interpretability compared to general frequency domain filtering.
[0050] ③ Adaptive Fusion Module: Dynamically adjusts the weights of the Mamba time-series branch and the frequency domain analysis branch based on the operating conditions (steady-state / transient / abnormal). Under steady-state conditions, the frequency domain branch weight is increased to improve periodic prediction accuracy; under transient conditions, the Mamba branch weight is increased to enhance causal chain tracking capability; and under abnormal conditions, the Mamba branch weight is increased while the frequency domain branch weight is decreased to quickly respond to sudden changes. The fusion weights are dynamically generated by the gating network based on the operating condition state vector.
[0051] ④ Physical Constraint Regularization: Two physical regularization terms are introduced into the model training loss function: transport lag equation constraint and material balance equation constraint. The transport lag equation constraint requires that the peak time of the concentration waveform predicted by the model be consistent with the transport lag time calculated based on pipe length and real-time flow rate. The material balance equation constraint requires that the concentration change trend predicted by the model be consistent with the material accumulation change calculated based on tower liquid level and inlet / outlet flow rate. The initial values of the physical constraint regularization weights λ1 and λ2 are set according to the following principles: λ1 = 0.1 (transport lag constraint weight), λ2 = 0.05 (material balance constraint weight), based on the ratio of the scales of the residuals after dimension normalization of the two types of constraints (the magnitude of the transport lag deviation is approximately twice the magnitude of the material balance deviation, so λ1 is twice λ2), and the optimal values are confirmed on the validation set through grid search. They are updated online as adjustable parameters during the model self-learning process. Physical constraint regularization ensures that the prediction results conform to the physical laws of chemical processes and avoids the physically unreasonable predictions that may arise from purely data-driven models.
[0052] S203. Determine the high-confidence sampling time window based on concentration waveform, real-time flow rate data, length, and liquid level of each tower.
[0053] In some implementations, S203 may be specifically as follows: The transmission lag time from the outlet of the target process equipment to the sampling point is calculated based on real-time flow velocity data and length.
[0054] The high concentration warning range is determined based on the concentration waveform.
[0055] The material accumulation in each tower is calculated based on the liquid level and acquired tower parameters.
[0056] The high-confidence sampling time window is determined based on real-time flow rate data, transmission lag time, high concentration warning interval, and material accumulation in each tower.
[0057] For example, the material storage volume inside the tower refers to the total volume or mass of material currently held inside each tower, which is calculated by combining the liquid level data collected in real time by the tower level gauge with the tower equipment parameters (such as the cross-sectional area of the tower body, effective volume, etc.).
[0058] By calculating the transmission lag time, the sampling timing deviation caused by physical transmission delays is avoided by relying solely on the model's predicted time axis. Secondly, a high-concentration warning interval is delineated from the predicted concentration waveform, resolving the problem of probabilistic determination of concentration exceeding limits. Furthermore, the material accumulation in each tower is calculated, providing a basis for subsequent waveform correction. Finally, by integrating the information from these three dimensions, the final high-confidence sampling time window is determined, improving the accuracy of the sampling time window.
[0059] In some implementations, the concentration data at each moment in the concentration waveform is 21 quantile data.
[0060] The process for determining the high concentration warning range based on the concentration waveform can be as follows: The concentration waveform at each of the 21 quantiles is fitted with an empirical cumulative distribution function, and the exceedance probability at each time step is calculated in chronological order. The exceedance probability is the probability that the concentration exceeds a preset release threshold.
[0061] The moment when the probability of exceeding the threshold for the first time exceeds the preset confidence threshold is taken as the starting moment.
[0062] The moment when the probability of exceeding the threshold first falls back to the preset confidence threshold after the start time is taken as the end time.
[0063] The concentration waveform interval between the start and end times is designated as the high concentration warning interval.
[0064] For example, the 21 quantile data points refer to the 21 conditional quantile predictions output by the physical frequency domain enhanced Mamba model for each future time step. These quantiles correspond to 0.01, 0.05, 0.10, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 0.95, 0.99, and several other quantiles evenly distributed in between (specifically, 21 equally spaced quantiles from 0.01 to 0.99). These 21 quantile data points collectively constitute a discrete probability distribution description of the concentration value at that time step.
[0065] This embodiment constructs a complete concentration probability distribution by outputting 21 quantiles, enabling the system to accurately calculate the probability of concentration exceeding the standard at any given time. It then automatically defines a warning interval of concern based on a pre-set confidence threshold (e.g., 80%). When the probability of exceeding the threshold reaches 80%, it means the model has a high degree of confidence that the concentration may exceed the standard during that period, and sampling resources should be prioritized for that period. When the probability of exceeding the threshold is lower than this threshold, it means the model judges the risk of exceeding the standard during that period to be low, and sampling can be temporarily suspended.
[0066] In some implementations, the process of determining the high-confidence sampling time window based on the transmission lag time, the high-concentration warning interval, and the material accumulation in each tower can be as follows: The first variance increment caused by axial diffusion in the pipeline is calculated based on the transmission lag time.
[0067] The second variance increment caused by backmixing in each tower is calculated based on the material accumulation in each tower and the inlet and outlet flow rates of each tower.
[0068] The total broadened variance is obtained by summing the first variance increment and all second variance increments.
[0069] The high-concentration warning interval is corrected based on the total broadening variance and the preset sampling operation constraint time to obtain a high-confidence sampling time window.
[0070] For example, the first variance increment refers to the peak broadening variance of the concentration pulse within the target pipe caused by axial molecular diffusion and turbulent diffusion. The second variance increment refers to the peak broadening variance caused by backmixing inside the i-th tower when the concentration pulse passes through it.
[0071] The preset sampling operation constraint time is a manually set operation time margin, including but not limited to: the response time of the sampling personnel from receiving the instruction to arriving at the sampling point, the transportation time of the sample from the sampling point to the laboratory, and the pre-processing time of the laboratory after receiving the sample.
[0072] S204. Generate a sampling trigger command based on the high-confidence sampling time window and send the sampling trigger command to the sampling personnel's terminal.
[0073] In some implementations, after S204, the following steps are also included: The actual sampling time is received from the terminal of the sampling personnel.
[0074] If the actual sampling time is not within the high-confidence sampling time window, then the time deviation between the actual sampling timestamp and the high-confidence sampling time window is determined.
[0075] Adjust the preset sampling operation constraint time based on the time deviation to generate a new sampling operation constraint time.
[0076] This embodiment achieves closed-loop feedback self-learning in the sampling decision-making process by comparing the deviation between the actual sampling time and the high-confidence sampling time window, which can improve the accuracy of subsequent sampling operation constraint time and high-confidence sampling time window.
[0077] S205. Obtain the test results corresponding to the sampling points.
[0078] For example, the test results are obtained by testing samples collected at the sampling point, and this test is generally performed in a laboratory.
[0079] S206. The test results are transmitted to the HMI layer of the DCS via a data gateway as reference data, so that the DCS can generate corresponding safety judgment results based on the test results and provide prompts to on-duty safety personnel based on the safety judgment results. The test results are not connected to the DCS control network.
[0080] This embodiment uses a data gateway to directly feed back test results to the HMI layer of the DCS without manual relaying, completely eliminating the information transmission delay caused by manual relaying in traditional methods. Simultaneously, the data feedback only reaches the HMI display layer, without entering the control loop, and does not alter any automatic control logic or safety interlocking mechanisms, ensuring that efficiency is improved without sacrificing functional safety.
[0081] In some implementations, the method further includes: If the concentration of at least one of the key indicators—phenol, ammonia nitrogen, and chemical oxygen demand (COD)—exceeds the process control range in the test results, the root cause parameter and its propagation path leading to the concentration anomaly are traced back using a causal graph model. The causal graph model is used to characterize the causal relationship between multi-dimensional process parameters and concentration indicators, and is constructed based on historical time-series data of multi-dimensional process parameters from the DCS (Distributed Control System).
[0082] Based on root cause parameters, propagation paths, and preset regulatory strategies, recommended regulatory strategies are generated.
[0083] Send control strategy recommendation information to the terminal of the on-duty security personnel.
[0084] For example, the causal graph model is a directed acyclic graph structure, where nodes represent DCS process parameters (such as steam flow rate, bottom temperature, feed load, etc.) and concentration indicators (such as ammonia nitrogen concentration at the outlet), and directed edges with arrows represent causal relationships between parameters.
[0085] Root cause parameters refer to the parameters at the very top of the causal chain that are the fundamental causes of concentration anomalies. The propagation path refers to the complete sequence of nodes traversed from the root cause parameter along the causal graph to the concentration anomaly indicators.
[0086] This embodiment constructs a causal graph model based on historical time-series data of DCS multi-dimensional parameters. When an anomaly in concentration is detected, it traces backward along the causal graph to identify the root cause parameters leading to the anomaly and their propagation paths, and recommends corresponding regulatory strategies based on the causal chain path. This directly solves the shortcomings of existing technologies that lack the ability to attribute anomalies and cannot trace the root cause of concentration anomalies from changes in DCS parameters.
[0087] To better understand the phenol and ammonia recovery process monitoring method provided in this application embodiment, the phenol and ammonia recovery process monitoring scheme of this embodiment will be described in further detail below.
[0088] like Figure 3 As shown, the phenol and ammonia recovery process monitoring scheme provided in this embodiment adopts a five-layer hierarchical architecture design, from bottom to top: data perception layer, operating condition modeling and analysis layer, intelligent sampling decision layer, anomaly attribution and control decision layer, and closed-loop execution and self-evolution layer. Each layer interacts with the others through standardized interfaces, achieving functional decoupling and modular design. Algorithm replacement or upgrades in any layer do not affect the normal operation of other layers. The entire system is driven by real-time DCS operating data, spanning the entire process from data acquisition, operating condition analysis, sampling decision-making, anomaly attribution to closed-loop execution, organically integrating the originally scattered monitoring, sampling, testing, and control processes into a unified intelligent closed-loop system.
[0089] The data perception layer is the foundation of the entire system, responsible for collecting real-time process data from various process stages in the phenol-ammonia recovery section, providing high-quality data support for upper-level operating condition modeling and analysis. This layer includes the following functional modules: (1) DCS Real-time Parameter Acquisition Module This module collects real-time process data from the DCS control system of the phenol-ammonia recovery section, including but not limited to: gasifier load, gasifier temperature, oxygen-coal ratio, pressure and temperature of the deacidification and deammoniation towers, pipeline flow rate, reflux ratio, and liquid levels in each tower, among other multi-dimensional process parameters. In this embodiment, the module communicates with the DCS system via the OPC UA (OLE for Process Control Unified Architecture) protocol, collecting real-time data for a total of 28 process parameters at a sampling interval of 1 minute. It should be noted that this embodiment does not require the collection of all 28 process parameters: among them, gasifier load, gasifier temperature, oxygen-coal ratio, pressure and temperature of the deacidification and deammoniation towers, pipeline flow rate, reflux ratio, and liquid levels in each tower are core essential parameters, constituting the minimum input set for concentration waveform prediction and causal attribution analysis. Other parameters (such as auxiliary temperatures, pressures, flow rates at each measuring point, and process indicators associated with laboratory data) are optional enhancement parameters used to further improve prediction accuracy and operational coverage.
[0090] The collected raw data undergoes preprocessing operations such as denoising, filtering, outlier removal, and time alignment to form a standardized multivariate time series data matrix for use by upper-level modules. The time alignment strategy is as follows: DCS parameters are based on a 1-minute sampling interval, and laboratory data (1-2 times / day) are aligned to the nearest DCS time step according to the laboratory timestamp. Short-term missing DCS parameters (≤5 minutes) are filled using linear interpolation; long-term missing parameters (>5 minutes, such as downtime for maintenance) are directly truncated and marked as invalid segments and not included in training. When laboratory data is missing for long periods, the corresponding DCS covariates are only used for unsupervised pre-training and do not participate in supervised fine-tuning.
[0091] (2) Online process instrument data acquisition module
[0092] This module collects auxiliary process indicator data from online process instruments such as pH meters, conductivity meters, online COD analyzers, and online ammonia nitrogen analyzers, supplementing the DCS process parameters. Here, "auxiliary process indicator data" refers to water quality component indicators such as pH, conductivity, COD, ammonia nitrogen, and volatile phenols, which are directly measured by online analytical instruments independent of the DCS measurement system. Their relationship with the aforementioned 28 DCS process parameters is as follows: DCS process parameters belong to the category of process operation variables (load, temperature, pressure, flow rate, liquid level, etc.), characterizing the operating conditions of each tower and pipeline, and constituting the main input of the concentration prediction model. Online instrument data belong to the category of water quality component indicators, directly characterizing the current quality status of the wastewater.
[0093] After online instrument data and DCS data are aligned in the time dimension, they together form a multi-source heterogeneous real-time data stream, providing a more comprehensive data foundation for subsequent working condition modeling and analysis. The uses of online instrument data in this embodiment are clearly divided into the following three categories: (1) Soft measurement reinforcement: Although the accuracy of online ammonia nitrogen / volatile phenol data is not as good as that of offline testing, the sampling frequency is high (once every 5-15 minutes), which can be used as pseudo-labels when fine-tuning the PhysFreq-Mamba model, and can be trained together with the offline testing true values to make up for the lack of sparse offline testing samples. (2) Fault fallback: When offline testing is missing or overdue, online data is used to trigger the expedited retesting process to ensure that there is no monitoring vacuum during critical periods. (3) Non-release: When online data exceeds the threshold, it only provides an early warning and does not participate in valve control decisions. Release decisions are still based on offline testing results. Online instrument data and DCS parameter data complement each other, but do not replace the offline analysis results of the laboratory.
[0094] (3) Automated sample transport device
[0095] This device automates the transfer of samples from the sampling point to the laboratory. After manual sampling, operators verify their identity and place the samples into the automated sample transport device (this embodiment uses an unmanned vehicle as an auxiliary transport method, but it is not limited to this). It should be noted that the unmanned vehicles in the chemical industrial park must meet explosion-proof requirements, and the device automatically transports the samples to the laboratory. The identity verification time is recorded as the actual sampling timestamp, which is used as the calibration benchmark for subsequent model self-learning. This device eliminates the invalid transfer time of manual cross-park sample delivery, significantly shortening the total time from sampling to the output of test results.
[0096] The operating condition modeling and analysis layer is the core intelligent layer of the system, responsible for in-depth analysis of DCS real-time data, realizing operating condition analysis, concentration waveform time-series evolution modeling, and multi-operating condition coupling anomaly identification.
[0097] (1) Working condition analysis and timing prediction module
[0098] This module is the core of the operational condition modeling and analysis layer, employing a self-designed Physics-Frequency Enhanced Mamba (PhysFreq-Mamba) model. Here, "physical" refers to the chemical physics constraint regularization term introduced into the model training loss, and "frequency domain enhancement" refers to enhancing the frequency domain features of time-series data through an FFT frequency domain analysis branch. These are different enhancement dimensions of the model, not merely decorative names. As an operational condition analysis time-series prediction model, it monitors multi-dimensional operating parameters of the gasifier, deacidification tower, and deammoniation tower in the DCS in real time, predicting the concentration waveforms of key indicators such as phenol, ammonia nitrogen, and COD in wastewater. PhysFreq-Mamba adopts a dual-branch fusion architecture, including a Mamba time-series branch, a frequency domain analysis branch, and an adaptive fusion module, incorporating physical constraint regularization. The specific structure is as follows: During training, the input side of the PhysFreq-Mamba model is defined as follows: (1) Target sequence - time series of phenol and ammonia concentrations (from offline laboratory LIMS, aligned by laboratory timestamp, frequency 1-2 times / day). (2) Mamba time-series branch exogenous variable input - the past 60-minute sliding window of 28 DCS process parameters (gasifier load / temperature / oxygen-coal ratio / acid removal tower / ammonia removal tower pressure / temperature / pipeline flow / liquid level of each tower, etc.), with a step size of 1 minute. (3) Prior input of adaptive fusion module operating conditions, the planned load curve of this shift (synchronously obtained from the MES system). Output side: 21 quantile predictions of phenol and ammonia concentrations in the next 60 minutes (0.01, 0.05, 0.10, ..., 0.90, 0.95, 0.99), the probability of exceeding the threshold under any threshold is derived from the quantile sequence, for example, P(concentration ≥ release threshold) = 1 - the value of the empirical cumulative distribution function at this threshold. Specifically, 21 quantile points (0.01 to 0.99) constitute the discrete probability distribution for concentration prediction. By linearly interpolating the probability density between adjacent quantiles, a continuous empirical cumulative distribution function (ECDF) is obtained, which can then be used to calculate the overthreshold probability at any threshold.
[0099] Concentration units and typical levels (the following data correspond to the measured water quality of the phenol and ammonia recovery section of the fixed-bed pulverized coal slag gasification process in this embodiment): (1) Raw material wastewater (influent): total phenol 4500-6500 mg / L (average about 5140 mg / L), monophenols (i.e., volatile phenols) 3000-4000 mg / L, polyphenols 1500-2500 mg / L, total ammonia 6700-10200 mg / L (average about 8500 mg / L), COD about 20000 mg / L. (2) Effluent from the phenol and ammonia recovery section (using methyl isobutyl ketone extractant to remove biochemical wastewater indicators): total phenol ≤ 400 mg / L, polyphenols about 280 mg / L, free ammonia about 40 mg / L, fixed ammonia about 140 mg / L, COD 2000-2500 mg / L, pH value about 6.7. (3) The typical acceptable thresholds for biochemical treatment (indicators for wastewater to be treated by biochemical methods) are: total phenols ≤ 500 mg / L, ammonia nitrogen ≤ 200 mg / L (requires acclimatization with ammonia- and phenol-resistant bacteria), and COD ≤ 3000 mg / L. (4) The final discharge standard is in accordance with GB 8978-1996, Level 1: volatile phenols ≤ 0.5 mg / L, ammonia nitrogen ≤ 15 mg / L, and COD ≤ 100 mg / L. All wastewater from this project is reused after treatment (reclaimed water COD ≤ 10 mg / L), and there is no wastewater discharge.
[0100] The typical network parameters of the PhysFreq-Mamba model are as follows: the number of Mamba state space block layers is 4-6, the hidden dimension is 128-256, the FFT window size is 256 (corresponding to about 4 hours of data, based on a 1-minute sampling interval), the frequency domain filter uses a learnable parameterized bandpass filter, the number of cross attention heads is 4-8, and the gated network is a three-layer fully connected network with one hidden layer (the input dimension is the working condition feature vector dimension, the hidden layer dimension is 64, the output dimension is 2, and it is normalized to a two-branch weight by softmax).
[0101] Training data construction: Since phenol and ammonia concentration can only be obtained through offline testing (frequency 1-2 times / day), the target sequence is sparse. This embodiment adopts the following strategy to construct the training set: (1) Using the test time stamp as the anchor point, the DCS covariate window of the 60 minutes before the time stamp and the test value are taken to form a complete sample. (2) Samples in the missing test period are directly removed from the supervised training set and do not participate in the quantile regression loss calculation (the DCS covariate part is only used in the unsupervised pre-training stage to avoid zero-value filling and contamination of the forward propagation statistics). (3) The dataset size is calculated based on the DCS operation records of the past 12 months (excluding downtime and maintenance periods) and approximately 100,000 samples (based on a 1-minute sampling interval). Among them, about 700-800 samples containing complete offline test results are used for supervised fine-tuning, and the remaining approximately 99,000 DCS covariate data are used for unsupervised pre-training (the pre-training task is a dual task of mask prediction and contrastive learning: mask prediction randomly occludes the DCS covariate window for 15% of the time steps and requires model reconstruction, and contrastive learning uses different time augmentation views of the same sample to narrow the representation distance). After pre-training, supervised quantile regression fine-tuning is performed using 700-800 samples containing the true values of offline tests. To alleviate overfitting with small samples, data augmentation (time window sliding, Gaussian noise addition), Dropout=0.1, weight decay of 1e-4, and early stopping strategies are adopted in the fine-tuning stage. (4) In the online operation stage, one sample is added to the training set after each offline test is completed (continuous data accumulation), but parameter fine-tuning is not triggered immediately. The training loss is a weighted sum of the quantile regression loss and the physical constraint regularization term.
[0102] (2) Concentration waveform time series evolution modeling module
[0103] This module, based on real-time DCS measurement data and prior process parameters, enables time-series modeling of concentration waveforms and optimization of sampling windows. Its core consists of three parts: ① Calculation of pure delay time of transmission: Using real-time flow and velocity data collected by electromagnetic flowmeter, combined with known process parameters such as pipe length and pipe diameter, the pure delay time series of material transmission from upstream process point to sampling point is calculated hourly according to the following formula based on the plug flow assumption: τ(t) = L / v(t).
[0104] Where τ(t) is the pure transmission lag time at time t, L is the known pipe length, and v(t) is the real-time flow velocity collected by the electromagnetic flowmeter at time t. This calculation provides a continuous dynamic baseline time anchor for the sampling time. It should be noted that the plug flow assumption has certain deviations in actual pipelines (such as axial diffusion, wall effects, etc.). In this embodiment, the transmission lag correction factor k is finely adjusted online through a model self-learning mechanism. The corrected actual transmission lag time τ_actual(t) = k·L / v(t) (k is initially 1.0, i.e., no correction) is used to correct the deviation of the plug flow assumption and the measurement error of the process parameters.
[0105] ② Monitoring of tower accumulation and concentration trend: Based on the real-time liquid level data of each tower level gauge, combined with parameters such as equipment volume, the material accumulation in the tower is calculated in real time through the material balance equation: V(t) = V(t-1) + (F_in - F_out)·Δt.
[0106] Where V(t) is the amount of material accumulated in the tower at time t, F_in is the feed flow rate, F_out is the discharge flow rate, and Δt is the sampling interval. This is used to predict the accumulation and release trend of the concentration.
[0107] ③ High Concentration Warning Range Prediction: Considering the broadening effect of the concentration peak during pipeline transmission and tower backmixing, and combining real-time flow rate, liquid level changes, and equipment characteristic parameters, the length and start and end times of the high concentration warning range where the concentration is high and the rate of change is low are estimated. The specific calculation process for one implementation method is as follows: (a) Determining the start and end times of the interval: From the concentration quantile prediction sequence for the next 60 minutes output by PhysFreq-Mamba, calculate the threshold probability P (concentration ≥ release threshold) time by time (directly obtained by the empirical cumulative distribution function fitted by 21 quantiles). The moment when the threshold probability first rises to the preset confidence lower limit P_c (0.8 in this embodiment) is recorded as the start of the interval T_start, and the moment when the threshold probability falls back to below P_c is recorded as the end of the interval T_end. The interval length ΔT_warn = T_end - T_start.
[0108] (b) Broadening effect correction: The concentration pulse undergoes peak broadening during pipeline transmission and tower backmixing. The degree of broadening is estimated by variance summation. The variance increment caused by axial diffusion in the pipeline is σ²_pipe = 2·D_ax·τ_pipe.
[0109] Where D_ax is the axial diffusion coefficient, estimated by the real-time flow velocity v(t), pipe diameter, and flow state according to the empirical correlation of turbulent axial diffusion, and τ_pipe is the real-time transport pure lag time. The variance increment σ²_vessel caused by tower backmixing is estimated by the second moment of the tower residence time distribution (RTD). Under the series fully mixed flow approximation, σ²_vessel = N·(V_t / F_in)².
[0110] Where N is the theoretical number of tower stages, V_t is the liquid holding volume in the tower (calculated from liquid level and equipment volume parameters), and F_in is the feed and discharge flow rates.
[0111] The total broadening variance σ²_total = σ²_pipe + σ²_vessel is used to shift the starting point of the warning interval obtained in step (a) forward by 2 standard deviations and the ending point backward by 2 standard deviations (approximately corresponding to the peak broadening range with 95% confidence) to obtain the corrected high concentration warning interval.
[0112] (c) The calculation is updated minute by minute, recalculating the above intervals as real-time flow rate, liquid level, and equipment characteristic parameters (pipe length, pipe diameter, tower volume, theoretical number of stages, etc.) change. This calculation relies solely on real-time DCS measurement data and existing equipment characteristic parameters, requiring no additional modeling. This high-concentration warning interval estimate is then passed to the high-confidence sampling time window calculation module of the intelligent sampling decision layer. The latter, combined with sampling operation constraints, further refines the calculation into a high-confidence sampling time window, ensuring precise temporal alignment between sampling and the actual concentration peak.
[0113] (3) Multi-condition coupling anomaly identification module
[0114] This module features a multi-condition coupled abnormal fluctuation discrimination layer. When changes in DCS parameters are detected, false disturbances are filtered out through cross-validation of multi-dimensional parameters. The specific discrimination logic is as follows: Is the temperature rise accompanied by changes in the oxygen-coal ratio and pressure? If it's a single parameter jump, it's judged as an instrument malfunction, and sampling is not triggered. Only when the combined change in multiple parameters exceeds a dynamic adaptive threshold is it judged as a genuine operating condition fluctuation. This dynamic adaptive threshold is not fixed but dynamically adjusted by the operating condition analysis time-series prediction model based on the current system load: a higher alarm threshold is used under low load (less likely to trigger, avoiding false alarms under low-risk conditions), and a lower alarm threshold is used under high load (more likely to trigger, improving monitoring sensitivity under high-risk conditions). Compared to traditional single-parameter threshold detection, this multi-condition coupled discrimination mechanism significantly reduces the false alarm and missed alarm rates, fundamentally solving the deficiency of existing systems in distinguishing between genuine operating condition fluctuations and false disturbances.
[0115] (4) Working Condition Modeling Quality Assessment Module
[0116] To ensure the effectiveness of load case modeling and analysis, this embodiment includes a load case modeling quality assessment module, which evaluates the quality of the modeling results from the following three dimensions: ① Prediction accuracy assessment: The accuracy of the concentration waveform prediction is verified by calculating the deviation between the predicted concentration value and the actual value of subsequent tests. Specific indicators include normalized root mean square error (NRMSE) and maximum absolute deviation (MaxAE): NRMSE < 10% and MaxAE < 15% is considered acceptable; 10% ≤ NRMSE < 20% or 15% ≤ MaxAE < 25% is considered slightly unacceptable; and NRMSE ≥ 20% or MaxAE ≥ 25% is considered severely unacceptable.
[0117] ② Process Consistency Assessment: This involves checking whether the concentration waveform output by the model conforms to the basic laws of the process. The transport lag consistency coefficient α_lag and the material balance deviation rate β_balance are used as indicators (α_lag is defined as the Pearson correlation coefficient between the transport lag time series calculated by the model based on the plug flow assumption and the actual transport lag time series derived from historical test timestamps, with a value range of [-1, 1]. β_balance is defined as the moving average of the absolute values of the relative deviations between the theoretical value of the material accumulation in the tower calculated based on the material balance equation and the accumulation converted from the measured value of the level gauge): α_lag > 0.85 and β_balance < 5% is considered compliant; 0.7 < α_lag ≤ 0.85 or 5% ≤ β_balance < 10% is considered slightly non-compliant; and α_lag ≤ 0.7 or β_balance ≥ 10% is considered seriously non-compliant.
[0118] ③ Operating Condition Coverage Assessment: The operating condition coverage rate γ_coverage is used as the indicator (defined as the proportion of the number of operating condition types predicted by the model within the assessment period to the total number of preset operating condition types for that section—including typical operating condition types such as low load steady state, high load steady state, load rise and fall transition, sudden temperature change of gasifier, and pressure fluctuation of deammoniation tower): γ_coverage ≥ 80% is considered compliant, 60% ≤ γ_coverage < 80% is considered slightly non-compliant, and γ_coverage < 60% is considered seriously non-compliant. Comprehensive Judgment Logic: Modeling quality is compliant when all three dimensions are compliant. Slight non-compliance in any dimension without serious non-compliance is considered slightly non-compliant, triggering parameter adjustment. Serious non-compliance or slight non-compliance in any dimension lasting for more than 3 assessment periods is considered seriously non-compliant, triggering model fine-tuning.
[0119] When the evaluation result of any dimension falls below the preset threshold, the system automatically triggers an alarm and starts the model self-learning process to calibrate the model parameters to restore prediction accuracy.
[0120] The intelligent sampling decision layer is responsible for transforming the concentration waveform time-series evolution results output by the operating condition modeling and analysis layer into specific sampling decisions, achieving precise alignment between sampling timing and the actual concentration peak. This layer includes the following functional modules: (1) High-confidence sampling time window calculation module This module receives the high-concentration warning interval estimate output from the concentration waveform time-series evolution modeling module. Combined with sampling operation constraints (such as sampler response time, sample delivery time, and pre-analytical preparation time), it further calculates a high-confidence sampling time window. This time window represents the concentration level that can be captured with a high probability near the concentration peak (rather than the exact peak moment) during the sampling period, thus truly reflecting the current wastewater quality status. The upper and lower bounds of this time window are designed as follows: The lower bound is the sum of τ_lead and τ_response shifted forward from the predicted peak moment T_peak, ensuring that the sampler response, sample delivery, and pre-analytical preparation are completed before the concentration peak arrives, so that the actual sampling time falls near the concentration peak. The upper bound is a margin τ_lag shifted backward from T_peak to cover the prediction deviation and peak broadening at the peak moment. The calculation formula for the high-confidence sampling time window is: T_window = [T_peak -τ_lead -τ_response, T_peak +τ_lag].
[0121] Wherein, T_peak is the predicted peak concentration time (determined by the concentration waveform time-series evolution modeling module extracting the time with the highest predicted concentration quantile within the high-concentration warning interval), τ_lead is the lead time margin (including sample transport and test preparation time), τ_response is the response time of the sampling personnel from receiving the instruction to arriving at the sampling point (in scenarios where the system automatically triggers sampling, this item can be compressed to near zero, but is retained to accommodate situations where manual visits to the sampling point are required), and τ_lag is the follow-up time margin. This time window will serve as the time basis for the sampling trigger instruction.
[0122] (2) Sampling trigger instruction generation module
[0123] At the start of the high-confidence sampling time window, this module sends a sampling trigger command to the sampling personnel's mobile terminal. The command includes the sampling point location, sampling time window, and sampling precautions. After receiving the command, the sampling personnel go to the designated sampling point to perform manual sampling. After sampling, they verify their identity (e.g., by swiping a card, scanning a code, or facial recognition) and place the sample into the automated sample delivery device. The identity verification time is recorded as the actual sampling timestamp, which is used as a calibration benchmark for subsequent model self-learning.
[0124] (3) Sampling validity verification module
[0125] This module evaluates the validity of the sampling by comparing the actual sampling timestamp with the high-confidence sampling time window. If the actual sampling timestamp falls within the high-confidence sampling time window, the sampling is considered valid. If it deviates from the time window, a deviation report is generated and fed back to the model self-learning module to calibrate the time deviation of the sampling decision.
[0126] The anomaly attribution and regulation decision-making layer is responsible for performing root cause analysis on detected concentration anomalies and recommending corresponding regulatory strategies based on causal pathways. This layer includes the following functional modules: (1) Causal Attribution Analysis Module This module constructs a causal graph model between process parameters and concentration indicators based on historical time-series data of DCS multidimensional parameters. Specifically, it includes the following steps: (1) Variable segmentation strategy: According to the topology of the process equipment, the DCS multidimensional parameters are segmented into blocks according to equipment units (such as gasifier parameter blocks, deacidification tower, deammoniation tower parameter blocks, pipeline transmission parameter blocks, etc.). The number of variables in each parameter block is controlled to be 5-8, which greatly reduces the computational complexity of causal inference. (2) Time lag alignment: Since the changes in DCS parameters will only be reflected in the outlet concentration after tens of minutes of pipeline transmission, the transmission pure lag time τ(t) obtained previously is used to shift and align each DCS parameter sequence to the sampling point time according to its corresponding transmission lag time, ensuring that the variables used in the causal analysis are aligned in the physical causal transmission time. For parameters with uncertain transmission lag, conditional transfer entropy combined with time lag window scanning (maximum time lag 60 minutes) is used to search for the true causal time lag. (3) Intra-block causal path inference: Within each parameter block, principal component analysis (PCA) is used to extract the main variation direction (the number of principal components k is taken as 60% of the number of variables in each parameter block and rounded down, i.e., 5-8 variables take k=3-4 principal components, and the cumulative variance contribution rate is ≥85%). Then, partial correlation analysis is used to calculate the conditional independence relationship between variables and construct the intra-block causal graph skeleton. Combined with the direction information of transfer entropy, the causal direction between variables is determined and the intra-block directed acyclic graph (DAG) is output. (4) Cross-block causal chain splicing and physical prior verification: The causal graphs of each block are spliced according to the process flow topology to form a complete causal chain path across equipment. The physical laws of the chemical process are encoded as a set of causal direction constraints (such as the unidirectional causal direction of steam pressure → stripping efficiency → tower outlet concentration). Consistency verification is performed on each edge in the causal graph. Edges consistent with the physical prior are retained, and inconsistent edges are marked as pending confirmation and trigger manual review. The computational complexity of the aforementioned causal analysis with 28 parameters and minute-level sampling is approximately O(n·d²) (where n is the number of samples and d=28 is the variable dimension). When an anomaly in concentration is detected, this module traces backward along the causal graph to identify the root cause parameters leading to the anomaly and their propagation paths. Regarding the specific algorithm selection, in the above four-stage causal discovery method, the intra-block causal path inference adopts a combination of constraint-based causal discovery algorithms (PC (Peter-Clark algorithm) for skeleton construction, FCI (Fast Causal Inference algorithm) for handling potential confounding) and score-based causal discovery algorithms (GES (Greedy Equivalence Search) for global optimization): PC / FCI is responsible for quickly determining the conditional independence relationships between variables to construct the causal graph skeleton, and GES is responsible for optimizing the causal direction based on the skeleton using the Bayesian Information Criterion (BIC) scoring method.
[0127] (2) Regulation strategy recommendation module
[0128] This module generates a list of recommended control strategies based on the causal chain path output by the causal attribution analysis module, combined with process constraints (such as safety boundaries, operation priorities, etc.). Control strategies are sorted according to the principle of safety taking precedence over efficiency optimization, selected and marked for submission to the shift leader's decision. The parameterization calculation of control strategies is based on sensitivity coefficients: (1) the mechanism sensitivity coefficients identified during the process design stage or after overhaul are preferred. (2) if they are not available, they are approximated by local linear regression based on historical data pairs (e.g., parameters, concentrations) accumulated by the working condition modeling quality assessment module. (3) the above coefficients are updated adaptively with the working condition. When multiple abnormal attribution results trigger multiple control strategies at the same time, strategies with the same adjustment direction for the same parameter are merged in magnitude, and strategies with conflicting adjustment directions are selected and marked for submission to the shift leader's decision according to process priority (safety constraints take precedence over efficiency optimization). The control strategy recommendation combines the causal chain path and process constraints, which can achieve precise control and avoid over-adjustment or under-adjustment.
[0129] (3) Decision-making level prediction and prompting module
[0130] This module is deployed at the anomaly attribution and control decision-making layer. After the control strategy recommendation is generated, it is responsible for pushing the decision-making layer's predictive prompts to the shift leader's DCS operation console. The prompts include the root cause of the anomaly, the causal chain path, the recommended control strategy, and the expected effects.
[0131] The closed-loop execution and self-evolution layer is the top layer of the system, responsible for translating regulatory decisions into actual execution actions and continuously optimizing the system's prediction accuracy through a model self-learning mechanism. This layer includes the following functional modules: (1) Data gateway and DCS reference data feedback module This module acts as a bridge between the Laboratory Information System (LIMS) and the DCS control system, enabling real-time, secure, and reliable data transmission. The moment the central laboratory generates test results (such as phenol concentration, ammonia nitrogen concentration, COD, etc.), the data is directly fed back to the Human-Machine Interface (HMI) layer of the DCS control system as reference data, bypassing manual layers of processing. This breaks down data silos between the laboratory and production control, eliminating delays in telephone notifications. It is important to note that the data gateway's feedback path only reaches the DCS's HMI information display layer; it does not enter the DCS's control loop and does not alter the DCS's original automatic control logic and safety interlocking mechanisms.
[0132] The data gateway of this invention adopts a one-way write plus physical isolation design: test data is written from LIMS to the HMI display layer buffer of DCS through a one-way network gateway or industrial firewall, without accessing the control network and safety instrument system of DCS.
[0133] (2) Execution layer prediction prompts and authorized execution module
[0134] This module, deployed in the closed-loop execution and self-evolution layer, implements the DCS execution layer's predictive prompt logic driven by test results. When test results are fed back to the DCS's HMI layer via the data gateway as reference data, the DCS system automatically executes the predictive logic: if qualified, a highlighted release prompt appears; if unqualified, a highlighted redirection prompt appears. This module is functionally distinct from the decision-making layer's predictive prompt module in the anomaly attribution and control decision layer.
[0135] After the shift supervisor sees the highlighted prompt on the DCS control panel, they confirm the authorization. Following authorization, the DCS sequential control module automatically executes the valve actions step-by-step according to preset procedures. The specific execution flow is as follows: Step 1: After the shift supervisor authorizes and confirms, the system first performs a safety interlock check to confirm that the current process status allows the valve to be operated (such as the pipeline pressure being within a safe range and the upstream and downstream valves being in normal condition).
[0136] Step 2: Perform valve actions in stages. For the diversion operation, the execution sequence is as follows: First, close the downstream valve leading to the biological treatment tank to a small opening (approximately 10% opening) for a trial operation. After confirming there are no abnormalities, continue closing it to a full closure. Once the downstream valve is fully closed and confirmed, gradually open the valve diverting the flow to the buffer to a small opening for a trial operation. After confirming the flow rate is normal, continue opening it to the target opening. This execution sequence ensures that wastewater will not have nowhere to go or be mistakenly discharged during the switchover process, avoiding pipeline pressure surges.
[0137] Step 3: Timeout Reversal Mechanism. Each valve action is equipped with timeout monitoring (e.g., if the target position is not reached within 30 seconds). If the target position is not reached within the timeout period, the valve will automatically revert to its original state before the action and pop up an alarm to prompt the shift supervisor to intervene manually, thus avoiding uncertainties caused by valve jamming.
[0138] (3) Security logic verifier
[0139] The security logic verifier is deployed in the HMI application layer of the closed-loop execution and self-evolution layer. As a security prompt component for the execution layer's predictive prompts and authorized execution modules, it performs security boundary checks on any predictive prompts to ensure that no instructions exceed the security limits. The specific rules of the security logic verifier include: Rule 1 Concentration Exceedance Verification: When any indicator in the test results exceeds twice the qualified threshold, the retest process will be forcibly triggered, and the execution prompt will not pop up directly.
[0140] Rule 2 Duration Verification: The flow execution prompt is only allowed to pop up when two consecutive test results are both unqualified; a single unqualified result will only trigger a warning prompt.
[0141] Rule 3: Cross-validation of multiple indicators: When any one of the indicators such as phenol concentration, ammonia nitrogen concentration, or COD fails to meet the standard, the status of other indicators must be cross-validated to avoid misjudgment caused by a single abnormal indicator.
[0142] (4) Model self-learning and parameter calibration module
[0143] This module is the core innovation of the closed-loop execution and self-evolution layer, enabling continuous self-evolution of the system's prediction accuracy. Specifically, the moment when the operator completes the sampling is recorded as the actual sampling timestamp. The model self-learning and parameter calibration module extracts the time deviation between this actual sampling timestamp and the predicted optimal sampling time window, combines it with subsequent laboratory test values to construct calibration data pairs, and stores them in the historical calibration data pool.
[0144] When the accumulated number of calibration data pairs reaches a preset threshold (e.g., 50 pairs), incremental calibration of model parameters is triggered: the system uses selective parameter fine-tuning to update PhysFreq-Mamba online. Specifically, the core parameters of the Mamba state space are frozen unchanged, and only the attention weights of the exogenous variable cross-attention module, the frequency band filter parameters of the frequency domain analysis branch, the gated network parameters of the adaptive fusion module, and the physical constraint regularization weights λ1 and λ2 are updated. Trainable parameters account for approximately 5%-10% of the total parameters, ensuring model stability while achieving continuous evolution in adaptability to different operating conditions. An experience replay mechanism is used during calibration to avoid catastrophic forgetting. Before each fine-tuning, a snapshot of the current model version is automatically saved. After fine-tuning, the prediction accuracy is evaluated on the validation set. If the accuracy does not improve, it is automatically rolled back to the previous version snapshot. The most recent 5 version snapshots are retained, and older versions are automatically cleaned up after 5. In addition to the trigger condition of accumulating 50 pairs, the prediction accuracy must be better than the current version for N consecutive validation cycles (N=3) before switching to a new version is allowed.
[0145] Furthermore, the model self-learning and parameter calibration module also fine-tunes the transmission hysteresis correction factor online to correct for deviations in the plug flow assumption and errors in process parameter measurement. Through continuous self-learning and calibration, the system can adapt to operating condition drift and equipment aging, maintaining long-term prediction accuracy stability.
[0146] An example of the method in this embodiment is as follows: Multi-source data acquisition and preprocessing: Multi-source heterogeneous data is acquired from the DCS control system, online process instruments, and automated sample delivery devices through the data sensing layer. This includes real-time data of 28 process parameters, such as gasifier load, gasifier temperature, oxygen-to-coal ratio, pressure and temperature of the deacidification and deammoniation towers, pipeline flow rate, reflux ratio, and liquid level of each tower. The sampling interval is 1 minute. After preprocessing operations such as noise reduction, filtering, outlier removal, and time alignment, the acquired raw data is formed into a standardized multivariate time series data matrix.
[0147] Operating condition analysis and concentration waveform time-series evolution modeling: Deep analysis of preprocessed DCS real-time data is performed through operating condition modeling and analysis layers, specifically including the following sub-steps: The preprocessed multivariate time series data is input into the PhysFreq-Mamba working condition analytical time series prediction model. Through the collaborative processing of the Mamba time series branch, frequency domain analysis branch and adaptive fusion module, the concentration waveforms of key indicators such as phenol, ammonia nitrogen and COD in wastewater are predicted.
[0148] Based on real-time flow velocity data collected by electromagnetic flowmeters and the known pipe length, the pure time delay of transmission is calculated hourly using the formula τ(t) = L / v(t). Based on real-time liquid level data from the level gauges of each tower, the material accumulation in the tower is calculated in real time using the formula V(t) = V(t-1) + (F_in - F_out) · Δt. Combining real-time flow rate, liquid level changes, and equipment characteristic parameters, the length and start and end times of the high-concentration warning interval are estimated.
[0149] The DCS parameter changes are cross-validated by a multi-condition coupling anomaly identification module to filter out false disturbances. Only when the combined change of multi-dimensional parameters exceeds the dynamic adaptive threshold is it determined to be a real operating condition fluctuation.
[0150] Intelligent sampling decision-making: The intelligent sampling decision-making layer transforms the time-series evolution results of the concentration waveform into specific sampling decisions, which includes the following sub-steps: Based on the prediction of high concentration warning intervals and combined with sampling operation constraints, the high confidence sampling time window is calculated according to the formula T_window = [T_peak - τ_lead - τ_response, T_peak + τ_lag].
[0151] At the start of the high-confidence sampling time window, a sampling trigger command is sent to the sampling personnel's mobile terminal. After performing manual sampling, the sampling personnel, through identity verification, place the sample into an automated sample delivery device, which automatically transports the sample to the laboratory.
[0152] The effectiveness of this sampling is evaluated by comparing the matching degree between the actual sampling timestamp and the high-confidence sampling time window, and the bias data is fed back to the model self-learning module.
[0153] Anomaly Attribution and Regulation Decision-Making: The anomaly attribution and regulation decision-making layer performs root cause analysis on detected concentration anomalies, specifically including the following sub-steps: Based on historical time-series data of DCS multi-dimensional parameters, a causal graph model between process parameters and concentration indicators is constructed. When an abnormal concentration is detected, the model is traced back along the causal graph to identify the root cause parameter and its propagation path that caused the abnormal concentration.
[0154] Based on the causal chain path and combined with process constraints, a list of recommended control strategies is generated, sorted according to the principle of safety taking precedence over efficiency optimization, selected and marked, and submitted to the shift leader for decision-making.
[0155] The decision-making level prediction and prompt module pushes prediction prompts to the shift leader's DCS operation console. The prompts include the root cause of the anomaly, the causal chain path, recommended control strategies, and expected effects.
[0156] Information layer soft closed-loop execution: Through closed-loop execution and self-evolution layer, the control decisions are transformed into actual execution actions, specifically including the following sub-steps: After the test results are generated, they are directly fed back to the HMI layer of the DCS via the data gateway as reference data. The feedback path only reaches the HMI information display layer and does not enter the control loop of the DCS.
[0157] The DCS system automatically performs logical pre-judgment. If the judgment is qualified, a highlighted release prompt will appear; if it is unqualified, a highlighted redirection prompt will appear. The safety logic verifier performs a safety boundary check on the pre-judgment prompts.
[0158] After the shift supervisor authorizes and confirms the operation, the system performs a safety interlock check. Once it confirms that the current process status allows the valve to be operated, the valve is operated step by step (close first, then open, small opening trial operation, and timeout reset).
[0159] Model self-learning and parameter calibration: The model self-learning and parameter calibration module enables the continuous self-evolution of the system's prediction accuracy, specifically including the following sub-steps: Extract the time deviation between the actual sampling timestamp and the predicted optimal sampling time window, combine it with the subsequent test results to construct calibration data pairs, and store them in the historical calibration data pool.
[0160] When the number of accumulated calibration data pairs reaches a preset threshold, incremental calibration of the model parameters is triggered. The parameters of the PhysFreq-Mamba model are fine-tuned by using an experience replay mechanism (randomly sampling small batches of training samples from the historical calibration data pool).
[0161] The transmission lag correction factor is fine-tuned online to correct the deviation of the push flow assumption and the measurement error of the process parameters, so that the system can adapt to the drift of operating conditions and equipment aging, and maintain the stability of long-term prediction accuracy.
[0162] The following will provide further explanation with specific application examples.
[0163] This embodiment uses the phenol and ammonia recovery section of a coal chemical enterprise as the application object. This section adopts a fixed-bed crushed coal slag gasification process. The phenol and ammonia recovery unit is set up with one series, designed capacity of 500t / h, normal processing capacity of 320t / h (approximately 7680 tons per day), and annual operating hours of 8000h. The main tower equipment includes a deacidification tower, a deammoniation tower, and extraction towers No. 1 and No. 2 (two packed towers in series, with methyl isobutyl ketone as the extractant). This section originally used a fixed 4-hour manual inspection and sampling mode. The test results were notified to the DCS operator by telephone to manually switch valves, which had problems such as the sampling time being out of sync with the operating conditions, information transmission delays, and frequent fulling of the buffer. This embodiment deploys the above system, and the specific implementation is as follows: After six months of operation, the system achieved the following significant results: (1) The sampling effectiveness has been improved from about 40% to 87%, and the sampling frequency has been optimized from 6 times a day (fixed 4 hours) to 2-4 times a day (dynamic triggering), which reduces the amount of unnecessary sampling work by about 50% while ensuring monitoring coverage.
[0164] (2) The false alarm rate was reduced from about 35% to 7%, and the false alarm rate was reduced from about 20% to 4%. The multi-condition coupling discrimination module effectively filtered out false disturbances caused by instrument failure and instantaneous interference.
[0165] (3) The time delay from the confirmation of test results to the actual action of the valve has been reduced from an average of 35 minutes to 4 minutes, of which the system prediction takes about 30 seconds, the manual confirmation and safety interlock verification takes about 3 minutes, and the valve is executed step by step in about 30 seconds.
[0166] (4) The frequency of buffer fullness decreased from about 8 times per month to once per month, the amount of rework of gas-water buffers flowing back decreased by about 72%, and the number of production reduction events caused by buffer fullness in the whole plant decreased from about 2 times per month to less than once per quarter.
[0167] (5) The accuracy rate of abnormal root cause identification reached 84%, and the abnormal handling time was shortened from an average of 2 hours to 25 minutes. The causal attribution analysis module successfully identified multiple abnormal concentration events caused by steam pressure fluctuations, changes in feed composition, and equipment scaling.
[0168] (6) The MAE predicted by the PhysFreq-Mamba model was 8.5 mg / L, which is about 46% lower than the original LSTM model used in this section (MAE was 15.7 mg / L). The inference latency was reduced from 180 ms in the original LSTM model to 35 ms (Note: 7200-500 ms is the typical latency range of the Transformer architecture. The measured latency of the original LSTM model in this section was 180 ms, which is different from the baseline). This meets the real-time requirements. After 6 months of system operation, the MAE remained below 9.0 mg / L, and no significant performance degradation was observed.
[0169] The solution in this embodiment has the following effects: 1. The sampling timing is precisely aligned with the actual concentration peak, significantly improving the sampling effectiveness.
[0170] 2: Multi-condition coupling identification filters out false disturbances, significantly reducing false alarm rate and false negative rate.
[0171] 3: The soft closed loop at the information layer eliminates the time delay of manual transmission, significantly improving the response speed.
[0172] 4: The frequency of buffer full load has been significantly reduced, and the risk of production reduction across the entire plant has been effectively controlled.
[0173] 5: The model learns and evolves continuously, resulting in stable long-term prediction accuracy.
[0174] 6: PhysFreq-Mamba balances efficiency and interpretability, and significantly reduces inference latency.
[0175] It is understood that the various method embodiments mentioned above in this application can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this application will not elaborate further. Those skilled in the art will understand that in the above methods of specific implementation, the specific execution order of each step should be determined by its function and possible internal logic.
[0176] The phenol and ammonia recovery process monitoring device provided in this application embodiment is located in an electronic device, and the phenol and ammonia recovery process monitoring device may include: The acquisition module is used to acquire real-time monitoring data of multi-dimensional process parameters, the length of the target pipeline, and real-time flow velocity data within the target pipeline. The multi-dimensional process parameters are generated by the distributed control system (DCS) of the phenol-ammonia recovery section and include at least the gasifier load, gasifier temperature, oxygen-to-coal ratio, pressure and temperature of the deacidification and deammonia removal towers, pipeline flow rate, reflux ratio, and liquid level in each tower. The target pipeline is the pipeline from the outlet of the target process equipment within the phenol-ammonia recovery section to the sampling point.
[0177] The prediction module is used to perform time-series modeling on real-time monitoring data using a physical frequency domain enhanced Mamba model, and to predict the concentration waveform of at least one key indicator among phenol, ammonia nitrogen, and chemical oxygen demand (COD) in the wastewater at the tower outlet.
[0178] The determination module is used to determine a high-confidence sampling time window based on concentration waveform, real-time flow rate data, length, and liquid level in each tower.
[0179] The generation module is used to generate sampling trigger commands based on the high-confidence sampling time window and send the sampling trigger commands to the sampling personnel's terminal.
[0180] In some implementations, the determining module is specifically used for: The transmission lag time from the outlet of the target process equipment to the sampling point is calculated based on real-time flow rate data and length. A high-concentration warning interval is determined based on the concentration waveform. The material accumulation in each tower is calculated based on the liquid level and acquired tower parameters. A high-confidence sampling time window is determined based on real-time flow rate data, transmission lag time, high-concentration warning interval, and material accumulation in each tower.
[0181] In some implementations, the concentration data at each moment in the concentration waveform is 21 quantile data.
[0182] When determining the high concentration warning range based on the concentration waveform, the module is specifically used for: The concentration waveform at each of the 21 quantiles is fitted with an empirical cumulative distribution function, and the exceedance probability for each time point is calculated sequentially from time to time. The exceedance probability is the probability value of the concentration exceeding a preset release threshold. The moment when the exceedance probability first exceeds a preset confidence threshold is taken as the start time. The moment when the exceedance probability first falls back to the preset confidence threshold after the start time is taken as the end time. The concentration waveform interval between the start and end times is taken as the high concentration warning interval.
[0183] In some implementations, the determination module, when determining the high-confidence sampling time window based on the transmission lag time, the high-concentration warning interval, and the material accumulation in each tower, is specifically used for: The first variance increment caused by axial diffusion in the pipeline is calculated based on the transmission lag time.
[0184] The second variance increment caused by backmixing in each tower is calculated based on the material accumulation in each tower and the inlet and outlet flow rates of each tower. The first variance increment and all second variance increments are summed to obtain the total broadened variance. The high concentration warning interval is corrected based on the total broadened variance and the preset sampling operation constraint time to obtain a high-confidence sampling time window.
[0185] In some embodiments, the phenol-ammonia recovery process monitoring device further includes: The adjustment module receives the actual sampling time from the sampling personnel's terminal. If the actual sampling time is not within the high-confidence sampling time window, the time deviation between the actual sampling timestamp and the high-confidence sampling time window is determined. Based on the time deviation, the preset sampling operation constraint time is adjusted, and a new sampling operation constraint time is generated.
[0186] In some embodiments, the phenol-ammonia recovery process monitoring device further includes: The transmission module is used to acquire the test results corresponding to the sampling points. The test results are transmitted to the DCS's Human-Machine Interface (HMI) layer via a data gateway as reference data. This allows the DCS to generate corresponding safety judgment results based on the test results and to alert on-duty safety personnel accordingly. The test results are not connected to the DCS's control network.
[0187] In some embodiments, the phenol-ammonia recovery process monitoring device further includes: The traceability module is used to trace the root cause parameters and their propagation paths that lead to the concentration anomalies if the concentration of at least one key indicator among phenol, ammonia nitrogen, and chemical oxygen demand (COD) exceeds the process control range, based on a causal graph model. The causal graph model characterizes the causal relationships between multi-dimensional process parameters and concentration indicators, and is constructed based on historical time-series data of multi-dimensional process parameters from the DCS (Distributed Control System). Based on the root cause parameters, propagation paths, and preset control strategies, it generates recommended control strategies and sends these recommendations to the terminals of on-duty safety personnel.
[0188] In some implementations, the physical frequency domain enhanced Mamba model includes: The Mamba temporal branch is used to receive and process real-time monitoring data. Based on the state-space model of the Mamba architecture, it extracts temporal features and uses the exogenous variable cross-attention mechanism to fuse the real-time monitoring data as exogenous variables and output a temporal feature vector.
[0189] The frequency domain analysis branch is used to convert real-time monitoring data to the frequency domain through fast Fourier transform, extract frequency domain features after corresponding filtering of characteristic frequency bands of chemical industry scenarios, and output frequency domain feature vectors.
[0190] The adaptive fusion module is used to generate fusion weights based on the operating conditions, and to perform weighted fusion of the time-series feature vector and the frequency domain feature vector to output the fused feature vector.
[0191] The output layer maps the fused feature vectors to predicted concentration values of key wastewater indicators for future moments, generating concentration waveforms.
[0192] The phenol and ammonia recovery process monitoring device provided in this application embodiment has the beneficial effects and implementation methods of the phenol and ammonia recovery process monitoring method provided in this application embodiment. For details, please refer to the specific description of the phenol and ammonia recovery process monitoring method in the above embodiment, which will not be repeated here.
[0193] This application also provides an electronic device, which is intended to be various forms of devices with data processing capabilities, such as workbenches, servers, terminals, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0194] This electronic device includes a processor and memory. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processor processes instructions that execute within the electronic device.
[0195] The electronic device provided in this application embodiment has the beneficial effects and implementation methods of the phenol and ammonia recovery process monitoring method provided in this application embodiment. For details, please refer to the above embodiment for the specific description of the phenol and ammonia recovery process monitoring method, which will not be repeated here.
[0196] This embodiment also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the phenol and ammonia recovery process monitoring method described in the above embodiment.
[0197] The computer-readable storage medium provided in this application embodiment has the beneficial effects and implementation methods of the phenol and ammonia recovery process monitoring method of this application embodiment. For details, please refer to the specific description of the phenol and ammonia recovery process monitoring method in the above embodiment, which will not be repeated here.
[0198] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of this application, and this application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of this application, and these modifications and improvements are also considered to be within the scope of protection of this application.
Claims
1. A method for monitoring the phenol-ammonia recovery process, characterized in that, include: Real-time monitoring data of multi-dimensional process parameters, the length of the target pipeline, and the real-time flow velocity data within the target pipeline are acquired. The multi-dimensional process parameters are generated by the distributed control system (DCS) of the phenol-ammonia recovery section and include at least the gasifier load, gasifier temperature, oxygen-coal ratio, pressure and temperature of the deacidification tower and deammonia removal tower, pipeline flow rate, reflux ratio, and liquid level of each tower. The target pipeline is the pipeline from the outlet of the target process equipment in the phenol-ammonia recovery section to the sampling point. The physical frequency domain enhanced Mamba model is used to perform time series modeling on the real-time monitoring data to predict the concentration waveform of at least one key indicator in the wastewater of phenol, ammonia nitrogen and chemical oxygen demand (COD) at the tower outlet. A high-confidence sampling time window is determined based on the concentration waveform, the real-time flow rate data, the length, and the liquid level of each of the towers. A sampling trigger command is generated based on the high-confidence sampling time window, and the sampling trigger command is sent to the sampling personnel's terminal.
2. The method according to claim 1, characterized in that, The determination of the high-confidence sampling time window based on the concentration waveform, the real-time flow rate data, the length, and the liquid level of each of the towers includes: Based on the real-time flow rate data and the length, the transmission lag time from the outlet of the target process equipment to the sampling point is calculated. Determine the high concentration warning range based on the concentration waveform; The material accumulation in each tower is calculated based on the liquid level of each tower and the acquired tower parameters. A high-confidence sampling time window is determined based on the real-time flow rate data, the transmission lag time, the high concentration warning interval, and the material accumulation in each tower.
3. The method according to claim 2, characterized in that, The concentration data at each moment in the concentration waveform consists of 21 quantile data points; The step of determining the high concentration warning range based on the concentration waveform includes: The concentration waveform at each of the 21 quantiles is fitted with an empirical cumulative distribution function, and the probability of exceeding the threshold at each time point is calculated in chronological order. The probability of exceeding the threshold is the probability value of the concentration exceeding a preset release threshold. The moment when the overthreshold probability first exceeds the preset confidence threshold is taken as the starting moment; The moment when the out-of-threshold probability first falls back to the preset confidence threshold after the starting time is taken as the ending time; The concentration waveform interval between the start time and the end time is defined as the high concentration warning interval.
4. The method according to claim 2, characterized in that, The step of determining the high-confidence sampling time window based on the transmission lag time, the high-concentration early warning interval, and the material accumulation in each of the towers includes: Calculate the first variance increment caused by axial diffusion in the pipeline based on the transmission lag time; Calculate the second variance increment caused by backmixing in each tower based on the material accumulation in each tower and the inlet and outlet flow rates of each tower. The total broadened variance is obtained by summing the first variance increment and all the second variance increments. The high-concentration early warning interval is corrected based on the total broadening variance and the preset sampling operation constraint time to obtain the high-confidence sampling time window.
5. The method according to claim 4, characterized in that, After sending the sampling trigger command to the sampling personnel's terminal, the method further includes: The actual sampling time received from the terminal of the sampling personnel; If the actual sampling time is not within the high-confidence sampling time window, then the time deviation between the actual sampling timestamp and the high-confidence sampling time window is determined. The preset sampling operation constraint time is adjusted according to the time deviation to generate a new sampling operation constraint time.
6. The method according to claim 1, characterized in that, After sending the sampling trigger command to the sampling personnel's terminal, the method further includes: Obtain the test results corresponding to the sampling points; The test results are transmitted to the HMI layer of the DCS via a data gateway as reference data, so that the DCS can generate corresponding security judgment results based on the test results and provide prompts to on-duty security personnel based on the security judgment results; wherein, the test results are not connected to the control network of the DCS.
7. The method according to claim 6, characterized in that, The method further includes: If the concentration of at least one of the key indicators among phenol, ammonia nitrogen, and chemical oxygen demand (COD) in the test results exceeds the process control range, the root cause parameter and its propagation path leading to the concentration abnormality will be traced back according to the causal graph model. The causal graph model is used to characterize the causal relationship between multi-dimensional process parameters and concentration indicators, and is constructed based on the historical time series data of the multi-dimensional process parameters of the DCS. Based on the root cause parameters, the propagation path, and the preset control strategy, control strategy recommendation information is generated. The recommended control strategy information is sent to the terminal of the on-duty security personnel.
8. The method according to claim 1, characterized in that, The physical frequency domain enhanced Mamba model includes: The Mamba time-series branch is used to receive and process the real-time monitoring data. It extracts time-series features based on the Mamba architecture of the state-space model, and uses the exogenous variable cross-attention mechanism to fuse the real-time monitoring data as exogenous variables to output a time-series feature vector. The frequency domain analysis branch is used to convert the real-time monitoring data to the frequency domain through fast Fourier transform, extract frequency domain features after corresponding filtering of the characteristic frequency bands of the chemical scene, and output frequency domain feature vectors. An adaptive fusion module is used to generate fusion weights based on the operating conditions, perform weighted fusion of the time-series feature vector and the frequency domain feature vector, and output a fused feature vector. The output layer is used to map the fused feature vector into the predicted concentration values of key wastewater indicators at future times, and generate the concentration waveform.
9. A monitoring device for phenol and ammonia recovery process, characterized in that, include: The acquisition module is used to acquire real-time monitoring data of multi-dimensional process parameters, the length of the target pipeline, and the real-time flow velocity data within the target pipeline. The multi-dimensional process parameters are generated by the distributed control system (DCS) of the phenol-ammonia recovery section and include at least the gasifier load, gasifier temperature, oxygen-coal ratio, pressure and temperature of the deacidification tower and deammonia removal tower, pipeline flow rate, reflux ratio, and liquid level of each tower. The target pipeline is the pipeline from the outlet of the target process equipment in the phenol-ammonia recovery section to the sampling point. The prediction module is used to perform time-series modeling on the real-time monitoring data using a physical frequency domain enhanced Mamba model, and to predict the concentration waveform of at least one key indicator among phenol, ammonia nitrogen, and chemical oxygen demand (COD) in the wastewater at the tower outlet. The determination module is used to determine a high-confidence sampling time window based on the concentration waveform, the real-time flow rate data, the length, and the liquid level of each of the towers; The generation module is used to generate a sampling trigger command based on the high-confidence sampling time window and send the sampling trigger command to the sampling personnel's terminal.
10. An electronic device, characterized in that, include: Memory and processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the phenol and ammonia recovery process monitoring method as described in any one of claims 1 to 8.
