February 09, 2026
Predictive modeling of industrial water consumption with machine learning
Otávio Afonso Borges da Costa; Felipe Pinto da Silva
Summary prepared by the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege focused on synthesis and writing.
The pulp and paper industry is one of the pillars of the Brazilian economy, with a significant contribution to the trade balance, moving approximately 10 billion dollars annually, which corresponds to about 3% of all national exports (Ministry of Development, Industry, Trade and Services [MDIC], 2025). This movement has generated a profound impact on the regional economy and labor market, fostering the development of a robust production chain (Secretariat of Environment, Development, Science, Technology and Innovation of Mato Grosso do Sul [SEMADESC], 2024). Specific consumption can present significant variation, ranging from 23 to 120 cubic meters of water per ton of dry pulp produced, depending on the technology employed, the efficiency of reuse circuits, and the type of final product (Bachmann, 2009).
Leading companies in the sector have invested heavily in technologies for circuit closure and reuse maximization, seeking to minimize their water footprint (Santi, 2015). These actions are directly aligned with the UN’s Sustainable Development Goals (SDGs), particularly SDG 6 (Clean Water and Sanitation) and SDG 12 (Responsible Consumption and Production) (United Nations Brazil, 2015; Klabin, 2025). The ability of these techniques to process large volumes of process data (big data), identify non-linear patterns, and generate accurate predictions of key performance indicators, such as water consumption, offers a competitive advantage (Sousa, 2023).
Successful examples in other industries illustrate this potential, such as the use of ARIMA models in the automotive industry, which achieved a 34% reduction in the error of parts demand forecasting (Vallati, 2018), and the application of clustering methods to optimize the performance of digesters in the pulp and paper industry itself, segmenting operational regimes for more effective control (Jabir, 2024). Pérez Cortés et al. (2025), for example, used a combination of multiple regressions and artificial neural networks to predict water consumption in copper processing plants, demonstrating the viability of modeling processes with multiple input variables. In urban supply contexts; demand predictability is crucial for reservoir management, researchers such as Shah et al. (2018) and Msiza et al.
(2007) explored a range of advanced techniques, including recurrent neural networks (RNN) and support vector machines (SVM), to predict water demand with high accuracy. The methodology adopted for the project’s development followed the phases of the CRISP-DM (Cross-Industry Standard Process for Data Mining) model, a structured approach that spans from business understanding to solution deployment (Shearer, 2000). The first stage consisted of collecting daily water balance data and operational variables from two pulp mills, covering the period from January 1, 2019, to December 31, 2024. This time window was chosen to capture a wide range of operational conditions, including seasonal variations and different production campaigns, totaling 2192 raw observations per mill.
The data were extracted from the Plant Information Management System (PIMS), a process data historian system (Banker et al., 2006), using the PIconnect library in a Python environment. In the preprocessing step, raw data, generally recorded at high frequency (minutes or seconds), were aggregated into daily averages to smooth out short-term operational noise and align the analysis granularity with managerial planning and control cycles. Units of measurement were standardized to ensure consistency. An ordinal categorical variable was created to represent the production pace (nominal, reduced, very reduced), based on daily production ranges.
To ensure the model was trained under representative operational conditions, days of scheduled general shutdown and periods of intentionally reduced production for specific tests or maintenance were excluded, resulting in a final, clean database of 1534 observations. The categorical variable of production pace was then transformed into dummy variables for inclusion in the regression models, using the “Nominal” level as the reference category.
The modeling phase was exploratory and iterative, testing different regression architectures to find the best balance between accuracy and interpretability. Initially, multiple linear regression (MLR) models were developed, which serve as an excellent starting point due to their simplicity and clarity in interpreting the coefficients, which quantify the marginal impact of each predictor variable (Montgomery et al., 2012). Subsequently, to recognize the hierarchical structure of the data; the days of operation can be grouped by different operational regimes or states, multilevel (or mixed-effects) models were implemented. These models, with random intercepts and, subsequently, random slopes, are designed to accommodate the non-independence of observations within the same group, providing more accurate and realistic estimates (Gelman and Hill, 2007). The implementation was carried out with Python’s statsmodels library.
The selection and comparison of the models were guided by performance metrics such as the adjusted R², which penalizes the inclusion of unnecessary variables, and the mean absolute percentage error (MAPE), which offers an intuitive measure of prediction accuracy. The validity of the statistical inferences was rigorously verified through multicollinearity diagnostics, using the Variance Inflation Factor (VIF); values above 5 are generally considered problematic (Kutner et al., 2005), and homoscedasticity, through the Breusch-Pagan test, which assesses whether the variance of the residuals is constant (Breusch and Pagan, 1979).
To mitigate the identified multicollinearity, an innovative feature engineering approach was applied, using the K-Means clustering algorithm (MacQueen, 1967; Hartigan & Wong, 1979) to create a new categorical variable of operational states. The optimal number of clusters was objectively determined by the elbow method and the silhouette coefficient, which assesses the cohesion and separation of the formed groups (Kaufman and Rousseeuw, 1990).
For Factory 1, the initial modeling phase explored several transformations on the dependent variable (specific water consumption), such as Box-Cox, logarithmic, square root, and inverse, in an attempt to linearize relationships and stabilize error variance. However, none of these transformations resulted in a significant improvement in performance. The original linear model, without transformations, achieved an adjusted R² of 0.74 and a MAPE of 3.65%, with the transformed versions presenting very similar values. The inclusion of a first-order autoregressive term (Lag1), representing the previous day’s consumption, brought only a marginal improvement, indicating that most of the variability was explained by the operational conditions of the day itself. The multilevel model with only random intercepts per production category performed identically to the linear model with dummy variables, a theoretically expected result, as both approaches model the average variation between groups (Gelman and Hill, 2007).
Given the absence of significant gains with more complex approaches at this stage, the “Original” (multiple linear) model was selected for in-depth analysis, prioritizing simplicity and already satisfactory performance. However, a counterintuitive result emerged: the coefficient for the “Reduction” production category was negative and statistically significant. This would suggest that operating at a reduced pace would lead to lower specific water consumption, which contradicts theory and operational practice; lower production paces are generally associated with lower energy and water efficiency. This anomaly signaled the presence of underlying problems in the model, likely related to variable correlation. Statistical diagnostics for Factory 1’s model confirmed the suspicions. The VIF calculation indicated the presence of multicollinearity, with values of 5.28 for the “Production” variable and 4.79 for the “High Reduction” dummy, both close to or above the threshold of concern.
This means that these variables carried redundant information, making the estimates of their coefficients unstable and unreliable. Additionally, the Breusch-Pagan test resulted in an LM statistic of 474 with a virtually zero p-value, leading to the strong rejection of the null hypothesis of homoscedasticity. This evidenced the presence of heteroscedasticity; the variance of the errors was not constant.
For Factory 2, the initial results were considerably superior in terms of fit. The “Original” model achieved an adjusted R² of 0.96 and a MAPE of only 1.48%, indicating a very high predictive capacity. As in Factory 1, attempts to transform the dependent variable brought only marginal improvements, which justified maintaining the original model for its simplicity and direct interpretability.
The analysis of the coefficients was, in large part, similar to that of Factory 1, including the same counterintuitive and problematic behavior of the dummy variables for productive pace.
To solve the fundamental problem of multicollinearity, which was at the root of the counterintuitive coefficients, the productive rhythm variables were replaced by a new categorical variable, more robust and multidimensional, derived from K-Means clustering. This approach grouped the operational days not only by production, but by a set of variables representing the performance of central areas of the process (Digester, Recovery Boiler, and Drying).
For both factories, both the elbow method and the silhouette coefficient indicated that three clusters represented the ideal structure in the data. The replacement of the original categorical variable with the new variable derived from clustering had an immediate and positive impact. The multicollinearity problem was completely resolved, with all VIF values dropping to well below 2 in both models. More importantly, the coefficients associated with the new clusters became intuitive and aligned with process engineering. In Factory 1, the change in the sample space due to the new categorization led to readjustments in other model coefficients, while in Factory 2, the coefficients of the continuous variables remained remarkably stable, a sign of the greater robustness and stability of its production process. With a more robust and significant categorical variable, it became feasible to explore the full potential of multilevel models, introducing random slopes.
This technique allows the effect of a predictor variable (its slope or coefficient) to vary across different clusters. The inclusion of a random slope for the “Drying” variable in Factory 1 and for the “Production” variable in Factory 2 substantially improved the models’ performance. In Factory 1, the adjusted R² jumped from 0.74 to 0.86, and the MAPE was reduced from 3.65% to 2.32%. In Factory 2, the adjusted R² rose from 0.96 to 0.97, and the MAPE dropped from 1.48% to 1.29%. This means the model began to recognize that the impact of these variables on water consumption is not fixed but depends on the plant’s overall operational state. This more sophisticated approach also helped mitigate the issue of heteroscedasticity. The LM statistic of the Breusch-Pagan test dropped drastically from 474 to 27 in Factory 1 and from 322 to 298 in Factory 2.
Although it was not completely eliminated in Factory 2, the graphical analysis of the residuals showed that the remaining heteroscedasticity was concentrated in a few outliers, associated with days of very high operational instability. The final models developed demonstrated high predictive capacity and statistical robustness. The superior adherence of the model for Factory 2 can be attributed to its more modern technology and inherently more stable and well-instrumented processes.
For future work, continuous validation of the models with the data from the 2025/2026 production campaign is recommended to monitor their performance and identify possible deviations (model drift). It is also suggested to investigate and potentially include new explanatory variables for the Factory 1 model, seeking to capture sources of variability not yet modeled. Finally, it is essential to maintain a model refinement lifecycle, ensuring their accuracy and long-term relevance as a strategic tool for sustainable water resource management.
It is concluded that the objective was achieved: robust and interpretable predictive models were developed, capable of estimating specific water consumption with high precision, demonstrating that the incorporation of categorical variables derived from clustering significantly improves the quality of predictions in a complex industrial environment.
References:
Bachmann, D. L. 2009. Environmental benchmarking in the pulp and paper industry. O Papel Magazine – June Edition: 57-61.
Banker, R. D.; Bardhan, I. R.; Chang, H.; Lin, S. 2006. Plant Information Systems, Manufacturing Capabilities, and Plant Performance. MIS Quarterly 30(2): 315-337.
Breusch, T. S., & Pagan, A. R. 1979. A Simple Test for Heteroscedasticity and Random Coefficient Variation. Econometrica, 47(5): 1287–1294.
Gelman, A.; Hill, J. 2007. Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press, New York, NY, United States.
Hartigan, J. A.; Wong, M. A. 1979. Algorithm AS 136: A k-means clustering algorithm. Journal of the Royal Statistical Society – Series C (Applied Statistics) 28(1): 100–108.
Jabir, G. E. 2024. Evaluation of industrial data clustering models for identifying best process parameters. Monograph – MBA in Data Science and Analytics. Escola Superior de Agricultura Luiz de Queiróz, Universidade de São Paulo, Piracicaba, SP, Brazil.
Jain, A. K. 2010. Data clustering: 50 years beyond K-means. Pattern Recognition Letters 31(8): 651–666.
Kaufman, L.; Rousseeuw, P. J. 1990. Finding Groups in Data: An Introduction to Cluster Analysis. Wiley, New York, NY, United States.
Klabin. 2025. Sustainable Operation. Available at: <https://klabin. com. br/sustentabilidade/operacao-sustentavel>. Accessed on: Mar. 29, 2025.
Kutner, M. H., Nachtsheim, C. J., Neter, J., & Li, W. 2005. Applied Linear Statistical Models 5ed. McGraw-Hill Education, Boston, MA, United States.
MacQueen, J. 1967. Some methods for classification and analysis of multivariate observations. In: Fifth Berkeley Symposium on Mathematical Statistics and Probability, 1967, Berkeley, CA, USA. Proceedings… pp. 281–297.
Ministry of Development, Industry, Trade and Services [MDIC]. 2025. Foreign Trade Balance Results. Available at: <https://balanca. economia. gov. br/balanca/pgprincipalbc/principais_resultados. html>. Accessed on: Mar. 29, 2025.
Montgomery, D. C.; Peck, E. A.; Vining, G. G. 2012. Introduction to Linear Regression Analysis. 5ed. Wiley, Hoboken, NJ, United States.
Msiza, I. S.; Nelwamondo, F. V.; Marwala, T. 2007. Artificial Neural Networks and Support Vector Machines for Water Demand Time Series Forecasting. In: IEEE International Conference on Systems, Man and Cybernetics – SMC 2007, 2007, Montreal, QC, Canada. Proceedings… pp. 638–643.
United Nations Brazil. 2015. 2030 Agenda for Sustainable Development. Available at:<https://brasil. un. org/pt-br/91863-agenda-2030-para-o-desenvolvimento-sustent%C3%A1vel>. Accessed on: Mar. 26, 2025.
Pérez Cortés, S. A., Contreras Moreno, E. H., Flores Páez, H., Hurtado Cruz, J. P., & Jarufe Troncoso, J. A. 2025. Predictive Model for Water Consumption in a Copper Mineral Concentrator Plant Located in a Desert Area Using Machine Learning. Water, 17(1), 15.
Santi, T. 2015. Water use efficiency in pulp and paper industries. O Papel Magazine – November Edition: 94-96.
Secretariat of Environment, Development, Science, Technology and Innovation of Mato Grosso do Sul [SEMADESC]. 2024. Cellulose Valley: Protagonism of MS Agroforestry Industry is Highlighted Nationally. Available at: <https://www. semadesc. ms. gov. br/vale-da-celulose-protagonismo-da-industria-agroflorestal-de-ms-repercurte-e-e-destaque-nacional>. Accessed on: Mar. 29, 2025.
Shah, S.; Hosseini, M.; Ben Miled, Z.; Shafer, R.; Berube, S. 2018. A Water Demand Prediction Model for Central Indiana. In: AAAI Conference on Artificial Intelligence – IAAI-18 – Emerging Applications of AI, 2018. Proceedings… pp. 7819–7824
Shearer, C. 2000. The CRISP-DM model: The new blueprint for data mining
Executive summary from the Final Course Work of the Specialization in Data Science and Analytics of the MBA USP/Esalq
Learn more about the course; click here: