scieee AI-readable full text Open interactive document viewer

Innovation ARIMA models application to predict pressure variations in water supply networks with open-loop control. Case study in Noja (Cantabria, Spain)

Muñoz Rodríguez, David; González Ortega, Manuel Jesús; Aguilera Ureña, María Jesús; Ortega Ballesteros, Andrés; Perea Moreno, Alberto Jesús

Abstract

Water utilities are increasingly concerned about losses, leaks, and illegal connections in their distribution networks. Pressure control is typically managed through pressure reducing valves (PRVs) with electrically controlled actuators based on predefined tables according to the pressure at the critical point control (CPC). This open-loop control method lacks direct feedback between the PRV and CPC, making it challenging to distinguish whether pressure variations originate from normal head losses or abnormal network conditions. Unlike traditional applications of ARIMA focused on water demand forecasting, this study explores its novel use in pressure management within distribution networks, aiming to predict P3 (CPC) pressure based on head losses across a defined hydraulic sector. To achieve this objective, a predictive model based on the Box-Jenkins methodology and its variations is implemented to analyse time series data. An action path is established to determine the optimal model—ARIMA, ARMA, ARMAX, etc.—which is subsequently validated using real operational data from Noja, a coastal town in northern Spain characterized by significant seasonal population fluctuations. By accurately forecasting CPC pressure, this system enhances the detection of anomalous patterns, enabling more efficient network pressure management. The study demonstrates the potential of advanced modelling techniques in optimizing water distribution networks, providing valuable insights to improve system efficiency, reliability, and sustainability in urban environments.

Full text

