Towards an approach to multivariate outlier detection for District Heating System data

arXiv cs.LG Papers

Summary

This paper evaluates different multivariate outlier detection methods (Z-score, Mahalanobis distances, PCA, Isolation Forest, and Hotelling's T-squared) for identifying irregular operations in district heating system data, proposing an ensemble approach based on agreement among the best-performing methods.

arXiv:2608.11375v1 Announce Type: new Abstract: In this paper, we test different methods for multivariate detection of outliers in the data of transmitted heat energy in the selected substation of local District Heating System, by also considering outside ambient temperature, namely Z-score (univariate, as a benchmark), Mahalanobis distances, Principal Component Analysis (PCA), Isolation Forest and Hotelling's T-squared test. The overall research aims at uncovering irregular plant operation, with a wider objective of identifying the opportunities for reducing the consumption of gas in central heating plants as well as the CO2 emission. The proposed approach considers specific domain circumstances, such as irrelevance of zero transmit-ted energy timepoints as indication of off-grid plant. The outcomes of the different methods are discussed with domain experts. It was concluded that PCA, Isolation Forest and Hotelling method provide relevant results. Finally, we adopt the ensemble method (selection based on the agreement of all three methods on the detected outliers) as the final approach.
Original Article
View Cached Full Text

Cached at: 08/13/26, 03:35 PM

# Towards an approach to multivariate outlier detection for District Heating System data
Source: [https://arxiv.org/html/2608.11375](https://arxiv.org/html/2608.11375)
[Rajko Turudija](https://orcid.org/0000-0002-6324-5967)Thanks:This research was supported by the Science Fund of the Republic of Serbia, Grant No\. 23\-SSF\-PRISMA\-206, Explainable AI\-assisted operations in district heating systems \- XAI4HEATAffiliation:Faculty of Mechanical EngineeringAffiliation:University of NišAffiliation:ul\. Aleksandra Medvedeva 14, 18000 Niš, SerbiaEmail:[rajko\.turudija@masfak\.ni\.ac\.rs](mailto:)[Dušan Stojiljković](https://orcid.org/0000-0002-6787-4533)Affiliation:Faculty of Mechanical EngineeringAffiliation:University of NišAffiliation:ul\. Aleksandra Medvedeva 14, 18000 Niš, SerbiaEmail:[dusan\.stojiljkovic@masfak\.ni\.ac\.rs](mailto:)[Milan Zdravković](https://orcid.org/0000-0002-4141-2058)Affiliation:Faculty of Mechanical EngineeringAffiliation:University of NišAffiliation:ul\. Aleksandra Medvedeva 14, 18000 Niš, SerbiaEmail:[milan\.zdravkovic@masfak\.ni\.ac\.rs](mailto:)[Marko Ignjatović](https://orcid.org/0000-0001-7205-7987)Affiliation:Faculty of Mechanical EngineeringAffiliation:University of NišAffiliation:ul\. Aleksandra Medvedeva 14, 18000 Niš, SerbiaEmail:[marko\.ignjatovic@masfak\.ni\.ac\.rs](mailto:)

###### Abstract

In this paper, we test different methods for multivariate detection of outliers in the data of transmitted heat energy in the selected substation of local District Heating System, by also considering outside ambient temperature, namely Z\-score \(univariate, as a benchmark\), Mahalanobis distances, Principal Component Analysis \(PCA\), Isolation Forest and Hotelling’s T\-squared test\. The overall research aims at uncovering irregular plant operation, with a wider objective of identifying the opportunities for reducing the consumption of gas in central heating plants as well as the CO2 emission\. The proposed approach considers specific domain circumstances, such as irrelevance of zero transmit\-ted energy timepoints as indication of off\-grid plant\. The outcomes of the different methods are discussed with domain experts\. It was concluded that PCA, Isolation Forest and Hotelling method provide relevant results\. Finally, we adopt the ensemble method \(selection based on the agreement of all three methods on the detected outliers\) as the final approach\.

Publication note\.This preprint corresponds to the paper published as:

R\. Turudija, D\. Stojiljković, M\. Zdravković, and M\. Ignjatović, “Towards an Approach to Multivariate Outlier Detection for District Heating System Data,” in*Disruptive Information Technologies for a Smart Society*, M\. Trajanović, N\. Filipović, and M\. Zdravković \(Eds\.\), Lecture Notes in Networks and Systems, vol\. 860, Springer, Cham, 2024\. The final authenticated version is available at[https://doi\.org/10\.1007/978\-3\-031\-71419\-1\_5](https://doi.org/10.1007/978-3-031-71419-1_5)\.

## 1Introduction

District Heating System \(DHS\) plant operation refers to the automated or semi\-automated management of water temperature and water flow in both the main plant and substation supply lines\. This control is based on the overall demand for DHS and the prevailing weather conditions\. The total DHS demand is considered by analyzing the transmitted energy per time period, as measured by the calorimeter at the return lines\. Normally, this transmitted energy is correlated with the outside ambient temperature, which is used as a main control parameter in DHS plant operation\.

DHS are designed to efficiently distribute heat to multiple buildings within a geographical area\. Anomalies in data, such as sudden spikes or drops in energy consumption, can indicate inefficiencies or malfunctions in the system\. Detecting these anomalies allows for timely intervention to optimize energy usage and minimize waste\. Anomalies in data can highlight fluctuations in heating performance, which may result in customer complaints\. Identifying and rectifying anomalies promptly enhances service quality and customer contentment\. When looking for anomalies beyond the transmitted energy, data can reveal abnormalities in the performance of different components of DHS, such as boilers, pumps and pipes, which may be indicative of impending failures or maintenance needs\. Anomaly detection techniques can be used to implement predictive maintenance strategies in district heating systems\. By identifying anomalies in equipment or performance data, maintenance schedules can be optimized to reduce downtime and minimize costs\. Detecting anomalies in sensor data or measurement errors helps maintain the accuracy and reliability of data used for decision\-making and modeling\.

Anomaly detection is the problem of highlighting unexpected items or events \(differing from a norm\) in datasets or data streams\. It is often used on time\-series data, especially in industries, for fault detection\. There are many different approaches for anomaly detection, from conventional \(such as statistical ones, Isolation Forest, Principal Component Analysis, etc\.\) to advanced, based on DL architectures \(instance\-based anomaly detection[8](https://arxiv.org/html/2608.11375#bib.bib8), generative adversarial networks[4](https://arxiv.org/html/2608.11375#bib.bib4), LSTM\-based Encoder\-Decoder architectures[6](https://arxiv.org/html/2608.11375#bib.bib6)and others\)\. Although the latter are much more effective, black\-box nature of DL networks is considered as significant drawback for application in the industrial system, where the explanation of detected anomaly is crucial for root\-cause analyzes and justification of high\-impact shop\-floor decisions \(such as revision of operation parameters, equipment maintenance, etc\.\)\.

In this paper, we define the initial approach of general research to detect anomalies in data related to heat energy consumption in the local DHS\. Our approach explores the feasibility of use of the traditional methods to univariate and multivariate outlier detection, namely z\-score \(univariate, as a benchmark\), Mahalanobis distances, Principal Component Analysis \(PCA\), Isolation Forest, and Hotelling’s T\-squared test\. In section 2, we detail the problem and introduce some of the reference works in this area\. In section 3, approach methodology and dataset are described, as well as candidate methods for outlier detection\. In section 4, the implementation process is briefly described, after which we present a detailed discussion of the results with the adopted approach formulation\. Finally, in section 5, conclusions and further work are presented\.

## 2Background

Traditional DHSs are currently governed by a Supervisory Control And Data Acquisition \(SCADA\) system\. This system incorporates various sensors, control mechanisms, and integrated algorithms that adjust operational parameters based on sensor readings\. The control of DHS is entirely automated, encompassing both the boiler plant and the district heating substation levels\. It also involves the implementation of suitable hot water reset control strategies, such as outdoor air reset or control curves, often represented by a regulation curve with multiple control set points\.

![Refer to caption](https://arxiv.org/html/2608.11375v1/fig1.png)Figure 1:Substation 8 schemeSelected substation scheme is presented in Fig\.1\. Heat fluid flow takes place in primary and secondary lines, separated by the heat exchanger\. The central heating plant generates hot water or steam as a heat carrier\. This high\-temperature fluid carries thermal energy from the plant to the various consumers, namely the substations\. This is a primary supply line\. At the substation, the high\-temperature fluid from the central plant passes through a heat exchanger\. This heat exchanger is typically designed to transfer heat from the central fluid to a separate, closed\-loop system, from primary to secondary supply line\. In the closed\-loop system, the fluid is pumped to the individual customer’s heating system \(through branches\)\. This closed loop prevents the central heating fluid from mixing with the customer’s internal system\. After transferring its heat to the customer’s closed\-loop system, the temperature of the fluid in the substation decreases\. This cooled fluid returns to the substation\. This is a secondary return line\. At the substation, the cooled fluid is reheated using heat from the central heating plant\. The heat exchanger in the substation facilitates this process\. Transmitted heat energy is measured at the calorimeter which is located at the primary return line\. This energy is proportional to the difference between temperatures in secondary supply and return lines and flow in a secondary line\.

### 2\.1Detecting faults and anomalies in DHS

Anomaly detection involves identifying patterns in data that deviate from the expected behavior, often referred to as outliers or aberrations[1](https://arxiv.org/html/2608.11375#bib.bib2)\.

In data analysis, outlying observations can significantly impact results, emphasizing the need for robust statistical methods \(or other methods\) to identify and mitigate their influence\. Robust statistics focus on detecting outliers by identifying the model that best fits most of the data\. Rousseeuw and Hubert[11](https://arxiv.org/html/2608.11375#bib.bib11)present an overview of various robust methods and outlier detection tools, addressing univariate, low\-dimensional, and high\-dimensional data\. The discussion encompasses robust procedures for estimating location and scatter, handling linear regression, Principal Component Analysis \(PCA\), and classification, providing a comprehensive exploration of techniques to enhance the reliability of data analysis in the presence of outliers\. On the other hand, a fault is characterized as a change in a system that renders it incapable of satisfactory operation and meeting user requirements[14](https://arxiv.org/html/2608.11375#bib.bib14)\. The distinction between detecting faults and anomalies in systems is highlighted by Neumayer et al[9](https://arxiv.org/html/2608.11375#bib.bib9)\.

Al Koussa and Månsson[3](https://arxiv.org/html/2608.11375#bib.bib1)present two methods for detecting faults in district heating \(DH\) substations using energy meter data\. The first method is a cluster\-based approach, comparing substations within a network to identify suboptimal performance\. The second is an instance\-based approach, using a black\-box model to predict substation behavior and identify deviations from expected performance\. Both methods demonstrate effectiveness in detecting deviating behaviors in DH customer installations, offering a significant advancement in automated fault detection in this field\. This distinction underscores the need for precision in discerning irregularities in system behavior, whether they manifest as anomalies or faults\. Mbiydzenyuy and Sundell[7](https://arxiv.org/html/2608.11375#bib.bib7)address the challenge of unsupervised anomaly detection in District Heating, citing limited labeled data and complex structures\. Their solution involves algorithm which employs hierarchical clustering, Dynamic Time Warping, Matrix profiles, and a Generative Adversarial Network to detect anomaly instances with similar patterns to labeled anomalies\. The findings demonstrate a strategic approach for energy analysts to assess specific anomalies in the District Heating network, unveiling prevalent cluster patterns within the dataset\.

Zhang and Fleyeh[15](https://arxiv.org/html/2608.11375#bib.bib15)introduce a novel hybrid approach for anomaly detection in DHS substations, acknowledging the common occurrence of system under\-performance due to various faults\. The proposed method combines a simplified physical model with a Long Short\-Term Memory\-based Variational Autoencoder \(LSTM VAE\)\. Using a dataset from an anonymous Swedish substation, the study evaluates and compares the performance of two state\-of\-the\-art models, namely LSTM and Long Short\-Term Memory\-based Autoencoder \(LSTM AE\), with LSTM VAE\. Results indicate that LSTM VAE outperforms baseline models when applying an optimal threshold\.

Seem[12](https://arxiv.org/html/2608.11375#bib.bib12)outlines an innovative approach for identifying abnormal energy consumption in buildings through daily energy readings and peak consumption data\. Utilizing outlier detection, the method assesses whether daily energy consumption significantly deviates from previous levels\. For buildings exhibiting abnormal energy patterns, robust estimates of mean and standard deviation quantify the variation from the norm\. This data analysis technique promises cost reduction by detecting unnoticed issues and saving operational time previously spent on manual fault detection\. Successful detection of high\-energy consumption in various buildings is demonstrated through field test results, showcasing its efficacy in identifying issues such as chiller failure, suboptimal control strategies, ventilation system design flaws, and improper equipment operation following electrical panel changes\.

Within the broader research scope aimed at revealing irregularities in plant operation and ultimately identifying opportunities to reduce gas consumption and CO2 emissions in central heating plants, this paper marks the initial step of the overall research in that trajectory\. The paper delves into the exploration of various outlier detection methods, assessing their effectiveness\. In collaboration with domain experts, the identified outliers are clarified through their expertise, ultimately determining the suitable approaches for accurate outlier detection in the pursuit of optimizing plant efficiency and environmental sustainability\.

## 3Methodology

Obviously, one daily operation is expected to follow the specific pattern\. This pat\-tern includes the peaks that are the result of the operator decisions and valleys which occur when the heating system is off\. To avoid detection of above\-mentioned peaks as anomalies, in our approach we detect anomalies on the number of datasets, for which data included only transmitted energy and ambient temperature at the given hour\. For example, we will separately analyze all data collected at 7:00 and at other hours\. The approach is used on the data corresponding to the specific hours due to a very clear seasonality daily pattern for the transmitted heat energy corresponding to the human operator procedures\. The outlier detection approaches will be tested on the daily time series comprising of the ambient temperature and transmitted heat energy at the following hours of a day: 7, 8, 9, 10, 11, 12, 13, 14, 22, 23\. Detection will consider both time series, so the bi\-variate outlier detection approach will be used\. Multivariate outliers are data points that are unusual or extreme when considering multiple variables simultaneously\. In other words, these are observations that are outliers in a multivariate space\. As a reference, a simple statistical Z\-score method will be used on transmitted heat energy signal\.

### 3\.1Dataset description

The dataset includes following relevant features:

- •Outside air temperature, acquired by the sensor in the substation \(C, tsp\)
- •Reference temperature \(C, trt\)\. Reference temperature is a target temperature at secondary supply line which needs to be reached\. Reference temperature is calculated by the control curve\.
- •Water temperature in the secondary supply line \(C, tns\)
- •Water temperature in the secondary return line \(C, tps\)
- •Water temperature in the primary supply line \(C, tnp\)
- •Water temperature in the primary return line \(C, tpp\)
- •Heat energy transmitted \(MWh, e\)

Data is collected from substation 9 of the local DHS by merging different datasets\. The data period is 2018\-05\-05 \- 2023\-05\-01\. Normally, the adopted time of the heating season start is the time of first change in transmitted heat energy after October 1st\. The end of the heating season is normally April 15th\. Although the heating system often remains operational after that date, till May 3rd, this data is discarded because of high temperature peaks that often occur in this period\. Heat energy is measured at the calorimeter which is located at the primary supply line\. Due to special conditions for DHS operation in October, this month will also be omitted from the analysis\. For data analysis, the adopted period is 11\-01 \- 04\-01\.

### 3\.23\.2 Multivariate outlier detection methods

Z\-score as the simplest but often most often univariate outlier detection technique will be used as a reference\. Z\-score is a statistical measure that quantifies how far is a data point from the mean of the dataset in terms of standard deviations\.

Z=X−μσZ=\\frac\{X\-\\mu\}\{\\sigma\}\(1\)
where:

- •XX\- individual data point\.
- •μ\\mu\- mean \(average\) of the dataset\.
- •σ\\sigma\- standard deviation of the dataset\.

Z\-score is commonly used in detection of outliers \(univariate analysis\) in the dataset, by applying the arbitrarily selected thresholds\. Selection of threshold has crucial effect on the reliability of the outlier detection, and it should be done by the domain expert\. Also, such technique is sensitive to the data distribution; Z\-scores assume that the data is normally distributed as they are using mean as a reference\. Z\-scores are sensitive to skewness \(asymmetry\) and kurtosis in the data\. In the presence of significant skewness or heavy tails, z\-scores may misclassify some data points as outliers or fail to identify true outliers\. Finally, Z\-scores assume that data points are independent of each other\. If data points are correlated or exhibit serial dependence \(e\.g\., time series data\), z\-scores may not be appropriate\. Still, the negative effect of cross\-correlation in time series data may be mitigated by using derivatives instead of the actual data\-point values\.

Multivariate outliers are data points that are outliers not in a single variable \(uni\-variate outlier\) but rather in a multivariate context\. Multivariate outliers are detect\-ed by considering the relationships between two or more variables\. A data point may not be considered an outlier when examining any individual variable but becomes an outlier when analyzing the combination of variables\.

Multivariate outliers are important to identify because they can distort statistical analyses, affect the accuracy of predictive models, or carry unique information that may need further investigation\. In the research presented in this paper, the following methods for multivariate \(in this case, bivariate\) outlier detection are: Mahalanobis distance, Principal Component Analysis \(PCA\), Isolation Forest and Hotelling’s T\-squared test\. They are described in the remainder of this section\.

#### 3\.2\.1Mahalanobis distance

Mahalanobis Distance[10](https://arxiv.org/html/2608.11375#bib.bib10)is a method used for multivariate outlier detection\. It is a measure of the distance between a data point and the center of a dataset in a multidimensional space, considering the variability and correlations of the data\.

D⁡\(X\)=\(X−μ\)T​Σ−1​\(X−μ\)D\(X\)=\\sqrt\{\(X\-\\mu\)^\{T\}\\Sigma^\{\-1\}\(X\-\\mu\)\}\(2\)where:

- •XXrepresents the multivariate data point\.
- •μ\\muis the mean vector\.
- •Σ−1\\Sigma^\{\-1\}is the inverse of the covariance matrix\.

Mahalanobis Distance is robust to data with different scales and units\. It can capture correlations and dependencies between variables, and it is applicable to high\-dimensional datasets\. One of the limitations of the method is that it assumes that the data follow a multivariate normal distribution, which may not always be the case\.

#### 3\.2\.2Principal Component Analysis \(PCA\)

Principal Component Analysis \(PCA\)[13](https://arxiv.org/html/2608.11375#bib.bib13)is a dimensionality reduction technique used in multivariate outlier detection\. While PCA is primarily known for dimensionality reduction and data compression, it can also be applied to identify outliers in multivariate datasets\.

PCA’s primary goal is to transform a dataset with multiple correlated variables \(features\) into a new set of uncorrelated variables called principal components\. These components are linear combinations of the original features and capture most of the variance in the data\. In PCA, the first few principal components capture the majority of the variance in the dataset, while subsequent components capture less and less\. Therefore, the first few components contain the most valuable information about the data\. By reducing the dimensionality of the data with PCA, outliers can become more apparent in the reduced\-dimensional space\. PCA assumes that the data follow a Gaussian distribution, which may not always hold true for all datasets\.

#### 3\.2\.3Isolation Forest

The Isolation Forest \(IF\)[5](https://arxiv.org/html/2608.11375#bib.bib5)is an ensemble ML algorithm used for outlier detection\. It operates by randomly selecting a feature and a random split point for that feature\. It does this recursively until it isolates an outlier or reaches a specified depth in the tree\.

The contamination parameter is used to control the proportion of expected outliers in the dataset\. It represents the expected percentage of anomalies in the dataset\. The contamination parameter controls the trade\-off between precision and recall in outlier detection\. A lower value results in stricter detection of outliers\.

Some crucial advantages of IF are that it scales well to large datasets, it is capable of identifying anomalies in high\-dimensional data, with relatively small tuning effort\. Finally, it doesn’t require assumptions about the data distribution\.

However, there are some limitations\. Isolation Forest assumes that anomalies are sparse and can be isolated with fewer splits\. While this is often true for many datasets, it may not be the case for all\. In some datasets, anomalies may not be isolated efficiently by random partitioning\. The method is also sensitive to sampling as it relies on random sampling, which can lead to variation in results\. Different random samples can produce slightly different isolation trees and, consequently, different outlier scores\. Furthermore, IF treats features independently and doesn’t consider the relationships or correlations between features\. In some cases, outliers may only be detected by considering multivariate relationships\. Thus, it is primarily designed for detecting individual outliers rather than identifying clusters of anomalies\. Further\-more, the method is sensitive to data scaling\. It is important to pre\-process the data appropriately, especially when features have different scales\. The explainability is a challenge: Isolation Forest doesn’t provide explanations or reasons for why a particular data point is considered an outlier\. It only assigns anomaly scores based on path lengths in the trees\.

#### 3\.2\.4Hotelling’s T\-squared test

Hotelling’s T\-squared test[2](https://arxiv.org/html/2608.11375#bib.bib3)is a statistical method used for multivariate outlier detection and analysis\.

Hotelling’s T\-squared test is designed to identify whether there are significant differences between the means of multivariate datasets\. It provides a statistical measure of how far an observation is from the mean of the dataset in a multivariate space\. The test compares the Mahalanobis distance \(a measure of distance that accounts for correlations between variables\) of each observation from the multivariate mean to a critical value derived from the F\-distribution\. Hotelling’s T\-squared test assumes that the data follows a multivariate normal distribution\.

The alpha parameter in Hotelling’s T\-squared test refers to the significance level of the test\. A lower alpha value means you are being more conservative and requiring stronger evidence to reject the null hypothesis\.

## 4Implementation and discussion

Bivariate detection of outliers is carried out on transmitted energy and outside temperature, where the latter is shifted one timestep in the future, because the decision on increasing the heat energy transmission in the next hour is made based on the temperature in the current hour\. This is considered a simplification, because it assumes system inertia of 1 hour which is not actually correct\. This simplification is made because only hourly series data is available for the period of analysis\. Still, this simplification is reasonable because the effect of the decision is still embodied in the transmitted energy\.

Both features are normally distributed which is very positive for great most of the methods for outlier detection which assume the Gaussian distribution\. One exception is the concentration of zero data in transmitted energy, where in many data\-points, no energy is being transmitted\. This data is omitted from the analysis of outliers\. All the mentioned methods need to have some threshold defined, which, in the majority of the used methods, comes from a significant level value \(often denoted asα\\alpha\)\. Defining these values is somewhat of a subjective decision, and there is no universal way or guidelines to select these\. There are recommendations for choosing the threshold and significant level, but they are also very dependent on the dataset for which the threshold is being defined, and expert knowledge of the domain from which the dataset was from\. In the initial analysis, the authors used such recommendations\. For the significant level, most often the recommendation is to useα\\alpha= 0\.05, which corresponds to a confidence level of 95%\.

In other cases, \(e\.g\. Mahalanobis Distances\) the recommendation is to use a threshold equal to 2 times the standard deviation of the data\. However, when such thresholds were used, the outliers detect\-ed by the methods were not very promising\. According to the expert who analyzed the outliers detected by the methods, the number of outliers was much higher than what it should have been, and a significant portion of the identified outliers lacked a clear justification; the data associated with these outliers did not exhibit unusual characteristics\. This indicated that most of the outliers identified by the methods were not true outliers but rather false positives\. It implied that the chosen confidence level of 95% \(α\\alpha= 0\.05\) was too low, and similarly, the threshold value calculated using the standard deviation was set too high\.

Due to this observation, in the subsequent iteration, thresholds were approximated with experts examining the outcomes of outlier detection\. The criteria for success were determined based on the expert’s satisfaction with both the quantity and interpretability of the identified outliers\. Once the expert deemed the results satisfactory, the thresholds were considered successful\. Selected parameters were as follows: TMD=1 \(Threshold parameter for MD method\), TPCA=2 \(Threshold parameter for PCA method\), CIF=0\.015 \(Contamination parameter for IF method\), AH=0\.0007 \(Alpha parameter for IF method\)\.

However, despite the careful selection of thresholds, two methods yielded unsatisfactory results\. The Univariate Outlier Detection method \(Z\-score\) performed poorly, considering its focus on a single variable\. However, it’s worth noting that this method was employed merely as a benchmark, and its suboptimal performance was expected\. The other method presenting challenges was Mahalanobis Distances\. Regardless of the threshold settings, the identified outliers did not meet the expected interpretability\. This issue warrants further investigation in future work\. From results presented in Table 1, obtained from the three methods that were deemed successful, it is possible to draw certain conclusions\.

Table 1:Average number of outliers detected by PCA, Isolation Forest, and Hotelling T\-test at each hour of the day, for both depicted seasons\.During season 1, there was a relatively consistent average number of outliers detect\-ed by the methods for each hour, with the peak occurring at 22h\. In contrast, season 2 exhibited varying numbers of detected outliers for each hour throughout the day\. On average, the highest number of outliers appeared during the early morning hours \(7h\) and late\-night hours \(22h and 23h\)\.

The increased number of outliers at 7h in the morning can be attributed to variations in the start time of the heating cycle by the operator at the heating plant\. Some\-times the cycle begins a bit later, and occasionally, the operator decides it’s unnecessary to initiate heating at that specific time\. This variability is reflected in the higher number of outliers detected at 7h\. Similarly, during late\-night hours \(22h or 23h\), the need for heating fluctuates based on the outside temperature and the operator’s estimations\.

![Refer to caption](https://arxiv.org/html/2608.11375v1/fig2.png)Figure 2:A sudden decrease of sent energy to the secondary supply line, due to exceeding the targeted temperature of the supply line in the previous hours\.There are instances where heating is deemed necessary and times when it is not, leading to a higher number of outliers during these hours\. In addition, at times in the morning \(9\-11h\) there appeared to be either no output energy or a minimal amount, even when the outside temperatures are low, and the heating system should be active \(Figure 2\)\. However, there is a straightforward explanation: during the early morning when the heating starts, the objective is to achieve the required temperature in the secondary supply line as fast as possible, to ensure customers receive adequate heating\. Occasionally, too much energy is sent to the secondary supply line, causing the water temperature in that line to exceed the required level\. Therefore, there is a significant reduction in the sent energy in the next hour\(s\), in order to lower the water temperature at the secondary line and thereby reach the required temperature level\. While it was anticipated that the outlier detection methods might incorrectly label these segments as false positive outliers, the methods performed remarkably well by correctly recognizing that these instances are not outliers\.

Overall, the methods displayed similar results, as all three noticed the majority of the outliers at the beginning of the heating season and at the end \(Figure 3\)\. Because these months of the winter are often warmer and the variation in outside temperature is more pronounced, the heating is also more unpredictable, which results in more outliers detected\.

![Refer to caption](https://arxiv.org/html/2608.11375v1/fig3.png)Figure 3:Detected outliers for each of the methods in both heating seasons\.However, most of the outliers are noticed at the beginning of January, which is odd at first, but understandable when looked more closely\. Figure 4 shows that the majority of the outliers in the month of January are between the first and the 13th of January\. Because this period is a holiday period of the year, the heating is increased as it is presumed that more users will be staying at home during the days, which is why more outliers are detected\.

![Refer to caption](https://arxiv.org/html/2608.11375v1/fig4.png)Figure 4:A closer look at the detected outliers in the first season in the holiday period of the year \(01st Jan\-13th Jan\)\.Even though the methods detected similar outliers, they did not always detect the exact same one, the methods worked relatively well, as commented by the expert\. By closely analyzing the results and discussing them with the domain expert, it was concluded that the best choice is to use two methods \(PCA, Isolation Forest\) in con\-junction, since Hotelling T\-test results were more conservative\. The outliers which are detected by both of these methods would be deemed the right outliers, all the others would be false positives\.

## 5Conclusion

In this preliminary research, we have identified the strengths and weaknesses of different methods for the bivariate detection of outliers in DHS operation, based on the features of transmitted heat energy and ambient temperature\. PCA and Isolation Forest methods have been adopted as reference ones, producing satisfactory results\. The research conclusions are still considered as weak since the adoption of the methods is based on the inspection of the detected outliers by the expert\.

In the future, the research will take the direction of considering more features in a multivariate analysis, namely other relevant weather parameters, such as solar irradiance, wind strength and direction\. One of the next steps will be to test the effectiveness of the different boosting methods within the multivariate outlier detection problem\. For example, PCA can be used to reduce the dimensionality to transform the multivariate to bivariate problem, where other methods can be used to solve it, such as Isolation Forest\. The performance measurement of the conventional methods still remains the problem as it requires quite a significant effort by the experts who validate the results manually\. Efficiency of the validation process, at least in the aspect of method comparison can be somewhat improved by implementing the dynamic selection of the values of parameters/thresholds for different methods based on the defined fixed number of outliers to be detected for all methods\.

Feasibility of the supervised anomaly detection approach will be investigated, based on expert annotated anomalies\. Such an approach would enable explicit and direct performance measurement, and it will facilitate the explainability\. Also, other methods, namely Deep Learning based ones will be tested\. Finally, the research will deliver the software application for walk\-forward detection of outliers which are expected to pinpoint ineffective or inefficient heating as well as the fault detection\.

## References

- \[1\]\(2009\)Anomaly detection: A survey\.ACM Computing Surveys41\(3\),pp\. 1–58\(en\)\.External Links:ISSN 0360\-0300, 1557\-7341,[Link](https://dl.acm.org/doi/10.1145/1541880.1541882),[Document](https://dx.doi.org/10.1145/1541880.1541882)Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p1.1)\.
- \[2\]H\. Hotelling\(1931\)The Generalization of Student’s Ratio\.The Annals of Mathematical Statistics2\(3\),pp\. 360–378\(en\)\.External Links:ISSN 0003\-4851,[Link](http://projecteuclid.org/euclid.aoms/1177732979),[Document](https://dx.doi.org/10.1214/aoms/1177732979)Cited by:[§3\.2\.4](https://arxiv.org/html/2608.11375#S3.SS2.SSS4.p1.1)\.
- \[3\]J\. A\. Koussa and S\. Månsson\(2022\)Fault detection in district heating substations\.InCLIMA 2022: The 14th REHVA HVAC World Congress,Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p3.1)\.
- \[4\]D\. Li, D\. Chen, B\. Jin, L\. Shi, J\. Goh, and S\. Ng\(2019\)MAD\-GAN: Multivariate Anomaly Detection for Time Series Data with Generative Adversarial Networks\.InArtificial Neural Networks and Machine Learning – ICANN 2019: Text and Time Series,I\. V\. Tetko, V\. Kůrková, P\. Karpov, and F\. Theis \(Eds\.\),Vol\.11730,pp\. 703–716\(en\)\.Note:Series Title: Lecture Notes in Computer ScienceExternal Links:ISBN 978\-3\-030\-30489\-8 978\-3\-030\-30490\-4,[Link](http://link.springer.com/10.1007/978-3-030-30490-4_56),[Document](https://dx.doi.org/10.1007/978-3-030-30490-4%5F56)Cited by:[§1](https://arxiv.org/html/2608.11375#S1.p3.1)\.
- \[5\]F\. T\. Liu, K\. M\. Ting, and Z\. Zhou\(2012\)Isolation\-Based Anomaly Detection\.ACM Transactions on Knowledge Discovery from Data6\(1\),pp\. 1–39\(en\)\.External Links:ISSN 1556\-4681, 1556\-472X,[Link](https://dl.acm.org/doi/10.1145/2133360.2133363),[Document](https://dx.doi.org/10.1145/2133360.2133363)Cited by:[§3\.2\.3](https://arxiv.org/html/2608.11375#S3.SS2.SSS3.p1.1)\.
- \[6\]P\. Malhotra, A\. Ramakrishnan, G\. Anand, L\. Vig, P\. Agarwal, and G\. Shroff\(2016\)LSTM\-based Encoder\-Decoder for Multi\-sensor Anomaly Detection\.Note:Version Number: 2Other Accepted at ICML 2016 Anomaly Detection Workshop, New York, NY, USA, 2016\. Reference update in this version \(v2\)External Links:[Link](https://arxiv.org/abs/1607.00148),[Document](https://dx.doi.org/10.48550/ARXIV.1607.00148)Cited by:[§1](https://arxiv.org/html/2608.11375#S1.p3.1)\.
- \[7\]G\. Mbiydzenyuy and H\. Sundell\(2022\)Pattern Detection in Abnormal District Heating Data\.SSRN Electronic Journal\(en\)\.External Links:ISSN 1556\-5068,[Link](https://www.ssrn.com/abstract=4290597),[Document](https://dx.doi.org/10.2139/ssrn.4290597)Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p3.1)\.
- \[8\]Mingyan Teng\(2010\)Anomaly detection on time series\.In2010 IEEE International Conference on Progress in Informatics and Computing,Shanghai, China,pp\. 603–608\.External Links:ISBN 978\-1\-4244\-6788\-4 978\-1\-4244\-6789\-1,[Link](https://ieeexplore.ieee.org/document/5687485/),[Document](https://dx.doi.org/10.1109/PIC.2010.5687485)Cited by:[§1](https://arxiv.org/html/2608.11375#S1.p3.1)\.
- \[9\]M\. Neumayer, D\. Stecher, S\. Grimm, A\. Maier, D\. Bücker, and J\. Schmidt\(2023\)Fault and anomaly detection in district heating substations: A survey on methodology and data sets\.Energy276,pp\. 127569\(en\)\.External Links:ISSN 03605442,[Link](https://linkinghub.elsevier.com/retrieve/pii/S0360544223009635),[Document](https://dx.doi.org/10.1016/j.energy.2023.127569)Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p2.1)\.
- \[10\]\(2018\)Reprint of: Mahalanobis, P\.C\. \(1936\) "On the Generalised Distance in Statistics\."\.Sankhya A80\(S1\),pp\. 1–7\(en\)\.External Links:ISSN 0976\-836X, 0976\-8378,[Link](http://link.springer.com/10.1007/s13171-019-00164-5),[Document](https://dx.doi.org/10.1007/s13171-019-00164-5)Cited by:[§3\.2\.1](https://arxiv.org/html/2608.11375#S3.SS2.SSS1.p1.1)\.
- \[11\]P\. J\. Rousseeuw and M\. Hubert\(2011\)Robust statistics for outlier detection\.WIREs Data Mining and Knowledge Discovery1\(1\),pp\. 73–79\(en\)\.External Links:ISSN 1942\-4787, 1942\-4795,[Link](https://wires.onlinelibrary.wiley.com/doi/10.1002/widm.2),[Document](https://dx.doi.org/10.1002/widm.2)Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p2.1)\.
- \[12\]J\. E\. Seem\(2007\)Using intelligent data analysis to detect abnormal energy consumption in buildings\.Energy and Buildings39\(1\),pp\. 52–58\(en\)\.External Links:ISSN 03787788,[Link](https://linkinghub.elsevier.com/retrieve/pii/S0378778806001514),[Document](https://dx.doi.org/10.1016/j.enbuild.2006.03.033)Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p5.1)\.
- \[13\]S\. Wold, K\. Esbensen, and P\. Geladi\(1987\)Principal component analysis\.Chemometrics and Intelligent Laboratory Systems2\(1\-3\),pp\. 37–52\(en\)\.External Links:ISSN 01697439,[Link](https://linkinghub.elsevier.com/retrieve/pii/0169743987800849),[Document](https://dx.doi.org/10.1016/0169-7439%2887%2980084-9)Cited by:[§3\.2\.2](https://arxiv.org/html/2608.11375#S3.SS2.SSS2.p1.1)\.
- \[14\]K\. Worden and J\. M\. Dulieu\-Barton\(2004\)An Overview of Intelligent Fault Detection in Systems and Structures\.Structural Health Monitoring3\(1\),pp\. 85–98\(en\)\.External Links:ISSN 1475\-9217, 1741\-3168,[Link](https://journals.sagepub.com/doi/10.1177/1475921704041866),[Document](https://dx.doi.org/10.1177/1475921704041866)Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p2.1)\.
- \[15\]F\. Zhang and H\. Fleyeh\(2020\)Anomaly Detection of Heat Energy Usage in District Heating Substations Using LSTM based Variational Autoencoder Combined with Physical Model\.In2020 15th IEEE Conference on Industrial Electronics and Applications \(ICIEA\),Kristiansand, Norway,pp\. 153–158\.External Links:ISBN 978\-1\-7281\-5169\-4,[Link](https://ieeexplore.ieee.org/document/9248108/),[Document](https://dx.doi.org/10.1109/ICIEA48937.2020.9248108)Cited by:[§2\.1](https://arxiv.org/html/2608.11375#S2.SS1.p4.1)\.

Similar Articles

Anomalies in Multivariate Time Series Benchmarks Are Mostly Univariate

arXiv cs.LG

This paper introduces a diagnostic framework for multivariate time series anomaly detection benchmarks and finds that labeled anomalies are mostly detectable from individual channels, challenging the need for cross-channel modeling. The authors call for more structurally diverse evaluation sets.