The electric arc furnace at a ferroalloy plant releases nitrogen oxides through its stack. A remote monitoring sensor on the stack records the concentration in real time. Even if a forecasting model warns that “the concentration will soon rise,” operators struggle to decide their next action unless the model shows its basis for that judgment. Whether to adjust the electrode depth or increase the reagent dose in the denitrification unit cannot be decided from the predicted value alone.
The question this article poses is therefore as follows. Can we forecast the nitrogen oxide concentration of an electric arc furnace with time series deep learning, and at the same time reveal which process variables, and which time points, the forecast relies on?
We read one paper that answers this question.
- Title: An Interpretable Time Series Forecasting Model for Predicting NOx Emission Concentration in Ferroalloy Electric Arc Furnace Plants
- Journal: Mathematics
- Year: 2024
- DOI: 10.3390/math12060878
In one line, the method proposed in the paper is “to train a time series model on emission data from which noise has been filtered, and to compute, for each time point, the share that each variable contributes to the forecast.” The key terms used in this article are as follows.
- Electric Arc Furnace (EAF): a furnace that generates an electric arc between graphite electrodes and the raw material and melts the material with that heat.
- Nitrogen oxides (NOx): air pollutants formed by high-temperature combustion. In this article, the NOx concentration leaving through the stack is the forecasting target.
- Long Short-Term Memory (LSTM): a recurrent neural network that remembers information from earlier time points to predict the next value.
- Mutual Information (MI): the amount of information gained about one variable by observing another. It indicates how strongly two variables depend on each other.
- SHapley Additive exPlanations (SHAP): an interpretation method that decomposes a single prediction into a sum of per-variable contributions.
Motivation: EAF NOx Forecasting Studies Were Rare, and Existing Models Did Not Reveal Their Basis
Why EAF NOx Forecasting Matters
The paper gives the following reasons why this problem is important.
- Ferroalloys are essential raw materials for improving the properties of steel. Demand is expected to grow as production technologies shift toward lower emissions.
- Producing ferroalloys in an electric arc furnace emits less than producing steel in a blast furnace. Even so, NOx emissions are considerable, and a large share of them comes from the EAF.
- NOx is a major cause of air pollution and affects human health.
- Environmental regulation in Korea has become stricter. Government agencies remotely monitor factories that emit pollutants by installing sensors on their stacks.
- If forecasting is possible, emissions can be reduced in two ways. Pre-emptive management means adjusting key operating variables, and post-treatment management means operating the denitrification unit efficiently.
What Existing Studies Did Not Cover
There are two approaches to NOx forecasting. The first is the mechanism-based approach, which computes NOx from equations and parameters of heat transfer, combustion, and turbulence. This approach rests on many assumptions, and simulating the combustion process takes time. Studies that use Computational Fluid Dynamics (CFD) require experts who can handle the conditions that differ from one facility to another.
The second is the data-driven approach, which finds the relationship between operating data and NOx emissions from the data. Studies have applied deep belief networks, artificial neural networks, extreme learning machines, and LSTM to coal boilers, cement kilns, and industrial waste incinerators. The paper points out the following reasons why this line of research is hard to transfer directly to the EAF.
- Existing studies did not consider the EAF environment. The arc temperature of an EAF commonly reaches 2000°C, and the furnace depends on electrical energy rather than fossil fuel.
- The EAF process is not constant. Even during operation, raw materials are charged, slag is removed, and the alloy composition is adjusted.
- Ferroalloy plants have no system for collecting the necessary data. It is also unclear which data are needed for accurate forecasting.
- Many existing studies analyzed only forecasting performance. For experts and machine learning to collaborate, humans must be able to understand the model’s judgments.
- Many artificial neural network-based models did not use the temporal evolution of operating variables. The operating conditions of an EAF are correlated with past NOx emissions.
- EAF exhaust gas measurements contain noise. Gas trapped beneath the slag or the collapse of raw material causes sudden explosions and NOx spikes.
Method: Filter the Noise, Set the Lags, Forecast with LSTM, and Reveal the Basis with SHAP
The paper describes the method in three steps: smoothing the NOx measurements with a Kalman filter, forecasting NOx with an LSTM, and interpreting the forecast with SHAP. In this article, we separate the lag time determination, which sits inside the forecasting step, and explain the method in four steps. In the paper, lag time determination is a subsection of the forecasting step, and it sets the length of the model input.
Case and Data
The subject of the analysis is an electric arc furnace and its exhaust gas treatment facilities at a ferroalloy production site in Korea. The data were provided by a ferroalloy plant in Gwangyang. The exhaust gas travels to the stack in the following order.
- Electric arc furnace: melts the raw material and produces a large amount of thermal NOx.
- Dust duct: collects the exhaust gas and fine particles coming from the preceding process.
- Semi-Dry Reactor (SDR): sprays water to regulate the exhaust gas temperature and performs treatments such as desulfurization.
- Baghouse filter: removes particulate pollutants such as dust. It cannot remove gaseous pollutants such as NOx and SOx.
- Induced Draft Fan (IDF): pushes the gas out of the stack using pressure.
The researchers collected data from the EAF’s Manufacturing Execution System (MES) and Tele-Monitoring System (TMS). The collection period runs from May 1 to July 7, 2023, for a total of 18,834 time points. Of these, 17,422 were used for training and 1,412 for validation. The test data are 1,412 time points collected from July 12 to 17.
The model input is a sequence of 19 variables including NOx. The paper does not list the composition of the 19 variables separately. Table 2 contains 18 variables, such as electrode depth, power consumption, dust duct temperature, baghouse filter pressure, and induced draft fan power. I infer that adding NOx to these 18 gives 19 (18+1=19). One step in the data is 5 minutes.
Step 1: Smoothing the NOx Measurements with a Kalman Filter
- Input: raw NOx data measured by the stack sensor
- Processing: repeat, at every time point, the calculation of predicting the next value and correcting it with the new measurement
- Output: NOx training data with reduced noise and outliers
The inside of the stack is hot and humid, and several gases flow through it quickly. As a result, the sensor measurements contain a lot of noise. The Kalman filter is a method for estimating the state of a dynamic system. It predicts the next state from the current state and corrects that prediction with the new measurement. The processing sequence is as follows.
- State prediction: assume that the value at the next time point equals the current estimate.
- Error covariance prediction: add the process noise variance Q to the current uncertainty P.
- Innovation computation: compute the difference obtained by subtracting the predicted value from the new measurement.
- Kalman gain computation: divide the predicted uncertainty by (predicted uncertainty + measurement variance R).
- State update: add (Kalman gain × difference) to the predicted value.
- Error covariance update: reduce the uncertainty by the factor (1 − Kalman gain).
The Kalman gain is the ratio that decides whether to trust the measurement or the prediction more. The larger the gain, the more the filter trusts the observed data and the less it reflects the prediction. The researchers set R to 10², Q to 5², and the initial P to 0.7. These values were set by trial and error.
The researchers followed two principles. They kept the sum of R and Q from exceeding the actual NOx variance of 17.75², and they set R larger than Q to smooth the fluctuations. Checking with numbers, R+Q is 10²+5²=100+25=125, which is smaller than 17.75². They set P to 0.7 because the difference between the initial measurements was about 1.3.
What follows is my own calculation example, which is not in the paper, and it is limited to the first time point. With this setup, the predicted uncertainty at the first time point is 0.7+25=25.7. The Kalman gain at the first time point is 25.7÷(25.7+100)=25.7÷125.7≈0.20. At the first time point, only about 20% of the difference between the new measurement and the predicted value is reflected in the estimate. Because the error covariance is updated, the Kalman gain changes at every time point.
Step 2: Setting Each Variable’s Lag Time with Mutual Information
- Input: 18 variables and smoothed NOx
- Processing: increase the lag from 1 step and compute the mutual information between each variable and NOx
- Output: the optimal lag time for each variable and the model input length
Changes in a variable do not show up in NOx emissions immediately. Sensors differ in when they measure, which causes delays in data collection. The combustion reactions in the EAF also affect NOx over time. The researchers therefore determined a suitable lag time between each variable and NOx, and from it set the sequence length to feed into the LSTM.
The processing sequence is as follows.
- Delay one variable by 1 step and compute its mutual information with NOx.
- Increase the lag one step at a time and repeat the same calculation.
- Set the step with the highest mutual information as that variable’s lag time.
Mutual information is computed as I(X;Y)=H(X)+H(Y)−H(X,Y). H(X) is the information entropy of variable X, and H(X,Y) is the joint entropy of X and Y. If the two variables are unrelated, the mutual information is small, and if knowing one tells us a lot about the other, it is large. The paper explains that mutual information gives insights that ordinary regression analysis may fail to reveal.
Table 2 of the paper gives the mutual information and lag time for each of the 18 variables. Picking out only the values needed for interpretation, we get the following.
- Variables with high mutual information: dust duct temperature A (0.8403), SDR inlet temperature (0.7935), dust duct temperature C (0.7651), and dust duct temperature B (0.7489). All four variables have a lag of 1 step.
- An example of an operating variable: power consumption (0.5097, 3 steps).
- Variables with the longest lag: baghouse filter inlet pressure and baghouse filter differential pressure. Both are 6 steps.
- Variable with the lowest mutual information: electrode supply water flow rate (0.1457, 4 steps).
Source: Seol et al. (2024), Mathematics 2024, 12, 878, CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Some values from the original Table 2 were excerpted and recast as sentences.
The trend in the list is simple. The exhaust gas temperature before the reactor shared the most information with NOx, and that sharing appeared within 5 minutes. Pressure on the baghouse filter side had its highest mutual information with NOx at 6 steps (30 minutes), the upper limit of the lag range searched.
The lag time of each variable ranged from 1 to 6 steps. Since one step is 5 minutes, the maximum lag is 6×5=30 minutes. This 30-minute upper limit is a design choice that matches Korean regulations requiring emission monitoring in 30-minute units. For example, for power consumption, the value from 3 steps earlier, that is 3×5=15 minutes before, shared the most information with NOx. The researchers set 6 steps as the model input to capture the change over time for every variable.
Step 3: Forecasting the Next Time Point’s NOx with LSTM
- Input: 6-step (30-minute) sequences of 19 variables
- Processing: pass through two LSTM layers and a fully connected layer and output a single NOx value
- Output: the NOx forecast for the next time point and performance metrics
An LSTM regulates a memory value called the cell state with three gates. The roles of the gates are as follows.
- Forget gate: looks at the previous output and the current input and decides which past information to discard.
- Input gate: picks out the important elements of the current input and updates the cell state with new candidate values.
- Output gate: multiplies the filtered cell state by the sigmoid output to produce the final output.
The researchers chose LSTM because past operating conditions and the current state are related, so NOx emissions should be treated as a time series problem. They also included the immediately preceding NOx in the input to reflect the trend in earlier emission levels.
They tested layer unit counts among 64, 128, 256, and 512, and also varied the number of LSTM layers and fully connected layers. Based on preliminary experiments, they decided to use two LSTM layers and one fully connected (dense) layer. The unit counts are 128 for LSTM1, 64 for LSTM2, and 64 for the fully connected layer. The fully connected layer converts the high-dimensional output of the LSTM into a single NOx forecast value.
Performance was evaluated with four metrics.
- Mean Absolute Percentage Error (MAPE): the average percentage error between forecast and actual values. Smaller is better.
- Coefficient of determination (R²): indicates how well the forecasts fit the actual data. A value of 1 means a perfect fit.
- Mean Squared Error (MSE): the average of the squared errors. It penalizes large errors more heavily.
- Mean Absolute Error (MAE): the average size of the errors regardless of direction.
In Table 3, the proposed model’s MAPE is 9.4506.
Step 4: Computing Variable and Time Point Contributions with SHAP
- Input: the trained LSTM model and 1,000 time points randomly drawn from the test data
- Processing: compute SHAP values for each variable and time point with Deep SHAP
- Output: per-time-point variable importance, and summary plots and bar charts for the low-emission and high-emission segments
SHAP is an interpretation method applied post hoc to a trained model. It can be used regardless of model type. The researchers chose SHAP because it provides both explanations of individual predictions and explanations of the data as a whole. LIME, the comparison method, focuses on explaining specific data points, so it has limits in global interpretation and consistency.
SHAP values are computed as follows.
- Compute the prediction using a combination of variables that excludes a particular variable.
- Compute the prediction for the same combination with that variable included, and take the difference between the two values.
- Take a weighted average of the differences over all possible combinations.
- Adding the SHAP values of all variables to the baseline value gives the prediction at that time point.
The weight is |S|!(M−|S|−1)!/M!. M is the number of variables, and S is the combination that excludes the variable in question. With 19 variables and an empty combination, the weight is 0!×18!÷19!=1÷19. The number of combinations grows exponentially with the number of variables, so exact computation is difficult. The researchers therefore used Deep SHAP. Deep SHAP combines the SHAP values of the neural network’s components to obtain the overall value.
Because the input is a time series, SHAP values are produced separately for each variable i and time point j. The researchers plotted the absolute value |φi,j| for each time point, and computed a variable’s SHAP value as the mean of its per-time-point values. The analysis was divided into three groups.
- Overall: 1,000 time points randomly drawn from the test data
- Low emission: the first 200 time points of the test data
- High emission: 200 time points, from the 1,000th to the 1,200th time point of the test data
Results: The Model Using Temporal Information and the Preceding NOx Was Most Accurate, and Its Basis Was Exhaust Gas Temperature and Pressure
Performance Comparison: The Effect of Temporal Information and the Preceding NOx
The researchers compared the proposed model with six models.
- A model without the preceding NOx
- A model using only the preceding NOx
- Linear regression, Deep Neural Network (DNN), gradient boosting regression, and random forest regression
The last four models use the same variables as the proposed model but do not reflect the temporal evolution.
The values in Table 3 are organized by metric. For each metric, the proposed model’s value is listed next to the best value among the six comparison models.
- MAPE: proposed model 9.4506, model using only the preceding NOx 12.7176
- R²: proposed model 0.9145, linear regression 0.8841
- MAE: proposed model 1.7823, linear regression 2.2690
- MSE: proposed model 6.4525, linear regression 8.7988
Source: Seol et al. (2024), Mathematics 2024, 12, 878, CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Some values from the original Table 3 were excerpted and recast as sentences.
Based on the Table 3 values, the proposed model showed better values than the comparison models on all four metrics. MAPE, MAE, and MSE were lower, and R² was higher.
These values were obtained from a model trained on data from one ferroalloy plant and evaluated on test data of 1,412 time points collected from July 12 to 17. The paper also states that generality should be improved by applying the model to other EAF environments.
The model without the preceding NOx deteriorated sharply, with a MAPE of 42.6532 and an R² of 0.5859. The researchers read this as evidence that past NOx data are valuable for forecasting. In my view, this comparison reflects a change in the composition of input variables. It is therefore hard to attribute the entire difference to the preceding NOx alone.
The model using only the preceding NOx had a MAPE of 12.7176, the lowest among the comparison models. However, its R² was 0.5655, lower even than the 0.8841 of linear regression, which does not reflect time. The researchers wrote that this model showed satisfactory performance, and concluded that a model that reflects the temporal component while using the earlier NOx is effective. In the forecast versus actual comparison plot (Figure 6), the forecast line followed the actual line closely. The researchers explained that the 95% prediction band in the test data scatter plot (Figure 7) shows the consistency of the forecasts.
Overall Interpretation: Exhaust Gas Temperature Before the Reactor and the Preceding NOx
In the SHAP analysis of 1,000 time points, two kinds of input contributed to the forecast.
- Temperature before passing through the SDR: dust duct temperature and SDR inlet temperature
- NOx emission at the preceding time point
The SDR lowers the temperature by spraying liquid into the exhaust gas. The difference in contribution between the SDR inlet temperature and outlet temperature was also clear. The researchers interpreted this to mean that the exhaust gas temperature before the reactor may be linked to actual NOx emissions. As my own observation, in the mutual information results as well, dust duct temperature A was the highest of the 18 variables at 0.8403. However, the paper did not interpret the mutual information and SHAP results in connection with each other.
Segment Interpretation: Pressure in Low Emission, the Preceding NOx in High Emission
First, a note on how the segments were defined. The researchers defined the two segments not by actual NOx concentration but by position within the test data (the first 200 and the 1,000th to 1,200th). They noted that the data contain more high-emission samples, so it is hard to compare the SHAP values of the two segments directly. The trends below should be read as results under this condition.
The variables that came out as important in the low-emission segment were as follows.
- Induced draft fan power
- Induced draft fan inlet pressure
- Baghouse filter differential pressure
The exhaust gas facilities maintain pressure to push the gas out of the stack. The researchers read this as showing that, when NOx is low, the pressure inside the facilities has a larger influence than temperature or operating variables.
The variables that came out as important in the high-emission segment were as follows.
- Emitted NOx (previous time point)
- Baghouse filter differential pressure
- Baghouse filter inlet pressure
In this segment, the influence of the NOx at the previous time point was very large. On this basis, the researchers inferred an inertia effect, in which once emissions reach a certain level, that level persists. However, the segments were defined by position and the sample composition is not uniform. The inertia effect is therefore best accepted as a possible interpretation.
When the actual dust duct temperatures in the two segments were compared, a difference of about a factor of two was observed. Looking at this comparison together with the SHAP results, the researchers suggested that there may be a correlation between exhaust gas temperature and NOx emissions.
Answer to the Title Question: The Basis Is Mostly Outcome Measurements
The variables the model based its forecasts on were mostly measurements. Exhaust gas temperature before the reactor, facility pressure, and the NOx at the previous time point fall into this group. Actual operating variables such as electrode depth and power consumption had low importance.
This point is the core of the practical interpretation. What follows is my own interpretation. Exhaust gas temperature and the preceding NOx are values that appear as outcomes of the process, so it is hard for them to serve as the basis for an action that operators can take right away. The paper presented a high-performance forecasting model built on operating variables as a follow-up task. The researchers also emphasized that SHAP results show only the influence of variables and do not directly represent causal relationships.
My answer to the initial question is this. Revealing the basis of a forecast by variable and time point was possible. However, the basis that was revealed tells us more about “what the current state is” than about “what to adjust.”
Significance and Limitations
What Changes
- It built a NOx forecasting model for the ferroalloy EAF, a target on which prior studies were rare.
- It used a Kalman filter to remove the measurement noise arising from molten metal explosions and the hot, humid stack, and built the training data from the result.
- It set the lag time of each variable with mutual information and set the input length to match the 30-minute regulatory unit.
- In addition to forecasting performance, it revealed contributions by variable and time point with SHAP.
- It organized the collected data, key variables, and collection locations, offering guidance to sites that have no data collection system.
Usefulness for Practitioners
This model was developed from historical data accumulated in the MES and TMS. The paper states that the model can serve as a reference for practitioners who want to build a real-time forecasting system. In terms of pre-emptive management, key operating variables can be identified and reflected in the operation of production facilities.
The usefulness for post-treatment management lies in Selective Catalytic Reduction (SCR) facilities. The NOx removal rate of SCR depends on the amount of ammonia, the reducing agent. Injecting too much ammonia causes ammonia slip, which can lead to a risk of equipment failure and lower dust collection efficiency, while injecting too little reduces NOx less. A system that forecasts NOx in real time and adjusts the injection amount is therefore needed.
Usefulness for Researchers
- Unfolding the SHAP values of a time series deep learning model by time point reveals “which variable at which time point” the model relies on.
- Interpreting the low-emission and high-emission segments separately reveals differences that are not visible in the overall average.
- Follow-up tasks also remain. If a high-performance model centered on operating variables is built, an interpretation method can be used to find combinations of operating variables that reduce NOx.
Limitations Stated by the Paper
The paper itself states four limitations.
- Types, variables, and specifications differ from one EAF to another. The model should be applied to diverse EAF environments to improve generality.
- The data are limited to May through July. Because temperature differences between seasons are large in Korea, data from a longer period are needed to reflect seasonality.
- The Kalman filter’s hyperparameters were set by trial and error. A systematic way of setting them is needed.
- SHAP uses the mean of local values, so the results vary depending on the samples used in the analysis.
Conditions for Application, in the Author’s View
What follows is not content from the paper but conditions I add with practical application in mind.
- The recording times of the sensors must be aligned. With data whose timestamps are misaligned, the lag times set by mutual information can come out wrong.
- Do not treat variables with high SHAP importance directly as targets for manipulation. Exhaust gas temperature is a measurement that appears as an outcome, so it must be distinguished from the operating variables you can adjust.
- The paper defined the low-emission and high-emission segments by position in the test data. At your own site, divide the segments by actual concentration and check whether the same trends appear.
- The test period is limited to July 12 to 17, 1,412 time points (1,412×5 minutes=7,060 minutes, about 5 days’ worth). Separately check whether performance holds in periods when raw materials or the equipment maintenance schedule change.
What to Try Right Away
- Apply a Kalman filter to the NOx records of your own stack. As in the paper, set R larger than Q, and choose them so that the sum of R and Q does not exceed the actual NOx variance. Place the plots from before and after smoothing side by side and see how the spike segments change.
- For each process variable, increase the lag from 1 step to 6 steps and compute the mutual information with NOx. If you tabulate the step with the highest value for each variable, you gain a basis for setting the model input length.
- Train a model with the preceding NOx and a model without it over the same test period and compare MAPE and R². If the difference is large, move on to the step of checking the important variables by segment with SHAP.