Innovation ARIMA models application to predict pressure variations in water supply networks with open-loop control. Case study in Noja (Cantabria, Spain) David Mu˜ noz-Rodríguez a , Manuel J. Gonz´ alez-Ortega b , María-Jesús Aguilera-Ure˜ na a , Andr´ es Ortega-Ballesteros a , Alberto-Jesus Perea-Moreno a,* a Departamento de Física Aplicada, Radiología y Medicina Física, Universidad de C´ ordoba, Campus de Rabanales, 14071 C´ ordoba, Spain b Department of Aerospace Engineering and Fluid Mechanics, University of Seville, 41013 Seville, Spain ARTICLE INFO Keywords: Potable water, leakage, pressure management Pressure reducing valve Critical point control Armax model, Sustainable cities, Water-energy nexus ABSTRACT Water utilities are increasingly concerned about losses, leaks, and illegal connections in their distribution networks. Pressure control is typically managed through pressure reducing valves (PRVs) with electrically controlled actuators based on predefined tables according to the pressure at the critical point control (CPC). This open-loop control method lacks direct feedback between the PRV and CPC, making it challenging to distinguish whether pressure variations originate from normal head losses or abnormal network conditions. Unlike traditional applications of ARIMA focused on water demand forecasting, this study explores its novel use in pressure management within distribution networks, aiming to predict P3 (CPC) pressure based on head losses across a defined hydraulic sector. To achieve this objective, a predictive model based on the Box-Jenkins methodology and its variations is implemented to analyse time series data. An action path is established to determine the optimal model—ARIMA, ARMA, ARMAX, etc.—which is subsequently validated using real operational data from Noja, a coastal town in northern Spain characterized by significant seasonal population fluctuations. By accurately forecasting CPC pressure, this system enhances the detection of anomalous patterns, enabling more efficient network pressure management. The study demonstrates the potential of advanced modelling techniques in optimizing water distribution networks, providing valuable insights to improve system efficiency, reliability, and sustainability in urban environments. 1. Introduction The proper and right management of water resources is gaining more and more importance over the last years since it is required to secure drinking water supply to the growing world population, which, in many cases, is concentrated in water scarce areas or places with less water available [1–4]. One of the main pillars to secure water supply management is leakage control to avoid water losses [5–7]. The International Water Association (IWA) differentiates four key points in a leakage policy management strategy: active leakage control, asset management, speed and quality of repairs and pressure management [8]. Pressure management has proven to be the most effective method for reducing and preventing the appearance of new leaks in drinking water distribution piping systems due to the direct relationship between the working pressure in the network and the water lost through leaks, as well as the appearance of new leaks [9,10]. Thus, controlling the pressure in the networks allows to manage leakage level [11,12]. The relationship between the ratio of pressure reduction in the network and leakage decrease depends on several factors, such as pipe material and the pressure reduction level [13,14]. Moreover, pressure management is also employed to manage customer demand an ensure adequate water supply throughout the day, though this application is not so widely extended [15,16]. The most common way to apply pressure management is a water distribution network is by the use of pressure reducing valves (PRV) [17, 18,4,19]. The function of a pressure reducing valve is to maintain a fixed downstream pressure independent of flow variations or upstream pressure oscillations occurring in the network. Over the last years, electronic * Corresponding author. E-mail addresses: [email protected] (D. Mu˜ noz-Rodríguez), [email protected] (M.J. Gonz´ alez-Ortega), [email protected] (M.-J. Aguilera-Ure˜ na), [email protected] (A. Ortega-Ballesteros), [email protected] (A.-J. Perea-Moreno). Contents lists available at ScienceDirect Energy Nexus journal homepage: www.elsevier.com/locate/nexus https://doi.org/10.1016/j.nexus.2025.100423 Received 5 August 2024; Received in revised form 18 February 2025; Accepted 22 April 2025 Energy Nexus 18 (2025) 100423 Available online 23 April 2025 2772-4271/© 2025 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY license ( http://creativecommons.org/licenses/by/4.0/ ). control systems and algorithms, with different levels of complexity, have been introduced and developed to optimize the performance of these valves [20]. In this respect, it must be added that recently pumps as turbines (PAT) have also become an optimal and sustainable alternative to PRVs [21] since they also meet energy saving targets. And other authors such as Fontana and Marini (2021) propose an approach to integrating hydropower generation with pressure-reducing valves in water distribution networks. Instead of dissipating excess head through PRVs, this approach generates power. Utilising a programmable logic controller (PLC), they address the optimisation problem directly, circumventing the necessity for external modules [22]. These pressure control valves have different strategies for pressure management (Fig. 1): fixed outlet pressure, time-based, flow-based, and critical point control (CPC). Of all of them, CPC is the most advanced, the one that achieves a control more adjusted to the dynamics of the network, but it is also the most complex [23,24]. The aim of CPC systems is keeping the pressure in the area as low as possible to reduce leakages, while assuring the right level of supply to customers. Under CPC, the PRV is adjusted dynamically with different values at the outlet to maintain a fixed pressure at the critical point of the area supplied [25]. CPC systems can be classified into open or closed loop, depending on whether there is real time connection between the critical point and the pressure reducing valve or not [26,27,4]. In critical point close loop, the critical point and the PRV are communicating continuously to set the pressure value at the outlet of the valve according to the pressure at the critical point. This type of systems requires infrastructure for real time communication between the critical point and the PRV, which, in most of the cases, is expensive and difficult to commission. In open-loop systems, the pressure reducing valve and the critical point do not share real time signals and are based on using statistical models and time series analysis, to forecast hydraulic performance of the network. In open-loop systems, the pressure reducing valve and the critical point do not share real-time signals and are based on using statistical models and time series analysis to forecast the hydraulic performance of the network. Several studies have explored the use of statistical techniques to detect and classify anomalies in water distribution systems, distinguishing between events such as leaks, pipe bursts, and unauthorized water usage. For instance, [55] proposed a method based on transform analysis in wireless sensor networks to detect pipeline bursts and leaks, while [56] reviewed pressure-based techniques for leak monitoring in pipe distribution systems. These studies focus on identifying the causes of anomalies in water supply networks, which differs from our approach. In contrast, this study applies ARIMA models not for anomaly classification but for pressure management by predicting P3 pressure based on head losses, optimizing the efficiency of pressure control strategies. There are different references that shows that the Box and Jenkins methodology (1976) is very suitable for the analysis of the data service to predict the hydraulic performance of the network [28,29], in PRV with open loop control strategy. This methodology proposed by Box and Jenkins is a statistical method used to analyse and predict time series and is part of the general ARMA model. Their work, developed in the first five years of the 1970s (Fig. 2), has led to one of the methodologies most widely used in the predictive analysis of numerical series [30]. The methodology has essentially three stages. Stage 1 consists of identifying the model type and for this it is important to detect whether the data present patterns, trends, seasonal behaviour or whether the series is stationary or not. Stage 2 consists of identifying the coefficients or parameters of the model using maximum likelihood techniques and the last one consists of evaluating the accuracy of the model. The general model from which the Box and Jenkins methodology originates is composed of two models, the AR (Autoregressive) model and the MA (Moving Average) model. The AR term represents the relationship between a current observation and previous observations, and the MA term indicates the relationship between a current observation and the residual error of the moving average of previous observations. Each of these two terms is represented by a numerical value that represents the number of past values or errors of past values that influence the current value. The AR term is assigned the letter p and the MA is assigned the letter q. The above general model presents variants depending on whether the time series considered in the modelling is stationary or not, whether it presents seasonal behaviour and/or whether there are exogenous factors that may influence the variable studied. According to the above, the existing variables are called ARIMA, SARIMA, ARIMAX, ARMAX or SARIMAX. The I present in any of the models refers to the differentiation operation that may be carried out on the series. The seasonal component of the series is represented by the letter S in the name of the model. If the series under study presents this behaviour, the model will be assigned three coefficients (P, D, Q) representing the relationship between present and past observations (P) and the relationship with the residual errors of paired values (Q). The (D) refers to the level of seasonal differentiation made in the original series. If, in addition to the above, the models present an X at the end, it means that they present exogenous variables [30]. There are different uses for the general ARMA model and its ARIMA variant, with or without exogenous variables. The studies performed with ARIMA models and their adaptations are diverse in different research fields. Zhou et al. [31], Wong et al. [32] and Du et al. [33] used these models to forecast water consumption. Liu et al. [34] studied acute haemorrhagic conjunctivitis and Makoni et al. [35] modelled tourism inflow in Zimbabwe. Ampountolas [36] modelled and forecasted daily customer demand in a hotel using, among others, a SARIMAX model. Manigandan et al. [37] forecasted gas consumption in the United States. Yin et al. [38] use an ARMAX model for output noise estimation in control engineering. Lim et al. [39] consider the ARMAX model to estimate the travel demand of Japanese citizens to destinations such as New Zealand and Taiwan. The present study conducts an analysis of the data series from the Noja (Cantabria, Spain) potable water network. With >80,000 real data points from the network, the best model is fitted and validated using the Box and Jenkins methodology. The objective is to apply an innovative development of time series analysis to open-loop critical point pressure management system to predict the pressure at the critical point (P3). The pressure at the critical point (P3) depends on two exogenous variables: pressure at the outlet of the pressure-reducing valve (P2), which is adjusted by the pressure reducing valve (PRV) and the flow rate at the inlet of the area (Q), which depends of the total consumption demanded by the population. The model will employ these two variables, P2 and Q to forecast the pressure at the critical point (P3). The model will be applied with real data of a hydraulic network with seasonal demand where critical point pressure control is essential to deliver water with the right level of service while minimizing leakages rates. 2. Materials and methods 2.1. Description of case study area This study’s series have been analysed and validated with real data provided by the Noja water company. Noja (Fig. 3) is a coastal town in the Cantabria region, northern Spain. This town has a permanent Fig. 1. Strategies for Pressure Reducing Valves (PRV) in Water Distribution Systems. D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 2 population of approximately 2700 inhabitants, which increases by >3600 % during the summer, reaching up to 100,000 people during the holiday period. Therefore, Noja has a very seasonal demand with great variation between winter and holiday periods, such as Easter or summer. 2.2. Description of the hydraulic control of the water supply in noja The water supply system in the town of Noja operates entirely by gravity from a distribution tank. The total length of the water distribution network (WDN) is around 50 km. The main pipe materials are predominantly ductile iron (DI) and polyethylene (PE), accounting for approximately 90 % of the total length. Asbestos (AB) and polyvinyl chloride (PVC) pipes make up the remaining 10 %. Larger sizes, from DN150 to DN300, are constructed of metallic materials, while plastic materials are used for sizes below DN150. Fig. 4 shows the variations in flow (m 3 /h) demanded from the 28 February 2021 to 20 August 2022, measured every 15 min. The measurements come from an electromagnetic flowmeter installed at the inlet of the water distribution system of the town. The technical specification of the flowmeter is displayed in Table 2. It can be seen how in July and August the flow supplied increases up to 130 m 3 /h. However, during the month of March the maximum flow is 20 m 3 /h. Between the first and second quarter of the year 2022, there is also an increase in water supplied due to the Easter week, a holiday period in Spain. The distribution tank supplying the water system is located at the highest point of the municipality, creating a geometric difference that results in an initial pressure of approximately 60 m (P1). This pressure, known as the upstream pressure of the pressure-reducing valve, is generated before the valve reduces the pressure required for the system. Therefore, P1 is the pressure upstream of the pressure-reducing valve, which must be controlled. The water supply is regulated by a DN300 (12 ″ ) full-bore, membrane-actuated hydraulic control valve. The hydraulic specifications of this valve are detailed in Table 1. The control loop of the valve includes two systems in parallel: a standard mechanical pressure reducing pilot and external electronic Fig. 2. Evolution of Time Series Models: AR, MA, and ARMA. Fig. 3. Location of the study area (left), municipality on orthophoto (right). Fig. 4. Flow variations from March 2022 to October 2022. D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 3 controller to command the pressure at the outlet of the valve, at point P2 (42 m), shown in Fig. 5, in order to maintain a target pressure at the critical point P3 (25 m), according to the values in Table 3, depending on the time of day and day of the week. During normal operation, the pressure reducing pilot is isolated from the control chamber of the valve, so the electronic controller is working and controlling the pressure at the outlet of the valve. The mechanical pressure reducing pilot is used as a backup is case of failure or maintenance with the electronic controller. The P3 target critical points values are selected by the water operator. The P3 values are chosen to secure the right level of service in the area. During the central time of the day, when the demand is higher, the P3 values are higher to secure optimal service to the customers. During the night period, when the consumption is lower and demand reduced, the P3 values are lower to minimize water lost by leakages. This PRV is based on an open-loop Critical Point Control (CPC) method, where pressure modulation at P2 depends on flow variations to ensure pressure stabilisation at P3 (Fig. 6). The flow data essential for this control mechanism is derived from the pulse output of a water meter located downstream of the PRV. To prevent interference with the valve’s original pressure reduction pilot, the electronic controller is installed in parallel and isolated. In addition, upstream and downstream pressures are recorded at 15 min intervals with a sampling frequency of 10 s. The controller adjusts the valve outlet pressure according to the prescribed pressure management protocol, maintaining an industry standard deadband of ±0.5 m. A data logger positioned at the critical point records pressure data using the same logging interval and sampling rate. The water company knows the value that P3 should have based on the flow demands, which vary throughout the day and also depend on the time of year, with an increase in population during the summer period. For example, at night when the water demand decreases (Q, flow Table 1 Hydraulic specification of the valve. Features Specification Valve type Globe, straight flow, diaphragmactuated, Resilient disc seal, Flange connections Control function Pressure reducing Size 12 ″ (300 mm) Max Flow rate 1590 m 3 /h Min Flow rate 11,50 m 3 /h Weight 528 Kg Fluid type Potable water Connection ISO PN16 Table 2 Electromagnetic flowmeter specification. Features Specification Flowmeter type Electromagnetic Size 12 ″ (300 mm) Accuracy ±0.4 % ±2 mm/s Measurement Bidirectional Weight 88 Kg Fluid type Potable water Connection ISO PN16 Fig. 5. P3 and PRV location in Noja and the area supplied by the PRV. Table 3 Critical pressure values at P3 (m). Hours Monday to Friday Weekend 00:00–01:00 28 28 01:00–02:00 28 22 02:00–05:00 22 22 05:00–06:00 24 23 06:00–07:00 24 26 07:00–08:00 32 26 08:00–09:00 32 33 09:00–12:00 33 33 12:00–13:00 32 33 13:00–14:00 32 32 14:00–00:00 33 32 D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 4 down), the pressure in the network significantly increases. During the day, at peak demand times, as the flow rate increases, the pressure P3 decreases, which requires regulation at P2 to maintain a minimum service pressure. These pressure patterns are known by the experience of the water operator and can be used to determine if there are leaks in the network, provided a model can be established that fits these patterns from the time series analysis. In Table 3, the target pressure that the water company must maintain can be seen. As displayed in the table, during peak demand hours, it must maintain a high pressure to sustain the service (flow rate and pressure). As shown in Table 3 below, the operator selected the critical point target pressure based on their familiarity with the system and the surrounding conditions. The operator distinguishes between working days and weekends by maintaining distinct P3 target values based on the time of day. Fig. 7 displays hydraulic performance of the network during the first two weeks of March 2021. It can be seen how the pressure at the outlet of the pressure reducing valve, P2, changes dynamically according to the flow to keep the target pressure defined by the water utility at the critical point, P3. The aim of this study is to develop and evaluate an innovative system for pressure management at the critical point P3 of a drinking water distribution network using the Box Jenkins methodology and the model that best fits the characteristics of the time series, ARMA or ARMAX (considering P3 as an exogenous variable). The main objective of this system is to predict the pressure at P3 as a function of the pressure at the outlet of valve P2 and the flow rate in the network. This predictive system allows to modulate P2 pressure at the outlet of the valve and detect abnormal water consumption, for example, due to water losses. Additionally, it aims to provide accurate and real-time information on the pressure at P3 to support network maintenance operations, improve leak detection and location, and optimize water use in the distribution network. This predictive tool can be a great ally for water companies that use open control systems, saving costs and improving service for end users. 2.3. Modelling For the analysis of time series, the Box-Jenkins methodology develops statistical models which consider the dependence between data, so that the observation at an instant is modeled as a function of previous values. In this section, the methodology used to select the model that best fits the data series is developed (Fig. 8). The Eviews software application, specially designed to work with ARIMA models, has been used for data analysis. The different variants of ARIMA models are based on the linear dependence of the time series Suhermi et al. [40], Sau et al. [41] as well as on the stationarity of the data used for the Durdu model [42]. Previous studies applied in different field sciences, such as, as energy consumption, stock prices and other economic indicators Sau et al. [41], Durdu [43], Visutsak et al. [44], have shown that ARIMA models can provide accurate results. In the presence of non-linear dependencies of the considered parameters, ARIMA models, by themselves, do not perform adequately. In these cases, the use of artificial neural networks (ANNs) or support vector machines (SVMs), among others, together with ARIMA models, may be more effective Suhermi et al. [40], Aradhye et al. [45], Man-Chun et al. [46]. In view of the technical problem posed, the objective of the present study is to demonstrate the effectiveness of ARIMA models in predicting future pressure values. The data series available is from February 28, 2021 to August 20, 2022. Thus, the series was divided into two series, the first from February 28, 2021, to March 31, 2022 (38,112 data), was used to generate the model and the second with data from 2022, from April 2022 to August 20, 2022 (13,631 data, was used to validate the model obtained (3.2. Model validation). In both data series, modeling and validation include the summer period, when the city’s population increases and also the water requirements. The data are taken by the datalogger every 15 min, as explained in Section 2.2. Description of the hydraulic control of the water supply in Noja. The tools to use to select the model are the autocorrelation function (ACF) and the partial autocorrelation function (PACF). With them, the selection of the order of correlation of the autoregressive part of the Fig. 6. Open-loop Critical Point Control. Fig. 7. Hydraulic performance of the network during the first two weeks of March 2021. D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 5 model (p) is achieved, as well as the degree of relationship in the mean of the errors of the values. Additionally, it can be used to identify periodicities [47]. The delays represented in the graphs (ACF) and (PACF) can take values that can range between ±1, with the delays that present values close to these levels being those that most condition the model. The augmented Dickey-Fuller (ADF) test is used to determine the stationarity or not of the data set used in the modelling. The null hypothesis of the statistical test assumes the presence of a unit root and therefore the non-stationarity of the values considered. Whether or not the null hypothesis is rejected depends on the significance of the result obtained in the test. If the p value is less than the established significance level, which in this study is 0.05 (p <0.05), the rejection of the null hypothesis is confirmed and therefore, the stationarity of the series of values considered is confirmed [48]. To obtain the best model from all possible models, applying the AIC (Akaike Information Criterion) to discern the best model. The selection criterion penalizes complex models, seeking a balance between the fit of the model with the data considered and its complexity. In the comparison of models, the one with the lowest AIC value is chosen. AIC =2k−2ln(L)(1) Where k number of estimated parameters in the model and L is the maximum value of the model likelihood function. Another statistical criterion used in model selection is the Ljung-Box test. This statistical test verifies if there is autocorrelation in the residuals of the adjusted model. The null hypothesis of this statistical test is the non-autocorrelation of the residuals up to a specific lag. Q=n(n+2)∑ h j=1 ρ 2 j n−j(2) Where n is the sample size, ρ j the autocorrelation at lag j and h is the total number of lags being tested [49]. In the same sense, another test used to examine the presence of autocorrelation, but first order only, is the Durbin-Watson test [50]. When talking about first-order autocorrelation, it refers to the correlation between adjacent errors. This statistic can take values between 0 and 4. If the statistic takes a value of 2 it means that there is no significant autocorrelation between the first order residuals, especially. DW =∑n t=2(e1−et−1)2 ∑n t=1e2 t (3) where the numerator of the statistic ∑n t=2(et−et−1)2is the sum of the squares of the differences between adjacent residues and the denominator, the sum of the squares of all residuals ∑n t=1e2 t. In the present work, an ARMA and an ARMAX model have been obtained, with two exogenous factors, which are P2, pressure value at the outlet of the reducing valve and flow rate, for the forecast of the pressure at the critical point, called P3. 3. Results and discussion 3.1. Model selection Before obtaining the models, the time series of the three variables involved were analysed with data from 2021. Fig. 9 shows the stationarity analyses necessary for the modelling of the time series. Both the dependent variable (P3) and the exogenous factors (P2, Flow) show the fulfilment of the condition. Fig. 10 shows both part of the plot of the P3 values as a function of time and the autocorrelation and partial autocorrelation plots of the dependent variable P3. From the ACF and PACF plots we identify a model, for the time series of P3, as maximally ARIMA [AR (p), I(d), MA (q)] (4,0,4). To check the adequacy of the model we use the AKAIKE (AIC) criterion [51,52]. In this paper, we will develop ARIMA and ARIMAX models, taking into account the exogenous factors P2 and flow rate. When no differencing is applied, ARIMA models are referred to as ARMA, with the integration (I) equal to zero. The proposed models satisfy this condition. Fig. 11 shows, in the left image, the ARMAX models possible from the chosen conditions, and in the right image, the ARMA models. The Eviews 12 software represents the ARMA or ARMAX models with two numbers in brackets. The first bracket shows the degree of the regular (ar) and non-seasonal moving average (ma) part and the second bracket, the degree of the regular (sar) and moving average (sma) part of the seasonal part. Following the AKAIKE criterion, for both the ARMA and ARMAX models, the best model would be (4,4)(0,0). Both without seasonal and non-seasonal differentiation. For the models with the smallest values when applying the AKAIKE criterion, we check which model meets the Ljung box test. Table 4 shows a summary table of the models with the best AKAIKE criterion and whether they meet Ljung’s box test. Table 5 shows the ARMA models with the same information. The only model that meets the Ljung-box criterion is ARMAX (4,3) (0,0). Fig. 12 shows the equation of the model as well as the residual plots. As shown in the left image of Fig. 11, the R 2 of the model is 0.99888 and the Durbin-Watson statistic, with a value of 1.999668, very close to 2, indicates no autocorrelation between contiguous residuals. The image on the right shows compliance with the Ljung-box criterion up to lag 9. 3.2. Model validation Once the model that best fits the type of time series analyzed is selected, it is validated with real data. The idea is to analyze the forecasted values (P3 (P3F)) with the model, compare them with the actual values recorded by the data logger in the field, and use the ANOVA Fig. 8. Path followed to analyze the data and select the model that best fits the time series used. D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 6 method to determine if there are significant differences between the data. Table 6 shows the normalised analysis of variance between the values predicted by the model and the actual values. With a significance level of 95 % the statistical test result shows that there is no difference between the predicted values and the actual values. To analyze the accuracy of the predictive model, as well as its comparison with other models, the root mean squared error (RMSO), Mean Absolute Error (MAE), Mean Absolute Percent Error (MAPE) and Theil Inecuality Coefficient (U) statistics are considered: RMSO = ∑n i=1(Actual −Forecast)2 n √(4) MAE =∑n i=1|Forecast −Actual| n(5) MAPE =1 N.∑ n i=1 Actual −Forecast Actual .100 (6) U= 1 N⋅∑n i=1(Forecast −Actual)2 √  1 N⋅∑n i=1(Forecast)2 √+ 1 N⋅∑n i=1(Actual)2 √(7) Fig. 13 shows the representation of part of the values of the real P3 data series, measured in the installation, and the P3 values predicted by means of the ARMAX model obtained. To represent the real P3 data series, a dashed red line has been chosen, superimposed on the forecast series, which is blue and continuous, with no differences. In addition to the ANOVA analysis carried out on the series of forecast data and real data, Fig. 13 shows both the mean square error of the series compared, giving this statistic a value of 0.3, and the mean absolute error, with a value of 0.22, both very low values, indicating that the difference between the real values and the forecast values is very low. Other results that confirm the good fit of the model and its forecasts include a MAPE of 0.72 % and a low Theil Inequality Coefficient (0.004958), indicating strong model accuracy. The Theil Inequality Coefficient can be decomposed into three proportions that explain the source of error: bias, variance, and covariance [53,54]. The closer the bias and variance proportions are to zero, the less the error is due to bias or variance between the predicted and actual values; in this study, these proportions are 0.002 and 0.033, respectively. Conversely, the closer the covariance proportion is to 1, the better correlated the predictions and actual values are. In the ARMAX model, it is near unity, with a value of 0.94 (Fig. 13). Fig. 14 illustrates a two-month period of predicted and actual values measured at the facility, although the forecast extends from April to August 20, 2022 (covering 13,631 data points). Data contained in the dataset analyzed using the ANOVA analysis is shown in Table 7. Fig. 9. Dickey-Fuller Test. Fig. 10. Analysis of the P3 series: data sequence, autocorrelations (ACF) and partial autocorrelations (PACF). D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 7 Fig. 15 shows the predicted values for P3 and the actual measured values for P3. In this case, the predicted time period corresponds to the Easter week of the year under study. In the year 2022 it coincided in the period between 04/01/2022 and 04/09/2022 and that time of the year, the population of Noja experiences a substantial increase in population. Fig. 15 shows the adjustment of the predicted values with the real values. Table 7 shows the anova study carried out on the data for the Easter week period. At a significance level of 95 %, the probability value shows a value equal to 0.73 and the null hypothesis of the study cannot be rejected, so there are no differences between the mean values of the predicted and actual P3 data series. The P3 critical point pressure information provided by the ARMAX model can be extremely useful for the management of water distribution networks. Unexpected variations in pressure at the P3 critical point can indicate the presence of leaks, abnormal consupmtion or other anomalies in the network. Furthermore, the implementation of a continuous feedback system has the potential to substantially augment the predictive capacity and adaptability of the ARMAX model. By periodically updating the model with real-time or scheduled data from the network, the system can recalibrate its parameters in real time, thereby ensuring its reliability and accuracy when facing seasonal variations or unanticipated changes in operational conditions. This approach is consistent with best practices in resource management, facilitating the early detection of leaks and the optimisation of pressure control strategies over time. By continuously monitoring the pressure at P3 using the ARMAX model, operators can detect such variations early and take preventive action to repair leaks or other problems before they develop into more serious situations. Another important aspect is that maintaining the pressure in the network within optimal ranges is crucial to ensure efficiente and reliable supply of drinking water. Using the pressure forecasts in P3 provided by the ARMAX model, operators can adjust the settings of pressure control valves and other regulators to optimise pressure throughout the network. This not only helps reduce the risk of leaks and infrastructure damage due to excessive pressure, but also improves the overall operational efficiency of the system. By analysing historical and real-time P3 pressure data provided by the ARMAX model, operators can identify trends and patterns of behaviour that indicate the need for preventive maintenance in specific areas of the network. This allows them to schedule maintenance more effectively and proactively, Fig. 11. ARMAX Model Selection Criteria Table (left). ARMA Model Selection Criteria (right). Table 4 Compliance Ljung-Box ARMAX Model. ARMAX Model LogL AIC* BIC HQ Ljungbox (4,4) (0,0) 20,193.430651 −1.059059 −1.056368 −1.058205 No (3,3) (0,0) 20,190.937871 −1.059033 −1.05679 −1.058322 No (4,3) (0,0) 20,018.094597 −1.049911 −1.047443 −1.049128 Si Table 5 Compliance Ljung-Box ARMA Model. ARMA Model LogL AIC* BIC HQ Ljungbox (4,4)(0,0) −36,356.4207 1.908397 1.910640 1.909109 No (4,3)(0,0) −36,714.9468 1.927160 1.929179 1.927801 No (3,4)(0,0) −36,755.0987 1.929266 1.931285 1.929907 No D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 8 reducing the risk of unexpected failures and minimising system downtime. The successful implementation of the ARMAX model is contingent upon the availability of high-quality data. Inconsistent, incomplete, or noisy datasets can introduce significant challenges, affecting the model’s ability to make accurate predictions. Ensuring data quality necessitates the establishment of robust data collection systems and the regular maintenance of sensors and logging equipment. Furthermore, adapting the model to different contexts poses additional challenges. Variations in network configurations, demand patterns, and operational conditions may require recalibration or the inclusion of additional exogenous factors to maintain the model’s accuracy. This underscores the necessity for future research to investigate the model’s performance across a range of water distribution systems and operational scenarios, as well as the potential for hybrid approaches combining predictive analytics with real-time feedback mechanisms. Applying this methodology in other regions or countries presents additional challenges, particularly in systems with different infrastructure characteristics or operational constraints. For example, networks in regions with limited data availability or less advanced monitoring Fig. 12. Model equation. Test Ljung-Box. Table 6 One-factor Normalized Analysis of Variance (ANOVA). Origin of variations Sum of squares Degrees of freedom mean squares F Probability Critical value for F between groups 46.52 1 46.52 2.13 0.14 3.84 within the groups 2256,212.31 103,484 21.80    Total 2256,258.84 103,485     Fig. 13. Graph forecast P3 (P3F) and actual P3. D. Mu˜ noz-Rodríguez et al. Energy Nexus 18 (2025) 100423 9