Platform feature: Low pass filter
The IoT and analytics platform hetida platform offers a wide range of standard workflows for efficient data pre-processing. One of these is the low-pass filter – a proven method for smoothing out high-frequency fluctuations in time series while preserving the low-frequency trend in the data. In this article, we show how the filter works and how it can be specifically applied to water level data in water management.
Initial situation
How the low pass filter works
We are only interested in the low-frequency main signal. However, as we can only measure the composite signal, we have to filter out the high-frequency interference signal. This is precisely the purpose of a low pass filter: it filters out high-frequency signals so that only the low frequencies can pass through the filter (hence the name “low pass filter”). The hetida platform has a standard workflow that implements such a low pass filter with a Butterworth filter.
Application of a low pass filter to level data in the hetida platform
We imagine that a hydrologist wants to investigate the frequency and duration of low water events in the Ruhr region. She defines a low water event as a water level falling below a certain level for a longer period of time. If a measured water level rises for a short time due to a single rainfall, this is often of no great significance. Other random factors such as a passing ship or a blocked signal can also cause short-term fluctuations. If the water level briefly exceeds the limit value as a result, this does not change the ongoing low water situation.
The hydrologist therefore wants to smooth her measurement data before analyzing low water events. To do this, she uses a low-pass filter to eliminate such short-term fluctuations. We implement this in the hetida platform below.
The water level data of the Ruhr in Hattingen, which is measured by the Ruhrverband at 15-minute intervals, is made freely available as a .csv file. After downloading, the .csv file can be easily imported into the hetida platform (more information on the platform interfaces).
Import of raw data via CSV file
Once the data has been successfully imported, a signal containing this data can be created. The hetida platform generates a data preview for each signal created at the corresponding point in the Explorer. Here we can already see that there was a longer period of low water levels in the Ruhr in Hattingen in 2003. From March to November, the water levels were below the average low water level at this measuring point, which is 102 cm. However, there were short-term exceedances of this limit during this period. If low water was defined using such a limit value, the period would not be fully classified as a low water period, which is undesirable.
We therefore filter the raw data through a low pass filter. We set the cut-off frequency so that events with a duration of less than two weeks are filtered out. We regard these short events as interference signals. Longer-term events, on the other hand, should be retained.
To do this, we select “d” for days as the unit of frequency. We set the cut-off frequency to 1/14, i.e. 0.0714.
Result after applying the low pass filter
The result of this filter is written to a new signal whose data preview looks like this:
Experience the IoT and analytics platform live and make an appointment.
Our experts will get in touch with you shortly.
We look forward to hearing from you.