Skip navigation
All Places > PI Developers Club > Blog > Author: kmazarakis

PI Developers Club

1 Post authored by: kmazarakis Employee

Last week we met with Viten's Data Science team and they showed us this amazing Custom Data Reference that they've built for Dynamic Water Demand Forecasts.

They're using it for leak detection, but I'm sure the same could be applied to other use cases and other industries as well.

What's even more interesting is that they've been kind enough to upload the material in GitHub!

There is also a youtube video showing the installation, configuration and running DBM and DBM data reference.




Many thanks to Johan Fitié and the rest of Vitens' Data Science team for making this available and here are also a few comments from them:


Water company Vitens has created a demonstration site called the Vitens Innovation Playground (VIP), in which new technologies and methodologies are developed, tested, and demonstrated. The projects conducted in the demonstration site can be categorized into one of four themes: energy optimization, real-time leak detection, online water quality monitoring, and customer interaction. In the real-time leak detection theme, a method for leak detection based on statistical demand forecasting was developed.


Using historical demand patterns and statistical methods - such as median absolute deviation, linear regression, sample variance, and exponential moving averages - real-time values can be compared to a forecast demand pattern and checked to be within calculated bandwidths. The method was implemented in Vitens' realtime data historian, continuously comparing measured demand values to be within operational bounds.


One of the advantages of this method is that it doesn't require manual configuration or training sets. Next to leak detection, unmeasured supply between areas and unscheduled plant shutdowns were also detected. The method was found to be such a success within the company, that it was implemented in an operational dashboard and is now used in day-to-day operations.


The software is available as free software under the GPLv3 license;


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.


This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License along with this program. If not, see


For more information, please take a look at

Filter Blog

By date: By tag: